2003-09-29 Jerome Guitton <guitton@act-europe.fr>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
2
3 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
4 test if the register has been saved on the stack.
5 (arm_scan_prologue_cache): When analysing the instruction
6 "str lr, [sp, #-4]", save the address where lr has been stored.
7
8 2003-09-28 Andrew Cagney <cagney@redhat.com>
9
10 * frame.c (frame_read_unsigned_register): Delete function.
11 * frame.h (frame_read_unsigned_register): Delete declaration.
12 * sparc-tdep.c (sparc_init_extra_frame_info): Use
13 get_frame_register_unsigned.
14 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
15 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
16 * d10v-tdep.c (d10v_print_registers_info): Ditto.
17
18 * frame.h (frame_read_register): Delete declaration.
19 * frame.c (frame_read_register): Delete function.
20 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
21 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
22 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
23 * mips-tdep.c (mips_register_to_value): Ditto.
24 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
25 * d10v-tdep.c (d10v_print_registers_info): Ditto.
26
27 * frame.c (frame_read_signed_register): Delete function.
28 (frame_read_unsigned_register): Update comments.
29 * frame.h (frame_read_signed_register): Delete declaration.
30 * h8300-tdep.c (h8300_print_register): Use
31 get_frame_register_signed.
32 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
33
34 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
35 Rename VALUE_RETURNED_FROM_STACK.
36 * infcmd.c (print_return_value): Update.
37 * infcall.c (call_function_by_hand): Update.
38
39 2003-09-28 Mark Kettenis <kettenis@gnu.org>
40
41 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
42 regcache argument and reverse the order of the other two
43 arguments. Remove local regcache variable. Determine
44 architecture from REGCACHE. Update comments.
45 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
46 reverse the order of the other two arguments. Remove local
47 regcache variable. Determine architecture from REGCACHE. Update
48 comments.
49 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
50 prototypes. Update comments.
51 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
52 comment.
53 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
54 Update.
55 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
56 * i386-interix-nat.c (supply_fpregset): Update.
57 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
58 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
59 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
60 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
61 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
62 Update.
63 * i386obsd-tdep.c (fetch_core_registers): Update.
64 * i386v4-nat.c (supply_fpregset): Update.
65 * x86-64-linux-nat.c (supply_fpregset): Update.
66 * x86-64-linux-tdep.c (fetch_core_registers): Update.
67
68 2003-09-27 Mark Kettenis <kettenis@gnu.org>
69
70 * i386-tdep.h: Put opaque declarations in alphabetical
71 order. Remove spurious whitespace.
72 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
73 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
74 * i386-tdep.c (MM0_REGNUM): Remove define.
75 (i386_mmx_regnum_p): Add gdbarch argument.
76 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
77 Rewrite using new macro definitions for FPU/SSE registers.
78 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
79 definitions from i387-tdep.h.
80 (i386_register_name): Update.
81 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
82 new macro definitions for FPU/SSE registers.
83 (i386_extract_return_value): Determine whether floating-point
84 registers are present by examining REGCACHE's architecture.
85 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
86 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
87 FPU/SSE registers.
88 (i386_register_type): Update.
89 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
90 definitions for FPU registers. Use REGCACHE's architecture to
91 determine the appropriate register numbers.
92 (i386_pseudo_register_read, i386_pseudo_register_write,
93 i386_register_reggroup_p): Update.
94 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
95 TDEP->mm0_regnum.
96 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
97 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
98 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
99 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
100 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
101 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
102 *' to `void *'.
103 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
104 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
105 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
106 definitions for FPU/SSE registers.
107 (FXSAVE_MXCSR_ADDR): New define.
108 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
109 TDEP->mm0_regnum.
110 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
111 (I387_ST0_REGNUM): Define.
112
113 * regcache.h (get_regcache_arch): New prototype.
114 * regcache.c (get_regcache_arch): New function.
115
116 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
117 whitespace.
118
119 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
120 Initialize using ARRAY_SIZE.
121
122 2003-09-27 Andrew Cagney <cagney@redhat.com>
123
124 * arch-utils.c (deprecated_init_frame_pc_default): Rename
125 "init_frame_pc_default".
126 * arch-utils.h (deprecated_init_frame_pc_default): Update.
127 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
128 * vax-tdep.c (vax_gdbarch_init): Update.
129 * v850-tdep.c (v850_gdbarch_init): Update.
130 * sh64-tdep.c (sh64_gdbarch_init): Update.
131 * s390-tdep.c (s390_gdbarch_init): Update.
132 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
133 * mcore-tdep.c (mcore_gdbarch_init): Update.
134 * h8300-tdep.c (h8300_gdbarch_init): Update.
135 * cris-tdep.c (cris_gdbarch_init): Update.
136 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
137
138 2003-09-26 Mark Kettenis <kettenis@gnu.org>
139
140 * regset.h: New file.
141 * Makefile.in (regset_h): Add.
142
143 2003-09-25 Andrew Cagney <cagney@redhat.com>
144
145 * frame.h (deprecated_frame_saved_regs): Rename
146 get_frame_saved_regs.
147 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
148 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
149 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
150 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
151 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
152
153 2003-09-25 Andrew Cagney <cagney@redhat.com>
154
155 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
156 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
157 and Java.
158 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
159 arm*-*-* do not use the new frame code.
160
161 2003-09-25 David Carlton <carlton@kealia.com>
162
163 * c-exp.y: Remove 'register' declarations.
164 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
165
166 2003-09-25 David Carlton <carlton@kealia.com>
167
168 * c-exp.y: Include cp-support.h. Add qualified_type.
169 (yylex): Delete nested type hack; add comments.
170 * cp-namespace.c (cp_lookup_nested_type): New function.
171 * cp-support.h: Declare cp_lookup_nested_type.
172 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
173 instead of value_struct_elt_for_reference.
174 * valops.c: Include cp-support.h.
175 (value_aggregate_elt): New function.
176 (value_namespace_elt): Ditto.
177 (value_struct_elt_for_reference): Make static.
178 * value.h: Delete declaration of value_struct_elt_for_reference;
179 add declaration for value_aggregate_elt.
180 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
181 (valops.o): Ditto.
182
183 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
184
185 * stack.c: Include "reggroups.h".
186 (frame_info): Only display registers in all_reggroup.
187 * Makefile.in (stack.o): Update dependencies.
188
189 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
190
191 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
192 "add ip, sp #n" in the prologue.
193 (arm_scan_prologue): Ditto.
194
195 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
196
197 * MAINTAINERS (write after approval): Add myself.
198
199 2003-09-25 Andreas Schwab <schwab@suse.de>
200
201 * m68k-tdep.c: Include "dwarf2-frame.h".
202 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
203 * Makefile.in (m68k-tdep.o): Update dependencies.
204
205 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
206
207 * sh-tdep.c (struct frame_extra_info): Remove.
208 (struct sh_frame_cache): New structure.
209 (GET_SOURCE_REG): New macro extracting source register of an opcode.
210 (GET_TARGET_REG): Ditto but target register.
211 (GET_PUSHED_REG): Remove.
212 (IS_MOV_ARG_TO_REG): New macro.
213 (IS_MOV_ARG_TO_IND_R14): New macro.
214 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
215 (IS_MOVW_PCREL_TO_REG): New macro.
216 (IS_MOVL_PCREL_TO_REG): New macro.
217 (IS_SUB_REG_FROM_SP): New macro.
218 (IS_ARG_MOV): Remove.
219 (IS_MOV_TO_R14): Remove.
220 (IS_RESTORE_FP): New macro.
221 (IS_RTS): New macro.
222 (IS_LDS): New macro.
223 (IS_MOV_FP_SP): New macro.
224 (IS_ADD_REG_TO_FP): New macro.
225 (IS_ADD_IMM_FP): New macro.
226 (sh_skip_prologue_hard_way): Remove.
227 (sh_saved_pc_after_call): Remove.
228 (sh_frame_chain): Remove.
229 (sh_find_callers_reg): Remove.
230 (sh_nofp_frame_init_saved_regs): Remove.
231 (sh_fp_frame_init_saved_regs): Remove.
232 (sh_init_extra_frame_info): Remove.
233 (sh_analyze_prologue): New function.
234 (sh_skip_prologue): Remove deprecated code. Rely on new function
235 sh_analyze_prologue when after_prologue fails.
236 (sh_frame_saved_pc): Remove.
237 (sh_alloc_frame_cache): New function.
238 (sh_frame_cache): Ditto.
239 (sh_frame_prev_register): Ditto.
240 (sh_frame_this_id): Ditto.
241 (sh_frame_unwind): New structure defining the heuristic frame
242 sniffer interface.
243 (sh_frame_sniffer): New function.
244 (sh_unwind_sp): Ditto.
245 (sh_unwind_pc): Ditto.
246 (sh_unwind_dummy_id): Ditto.
247 (sh_frame_base_address): Ditto.
248 (sh_frame_base): New structure defining new frame base code.
249 (sh_in_function_epilogue_p): New function.
250 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
251 code and to call all new code instead. Initialize dwarf2 and
252 heuristic frame sniffer.
253
254 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
255
256 * parser-defs.h (struct exp_descriptor): New definition, containing
257 language-specific info for printing, prefixifying, dumping, and
258 evaluating expressions.
259 (exp_descriptor_standard): Declare new variable.
260 (print_subexp): Make global and declare here (from expprint.c).
261 (dump_subexp): Ditto.
262 (dump_subexp_body_standard): Declare.
263 (operator_length_standard): Declare.
264 (op_name_standard): Declare.
265 (print_subexp): Declare.
266 (print_subexp_standard): Declare.
267
268 * language.h (struct language_defn): Add la_exp_desc field to hold
269 pointer to table for language-specific operators.
270 Remove evaluate_exp field, which is now in struct exp_descriptor.
271
272 * parse.c (operator_length): Move most code to new
273 operator_length_standard function. Use language-specific information.
274 (operator_length_standard): New function taking most code from
275 operator_length.
276 (exp_descriptor_standard): New constant.
277
278 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
279 and OP_EXTENDED_LAST.
280
281 * expprint.c (print_subexp): Use language-specific print_subexp.
282 Make global; remove static declaration.
283 Move most code to print_subexp_standard.
284 (print_subexp_standard): New function, containing code formerly in
285 print_subexp.
286 (op_name): Add expression to argument signature.
287 Use langauge-specific op_name.
288 Move most code to op_name_standard.
289 (op_name_standard): New function, containing code formerly in op_name.
290 (dump_subexp): Use new version of op_name function.
291 Use language-specific dump_subexp_body, and move most existing code to
292 dump_subexp_body_standard.
293 (dump_raw_expression): Use new op_name interface.
294 (dump_subexp_body): Move most code to dump_subexp_body_standard.
295 (dump_subexp_body_standard): New function, containing code formerly
296 in dump_subexp_body.
297
298 * language.c (unknown_language): Add default la_exp_desc field and
299 remove evaluate_exp field.
300 (auto_language): Ditto.
301 (local_language): Ditto.
302 * f-lang.c (f_language_defn): Ditto.
303 * c-lang.c (c_language_defn): Ditto.
304 (cplus_language_defn): Ditto.
305 (asm_language_defn): Ditto.
306 (minimal_language_defn): Ditto.
307 * p-lang.c (pascal_language_defn): Ditto.
308 * m2-lang.c (m2_language_defn): Ditto.
309 * objc-lang.c (objc_language_defn): Ditto.
310
311 * jv-lang.c (exp_descriptor_java): New variable, containing
312 Java-specific expression evaluator.
313 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
314 field.
315 * scm-lang.c (exp_descriptor_scm): New variable, containing
316 Scheme-specific expression evaluator.
317 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
318 field.
319 * objc-lang.c (print_object_command): Take evaluate_exp from the
320 la_exp_desc field.
321
322 * Makefile.in (eval.o): Add dependency on parser-defs.h.
323
324 * eval.c: Include parser-defs.h for the full declaration of
325 la_exp_desc's type.
326 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
327
328 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
329
330 * parser-defs.h (operator_length): Declare.
331
332 * parse.c (length_of_subexp): Use operator_length to get operator
333 lengths and arities for operators.
334 Move most code to new operator_length function.
335 (operator_length): New function absorbing most code from
336 length_of_subexp.
337 (prefixify_subexp): Remove large case and use operator_length instead.
338 (parse_exp_1): Use renamings:
339 dump_prefix_expression => dump_raw_expression and
340 dump_postfix_expression => dump_prefix_expression.
341
342 * expression.h (dump_prefix_expression): Rename to ...
343 (dump_raw_expression): New name.
344 (dump_postfix_expression): Rename to ...
345 (dump_prefix_expression): New name.
346
347 * expprint.c (dump_subexp): Make global. Add comment.
348 Move most existing code to dump_subexp_body.
349 (dump_subexp_body): New function.
350 (dump_prefix_expression): Rename to dump_raw_expression.
351 Remove attempt to print the expression via print_expression: it can't
352 work before the expression is prefixified.
353 (dump_raw_expression): Renamed from dump_prefix_expression.
354 (dump_postfix_expression): Rename to dump_prefix_expression, since
355 that's what it does.
356 Remove 'note' parameter, since this routine must be used on
357 prefixified expression.
358 (dump_prefix_expression): Renamed from dump_postfix_expression.
359
360 2003-09-22 Jim Blandy <jimb@redhat.com>
361
362 * dwarf2read.c (read_array_type): When building the type for an
363 array of unspecified length, make sure to choose the upper bound
364 so that the array's total length comes out to be zero --- that's
365 how we represent such arrays.
366
367 2003-09-22 Michael Chastain <mec@shout.net>
368
369 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
370
371 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
372
373 * top.c (quit_force): Fix indirect call to quit_target so
374 a struct qt_args pointer is passed.
375
376 2003-09-22 Andrew Cagney <cagney@redhat.com>
377
378 * arch-utils.h (init_frame_pc_noop): Delete declaration.
379 * arch-utils.c (init_frame_pc_noop): Delete function.
380 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
381 "init_frame_pc".
382 * mips-tdep.c (mips_gdbarch_init): Ditto.
383 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
384 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
385 declaration.
386 (DEPRECATED_INIT_FRAME_PC): Delete macro.
387 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
388 declaration.
389 (DEPRECATED_INIT_FRAME_PC): Delete macro.
390
391 2003-09-22 Anthony Green <green@redhat.com>
392
393 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
394 declaration.
395
396 2003-09-20 Andrew Cagney <cagney@redhat.com>
397
398 * breakpoint.c: Eliminate ARGSUSED.
399 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
400 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
401 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
402 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
403 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
404 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
405 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
406 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
407 * wince.c, remote-vx.c: Ditto.
408
409 * cli/cli-script.c: Remove "register" attributes.
410 * config/pa/tm-hppa.h: Ditto.
411 * cli/cli-decode.c: Ditto.
412 * cli/cli-cmds.c: Ditto.
413
414 2003-09-19 Andrew Cagney <cagney@redhat.com>
415
416 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
417 DEPRECATED_NPC_REGNUM.
418 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
419
420 2003-09-19 Christopher Faylor <cgf@redhat.com>
421
422 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
423
424 2003-09-19 Jim Blandy <jimb@redhat.com>
425
426 * macrotab.c (macro_include): Use the correct comparison to find
427 the appropriate place for this inclusion in the list.
428
429 2003-09-19 Andrew Cagney <cagney@redhat.com>
430
431 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
432 (DEPRECATED_HPUX_TEXT_END): Define.
433 (deprecated_hpux_text_end): Declare.
434 (struct target_ops): Declare opaque.
435 * hppah-nat.c (text_end): Make static.
436 (deprecated_hpux_text_end): New function.
437 * exec.c (text_end): Delete global variable.
438 (NEED_TEXT_START_END): Do not define.
439 (exec_file_attach): Replace code computing "text_end" code with
440 call to DEPRECATED_HPUX_TEXT_END.
441
442 2003-09-19 Andrew Cagney <cagney@redhat.com>
443
444 * utils.c (align_up, align_down): New functions.
445 * defs.h (align_up, align_down): Declare.
446 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
447 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
448 and "align_down".
449 (round_up, round_down): Delete functions.
450 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
451 "align_down".
452 (ROUND_DOWN, ROUND_UP): Delete macros.
453 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
454 * h8300-tdep.c: Replace "round_up" and "round_down" with
455 "align_up" and "align_down".
456 (round_up, round_down): Delete macros.
457 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
458 "align_down".
459 (ROUND_UP, ROUND_DOWN): Delete macros.
460
461 2003-09-18 J. Brobecker <brobecker@gnat.com>
462
463 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
464 hard-coded constant. Use the proper machine name instead.
465
466 2003-09-17 Andrew Cagney <cagney@redhat.com>
467
468 * sparc-tdep.c (legacy_register_name): Delete function.
469 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
470 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
471 * infcmd.c (gdb_register_name): Delete variable.
472 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
473 REGISTER_NAME and "tm.h".
474 * gdbarch.h, gdbarch.c: Regenerate.
475 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
476 REGISTER_NAMES in comments.
477 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
478 * m68klinux-nat.c (regmap): Ditto.
479
480 2003-09-17 Jim Blandy <jimb@redhat.com>
481
482 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
483
484 2003-09-17 Andrew Cagney <cagney@redhat.com>
485
486 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
487 (ppcnbsd_init_abi): Set "use_struct_convention" to
488 "ppcnbsd_use_struct_convention".
489
490 2003-09-17 Mark Kettenis <kettenis@gnu.org>
491
492 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
493 * gdbarch.h, gdbarch.c: Regenerate.
494 (stabs_argument_has_addr): New architecture method.
495 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
496 * arch-utils.c: Include "buildsym.h".
497 (default_stabs_argument_has_addr): New function.
498 * stabsread.c (define_symbol): Use stabs_argument_has_addr
499 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
500
501 2003-09-17 Andrew Cagney <cagney@redhat.com>
502
503 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
504 * gdbarch.h, gdbarch.c: Regenerate.
505 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
506 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
507 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
508 * sparcnbsd-tdep.c: Update.
509
510 2003-09-17 Andrew Cagney <cagney@redhat.com>
511
512 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
513 * gdbarch.h, gdbarch.c: Regenerate.
514 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
515 * d10v-tdep.c, frame.c: Update.
516 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
517 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
518 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
519 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
520 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
521 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
522 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
523 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
524 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
525 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
526 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
527 * config/pa/nm-hppah.h: Update.
528
529 2003-09-16 Andrew Cagney <cagney@redhat.com>
530
531 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
532 "use_struct_convention" to "ppc_linux_use_struct_convention".
533 (ppc_linux_use_struct_convention): New function.
534 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
535 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
536 "rs6000_use_struct_convention".
537 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
538 declaration.
539 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
540 Delete function.
541
542 2003-09-16 Andrew Cagney <cagney@redhat.com>
543
544 * buildsym.c: Remove more occurances of "register".
545 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
546 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
547 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
548 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
549 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
550 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
551 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
552 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
553
554 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
555
556 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
557 numbers to enumeration values.
558 * sh-tdep.c: Accomodate above change.
559 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
560 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
561 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
562 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
563 (IS_FPUSH): Rename from IS_FMOV.
564 (sh_extract_struct_value_address): Remove useless comment.
565 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
566 instead of own local values.
567 (sh_dump_tdep): Remove.
568 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
569 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
570
571 2003-09-15 Andrew Cagney <cagney@redhat.com>
572
573 * doublest.c (convert_floatformat_to_doublest): No longer need to
574 cast "exp_bias" to an int. Reverts 2002-12-04 change.
575
576 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
577
578 * values.c (unpack_double): Call floatformat_is_valid.
579
580 2003-09-15 Mark Kettenis <kettenis@gnu.org>
581
582 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
583 ps_strings into a long.
584
585 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
586 _initialize_am64fbsd_nat.
587
588 2003-09-15 Kevin Buettner <kevinb@redhat.com>
589
590 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
591 associated with DW_AT_ranges attribute is out of bounds.
592
593 2003-09-15 David Lecomber <dsl@sources.redhat.com>
594
595 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
596
597 2003-09-14 Michael Chastain <mec@shout.net>
598
599 * config/m68k/nm-apollo68v.h: Delete.
600 * config/m68k/xm-apollo68v.h: Delete.
601
602 2003-09-14 Andrew Cagney <cagney@redhat.com>
603
604 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
605 * dcache.c: Update copyrights and descriptions.
606 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
607
608 2003-09-14 Andrew Cagney <cagney@redhat.com>
609
610 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
611 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
612
613 2003-09-14 Andrew Cagney <cagney@redhat.com>
614
615 * alpha-nat.c: Remove some occurances of "register".
616 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
617 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
618 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
619 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
620 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
621 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
622 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
623 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
624 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
625 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
626 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
627 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
628 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
629 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
630 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
631 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
632 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
633 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
634 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
635 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
636 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
637 * values.c, vax-tdep.c, xcoffread.c: Ditto.
638
639 2003-09-13 Andrew Cagney <cagney@redhat.com>
640
641 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
642 * ppc-tdep.h (struct regcache): Declare opaque.
643 * objfiles.h (struct objfile_data): Declare opaque.
644 * cp-support.h (struct objfile): Declare opaque.
645 * linux-nat.h (target_waitstatus): Declare opaque.
646
647 2003-09-14 Mark Kettenis <kettenis@gnu.org>
648
649 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
650 (stabs_argument_has_addr): New architecture method.
651 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
652 * arch-utils.c: Include "buildsym.h".
653 (default_stabs_argument_has_addr): New function.
654 * stabsread.c (define_symbol): Use stabs_argument_has_addr
655 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
656
657 * cris-tdep.c (cris_gdbarch_init): Set
658 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
659 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
660 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
661 * mips-tdep.c (mips_gdbarch_init): Likewise.
662 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
663 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
664
665 2003-09-13 Andrew Cagney <cagney@redhat.com>
666
667 * values.c (using_struct_return): Delete "function" and "funcaddr"
668 parameters.
669 * value.h (using_struct_return): Update declaration.
670 * infcmd.c (finish_command_continuation): Update.
671 (finish_command): Update.
672 * infcall.c (call_function_by_hand): Update.
673 * eval.c (evaluate_subexp_standard): Update.
674
675 2003-09-13 Christopher Faylor <cgf@redhat.com>
676
677 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
678 SSE registers since gdb will not operate correctly without this.
679 Restore include file ordering munged in previous change.
680 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
681
682 2003-09-13 Mark Kettenis <kettenis@gnu.org>
683
684 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
685 REG_STRUCT_HAS_ADDR.
686 * gdbarch.c, gdbarch.h: Updated.
687 * infcall.c (call_function_by_hand): Update.
688 * stabsread.c (define_symbol): Updated.
689
690 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
691
692 2003-09-12 Christopher Faylor <cgf@redhat.com>
693
694 * win32-nat.c: Reorganize so that defines used by target headers are
695 actually defined by the system headers.
696 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
697 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
698
699 2003-09-12 Jim Blandy <jimb@redhat.com>
700
701 * dbxread.c (read_dbx_symtab): Don't report an internal error if
702 the file has no .data, .bss, or .rodata sections. Instead wait
703 until we see a variable alleged to live in one of those sections.
704
705 * dbxread.c (read_dbx_symtab): If we have no .data section and no
706 .bss section, presume that any variables we find live in the
707 .rodata section.
708
709 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
710 offsets for global and static variables.
711
712 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
713 symbol types are, by definition, in the .data section, so it is
714 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
715 If there is no .data section, there should be no N_DATA or N_DATA
716 | N_EXT symbols.
717
718 2003-09-12 Mark Kettenis <kettenis@gnu.org>
719
720 * amd64fbsd-tdep.c: Fix sigtramp recognition.
721 (amd64fbsd_sigcontext_addr): Rewrite.
722 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
723 with correct values.
724 (amd64fbsd_sc_reg_offset): Initialize with correct values.
725 (amd64fbsd_init_abi): Fix typo.
726
727 2003-09-12 Andrew Cagney <cagney@redhat.com>
728
729 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
730 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
731
732 2003-09-12 Andrew Cagney <cagney@redhat.com>
733
734 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
735 "entry_file_highpc". Update comments.
736 * defs.h (deprecated_inside_entry_file): Rename
737 "inside_entry_file".
738 * blockframe.c (deprecated_inside_entry_file): Rename
739 "inside_entry_file".
740 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
741 * vax-tdep.c (vax_frame_chain): Update.
742 * sh64-tdep.c (sh64_frame_chain): Update.
743 * sh-tdep.c (sh_frame_chain): Update.
744 * rs6000-tdep.c (rs6000_frame_chain): Update.
745 * ns32k-tdep.c (ns32k_frame_chain): Update.
746 * mips-tdep.c (mips_frame_chain): Update.
747 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
748 * m32r-tdep.c (m32r_frame_this_id): Update.
749 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
750 * frv-tdep.c (frv_frame_this_id): Update.
751 * d10v-tdep.c (d10v_frame_this_id): Update.
752 * cris-tdep.c (cris_frame_chain): Update.
753 * blockframe.c (legacy_frame_chain_valid): Update.
754 * avr-tdep.c (avr_frame_this_id): Update.
755 * arm-tdep.c (arm_prologue_this_id): Update.
756 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
757 * objfiles.c (objfile_relocate): Update.
758 * mipsread.c (mipscoff_symfile_read): Update.
759 (mipscoff_symfile_read): Update.
760 * mdebugread.c (parse_partial_symbols): Update.
761 * dwarfread.c (read_file_scope): Update.
762 * dwarf2read.c (read_file_scope): Update.
763 * dbxread.c (read_dbx_symtab): Update.
764 (read_dbx_symtab): Update.
765 * coffread.c (complete_symtab): Update.
766
767 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
768
769 * top.c (quit_target): New static helper function.
770 (quit_force): Moved code to quit_target(). Call quit_target()
771 via catch_errors() to catch errors during quit.
772
773 2003-09-11 David Carlton <carlton@kealia.com>
774
775 * buildsym.c (finish_block): Use allocate_block to allocate the
776 block.
777 * mdebugread.c (new_block): Add FIXME.
778
779 2003-09-11 David Carlton <carlton@kealia.com>
780
781 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
782 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
783 (recursive_dump_type): Ditto.
784 * printcmd.c (print_formatted): Ditto.
785 * typeprint.c (print_type_scalar): Ditto.
786 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
787 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
788 * cp-support.h: Declare cp_check_possible_namespace_symbols,
789 maint_cplus_cmd_list.
790 * cp-support.c: Make maint_cplus_cmd_list extern.
791 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
792 command.h.
793 (lookup_symbol_file): Look in possible namespace blocks when
794 appropriate.
795 (initialize_namespace_symtab): New.
796 (get_possible_namespace_block, free_namespace_block)
797 (check_possible_namespace_symbols)
798 (check_possible_namespace_symbols_loop)
799 (check_one_possible_namespace_symbol)
800 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
801 (_initialize_cp_namespace): Ditto.
802 * block.h: Declare allocate_block.
803 * block.c (allocate_block): New.
804 * jv-lang.c (get_java_class_symtab): Allocate blocks via
805 allocate_block.
806 * symfile.h: Update declaration of add_psymbol_to_list.
807 * symfile.c (add_psymbol_to_list): Return the partial symbol in
808 question.
809 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
810 scan_partial_symbols_call.
811 (scan_partial_symbols): Add NAMESPACE argument; update calls to
812 helper functions.
813 (add_partial_symbol): If necessary, scan mangled names for names
814 of namespaces.
815 (add_partial_namespace): Add NAMESPACE argument; generate partial
816 symbols associated to namespaces.
817 (add_partial_enumeration): Add NAMESPACE argument.
818 (new_symbol): Allow namespace syms.
819 (read_namespace): Generate namespace syms.
820 * objfiles.h: Add opaque declaration of struct symtab.
821 (struct objfile): Add cp_namespace_symtab member.
822 * objfiles.c (allocate_objfile): Set
823 objfile->cp_namespace_symtab.
824 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
825 dictionary_h, command_h.
826
827 2003-09-11 Andrew Cagney <cagney@redhat.com>
828
829 * rs6000-tdep.c (rs6000_push_dummy_call): Use
830 regcache_raw_write_signed to set SP_REGNUM, move the operation to
831 near the function's end.
832 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
833 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
834 regcache_raw_write_signed to set SP_REGNUM.
835
836 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
837
838 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
839 orig_addrs is set up properly.
840
841 2003-09-11 Andrew Cagney <cagney@redhat.com>
842
843 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
844 * gdbarch.h, gdbarch.c: Re-generate.
845 * infcall.c (call_function_by_hand): Update.
846 * hppa-tdep.c (hppa_push_arguments): Update.
847 * ada-lang.c (place_on_stack): Update.
848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
849 * sparc-tdep.c (sparc_gdbarch_init): Update.
850 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
851 * hppa-tdep.c (hppa_gdbarch_init): Update.
852 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
853 stack_align.
854
855 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
856
857 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
858 register do need a frame.
859
860 2003-09-11 Andrew Cagney <cagney@redhat.com>
861
862 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
863 buildable since GDB 5.0.
864 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
865 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
866 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
867 * irix4-nat.c: Delete file.
868 * config/mips/irix4.mh: Delete file.
869 * config/mips/irix3.mh: Delete file.
870 * config/mips/irix3.mt: Delete file.
871 * config/mips/tm-irix3.h: Delete file.
872 * config/mips/nm-irix3.h: Delete file.
873 * config/mips/xm-irix3.h: Delete file.
874 * config/mips/nm-irix4.h: Delete file.
875 * config/mips/xm-irix4.h: Delete file.
876 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
877
878 2003-09-10 J. Brobecker <brobecker@gnat.com>
879
880 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
881 * Makefile.in (hppa-tdep.o): Update dependencies.
882
883 2003-09-10 James E Wilson <wilson@specifixinc.com>
884
885 * MAINTAINERS: Change my e-mail address. Move to paper trail
886 section.
887
888 2003-09-10 Kevin Buettner <kevinb@redhat.com>
889
890 * MAINTAINERS (frv): New ISA entry.
891
892 2003-09-10 Kevin Buettner <kevinb@redhat.com>
893
894 * frv-tdep.c (dis-asm.h): Include.
895 * Makefile.in (frv-tdep.o): Update dependencies.
896
897 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
898
899 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
900 Fix typo for high range of floating registers.
901
902 2003-09-09 David Carlton <carlton@kealia.com>
903
904 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
905 highpc initialization here out of scan_partial_symbols.
906 (scan_partial_symbols): Restructure into a recursive version,
907 calling add_partial_namespace and add_partial_enumeration when
908 appropriate.
909 (add_partial_namespace): New.
910 (add_partial_enumeration, locate_pdi_sibling): Ditto.
911
912 2003-09-09 Andrew Cagney <cagney@redhat.com>
913
914 * rs6000-tdep.c (ppc_push_return_address): Delete function.
915 (rs6000_push_dummy_call): Set LR to BP_ADDR.
916 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
917 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
918
919 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
920 (rs6000_push_dummy_call): Set the "TOC" register.
921
922 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
923 methods "max_register_raw_size", "max_register_virtual_size" or
924 "register_virtual_size".
925
926 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
927
928 * MAINTAINERS: Update my e-mail address.
929
930 2003-09-09 Andrew Cagney <cagney@redhat.com>
931
932 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
933 (rs6000_push_dummy_call): Store the struct return address.
934 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
935
936 2003-09-09 Andrew Cagney <cagney@redhat.com>
937
938 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
939 "ppc_sysv_abi_push_arguments".
940 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
941 "ppc_sysv_abi_push_arguments".
942 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
943 instead of "push_arguments".
944 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
945
946 2003-09-09 Andrew Cagney <cagney@redhat.com>
947
948 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
949 instead of CALL_DUMMY_ADDRESS.
950
951 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
952
953 * p-lang.c: Eliminate "register".
954 * c-lang.c: Ditto.
955 * expprint.c: Ditto.
956 * f-lang.c: Ditto.
957 * jv-lang.c: Ditto.
958 * language.c: Ditto.
959 * m2-lang.c: Ditto.
960 * parse.c: Ditto.
961 * scm-lang.c: Ditto.
962 * objc-lang.c: Ditto.
963
964 2003-09-09 Nick Clifton <nickc@redhat.com>
965
966 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
967
968 2003-09-04 Andrew Cagney <cagney@redhat.com>
969
970 * avr-tdep.c: Include "dis-asm.h".
971 * cris-tdep.c: Include "dis-asm.h".
972 (cris_delayed_get_disassembler): Use "struct disassemble_info"
973 instead of corresponding typedef.
974 * h8300-tdep.c: Include "dis-asm.h".
975 * ia64-tdep.c: Include "dis-asm.h".
976 * i386-tdep.c: Include "dis-asm.h".
977 (i386_print_insn): Use "struct disassemble_info" instead of
978 corresponding typedef.
979 * m68k-tdep.c: Include "dis-asm.h".
980 * mcore-tdep.c: Include "dis-asm.h".
981 * mips-tdep.c: Include "dis-asm.h".
982 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
983 instead of corresponding typedef.
984 * ns32k-tdep.c: Include "dis-asm.h".
985 * s390-tdep.c: Include "dis-asm.h".
986 * sparc-tdep.c: Include "dis-asm.h".
987 * vax-tdep.c: Include "dis-asm.h".
988 * v850-tdep.c: Include "dis-asm.h".
989 * mn10300-tdep.c: Include "dis-asm.h".
990 * rs6000-tdep.c: Include "dis-asm.h".
991 * xstormy16-tdep.c: Include "dis-asm.h".
992 (_initialize_xstormy16_tdep): Delete "extern" declaration of
993 print_insn_xstormy16.
994 * Makefile.in (v850-tdep.o): Update dependencies.
995 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
996 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
997 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
998 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
999 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1000 (gdbarch_h): Remove $(dis_asm_h).
1001 * disasm.c: Include "dis-asm.h".
1002 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1003 corresponding typedef.
1004 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1005 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1006 * gdbarch.sh: Do not include "dis-asm.h".
1007 (struct disassemble_info): Declare opaque.
1008 (TARGET_PRINT_INSN): Update declaration.
1009 * gdbarch.h, gdbarch.c: Re-generate.
1010
1011 2003-09-08 Andrew Cagney <cagney@redhat.com>
1012
1013 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1014 CALL_DUMMY_ADDRESS, change to a predicate.
1015 * gdbarch.h, gdbarch.c: Re-generate.
1016 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1017 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1018 * infcall.c (call_function_by_hand): Ditto.
1019 * sparc-tdep.c (sparc_push_return_address): Ditto.
1020 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1021 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1022 CALL_DUMMY_ADDRESS with entry_point_address.
1023 * v850-tdep.c (v850_push_return_address): Ditto.
1024 * s390-tdep.c (s390_push_return_address): Ditto.
1025 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1026 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1027 * mcore-tdep.c (mcore_push_return_address): Ditto.
1028 * cris-tdep.c (cris_push_return_address): Ditto.
1029 * arm-tdep.c (arm_push_return_address): Ditto.
1030
1031 2003-09-08 Andrew Cagney <cagney@redhat.com>
1032
1033 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1034 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1035 and REG_UNMODIFIED to REG_SAME_VALUE.
1036 (execute_cfa_program): Update.
1037 (dwarf2_frame_cache): Update. Initialize table to
1038 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1039 location.
1040 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1041
1042 2003-09-08 Andrew Cagney <cagney@redhat.com>
1043
1044 * gnu-nat.c: Remove "inline" function attribute.
1045 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1046
1047 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1048
1049 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1050 target.
1051
1052 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1053
1054 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1055 (frame_extra_info): Rename this struct to frv_unwind_cache.
1056 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1057 Add fields ``prev_sp'' and ``base''.
1058 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1059 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1060 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1061 Delete.
1062 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1063 Revise all callers. Fill in the unwind cache argument and make
1064 other adjustments to account for new frame mechanisms.
1065 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1066 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1067 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1068 (frv_frame_unwind, frv_frame_base): New structs.
1069 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1070 additional arguments expected by this method and adjust function
1071 body accordingly.
1072 (frv_gdbarch_init): Remove calls to the following functions:
1073 set_gdbarch_deprecated_init_frame_pc(),
1074 set_gdbarch_deprecated_saved_pc_after_call(),
1075 set_gdbarch_deprecated_frame_chain(),
1076 set_gdbarch_deprecated_frame_saved_pc(),
1077 set_gdbarch_deprecated_frame_init_saved_regs(),
1078 set_gdbarch_deprecated_push_arguments(),
1079 set_gdbarch_deprecated_push_return_address(),
1080 set_gdbarch_deprecated_pop_frame(),
1081 set_gdbarch_deprecated_call_dummy_words(),
1082 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1083 set_gdbarch_deprecated_init_extra_frame_info(),
1084 set_gdbarch_deprecated_dummy_write_sp(), and
1085 set_gdbarch_deprecated_pc_in_call_dummy().
1086 Add calls to the following functions:
1087 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1088 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1089 frame_base_set_default().
1090 * Makefile.in (frv-tdep.o): Update dependencies.
1091
1092 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1093
1094 * dwarf2-frame.c (read_encoded_value): Add support for
1095 DW_EH_PE_aligned encoding.
1096
1097 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1098
1099 * infrun.c (normal_stop): Don't print a message if the inferior
1100 has exited.
1101
1102 2003-09-08 Jim Blandy <jimb@redhat.com>
1103
1104 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1105 * dbxread.c: #include "gdb_assert.h".
1106 (read_dbx_symtab): If the objfile has no .data section, use the
1107 section index for the .bss section instead.
1108
1109 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1110
1111 * frame.c (deprecated_safe_get_selected_frame): New function.
1112 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1113 * findvar.c (read_var_value): Call it.
1114
1115 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1116
1117 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1118 (sh64-tdep.o): Add dependencies.
1119 * configure.tgt: Add FIXME to sh-*-linux*.
1120 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1121 (sh_gdbarch_init): Always set correct sh_show_regs function
1122 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1123 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1124 * sh64-tdep.c: New file, containing all sh64 related code from
1125 sh-tdep.c.
1126 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1127 * config/sh/linux.mt (TDEPFILES): Ditto.
1128 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1129 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1130 * config/sh/wince.mt (TDEPFILES): Ditto.
1131
1132 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1133
1134 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1135 (stop_wait_callback): Handle !lp->signalled also.
1136 (lin_lwp_has_pending, flush_callback): New functions.
1137 (lin_lwp_wait): Call flush_callback.
1138 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1139 (linux_proc_pending_signals): New function.
1140 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1141
1142 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1143
1144 From Nick Kelsey <nickk@ubicom.com>:
1145 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1146 when the stop PC is at the beginning of a function also.
1147
1148 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1149
1150 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1151 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1152
1153 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1154
1155 * sol-thread.c: Include "gdb_string.h".
1156
1157 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1158
1159 * gcore.c: Reorder include files in alphabetical order. Include
1160 "gdb_assert.h". Various coding style fixes.
1161 (derive_stack_segment, derive_heap_segment): Replace check for
1162 non-null BOTTOM and TOP with gdb_assert.
1163 (derive_heap_segment): Replace check for successful creation of
1164 ZERO with gdb_assert.
1165 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1166
1167 2003-09-04 Andrew Cagney <cagney@redhat.com>
1168
1169 * thread-db.c (verbose_dlsym): New function.
1170 (thread_db_load): Use verbose_dlsym
1171 (thread_db_new_objfile): Print that libthread_db was loaded, and
1172 that thread debugging was enabled.
1173
1174 2003-09-04 Andrew Cagney <cagney@redhat.com>
1175
1176 * configure.tgt: Add "mips64*-*-*" target. Delete
1177 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1178 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1179 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1180 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1181 mips*-sony-*, and mips64*-*-elf* targets.
1182 * config/mips/embedl.mt: Delete file.
1183 * config/mips/embedl64.mt: Delete file.
1184 * config/mips/mips.mt: Delete file.
1185 * config/mips/mips64.mt: Delete file.
1186 * config/mips/tm-embed.h: Delete file.
1187 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1188 * config/mips/embed64.mt: Delete out-of-date comment.
1189
1190 2003-09-04 Andrew Cagney <cagney@redhat.com>
1191
1192 * hppa-tdep.c (hppa_gdbarch_init): Set
1193 "have_nonsteppable_watchpoint".
1194 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1195 * mips-tdep.c (mips_dump_tdep): Do not print
1196 HAVE_NONSTEPPABLE_WATCHPOINT.
1197 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1198 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1199 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1200 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1201
1202 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1203
1204 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1205 unused code. Add comment.
1206
1207 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1208
1209 * breakpoint.c (watchpoint_check): Check for pc being in an
1210 epilogue if watchpoint frame couldn't be found.
1211
1212 2003-09-04 Andrew Cagney <cagney@redhat.com>
1213
1214 * Makefile.in: Re-generate all dependencies.
1215
1216 2003-09-03 Andrew Cagney <cagney@redhat.com>
1217
1218 * arch-utils.h (legacy_print_insn): Delete declaration.
1219 * arch-utils.c (legacy_print_insn): Delete function.
1220 * disasm.c (deprecated_tm_print_insn_info): Delete.
1221 (_initialize_disasm): Delete function, contained code initializing
1222 deprecated_tm_print_insn_info.
1223 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1224 (deprecated_tm_print_insn_info): Delete.
1225 (TARGET_PRINT_INSN): Do not provide a default.
1226 * gdbarch.h, gdbarch.c: Re-generate.
1227
1228 2003-09-03 Andrew Cagney <cagney@redhat.com>
1229
1230 * disasm.c (fprintf_disasm): New function.
1231 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1232 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1233 reverts 2003-08-14 change.
1234 (_initialize_disasm): Call "init_disassemble_info", instead of
1235 INIT_DISASSEMBLE_INFO_NO_ARCH.
1236
1237 2003-09-03 Michael Snyder <msnyder@redhat.com>
1238
1239 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1240
1241 2003-09-03 Andrew Cagney <cagney@redhat.com>
1242
1243 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1244 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1245 * symfile.c (syms_from_objfile): Update.
1246 (reread_symbols): `Update
1247 * exec.c (exec_file_attach): Update.
1248 (exec_file_attach): Update.
1249 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1250 2003-08-29 change.
1251 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1252
1253 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1254
1255 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1256 trad-frame.h.
1257 (arm_get_cache): Delete macro.
1258 (struct arm_prologue_cache): Update comments. Make saved_regs into
1259 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1260 to prev_sp.
1261 (thumb_scan_prologue): Update for cache changes. Don't call
1262 DEPRECATED_PC_IN_CALL_DUMMY.
1263 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1264 argument and use it in desperation search for our prologue. Do not
1265 search past the specified PC.
1266 (arm_make_prologue_cache): Simplify.
1267
1268 (arm_prologue_this_id, arm_prologue_prev_register)
1269 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1270 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1271 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1272 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1273 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1274
1275 (arm_frame_chain_valid, arm_find_callers_reg)
1276 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1277 (arm_pop_frame): Delete obsolete methods.
1278 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1279
1280 (arm_gdbarch_init): Update for new frame methods. Register prologue
1281 and sigtramp unwinders. Set the default frame base method.
1282
1283 * Makefile.in (arm-tdep.o): Update dependencies.
1284 * varobj.c (find_frame_addr_in_frame_chain): Call
1285 get_frame_base_address.
1286 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1287
1288 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1289
1290 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1291 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1292 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1293 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1294 Take NEXT_FRAME and CACHE arguments. Call
1295 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1296 Set unwound_pc in CACHE instead of modifying the frame argument.
1297 Don't bother checking the frame type when looking for sigtramp
1298 frames.
1299 (arm_make_prologue_cache, arm_frame_chain)
1300 (arm_init_extra_frame_info): New functions.
1301
1302 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1303
1304 * arm-tdep.c (arm_get_cache): Define.
1305 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1306 unwound_sp, unwound_pc, and saved_regs.
1307 (thumb_scan_prologue): Take a cache instead of the frame.
1308 (arm_scan_prologue): Likewise.
1309 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1310 instead of a temporary frame.
1311 (arm_init_extra_frame_info): Allocate and use a cache.
1312 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1313
1314 2003-09-03 Andrew Cagney <cagney@redhat.com>
1315
1316 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1317 * config/mips/wince.mt (TM_CLIBS): Ditto.
1318 * config/sh/wince.mt (TM_CLIBS): Ditto.
1319 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1320 * config/sparc/sp64.mt (CC): Delete.
1321
1322 2003-09-03 Andrew Cagney <cagney@redhat.com>
1323
1324 * defs.h: Do not include "arch-utils.h".
1325 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1326 GDB_MULTI_ARCH_PURE.
1327 * configure.in (GDB_MULTI_ARCH): Do not define.
1328 * configure, config.in: Regenerate.
1329 * configure.tgt: Do not set variable "gdb_multi_arch".
1330 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1331 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1332 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1333 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1334 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1335 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1336 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1337 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1338 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1339 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1340 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1341 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1342 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1343 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1344 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1345 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1346 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1347 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1348
1349 2003-08-30 Michael Chastain <mec@shout.net>
1350
1351 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1352 * config/m68k/nm-hp300hpux.h: Delete.
1353 * config/m68k/tm-hp300hpux.h: Delete.
1354 * config/m68k/xm-hp300hpux.h: Delete.
1355 * config/m68k/xm-hp300bsd.h: Delete.
1356 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1357 tm-hp300hpux.h, xm-hp300hpux.h.
1358 * somsolib.c: Remove comment about hp300 shared libraries.
1359
1360 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1361
1362 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1363 Only define PTRACE_GET_THREAD_AREA is not already defined.
1364 Various style fixes in code and comments and some additional
1365 spelling fixes in comments. Move after functions dealing with
1366 debug registers.
1367 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1368 Fix coding-style.
1369
1370 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1371 frame_unwind_register_unsigned instead of
1372 frame_unwind_unsigned_register.
1373
1374 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1375
1376 * configure.in: Search for gethostbyname in libnsl.
1377 * configure: Regenerated.
1378
1379 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1380
1381 * configure.in: Remove redundant AC_MSG_RESULT in check for
1382 uintptr_t in stdint.h.
1383 * configure: Regenerated.
1384
1385 * amd64-nat.h (struct regcache): Add opaque declaration.
1386
1387 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1388 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1389 Change "register array" to "register cache" in comments.
1390 (x86_64_linux_gregset64_reg_offset): New variable.
1391 (GETREGS_SUPPLIES): Remove macro.
1392 (supply_gregset): Call amd64_supply_native_gregset instead of
1393 x86_64_linux_supply_gregset.
1394 (fill_gregset): Rename `regno' to `regnum'. Call
1395 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1396 (store_regs): Rename `regno' to `regnum'.
1397 (store_fpregs): Rename `regno' to `regnum'.
1398 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1399 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1400 Reorganize function a bit.
1401 (store_inferior_registers): Rename `regno' to `regnum'. Use
1402 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1403 Reorganize function a bit.
1404 (_initialize_x86_64_linux_nat): New function.
1405 * config/i386/x86-64linux.mh.
1406
1407 2003-08-29 Andrew Cagney <cagney@redhat.com>
1408
1409 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1410 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1411 (target_remove_watchpoint): Delete macro.
1412 (target_insert_watchpoint): Delete macro.
1413 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1414 (remote_mips_stopped_by_watchpoint): Delete declaration.
1415 (remote_mips_remove_watchpoint): Delete declaration.
1416 (remote_mips_set_watchpoint): Delete declaration.
1417 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1418 * remote-mips.c (_initialize_remote_mips): Set
1419 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1420 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1421 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1422 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1423 (mips_stopped_by_watchpoint): Rename
1424 remote_mips_stopped_by_watchpoint.
1425 (mips_can_hardware_watchpoint): Rename
1426 remote_mips_can_use_hardware_watchpoint, update function
1427 signature.
1428
1429 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1430
1431 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1432 USER_DS. We haven't given them a register number yet.
1433
1434 * amd64-nat.h: New file.
1435 * amd64-nat.c: New file.
1436 * amd64fbsd-nat.c: Include "amd64-nat.h".
1437 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1438 (amd64fbsd32_r_reg_offset): New variable.
1439 (supply_gregset): Simply call amd64_supply_native_gregset.
1440 (fill_gregset): Rename `regno' to `regnum'. Simply call
1441 amd64_collect_native_gregset.
1442 (fill_fpregset): Rename `regno' to `regnum'.
1443 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1444 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1445 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1446 `fpregset_t'. Call amd64_supply_native_gregset instead of
1447 supply_gregset. Call x86_64_supply_fxsave instead of
1448 supply_fpregset.
1449 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1450 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1451 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1452 `fpregset_t'. Call amd64_collect_native_gregset instead of
1453 fill_gregset. Call x86_64_collect_fxsave instead of
1454 fill_fpregset.
1455 (_initialize_am64fbsd_nat): Initialize
1456 amd64_native_gregset32_reg_offset and
1457 amd64_native_gregset64_reg_offset.
1458 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1459
1460 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1461 null pointer. Fix typo in comment.
1462
1463 * regcache.c (supply_register): Reimplement to call
1464 regcache_raw_supply.
1465 (regcache_collect): Reimplement by calling regcache_raw_collect.
1466
1467 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1468
1469 * regcache.c (register_buffer): Consitify first argument.
1470 (regcache_raw_supply, regcache_raw_collect): New
1471 functions.
1472
1473 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1474
1475 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1476 by Nathan J. Williams.
1477
1478 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1479
1480 * lin-lwp.c (wait_lwp): New function, copied from
1481 stop_wait_callback. Clean up.
1482 (stop_wait_callback): Use wait_lwp.
1483
1484 2003-08-28 Andrew Cagney <cagney@redhat.com>
1485
1486 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1487 flavour and disassembler options.
1488 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1489 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1490 deprecated_tm_print_insn_info.
1491
1492 2003-08-27 Andrew Cagney <cagney@redhat.com>
1493
1494 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1495 Use target_read_memory.
1496 (s390_get_frame_info): Update. Do not reference
1497 deprecated_tm_print_insn_info.
1498 (s390_check_function_end, s390_is_sigreturn): Ditto.
1499
1500 2003-08-27 Andrew Cagney <cagney@redhat.com>
1501
1502 * Makefile.in (cris-tdep.o): Update dependencies.
1503 * cris-tdep.c: Include "gdb_assert.h".
1504 (cris_gdbarch_init): Set print_insn.
1505 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1506 (cris_delayed_get_disassembler): Simplify, directly call the
1507 disassembler returned by cris_get_disassembler.
1508 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1509 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1510 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1511 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1512 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1513 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1514 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1515 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1516 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1517 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1518 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1519 (gdb_print_insn_sparc): Delete function.
1520 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1521 deprecated_tm_print_insn_info.
1522 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1523 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1524 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1525 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1526 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1527 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1528 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1529 (s390_gdbarch_init): Set print_insn.
1530
1531 2003-08-27 Andrew Cagney <cagney@redhat.com>
1532
1533 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1534 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1535 * infcall.c (call_function_by_hand): Convert the entry point
1536 address into a code address.
1537
1538 2003-08-27 Andrew Cagney <cagney@redhat.com>
1539
1540 * dsrec.c: Include "gdb_string.h".
1541 * Makefile.in (dsrec.o): Update dependencies.
1542
1543 2003-08-27 Michael Chastain <mec@shout.net>
1544
1545 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1546
1547 2003-08-27 Andrew Cagney <cagney@redhat.com>
1548
1549 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1550 (alpha_osf1_init_abi): Do not set call_dummy_address.
1551
1552 2003-08-27 David Carlton <carlton@kealia.com>
1553
1554 From Randolph Chung <tausq@debian.org>:
1555 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1556 compiles with -Wformat-nonliteral -Werror.
1557
1558 2003-08-26 Jim Blandy <jimb@redhat.com>
1559
1560 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1561 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1562 bfd_lookup_symbol, since we only want symbols in code sections.
1563 (look_for_base): Pass zero as the SECT_FLAGS argument to
1564 bfd_lookup_symbol, since we're not concerned about which section
1565 the symbol is in.
1566
1567 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1568
1569 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1570 we are frameless or the return address register is already known.
1571
1572 2003-08-26 Andrew Cagney <cagney@redhat.com>
1573
1574 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1575 in size. Add comments.
1576
1577 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1578
1579 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1580 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1581
1582 2003-08-26 Jason Merrill <jason@redhat.com>
1583
1584 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1585 case out of #ifdef MIPS block.
1586
1587 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1588
1589 PR java/1322
1590 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1591 available before calling SECT_OFF_TEXT.
1592 * PROBLEMS: Remove description of java/1322.
1593
1594 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1595
1596 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1597 bof, and nat0-nat127 as pseudo-registers.
1598 (ia64_frame_cache): New struct used to cache frame info.
1599 (ia64_register_reggroup_p): New routine used to override default
1600 register grouping so registers without names are still saved and
1601 restored.
1602 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1603 pseudo values.
1604 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1605 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1606 (ia64_alloc_frame_cache): New routine to create a new
1607 ia64_frame_cache.
1608 (examine_prologue): Change prototype to add next_frame pointer.
1609 Assume frameless until otherwise proven. Verify that the cfm for
1610 current frame matches the cfm that should occur for the prologues
1611 alloc insn and if equal, mark as not frameless. At end of routine,
1612 if not frameless, calculate registers for the previous frame and store
1613 in the cache, if a cache is provided.
1614 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1615 and pass 0 for next_frame.
1616 (ia64_store_return_value): Change to use convert_typed_floating()
1617 instead of calling ia64_convert_to_raw().
1618 (ia64_extract_return_value): Change to use convert_typed_floating()
1619 instead of calling ia64_convert_to_virtual().
1620 (ia64_frame_cache): New routine to support new frame model.
1621 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1622 (ia64_frame_sniffer): Ditto.
1623 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1624 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1625 (ia64_sigtramp_frame_prev_register): Ditto.
1626 (ia64_sigtramp_frame_sniffer): Ditto.
1627 (ia64_frame_base_address): Ditto.
1628 (ia64_extract_struct_value_address): Change to issue error message.
1629 (ia64_frame_align): New routine to align sp.
1630 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1631 (ia64_push_arguments): Removed. Logic moved to
1632 ia64_push_dummy_call().
1633 (ia64_push_return_address): Ditto.
1634 (ia64_unwind_dummy_id): New function.
1635 (ia64_unwind_pc): Ditto.
1636 (ia64_convert_register_p): Ditto.
1637 (ia64_register_to_value): Ditto.
1638 (ia64_value_to_register): Ditto.
1639 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1640 (ia64_register_byte, ia64_register_raw_size): Ditto.
1641 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1642 (ia64_saved_pc_after_call): Ditto.
1643 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1644 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1645 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1646 (ia64_register_convert_to_raw): Ditto.
1647 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1648 (ia64_init_extra_frame_info): Ditto.
1649 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1650 (ia64_gdbarch_init): Remove registering of deprecated functions that
1651 are no longer used. Add registration of new gdbarch functions.
1652 Remove registering deprecated_write_sp. Replace
1653 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1654 Delete set_gdbarch_deprecated_register_convertible(),
1655 set_gdbarch_deprecated_register_convert_to_virtual(), and
1656 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1657 set_gdbarch_deprecated_register_size(),
1658 set_gdbarch_deprecated_register_bytes(),
1659 set_gdbarch_pcregnum(),
1660 set_gdbarch_deprecated_register_byte(),
1661 set_gdbarch_deprecated_register_raw_size(),
1662 set_gdbarch_deprecated_max_register_raw_size(),
1663 set_gdbarch_deprecated_register_virtual_size(),
1664 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1665 Replace set_gdbarch_deprecated_extract_return_value() with
1666 set_gdbarch_extract_return_value(). Remove calls to:
1667 set_gdbarch_deprecated_saved_pc_after_call();
1668 set_gdbarch_deprecated_frame_chain(),
1669 set_gdbarch_deprecated_frame_saved_pc(),
1670 set_gdbarch_deprecated_frame_init_saved_regs(),
1671 set_gdbarch_deprecated_get_saved_register(),
1672 set_gdbarch_deprecated_call_dummy_words(),
1673 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1674 set_gdbarch_deprecated_init_extra_frame_info(),
1675 set_gdbarch_deprecated_frame_args_address(),
1676 set_gdbarch_deprecated_frame_locals_address(),
1677 and set_gdbarch_deprecated_dummy_write_sp().
1678 Add set_gdbarch_convert_register_p(),
1679 set_gdbarch_register_to_value(),
1680 set_gdbarch_value_to_register(),
1681 set_gdbarch_push_dummy_call(),
1682 set_gdbarch_frame_align(),
1683 set_gdbarch_unwind_dummy_id(),
1684 set_gdbarch_unwind_pc(),
1685 frame_unwind_append_sniffer(),
1686 frame_unwind_append_sniffer(),
1687 and frame_base_set_default().
1688
1689 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1690
1691 * configure.tgt: Document need for special "mipsisa64" handling.
1692 (mipsisa64*-*-linux64): Handle as target linux64.
1693 (mipsisa64*-*-*): Handle as target embed64.
1694
1695 2003-08-18 Michael Chastain <mec@shout.net>
1696
1697 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1698 objfile bug.
1699
1700 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1701
1702 * i387-tdep.h: Update copyright date.
1703 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1704
1705 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1706 CFLAGS games to reflect reality.
1707
1708 2003-08-24 Andrew Cagney <cagney@redhat.com>
1709
1710 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1711 GDB_MULTI_ARCH is always non-zero.
1712 * osabi.c (_initialize_gdb_osabi): Ditto.
1713 (gdbarch_init_osabi): Ditto.
1714 * sparc-tdep.c: Ditto for #if code.
1715
1716 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1717
1718 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1719 Update comments.
1720 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1721 comments.
1722 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1723 x86_64_supply_fxsave.
1724 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1725 x86_64_supply_fxsave.
1726 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1727 x86_64_supply_fxsave.
1728
1729 2003-08-23 Andreas Jaeger <aj@suse.de>
1730
1731 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1732 i387_supply_fxsave.
1733
1734 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1735
1736 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1737 i387_supply_register.
1738 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1739 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1740 i387_supply_fsave.
1741 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1742 i387_supply_fxsave.
1743 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1744 i387_supply_fsave.
1745 * i386bsd-nat.c (supply_fpregset): Adjust call to
1746 i387_supply_fsave.
1747 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1748 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1749 supply_fpregset.
1750 (store_inferior_registers): Remove extraneous whitespace. Call
1751 i387_fill_fsave instead of fill_fpregset.
1752 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1753 (supply_fpregset): Likewise.
1754 * i386v4-nat.c (supply_fpregset): Adjust call to
1755 i387_supply_fsave.
1756 * i386-interix-nat.c (supply_fpregset): Adjust call to
1757 i387_supply_fsave.
1758 * i386-linux-nat.c (supply_fpregset): Adjust call to
1759 i387_supply_fsave.
1760 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1761 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1762 i387supply_fsave and i387_supply_fxsave.
1763 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1764 Incorporate code from `i387_supply_register.
1765 (i387_supply_register): Remove.
1766 (i387_supply_fxsave): Add `regnum' argument.
1767 Update comments.
1768 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1769 prototype.
1770 (i387_supply_register): remove prototype.
1771 Update comments.
1772
1773 2003-08-22 Michael Chastain <mec@shout.net>
1774
1775 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1776 Add lines for files in gdb/testsuite/gdb.cp/* that are
1777 still not 8.3 unique.
1778
1779 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1780
1781 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1782 TYPE_VPTR_FIELDNO is valid.
1783
1784 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1785
1786 * utils.c (set_width_command): Remove prototypes.
1787 (set_screen_size): New prototype.
1788 (init_page_info): Simplify by fetching the screen size from
1789 Readline. Call set_screen_size.
1790 (set_screen_size): New function.
1791 (set_width): Add missing whitespace in comment.
1792 (set_width_command): Call set_screen_size.
1793 (set_height_command): New function.
1794 (initialize_utils): Fix formatting. Make "set height" command
1795 call set_height_command. Remove redundant code that turns off
1796 pagination if output isn't a terminal. Remove redundant call to
1797 set_width_command.
1798
1799 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1800
1801 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1802 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1803 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1804 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1805 `case' keyword.
1806 (sparc64_register_info): Give the reister with number
1807 SPARC64_STATE_REGNUM a name.
1808 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1809 %asi and %ccr.
1810 (sparc64_push_dummy_call): Take BIAS into account when checking
1811 stcak alignment.
1812 (sparc_software_single_step): Remove assertions that check whether
1813 NPC and NNPC were zero.
1814 (sparc_supply_rwindow): Make public. Merge functionality with
1815 sparc64_supply_rwindow.
1816 (sparc_fill_rwindow): Make public. Merge functionality with
1817 sparc64_fill_rwindow.
1818 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1819 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1820 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1821 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1822 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1823
1824 * reggroups.c: Add whitespace after declarations of local
1825 variables in functions.
1826
1827 2003-08-21 Michael Chastain <mec@shout.net>
1828
1829 * gdbtypes.h: Change array bound type from an int to enum.
1830
1831 2003-08-21 Andrew Cagney <cagney@redhat.com>
1832
1833 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1834 * config/sparc/tm-sparc.h: Ditto.
1835 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1836 unconditionally.
1837 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1838
1839 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1840
1841 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1842 (register_objfile_data, set_objfile_data, objfile_data): New
1843 prototypes.
1844 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1845 prototypes.
1846 (allocate_objfile): Call objfile_alloc_data.
1847 (free_objfile): Call objfile_free_data.
1848 (struct objfile_data): New.
1849 (struct objfile_data_registration): New.
1850 (struct objfile_data_registry): New.
1851 (objfile_data_registry): New variable.
1852 (register_objfile_data): New function.
1853 (objfile_alloc_data, objfile_free_data): New functions.
1854 (set_objfile_data, objfile_data): New functions.
1855 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1856 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1857 (_initialize_dwarf2_frame): New function and prototype.
1858
1859 2003-08-21 Andrew Cagney <cagney@redhat.com>
1860
1861 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1862 a specific architecture.
1863 * arch-utils.h (set_architecture_from_arch_mach): Delete
1864 declaration.
1865 (target_architecture_hook): Delete declaration.
1866 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1867 (default_float_format): Assume GDB_MULTI_ARCH.
1868 (default_double_format): Assume GDB_MULTI_ARCH.
1869 (set_endian_from_file): Delete function.
1870 (arch_ok): Delete function.
1871 (set_arch): Delete function.
1872 (set_architecture_from_arch_mach): Delete function.
1873 (set_architecture_from_file): Delete function.
1874 (set_architecture): Assume GDB_MULTI_ARCH.
1875 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1876
1877 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1878
1879 Rewrite FreeBSD/sparc64 native configuration.
1880 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1881 * sparc64fbsd-nat.c: New file.
1882 * sparc64fbsd-tdep.c: New file.
1883 * sparc64-tdep.c sparc64-tdep.h: New files.
1884 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1885 sparc64fbsd-tdep.o): New dependencies.
1886 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1887 and sparc64fbsd-tdep.c.
1888 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1889 * config/sparc/fbsd.mh: Remove copyright notice.
1890 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1891 sparcbsd-nat.o.
1892 * config/sparc/fbsd.mt: Remove copyright notice.
1893 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1894 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1895 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1896 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1897 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1898 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1899 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1900 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1901 "sparc/tm-sp64.h".
1902 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1903 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1904
1905 2003-08-21 Michael Chastain <mec@shout.net>
1906
1907 * symtab.h: Add doco on the space critical structures and
1908 some measurements of space usage.
1909
1910 2003-08-21 Michael Snyder <msnyder@redhat.com>
1911
1912 * tracepoint.c (trace_dump_command): Trace break address
1913 is subject to DECR_PC_AFTER_BREAK.
1914 (set_traceframe_context): Make "trace_line" an int.
1915 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1916
1917 2003-08-20 Michael Snyder <msnyder@redhat.com>
1918
1919 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1920 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1921 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1922 argument passing.
1923 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1924 functions, replace sh_push_dummy_call.
1925 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1926
1927 2003-08-20 Michael Chastain <mec@shout.net>
1928
1929 * gdbtypes.h (struct main_type): Rearrange to save space.
1930
1931 2003-08-20 Michael Snyder <msnyder@redhat.com>
1932
1933 * trad-frame.c: Comment typo fix.
1934
1935 2003-08-20 Michael Snyder <msnyder@redhat.com>
1936 Kevin Buettner <kevinb@redhat.com>
1937
1938 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1939 (frv_frame_init_saved_regs): Add declaration.
1940 (frame_extra_info): Add new field ``saved_regs''.
1941 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1942 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1943 Update frame related code.
1944 (frv_extract_struct_value_address): Adjust formatting.
1945 * Makefile.in (frv-tdep.o): Update dependencies.
1946 * config/frv/tm-frv.h (target_insert_watchpoint)
1947 (target_remove_watchpoint, target_insert_hw_breakpoint)
1948 (target_remove_hw_breakpoint): Delete these macros.
1949 (remote_insert_watchpoint, remote_remove_watchpoint)
1950 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1951 these declarations.
1952
1953 2003-08-20 Michael Chastain <mec@shout.net>
1954
1955 * defs.h (ENUM_BITFIELD): New macro.
1956 * symtab.h (ENUM_BITFIELD): Use it.
1957 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1958
1959 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1960
1961 * MAINTAINERS (write after approval): Add myself.
1962
1963 2003-08-18 Andrew Cagney <cagney@redhat.com>
1964
1965 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1966 * gdbarch.h, gdbarch.c: Re-generate.
1967 * infcall.c (call_function_by_hand): Adjust the SP by
1968 frame_red_zone_size before allocating any stack space.
1969 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1970 * x86-64-tdep.c (x86_64_frame_align): New function.
1971 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1972
1973 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1974 Remove code adjusting SP so that it skips over the Red Zone.
1975
1976 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1977
1978 * NEWS (New native configurations): Mention FreeBSD/amd64.
1979
1980 2003-08-18 Andrew Cagney <cagney@redhat.com>
1981
1982 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1983 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1984 "m68k_frame_p".
1985 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1986
1987 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1988
1989 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1990
1991 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1992
1993 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1994 Define.
1995 * i386-linux-nat.c: Include "linux-nat.h".
1996 (child_post_startup_inferior): New function.
1997
1998 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1999
2000 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2001 at the start of a frameless function. This probably fixes PR
2002 backtrace/1338.
2003
2004 2003-08-17 Michael Chastain <mec@shout.net>
2005
2006 * symfile.c (find_sym_fns): Remove special case for apollo target.
2007
2008 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2009
2010 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2011 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2012 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2013 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2014 (linux_supports_tracevforkdone): New function.
2015 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2016 TRACEVFORKDONE.
2017 (child_follow_fork): Handle vfork.
2018 (linux_handle_extended_wait): Likewise. Also handle exec.
2019 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2020 * NEWS: Mention fork tracing.
2021
2022 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2023
2024 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2025
2026 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2027
2028 * Makefile.in (i386-linux-nat.o): Update dependencies.
2029 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2030 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2031 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2032 * i386-linux-nat.c: Include "linux-nat.h".
2033 (child_post_startup_inferior): New function.
2034 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2035 * infptrace.c (kill_inferior): Wrap in #ifdef.
2036 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2037 attaching to each LWP.
2038 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2039 (init_lin_lwp_ops): Fill in some more operations.
2040 * linux-nat.h (linux_enable_event_reporting)
2041 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2042 prototypes.
2043 * linux-nat.c (linux_enable_event_reporting): New function.
2044 (child_post_attach, linux_child_post_startup_inferior)
2045 (child_post_startup_inferior, child_follow_fork)
2046 (linux_handle_extended_wait, kill_inferior): New functions.
2047
2048 2003-08-16 Andrew Cagney <cagney@redhat.com>
2049
2050 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2051 * gdbarch.h, gdbarch.c: Re-generate.
2052
2053 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2054
2055 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2056
2057 2003-08-16 Andrew Cagney <cagney@redhat.com>
2058
2059 * NEWS: Mention that "set prompt-escape-char" was deleted.
2060 * top.c (get_prompt_1): Delete function.
2061 (gdb_prompt_escape):
2062 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2063 prompt-escape-char" command.
2064 (MAX_PROMPT_SIZE): Delete macro.
2065 (get_prompt): Simplify, do not call get_prompt_1.
2066
2067 2003-08-16 Andrew Cagney <cagney@redhat.com>
2068
2069 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2070 -Werror. -Wformat-nonliteral problems.
2071
2072 2003-08-15 J. Brobecker <brobecker@gnat.com>
2073
2074 Further multiarching work mostly for hppa64-*-hpux11:
2075 * hppa-tdep.h: New file.
2076 * hppa-tdep.c: #include hppa-tdep.c.
2077 (hppa32_num_regs): Renamed from hppa_num_regs.
2078 (hppa64_num_regs): New constant.
2079 (hppa64_call_dummy_breakpoint_offset): New constant.
2080 (hppa32_call_dummy_length): New constant.
2081 (hppa64_call_dummy_length): New constant.
2082 (hppa32_stack_align): Make name 32bit explicit.
2083 (hppa32_register_virtual_type): Likewise.
2084 (hppa32_extract_return_value): Likewise.
2085 (hppa32_use_struct_convention): Likewise.
2086 (hppa32_store_return_value): Likewise.
2087 (hppa64_register_virtual_type): New function.
2088 (hppa64_extract_return_value): New function.
2089 (hppa64_use_struct_convention): New function.
2090 (hppa64_store_return_value): New function.
2091 (hppa_frame_locals_address): Remove declaration, function does
2092 not exist anymore.
2093 (hppa_register_byte): Add support for PA64 ABI.
2094 (hppa_gdbarch_init): Add support for PA64 ABI.
2095 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2096 Make name 32bit explicit.
2097 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2098 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2099 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2100 (hppa64_hpux_frame_base_before_sigtramp): New function.
2101 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2102 * config/pa/tm-hppa64.h: Remove macros that are no longer
2103 necessary now that the gdbarch vector is properly setup.
2104 Transform some macros into function calls. Some minor cleanup.
2105 * config/pa/tm-hppah.h: Update function calls in macros
2106 following the function renaming in hppa-hpux-tdep.c.
2107 * Makefile.in (hppa_tdep_h): New variable.
2108 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2109
2110 2003-08-14 Michael Snyder <msnyder@redhat.com>
2111
2112 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2113
2114 2003-08-13 J. Brobecker <brobecker@gnat.com>
2115
2116 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2117 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2118 routine.
2119
2120 2003-08-13 Michael Snyder <msnyder@redhat.com>
2121
2122 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2123 (frv_saved_pc_after_call): Use deprecated ftype.
2124 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2125 (frv_remote_translate_xfer_address): Remove.
2126 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2127
2128 2003-08-13 J. Brobecker <brobecker@gnat.com>
2129
2130 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2131 initialization after the common gdbarch initialization, not before.
2132
2133 2003-08-13 J. Brobecker <brobecker@gnat.com>
2134
2135 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2136 (ADDR_BITS_REMOVE): Remove, redundant.
2137
2138 2003-08-13 J. Brobecker <brobecker@gnat.com>
2139
2140 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2141 gdbarch method to clear the 2 low bits of text addresses.
2142
2143 2003-08-12 Andrew Cagney <cagney@redhat.com>
2144
2145 * Makefile.in (dsrec.o): Update dependencies.
2146 * dsrec.c: Include "gdb_assert.h".
2147 (make_srec): Use snprintf instead of sprintf, use a literal format
2148 string.
2149
2150 2003-08-12 Andrew Cagney <cagney@redhat.com>
2151
2152 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2153 FRAME_OBSTACK_ZALLOC.
2154
2155 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2156
2157 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2158 SSE registers.
2159
2160 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2161
2162 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2163 amd64fbsd_sc_reg_offset): Add extern declarations.
2164 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2165 declarations.
2166
2167 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2168
2169 * MAINTAINERS (write after approval): Update my mail address.
2170
2171 2003-08-10 Andrew Cagney <cagney@redhat.com>
2172
2173 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2174
2175 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2176
2177 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2178 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2179 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2180 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2181 i386bsd_sc_reg_offset): Add extern declarations.
2182 * i386obsd-nat.c: Include "i386-tdep.h"
2183 (_initialize_i386obsd_nat): Remove extern declarations.
2184 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2185 declarations.
2186 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2187 declarations.
2188
2189 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2190 instead of frame_read_register.
2191 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2192 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2193 SP_REGNUM.
2194 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2195 instead of frame_unwind_unsigned_register. Use
2196 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2197 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2198 instead of read_register. Use builtin_type_void_data_ptr instead
2199 of builtin_type_void_func_ptr when extracting the address of the
2200 jmp_buf.
2201 (i386_extract_return_value, i386_store_return_value,
2202 i386_pseudo_register_read, i386_pseudo_register_write): Use
2203 register_size instead REGISTER_RAW_SIZE.
2204
2205 2003-08-10 Andrew Cagney <cagney@redhat.com>
2206
2207 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2208 sprintf. Make "name" constant.
2209
2210 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2211
2212 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2213 instead of frame_read_register.
2214 (i387_print_float_info): Use get_frame_register and
2215 get_frame_register_unsigned instead of frame_register_read.
2216
2217 * i386fbsd-nat.c: Include "i386-tdep.h".
2218 (child_resume): Make `eflags' an ULONGEST. Use
2219 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2220 instead of register_read and register_write.
2221
2222 * i386bsd-nat.c (fetch_inferior_registers,
2223 store_inferior_registers): Don't use && at the end of a line.
2224 (_initialize_i386bsd_nat): Fix typo.
2225
2226 * frame.c (_initialize_frame): Add missing backslash.
2227
2228 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2229 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2230 and supply_register instead of manipulating the register buffer
2231 directly.
2232
2233 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2234 * config/i386/nm-i386sol2.h
2235 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2236
2237 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2238 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2239 instructions that GCC likes to mingle into the prologue. Fixes
2240 gdb/1253 and gdb/1255.
2241
2242 2003-08-09 Andrew Cagney <cagney@redhat.com>
2243
2244 Fix GDB PR cli/926.
2245 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2246 * command.h (add_setshow_uinteger_cmd): Declare.
2247 * frame.c (set_backtrace_cmd): New function.
2248 (show_backtrace_cmd): New function.
2249 * frame.c (_initialize_frame): Replace "set/show
2250 backtrace-below-main" with "set/show backtrace past-main". Add
2251 command "set/show backtrace limit".
2252 (backtrace_past_main): Rename "backtrace_below_main".
2253 (backtrace_limit): New variable.
2254 (get_prev_frame): Update. Check the backtrace_limit.
2255
2256 2003-08-09 Andrew Cagney <cagney@redhat.com>
2257
2258 * defs.h (xstrprintf): Declare.
2259 * utils.c (xstrprintf): New function.
2260 * breakpoint.c (insert_breakpoints): Replace sprintf and
2261 non-literal format strings, with xstrprintf and cleanups.
2262 (delete_breakpoint,breakpoint_re_set): Ditto.
2263 (commands_command, insert_breakpoints): Ditto.
2264 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2265 (break_at_finish_command_1): Ditto.
2266
2267 2003-08-09 Andrew Cagney <cagney@redhat.com>
2268
2269 * MAINTAINERS (language support): List Adam Fedor as Objective C
2270 maintainer.
2271
2272 2003-08-08 J. Brobecker <brobecker@gnat.com>
2273
2274 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2275 are now multiarched.
2276
2277 2003-08-08 J. Brobecker <brobecker@gnat.com>
2278
2279 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2280 longer necessary now that hppa64 is partially multiarch'ed.
2281
2282 2003-08-08 Andrew Cagney <cagney@redhat.com>
2283
2284 * interps.c (interp_set): Check for a NULL "old_interp".
2285
2286 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2287
2288 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2289 (install-only): Support DESTDIR.
2290 (uninstall): Likewise.
2291 (install-gdbtk): Likewise.
2292
2293 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2294
2295 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2296 contains something meaningful at all times.
2297
2298 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2299
2300 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2301
2302 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2303
2304 * MAINTAINERS (write after approval): Added self.
2305
2306 2003-08-07 Andrew Cagney <cagney@redhat.com>
2307
2308 * inferior.h (AT_SYMBOL): Define.
2309 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2310 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2311 * mips-tdep.c (mips_call_dummy_address): Delete function.
2312 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2313 set call_dummy_address.
2314
2315 2003-08-07 Andrew Cagney <cagney@redhat.com>
2316
2317 * language.c (op_error): Delete function.
2318 (binop_type_check): Delete function.
2319 * language.h (type_op_error, range_op_error): Delete macros.
2320 (op_error): Delete declaration.
2321
2322 2003-08-07 Andrew Cagney <cagney@redhat.com>
2323
2324 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2325
2326 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2327
2328 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2329 (x86_64_push_arguments): Skip the red zone.
2330
2331 2003-08-05 Andrew Cagney <cagney@redhat.com>
2332
2333 * reggroups.c (reggroup_next): Check for the final entry.
2334
2335 2003-08-04 Andrew Cagney <cagney@redhat.com>
2336
2337 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2338 * cli/cli-script.c (define_command): Call query directly, instead
2339 of passing it a buffer.
2340 * ocd.c (ocd_error): Pass error a constant format string.
2341 * remote-mips.c (mips_error): Use fputs_filtered.
2342
2343 * solib-svr4.c (_initialize_svr4_solib): Update
2344 register_gdbarch_data call.
2345 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2346
2347 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2348 (register_gdbarch_data): Delete "free" parameter. Update
2349 comments.
2350 * gdbarch.h, gdbarch.c: Re-generate.
2351 * reggroups.c (_initialize_reggroup): Update.
2352 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2353 * frame-base.c (_initialize_frame_base): Update.
2354 * frame-unwind.c (_initialize_frame_unwind): Update.
2355 * user-regs.c (_initialize_user_regs): Update.
2356 * remote.c (_initialize_remote): Update.
2357 * regcache.c (_initialize_regcache): Update.
2358
2359 * regcache.c (xfree_regcache_descr): Delete function.
2360 (_initialize_regcache): Update call to register_gdbarch_data.
2361 (init_regcache_descr, init_legacy_regcache_descr): Use
2362 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2363
2364 * remote.c (free_remote_state): Delete function.
2365 (_initialize_remote): Update register_gdbarch_data.
2366 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2367 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2368
2369 2003-08-04 Andrew Cagney <cagney@redhat.com>
2370
2371 * reggroups.c (struct reggroup_el): Define.
2372 (struct reggroups): Delete field "nr_group". Replace array
2373 "group" with a "first" to "last" linked list.
2374 (reggroups_init): Update. Allocate using gdbarch's obstack.
2375 (reggroups_free): Delete function.
2376 (add_group): Update. Add "el" parameter.
2377 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2378 (default_groups): Update.
2379 (reggroup_next): Replace reggroups.
2380 (reggroups_dump): Update.
2381 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2382 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2383 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2384
2385 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2386
2387 * Makefile.in (tui-interp.o): Update dependencies.
2388
2389 2003-08-04 David Carlton <carlton@kealia.com>
2390
2391 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2392 to internal_error call.
2393 * source.c (forward_search_command): Add "%s" format argument.
2394 (reverse_search_command): Ditto.
2395 * top.c (quit_confirm): Ditto.
2396 * cli/cli-setshow.c (do_setshow_command): Ditto.
2397 * cp-valprint.c (cp_print_class_method): Replace
2398 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2399 (cp_print_class_member): Ditto.
2400 * event-top.c (command_line_handler): Ditto.
2401 * linux-proc.c (linux_info_proc_cmd): Ditto.
2402 * p-typeprint.c (pascal_type_print_base): Ditto.
2403 * p-valprint.c (pascal_object_print_class_method): Ditto.
2404 (pascal_object_print_class_member): Ditto.
2405 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2406 * remote.c (remote_cisco_section_offsets): Ditto.
2407 * top.c (command_line_input): Ditto.
2408 * utils.c (vwarning,error_stream,quit): Ditto.
2409 * valprint.c (print_floating,print_binary_chars)
2410 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2411
2412 2003-08-04 Andrew Cagney <cagney@redhat.com>
2413
2414 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2415
2416 2003-08-02 Andrew Cagney <cagney@redhat.com>
2417
2418 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2419 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2420 amd64fbsd-nat.c.
2421
2422 2003-08-02 Andrew Cagney <cagney@redhat.com>
2423
2424 * Makefile.in: Update all dependencies and definitions.
2425
2426 2003-08-02 Adam Fedor <fedor@gnu.org>
2427
2428 * linespec.c (is_objc_method_format): New function
2429 (decode_line_1, locate_first_half): Use it.
2430 Fixes PR objc/1298
2431
2432 2003-08-01 Andrew Cagney <cagney@redhat.com>
2433
2434 * NEWS: Mention that m32r is multi-arch.
2435 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2436 * configure.tgt: Recognize m32r-*-*.
2437 * config/m32r/tm-m32r.h: Delete file.
2438 * config/m32r/m32r.mt: New file.
2439 * m32r-rom.c (m32r_upload_command): Use hostent only when
2440 gethostname succeeds, in order to avoid a compilation
2441 warning.
2442 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2443 compiler warning.
2444
2445 2003-08-01 Michael Snyder <msnyder@redhat.com>
2446
2447 * sh-tdep.c (sh_frame_align): New gdbarch method.
2448 (sh_gdbarch_init): Set up frame_align method.
2449
2450 2003-07-31 Michael Snyder <msnyder@redhat.com>
2451
2452 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2453 which is already covered by the new frames infrastructure.
2454
2455 2003-07-31 Andrew Cagney <cagney@redhat.com>
2456
2457 * user-regs.c (struct user_reg): Add "next" link.
2458 (struct user_regs): Replace "user" with "first" and "last" links.
2459 (append_user_reg): Add pre-allocated "reg" parameter.
2460 (builtin_user_regs): Provide initial value for "last".
2461 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2462 (user_regs_init): Allocate memory from the gdbarch obstack.
2463 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2464 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2465 linked list.
2466 (usernum_to_user_reg): New function.
2467 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2468 (value_of_user_reg): Use usernum_to_user_reg.
2469 (user_regs_free): Delete function.
2470 (_initialize_user_regs): Update register_gdbarch_data call.
2471
2472 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2473
2474 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2475
2476 2003-07-30 Michael Snyder <msnyder@redhat.com>
2477
2478 * value.h (value_being_returned): Add a struct_addr argument.
2479 * infcall.c (call_function_by_hand): Pass struct_addr to
2480 value_being_returned.
2481 * infcmd.c (print_return_value): Pass zero as struct_addr.
2482 * values.c (value_being_returned): If struct_addr is passed,
2483 use it instead of trying to recover it from the inferior.
2484
2485 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2486
2487 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2488 the prologue analyzer won't need to attempt to extract the pc
2489 value from the woefully incomplete dummy frame.
2490 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2491 possible. Disable code which modifies the frame.
2492
2493 2003-07-28 Andrew Cagney <cagney@redhat.com>
2494
2495 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2496 to level 2.
2497 (annotate_breakpoints_table, annotate_record): Ditto.
2498 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2499 (annotate_field_name_end, annotate_field_value): Ditto.
2500 (annotate_field_end, annotate_frame_source_begin): Ditto.
2501 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2502 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2503 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2504 (annotate_frame_address_end, annotate_frame_address): Ditto.
2505 (annotate_frame_args, annotate_frame_end): Ditto.
2506 (annotate_frame_where, annotate_arg_begin): Ditto.
2507 (annotate_arg_name_end, annotate_arg_value): Ditto.
2508 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2509 (annotate_function_call, annotate_signal_name): Ditto.
2510 (annotate_signal_string, annotate_signal_name_end): Ditto.
2511 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2512 (annotate_value_begin, annotate_value_history_value): Ditto.
2513 (annotate_value_history_end, annotate_value_end): Ditto.
2514 (annotate_display_begin, annotate_display_number_end): Ditto.
2515 (annotate_display_format, annotate_display_expression): Ditto.
2516 (annotate_display_expression_end, annotate_display_value): Ditto.
2517 (annotate_display_end, annotate_array_section_begin): Ditto.
2518 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2519 (annotate_elt, annotate_array_section_end): Ditto.
2520
2521 2003-07-28 Andrew Cagney <cagney@redhat.com>
2522
2523 * regcache.c (struct regcache_descr): Update comments on
2524 nr_raw_registers.
2525 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2526 sizeof_raw_register_valid_p.
2527 (init_regcache_descr): Set nr_raw_registers and
2528 sizeof_raw_register_valid_p before calling
2529 init_legacy_regcache_descr.
2530
2531 2003-07-28 Andrew Cagney <cagney@redhat.com>
2532
2533 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2534 MOD NUM_REGS.
2535
2536 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2537
2538 * thread.c (info_threads_command): Use get_selected_frame ().
2539 Check that there is at least one non-sentinel frame.
2540
2541 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2542
2543 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2544 (m68hc11_pop_frame): Remove.
2545 (m68hc11_frame_saved_pc): Remove.
2546 (m68hc11_frame_chain): Remove.
2547 (m68hc11_frame_init_saved_regs): Remove.
2548 (m68hc11_init_extra_frame_info): Remove.
2549 (m68hc11_store_struct_return): Remove.
2550 (m68hc11_saved_pc_after_call): Remove.
2551
2552 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2553
2554 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2555 frame unwind information.
2556 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2557 and adapted for frame unwinding.
2558 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2559 (m68hc11_unwind_pc): New function.
2560 (m68hc11_frame_unwind_cache): New function to analyze frames.
2561 (m68hc11_frame_this_id): New function to create new frame struct.
2562 (m68hc11_frame_prev_register): New function to unwind a register from
2563 the frame.
2564 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2565 (m68hc11_frame_p): New function for the above.
2566 (m68hc11_frame_base_address): New function to return fp of frame.
2567 (m68hc11_frame_args_address): Update for frame.
2568 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2569 (m68hc11_unwind_sp): New function.
2570 (m68hc11_unwind_dummy_id): New function.
2571 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2572 calls.
2573
2574 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2575
2576 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2577 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2578 when we are beyond the current pc.
2579
2580 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2581
2582 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2583 from m68hc11_push_arguments.
2584 (m68hc11_push_arguments): Remove.
2585 (m68hc11_push_return_address): Remove.
2586 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2587 handlers; remove deprecated_extra_stack_alignment_needed.
2588
2589 2003-07-27 Andrew Cagney <cagney@redhat.com>
2590
2591 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2592 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2593 REAL_PC and not the pointer.
2594 * hppa-hpux-tdep.c: Include frame.h
2595
2596 2003-07-27 Andrew Cagney <cagney@redhat.com>
2597
2598 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2599 GDB_MULTI_ACH_PARTIAL.
2600
2601 2003-07-27 Andrew Cagney <cagney@redhat.com>
2602
2603 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2604 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2605 operator at start and not end of line.
2606 (decode_prologue): Ditto.
2607 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2608 frame_unwind_register_unsigned instead of
2609 frame_unwind_unsigned_register.
2610 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2611 read_register.
2612 (m32r_push_dummy_call): Use register_size instead of
2613 REGISTER_RAW_SIZE.
2614 (m32r_frame_sniffer): Replace m32r_frame_p.
2615 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2616 * m32r-rom.c (report_transfer_performance): Delete extern
2617 declaration.
2618 (m32r_load, m32r_upload_command): Use print_transfer_performance
2619 instead of report_transfer_performance.
2620 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2621 / add_show_from_set.
2622
2623 2003-07-26 Andrew Cagney <cagney@redhat.com>
2624
2625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2626 store_return_value and extract_struct_value_address.
2627
2628 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2629
2630 PR c++/1267
2631 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2632 NULL, default to the section containing PC.
2633
2634 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2635
2636 * NEWS: Mention "regs" deprecated for m68hc11 too.
2637
2638 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2639 (m68hc11_print_register): New function to print out one register.
2640 (m68hc11_print_registers_info): New function to print registers.
2641 (show_regs): Deprecate and use the above.
2642 (m68hc11_gdbarch_init): Install the print_registers_info.
2643
2644 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2645
2646 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2647 that we have a SIGTRAP before returning non-zero.
2648
2649 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2650 Elena Zannoni <ezannoni@redhat.com>
2651
2652 * linespec.c (decode_line_2): Avoid crash if
2653 find_function_start_sal() returns empty record.
2654
2655 2003-07-23 Andreas Schwab <schwab@suse.de>
2656
2657 * ia64-tdep.c (ia64_print_insn): New function.
2658 (ia64_gdbarch_init): Set print_insn to it.
2659 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2660 deprecated_tm_print_insn_info.
2661
2662 2003-07-22 Michael Snyder <msnyder@redhat.com>
2663
2664 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2665 handle 8-bit returns (long long).
2666 (h8300h_extract_return_value): Ditto.
2667 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2668
2669 2003-07-22 Andrew Cagney <cagney@redhat.com>
2670
2671 * gdbarch.c Include "gdb_obstack.h".
2672 (struct gdbarch): Add an "obstack".
2673 (alloc_gdbarch_data): Allocate the gdbarch data using
2674 GDBARCH_OBSTACK_CALLOC.
2675 (free_gdbarch_data): Delete function.
2676 (gdbarch_obstack_zalloc): New function.
2677 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2678 Assert that the architecture is not initialized.
2679 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2680 vector from the obstack.
2681 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2682 architecture obstack.
2683 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2684 (set_gdbarch_data): Assert that the data is not initialized.
2685 (struct gdbarch_data): Delete member "free".
2686 (register_gdbarch_data): Do not initialize "free".
2687 * gdbarch.h, gdbarch.c: Re-generate.
2688
2689 2003-07-22 Andrew Cagney <cagney@redhat.com>
2690
2691 * configure.in (build_warnings): Add -Wformat-nonliteral.
2692 * configure: Re-generate.
2693
2694 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2695
2696 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2697
2698 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2699
2700 * findvar.c (read_var_value): Remove case for thread local storage
2701 variables. It is now entirely handled by the dwarf2 location
2702 expression code.
2703 * printcmd.c (address_info): Ditto.
2704 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2705 enumeration value.
2706 (struct symbol): Remove objfile field, which was used by
2707 LOC_THREAD_LOCAL_STATIC only.
2708 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2709 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2710 usage of objfile pointer.
2711 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2712 thread local variables.
2713 Add include of objfiles.h.
2714 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2715 storage variables.
2716 * Makefile.in (dwarf2loc.o): Update dependencies.
2717
2718 2003-07-22 Andrew Cagney <cagney@redhat.com>
2719
2720 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2721 get_frame_base.
2722 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2723 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2724 (struct value): Add opaque declaration.
2725 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2726
2727 2003-07-21 Andrew Cagney <cagney@redhat.com>
2728
2729 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2730 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2731
2732 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2733
2734 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2735 regcache_cooked_read_unsigned instead of read_register.
2736 (m68hc11_saved_pc_after_call): Likewise.
2737 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2738 instead of write_register.
2739 (m68hc11_register_type): New function.
2740 (m68hc11_register_virtual_type): Remove.
2741 (m68hc11_store_return_value): Convert to use the regcache.
2742 (m68hc11_extract_struct_value_address): Likewise.
2743 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2744 m68hc11_register_type; undeprecate store_return_value and
2745 extract_struct_value_address.
2746
2747 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2748
2749 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2750 and translate to use regcache.
2751 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2752
2753 2003-07-18 Andrew Cagney <cagney@redhat.com>
2754
2755 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2756 * gdbarch.h, gdbarch.c: Re-generate.
2757 * i386-tdep.c (i386_gdbarch_init): Do not set
2758 DWARF2_BUILD_FRAME_INFO.
2759 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2760 unconditionally.
2761 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2762 DWARF2_BUILD_FRAME_INFO.
2763
2764 2003-07-18 Andrew Cagney <cagney@redhat.com>
2765
2766 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2767 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2768
2769 2003-07-18 Andrew Cagney <cagney@redhat.com>
2770
2771 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2772 frame_unwind_address_in_block, instead of frame_pc_unwind.
2773 (dwarf2_frame_cache): Ditto.
2774
2775 2003-07-18 Andrew Cagney <cagney@redhat.com>
2776
2777 * user-regs.h (struct gdbarch): Declare opaque.
2778 * ui-out.h (struct ui_file): Declare opaque.
2779 * dwarf2-frame.h (struct frame_info): Declare opaque.
2780
2781 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2782
2783 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2784 #include "...".
2785 (procfs_meminfo): Change strerror to safe_strerror.
2786 (procfs_can_run): Remove K&R badness.
2787
2788 2003-07-17 Michael Snyder <msnyder@redhat.com>
2789
2790 * remote-sim.c: Comment typo fix.
2791
2792 2003-07-17 Andrew Cagney <cagney@redhat.com>
2793
2794 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2795 configure.
2796 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2797 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2798 GDB_MULTI_ARCH_PARTIAL.
2799
2800 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2801
2802 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2803 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2804 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2805
2806 2003-07-16 Theodore A. Roth <troth@openavr.org>
2807
2808 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2809 found.
2810 (avr_frame_unwind_cache): Don't unwind FP for main.
2811 Update a comment.
2812 Save the computed prev_sp.
2813 (avr_saved_regs_unwinder): Remove function.
2814 (avr_frame_prev_register): Use PC unwind logic from
2815 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2816
2817 2003-07-16 Andrew Cagney <cagney@redhat.com>
2818
2819 * frame-base.h (frame_base_p_ftype): Delete definition.
2820 (frame_base_append_predicate): Delete declaration.
2821 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2822 (frame_unwind_append_predicate): Delete declaration.
2823 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2824 (append_predicate): Delete parameter "p".
2825 (frame_unwind_append_predicate): Delete function.
2826 (frame_unwind_append_sniffer): Update call to append_predicate.
2827 (frame_unwind_free): Delete function.
2828 (_initialize_frame_unwind): Pass NULL as "free" to
2829 register_gdbarch_data.
2830 (frame_unwind_init): Append the dummy_frame_sniffer.
2831 (frame_unwind_find_by_frame): Simplify.
2832 * frame-base.c (struct frame_base_table): Delete field "p".
2833 (append_predicate): Delete parameter "p".
2834 (frame_base_append_predicate): Delete function.
2835 (frame_base_append_sniffer): Update call to append_predicate.
2836 (frame_base_free): Delete function.
2837 (frame_base_find_by_frame): Simplify.
2838 (_initialize_frame_base): Pass NULL as "free" to
2839 register_gdbarch_data.
2840 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2841 (x86_64_sigtramp_frame_sniffer): Replace
2842 "x86_64_sigtramp_frame_p".
2843 (x86_64_init_abi): Set the frame unwind sniffers.
2844 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2845 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2846 (m68k_gdbarch_init): Set the frame unwind sniffers.
2847 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2848 "i386_sigtramp_frame_p".
2849 (i386_frame_sniffer): Replace "i386_frame_p".
2850 (i386_gdbarch_init): Set the frame unwind sniffers.
2851 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2852 (avr_gdbarch_init): Set the frame unwind sniffers.
2853 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2854 "alpha_sigtramp_frame_p"
2855 (alpha_heuristic_frame_sniffer): Replace
2856 "alpha_heuristic_frame_p".
2857 (alpha_gdbarch_init): Set the frame unwind sniffers.
2858 (alpha_dwarf2_init_abi): Ditto.
2859 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2860 "alpha_debug_frame_p".
2861 (alpha_mdebug_frame_base_sniffer): Replace
2862 "alpha_mdebug_frame_base_p".
2863 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2864 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2865 (d10v_gdbarch_init): Set the frame unwind sniffer.
2866 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2867 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2868 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2869 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2870 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2871 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2872
2873 2003-07-16 Michael Snyder <msnyder@redhat.com>
2874
2875 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2876 should go thru sh_dsp_register_sim_regno, else the dsp regs
2877 will not get the right values.
2878
2879 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2880
2881 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2882 deprecated_store_floating by call to store_typed_floating.
2883 (sh_sh4_register_convert_to_raw): Substitute call to
2884 deprecated_extract_floating by call to extract_typed_floating.
2885
2886 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2887
2888 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2889
2890 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2891
2892 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2893 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2894 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2895 as possible.
2896 (do_pseudo_register): Remove.
2897 (sh_push_dummy_code): New function.
2898 (sh64_store_struct_return): Rename from sh_store_struct_return.
2899 Only called for sh64 now.
2900 (sh_extract_struct_value_address): Regcache'ify.
2901 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2902 and accomodate new tasks.
2903 (sh64_push_return_address): Rename from sh_push_return_address.
2904 Only called for sh64 now.
2905 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2906 Regcache'ify.
2907 (sh3e_sh4_extract_return_value): Regcache'ify.
2908 (sh_default_store_return_value): Ditto.
2909 (sh3e_sh4_store_return_value): Ditto.
2910 (sh_default_register_byte): Remove.
2911 (sh_sh4_register_byte): Remove.
2912 (sh_default_register_raw_size): Remove.
2913 (sh_sh4_register_raw_size): Remove.
2914 (sh_register_virtual_size): Remove.
2915 (sh_sh3e_register_virtual_type): Remove.
2916 (sh_sh3e_register_type): New function.
2917 (sh_sh4_register_virtual_type): Remove.
2918 (sh_sh4_register_type): New function.
2919 (sh_default_register_virtual_type): Remove.
2920 (sh_default_register_type): New function.
2921 (do_fv_register_info): Add parameters to accomodate call from
2922 sh_print_registers_info.
2923 (do_dr_register_info): Ditto.
2924 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2925 Add parameters to accomodate call from sh_print_registers_info.
2926 (sh_do_fp_register): Ditto.
2927 (sh64_do_pseudo_register): Call do_dr_register_info,
2928 do_fv_register_info and sh_do_fp_register with default parameters.
2929 (sh_do_register): Add parameters to accomodate call from
2930 sh_print_registers_info.
2931 (sh_print_register): Ditto.
2932 (sh_print_registers_info): Rename from sh_do_registers_info.
2933 Add parameters to be used as gdbarch_print_registers_info
2934 implementation. Accomodate removed do_pseudo_register function
2935 pointer.
2936 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2937 function pointer. Call sh_print_register with default parameters.
2938 (sh64_do_registers_info): Call sh_print_registers_info instead of
2939 sh_do_registers_info.
2940 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2941 detection of deprecated vs. non-deprecated functionality.
2942 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2943 function pointer assignments by direct function calls.
2944
2945 2003-07-15 Andrew Cagney <cagney@redhat.com>
2946
2947 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2948 (frame_register_unwind, create_new_frame): Ditto.
2949 (legacy_get_prev_frame, get_frame_type): Ditto.
2950 (get_frame_base_address): Use frame_base_find_by_frame.
2951 (get_frame_locals_address): Use frame_base_find_by_frame.
2952 (get_frame_args_address): Use frame_base_find_by_frame.
2953 * frame-base.h (frame_base_sniffer_ftype): Declare.
2954 (frame_base_append_sniffer): Declare.
2955 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2956 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2957 (frame_base_append_sniffer): New function.
2958 (frame_base_append_predicate): Add a NULL sniffer.
2959 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2960 (struct frame_base_table): Add "sniffer".
2961 (frame_base_free): Free the "sniffer" table.
2962 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2963 (frame_unwind_append_sniffer): Declare.
2964 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2965 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2966 (struct frame_unwind_table): Add "sniffer", delete "middle".
2967 (append_predicate): Add "sniffer" parameter, append the sniffer.
2968 (frame_unwind_init): Update append_predicate call.
2969 (frame_unwind_append_sniffer): New function.
2970 (frame_unwind_append_predicate): Update append_predicate call.
2971 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2972
2973 2003-07-15 Andrew Cagney <cagney@redhat.com>
2974
2975 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2976 before code inhibiting repeated unwind attempts. Add to
2977 commentary on that test's problems.
2978 * blockframe.c (inside_main_func): Look for "main" in the minimal
2979 symbol table.
2980 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2981 identical.
2982
2983 2003-07-15 Andrew Cagney <cagney@redhat.com>
2984
2985 * complaints.c (struct explanation): Define.
2986 (struct complaints): Change type of "explanation" to "struct
2987 explanation".
2988 (symfile_explanations): Convert to a "struct explanation" table.
2989 (vcomplaint): Update.
2990
2991 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2992
2993 * x86-64-linux-nat.c (regmap): Removed.
2994 (supply_gregset, fill_gregset): Call
2995 x86_64_linux_(fill,supply)_gregset functions.
2996 * x86-64-linux-tdep.c (USER_*): New defines.
2997 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2998 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2999 New functions.
3000 (fetch_core_registers): Ditto.
3001 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3002 * x86-64-linux-tdep.h: New file.
3003 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3004 and core-regset.o.
3005 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3006
3007 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3008
3009 * x86-64-tdep.c (x86_64_store_return_value): Use
3010 regcache_cooked_write_part instead of regcache_cooked_write.
3011
3012 * configure.host: Add x86_64-*-freebsd*.
3013 * configure.tgt: Add x86_64-*-freebsd*.
3014 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3015 * amd64fbsd-nat.c: New file.
3016 * amd64fbsd-tdep.c: New file.
3017 * config/i386/nm-fbsd64.h: New file.
3018 * config/i386/fbsd64.mh: New file.
3019 * config/i386/fbsd64.mt: New file.
3020
3021 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3022
3023 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3024 `sc_regs_offset' and `sc_fpregs_offset'.
3025 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3026 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3027 (alpha_sigtramp_register_address): Rewrite to use new members of
3028 `struct gdbarch_tdep'.
3029 (alpha_gdbarch_init): Initialize new members of struct
3030 gdbarch_tdep'.
3031 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3032 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3033 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3034 (alphafbsd_pc_in_sigtramp): Implement.
3035 (alphafbsd_sigtramp_offset): New function.
3036 (alphafbsd_sigcontext_addr): New function.
3037 (alphafbsd_init_abi): Initialize signal trampoline related members
3038 of `struct gdbarch_tdep'.
3039 (_initialize_alphafbsd_tdep): Add prototype.
3040
3041 2003-07-11 Theodore A. Roth <troth@openavr.org>
3042
3043 * Makefile.in (install-only): Quote sed expression when generating
3044 transformed_name.
3045
3046 2003-07-11 Richard Henderson <rth@redhat.com>
3047
3048 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3049 * dwarf2-frame.c: Include complaints.h.
3050 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3051 variable initialization; return NULL on error.
3052 (decode_frame_entry): New.
3053
3054 2003-07-11 Andrew Cagney <cagney@redhat.com>
3055
3056 * frame.h (frame_address_in_block): Delete declaration.
3057 * blockframe.c (frame_address_in_block): Delete function.
3058 (get_frame_block): Use get_frame_address_in_block.
3059 (block_innermost_frame): Ditto.
3060 * stack.c (print_frame, backtrace_command_1): Ditto.
3061
3062 * frame.h (get_frame_address_in_block): Declare.
3063 (frame_unwind_address_in_block): Declare.
3064 * frame.c (frame_unwind_address_in_block): New function.
3065 (get_frame_address_in_block): New function.
3066
3067 2003-07-10 Andrew Cagney <cagney@redhat.com>
3068
3069 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3070 pre-default. Note: re-generate has no effect.
3071
3072 2003-07-10 Andrew Cagney <cagney@redhat.com>
3073
3074 * gdbarch.sh: When a variable, but not a function, compare against
3075 0. Fix problem in previous patch.
3076 * gdbarch.c: Re-generate.
3077
3078 2003-07-10 Andrew Cagney <cagney@redhat.com>
3079
3080 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3081 functions against NULL, not 0.
3082 * gdbarch.c: Re-generate.
3083
3084 2003-07-10 Fred Fish <fnf@ninemoons.com>
3085
3086 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3087 null string instead of a null pointer.
3088 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3089
3090 2003-07-09 Michael Snyder <msnyder@redhat.com>
3091
3092 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3093
3094 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3095
3096 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3097 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3098 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3099 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3100 * x86-64-tdep.c: ... from here.
3101
3102 2003-07-09 Andreas Schwab <schwab@suse.de>
3103
3104 * m68k-tdep.h (enum struct_return): Define.
3105 (struct gdbarch_tdep): Add struct_return.
3106 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3107 bytes are padded to the right, not to the left. Pass struct value
3108 address in register %a1, not on stack.
3109 (m68k_use_struct_convention): New function.
3110 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3111 struct_return in tdep to pcc_struct_return.
3112 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3113 reg_struct_return.
3114
3115 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3116
3117 * somread.c (som_symfile_offsets): Fix compilation error.
3118
3119 2003-07-09 Andrew Cagney <cagney@redhat.com>
3120
3121 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3122 Add comments about the checks.
3123
3124 2003-07-08 Andrew Cagney <cagney@redhat.com>
3125
3126 * Makefile.in: Make dependency section headers consistent.
3127 (config_h): Move to $BUILD headers section.
3128 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3129 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3130 (ada-exp.tab.c): Move to YACC/LEX section.
3131 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3132 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3133
3134 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3135
3136 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3137 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3138 of strerror with safe_strerror, use ISO C function definitions,
3139 and replace instances of sprintf with snprintf.
3140
3141 2003-07-07 Andrew Cagney <cagney@redhat.com>
3142
3143 * frame.c (get_prev_frame): Enable check for identical frames.
3144 Update comments. Update error messages.
3145
3146 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3147
3148 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3149
3150 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3151
3152 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3153 sort_symtab_syms, no longer necessary.
3154
3155 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3156
3157 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3158
3159 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3160
3161 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3162 (mips_register_byte): Likewise.
3163
3164 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3165
3166 * Makefile.in (sparc_tdep_h): New.
3167 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3168 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3169 * sparc-linux-nat.c: Include "sparc-tdep.h".
3170 * sparc-nat.c: Likewise.
3171 * sparc-tdep.c: Likewise.
3172 * sparc64nbsd-nat.c: Likewise.
3173 * sparcnbsd-nat.c: Likewise.
3174 * sparcnbsd-tdep.c: Likewise.
3175 * sparc-tdep.h: New file.
3176 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3177 and sparc_npc_regnum.
3178
3179 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3180
3181 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3182 (mips_linux_cannot_store_register): List supported instead of
3183 unsupported registers.
3184
3185 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3186
3187 * disasm.c (dump_insns): Separate instructions from addresses.
3188
3189 2003-07-07 Andreas Schwab <schwab@suse.de>
3190
3191 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3192 dependencies.
3193 * m68k-tdep.c (NUM_FREGS): Delete.
3194 (SIG_PC_FP_OFFSET): Delete.
3195 (TARGET_M68K): Delete.
3196 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3197 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3198 P_MOVEL_SP, P_MOVEML_SP): Define.
3199 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3200 P_TRAP): Delete.
3201 (m68k_register_raw_size): Delete.
3202 (m68k_register_virtual_size): Delete.
3203 (m68k_register_type): Renamed from m68k_register_virtual_type and
3204 add gdbarch argument.
3205 (m68k_store_struct_return): Delete.
3206 (m68k_deprecated_extract_return_value): Delete.
3207 (m68k_deprecated_extract_struct_value_address): Delete.
3208 (m68k_frame_chain): Delete.
3209 (m68k_frame_saved_pc): Delete.
3210 (m68k_fix_call_dummy): Delete.
3211 (m68k_push_dummy_frame): Delete.
3212 (m68k_pop_frame): Delete.
3213 (m68k_extract_return_value): New function.
3214 (m68k_store_return_value): Rewrite using regcache.
3215 (m68k_extract_struct_value_address): Rewrite using regcache.
3216 (m68k_push_dummy_call): New function.
3217 (struct m68k_frame_cache): Define.
3218 (m68k_alloc_frame_cache): New function.
3219 (m68k_analyze_frame_setup): New function.
3220 (m68k_analyze_register_saves): New function.
3221 (m68k_analyze_prologue): New function.
3222 (m68k_skip_prologue): Rewrite using above functions.
3223 (m68k_unwind_pc): New function.
3224 (m68k_frame_cache): New function.
3225 (m68k_frame_this_id): New function.
3226 (m68k_frame_prev_register): New function.
3227 (m68k_frame_unwind): New variable.
3228 (m68k_frame_p): New function.
3229 (m68k_sigtramp_frame_cache): New function.
3230 (m68k_sigtramp_frame_this_id): New function.
3231 (m68k_sigtramp_frame_prev_register): New function.
3232 (m68k_sigtramp_frame_unwind): New variable.
3233 (m68k_sigtramp_frame_p): New function.
3234 (m68k_frame_base_address): New function.
3235 (m68k_frame_base): New function.
3236 (m68k_unwind_dummy_id): New function.
3237 (fill_gregset): Use regcache_collect.
3238 (fill_fpregset): Likewise.
3239 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3240 defined.
3241 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3242 deprecated_init_frame_pc, deprecated_store_struct_return,
3243 deprecated_extract_return_value, deprecated_store_return_value,
3244 deprecated_frame_chain, deprecated_frame_saved_pc,
3245 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3246 deprecated_register_virtual_size,
3247 deprecated_max_register_raw_size,
3248 deprecated_max_register_virtual_size,
3249 deprecated_register_virtual_type, deprecated_register_size,
3250 deprecated_register_byte, deprecated_register_bytes,
3251 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3252 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3253 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3254 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3255 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3256 deprecated_push_dummy_frame, deprecated_pop_frame,
3257 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3258 only if SYSCALL_TRAP is defined. Set extract_return_value,
3259 store_return_value, extract_struct_value_address, register_type,
3260 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3261 predicates.
3262 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3263 M68K_MAX_REGISTER_SIZE): Define.
3264 (struct m68k_sigtramp_info): Define.
3265 (struct gdbarch_tdep): Add get_sigtramp_info.
3266 * m68klinux-nat.c (fetch_register): Use register_size instead of
3267 REGISTER_RAW_SIZE. Don't put assignment in if.
3268 (store_register): Likewise.
3269 (fetch_inferior_registers): Likewise.
3270 (store_inferior_registers): Likewise.
3271 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3272 (m68k_linux_frame_saved_pc): Delete.
3273 (m68k_linux_sigcontext_reg_offset,
3274 m68k_linux_ucontext_reg_offset): Define.
3275 (m68k_linux_get_sigtramp_info): New function.
3276 (m68k_linux_extract_return_value): Rewrite using regcache.
3277 (m68k_linux_store_return_value): Likewise.
3278 (m68k_linux_extract_struct_value_address): Likewise.
3279 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3280 Don't set deprecated_frame_saved_pc,
3281 deprecated_extract_return_value, deprecated_store_return_value,
3282 deprecated_extract_struct_value_address. Set
3283 extract_return_value, store_return_value,
3284 extract_struct_value_address.
3285
3286 2003-07-07 Andrew Cagney <cagney@redhat.com>
3287
3288 * expprint.c: Include "user-regs.h" instead of "frame.h".
3289 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3290 frame_map_regnum_to_name.
3291 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3292 (frame_map_name_to_regnum): Simplify, call
3293 user_reg_map_name_to_regnum.
3294 (frame_map_regnum_to_name): Simplify, call
3295 user_reg_map_regnum_to_name.
3296 (frame_register_unwind): Update.
3297 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3298 (_initialize_frame_reg): Call user_reg_add_builtin.
3299 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3300 (value_of_register): Use value_of_user_reg.
3301 * eval.c (evaluate_subexp_standard): Update.
3302 * parse.c (write_dollar_variable): Update.
3303 * d10v-tdep.c (d10v_print_registers_info): Update.
3304 * infcmd.c (registers_info): Update.
3305 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3306 (builtin_regs_h): Delete macro.
3307 (user_regs_h): Define.
3308 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3309 (builtin-regs.o): Delete target.
3310 (user-regs.o): Specify dependencies.
3311 (expprint.o): Update dependencies.
3312 (findvar.o): Update dependencies.
3313 (frame.o): Update dependencies.
3314 (std-regs.o): Update dependencies.
3315
3316 2003-07-06 Christopher Faylor <cgf@redhat.com>
3317
3318 * win32-nat.c (solib_symbols_add): Use one variable for all section
3319 address stuff. Pass variable rather than address of variable to
3320 safe_symbol_file_add.
3321
3322 2003-07-06 Andreas Schwab <schwab@suse.de>
3323
3324 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3325
3326 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3327
3328 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3329
3330 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3331
3332 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3333
3334 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3335
3336 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3337 * config/i386/nto.mh: New file.
3338 * config/i386/nm-nto.h: New file.
3339 * configure.host: Add i[3456]86-*-nto*.
3340
3341 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3342
3343 * remote-vx.c (vx_add_symbols): Fix compilation error.
3344
3345 2003-07-03 Andrew Cagney <cagney@redhat.com>
3346
3347 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3348 * gdbarch.h, gdbarch.c: Re-generate.
3349 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3350 (legacy_register_name): Declare.
3351 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3352 (REGISTER_NAME): Define.
3353 * sparc-tdep.c (legacy_register_name): New function.
3354 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3355 (REGISTER_NAME): Define.
3356 (hppa64_register_name): Declare.
3357 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3358 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3359 (hppa64_register_name): New function.
3360 (hppa_register_name): New function.
3361 * arch-utils.c (legacy_register_name): Delete.
3362 * arch-utils.h (legacy_register_name): Delete.
3363
3364 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3365
3366 * cli/cli-interp.c (cli_interpreter_resume): Update the
3367 cli_uiout's stream to gdb_stdout.
3368
3369 2003-07-03 Andrew Cagney <cagney@redhat.com>
3370
3371 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3372 predicate.
3373 * gdbarch.h, gdbarch.c: Re-generate.
3374 * regcache.c (init_regcache_descr): Use legacy code when either
3375 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3376
3377 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3378
3379 * NEWS: Move "set logging" entry into GDB 6.0 section.
3380
3381 2003-07-02 Jim Blandy <jimb@redhat.com>
3382
3383 * s390-tdep.c (struct frame_extra_info): new member:
3384 'stack_bought_valid'.
3385 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3386 initialize fextra_info->stack_bought.
3387 (s390_frameless_function_invocation): Don't trust the value of
3388 fextra_info_ptr->stack_bought unless
3389 fextra_info->stack_bought_valid is set.
3390
3391 New S390 prologue analyzer.
3392 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3393 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3394 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3395 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3396 compute_x_addr, s390_on_stack, s390_store,
3397 s390_get_signal_frame_info): New functions.
3398 (S390_NUM_SPILL_SLOTS): New macro.
3399 (s390_get_frame_info): Rewritten.
3400 (is_arg_reg): Deleted.
3401
3402 Break out the decoding of S/390 instructions into separate
3403 functions, to make it more legible, and easier to check
3404 against the spec.
3405 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3406 is_rx, is_rxe): New functions.
3407 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3408 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3409 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3410 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3411 enums for opcode values. (Is this an improvement?)
3412
3413 2003-07-02 Andrew Cagney <cagney@redhat.com>
3414
3415 * i386-tdep.c: Revert change committed as part of trad-frame code
3416 below.
3417
3418 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3419
3420 * breakpoint.c (insert_catchpoint): Make static.
3421
3422 2003-07-02 Andreas Schwab <schwab@suse.de>
3423
3424 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3425 former ia64_push_arguments and ia64_push_return_address, and use
3426 regcache functions instead of read/write_register.
3427 (ia64_gdbarch_init): Set push_dummy_call instead of
3428 deprecated_push_arguments and deprecated_push_return_address.
3429
3430 2003-07-01 Andreas Jaeger <aj@suse.de>
3431
3432 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3433 before the call.
3434 Set %rax only to number of SSE registers used.
3435
3436 2003-07-01 Andrew Cagney <cagney@redhat.com>
3437
3438 * trad-frame.h: Update comments, a -1 .addr is reserved.
3439 (trad_frame_value_p, trad_frame_addr_p): Declare.
3440 (trad_frame_reg_p): Declare.
3441 (trad_frame_set_value): Rename trad_frame_register_value.
3442 (trad_frame_set_unknown): Declare.
3443 * trad-frame.c (trad_frame_realreg_p): New function.
3444 (trad_frame_addr_p, trad_frame_value_p): New function.
3445 (trad_frame_set_unknown): New function.
3446 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3447 (trad_frame_prev_register): Use trad_frame_realreg_p,
3448 trad_frame_addr_p and trad_frame_value_p.
3449 (trad_frame_set_value): Rename trad_frame_register_value.
3450 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3451 and trad_frame_set_value.
3452
3453 2003-06-30 Jim Blandy <jimb@redhat.com>
3454
3455 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3456 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3457 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3458 for 16 registers, and then 32 more bytes.
3459 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3460 New macros.
3461 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3462 Move up in the file, since it's now used by is_simple_arg.
3463 (is_simple_arg): Don't assume registers are four bytes long.
3464 Exclude all double arguments. Extended floats are not simple
3465 args.
3466 (is_power_of_two): New function.
3467 (pass_by_copy_ref): Call is_power_of_two, and check that the
3468 length fits in a register, rather than listing all the acceptable
3469 sizes. Extended floats are not passed by reference.
3470 (s390_push_arguments): Don't assume registers are four bytes long.
3471 Reserve an argument register to point to the buffer for structures
3472 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3473 S390_STACK_FRAME_OVERHEAD.
3474
3475 2003-06-30 Andreas Schwab <schwab@suse.de>
3476
3477 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3478 format error message.
3479
3480 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3481
3482 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3483
3484 2003-06-30 David Carlton <carlton@kealia.com>
3485
3486 Band-aid for PR c++/1245.
3487 * Makefile.in (cp-support.o): Depend on complaints_h.
3488 * cp-support.c: Include complaints.h. Add declaration for
3489 find_last_component.
3490 (cp_find_first_component): Separate code into
3491 cp_find_first_component_aux.
3492 (cp_find_first_component_aux): Call demangled_name_complaint.
3493 (demangled_name_complaint): New.
3494
3495 2003-06-30 Andrew Cagney <cagney@redhat.com>
3496
3497 * remote.c (remote_write_bytes): Explicitly compute and then use
3498 the payload size. Update comments to reflect. Fixes problem of
3499 GDB not sending small packets as found by Fred Fish.
3500
3501 2003-06-30 Andrew Cagney <cagney@redhat.com>
3502
3503 * remote.c (remote_async_wait): Fix -Wformat problem.
3504
3505 2003-06-29 Andrew Cagney <cagney@redhat.com>
3506
3507 * remote.c (remote_wait): Call error, and not warning, when the
3508 packet is corrupt.
3509 (remote_async_wait): Ditto.
3510
3511 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3512
3513 * sparc-tdep.c (sparc_y_regnum): Make external again.
3514
3515 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3516
3517 * cli/cli-logging.c (pop_output_files): Add void to function
3518 definition.
3519
3520 2003-06-29 Andrew Cagney <cagney@redhat.com>
3521
3522 * frame.c (frame_register_unwind): Use unsigned char when dumping
3523 the buffer contents.
3524
3525 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3526
3527 * cli/cli-logging.c: New file.
3528 * cli-out.c (struct ui_out_data): Add original_stream.
3529 (cli_redirect): New function.
3530 (cli_ui_out_impl): Add cli_redirect.
3531 (cli_out_new): Initialize original_stream.
3532 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3533 (uo_redirect, ui_out_redirect): New.
3534 * ui-out.h (struct ui_out_impl): Add redirect member.
3535 (redirect_ftype): New.
3536 (ui_out_redirect): Add prototype.
3537 * Makefile.in: Add rules for cli-logging.c.
3538 * NEWS: Mention "set logging".
3539
3540 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3541
3542 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3543
3544 2003-06-27 Andrew Cagney <cagney@redhat.com>
3545
3546 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3547 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3548 * avr-tdep.c (avr_call_dummy_address): Delete function.
3549 (avr_gdbarch_init): Do not set call_dummy_address.
3550
3551 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3552
3553 * symfile.c (syms_from_objfile): Move variables to inner block.
3554 Move the checks for the non-mainline case a bit earlier to avoid
3555 doing some useless computations.
3556
3557 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3558
3559 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3560
3561 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3562
3563 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3564 sections.
3565
3566 2003-06-26 Michael Chastain <mec@shout.net>
3567
3568 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3569 gdb/testsuite/gdb.c++/pr-1210.exp.
3570
3571 2003-06-26 Andrew Cagney <cagney@redhat.com>
3572
3573 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3574 altivec_expression.h and altivec_registers.h.
3575
3576 2003-06-26 Andrew Cagney <cagney@redhat.com>
3577
3578 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3579 info->mach when MIPS16. Patch suggested by Fred Fish.
3580
3581 2003-06-26 Andrew Cagney <cagney@redhat.com>
3582
3583 * utils.c (internal_vproblem): Print the problem to a reason
3584 buffer and then pass to query. Make the msg variable more local.
3585
3586 2003-06-26 Andrew Cagney <cagney@redhat.com>
3587
3588 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3589 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3590 * gdbarch.h, gdbarch.c: Re-generate.
3591 * frame-base.c (default_frame_args_address): Update. Use
3592 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3593 not available.
3594 (default_frame_locals_address): Ditto for
3595 DEPRECATED_FRAME_LOCALS_ADDRESS.
3596 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3597 (vax_frame_num_args): Update.
3598 (vax_gdbarch_init): Update.
3599 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3600 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3601 * mcore-tdep.c (mcore_gdbarch_init): Update.
3602 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3603 * ia64-tdep.c (ia64_gdbarch_init): Update.
3604 * symtab.h (address_class): Update comments.
3605 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3606 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3607 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3608 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3609 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3610 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3611 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3612 * alpha-mdebug-tdep.c: Update.
3613 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3614
3615 2003-06-26 Andreas Jaeger <aj@suse.de>
3616
3617 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3618 of SSE registers so that varargs functions work. Rework handling
3619 of passing arguments on the stack.
3620 (x86_64_store_return_value): Return double and float values in SSE
3621 register.
3622
3623 2003-06-24 Michael Chastain <mec@shout.net>
3624
3625 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3626 the "constructor breakpoints ignored" bug.
3627
3628 2003-06-25 David Carlton <carlton@kealia.com>
3629
3630 * MAINTAINERS: Update e-mail address.
3631
3632 2003-06-24 Jim Blandy <jimb@redhat.com>
3633
3634 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3635
3636 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3637 function.
3638 (ppc_linux_init_abi): Register it as the
3639 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3640
3641 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3642 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3643 method.
3644
3645 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3646 (ppc64_standard_linkage_target): Use it.
3647
3648 2003-06-23 Andrew Cagney <cagney@redhat.com>
3649
3650 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3651 for 0 "int0" and 4 "int32" sized registers.
3652 * gdbtypes.c (builtin_type_int0): Define.
3653 (build_gdbtypes): Initialize builtin_type_int0.
3654 * gdbtypes.h (builtin_type_int0): Declare.
3655
3656 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3657
3658 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3659 as characters are unsigned.
3660
3661 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3662
3663 PR gdb/1179
3664 * dwarfread.c (struct_type): Skip static fields without crashing.
3665
3666 2003-06-22 Andrew Cagney <cagney@redhat.com>
3667
3668 GDB 6.0 branch created.
3669 * README: Update.
3670 * PROBLEMS: Update. Empty.
3671 * NEWS: Update.
3672
3673 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3674
3675 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3676 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3677
3678 2003-06-22 Andrew Cagney <cagney@redhat.com>
3679
3680 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3681 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3682 Velikov.
3683
3684 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3685
3686 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3687 compilers.
3688
3689 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3690
3691 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3692 argument of val_print.
3693 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3694 to the address argument of baseclass_offset or target_read_memory.
3695 Do add it to the argument of cp_print_value_fields.
3696
3697 2003-06-21 Andrew Cagney <cagney@redhat.com>
3698
3699 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3700 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3701 instead of 0..NUM_REGS.
3702 (mips_register_reggroup_p): New function.
3703 (mips_pseudo_register_write): New function.
3704 (mips_pseudo_register_read): New function.
3705 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3706 based on the register's type.
3707 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3708 cooked.
3709 (mips_get_saved_register): Simplify. Assert that REGNO is a
3710 pseudo / cooked.
3711 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3712 (mips_register_type): Replace mips_register_virtual_type. Map
3713 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3714 when available.
3715 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3716 that the register is cooked / virtual.
3717 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3718 Only get the extra info when needed.
3719 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3720 (mips32_heuristic_proc_desc): Fetch the cooked register.
3721 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3722 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3723 (mips_print_register): Use gdbarch_register_type, instead of
3724 REGISTER_VIRTUAL_TYPE.
3725 (print_gp_register_row): Use gdbarch_register_type, instead of
3726 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3727 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3728 Print the pseudo / cooked registers.
3729 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3730 Print the pseudo / cooked registers.
3731 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3732 REG_NUM is pseudo / cooked.
3733 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3734 (mips_n32n64_xfer_return_value): Ditto.
3735 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3736 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3737 (mips_register_sim_regno): New function.
3738 (mips_gdbarch_init): Set deprecated_register_byte,
3739 register_group_p, pseudo_register_write, pseudo_register_read,
3740 register_sim_regno, and num_pseudo_regs. Set register_type,
3741 instead of register_virtual_type.
3742 * Makefile.in (mips-tdep.o): Update dependencies.
3743 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3744 REGISTER_VIRTUAL_TYPE.
3745 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3746 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3747 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3748 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3749 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3750
3751 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3752
3753 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3754 * cli/cli-cmds.c: Include "gdb_vfork.h".
3755 (shell_escape): Use vfork.
3756
3757 2003-06-21 Andrew Cagney <cagney@redhat.com>
3758
3759 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3760 32 bit floating-point register saves.
3761
3762 * frame.h (deprecated_unwind_get_saved_register): Delete.
3763 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3764 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3765 and deprecated_get_next_frame_hack instead of
3766 deprecated_unwind_get_saved_register.
3767
3768 * mips-tdep.c (mips_dump_tdep): Do not print
3769 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3770
3771 * frame.c (get_frame_register): New function.
3772 (frame_unwind_register_signed): New function.
3773 (get_frame_register_signed): New function.
3774 (frame_unwind_register_unsigned): New function.
3775 (get_frame_register_unsigned): New function.
3776 * frame.h: Add comments on naming schema.
3777 (get_frame_register, frame_unwind_register_signed): Declare.
3778 (get_frame_register_signed, get_frame_register_signed): Declare.
3779 (frame_unwind_register_unsigned): Declare.
3780 (get_frame_register_unsigned): Declare.
3781
3782 2003-06-20 Theodore A. Roth <troth@openavr.org>
3783
3784 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3785
3786 2003-06-20 Theodore A. Roth <troth@openavr.org>
3787
3788 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3789 (avr_read_sp): Ditto.
3790
3791 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3792
3793 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3794 * config/arm/nm-linux.h: Likewise.
3795 * config/arm/tm-linux.h: Likewise.
3796 * config/ia64/nm-linux.h: Likewise.
3797 * config/ia64/tm-ia64.h: Likewise.
3798 * config/s390/tm-linux.h: Likewise.
3799 * config/s390/tm-s390.h: Likewise.
3800 * s390-nat.c: Likewise.
3801 * s390-tdep.c: Likewise.
3802
3803 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3804 * config/ia64/linux.mt: Likewise.
3805 * config/m68k/linux.mh: Likewise.
3806 * config/mips/linux.mt: Likewise.
3807 * config/powerpc/linux.mh: Likewise.
3808 * config/sh/linux.mt: Likewise.
3809
3810 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3811
3812 * solib.c (solib_open): Change tests for whether to search
3813 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3814 comments.
3815
3816 2003-06-19 Theodore A. Roth <troth@openavr.org>
3817
3818 * avr-tdep.c (avr_frame_address): Delete function.
3819 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3820 set_gdbarch_frame_args_address.
3821
3822 2003-06-19 Andrew Cagney <cagney@redhat.com>
3823
3824 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3825 (REGISTER_CONVERT_FROM_TYPE): Delete.
3826 (mips_register_convert_to_type): Delete declaration.
3827 (mips_register_convert_from_type): Delete declaration.
3828 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3829 kernel/.
3830
3831 2003-06-19 Michael Snyder <msnyder@redhat.com>
3832
3833 * linux-nat.h: New file.
3834 * linux-nat.c: Include linux-nat.h.
3835 * lin-lwp.c: Include linux-nat.h.
3836 Move struct lwp_info def to linux-nat.h.
3837 * linux-proc.c: Include linux-nat.h.
3838 (linux_make_note_section): Iterate over lwps instead of threads.
3839 (linux_do_thread_registers): Use lwp instead of merged pid.
3840 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3841 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3842 Add dependency on linux_nat_h.
3843
3844 2003-06-19 Theodore A. Roth <troth@openavr.org>
3845
3846 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3847
3848 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3849
3850 * varobj.c (get_type, get_target_type): Use check_typedef.
3851
3852 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3853
3854 * breakpoint.c (insert_catchpoint): Call internal_error.
3855
3856 2003-06-19 Theodore A. Roth <troth@openavr.org>
3857
3858 * avr-tdep.c (avr_push_dummy_code): Delete function.
3859 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3860
3861 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3862
3863 * arch-utils.c (default_prepare_to_proceed): Remove.
3864 (generic_prepare_to_proceed): Remove.
3865 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3866 (generic_prepare_to_proceed): Remove prototype.
3867 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3868 * gdbarch.c: Regenerate.
3869 * gdbarch.h: Regenerate.
3870 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3871 * hppah-nat.c (hppa_switched_threads): Remove.
3872 * infrun.c (prepare_to_proceed): New static function, copied from
3873 generic_prepare_to_proceed. Remove select_it argument.
3874 (proceed): Call prepare_to_proceed.
3875 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3876 variables.
3877 (ptrace_wait): Don't set the removed variables.
3878 (hppa_switched_threads): Remove.
3879 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3880 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3881 (lin_lwp_prepare_to_proceed): Remove prototype.
3882 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3883 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3884
3885 2003-06-18 Theodore A. Roth <troth@openavr.org>
3886
3887 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3888 trad-frame.h.
3889 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3890 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3891 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3892 (AVR_PROLOGUE_*): Enumerate prologue types.
3893 (struct frame_extra_info): Remove.
3894 (struct avr_unwind_cache): Define.
3895 (avr_write_sp): Delete function.
3896 (avr_read_fp): Ditto.
3897 (avr_init_extra_frame_info): Ditto.
3898 (avr_pop_frame): Ditto.
3899 (avr_frame_saved_pc): Ditto.
3900 (avr_saved_pc_after_call): Ditto.
3901 (avr_push_return_address): Ditto.
3902 (avr_frame_chain): Ditto.
3903 (avr_store_struct_return): Ditto.
3904 (avr_push_arguments): Ditto.
3905 (avr_scan_prologue): Update comments. Changed to set up the info for
3906 cache unwinding. Now returns end of prologue PC.
3907 (avr_skip_prologue): Better handling of functions lacking a prologue
3908 by using avr_scan_prologue.
3909 (avr_scan_arg_moves): New function.
3910 (avr_saved_regs_unwinder): Ditto.
3911 (avr_frame_unwind_cache): Ditto.
3912 (avr_unwind_pc): Ditto.
3913 (avr_frame_this_id): Ditto.
3914 (avr_frame_prev_register): Ditto.
3915 (avr_frame_p): Ditto.
3916 (avr_frame_base_address ): Ditto.
3917 (avr_unwind_dummy_id): Ditto.
3918 (avr_push_dummy_code): Ditto.
3919 (push_stack_item): Ditto.
3920 (pop_stack_item): Ditto.
3921 (avr_push_dummy_call): Ditto.
3922 (struct stack_item): Define.
3923 (avr_frame_unwind): Declare structure.
3924 (avr_frame_base): Ditto.
3925 (avr_gdbarch_init): Remove calls to
3926 set_gdbarch_deprecated_init_frame_pc,
3927 set_gdbarch_deprecated_target_read_fp,
3928 set_gdbarch_deprecated_dummy_write_sp,
3929 set_gdbarch_deprecated_fp_regnum,
3930 set_gdbarch_deprecated_push_arguments,
3931 set_gdbarch_deprecated_push_return_address,
3932 set_gdbarch_deprecated_pop_frame,
3933 set_gdbarch_deprecated_store_struct_return,
3934 set_gdbarch_deprecated_frame_init_saved_regs,
3935 set_gdbarch_deprecated_init_extra_frame_info,
3936 set_gdbarch_deprecated_frame_chain,
3937 set_gdbarch_deprecated_frame_saved_pc,
3938 set_gdbarch_deprecated_saved_pc_after_call.
3939 Add calls to set_gdbarch_push_dummy_call,
3940 set_gdbarch_push_dummy_code,
3941 frame_unwind_append_predicate,
3942 frame_base_set_default,
3943 set_gdbarch_unwind_dummy_id,
3944 set_gdbarch_unwind_pc.
3945 Wrap a long line.
3946
3947 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3948
3949 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3950 registers for H8/300S.
3951 (h8300_print_registers_info): Ditto.
3952 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3953
3954 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3955
3956 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3957 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3958 (lin_lwp_wait): Likewise. Update comments.
3959 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3960 (pull_pid_from_list, linux_record_stopped_pid): New.
3961
3962 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3963
3964 * ada-lang.c (scan_discrim_bound): Name first argument.
3965 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3966 declared by ALL_BLOCK_SYMBOLS.
3967
3968 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3969
3970 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3971 ("regcache.h"): Include it.
3972 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3973
3974 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3975
3976 * NEWS: Mention gdbserver detach change and "disconnect" command.
3977 * infcmd.c (disconnect_command): New function.
3978 (_initialize_infcmd): Add ``disconnect'' command.
3979 * remote.c (remote_async_detach): Delete.
3980 (remote_detach): Merge remote_async_detach.
3981 (remote_disconnect): New.
3982 (init_remote_ops): Set to_disconnect.
3983 (init_remote_cisco_ops): Likewise.
3984 (init_remote_async_ops): Likewise. Use remote_detach.
3985 * target.c (cleanup_target): Default to_disconnect.
3986 (update_current_target): Inherit to_disconnect.
3987 (target_disconnect, debug_to_disconnect): New functions.
3988 (setup_target_debug): Set to_disconnect.
3989 * target.h (struct target_ops): Add to_disconnect.
3990 (target_disconnect): Add prototype.
3991
3992 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3993
3994 * breakpoint.c (insert_catchpoint): New function.
3995 (insert_breakpoints): Use catch_exceptions to call
3996 insert_catchpoint. Disable catchpoints if they fail to insert.
3997
3998 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3999
4000 * symfile.c (reread_symbols): Clear sym_private.
4001
4002 2003-06-17 Andrew Cagney <cagney@redhat.com>
4003
4004 * trad-frame.h (struct frame_info): Add opaque declaration.
4005 * remote-fileio.h (struct cmd_list_element): Add opaque
4006 declaration.
4007 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4008 comments.
4009
4010 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4011
4012 * remote.c (remote_prepare_to_store): Replace call to
4013 deprecated_read_register_bytes with multiple regcache_raw_read
4014 calls.
4015
4016 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4017
4018 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4019 (nto_find_and_open_solib): Likewise.
4020 (nto_init_solib_absolute_prefix): Likewise.
4021 (_initialize_nto_tdep): Fix indentation.
4022
4023 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4024
4025 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4026
4027 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4028
4029 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4030
4031 2003-06-17 Jim Blandy <jimb@redhat.com>
4032
4033 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4034
4035 2003-06-16 Theodore A. Roth <troth@openavr.org>
4036
4037 * avr-tdep.c (avr_extract_return_value): New function.
4038 (avr_gdbarch_init): Set extract_return_value method.
4039
4040 2003-06-16 Andrew Cagney <cagney@redhat.com>
4041
4042 * frame.h (deprecated_get_next_frame_hack): Declare.
4043 * frame.c (legacy_saved_regs_prev_register): Only require
4044 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4045 there are always saved regs.
4046 (deprecated_generic_get_saved_register): Do not require
4047 DEPRECATED_FRAME_INIT_SAVED_REGS.
4048 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4049 use frame ID unwind instead.
4050 (deprecated_get_next_frame_hack): New function.
4051
4052 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4053
4054 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4055 (h8300_push_dummy_call): ...this function. Some minor optimization.
4056 (h8300_push_return_address): Remove.
4057 (h8300_gdbarch_init): Remove calls to
4058 set_gdbarch_deprecated_dummy_write_sp,
4059 set_gdbarch_deprecated_push_arguments and
4060 set_gdbarch_deprecated_push_return_address.
4061 Add call to set_gdbarch_push_dummy_call.
4062
4063 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4064
4065 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4066 (E_PSEUDO_EXR_REGNUM): Ditto.
4067 (h8300_is_argument_spill): Check for instructions moving argument
4068 registers into safe registers.
4069 (h8300_skip_prologue): Check for stm instruction to push registers
4070 used for register variables onto stack.
4071 (gdb_print_insn_h8300): Remove.
4072 (h8300_examine_prologue): Add a comment.
4073 (h8300_register_name): Take pseudo registers into account.
4074 (h8300s_register_name): Ditto.
4075 (h8300sx_register_name): Ditto.
4076 (h8300_print_register): Ditto.
4077 (h8300_print_registers_info): Define "nice" printing order.
4078 (h8300_saved_pc_after_call): Take pseudo registers into account.
4079 (h8300_register_type): Ditto. Return type used for remote connection
4080 when requesting real CCR or EXR register, return actual type when
4081 requesting pseudo CCR or EXR.
4082 (h8300_pseudo_register_read): New function.
4083 (h8300_pseudo_register_write): Ditto.
4084 (h8300_dbg_reg_to_regnum): Ditto.
4085 (h8300s_dbg_reg_to_regnum): Ditto.
4086 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4087 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4088 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4089 set_gdbarch_print_insn architecture dependent.
4090 Call set_gdbarch_pseudo_register_read and
4091 set_gdbarch_pseudo_register_write.
4092 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4093
4094 2003-06-16 Andrew Cagney <cagney@redhat.com>
4095
4096 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4097 * gdbarch.h, gdbarch.c: Re-generate.
4098 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4099 * s390-tdep.c (s390_gdbarch_init): Update.
4100 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4101 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4102 * mips-tdep.c (mips_gdbarch_init): Update.
4103 * mcore-tdep.c (mcore_gdbarch_init): Update.
4104 * cris-tdep.c (cris_gdbarch_init): Update.
4105 * infcall.c (call_function_by_hand): Update.
4106 * ia64-tdep.c (ia64_push_arguments): Update comment.
4107 * frame.c (legacy_get_prev_frame): Do not assume
4108 SAVE_DUMMY_FRAME_TOS_P.
4109 * dummy-frame.c (find_dummy_frame): Update comment.
4110
4111 2003-06-16 Andrew Cagney <cagney@redhat.com>
4112
4113 * regcache.c (do_cooked_read): Do not use register_valid_p.
4114
4115 2003-06-15 Theodore A. Roth <troth@openavr.org>
4116
4117 * avr-tdep.c (avr_register_type): Remove a blank line.
4118 (avr_scan_prologue): Correct some comments.
4119
4120 2003-06-15 Theodore A. Roth <troth@openavr.org>
4121
4122 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4123 prologue types.
4124 Properly scan prologues generated by gcc with the -mcall-prologues
4125 option.
4126 Add code to scan -mcall-prologues for mega devices.
4127
4128 2003-06-15 Theodore A. Roth <troth@openavr.org>
4129
4130 * avr-tdep.c (avr_register_byte): Delete function.
4131 (avr_register_raw_size): Delete function.
4132 (avr_register_virtual_size): Delete function.
4133 (avr_register_virtual_type): Delete function.
4134 (avr_register_type): New function.
4135 (avr_address_to_pointer): Remove unused code.
4136 (avr_read_fp): Need to read FP as two separate bytes due to change to
4137 avr_register_type() usage.
4138 (avr_gdbarch_init): Don't set deprecated_register_size.
4139 Don't set deprecated_register_bytes.
4140 Don't set deprecated_register_byte.
4141 Don't set deprecated_register_raw_size.
4142 Don't set deprecated_max_register_raw_size.
4143 Don't set deprecated_register_virtual_size.
4144 Don't set deprecated_max_register_virtual_size.
4145 Don't set deprecated_register_virtual_type.
4146 Set register_type method.
4147
4148 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4149
4150 * Makefile.in (linux-nat.o): Add rule.
4151 * linux-nat.c: New file.
4152 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4153 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4154 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4155 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4156 * config/arm/linux.mh (NATDEPFILES): Likewise.
4157 * config/i386/linux.mh (NATDEPFILES): Likewise.
4158 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4159 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4160 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4161 * config/mips/linux.mh (NATDEPFILES): Likewise.
4162 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4163 * config/s390/s390.mh (NATDEPFILES): Likewise.
4164 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4165
4166 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4167
4168 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4169 replace out-of-date comment.
4170
4171 2003-06-15 Andrew Cagney <cagney@redhat.com>
4172
4173 * rdi-share/host.h (Fail): Change to a varargs function.
4174 * remote-rdi.c (Fail): Update.
4175
4176 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4177
4178 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4179 (i386_convert_register_p, i386_register_to_value,
4180 i386_register_from_value): Handle types longer than 8 bytes.
4181
4182 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4183
4184 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4185 Move floating-point code to new function in i387-tdep.c.
4186 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4187 New functions containing code moved here from i386-tdep.c.
4188 * i387-tdep.h: Add opaque declaration for `struct type'.
4189 (i387_register_to_value, i387_value_to_register): New prototypes.
4190 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4191 (x86_64_init_abi): Set convert_register_p, register_to_value and
4192 value_to_register here.
4193
4194 2003-06-14 Andrew Cagney <cagney@redhat.com>
4195
4196 * mips-tdep.c (mips_register_to_value): Make static.
4197 (mips_value_to_register): Make static.
4198 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4199 * ia64-tdep.c (ia64_register_raw_size): Make static.
4200 (ia64_register_virtual_size): Make static.
4201 (ia64_register_byte): Make static.
4202 * i387-tdep.c: Include "i387-tdep.h".
4203 (print_387_control_word): Delete function.
4204 (print_387_status_word): Delete function.
4205 (print_387_status_bits): Delete function.
4206 (print_387_control_bits): Delete function.
4207 * Makefile.in (i387-tdep.o): Update dependencies.
4208 * rdi-share/host.h (Fail): Declare.
4209 * remote-rdi.c (Fail): Update to match declaration.
4210
4211 2003-06-14 Andrew Cagney <cagney@redhat.com>
4212
4213 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4214 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4215 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4216 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4217 * README: Delete reference to remote-array.
4218 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4219 (remote-array.o): Delete target.
4220 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4221 * remote-array.c: Delete file.
4222
4223 2003-06-14 Andrew Cagney <cagney@redhat.com>
4224 Mark Kettenis <kettenis@gnu.org>
4225
4226 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4227 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4228 parameter with "frame".
4229 * gdbarch.h, gdbarch.c: Re-generate.
4230 * frame.h (put_frame_register): Declare.
4231 * frame.c (put_frame_register): New function.
4232 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4233 (legacy_register_to_value): Rewrite, use "frame" to get the
4234 register value.
4235 (legacy_value_to_register): Rewrite, use "frame" to find the
4236 register's location before storing.
4237 * arch-utils.h (legacy_convert_register_p): Update.
4238 (legacy_register_to_value, legacy_value_to_register): Update.
4239 * findvar.c (value_from_register): Rewrite, eliminate use of
4240 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4241 "frame" to REGISTER_TO_VALUE.
4242 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4243 lval_reg_frame_relative + lval_register branch of the switch. Do
4244 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4245 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4246 I386_EDI_REGNUM): New defines.
4247 (i386_next_regnum, i386_convert_register_p,
4248 i386_register_to_value, i386_value_to_register): New functions.
4249 (i386_register_convertible, i386_register_convert_to_virtual,
4250 i386_convert_to_raw): Remove functions.
4251 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4252 value_to_register instead of register_convertible,
4253 register_convert_to_virtual and register_convert_to_raw.
4254 * mips-tdep.c (mips_convert_register_p): New function.
4255 (mips_value_to_register): Replace mips_register_convert_from_type.
4256 (mips_register_to_value): Replace mips_register_convert_to_type.
4257 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4258 register_to_value.
4259 * alpha-tdep.c (alpha_convert_register_p): Update.
4260 (alpha_value_to_register): Update, store the register.
4261 (alpha_register_to_value): Update, fetch the register.
4262
4263 2003-06-14 Theodore A. Roth <troth@openavr.org>
4264
4265 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4266 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4267 Don't set deprecated_call_dummy_words.
4268 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4269 Don't set remote_translate_xfer_address.
4270 (avr_io_reg_read_command): Remove commented out debug printf.
4271 Wrap a long line.
4272
4273 2003-06-14 Theodore A. Roth <troth@openavr.org>
4274
4275 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4276 causes gdb to seg fault.
4277
4278 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4279
4280 * sparc-nat.c (fetch_inferior_registers): Correct
4281 a reference to "registers".
4282
4283 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4284
4285 * Makefile.in (exc_request_U_h): Define
4286 (exc_request_S_h): Likewise.
4287 (msg_reply_S_h): Likewise.
4288 (msg_U_h): Likewise.
4289 (notify_S_h): Likewise.
4290 (process_reply_S_h): Likewise.
4291 (gnu-nat.o): Depend on gdb_obstack_h
4292 * gnu-nat.c: Include "gdb_obstack.h".
4293
4294 2003-06-13 Andrew Cagney <cagney@redhat.com>
4295
4296 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4297 * gdbarch.h, gdbarch.c: Re-generate.
4298
4299 2003-06-13 Andrew Cagney <cagney@redhat.com>
4300
4301 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4302 when deprecated REGISTER macros can be deleted.
4303 * gdbarch.h, gdbarch.c: Re-generate.
4304
4305 2003-06-13 Jim Blandy <jimb@redhat.com>
4306
4307 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4308 Linux entry point symbols for _dl_debug_state, too.
4309
4310 2003-06-13 Andrew Cagney <cagney@redhat.com>
4311
4312 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4313 available, do not use the FP register, and always save the TOS.
4314 * dummy-frame.c (dummy_frame_this_id): Do not assert
4315 SAVE_DUMMY_FRAME_TOS.
4316 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4317 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4318 (i386_push_dummy_call): Add 8 to the returned SP.
4319 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4320 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4321 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4322 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4323 (x86_64_push_dummy_call): Return "sp + 16".
4324 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4325 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4326 save_dummy_frame_tos.
4327
4328 2003-06-13 Jim Blandy <jimb@redhat.com>
4329
4330 * frv-tdep.c (frv_use_struct_convention): Delete static
4331 declaration for function deleted in my change of 2003-06-12.
4332
4333 2003-06-13 Theodore A. Roth <troth@openavr.org>
4334
4335 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4336 (avr_pointer_to_address): Shift code addrs left 1 bit.
4337 (avr_convert_from_func_ptr_addr): Delete function since operation is
4338 better handled by avr_address_to_pointer and avr_pointer_to_address.
4339 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4340
4341 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4342
4343 From Kelley Cook <kelleycook@wideopenwest.com>:
4344 * configure.host: Accept i[34567]86 variants.
4345 * configure.tgt: Likewise.
4346 * nlm/configure.in: Likewise.
4347 * nlm/configure: Regenerated.
4348
4349 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4350
4351 * arm-tdep.c (solib-svr4.h): Dont' include it.
4352 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4353 * arm-linux-tdep.c: ... here. Make static.
4354 (arm_linux_init_abi): Register it.
4355 (solib-svr4.h): Include it.
4356 * Makefile.in: Update dependencies.
4357 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4358 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4359
4360 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4361
4362 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4363 indicate registers used for return values.
4364 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4365 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4366 members.
4367 (h8300_init_extra_frame_info): Ditto.
4368 (h8300_frame_locals_address): Removed.
4369 (h8300_frame_args_address): Removed.
4370 (h8300_extract_return_value): Use new regcache structure. Only care
4371 for 16 bit CPUs.
4372 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4373 (h8300_store_return_value): Use new regcache structure. Only care
4374 for 16 bit CPUs.
4375 (h8300h_store_return_value): Same function for 32 bit CPUs.
4376 (h8300_store_struct_return): Removed.
4377 (h8300_extract_struct_value_address): Use new regcache structure.
4378 (h8300h_extract_struct_value_address): Removed.
4379 (h8300_push_dummy_code): New function.
4380 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4381 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4382 set_gdbarch_store_return_value architecture dependent.
4383 Call set_gdbarch_push_dummy_code and
4384 set_gdbarch_extract_struct_value_address.
4385 Remove calls to set_gdbarch_frame_args_address,
4386 set_gdbarch_frame_locals_address,
4387 set_gdbarch_deprecated_store_struct_return,
4388 set_gdbarch_deprecated_extract_return_value,
4389 set_gdbarch_deprecated_extract_struct_value_address,
4390 set_gdbarch_deprecated_call_dummy_words and
4391 set_gdbarch_deprecated_sizeof_call_dummy_words.
4392
4393 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4394
4395 * h8300-tdep.c (h8300_register_byte): Remove.
4396 (h8300h_register_byte): Remove.
4397 (h8300_register_virtual_type): Remove. Substitute by...
4398 (h8300_register_type): New function.
4399 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4400 (h8300h_extract_struct_value_address): Ditto.
4401 (h8300_gdbarch_init): Drop calls to
4402 set_gdbarch_deprecated_register_byte and
4403 set_gdbarch_deprecated_register_virtual_type.
4404 Add call to set_gdbarch_register_type.
4405
4406 2003-06-13 Andrew Cagney <cagney@redhat.com>
4407
4408 * gdbarch.sh: Update comments on registers.
4409 (deprecated_register_byte): Rename register_byte.
4410 (deprecated_register_raw_size): Rename register_raw_size.
4411 (deprecated_register_virtual_size): Rename register_virtual_size.
4412 (deprecated_register_virtual_type): Rename register_virtual_type.
4413 * gdbarch.h, gdbarch.c: Re-generate.
4414 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4415 * vax-tdep.c (vax_gdbarch_init): Update.
4416 * v850-tdep.c (v850_gdbarch_init): Update.
4417 * sparc-tdep.c (sparc_gdbarch_init): Update.
4418 * sh-tdep.c (sh_gdbarch_init): Update.
4419 * s390-tdep.c (s390_gdbarch_init): Update.
4420 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4421 * ns32k-tdep.c: Update.
4422 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4423 * mips-tdep.c (mips_gdbarch_init): Update.
4424 * mcore-tdep.c (mcore_gdbarch_init): Update.
4425 * m68k-tdep.c (m68k_gdbarch_init): Update.
4426 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4427 * ia64-tdep.c (ia64_gdbarch_init): Update.
4428 * hppa-tdep.c (hppa_gdbarch_init): Update.
4429 * h8300-tdep.c (h8300_gdbarch_init): Update.
4430 * frv-tdep.c (frv_gdbarch_init): Update.
4431 * cris-tdep.c (cris_gdbarch_init): Update.
4432 * avr-tdep.c (avr_gdbarch_init): Update.
4433 * alpha-tdep.c (alpha_gdbarch_init): Update.
4434 * arm-tdep.c (arm_gdbarch_init): Update.
4435
4436 2003-06-13 Andrew Cagney <cagney@redhat.com>
4437
4438 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4439 mips_o32_use_struct_convention with always_use_struct_convention.
4440
4441 2003-06-12 David Carlton <carlton@kealia.com>
4442
4443 * cp-namespace.c (cp_set_block_scope): Comment out
4444 processing_has_namespace_info branch.
4445
4446 2003-06-12 Jim Blandy <jimb@redhat.com>
4447
4448 Recognize and skip 64-bit PowerPC Linux linkage functions.
4449 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4450 insn_pattern, insns_match_pattern, d_field, ds_field): New
4451 functions, macros, and types for working with PPC instructions.
4452 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4453 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4454 ppc64_skip_trampoline_code): New functions, variables, and macros
4455 for recognizing and skipping linkage functions.
4456 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4457 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4458
4459 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4460 register offsets for both the 32- and 64-bit interfaces.
4461
4462 Actually finish the job started by my change of 2003-05-29.
4463 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4464 other #definition of this.
4465 (ppc_linux_skip_trampoline_code): Remove declaration.
4466 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4467 static.
4468 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4469 method for GDBARCH.
4470
4471 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4472 'long' on ppc64-*-linux*.
4473
4474 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4475 isn't #defined, assume the register doesn't exist: act as if
4476 tdep->ppc_mq_regnum were -1.
4477
4478 * configure.host, configure.tgt: Add entries for
4479 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4480 powerpc/linux.mt.
4481 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4482 New files.
4483
4484 * arch-utils.c (always_use_struct_convention): New function.
4485 * arch-utils.h (always_use_struct_convention): New prototype.
4486 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4487 (alpha_gdbarch_init): Register always_use_struct_convention,
4488 instead of alpha_use_struct_convention.
4489 * cris-tdep.c (cris_use_struct_convention): Delete.
4490 (cris_gdbarch_init): Register always_use_struct_convention,
4491 instead of cris_use_struct_convention.
4492 * frv-tdep.c (frv_use_struct_convention): Delete.
4493 (frv_gdbarch_init): Register always_use_struct_convention,
4494 instead of frv_use_struct_convention.
4495 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4496 (h8300_gdbarch_init): Register always_use_struct_convention,
4497 instead of h8300_use_struct_convention.
4498 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4499 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4500 instead of mips_o32_use_struct_convention.
4501
4502 2003-06-12 Andrew Cagney <cagney@redhat.com>
4503
4504 * wince.c: Include "mips-tdep.h".
4505 * mips-tdep.h (mips_next_pc): Declare.
4506 * mcore-tdep.c: Make more local functions static.
4507 * Makefile.in (wince.o): Update dependencies.
4508
4509 2003-06-12 David Carlton <carlton@kealia.com>
4510
4511 * symtab.c (lookup_symbol_aux_minsyms): Replace
4512 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4513 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4514 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4515 SYMBOL_NATURAL_NAME.
4516
4517 2003-06-12 Andreas Schwab <schwab@suse.de>
4518
4519 * Makefile.in (tuiDisassem.o): Update dependencies.
4520
4521 2003-06-12 David Carlton <carlton@bactrian.org>
4522
4523 * symtab.h: Delete declaration of make_symbol_overload_list.
4524 Add declaration of lookup_partial_symbol.
4525 * symtab.c (remove_params): Move to cp-support.c.
4526 (overload_list_add_symbol, make_symbol_overload_list)
4527 (sym_return_val_size, sym_return_val_index): Ditto.
4528 (lookup_partial_symbol): Make extern.
4529 * cp-support.h: Add declaration of make_symbol_overload_list.
4530 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4531 symtab.h, and block.h.
4532 (remove_params): Move here from symtab.c.
4533 (overload_list_add_symbol, make_symbol_overload_list)
4534 (sym_return_val_size, sym_return_val_index): Ditto.
4535 * valops.c: Include cp-support.h.
4536 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4537 frame_h, and block_h.
4538 (valops.o): Depend on cp_support_h.
4539
4540 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4541
4542 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4543 substitute by NUM_REGS throughout.
4544 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4545 (h8300s_register_name): New function for H8S registers.
4546 (h8300sx_register_name): Ditto for H8SX registers.
4547 (h8300_print_register): Revise register printing, avoid depending
4548 on 32 bit long.
4549 (h8300_register_byte): Only care for H8/300 registers.
4550 (h8300h_register_byte): New function for any other architecture.
4551 (h8300_register_raw_size): Remove.
4552 (h8300_register_virtual_type): Revise to return actually useful
4553 type.
4554 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4555 (h8300h_extract_struct_value_address): New function for any other
4556 architecture.
4557 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4558 set_gdbarch_register_name, set_gdbarch_register_byte,
4559 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4560 Remove calls to set_gdbarch_deprecated_register_size,
4561 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4562 set_gdbarch_deprecated_max_register_raw_size,
4563 set_gdbarch_register_virtual_size and
4564 set_gdbarch_deprecated_max_register_virtual_size entirely.
4565 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4566 set_gdbarch_long_double_bit.
4567
4568 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4569
4570 * doublest.c (convert_doublest_to_floatformat): When dealing
4571 with the implied integer bit, only alter mant_bits if we are
4572 processing a full 32 bits of mantissa.
4573
4574 2003-06-11 David Carlton <carlton@bactrian.org>
4575
4576 * dictionary.h: New.
4577 * dictionary.c: New.
4578 * block.h: Add opaque declaration for struct dictionary.
4579 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4580 'sym' members.
4581 (BLOCK_DICT): New macro.
4582 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4583 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4584 BLOCK_SHOULD_SORT.
4585 (ALL_BLOCK_SYMBOLS): Update definition.
4586 * Makefile.in (SFILES): Add dictionary.c.
4587 (dictionary_h): New.
4588 (COMMON_OBS): Add dictionary.o.
4589 (dictionary.o): New.
4590 (ada-lang.o): Depend on dictionary_h.
4591 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4592 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4593 (mi-cmd-stack.o): Ditto.
4594 (gdbtk-cmds.o): Update dependencies.
4595 (gdbtk-stack.o): Ditto.
4596 * ada-lang.c: Include dictionary.h.
4597 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4598 (fill_in_ada_prototype, debug_print_block): Ditto.
4599 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4600 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4601 'is_sorted'.
4602 * mdebugread.c: Include dictionary.h.
4603 (struct parse_stack): Delete 'maxsyms' member.
4604 (parse_symbol): Update calls to new_block. Delete calls to
4605 shrink_block. Use dictionary methods.
4606 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4607 Update calls to new_symtab. Don't maintain maxsyms data.
4608 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4609 (add_symbol): Just call dict_add_symbol.
4610 (new_symtab): Delete 'maxsyms' argument.
4611 (new_symtab): Update calls to new_block.
4612 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4613 (shrink_block): Delete function.
4614 (fixup_sigtramp): Update call to new_block. Add symbol via
4615 dict_add_symbol.
4616 * jv-lang.c: Include dictionary.h.
4617 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4618 appropriately. Set class_symtab->free_func. Make sure the
4619 blockvector is big enough to hold two blocks.
4620 (add_class_symtab_symbol): Use dictionary methods.
4621 (free_class_block): New function.
4622 (type_from_class): Replace explicit iteration by
4623 ALL_BLOCK_SYMBOLS.
4624 * symtab.h (struct symtab): Replace 'free_ptr' method by
4625 'free_func'.
4626 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4627 sort_symtab_syms.
4628 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4629 sort_symtab_syms.
4630 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4631 Include dictionary.h.
4632 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4633 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4634 sort_symtab_syms.
4635 * objfiles.c: Include dictionary.h.
4636 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4637 * buildsym.c: Include dictionary.h.
4638 (finish_block): Use dictionary methods.
4639 (end_symtab): Set free_func to NULL, not free_ptr.
4640 * tracepoint.c: Include dictionary.h.
4641 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4642 (scope_info): Ditto.
4643 * stack.c: Include dictionary.h.
4644 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4645 (print_block_frame_labels, print_frame_arg_vars)
4646 (print_frame_args): Ditto.
4647 * symmisc.c (free_symtab_block): Use dictionary methods.
4648 (dump_symtab): Ditto.
4649 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4650 Include dictionary.h.
4651 * symfile.h: Delete declarations of sort_block_syms,
4652 sort_symtab_syms.
4653 * symfile.c (sort_block_syms): Delete.
4654 (sort_symtab_syms): Delete.
4655 * symtab.c: Include dictionary.h.
4656 (lookup_block_symbol): Use dictionary iterators.
4657 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4658 (search_symbols, make_symbol_completion_list): Ditto.
4659 (make_symbol_overload_list): Ditto.
4660 * valops.c (value_of_local): Use dict_empty.
4661 Include dictionary.h.
4662
4663 2003-06-11 J. Brobecker <brobecker@gnat.com>
4664
4665 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4666
4667 2003-06-11 David Carlton <carlton@bactrian.org>
4668
4669 * block.h (BLOCK_SHOULD_SORT): Delete.
4670 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4671 blocks.
4672 * ada-lang.c (ada_add_block_symbols): Ditto.
4673 * symfile.c (sort_block_syms): Delete.
4674 (sort_symtab_syms): Ditto.
4675 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4676 declarations.
4677 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4678 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4679 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4680 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4681 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4682 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4683 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4684
4685 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4686
4687 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4688 bits to 128.
4689
4690 2003-06-11 Andrew Cagney <cagney@redhat.com>
4691
4692 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4693 REGISTER_CONVERTIBLE.
4694 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4695 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4696 * gdbarch.h, gdbarch.c: Re-generate.
4697 * arch-utils.h (deprecated_register_convertible_not): Rename
4698 generic_register_convertible_not.
4699 * arch-utils.c (deprecated_register_convertible_not): Rename
4700 generic_register_convertible.
4701 (legacy_convert_register_p, legacy_register_to_value): Update.
4702 * sh-tdep.c (sh64_push_arguments): Update.
4703 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4704 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4705 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4706 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4707 * arch-utils.c (legacy_value_to_register): Update.
4708 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4709 (rs6000_register_convert_to_raw): Make parameter "from" const.
4710 * mips-tdep.c (mips_gdbarch_init): Update.
4711 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4712 * infcmd.c (default_print_registers_info): Update.
4713 * ia64-tdep.c (ia64_gdbarch_init): Update.
4714 (ia64_register_convert_to_raw): Make parameter "from" const.
4715 * i386-tdep.c (i386_gdbarch_init): Update.
4716 (i386_register_convert_to_raw): Update.
4717
4718 2003-06-11 Andrew Cagney <cagney@redhat.com>
4719
4720 * remote-fileio.c: Include "remote-fileio.h".
4721 * Makefile.in (remote-fileio.o): Update dependencies.
4722 (remote_fileio_h): Fix typo.
4723
4724 2003-06-11 Andrew Cagney <cagney@redhat.com>
4725
4726 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4727 (xstormy16_save_dummy_frame_tos): Make static.
4728 (_initialize_xstormy16_tdep): Add declaration.
4729 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4730 * v850-tdep.c: Make local functions static.
4731 (_initialize_v850_tdep): Add declaration.
4732 * sparc-tdep.c: Make local functions static.
4733 (_initialize_sparc_tdep): Add declaration.
4734 * sh-tdep.c: Make local functions static.
4735 (_initialize_sh_tdep): Add declaration.
4736 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4737 * s390-tdep.c: Make local functions static.
4738 (_initialize_s390_tdep): Add declaration.
4739 * dbxread.c (find_stab_function_addr): Make static.
4740 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4741 * ocd.c (_initialize_remote_ocd): Add declaration.
4742 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4743 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4744 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4745 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4746 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4747 * remote-array.c (_initialize_array): Add declaration.
4748 (_initialize_remote_monitors): Add declaration.
4749 * remote-mips.c: Make local functions static.
4750 (_initialize_remote_mips): Add declaration.
4751 * mcore-tdep.c: Make all local functions static.
4752 (_initialize_mcore_tdep): Add declaration.
4753 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4754 * abug-rom.c (_initialize_abug_rom): Add declaration.
4755 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4756 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4757 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4758 * remote-est.c (_initialize_est): Add declaration.
4759 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4760 (m68hc11_call_dummy_address): Make static.
4761 * ia64-tdep.c: Make local functions static.
4762 (_initialize_ia64_tdep): Add declaration.
4763 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4764 * monitor.c (monitor_wait_filter): Make static.
4765 (_initialize_remote_monitors): Add declaration.
4766 * remote-hms.c (_initialize_remote_hms): Add declaration.
4767 * remote-e7000.c (fetch_regs_from_dump): Make static.
4768 (expect_n): Make static.
4769 (_initialize_remote_e7000): Add declaration.
4770 * ser-e7kpc.c: Always include "defs.h".
4771 (_initialize_ser_e7000pc): Add declaration.
4772 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4773 * cris-tdep.c: Make all but one function static.
4774 (_initialize_cris_tdep): Add declaration.
4775 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4776 * solib.c (update_solib_list): Make static.
4777 (_initialize_solib): Add declaration.
4778 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4779 (_initialize_avr_tdep): Add declaration.
4780 * remote-rdi.c (voiddummy): Make static.
4781 (_initialize_remote_rdi): Add declaration.
4782 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4783 * remote-rdp.c (send_rdp): Make static.
4784 (_initialize_remote_rdp): Add declaration.
4785 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4786
4787 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4788
4789 * remote-fileio.c: Make ari happy.
4790
4791 2003-06-10 J. Brobecker <brobecker@gnat.com>
4792
4793 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4794 fetching the trailing bytes of the buffer we are about to write.
4795
4796 2003-06-10 Andrew Cagney <cagney@redhat.com>
4797
4798 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4799 * Makefile.in (remote-fileio.o): Update dependencies.
4800 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4801 include <setjmp.h>, or <sys/types.h> conditional on USG.
4802 (remote_fio_jmp_buf): Delete global variable.
4803
4804 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4805 Martin M. Hunt <hunt@redhat.com>
4806
4807 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4808 (SFILES): Add remote-fileio.c.
4809 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4810 dependencies for building remote.o.
4811 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4812 * remote-fileio.h: New header file defining remote File-I/O interface.
4813 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4814 static storage class.
4815 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4816 'F' packet.
4817 (_initialize_remote): Call initialize_remote_fileio().
4818 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4819 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4820 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4821 (captured_main): Initialize new ui_files.
4822 * ui-file.c: Add read and fgets input functions.
4823 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4824 (null_file_read): New function.
4825 (ui_file_read): New function.
4826 (set_ui_file_read): New function.
4827 (stdio_file_read): New function.
4828 * ui-file.h: New type ui_file_read_ftype.
4829 (set_ui_file_read): Declare.
4830 (ui_file_read): Declare.
4831
4832 2003-06-09 Andrew Cagney <cagney@redhat.com>
4833
4834 * frame.h (deprecated_unwind_get_saved_register): Rename
4835 generic_unwind_get_saved_register, update comments.
4836 * mips-tdep.c (mips_get_saved_register): Update.
4837 * frame.c (deprecated_unwind_get_saved_register): Update.
4838
4839 2003-06-09 Andrew Cagney <cagney@redhat.com>
4840
4841 * vax-tdep.c (vax_frame_locals_address): Delete function.
4842 (vax_gdbarch_init): Do not set frame_locals_address.
4843 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4844 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4845 * s390-tdep.c (s390_frame_args_address): Delete function.
4846 (s390_gdbarch_init): Do not set frame_args_address or
4847 frame_locals_address.
4848 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4849 (ns32k_gdbarch_init): Do not set frame_locals_address.
4850 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4851 (hppa_frame_locals_address): Delete function.
4852 (hppa_gdbarch_init): Do not set frame_args_address, or
4853 frame_locals_address.
4854 * arm-tdep.c (arm_frame_args_address): Delete.
4855 (arm_frame_locals_address): Delete.
4856 (arm_gdbarch_init): Do not set frame_args_address, or
4857 frame_locals_address.
4858
4859 2003-06-09 Andrew Cagney <cagney@redhat.com>
4860
4861 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4862 * gdbarch.h, gdbarch.c: Re-generate.
4863 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4864 * arch-utils.c (frame_num_args_unknown): Delete function.
4865 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4866 (frame_info): Use FRAME_NUM_ARGS_P.
4867 * arm-tdep.c (arm_frame_num_args): Delete function.
4868 (arm_gdbarch_init): Do not set frame_num_args.
4869 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4870 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4871 (hppa_gdbarch_init): Do not set frame_num_args.
4872 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4873 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4874 frame_num_args to default frame_num_args_unknown.
4875 * v850-tdep.c (v850_gdbarch_init): Ditto.
4876 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4877 * sh-tdep.c (sh_gdbarch_init): Ditto.
4878 * s390-tdep.c (s390_gdbarch_init): Ditto.
4879 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4880 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4881 * mips-tdep.c (mips_gdbarch_init): Ditto.
4882 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4883 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4884 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4885 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4886 * i386-tdep.c (i386_gdbarch_init): Ditto.
4887 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4888 * frv-tdep.c (frv_gdbarch_init): Ditto.
4889 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4890 * cris-tdep.c (cris_gdbarch_init): Ditto.
4891 * avr-tdep.c (avr_gdbarch_init): Ditto.
4892 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4893
4894 2003-06-09 Andrew Cagney <cagney@redhat.com>
4895
4896 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4897 (print_frame_args): Moved to "stack.c".
4898 * stack.c: Include "gdb_assert.h".
4899 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4900 (print_frame_args): Moved from "printcmd.c".
4901 * frame.h (print_frame_args): Delete declaration.
4902 * Makefile.in (stack.o): Update dependencies.
4903
4904 2003-06-08 Andrew Cagney <cagney@redhat.com>
4905
4906 * frame.c (get_prev_frame): Remove reference to
4907 frame_args_address_correct in comments.
4908 * frame-base.c (default_frame_args_address): Delete code
4909 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4910 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4911 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4912 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4913 (vax_frame_args_address_correct): Delete declaration.
4914
4915 2003-06-08 Andrew Cagney <cagney@redhat.com>
4916
4917 * gdbarch.sh (UNWIND_SP): Add.
4918 * gdbarch.h, gdbarch.c: Re-generate.
4919 * frame.c (frame_sp_unwind): New function.
4920 (get_frame_sp): New function.
4921 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4922 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4923 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4924 value.
4925 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4926 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4927
4928 2003-06-08 Andrew Cagney <cagney@redhat.com>
4929
4930 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4931 REMOTE_BREAKPOINT.
4932 * remote.c: Update.
4933 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4934 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4935 * config/m68k/tm-sun3.h: Update.
4936 * config/m68k/tm-m68klynx.h: Update.
4937 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4938
4939 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4940 trad_frame". Update comments.
4941 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4942 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4943 (trad_frame_register_value, trad_frame_prev_register): Update.
4944
4945 2003-06-08 Andrew Cagney <cagney@redhat.com>
4946
4947 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4948 from GCC's acinclude.m4.
4949 * configure.in: Check for getopt's delcaration.
4950 * aclocal.m4, config.in, configure: Re-generate.
4951 * main.c (error_init): Delete declaration.
4952 * defs.h (error_init): Declare.
4953 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4954 (rs6000_convert_from_func_ptr_addr): Make static.
4955 (_initialize_rs6000_tdep): Add declaration.
4956 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4957 (show_commands, set_verbose, show_history): Delete declaration.
4958 * top.h (set_verbose): Add declaration.
4959 (show_history, set_history, show_commands): Add declaration.
4960 (do_restore_instream_cleanup): Add declaration.
4961 * objc-lang.c (specialcmp): Make static.
4962 (print_object_command): Make static.
4963 (find_objc_msgsend): Make static.
4964 (find_objc_msgcall_submethod_helper): Make static.
4965 (find_objc_msgcall_submethod): Make static.
4966 (_initialize_objc_language): Add declaration.
4967 (find_implementation_from_class): Make static.
4968 (find_implementation): Make static.
4969 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4970 * objc-lang.h (lookup_struct_typedef): Add declaration.
4971 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4972 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4973 (do_restore_user_call_depth): Make static.
4974 (do_restore_instream_cleanup): Delete declaration.
4975 (dont_repeat): Delete declaration.
4976 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4977 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4978 * reggroups.c (_initialize_reggroup): Add declaration.
4979 * cp-support.c (_initialize_cp_support): Add declaration.
4980 * cp-abi.c (_initialize_cp_abi): Add declaration.
4981 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4982 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4983 (_initialize_gnu_v3_abi): Add declaration.
4984 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4985 (_initialize_gnu_v2_abi): Add declaration.
4986 * frame-base.c (_initialize_frame_base): Add declaration.
4987 * doublest.c (floatformat_from_length): Make static.
4988 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4989 * frame.c (create_sentinel_frame): Make static.
4990 (_initialize_frame): Add declaration.
4991 * top.c (do_catch_errors): Make static.
4992 (gdb_rl_operate_and_get_next_completion): Make static.
4993 * typeprint.c: Include "typeprint.h".
4994 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4995 (sentinel_frame_this_id): Make static.
4996 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4997 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4998 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4999 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5000 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5001 * maint.c (maintenance_print_architecture): Make static.
5002 * signals/signals.c (_initialize_signals): Add declaration.
5003 * std-regs.c (_initialize_frame_reg): Add declaration.
5004 * jv-exp.y (push_variable): ISO C definition.
5005 (push_qualified_expression_name): Ditto.
5006 * memattr.c (_initialize_mem): Add declaration.
5007 * remote.c (remote_check_watch_resources): Make static.
5008 (remote_stopped_by_watchpoint): Make static.
5009 (remote_stopped_data_address): Make static.
5010 * d10v-tdep.c (nr_dmap_regs): Make static.
5011 (a0_regnum): Make static.
5012 (d10v_frame_unwind_cache): Make static.
5013 (d10v_frame_p): Make static.
5014 * osabi.c (show_osabi): Make static.
5015 (_initialize_gdb_osabi): Add extern declaration.
5016 * gdbtypes.c (make_qualified_type): Make static.
5017 (safe_parse_type): Make static.
5018 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5019 * macrotab.c (macro_bcache_free): Make static.
5020 * interps.c (interp_set_quiet): Make static.
5021 (interpreter_exec_cmd): Make static.
5022 * stack.h (select_frame_command): New file.
5023 * stack.c: Include "stack.h".
5024 (select_frame_command_wrapper): Delete function.
5025 (select_frame_command): Make global.
5026 * infcall.c: Include "infcall.h".
5027 * linespec.c: Include "linespec.h".
5028 * symfile.c (sections_overlap): Make static.
5029 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5030 * charset.c (_initialize_charset): Add missing prototype.
5031 * regcache.c (init_legacy_regcache_descr): Make static.
5032 (do_regcache_xfree): Make static.
5033 (regcache_xfer_part): Make static.
5034 (_initialize_regcache): Add missing prototype.
5035 * breakpoint.c (parse_breakpoint_sals): Make static.
5036 (breakpoint_sals_to_pc): Make static.
5037 * interps.h (clear_interpreter_hooks): ISO C declaration.
5038 * Makefile.in (stack_h): Define.
5039 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5040 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5041
5042 2003-06-08 Andrew Cagney <cagney@redhat.com>
5043
5044 * Makefile.in (d10v-tdep.o): Update dependencies.
5045 (SFILES): Add trad-frame.c.
5046 (trad_frame_h): Define.
5047 (COMMON_OBS): Add trad-frame.o.
5048 (trad-frame.o): Specify dependencies.
5049 * d10v-tdep.c: Include "trad-frame.h".
5050 (saved_regs_unwinder): Delete function.
5051 (d10v_frame_prev_register): Use trad_frame_prev_register.
5052 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5053 trad_frame", delete "regs" and "prev_sp".
5054 (prologue_find_regs): Use trad-frame.
5055 * trad-frame.h, trad-frame.c: New files.
5056
5057 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5058
5059 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5060
5061 2003-06-07 Adam Fedor <fedor@gnu.org>
5062
5063 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5064 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5065 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5066 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5067 resolve_msgsend_super, resolve_msgsend_super_stret):
5068 Use it.
5069
5070 2003-06-07 Andrew Cagney <cagney@redhat.com>
5071
5072 * symfile.h: Re-indent, clean up comments.
5073
5074 2003-06-07 Andrew Cagney <cagney@redhat.com>
5075
5076 * inferior.h (deprecated_write_sp): Replace
5077 generic_target_write_sp.
5078 * regcache.c (deprecated_write_sp): Replace
5079 generic_target_write_sp.
5080 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5081 * vax-tdep.c (vax_gdbarch_init): Update.
5082 * v850-tdep.c (v850_gdbarch_init): Update.
5083 * sparc-tdep.c (sparc_gdbarch_init): Update.
5084 * sh-tdep.c (sh_gdbarch_init): Update.
5085 * s390-tdep.c (s390_gdbarch_init): Update.
5086 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5087 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5088 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5089 * mcore-tdep.c (mcore_gdbarch_init): Update.
5090 * m68k-tdep.c (m68k_gdbarch_init): Update.
5091 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5092 * ia64-tdep.c (ia64_gdbarch_init): Update.
5093 * h8300-tdep.c (h8300_gdbarch_init): Update.
5094 * frv-tdep.c (frv_gdbarch_init): Update.
5095 * cris-tdep.c (cris_gdbarch_init): Update.
5096 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5097
5098 2003-06-07 Andrew Cagney <cagney@redhat.com>
5099
5100 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5101 Assert that PC_REGNUM is valid.
5102 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5103
5104 2003-06-07 Andrew Cagney <cagney@redhat.com>
5105
5106 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5107 * gdbarch.h, gdbarch.c: Regenerate.
5108 * mn10300-tdep.c: Include "gdb_assert.h".
5109 (mn10300_read_fp): New function.
5110 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5111 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5112 * ia64-tdep.c: Include "gdb_assert.h".
5113 (ia64_read_fp): New function.
5114 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5115 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5116 * regcache.c (generic_target_read_sp): Delete function.
5117 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5118 * inferior.h (generic_target_read_sp): Delete declaration.
5119 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5120 generic_target_read_sp.
5121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5122 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5123 * sh-tdep.c (sh_gdbarch_init): Ditto.
5124 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5125 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5126
5127 2003-06-07 Andrew Cagney <cagney@redhat.com>
5128
5129 * gdbarch.sh: Comment each field of startup_gdbarch.
5130 * gdbarch.h, gdbarch.c: Re-generate.
5131
5132 2003-06-07 Andrew Cagney <cagney@redhat.com>
5133
5134 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5135 * gdbarch.h, gdbarch.c: Re-generate.
5136 * regcache.c: Update comments on read_pc et.al.
5137 (generic_target_read_pc): Delete function.
5138 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5139 * inferior.h (generic_target_read_pc): Delete declaration.
5140 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5141 generic_target_read_pc.
5142 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5143 * sh-tdep.c (sh_gdbarch_init): Ditto.
5144 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5146
5147 2003-06-07 Andrew Cagney <cagney@redhat.com>
5148
5149 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5150 "index" with "special_local_sect". Use strcmp instead of STREQ.
5151 Append period to coments.
5152
5153 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5154
5155 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5156 (elfstab_offset_sections): Likewise.
5157 * gdb-stabs.h (stab_section_info): Likewise.
5158 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5159 * objfiles.c (objfile_relocate): Likewise.
5160 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5161 * remote.c (get_offsets): Likewise.
5162 (remote_cisco_objfile_relocate): Likewise.
5163 * somread.c (som_symfile_offsets): Likewise.
5164 * symfile.c (alloc_section_addr_info): New function.
5165 (build_section_addr_info_from_section_tab): Use it.
5166 (free_section_addr_info): Adjust.
5167 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5168 (syms_from_objfile): Allocate local_addr dynamically.
5169 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5170 dynamically.
5171 (add_symbol_file_command): Allocate sect_opts dynamically.
5172 (reread_symbols): Avoid use of SECT_OFF_MAX.
5173 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5174 (alloc_section_addr_info): Declare it.
5175 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5176 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5177 dynamically.
5178 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5179
5180 2003-06-06 Andrew Cagney <cagney@redhat.com>
5181
5182 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5183 (d10v_frame_unwind_cache): Do not set "return_pc".
5184
5185 2003-06-06 Michael Snyder <msnyder@redhat.com>
5186
5187 * h8300-tdep.c: Make tidy (long lines).
5188
5189 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5190
5191 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5192 to regcache_collect().
5193
5194 2003-06-05 J. Brobecker <brobecker@gnat.com>
5195
5196 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5197 pc_in_sigtramp multiarch method.
5198 (hppa_hpux_som_init_abi): Use it.
5199 (hppa_hpux_elf_init_abi): Likewise.
5200 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5201 macro has been multiarched.
5202 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5203 macro here, as hppa64 isn't multiarched yet.
5204
5205 2003-06-05 Andrew Cagney <cagney@redhat.com>
5206
5207 * Makefile.in (value_h): Add $(frame_h).
5208 * value.h: Include "frame.h".
5209 (struct value): Replace "frame_addr" with "frame_id".
5210 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5211 * values.c (allocate_value): Use VALUE_FRAME_ID.
5212 (value_copy): Use VALUE_FRAME_ID.
5213 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5214 * valops.c (value_assign): Update. Use frame_find_by_id.
5215
5216 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5217
5218 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5219 in each pass.
5220
5221 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5222
5223 * thread-db.c (check_event): For create/death event breakpoints,
5224 loop through all messages to ensure that we read the message
5225 corresponding to the breakpoint we are at.
5226
5227 2003-06-04 Michael Snyder <msnyder@redhat.com>
5228
5229 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5230
5231 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5232
5233 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5234 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5235 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5236 when handling .eh_frame sections.
5237
5238 2003-06-04 J. Brobecker <brobecker@gnat.com>
5239
5240 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5241 prepare_to_proceed procedure instead of the hppa-specific one.
5242 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5243
5244 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5245
5246 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5247 * config.in: Regenerated.
5248 * configure.in: Add test for syscall function and check for
5249 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5250 * configure: Regenerated.
5251 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5252 <sys/syscall.h>.
5253 (kill_lwp): New function that uses tkill syscall or
5254 uses kill, depending on whether threading model is nptl or not.
5255 All callers of kill() changed to use kill_lwp().
5256 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5257 see if all threads have already exited in the nptl model.
5258 (stop_and_resume_callback): New callback function used by the
5259 lin_lwp_wait thread exit handling code.
5260 (stop_wait_callback): Check for threads already having exited and
5261 delete such threads fromt the lwp list when discovered.
5262 (stop_callback): Don't assert retcode of kill call.
5263
5264 Roland McGrath <roland@redhat.com>
5265 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5266 nptl libthread_db.
5267
5268 2003-06-03 Richard Henderson <rth@redhat.com>
5269
5270 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5271 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5272 (alpha_sigtramp_frame_prev_register): Likewise.
5273 (alpha_heuristic_frame_prev_register): Likewise.
5274 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5275
5276 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5277 alpha-specific register id names.
5278 (alpha_mdebug_frame_unwind_cache): Likewise.
5279 (alpha_mdebug_frame_prev_register): Likewise.
5280
5281 2003-06-03 Richard Henderson <rth@redhat.com>
5282
5283 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5284 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5285 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5286 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5287 unwind routines.
5288 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5289 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5290 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5291
5292 * alpha-linux-tdep.c: Remove unnecessary includes.
5293 * Makefile.in (alpha-linux-tdep.o): Update.
5294
5295 2003-06-03 Richard Henderson <rth@redhat.com>
5296
5297 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5298 (alphabsd_fill_fpreg): Likewise.
5299
5300 2003-06-03 J. Brobecker <brobecker@gnat.com>
5301
5302 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5303 references to struct frame_info fields by calls to the equivalent
5304 accessors. Necessary now that frame_info is opaque.
5305
5306 2003-06-03 J. Brobecker <brobecker@gnat.com>
5307
5308 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5309 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5310 structure, field no longer exists.
5311
5312 2003-06-03 J. Brobecker <brobecker@gnat.com>
5313
5314 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5315 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5316
5317 2003-06-03 J. Brobecker <brobecker@gnat.com>
5318
5319 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5320 references to struct frame_info fields by calls to the equivalent
5321 accessors. Necessary now that frame_info is opaque.
5322
5323 2003-06-03 J. Brobecker <brobecker@gnat.com>
5324
5325 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5326 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5327 structure, field no longer exists.
5328
5329 2003-06-03 Theodore A. Roth <troth@openavr.org>
5330
5331 * remote.c (init_remote_state): Compute sizeof_g_packet by
5332 accumulation of the size of all registers instead of blindly using
5333 DEPRECATED_REGISTER_BYTES.
5334
5335 2003-06-03 Michael Snyder <msnyder@redhat.com>
5336
5337 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5338 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5339 for h8300sx.
5340
5341 2003-06-03 J. Brobecker <brobecker@gnat.com>
5342
5343 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5344 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5345
5346 2003-06-03 Andrew Cagney <cagney@redhat.com>
5347
5348 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5349 (sparc_convert_to_raw): Delete function.
5350 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5351 register_convert_to_virtual.
5352
5353 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5354
5355 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5356 layer if not dealing with a statically-linked threaded program.
5357
5358 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5359
5360 * solib.c (solib_open): Update comment to reflect actual search order.
5361
5362 2003-06-03 Andrew Cagney <cagney@redhat.com>
5363
5364 * frame.c (get_frame_memory_signed): New function.
5365 (get_frame_memory, get_frame_memory_unsigned): New function.
5366 (get_frame_arch): New function.
5367 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5368 (get_frame_memory, get_frame_unsigned_memory): Declare.
5369 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5370 get_frame_memory_unsigned and get_frame_arch.
5371 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5372
5373 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5374
5375 * MAINTAINERS (write after approval): Add myself.
5376
5377 2003-06-03 Jim Blandy <jimb@redhat.com>
5378
5379 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5380 elements of gregset_t are 64 bits each, but access registers
5381 are still 32 bits, so they're packed two per gregset_t
5382 element. Unpack/pack them properly.
5383
5384 2003-06-02 David Carlton <carlton@bactrian.org>
5385
5386 * linespec.c (find_methods): Break out code into
5387 add_matching_methods and add_constructors.
5388 (add_matching_methods): New.
5389 (add_constructors): Ditto.
5390
5391 2003-06-02 Andrew Cagney <cagney@redhat.com>
5392
5393 * sparc-tdep.c (sparc_print_registers): Delete call to
5394 REGISTER_CONVERTIBLE.
5395 (sparc_gdbarch_init): Do not set register_convertible.
5396 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5397 * frv-tdep.c (frv_gdbarch_init): Ditto.
5398 * cris-tdep.c (cris_gdbarch_init): Ditto.
5399
5400 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5401
5402 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5403 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5404 (syms_from_objfile): Ditto.
5405
5406 2003-06-03 Andreas Schwab <schwab@suse.de>
5407
5408 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5409 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5410
5411 2003-06-02 Richard Henderson <rth@redhat.com>
5412
5413 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5414 a member of all_reggroup.
5415
5416 2003-06-02 Richard Henderson <rth@redhat.com>
5417
5418 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5419 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5420 (alpha_lds, alpha_sts): New.
5421 (alpha_convert_register_p): Change from _register_convertible.
5422 (alpha_register_to_value): Change from _convert_to_virtual;
5423 restructure and fail for type sizes other than 4 or 8.
5424 (alpha_value_to_register): Similarly.
5425 (alpha_extract_return_value): Use alpha_sts.
5426 (alpha_store_return_value): Use alpha_lds.
5427 (alpha_gdbarch_init): Update hooks.
5428
5429 2003-06-02 Richard Henderson <rth@redhat.com>
5430
5431 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5432 regnum identifiers.
5433 (alpha_sigtramp_register_address): Likewise.
5434
5435 2003-06-02 Richard Henderson <rth@redhat.com>
5436
5437 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5438 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5439 * alpha-tdep.h: Declare them.
5440
5441 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5442 Remove zerobuf. Don't error on UNIQUE.
5443 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5444 (ALPHA_REGSET_UNIQUE): Provide default.
5445 (supply_gregset): Use alpha_supply_int_regs.
5446 (fill_gregset): Use alpha_fill_int_regs.
5447 (supply_fpregset): Use alpha_supply_fp_regs.
5448 (fill_fpregset): Use alpha_fill_fp_regs.
5449 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5450 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5451 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5452 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5453 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5454 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5455
5456 2003-06-02 Richard Henderson <rth@redhat.com>
5457
5458 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5459
5460 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5461 (alpha_store_return_value): Likewise.
5462
5463 2003-06-02 David Carlton <carlton@math.stanford.edu>
5464
5465 * block.c (contained_in): Add 'const' to arguments.
5466 (block_function): Ditto.
5467 * block.h: Update declarations for block_function and
5468 contained_in.
5469
5470 2003-06-02 David Carlton <carlton@math.stanford.edu>
5471
5472 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5473 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5474 * p-valprint.c (pascal_val_print): Ditto.
5475 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5476
5477 2003-06-02 Richard Henderson <rth@redhat.com>
5478
5479 * alpha-tdep.c (alpha_push_dummy_call): Use
5480 builtin_type_ieee_double_little instead of builtin_type_double.
5481
5482 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5483 sign-extension of 32-bit values.
5484 (alpha_store_return_value): Similarly.
5485
5486 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5487 (alpha_extract_return_value): Likewise.
5488 (alpha_store_return_value): Likewise.
5489
5490 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5491 (alpha_store_return_value): Error on IEEE Quad floats.
5492
5493 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5494 (alpha_extract_struct_value_address): Likewise.
5495 (alpha_store_return_value): Likewise.
5496 (alpha_store_struct_return): Remove.
5497 (alpha_gdbarch_init): Update hook registration to match.
5498
5499 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5500 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5501 macros where appropriate.
5502 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5503 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5504
5505 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5506 for SP, GP; void_func_ptr for PC; non-language-specific types
5507 for all others.
5508 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5509
5510 2003-06-02 Richard Henderson <rth@redhat.com>
5511
5512 * top.h (lim_at_start): Declare.
5513 * main.c (captured_main): Set it.
5514 * top.c (lim_at_start): Define.
5515 (command_loop): Use it instead of &environ.
5516 * event-top.c (command_handler): Likewise.
5517
5518 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5519
5520 * mipsnbsd-tdep.c: Update copyright years.
5521 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5522
5523 2003-06-01 Richard Henderson <rth@redhat.com>
5524
5525 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5526 (alpha-linux-tdep.o): Update dependencies.
5527 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5528 * alpha-mdebug-tdep.c: Remove unneeded includes.
5529
5530 2003-06-01 Richard Henderson <rth@redhat.com>
5531
5532 * alpha-tdep.c (alpha_register_reggroup_p): New.
5533 (alpha_gdbarch_init): Register it.
5534
5535 2003-06-02 Andrew Cagney <cagney@redhat.com>
5536
5537 * dwarfread.c: Eliminate "register"
5538 (decode_die_type): Eliminate assignment within "if".
5539 (struct_type, decode_array_element_type): Ditto.
5540 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5541 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5542 (decode_modified_type, completedieinfo): Ditto.
5543 * block.c: Eliminate "register".
5544 (blockvector_for_pc_sect): Eliminate assignment within "if".
5545 * cp-support.h (struct symbol): Opaque declaration.
5546 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5547
5548 2003-06-01 Richard Henderson <rth@redhat.com>
5549
5550 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5551 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5552
5553 2003-06-01 Adam Fedor <fedor@gnu.org>
5554
5555 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5556 * gdbarch.[ch]: Regenerate.
5557 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5558 (hppa_gdbarch_init): Set it in the gdbarch vector.
5559 * i386-tdep.c (i386_fetch_pointer_argument): New
5560 (i386_gdbarch_init): Set it into gdbarch.
5561 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5562 (rs6000_gdbarch_init): Set it in gdbarch.
5563 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5564 (sparc_gdbarch_init): Set it in gdbarch.
5565
5566 2003-06-01 Andrew Cagney <cagney@redhat.com>
5567
5568 * defs.h (extract_address): Delete declaration.
5569 * findvar.c (extract_address): Delete function.
5570 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5571 extract_address with the inline equivalent,
5572 extract_unsigned_integer.
5573 (xstormy16_extract_struct_value_address): Ditto.
5574 (xstormy16_pointer_to_address): Ditto.
5575 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5576 * v850-tdep.c (v850_push_arguments): Ditto.
5577 (v850_extract_return_value): Ditto.
5578 (v850_extract_struct_value_address): Ditto.
5579 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5580 (sparcnbsd_get_longjmp_target_64): Ditto.
5581 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5582 (get_longjmp_target): Ditto.
5583 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5584 (sh64_extract_struct_value_address): Ditto.
5585 (sh_push_arguments): Ditto.
5586 (sh64_push_arguments): Ditto.
5587 * remote-vxsparc.c (vx_read_register): Ditto.
5588 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5589 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5590 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5591 * mipsv4-nat.c (get_longjmp_target): Ditto.
5592 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5593 * mips-nat.c (get_longjmp_target): Ditto.
5594 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5595 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5596 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5597 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5598 * irix5-nat.c (get_longjmp_target): Ditto.
5599 * irix4-nat.c (get_longjmp_target): Ditto.
5600 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5601 (ia64_push_arguments): Ditto.
5602 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5603 * h8300-tdep.c (h8300_push_arguments): Ditto.
5604 (h8300_store_return_value): Ditto.
5605 (h8300_extract_struct_value_address): Ditto.
5606 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5607 (frv_push_arguments): Ditto.
5608 * avr-tdep.c (avr_pointer_to_address): Ditto.
5609 (avr_push_arguments): Ditto.
5610 * arm-tdep.c (arm_push_dummy_call): Ditto.
5611 (arm_get_longjmp_target): Ditto.
5612 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5613 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5614 (alpha_get_longjmp_target): Ditto.
5615
5616 * solib-irix.c (extract_mips_address): Inline extract_address,
5617 replacing it with extract_signed_integer.
5618 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5619 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5620 (first_link_map_member, open_symbol_file_object): Ditto.
5621 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5622 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5623 (LM_NEXT, LM_NAME): Ditto.
5624
5625 2003-06-01 Richard Henderson <rth@redhat.com>
5626
5627 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5628 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5629 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5630 (alpha_cannot_store_register): Likewise.
5631 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5632 * alpha-nat.c (supply_gregset): Likewise.
5633 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5634
5635 2003-06-01 Andrew Cagney <cagney@redhat.com>
5636
5637 * infcall.c (call_function_by_hand): Update comment on
5638 DEPRECATED_DUMMY_WRITE_SP.
5639
5640 * mips-tdep.c (mips_gdbarch_init): Do not set
5641 deprecated_dummy_write_sp.
5642 (mips_eabi_push_dummy_call): Set the SP register.
5643 (mips_o64_push_dummy_call): Set the SP register.
5644 (mips_o32_push_dummy_call): Set the SP register.
5645 (mips_n32n64_push_dummy_call): Set the SP register.
5646
5647 2003-06-01 Richard Henderson <rth@redhat.com>
5648
5649 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5650 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5651 (supply_gregset): Likewise.
5652 * alpha-tdep.c (alpha_store_return_value): Likewise.
5653 (alpha_get_longjmp_target): Likewise.
5654 (alpha_register_name): Constify array.
5655 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5656 deprecated_register_size, deprecated_register_bytes,
5657 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5658 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5659 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5660
5661 2003-06-01 Richard Henderson <rth@redhat.com>
5662
5663 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5664 from arg_reg_buffer to regcache to avoid double conversion.
5665
5666 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5667
5668 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5669 SP_REGNUM.
5670 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5671 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5672
5673 2003-06-01 Richard Henderson <rth@redhat.com>
5674
5675 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5676 (decode_frame_entry): Set it. Skip FDE augmentation.
5677
5678 2003-06-01 Richard Henderson <rth@redhat.com>
5679
5680 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5681 not overlapping PC_REGNUM.
5682
5683 2003-06-01 Richard Henderson <rth@redhat.com>
5684
5685 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5686 alpha_push_arguments. Don't dump argument register data to
5687 the target stack. Fix float and 128-bit long double semantics.
5688 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5689 (alpha_fix_call_dummy): Remove.
5690 (alpha_call_dummy_words): Remove.
5691 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5692
5693 2003-06-01 Richard Henderson <rth@redhat.com>
5694
5695 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5696
5697 2003-06-01 Andrew Cagney <cagney@redhat.com>
5698
5699 * mips-tdep.c (is_mips16_addr): New function.
5700 (make_mips16_addr, unmake_mips16_addr): New functions.
5701 (pc_is_mips16, mips_fetch_instruction): Use.
5702 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5703 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5704 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5705 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5706 TARGET_MIPS.
5707 * config/mips/tm-mips.h: Update copyright.
5708 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5709 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5710 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5711 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5712 (TM_PRINT_INSN_MACH): Delete.
5713 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5714
5715 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5716 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5717 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5718 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5719 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5720 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5721 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5722 mips*-*-riscos* and mips*-*-sysv* onto mips.
5723 * config/mips/mips64.mt: New file.
5724 * config/mips/mips.mt: New file.
5725 * config/mips/littlemips.mt: Delete file.
5726 * config/mips/decstation.mt: Delete file.
5727 * config/mips/vr4300el.mt: Delete file.
5728 * config/mips/vr5000el.mt: Delete file.
5729 * config/mips/vr5000.mt: Delete file.
5730 * config/mips/vr4100.mt: Delete file.
5731 * config/mips/vr4xxxel.mt: Delete file.
5732 * config/mips/vr4300.mt: Delete file.
5733 * config/mips/vr4xxx.mt: Delete file.
5734 * config/mips/bigmips.mt: Delete file.
5735 * config/mips/bigmips64.mt: Delete file.
5736 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5737 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5738 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5739 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5740 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5741 "tm-bigmips.h".
5742 * config/mips/tm-irix3.h: Ditto.
5743 * config/mips/tm-mipsv4.h: Ditto.
5744 * config/mips/tm-embed.h: Ditto.
5745 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5746 "tm-bigmips64.h".
5747 * config/mips/tm-vr5000el.h: Delete file.
5748 * config/mips/tm-tx39l.h: Delete file.
5749 * config/mips/tm-vr4300el.h: Delete file.
5750 * config/mips/tm-vr4xxxel.h: Delete file.
5751 * config/mips/tm-vr4300.h: Delete file.
5752 * config/mips/tm-vr4100.h: Delete file.
5753 * config/mips/tm-vr4xxx.h: Delete file.
5754 * config/mips/tm-vr5000.h: Delete file.
5755 * config/mips/tm-embedl64.h: Delete file.
5756 * config/mips/tm-embedl.h: Delete file.
5757 * config/mips/tm-embed64.h: Delete file.
5758 * config/mips/tm-bigmips64.h: Delete file.
5759 * config/mips/tm-bigmips.h: Delete file.
5760
5761 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5762
5763 Fix gdb/1216.
5764 * shnbsd-nat.c: Include "sh-tdep.h".
5765
5766 From Richard Henderson <rth@redhat.com>:
5767 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5768
5769 2003-05-31 Andrew Cagney <cagney@redhat.com>
5770
5771 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5772 forward declaration.
5773 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5774 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5775 (mips_find_saved_regs): Use set_reg_offset.
5776 (mips_frame_init_saved_regs): Delete function.
5777 (mips_pop_frame): Call mips_find_saved_regs instead of
5778 DEPRECATED_FRAME_INIT_SAVED_REGS.
5779
5780 2003-05-31 Andrew Cagney <cagney@redhat.com>
5781
5782 * mips-tdep.c (mips_gdbarch_init): Do not set
5783 deprecated_max_register_raw_size, register_virtual_size, and
5784 deprecated_max_register_virtual_size.
5785
5786 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5787
5788 * i386-tdep.c: Include "dwarf2-frame.h".
5789 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5790 * Makefile.in (i386-tdep.o): Update dependencies.
5791
5792 * dwarf2-frame.c, dwarf2-frame.h: New files.
5793 * Makefile.in (SFILES): Add dwarf2-frame.c.
5794 (dwarf2_frame_h): Define.
5795 (COMMON_OBS): Add dwarf2-frame.o.
5796 (dwarf2-frame.o): Add dependencies.
5797
5798 2003-05-31 Andreas Jaeger <aj@suse.de>
5799
5800 * x86-64-linux-nat.c: Fix comment.
5801
5802 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5803
5804 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5805 function signature.
5806
5807 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5808 have a sigcontext_addr handler.
5809 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5810 sigcontext_addr handler.
5811
5812 2003-05-31 Andrew Cagney <cagney@redhat.com>
5813
5814 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5815 (print_fp_register_row): Replace do_fp_register_row.
5816 (mips_print_fp_register): Add "file" and "frame" parameters.
5817 (mips_print_register): Add "file" and "frame" parameters.
5818 (mips_print_registers_info): Replace mips_do_registers_info.
5819 (mips_gdbarch_init): Set print_registers_info instead of
5820 deprecated_do_registers_info.
5821 (mips_read_fp_register_single): Add "frame" parameter.
5822 (mips_read_fp_register_double): Add "frame" parameter.
5823
5824 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5825
5826 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5827 Fixes a bug where GDB would print the wrong register names for
5828 targets without SSE.
5829
5830 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5831 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5832 registers.
5833
5834 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5835 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5836 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5837 TDEP->sc_sp_offset.
5838
5839 From Michal Ludvig <mludvig@suse.cz>:
5840 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5841 and `sc_num_regs'.
5842 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5843 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5844 I386_ST0_REGNUM): Move here from...
5845 * i386-tdep.c: ... here.
5846 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5847 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5848 registers if possible.
5849 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5850 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5851 Remove variables.
5852 (i386bsd_sc_reg_offset): New variable.
5853 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5854 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5855 TDEP->sc_sp_offset.
5856 (i386fbsd_sc_reg_offset): New variable.
5857 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5858 TDEP->sc_num_regs.
5859 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5860 variables.
5861 (i386fbsd4_sc_reg_offset): New variable.
5862 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5863 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5864 TDEP->sc_sp_offset.
5865 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5866 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5867 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5868 Remove variables.
5869 (i386nbsd_sc_reg_offset): New variable.
5870 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5871 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5872 TDEP->sc_sp_offset.
5873 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5874 Remove variables.
5875 (i386obsd_sc_reg_offset): New variable.
5876 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5877 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5878 TDEP->sc_sp_offset.
5879 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5880 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5881 for frame pointer offset in `struct sigcontext'.
5882
5883 2003-05-31 Andrew Cagney <cagney@redhat.com>
5884
5885 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5886 architecture methods call_dummy_words, sizeof_call_dummy_words,
5887 push_return_address, store_struct_return, and fix_call_dummy. Set
5888 push_dummy_call instead of deprecated_push_arguments.
5889 (mips_store_struct_return): Delete function.
5890 (mips_fix_call_dummy): Delete function.
5891 (mips_push_return_address): Delete function.
5892 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5893 RA_REGNUM and T9_REGNUM.
5894 (mips_n32n64_push_dummy_call): Ditto for
5895 mips_n32n64_push_arguments.
5896 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5897 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5898
5899 2003-05-31 Andrew Cagney <cagney@redhat.com>
5900
5901 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5902 "dummy_addr" to "bp_addr".
5903 * infcall.c (call_function_by_hand): Pass "funaddr" to
5904 gdbarch_push_dummy_call.
5905 * gdbarch.h, gdbarch.c: Re-generate.
5906 * i386-tdep.c (i386_push_dummy_call): Update.
5907 * arm-tdep.c (arm_push_dummy_call): Update.
5908 * d10v-tdep.c (d10v_push_dummy_call): Update.
5909
5910 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5911
5912 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5913 variable declarations.
5914 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5915 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5916 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5917 x86_64_init_frame_pc, x86_64_init_frame_pc,
5918 x86_64_function_has_prologue): Remove prototypes.
5919 (X86_64_NUM_GREGS): New define.
5920 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5921 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5922 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5923 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5924 XMM1_REGNUM): Remove defines.
5925 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5926 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5927 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5928 X86_64_XMM1_REGNUM): New defines.
5929 (struct x86_64_register_info): Renamed from `struct
5930 register_info'. Remove `size' member.
5931 (x86_64_register_info_table): Remove variable.
5932 (x86_64_register_info): New variable.
5933 (X86_64_NUM_REGS): New define.
5934 (X86_64_NUM_GREGS): Remove define.
5935 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5936 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5937 Remove variables.
5938 (x86_54_dwarf2_reg_to_regnum): Remove function.
5939 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5940 (x86_64_dwarf_reg_to_regnum): New function.
5941 (x86_64_register_name): Rewrite.
5942 (x86_64_register_raw_size): Remove function.
5943 (x86_64_register_byte_table): Remove variable.
5944 (x86_64_register_byte): Remove function.
5945 (x86_64_register_virtual_type): Remove function.
5946 (x86_64_register_type): New function.
5947 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5948 x86_64_register_convert_to_raw): Remove functions.
5949 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5950 (x86_64_use_struct_convention): Make static. Adjust for renamed
5951 defines.
5952 (x86_64_frame_init_saved_regs): Remove function.
5953 (x86_64_push_arguments): Make static. Change to accept a regcache
5954 as argument.
5955 (x86_64_store_return_value, x86_64_extract_return_value): Make
5956 static. Rewrite based on i386 counterparts.
5957 (x86_64_push_dummy_call): New function.
5958 (X86_64_NUM_SAVED_REGS): New define.
5959 (x86_64_register_number): Remove function.
5960 (x86_64_store_struct_return): Remove function.
5961 (x86_64_frameless_function_invocation,
5962 x86_64_function_has_prologue): Remove functions.
5963 (PROLOG_BUFSIZE): Remove define.
5964 (struct x86_64_frame_cache): New structure.
5965 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5966 x86_64_frame_cache, x86_64_frame_this_id,
5967 x86_64_frame_prev_register, x86_64_frame_p,
5968 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5969 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5970 functions.
5971 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5972 variables.
5973 (x86_64_skip_prologue): Rewrite in terms of
5974 x86_64_analyze_prologue.
5975 (x86_64_frame_base_address): New function.
5976 (x86_64_frame_base): New variable.
5977 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5978 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5979 set deprecated_fp_regnum, deprecated_register_size,
5980 deprecated_register_bytes, register_raw_size, register_byte,
5981 register_virtual_type, register_convertiable,
5982 register_convert_to_virtual, convert_to_raw,
5983 deprecated_get_saved_register, deprecated_target_read_fp,
5984 deprecated_push_arguments, deprecated_push_return_address,
5985 deprecated_pop_frame, deprecated_store_struct_return,
5986 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5987 frameless_function_invocation, deprecated_frame_saved_pc,
5988 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5989 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5990 deprecated_init_frame_pc and virtual_frame_pointer. Call
5991 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5992 and x86_64_frame_p. Call frame_base_set_default to register
5993 x86_64_frame_base.
5994 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5995 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5996 (_initialize_x86_64_tdep): Remove function.
5997 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5998 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5999 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6000 define.
6001 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6002 (x86_64_linux_sigcontext_addr): Rewrite.
6003 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6004 x86_64_linux_frame_saved_pc): Remove functions.
6005 (x86_64_linux_pc_in_sigtramp): Renamed from
6006 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6007 trampoline.
6008 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6009 Remove_functions.
6010 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6011 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6012 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6013 (x86_64_regmap): Rename to regmap.
6014 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6015 x86_64_num_gregs.
6016 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6017 x86_64_regmap.
6018 (x86_64_fxsave_offset): Remove function.
6019 (supply_fpregset): Simply call x86_64_supply_fxsave.
6020 (fill_fpregset): Simply call x86_64_fill_fxsave.
6021 (fetch_inferior_registers, store_inferior_registers): Avoid
6022 asignment in if-statement.
6023 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6024 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6025 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6026 (fetch_core_registers): Remove function.
6027 (linux_elf_core_fns): Remove.
6028 (offsetoff): Don't define.
6029 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6030 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6031 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6032 add core-regset.o.
6033 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6034 protection against multiple includes instead of NM_X86_64_h. Add
6035 various comments. Include "config/nm-linux.h". Don't include
6036 <signal.h>.
6037 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6038 GET_THREAD_SIGNALS): Remove defines.
6039 (x86_64_register_u_addr, kernel_u_size,
6040 lin_thread_get_thread_signals): Remove prototypes.
6041 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6042 [HAVE_LINK_H]: Don't include "solib.h".
6043 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6044 * config/i386/tm-x86-64linux.h: Fix comments.
6045 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6046 x86-64-tdep.o): Update dependencies.
6047
6048 2003-05-30 Andrew Cagney <cagney@redhat.com>
6049
6050 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6051 Change parameter type to a "struct regcache *".
6052
6053 * gdbarch.sh: Regardless of the multi-arch level, always define
6054 the macro when not already defined.
6055 * gdbarch.h, gdbarch.c: Re-generate.
6056
6057 2003-05-30 Richard Henderson <rth@redhat.com>
6058
6059 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6060 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6061 (alpha_mdebug_frame_this_id): Likewise.
6062 (alpha_mdebug_frame_prev_register): Likewise.
6063 (alpha_mdebug_frame_base_address): Likewise.
6064 (alpha_mdebug_frame_locals_address): Likewise.
6065 (alpha_mdebug_frame_args_address): Likewise.
6066 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6067 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6068 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6069 loop increment.
6070 (alpha_heuristic_frame_this_id): Make static.
6071 (alpha_heuristic_frame_prev_register): Likewise.
6072 (alpha_heuristic_frame_base_address): Likewise.
6073 * alpha-tdep.h: Update.
6074
6075 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6076
6077 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6078 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6079 defenitions.
6080 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6081 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6082 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6083 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6084 I386_ST0_REGNUM): New defines.
6085 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6086 codestream_get): Remove define.
6087 (codestream_next_addr, condestream_addr, condestream_buf,
6088 codestream_off, codestream_cnt): Remove variables.
6089 (codestream_fill, codestream_seek, codestream_read): Remove
6090 functions.
6091 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6092 functionality.
6093 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6094 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6095 i386_frame_saved_pc, i386_saved_pc_after_call,
6096 i386_frame_num_args, i386_frame_init_saved_regs,
6097 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6098 i386_push_arguments): Remove functions.
6099 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6100 functionality. Use i386_analyze_prologue instead of
6101 i386_get_frame_setup.
6102 (I386_NUM_SAVED_REGS): New define.
6103 (struct i386_frame_cache): New structure.
6104 (i386_alloc_frame_cache, i386_analyze_struct_return,
6105 i386_skip_probe, i386_analyze_frame_setup,
6106 i386_analyze_register_saves, i386_analyze_prologue,
6107 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6108 i386_frame_prev_register, i386_sigtramp_frame_cache,
6109 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6110 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6111 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6112 New functions.
6113 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6114 New variables.
6115 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6116 I386_EAX_REGNUM and I386_EDX_REGNUM.
6117 (i386_extract_return_value, i386_store_return_value): Use
6118 I386_ST0_REGNUM where appropriate.
6119 (i386_extract_struct_value_address): Rewrite to use extract_address.
6120 (i386_svr4_pc_in_sigtramp): Add comment.
6121 (i386_svr4_sigcontext_addr): Rewrite.
6122 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6123 TDEP->sc_sp_offset.
6124 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6125 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6126 of new defines. Set push_dummy_call, don't set
6127 deprecated_push_arguments, deprecated_push_return_address,
6128 deprecated_pop_frame. Don't set parm_boundary. Don't set
6129 deprecated_frame_chain, deprecated_frame_saved_pc,
6130 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6131 save_dummy_frame_tos, unwind_pc. Call
6132 frame_unwind_append_predicate and frame_base_set_default. Don't
6133 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6134 Don't set frameless_function_invocation. Don't set
6135 deprecated_register_bytes, deprecated_register_size,
6136 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6137 * i386-linux-tdep.c: Fix formatting in some comments.
6138 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6139 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6140 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6141 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6142 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6143 redundant parentheses.
6144 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6145 (i386_linux_sigcontext_addr): Use it. Rewrite.
6146 (find_minsym_and_objfile): Change name of second argument.
6147 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6148 changed. Use frame_pc_unwind instead of
6149 DEPRECATED_SAVED_PC_AFTER_CALL.
6150 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6151 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6152 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6153 unwinder.
6154 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6155 "dummy-frame.h".
6156 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6157 (_initialize_i386_cygwin_tdep): New prototype.
6158 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6159 deprecated_frame_chain_valid.
6160 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6161 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6162 Rely on the SVR4 defaults.
6163 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6164 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6165
6166 2003-05-30 Andrew Cagney <cagney@redhat.com>
6167
6168 * infcall.c (call_function_by_hand): Always call
6169 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6170
6171 2003-05-30 Richard Henderson <rth@redhat.com>
6172
6173 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6174 increment.
6175
6176 2003-05-29 Jim Blandy <jimb@redhat.com>
6177
6178 Use gdbarch methods for solib stuff on PowerPC Linux.
6179 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6180 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6181 show through.
6182 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6183 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6184 giving the same effect as the #definitions above.
6185
6186 2003-05-29 Adam Fedor <fedor@gnu.org>
6187
6188 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6189 (find_implementation_from_class): Replace it with the standard
6190 case i.e. do nothing.
6191
6192 2003-05-29 Richard Henderson <rth@redhat.com>
6193
6194 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6195 (alpha_linux_sigtramp_offset): Use it. Make static.
6196 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6197 update for new frame model.
6198 * alpha-mdebug-tdep.c: New file.
6199 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6200 (alpha_osf1_init_abi): Install it.
6201 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6202 (linked_proc_desc_table): Remove.
6203 (alpha_frame_past_sigtramp_frame): Remove.
6204 (alpha_dynamic_sigtramp_offset): Remove.
6205 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6206 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6207 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6208 (push_sigtramp_desc): Remove.
6209 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6210 (alpha_cannot_store_register): Likewise.
6211 (alpha_sigcontext_addr): Remove.
6212 (alpha_find_saved_regs): Remove.
6213 (alpha_frame_init_saved_regs): Remove.
6214 (alpha_init_frame_pc_first): Remove.
6215 (read_next_frame_reg): Remove.
6216 (alpha_frame_saved_pc): Remove.
6217 (alpha_saved_pc_after_call): Remove.
6218 (temp_proc_desc, temp_saved_regs): Remove.
6219 (alpha_about_to_return): Remove.
6220 (cached_proc_desc): Remove.
6221 (alpha_frame_chain): Remove.
6222 (alpha_print_extra_frame_info): Remove.
6223 (alpha_init_extra_frame_info): Remove.
6224 (alpha_frame_locals_address): Remove.
6225 (alpha_frame_args_address): Remove.
6226 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6227 (alpha_push_dummy_frame): Remove.
6228 (alpha_pop_frame): Remove.
6229 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6230 (alpha_read_insn): New.
6231 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6232 for different insn encodings.
6233 (alpha_in_lenient_prologue): Remove.
6234 (struct alpha_sigtramp_unwind_cache): New.
6235 (alpha_sigtramp_frame_unwind_cache): New.
6236 (alpha_sigtramp_register_address): New.
6237 (alpha_sigtramp_frame_this_id): New.
6238 (alpha_sigtramp_frame_prev_register): New.
6239 (alpha_sigtramp_frame_unwind): New.
6240 (alpha_sigtramp_frame_p): New.
6241 (struct alpha_heuristic_unwind_cache): New.
6242 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6243 don't count nop insns that occur between functions.
6244 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6245 heuristic_proc_desc, but without the mdebug wrapping.
6246 (alpha_heuristic_frame_this_id): New.
6247 (alpha_heuristic_frame_prev_register): New.
6248 (alpha_heuristic_frame_unwind): New.
6249 (alpha_heuristic_frame_p): New.
6250 (alpha_heuristic_frame_base_address): New.
6251 (alpha_heuristic_frame_base): New.
6252 (alpha_unwind_dummy_id): New.
6253 (alpha_unwind_pc): New.
6254 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6255 frame related deprecated initializations; install replacements.
6256 (alpha_dump_tdep): Remove.
6257 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6258 (alpha_read_insn, alpha_after_prologue,
6259 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6260 alpha_heuristic_frame_prev_register,
6261 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6262 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6263 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6264 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6265
6266 2003-05-29 Andrew Cagney <cagney@redhat.com>
6267
6268 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6269 dependant on the availability of ASSERT_FUNCTION.
6270 (ASSERT_FUNCTION): Do not define when there is no function name.
6271
6272 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6273
6274 From Jimi X <jimix@watson.ibm.com>:
6275 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6276
6277 2003-05-28 Jim Blandy <jimb@redhat.com>
6278
6279 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6280 argument to ptrace to int; the system headers should give it the
6281 right type, and pointers don't fit in ints on powerpc64-*-*.
6282
6283 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6284
6285 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6286 DW_TAG_catch_block.
6287
6288 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6289
6290 * stabsread.c (dbx_lookup_type): Make static.
6291 (read_type): Ditto.
6292 (add_undefined_type): Ditto.
6293 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6294 not export.
6295
6296 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6297
6298 * hpread.c (hpread_has_name): Make static.
6299 (hpread_psymtab_to_symtab): Ditto.
6300 (file_exists): Ditto.
6301 (hpread_call_pxdb): Ditto.
6302 (hpread_pxdb_needed): Ditto.
6303 (hpread_quick_traverse): Ditto.
6304 (hpread_get_header): Ditto.
6305 (hpread_get_lntt): Ditto.
6306 (hpread_get_slt): Ditto.
6307 (class_of): Ditto.
6308
6309 2003-05-25 Andreas Schwab <schwab@suse.de>
6310
6311 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6312 stack_align and deprecated_extra_stack_alignment_needed.
6313 (m68k_stack_align): Delete.
6314
6315 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6316 (m68k_register_virtual_size): Likewise.
6317 (altos_skip_prologue): Remove obsolete function.
6318 (isi_frame_num_args): Likewise.
6319 (news_frame_num_args): Likewise.
6320 (m68k_fix_call_dummy): Make static.
6321 (m68k_push_dummy_frame): Likewise.
6322 (m68k_pop_frame): Likewise.
6323 (m68k_skip_prologue): Likewise.
6324 (m68k_frame_init_saved_regs): Likewise.
6325 (m68k_saved_pc_after_call): Likewise.
6326 (m68k_get_longjmp_target): Make multi-arch.
6327 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6328 structure. Register m68k_get_longjmp_target if enabled.
6329 * m68k-tdep.h (struct gdbarch_tdep): Define.
6330 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6331
6332 * Makefile.in (config.status): Also depend on configure.tgt
6333 and configure.host.
6334 (m68klinux-tdep.o): Update dependencies.
6335 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6336 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6337 (M68K_LINUX_JB_PC): Define.
6338 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6339 and take additional parameter.
6340 (m68k_linux_sigtramp_saved_pc): Update.
6341 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6342 m68k_linux_pc_in_sigtramp, in_plt_section,
6343 find_solib_trampoline_target.
6344 * config/m68k/tm-linux.h: Don't include any tm headers.
6345 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6346 (JB_ELEMENT_SIZE): Likewise.
6347 (JB_PC): Likewise.
6348 (GET_LONGJMP_TARGET): Likewise.
6349 (IN_SIGTRAMP): Likewise.
6350 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6351
6352 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6353
6354 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6355 (sparc32_push_arguments): Re-implement by calling
6356 sparc32_do_push_arguments.
6357
6358 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6359
6360 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6361 SPARC_O1_REGNUM): New defines.
6362 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6363 (sparc32_store_return_value): New function.
6364 (sparc_extract_struct_value_address): Rewrite to operate on a
6365 regcache.
6366 (sparc_gdbarch_init): Don't set
6367 deprecated_extract_struct_value_address. Set
6368 extract_struct_value_address instead. Don't set
6369 deprecated_extract_return_value and deprecated_store_return_value
6370 for 32-bit targets. Set extract_return_value and
6371 store_return_value instead.
6372 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6373 DEPRECTAED_EXTRACT_RETURN_VALUE,
6374 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6375 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6376 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6377 (sparc_store_return_value): Remove prototype.
6378 (sparc32_store_return_value): New prototype.
6379 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6380 Adjust prototypes.
6381
6382 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6383
6384 * sparcnbsd-tdep.c: Include "gdb_string.h".
6385
6386 2003-05-23 Andrew Cagney <cagney@redhat.com>
6387
6388 * p-valprint.c (pascal_val_print): Replace extract_address with
6389 the inline equivalent extract_unsigned_integer.
6390 * jv-valprint.c (java_value_print): Ditto.
6391 * ada-valprint.c (ada_val_print_1): Ditto.
6392 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6393
6394 2003-05-23 Theodore A. Roth <troth@openavr.org>
6395
6396 * blockframe.c (frameless_look_for_prologue): Remove unused
6397 after_prologue variable.
6398
6399 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6400
6401 * blockframe.c (get_pc_function_start): Rewrite to avoid
6402 asignments in if-statements.
6403
6404 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6405
6406 Committed by Elena Zannoni <ezannoni@redhat.com>.
6407 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6408 files, don't relocate absolute symbols (and do use mst_abs).
6409
6410 2003-05-23 Andrew Cagney <cagney@redhat.com>
6411
6412 * objc-lang.c: Include "gdb_assert.h".
6413 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6414 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6415 (gdb_check, gdb_check_fatal): Delete functions.
6416 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6417 gdb_assert.
6418 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6419 * Makefile.in (objc-lang.o): Update dependencies.
6420
6421 2003-05-22 Ian Lance Taylor <ian@airs.com>
6422
6423 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6424 with fprintf_filtered, not fprintf_unfiltered.
6425
6426 2003-05-22 Andrew Cagney <cagney@redhat.com>
6427
6428 * stack.c (frame_info): Inline extract_address, replacing it with
6429 extract_unsigned_integer.
6430 * findvar.c (unsigned_pointer_to_address): Ditto.
6431 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6432 * dwarf2expr.c (dwarf2_read_address): Ditto.
6433 * frame.c (frame_pc_unwind): Update comment.
6434 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6435
6436 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6437
6438 * infptrace.c (detach): Call print_sys_errmsg rather than
6439 perror_with_name to issue warning message when errno is non-zero
6440 after calling ptrace detach.
6441
6442 2003-05-21 J. Brobecker <brobecker@gnat.com>
6443
6444 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6445 macro definitions from here...
6446 * hppa-tdep.c: ...to there.
6447
6448 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6449
6450 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6451 register_ptrace_addr(). Fix all callers.
6452
6453 2003-05-21 Andreas Schwab <schwab@suse.de>
6454
6455 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6456 dependencies.
6457 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6458 end.
6459 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6460 (_initialize_m68k_linux_tdep): New function.
6461 (m68k_linux_frame_saved_pc): Make static.
6462 (m68k_linux_extract_return_value): Likewise.
6463 (m68k_linux_store_return_value): Likewise.
6464 (m68k_linux_extract_struct_value_address): Likewise.
6465 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6466 Remove.
6467 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6468 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6469 (DEPRECATED_FRAME_SAVED_PC): Remove.
6470
6471 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6472
6473 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6474 regset numbering rather than our own.
6475
6476 2003-05-19 David Carlton <carlton@bactrian.org>
6477
6478 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6479
6480 2003-05-19 David Carlton <carlton@bactrian.org>
6481
6482 Partial fix for PR c++/827.
6483 * cp-support.h: Include symtab.h.
6484 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6485 * cp-namespace.c: Update contributors.
6486 (cp_lookup_symbol_nonlocal): New.
6487 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6488 (lookup_symbol_file): Ditto.
6489 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6490 * block.h: Declare block_scope, block_using, block_global_block.
6491 * block.c (block_scope): New.
6492 (block_using, block_global_block): Ditto.
6493 * Makefile.in (cp_support_h): Depend on symtab_h.
6494 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6495
6496 2003-05-19 David Carlton <carlton@bactrian.org>
6497
6498 * language.h (struct language_defn): Add 'la_value_of_this'
6499 and 'la_lookup_symbol_nonlocal' members.
6500 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6501 lookup_symbol_static, lookup_symbol_global,
6502 lookup_symbol_aux_block.
6503 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6504 if we should search fields of this and how to do static/global
6505 lookup.
6506 (lookup_symbol_aux_block): Make extern.
6507 (basic_lookup_symbol_nonlocal): New.
6508 (lookup_symbol_static, lookup_symbol_global): Ditto.
6509 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6510 'la_lookup_symbol_nonlocal' members.
6511 * c-lang.c (c_language_defn, cplus_language_defn)
6512 (asm_language_defn, minimal_language_defn): Ditto.
6513 * jv-lang.c (java_language_defn): Ditto.
6514 * language.c (unknown_language_defn, auto_language_defn)
6515 (local_language_defn): Ditto.
6516 * m2-lang.c (m2_language_defn): Ditto.
6517 * objc-lang.c (objc_language_defn): Ditto.
6518 * scm-lang.c (scm_language_defn): Ditto.
6519 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6520 * p-lang.c (pascal_language_defn): Ditto for both.
6521 * Makefile.in (f-lang.o): Depend on value_h.
6522 (p-lang.o): Ditto.
6523
6524 2003-05-19 David Carlton <carlton@bactrian.org>
6525
6526 * block.h: Declare block_static_block.
6527 * block.c (block_static_block): New.
6528 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6529 lookup_symbol_aux_local, calling block_static_block instead.
6530 (lookup_symbol_aux_local): Delete 'static_block' argument.
6531
6532 2003-05-19 David Carlton <carlton@bactrian.org>
6533
6534 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6535
6536 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6537
6538 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6539 register numbers mapping.
6540
6541 2003-05-18 Adam Fedor <fedor@gnu.org>
6542
6543 * symtab.c (completion_list_objc_symbol): New function.
6544 (make_symbol_completion_list): Use it to add ObjC symbols
6545 when looking though the list.
6546 (language_search_unquoted_string): New function.
6547 (make_file_symbol_completion_list): Use it.
6548
6549 2003-05-18 Andreas Schwab <schwab@suse.de>
6550
6551 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6552 dependencies.
6553 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6554 as m68k_linux_extract_return_value.
6555 (DEPRECATED_STORE_RETURN_VALUE): Define as
6556 m68k_linux_store_return_value.
6557 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6558 m68k_linux_extract_struct_value_address.
6559 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6560 get_next_frame, get_frame_base, get_frame_pc.
6561 (m68k_linux_frame_saved_pc): Use get_frame_base.
6562 (m68k_linux_extract_return_value): New function.
6563 (m68k_linux_store_return_value): New function.
6564 (m68k_linux_extract_struct_value_address): New function.
6565 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6566
6567 * c-exp.y (typebase): Remove duplicate occurence of
6568 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6569 of lookup_signed_typename.
6570
6571 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6572
6573 * dwarf2loc.c (find_location_expression): Change type of second
6574 argument to `size_t *'.
6575 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6576 for size variable.
6577
6578 2003-05-18 David Carlton <carlton@bactrian.org>
6579
6580 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6581 'linkage_name'. Add comment.
6582 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6583 'linkage_name'.
6584 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6585 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6586 (lookup_block_symbol): Ditto.
6587
6588 2003-05-16 Andrew Cagney <cagney@redhat.com>
6589
6590 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6591 * gdbarch.h, gdbarch.c: Re-generate.
6592 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6593 * TODO (REGISTER_BYTES): Delete reference.
6594 * alpha-tdep.c (alpha_gdbarch_init): Update.
6595 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6596 * x86-64-tdep.c (x86_64_init_abi): Update.
6597 * vax-tdep.c (vax_gdbarch_init): Update.
6598 * v850-tdep.c (v850_gdbarch_init): Update.
6599 * sparc-tdep.c (sparc_gdbarch_init): Update.
6600 * sh-tdep.c (sh_gdbarch_init): Update.
6601 * s390-tdep.c (s390_gdbarch_init): Update.
6602 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6603 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6604 (ns32k_gdbarch_init_32382): Update.
6605 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6606 * mcore-tdep.c (mcore_gdbarch_init): Update.
6607 * m68k-tdep.c (m68k_gdbarch_init): Update.
6608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6609 * ia64-tdep.c (ia64_gdbarch_init): Update.
6610 * i386-tdep.c (i386_gdbarch_init): Update.
6611 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6612 * hppa-tdep.c (hppa_gdbarch_init): Update.
6613 * h8300-tdep.c (h8300_gdbarch_init): Update.
6614 * frv-tdep.c (frv_gdbarch_init): Update.
6615 * cris-tdep.c (cris_gdbarch_init): Update.
6616 * avr-tdep.c (avr_gdbarch_init): Update.
6617 * arm-tdep.c (arm_gdbarch_init): Update.
6618 * sparc-tdep.c (sparc_pop_frame): Update.
6619 * rs6000-tdep.c (rs6000_pop_frame): Update.
6620 * remote.c (init_remote_state): Update.
6621 (remote_prepare_to_store): Update.
6622 * remote-vx.c (vx_prepare_to_store): Update.
6623 * remote-sds.c (sds_fetch_registers): Update.
6624 (sds_prepare_to_store): Update.
6625 * remote-array.c: Update.
6626 * regcache.c (init_legacy_regcache_descr): Update.
6627 (init_regcache_descr): Update.
6628 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6629 (mips_o64_extract_return_value): Update.
6630 * irix5-nat.c (fetch_core_registers): Update.
6631 * irix4-nat.c (fetch_core_registers): Update.
6632 * i386-tdep.h: Update.
6633 * hppa-tdep.c (pa_do_registers_info): Update.
6634 (pa_do_strcat_registers_info): Update.
6635 * cris-tdep.c (cris_register_bytes_ok): Update.
6636 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6637 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6638 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6639 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6640 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6641 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6642 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6643 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6644 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6645 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6646 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6647 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6648 (REGISTER_BYTES_OK): Update.
6649 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6650 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6651
6652 2003-05-16 Ian Lance Taylor <ian@airs.com>
6653
6654 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6655 (vax_print_insn, print_insn_arg): Remove static functions.
6656 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6657 print_insn_vax from opcodes library.
6658 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6659
6660 2003-05-15 Andrew Cagney <cagney@redhat.com>
6661
6662 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6663 * target.h (memory_breakpoint_from_pc): Delete declaration.
6664 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6665 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6666 * monitor.c (monitor_insert_breakpoint): Use
6667 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6668 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6669 * gdbarch.h, gdbarch.c: Re-generate.
6670 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6671 (sparc_gdbarch_init): Set breakpoint_from_pc to
6672 sparc_breakpoint_from_pc.
6673 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6674 (BREAKPOINT_FROM_PC): Define.
6675 (sparc_breakpoint_from_pc): Declare.
6676 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6677 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6678 (BREAKPOINT_FROM_PC): Define.
6679 (BREAKPOINT): Delete macro.
6680 * target.h: Update comment.
6681 * s390-tdep.c (s390_gdbarch_init): Update comments.
6682 * remote.c: Update comments.
6683 * remote-mips.c: Update comments.
6684 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6685 * mem-break.c: Update comment.
6686 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6687 (ia64_memory_insert_breakpoint): Update.
6688 * config/sparc/tm-sparc.h: Update comment.
6689 * config/pa/tm-hppa64.h: Update comment.
6690 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6691 (rs6000_breakpoint_from_pc): Update.
6692 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6693 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6694 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6695 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6696 (mips_breakpoint_from_pc): Update.
6697 (mips_dump_tdep): Update.
6698
6699 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6700 * minsyms.c (lookup_minimal_symbol): Inline
6701 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6702
6703 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6704 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6705 * p-lang.c (pascal_printstr): Ditto.
6706 * objc-lang.c (objc_printstr): Ditto.
6707 * m2-lang.c (m2_printstr): Ditto.
6708 * jv-valprint.c (java_print_value_fields): Ditto.
6709 * f-lang.c (f_printstr): Ditto.
6710 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6711 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6712 for repeat_count_threshold.
6713 * Makefile.in (cp-valprint.o): Update dependencies.
6714
6715 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6716
6717 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6718 (examine_prologue): Support looking through leaf functions, knowing
6719 they start with mov r2,r12. Support skipping over indirect stores
6720 of the input registers. Upon hitting a non-nop branch instruction
6721 or predicated instruction, bail out by setting lim_pc to the current
6722 pc value in the loop. At the end, if the lim_pc value is still
6723 beyond our calculated value and we have trust_limit set,
6724 use the lim_pc value.
6725
6726 2003-05-15 Andrew Cagney <cagney@redhat.com>
6727
6728 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6729 generic_find_dummy_frame.
6730 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6731 (deprecated_generic_find_dummy_frame): Update.
6732 (deprecated_read_register_dummy): Update.
6733 * frame.c (deprecated_generic_get_saved_register): Update.
6734
6735 2003-05-15 Theodore A. Roth <troth@openavr.org>
6736
6737 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6738 (avr_gdbarch_init): Set breakpoint_from_pc method.
6739
6740 2003-05-15 Andrew Cagney <cagney@redhat.com>
6741
6742 * regcache.c (build_regcache): Set deprecated_register_valid
6743 directly.
6744 (deprecated_grub_regcache_for_register_valid): Delete function.
6745 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6746 declaration.
6747
6748 2003-05-15 David Carlton <carlton@bactrian.org>
6749
6750 Committed by Elena Zannoni <ezannoni@redhat.com>
6751 * symtab.c (lookup_symbol_aux): Delete calls to
6752 lookup_symbol_aux_minsyms.
6753 (lookup_symbol_aux_minsyms): Comment out function and
6754 prototype. Delete lookup by mangled name.
6755
6756 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6757
6758 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6759 correctly indicate an empty stack and ``stack_allocated'' to the
6760 indicate the number of elements initially allocated.
6761 (dwarf_expr_grow_stack): Simplify method for computing new
6762 stack size. Don't loop infinitely if ``stack_len'' is zero.
6763 (execute_stack_op): Move ``ctx->in_reg'' initialization
6764 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6765 be used in conjuction with DW_OP_piece. Revise error message
6766 accordingly.
6767
6768 2003-05-14 Theodore A. Roth <troth@openavr.org>
6769
6770 * MAINTAINERS: Update my email address.
6771 * avr-tdep.c: Ditto.
6772
6773 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6774
6775 * symtab.h (enum domain_enum): Rename from namespace_enum.
6776 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6777 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6778 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6779 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6780 TYPES_NAMESPACE, METHODS_NAMESPACE.
6781 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6782 (struct symbol, struct partial_symbol): Rename field
6783 'namespace_enum namespace' to 'domain_enum domain'.
6784 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6785 Delete old define kludge for namespace.
6786
6787 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6788 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6789 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6790 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6791 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6792 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6793 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6794 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6795 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6796 occurrences of the above.
6797
6798 2003-05-14 Ian Lance Taylor <ian@airs.com>
6799
6800 * Makefile.in (install-only): Use $(SHELL) when running
6801 mkinstalldirs.
6802
6803 2003-05-13 Ian Lance Taylor <ian@airs.com>
6804
6805 * MAINTAINERS (write after approval): Add myself.
6806
6807 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6808 second and third arguments.
6809 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6810 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6811
6812 2003-05-13 Andrew Cagney <cagney@redhat.com>
6813
6814 * defs.h (store_address): Delete declaration.
6815 findvar.c (store_address): Delete function.
6816 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6817 store_unsigned_integer.
6818 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6819 * v850-tdep.c (v850_push_arguments): Ditto.
6820 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6821 * sh-tdep.c (sh64_get_saved_register): Ditto.
6822 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6823 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6824 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6825 (mips_get_saved_register): Ditto.
6826 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6827 (find_func_descr, ia64_push_arguments): Ditto.
6828 * i386-tdep.c (i386_push_arguments): Ditto.
6829 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6830 * frv-tdep.c (frv_push_arguments): Ditto.
6831 * frame.c (legacy_saved_regs_prev_register): Ditto.
6832 (deprecated_generic_get_saved_register): Ditto.
6833 * findvar.c (unsigned_address_to_pointer): Ditto.
6834 * dwarf2read.c (dwarf2_const_value): Ditto.
6835 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6836 * alpha-tdep.c (alpha_push_arguments): Ditto.
6837
6838 2003-05-12 J. Brobecker <brobecker@gnat.com>
6839
6840 * NEWS: Mention that the hppa-hpux port has been partially
6841 multiarched (32bit ABIT only, so far).
6842
6843 2003-05-11 Andrew Cagney <cagney@redhat.com>
6844
6845 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6846 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6847 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6848 sim/testsuite/sim/arm/misaligned2.ms, and
6849 sim/testsuite/sim/arm/misaligned3.ms.
6850 * disasm.h (struct ui_file): Add opaque struct declaration.
6851 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6852 * frame.h (struct ui_file): Ditto.
6853
6854 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6855
6856 * value.h: Pretty print.
6857
6858 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6859
6860 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6861
6862 2003-05-08 Andrew Cagney <cagney@redhat.com>
6863
6864 * regcache.h (max_register_size): Delete declaration.
6865 * regcache.c (max_register_size): Delete function.
6866 (struct regcache_descr): Delete field "max_register_size".
6867 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6868 registers fit in MAX_REGISTER_SIZE.
6869 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6870 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6871 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6872 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6873 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6874 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6875 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6876 * dve3900-rom.c, hppa-tdep.c: Ditto.
6877
6878 2003-05-08 David Carlton <carlton@math.stanford.edu>
6879
6880 * valops.c (push_word): Fix typo.
6881
6882 2003-05-08 Andrew Cagney <cagney@redhat.com>
6883
6884 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6885 * gdbarch.h: Re-generate.
6886 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6887 (legacy_max_register_raw_size): Delete declaration.
6888 * regcache.c (legacy_max_register_raw_size): Delete function.
6889 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6890 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6891 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6892 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6893 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6894 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6895 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6896 * findvar.c, dwarf2cfi.c: Ditto.
6897
6898 2003-05-08 Andrew Cagney <cagney@redhat.com>
6899
6900 * mips-tdep.c (read_signed_register): New function, moved to here
6901 from "regcache.c".
6902 (read_signed_register_pid): Ditto.
6903 * regcache.c (read_signed_register_pid): Delete function, moved to
6904 "mips-tdep.c".
6905 (read_signed_register): Ditto.
6906 * regcache.h (read_signed_register): Delete declaration.
6907 (read_signed_register_pid): Delete declaration.
6908
6909 2003-05-08 Andrew Cagney <cagney@redhat.com>
6910
6911 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6912 * gdbarch.h: Re-generate.
6913 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6914 (legacy_max_register_virtual_size): Delete declaration.
6915 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6916 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6917 * tracepoint.c (memrange_sortmerge): Ditto.
6918 * sparc-tdep.c (sparc_print_registers): Ditto.
6919 * regcache.c (legacy_max_register_virtual_size): Delete function.
6920
6921 2002-05-08 J. Brobecker <brobecker@gnat.com>
6922
6923 * fork-child.c (escape_bang_in_quoted_argument): New function.
6924 (fork_inferior): Escape '!' characters in quoted arguments
6925 only when needed.
6926
6927 2003-05-08 J. Brobecker <brobecker@gnat.com>
6928
6929 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6930 the language of the CU is not currently supported by GDB.
6931
6932 2003-05-08 J. Brobecker <brobecker@gnat.com>
6933
6934 * defs.h (language): Add language_minimal enum value.
6935 * c-lang.c (minimal_language_defn): New language definition.
6936 (_initialize_c_language): Add the new minimal language to the list
6937 of languages known to GDB.
6938
6939 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6940
6941 * frame.c (get_frame_type): Don't attempt to lazily initialize
6942 frame's unwinder for legacy frames.
6943
6944 2003-05-07 Andrew Cagney <cagney@redhat.com>
6945
6946 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6947 and "regcache" parameters.
6948 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6949
6950 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6951
6952 * dwarf2read.c (dwarf_decode_lines): Only use output of
6953 check_cu_functions() when calling record_line(). Do not update
6954 the current address.
6955
6956 2003-05-07 Andrew Cagney <cagney@redhat.com>
6957
6958 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6959 code.
6960
6961 2003-05-07 Jim Blandy <jimb@redhat.com>
6962
6963 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6964 'maint info symtabs' and 'maint info psymtabs'.
6965 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6966 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6967 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6968 Declarations updated.
6969 * maint.c (maintenance_list_command): Delete.
6970 (_initialize_maint_cmds): Update calls to add_cmd.
6971 * gdbcmd.h (maintenancelistlist): Delete declaration.
6972 * cli/cli-cmds.c (maintenancelistlist): Delete.
6973 (init_cmd_lists): Don't initialize it.
6974 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6975
6976 2003-05-07 Andrew Cagney <cagney@redhat.com>
6977
6978 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6979 "regcache".
6980 (d10v_print_registers_info): Update.
6981 (d10v_dmap_register, d10v_imap_register): Delete functions.
6982 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6983 and "imap_register".
6984 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6985 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6986 * arch-utils.c (generic_remote_translate_xfer_address): Add
6987 "regcache" and "gdbarch" parameters.
6988 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6989 parameter. Change class to multi-arch.
6990 * gdbarch.h, gdbarch.c: Re-generate.
6991 * remote.c (remote_xfer_memory): Use
6992 gdbarch_remote_translate_xfer_address.
6993
6994 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6995
6996 * infrun.c (prev_pc): Move declaration ahead of proceed().
6997 (proceed): Refresh prev_pc value before resuming.
6998 (stop_stepping): Remove code to refresh prev_pc.
6999
7000 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7001
7002 * nto-tdep.c: Removed stray comment.
7003
7004 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7005
7006 * i386-nto-tdep.c: Fix old K&R function definitions.
7007 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7008 Also change add_show_from_set() call to add_setshow_cmd().
7009 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7010
7011 2003-05-05 Andrew Cagney <cagney@redhat.com>
7012
7013 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7014 (fprint_dummy_frames): New function.
7015 (maintenance_print_dummy_frames): New function.
7016 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7017 * frame.c (fprint_frame_id): Make global.
7018 * frame.h (fprint_frame_id): Declare.
7019 * Makefile.in (dummy-frame.o): Update dependencies.
7020
7021 2003-05-05 Andrew Cagney <cagney@redhat.com>
7022
7023 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7024 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7025 SIZEOF_CALL_DUMMY_WORDS.
7026 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7027 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7028 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7029 CALL_DUMMY_BREAKPOINT_OFFSET.
7030 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7031 CALL_DUMMY_START_OFFSET.
7032 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7033 * gdbarch.h, gdbarch.c: Re-generate.
7034 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7035 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7036 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7037 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7038 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7039 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7040 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7041 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7042 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7043 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7044 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7045 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7046 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7047 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7048 * config/sparc/tm-sparc.h: Update.
7049
7050 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7051
7052 * configure.tgt: Add i[3456]86-*-nto*.
7053 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7054 * nto-tdep.c: New file. Neutrino target support routines.
7055 * nto-tdep.h: New file. Neutrino target header.
7056 * config/tm-qnxnto.h: New file.
7057 * config/i386/i386nto.mt: New file.
7058 * config/i386/tm-i386nto.h: New file.
7059
7060 2003-05-04 Andrew Cagney <cagney@redhat.com>
7061
7062 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7063 (load_infrun_state): Ditto.
7064 (struct thread_info): Drop "prev_func_name" field.
7065 * thread.c (load_infrun_state): Update.
7066 (save_infrun_state): Update.
7067 * infrun.c (prev_func_name): Delete variable.
7068 (init_wait_for_inferior): Do not clear prev_func_name.
7069 (stop_stepping, keep_going, context_switch): Do not swap
7070 prev_func_name.
7071 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7072 instead of PC_IN_SIGTRAMP.
7073
7074 2003-05-04 Andrew Cagney <cagney@redhat.com>
7075
7076 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7077 REGISTER_BYTE with register_offset_hack.
7078 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7079 that REGISTER_BYTE is consistent with the regcache.
7080 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7081 * gdbarch.h, gdbarch.c: Regenerate.
7082
7083 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7084
7085 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7086 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7087
7088 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7089
7090 2003-05-03 J. Brobecker <brobecker@gnat.com>
7091
7092 From Thierry Schneider <tpschneider1@yahoo.com>
7093 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7094 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7095 (mi-cmd-symbol.o): Add rule.
7096
7097 2003-05-03 Andrew Cagney <cagney@redhat.com>
7098
7099 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7100 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7101 * gdbarch.h, gdbarch.c: Re-generate.
7102 * d10v-tdep.c (d10v_push_dummy_code): New function.
7103 (d10v_gdbarch_init): Set push_dummy_code.
7104 * infcall.c (legacy_push_dummy_code): New function.
7105 (generic_push_dummy_code): New function.
7106 (push_dummy_code): New function.
7107 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7108 instead of dummy_addr, to push_dummy_call. Move call to
7109 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7110 switch.
7111 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7112
7113 2003-05-03 Andrew Cagney <cagney@redhat.com>
7114
7115 * disasm.h (print_insn): Declare.
7116 * disasm.c (init_gdb_disassemble_info): New function.
7117 (gdb_disassembly): Call init_gdb_disassemble_info.
7118 (gdb_print_insn): New function.
7119 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7120 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7121 * mcore-tdep.c: Include "disasm.h"
7122 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7123 * d10v-tdep.c: Include "disasm.h".
7124 (display_trace): Call gdb_print_insn, instead of print_insn.
7125 (print_insn): Delete function.
7126 * printcmd.c: Include "disasm.h".
7127 (print_insn): Delete function.
7128 (print_formatted): Call gdb_print_insn, instead of print_insn.
7129 * Makefile.in (printcmd.o): Update dependencies.
7130 (mcore-tdep.o, d10v-tdep.o): Ditto.
7131
7132 2003-05-02 Andrew Cagney <cagney@redhat.com>
7133
7134 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7135 PC_REGNUM, re-indent.
7136 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7137 PC_REGNUM isn't set.
7138
7139 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7140 * gdbarch.h, gdbarch.c: Re-generate.
7141 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7142 register_virtual_size, pc_regnum, or register_bytes.
7143 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7144 (d10v_register_type): Use D10V_PC_REGNUM.
7145 (d10v_print_registers_info, d10v_read_pc): Ditto.
7146 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7147 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7148
7149 2003-05-02 David Carlton <carlton@bactrian.org>
7150
7151 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7152 the name with mstrsave.
7153
7154 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7155
7156 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7157 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7158 (host_charset_name, target_charset_name): New vars for use by
7159 set/show commands.
7160 (host_charset_enum, target_charset_enum): New enums for set/show
7161 commands.
7162 (set_charset_sfunc, set_host_charset_sfunc,
7163 set_target_charset_sfunc): New functions.
7164 (set_host_charset, set_target_charset): Make static.
7165 (list_charsets, set_host_charset_command,
7166 set_target_charset_command): Delete functions.
7167 (show_charset_command): Rewrite as....
7168 (show_charset): Hook this up with the set/show command mechanism.
7169 (_initialize_charset): Change names of charsets to match the
7170 set/show enums. Use host_charset_name and target_charset_name.
7171 Use set/show mechanism for charset, host-charset, target-charset
7172 commands. Do not make 'show host-charset' and 'show
7173 target-charset' be aliases of 'show charset'.
7174
7175 * charset.h (set_host_charset, set_target_charset): Don't export,
7176 they are not used outside the file.
7177
7178 2003-05-01 Andrew Cagney <cagney@redhat.com>
7179
7180 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7181 (gdb_disassembly): Make "di" non static, always initialize and
7182 cleanup. Always use dis_asm_read_memory.
7183 (gdb_dis_asm_read_memory): Delete function.
7184
7185 2003-05-01 Andrew Cagney <cagney@redhat.com>
7186
7187 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7188 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7189
7190 2003-04-30 Andrew Cagney <cagney@redhat.com>
7191
7192 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7193 "tm_print_insn_info".
7194 (TARGET_PRINT_INSN_INFO): Delete macro.
7195 (dis_asm_read_memory): Delete function declaration.
7196 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7197 (tm_print_insn_info): Delete variable definition.
7198 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7199 * gdbarch.h, gdbarch.c: Re-generate.
7200 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7201 "deprecated_tm_print_insn_info".
7202 * mcore-tdep.c (mcore_dump_insn): Ditto.
7203 * mips-tdep.c (mips_gdbarch_init): Ditto.
7204 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7205 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7206 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7207 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7208 instead of TARGET_PRINT_INSN_INFO, add comment.
7209 * s390-tdep.c (s390_get_frame_info): Instead of
7210 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7211 (s390_check_function_end, s390_is_sigreturn): Ditto.
7212 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7213 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7214 * disasm.c: Include "gdbcore.h".
7215 (_initialize_disasm): New function, initialize
7216 "deprecated_tm_print_insn_info".
7217 (deprecated_tm_print_insn_info): New variable.
7218 (dis_asm_read_memory): Moved from "corefile.c", made static.
7219 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7220 * Makefile.in (disasm.o): Update dependencies.
7221
7222 2003-04-30 Andrew Cagney <cagney@redhat.com>
7223
7224 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7225
7226 2003-04-29 Adam Fedor <fedor@gnu.org>
7227
7228 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7229 * infcall.c (find_function_addr): Make non-static.
7230 * infcall.h (find_function_addr): Declare.
7231 * Makefile.in (eval.o): Update dependencies.
7232
7233 2003-04-28 Adam Fedor <fedor@gnu.org>
7234
7235 * symtab.c (symbol_find_demangled_name): Check for and demangle
7236 ObjC symbols.
7237 (symbol_init_demangled_name): Init for language_objc as well.
7238
7239 2003-04-28 Andrew Cagney <cagney@redhat.com>
7240
7241 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7242 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7243 * gdbarch.h, gdbarch.c: Re-generate.
7244 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7245 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7246 * inferior.h (deprecated_read_fp): Rename read_fp.
7247 (generic_target_read_fp): Delete declaration.
7248 * regcache.c (generic_target_read_fp): Delete function.
7249 (deprecated_read_fp): Replace read_fp, use
7250 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7251 * d10v-tdep.c (d10v_read_fp): Delete function.
7252 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7253
7254 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7255 deprecated_target_read_fp to generic_target_read_fp.
7256 * sh-tdep.c (sh_gdbarch_init): Ditto.
7257 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7258 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7259 * frv-tdep.c (frv_gdbarch_init): Ditto.
7260
7261 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7262 deprecated_fp_regnum.
7263 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7264 * vax-tdep.c (vax_gdbarch_init): Ditto.
7265 * v850-tdep.c (v850_gdbarch_init): Ditto.
7266 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7267 * sh-tdep.c (sh_gdbarch_init): Ditto.
7268 * s390-tdep.c (s390_gdbarch_init): Ditto.
7269 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7270 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7271 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7272 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7273 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7274 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7275 * i386-tdep.c (i386_gdbarch_init): Ditto.
7276 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7277 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7278 * frv-tdep.c (frv_gdbarch_init): Ditto.
7279 * cris-tdep.c (cris_gdbarch_init): Ditto.
7280 * avr-tdep.c (avr_gdbarch_init): Ditto.
7281 * arm-tdep.c (arm_gdbarch_init): Ditto.
7282 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7283
7284 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7285 * v850-tdep.c (v850_gdbarch_init): Ditto.
7286 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7287 * sh-tdep.c (sh_gdbarch_init): Ditto.
7288 * s390-tdep.c (s390_gdbarch_init): Ditto.
7289 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7290 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7291 * mips-tdep.c (mips_gdbarch_init): Ditto.
7292 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7293 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7294 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7295 * frv-tdep.c (frv_gdbarch_init): Ditto.
7296 * avr-tdep.c (avr_gdbarch_init): Ditto.
7297 * arm-tdep.c (arm_gdbarch_init): Ditto.
7298
7299 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7300 DEPRECATED_FP_REGNUM.
7301 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7302 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7303 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7304 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7305 (sparc32_register_virtual_type): Ditto.
7306 * sh-tdep.c (sh64_frame_chain): Ditto.
7307 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7308 (sh_nofp_frame_init_saved_regs): Ditto.
7309 (sh64_nofp_frame_init_saved_regs): Ditto.
7310 (sh_fp_frame_init_saved_regs): Ditto.
7311 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7312 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7313 * procfs.c (procfs_fetch_registers): Ditto.
7314 (procfs_store_registers): Ditto.
7315 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7316 (store_inferior_registers, fetch_core_registers): Ditto.
7317 (fetch_kcore_registers, clear_regs): Ditto.
7318 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7319 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7320 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7321 * nlm/i386.c (do_status): Ditto.
7322 * mipsv4-nat.c (supply_gregset): Ditto.
7323 * mips-tdep.c: Ditto for comments.
7324 * mips-nat.c (fetch_inferior_registers): Ditto.
7325 (store_inferior_registers, fetch_core_registers): Ditto.
7326 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7327 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7328 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7329 (i386_do_pop_frame, i386_register_type): Ditto.
7330 * hppa-tdep.c (hppa_frame_chain): Ditto.
7331 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7332 (hppa_pop_frame, hppa_read_fp): Ditto.
7333 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7334 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7335 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7336 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7337 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7338 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7339 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7340 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7341 * blockframe.c: Ditto for comments.
7342 * arch-utils.h: Ditto for comments.
7343 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7344 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7345 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7346 * alpha-tdep.h: Ditto for comments.
7347 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7348 (alpha_cannot_store_register): Ditto.
7349 (alpha_push_dummy_frame): Ditto.
7350 * alpha-nat.c (supply_gregset): Ditto.
7351
7352 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7353 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7354 * config/sparc/tm-sparc.h: Update comment.
7355
7356 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7357 deprecated_read_fp instead of TARGET_READ_FP.
7358 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7359 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7360 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7361 deprecated_read_fp instead of read_fp.
7362 * s390-tdep.c (s390_push_arguments): Ditto.
7363 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7364 * frame.h: Ditto in comments.
7365 * frame.c (legacy_get_prev_frame): Ditto.
7366 * dummy-frame.c (dummy_frame_this_id): Ditto.
7367 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7368
7369 2003-04-28 Andrew Cagney <cagney@redhat.com>
7370
7371 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7372 * gdbarch.h, gdbarch.c: Re-generate.
7373 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7374 * vax-tdep.c (_initialize_vax_tdep): Update.
7375 * v850-tdep.c (_initialize_v850_tdep): Update.
7376 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7377 * s390-tdep.c (_initialize_s390_tdep): Update.
7378 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7379 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7380 * mips-tdep.c (_initialize_mips_tdep): Update.
7381 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7382 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7383 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7384 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7385 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7386 * frv-tdep.c (_initialize_frv_tdep): Update.
7387 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7388 (_initialize_cris_tdep): Update.
7389 * arch-utils.c (legacy_print_insn): Update.
7390 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7391
7392 2003-04-26 Adam Fedor <fedor@gnu.org>
7393
7394 * linespec.c (decode_objc): New function to decode ObjC calls
7395 (decode_line_1): Check for ObjC calls (using decode_objc)
7396 * Makefile (linespec.o): Update dependencies.
7397
7398 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7399
7400 * breakpoint.h (struct breakpoint_ops): New.
7401 (struct breakpoint): Add ops member.
7402
7403 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7404 (mention): Use new breakpoint ops member.
7405 (set_raw_breakpoint): Initialize ops field to NULL.
7406 (print_exception_catchpoint, print_one_exception_catchpoint)
7407 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7408 (gnu_v3_exception_catchpoint_ops): New.
7409 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7410
7411 2003-04-25 Adam Fedor <fedor@gnu.org>
7412
7413 * Makefile.in (COMMON_OBS): Add objc-lang.o
7414
7415 2003-04-25 Andrew Cagney <cagney@redhat.com>
7416
7417 * d10v-tdep.c (print_insn): Delete function.
7418 (display_trace): Use TARGET_PRINT_INSN.
7419 (_initialize_d10v_tdep): Do not set tm_print_insn.
7420 (d10v_gdbarch_init): Set print_insn.
7421
7422 2003-04-25 Andrew Cagney <cagney@redhat.com>
7423
7424 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7425 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7426 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7427 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7428 (nr_dmap_regs, a0_regnum): ... new functions.
7429 (d10v_print_registers_info): Use a0_regnum, use register_size.
7430 (d10v_register_byte): Delete function.
7431 (d10v_register_raw_size): Delete function.
7432 (d10v_register_type): Use a0_regnum.
7433 (d10v_print_registers_info): Use a0_regnum.
7434 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7435 (d10v_gdbarch_init): Do not set register_byte or
7436 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7437 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7438 extract_address.
7439 (trace_command): Use XCALLOC.
7440 (print_insn): Delete reference to tm_print_insn.
7441 (saved_regs_unwinder): Use store_unsigned_integer instead of
7442 store_address.
7443 * frame.h (FRAME_OBSTACK_CALLOC): Define
7444
7445 2003-04-25 David Carlton <carlton@bactrian.org>
7446
7447 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7448
7449 2003-04-24 Adam Fedor <fedor@gnu.org>
7450
7451 * objc-lang.c: Include "valprint.h"
7452 * Makefile.in (objc-lang.o): Update dependencies.
7453
7454 2003-04-24 Adam Fedor <fedor@gnu.org>
7455
7456 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7457 architecture dependant compilation and mark as unimplemented
7458 (until they get put in the gdbarch vector).
7459
7460 2003-04-23 David Carlton <carlton@bactrian.org>
7461
7462 * cp-support.c (cp_find_first_component): Accept 'operator' in
7463 more locations.
7464
7465 2003-04-23 Andrew Cagney <cagney@redhat.com>
7466
7467 * infcall.c (call_function_by_hand): Eliminate redundant
7468 indentation. Move "saved_async" and "old_cleanups" to where they
7469 are needed.
7470
7471 2003-04-23 Andrew Cagney <cagney@redhat.com>
7472
7473 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7474 and "buffer". Move the "name" code to where it is needed.
7475
7476 2003-04-23 Andrew Cagney <cagney@redhat.com>
7477
7478 * infcall.c (call_function_by_hand): Move variables "start_sp",
7479 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7480 code to ON_STACK switch branch.
7481
7482 2003-04-23 Andrew Cagney <cagney@redhat.com>
7483
7484 * infcall.c (call_function_by_hand): Make declaration of "i",
7485 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7486 lint.
7487
7488 2003-04-23 Andrew Cagney <cagney@redhat.com>
7489
7490 * infcall.c (call_function_by_hand): Delete variable
7491 "n_method_args". Localize "param_type"'s declaration to the loop
7492 that it is used. Reinstate code assigning to said variable -
7493 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7494 Rationalize code using "param_type".
7495
7496 2003-04-22 Andrew Cagney <cagney@redhat.com>
7497
7498 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7499 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7500 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7501 to DEPRECATED_PUSH_RETURN_ADDRESS.
7502
7503 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7504
7505 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7506 on the DWARF2 register number prior to fetching a register.
7507
7508 2003-04-22 J. Brobecker <brobecker@gnat.com>
7509
7510 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7511 Update all the tests using SOFT_FLOAT considering the fact that
7512 this macro was always set to 0.
7513 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7514 considering the fact that this macro was always set to 0.
7515 * hppa-tdep.h (hppa_store_return_value): Likewise.
7516 (hppa_extract_return_value): Likewise.
7517
7518 2003-04-22 J. Brobecker <brobecker@gnat.com>
7519
7520 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7521 the hppa-pro target only.
7522
7523 2003-04-21 J. Brobecker <brobecker@gnat.com>
7524
7525 Ongoing multi-arch conversion effort for HP/UX:
7526 * config/pa/tm-hppa.h: Move all macro that are no longer
7527 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7528 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7529
7530 2003-04-21 J. Brobecker <brobecker@gnat.com>
7531
7532 * config/pa/tm-hppa.h: Obsolete a section that was only used
7533 for hppa-pro.
7534
7535 2003-04-21 J. Brobecker <brobecker@gnat.com>
7536
7537 Ongoing multi-arch conversion for HP/UX.
7538 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7539 if already defined (allows hppa64 to stay non-multiarched for now).
7540 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7541
7542 2003-04-21 Andrew Cagney <cagney@redhat.com>
7543
7544 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7545
7546 2003-04-21 Andrew Cagney <cagney@redhat.com>
7547
7548 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7549 "i386_num_mmx_regs".
7550
7551 2003-04-21 Andrew Cagney <cagney@redhat.com>
7552
7553 * infcall.c: New file.
7554 * infcall.h: New file.
7555 * valarith.c: Include "infcall.h".
7556 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7557 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7558 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7559 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7560 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7561 (SFILES): Add "infcall.c"
7562 (COMMON_OBS): Add "infcall.o".
7563 (infcall.o): Specify dependencies.
7564 * value.h (call_function_by_hand): Delete declaration.
7565 * inferior.h (run_stack_dummy): Delete declaration.
7566 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7567 (run_stack_dummy): Move to "infcall.c", merged into
7568 call_function_by_hand.
7569 * valops.c (call_function_by_hand): Moved to "infcall.c".
7570 (find_function_addr, value_arg_coerce): Ditto.
7571 (unwindonsignal_p, coerce_float_to_double): Ditto.
7572 (_initialize_valops): Move "set/show coerce-float-to-double", and
7573 "set/show unwindonsignal" commands to "infcall.c".
7574 * v850-tdep.c, target.h: Update comments.
7575 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7576 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7577 (sh64_init_extra_frame_info): Update comments.
7578 * mn10300-tdep.c: Update comments.
7579 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7580 * config/sparc/tm-sparc.h: Update comments.
7581 * breakpoint.h: Update comments.
7582 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7583 * arm-tdep.c: Update comment.
7584
7585 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7586
7587 * i386-tdep.c (i386_num_register_names): New variable.
7588 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7589 (MM0_REGNUM): Remove redundant parentheses in define.
7590 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7591 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7592 i386_mxcsr_regnum_p): Remove redundant parentheses.
7593 (i386_register_name): Use i386_num_register_names.
7594
7595 * i386-tdep.c (i386_extract_return_value,
7596 i386_store_return_value): Correct check for availability of
7597 floating-point registers.
7598
7599 * i386-tdep.c (i386_frame_num_args): Remove function.
7600 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7601
7602 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7603 mmx_regnum_to_fp_regnum. Adjust all callers.
7604
7605 * i386-tdep.c (i386_get_longjmp_target): Use
7606 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7607 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7608 extract_address.
7609
7610 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7611
7612 * core-regset.c: Update comments to reflect reality. Re-order
7613 includes.
7614 (fetch_core_registers): Use switch instead of if. Remove
7615 redundant prototype.
7616
7617 2003-04-18 Jim Blandy <jimb@redhat.com>
7618
7619 * s390-tdep.c (s390_frame_align): New function.
7620 (s390_gdbarch_init): Register it with the gdbarch object.
7621
7622 2003-04-17 Richard Henderson <rth@redhat.com>
7623
7624 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7625
7626 2003-04-17 Michael Snyder <msnyder@redhat.com>
7627 Karen Bennet <bennet@redhat.com>
7628
7629 Committed by Elena Zannoni <ezannoni@redhat.com>
7630 * gdb_gcore.sh: New script to create a core dump of a process.
7631
7632 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7633
7634 * values.c (value_being_returned): Don't fetch the return
7635 value if the return type is void.
7636
7637 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7638
7639 * thread-db.c: Reindented.
7640
7641 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7642
7643 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7644 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7645 as types.
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7672
7673 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7674 the size of ``long double'' to 16, instead of 8.
7675
7676 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7677
7678 * i386-linux-nat.c: Add some whitespace to make things more
7679 readable.
7680 (fetch_register, store_register, fetch_inferior_registers,
7681 store_inferior_registers): Get rid of assignment in if-statement.
7682 (store_register): Fix typo in error message.
7683
7684 2003-04-16 Andrew Cagney <cagney@redhat.com>
7685
7686 * utils.c (xmmalloc): Always allocate something, matches
7687 libiberty/xmalloc's semantics.
7688 (xmrealloc, xmcalloc): Ditto.
7689
7690 2003-04-16 Andrew Cagney <cagney@redhat.com>
7691
7692 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7693 update comments.
7694 (get_frame_type): Initialize unwind and type when needed.
7695 (get_frame_id, frame_register_unwind): Ditto.
7696
7697 2003-04-16 Andrew Cagney <cagney@redhat.com>
7698
7699 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7700 obsolete.
7701 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7702 * sparcl-stub.c: Obsolete file.
7703 * config/sparc/tm-sparclet.h: Obsolete file.
7704 * sparclet-stub.c: Obsolete file.
7705 * sparclet-rom.c: Obsolete file.
7706 * sparcl-tdep.c: Obsolete file.
7707 * config/sparc/tm-sparclite.h: Obsolete file.
7708 * config/sparc/sparclite.mt: Obsolete file.
7709 * config/sparc/sparclet.mt: Obsolete file.
7710 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7711 sparc86x-*-* obsolete.
7712
7713 2003-04-15 David Carlton <carlton@math.stanford.edu>
7714
7715 * Makefile.in (SFILES): Add cp-namespace.c.
7716 (COMMON_OBS): Add cp-namespace.o.
7717 (block.o): Depend on gdb_obstack_h and cp_support_h.
7718 (buildsym.o): Depend on cp_support_h.
7719 (cp-namespace.o): New.
7720 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7721 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7722 (dwarf2read.o): Depend on cp_support_h.
7723 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7724 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7725 processing_current_namespace.
7726 (read_namespace): Update processing_current_namespace; check for
7727 anonymous namespaces.
7728 (dwarf2_name): New function.
7729 (dwarf2_extension): Ditto.
7730 * cp-support.h: Update copyright, contributors.
7731 Add inclusion guards.
7732 Add opaque declaration for structs obstack, block, symbol.
7733 (struct using_direct): New struct.
7734 Add declarations for cp_find_first_component,
7735 cp_entire_prefix_len, processing_has_namespace_info,
7736 processing_current_namespace, cp_is_anonymous,
7737 cp_add_using_directive, cp_initialize_namespace,
7738 cp_finalize_namespace, cp_set_block_scope,
7739 cp_scan_for_anonymous_namespaces.
7740 * cp-namespace.c: New file.
7741 * cp-support.c: Update copyright.
7742 Include ctype.h, gdb_assert.h, gdbcmd.h.
7743 New variable maint_cplus_cmd_list.
7744 (cp_find_first_component): New function.
7745 (cp_entire_prefix_len, maint_cplus_command)
7746 (first_component_command, _initialize_cp_support): Ditto.
7747 * buildsym.c: Include cp-support.h.
7748 New variable using_list.
7749 (add_symbol_to_list): Check for anonymous namespaces.
7750 (finish_block): Set block's scope.
7751 (start_symtab): Initialize C++ namespace support.
7752 (end_symtab): Finalize C++ namespace support.
7753 * block.h: Add opaque declarations for structs
7754 block_namespace_info, using_direct, and obstack.
7755 Add declarations for block_set_scope and block_set_using.
7756 (struct block): Add 'language_specific' member.
7757 (BLOCK_NAMESPACE): New macro.
7758 * block.c: Include gdb_obstack.h and cp-support.h.
7759 (struct block_namespace_info): New struct.
7760 (block_set_scope): New function.
7761 (block_set_using, block_initialize_namespace): Ditto.
7762
7763 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7764
7765 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7766 (locate_base): Return early if there aren't any link map offsets.
7767 (svr4_solib_create_inferior_hook): Warn if shared library support
7768 is unavailable.
7769
7770 2003-04-14 David Carlton <carlton@math.stanford.edu>
7771
7772 * symtab.c (symbol_set_names): Add prefix when storing Java names
7773 in hash table. Fix for PR java/1039.
7774
7775 2003-04-14 David Carlton <carlton@math.stanford.edu>
7776
7777 * symtab.c (symbol_set_names): Rename 'name' arg to
7778 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7779 * symtab.h: Change 'name' argument in declaration of
7780 symbol_set_names to 'linkage_name'.
7781 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7782
7783 2003-04-14 Andrew Cagney <cagney@redhat.com>
7784
7785 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7786 return the fully sign-extended register value.
7787 (get_frame_pointer): Ditto.
7788 (mips_pop_frame): Initialize "proc_desc" after checking for a
7789 dummy frame.
7790
7791 2003-04-14 Andrew Cagney <cagney@redhat.com>
7792
7793 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7794 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7795 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7796 (mips_push_register): Delete function.
7797 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7798 PUSH_FP_REGNUM.
7799
7800 2003-04-14 Jim Blandy <jimb@redhat.com>
7801
7802 * symmisc.c: #include "gdb_regex.h".
7803 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7804 functions.
7805 * maint.c (maintenance_list_command): New function.
7806 (_initialize_maint_cmds): Register the above as commands.
7807 * symtab.h (maintenance_list_symtabs,
7808 maintenance_list_psymtabs): New declarations.
7809 * cli/cli-cmds.c (maintenancelistlist): New variable.
7810 (init_cmd_lists): Initialize it.
7811 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7812 * gdbcmd.h (maintenancelistlist): New declaration.
7813 * Makefile.in (symmisc.o): Update dependencies.
7814
7815 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7816
7817 * s390-nat.c: Include asm/types.h for addr_t.
7818
7819 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7820
7821 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7822 actually incoming type.
7823
7824 2003-04-13 Andrew Cagney <cagney@redhat.com>
7825
7826 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7827 get_next_frame and get_frame_saved_regs.
7828
7829 2003-04-13 Andrew Cagney <cagney@redhat.com>
7830
7831 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7832 of gdbarch_num_regs.
7833
7834 2003-04-13 Andrew Cagney <cagney@redhat.com>
7835
7836 * frame.h: Mention what replaced what in "struct frame_info".
7837 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7838 deprecated_update_frame_base_hack and
7839 deprecated_update_frame_pc_hack.
7840 * hppa-tdep.c: Ditto.
7841
7842 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7843
7844 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7845 to read_reg and update its comment. Remove regnum member.
7846 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7847 Don't call read_reg when setting in_reg. Call read_reg to get
7848 the frame base if it's in a register. Return the register number
7849 on the stack instead of in the context. Remove extra arguments
7850 to read_reg.
7851 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7852 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7853 the register number on the expression stack.
7854 (needs_frame_read_reg): Remove extra arguments.
7855
7856 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7857
7858 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7859 made non-static.
7860 (execute_stack_op): All callers updated.
7861 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7862 * dwarf2loc.c (find_location_expression): New function.
7863 (dwarf_expr_frame_base): Call it.
7864 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7865 (dwarf2_tracepoint_var_ref): New function, broken out from
7866 locexpr_tracepoint_var_ref.
7867 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7868 Make static.
7869 (loclist_read_variable, loclist_read_needs_frame): New functions.
7870 (loclist_describe_location, loclist_tracepoint_var_ref): New
7871 functions.
7872 (dwarf2_loclist_funcs): New struct location_funcs.
7873 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7874 (struct dwarf2_locexpr_baton): Add comments.
7875 (dwarf2_loclist_funcs): New extern.
7876 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7877 base_address and base_known.
7878 (dwarf_loc_buffer): New variable.
7879 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7880 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7881 (dwarf2_has_info): Initialize dwarf_loc_offset.
7882 (dwarf2_build_psymtabs): Read in .debug_loc.
7883 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7884 DWARF_LOC_SIZE.
7885 (psymtab_to_symtab_1): Likewise. Move base address calculation
7886 here, from...
7887 (dwarf2_get_pc_bounds): ... here. Use the base address from
7888 cu_header.
7889 (dwarf2_symbol_mark_computed): Handle location lists.
7890
7891 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7892
7893 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7894 if the linkage name demangled successfully.
7895
7896 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7897
7898 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7899 disassmbly_flavour): Removed.
7900
7901 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7902
7903 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7904
7905 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7906
7907 2003-04-12 Andrew Cagney <cagney@redhat.com>
7908
7909 * frame.h (struct frame_info): Move definition from here ...
7910 * frame.c (struct frame_info): ... to here.
7911
7912 2003-04-12 Andrew Cagney <cagney@redhat.com>
7913
7914 * gdbthread.h (save_infrun_state): Delete parameter
7915 "prev_func_start".
7916 (struct thread_info): Delete field "prev_func_start".
7917 (load_infrun_state): Ditto.
7918 * thread.c (load_infrun_state, save_infrun_state): Update.
7919 * infrun.c (prev_func_start): Delete variable.
7920 (context_switch, init_wait_for_inferior): Update.
7921 (stop_stepping, keep_going): Update.
7922
7923 2003-04-12 Andrew Cagney <cagney@redhat.com>
7924
7925 * gdbarch.sh: Add missing opaque declarations.
7926 * gdbarch.h: Regnerate.
7927 * symtab.h: Add missing opaque declarations.
7928 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7929 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7930 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7931 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7932 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7933 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7934 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7935 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7936 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7937 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7938 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7939 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7940 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7941
7942 2003-04-11 Andrew Cagney <cagney@redhat.com>
7943
7944 * frame.c (get_frame_id): Return this frame's "id".
7945 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7946 function start.
7947 (legacy_saved_regs_this_id): Replace function body with
7948 internal-error.
7949 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7950 FRAME_OBSTACK_ZALLOC.
7951 (create_new_frame): Mark the frame ID as valid.
7952
7953 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7954
7955 * Makefile.in (libbfd_h): Added missing setting.
7956 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7957 according to the selected ABI.
7958
7959 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7960
7961 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7962
7963 2003-04-11 Andrew Cagney <cagney@redhat.com>
7964
7965 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7966 SAVED_PC_AFTER_CALL.
7967 * gdbarch.h, gdbarch.c: Regenerate.
7968 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7969 * x86-64-tdep.c (x86_64_init_abi): Update.
7970 * vax-tdep.c (vax_gdbarch_init): Update.
7971 * v850-tdep.c (v850_gdbarch_init): Update.
7972 * sparc-tdep.c (sparc_gdbarch_init): Update.
7973 * sh-tdep.c (sh_gdbarch_init): Update.
7974 * s390-tdep.c (s390_gdbarch_init): Update.
7975 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7976 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7977 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7978 * mips-tdep.c (mips_gdbarch_init): Update.
7979 * mcore-tdep.c (mcore_gdbarch_init): Update.
7980 * m68k-tdep.c (m68k_gdbarch_init): Update.
7981 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7982 * ia64-tdep.c (ia64_gdbarch_init): Update.
7983 (ia64_saved_pc_after_call): Update declaration.
7984 * i386ly-tdep.c (i386lynx_init_abi): Update.
7985 * i386-tdep.c (i386_gdbarch_init): Update.
7986 * hppa-tdep.c (hppa_gdbarch_init): Update.
7987 * h8300-tdep.c (h8300_gdbarch_init): Update.
7988 * frv-tdep.c (frv_gdbarch_init): Update.
7989 * cris-tdep.c (cris_gdbarch_init): Update.
7990 * avr-tdep.c (avr_gdbarch_init): Update.
7991 * arm-tdep.c (arm_gdbarch_init): Update.
7992 * alpha-tdep.c (alpha_gdbarch_init): Update.
7993 * ns32knbsd-nat.c (frame_num_args): Update.
7994 * ns32k-tdep.c (umax_frame_num_args): Update.
7995 * mips-tdep.c (mips_init_frame_pc_first): Update.
7996 * infrun.c (step_over_function): Update.
7997 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7998 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7999 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8000 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8001 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8002 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8003 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8004 * arch-utils.c (init_frame_pc_default): Update.
8005 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8006 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8007 declaration.
8008
8009 2003-04-11 Andrew Cagney <cagney@redhat.com>
8010
8011 * i387-tdep.c: Update copyright.
8012 (i387_to_double): Delete function.
8013 (double_to_i387): Delete function.
8014
8015 2003-04-10 Andrew Cagney <cagney@redhat.com>
8016
8017 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8018 frame's function's address. Simplify.
8019 (d10v_frame_unwind_cache): Check that the frame's function is
8020 non-zero.
8021
8022 2003-04-10 Jim Blandy <jimb@redhat.com>
8023
8024 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8025 call to set_gdbarch_deprecated_push_arguments.
8026
8027 2003-04-10 Andrew Cagney <cagney@redhat.com>
8028
8029 * frame.c (fprint_frame_id): New function.
8030 (fprint_frame_type, fprint_frame): New function.
8031 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8032 (create_sentinel_frame, get_frame_id): Ditto.
8033 (frame_id_p, frame_id_eq): Ditto.
8034 (frame_id_inner, create_new_frame): Ditto.
8035 (legacy_get_prev_frame, get_prev_frame): Ditto.
8036 (deprecated_update_frame_pc_hack): Ditto.
8037 (frame_register_unwind): Ditto.
8038 (deprecated_update_frame_base_hack): Ditto.
8039
8040 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8041
8042 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8043 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8044 frame_chain function.
8045 * Makefile.in: Add dependencies due to above change.
8046
8047 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8048
8049 * blockframe.c (legacy_frame_chain_valid): Move call to
8050 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8051 inside_entry_file.
8052
8053 2003-04-09 Andrew Cagney <cagney@redhat.com>
8054
8055 * frame.h (struct frame_id): Replace "pc" and "base" with
8056 "stack_addr" and "code_addr". Update comments.
8057 (frame_id_build): Update parameter names and comment.
8058 (struct frame_info): Replace "id_p" and "id" with "this_id".
8059 * dummy-frame.c (dummy_frame_this_id): Update.
8060 * breakpoint.c (print_one_breakpoint): Update.
8061 * frame.c (get_frame_id): Update.
8062 (get_frame_base, frame_id_build): Update.
8063 (create_sentinel_frame, legacy_get_prev_frame): Update.
8064 (deprecated_update_frame_base_hack): Update.
8065 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8066 (frame_id_inner): Ditto.
8067
8068 2003-04-09 Andrew Cagney <cagney@redhat.com>
8069
8070 * defs.h (gdb_print_host_address): Make "addr" parameter a
8071 pointer constant.
8072 * utils.c (gdb_print_host_address): Update.
8073
8074 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8075
8076 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8077 register number for R0 is 0.
8078
8079 2003-04-09 J. Brobecker <brobecker@gnat.com>
8080
8081 * frame.h (struct gdbarch): Add opaque structure definition
8082 to avoid a compilation warning on LynxOS 4.0.
8083
8084 2003-04-09 Andrew Cagney <cagney@redhat.com>
8085
8086 * frame.h (struct frame_info): Delete field "pc". Replace
8087 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8088 structure.
8089 * frame.c (frame_pc_unwind): Update.
8090 (create_sentinel_frame): Do not set "pc".
8091 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8092 (get_frame_pc): Call frame_pc_unwind.
8093 (deprecated_update_frame_pc_hack): Update.
8094 (create_new_frame): Use "pc" not "->pc".
8095
8096 2003-04-09 Andrew Cagney <cagney@redhat.com>
8097
8098 * frame.c (get_frame_id): Eliminate code updating "frame".
8099 (legacy_get_prev_frame): Ditto.
8100 (get_frame_base): Return id.base directly.
8101 (deprecated_update_frame_base_hack): Update "id.base".
8102 * frame.h (struct frame_info): Delete field "frame".
8103
8104 2003-04-09 Andrew Cagney <cagney@redhat.com>
8105
8106 * NEWS: Mention that the "Sequent family" is obsolete.
8107 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8108 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8109 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8110 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8111 * config/i386/tm-ptx4.h: Obsolete file.
8112 * config/i386/tm-ptx.h: Obsolete file.
8113 * symm-tdep.c: Obsolete file.
8114 * config/i386/symmetry.mt: Obsolete file.
8115 * config/i386/tm-symmetry.h: Obsolete file.
8116 * symm-nat.c: Obsolete file.
8117 * config/i386/nm-symmetry.h: Obsolete file.
8118 * config/i386/xm-symmetry.h: Obsolete file.
8119 * config/i386/symmetry.mh: Obsolete file.
8120 * config/i386/nm-ptx4.h: Obsolete file.
8121 * config/i386/ptx4.mh: Obsolete file.
8122 * config/i386/ptx.mt: Obsolete file.
8123 * config/i386/ptx.mh: Obsolete file.
8124 * config/i386/xm-ptx4.h: Obsolete file.
8125 * config/i386/xm-ptx.h: Obsolete file.
8126
8127 2003-04-09 Andrew Cagney <cagney@redhat.com>
8128
8129 Obsolete mips*-*-mach3*.
8130 * NEWS: Mention that mips*-*-mach3* is obsolete.
8131 * m3-nat.c: Obsolete file.
8132 * config/nm-m3.h: Obsolete file.
8133 * config/mips/tm-mipsm3.h: Obsolete file.
8134 * config/mips/mipsm3.mt: Obsolete file.
8135 * config/mips/mipsm3.mh: Obsolete file.
8136 * config/mips/xm-mipsm3.h: Obsolete file.
8137 * mipsm3-nat.c: Obsolete file.
8138 * configure.host: Obsolete mips-dec-mach3*.
8139 * configure.tgt: Obsolete mips*-*-mach3*.
8140
8141 2003-04-09 Andrew Cagney <cagney@redhat.com>
8142
8143 * doublest.h: Update copyright.
8144 (deprecated_store_floating, deprecated_extract_floating): Rename
8145 store_floating and extract_floating. Update comments.
8146 * doublest.c: Update copyright.
8147 (extract_floating_by_length): Replace extract_floating.
8148 (store_floating_by_length): Replace store_floating.
8149 (deprecated_extract_floating): New function.
8150 (deprecated_store_floating): New function.
8151 (extract_typed_floating): Call extract_floating_by_length.
8152 (store_typed_floating): Call store_floating_by_length.
8153 * x86-64-tdep.c (x86_64_store_return_value): Update.
8154 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8155 (sh64_extract_return_value): Update.
8156 (sh_sh4_register_convert_to_virtual): Update.
8157 (sh_sh64_register_convert_to_virtual): Update.
8158 (sh_sh4_register_convert_to_raw): Update.
8159 (sh_sh64_register_convert_to_raw): Update.
8160 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8161 (rs6000_register_convert_to_raw): Update.
8162 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8163 (ia64_register_convert_to_raw): Update.
8164 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8165 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8166 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8167 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8168 (alpha_register_convert_to_raw): Update.
8169
8170 2003-04-08 Andrew Cagney <cagney@redhat.com>
8171
8172 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8173 * gdbarch.h, gdbarch.c: Re-generate.
8174 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8175 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8176 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8177 conditionally, use frame_pc_unwind as an alternative. Add
8178 comments.
8179 * arch-utils.c (init_frame_pc_default): Only call
8180 SAVED_PC_AFTER_CALL when available.
8181
8182 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8183
8184 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8185 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8186 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8187 (start_remote): Ditto.
8188 (handle_inferior_event): Ditto.
8189 (save_inferior_status): Ditto.
8190 (restore_inferior_status): Ditto.
8191 * infcmd.c (attach_command): Ditto.
8192 * fork-child.c (startup_inferior): Ditto.
8193 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8194 * alpha-tdep.c (heuristic_proc_start): Ditto.
8195 * mips-tdep.c (heuristic_proc_start): Ditto.
8196 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8197 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8198 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8199 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8200 * remote-vx.c (vx_create_inferior): Ditto.
8201
8202 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8203
8204 * infrun.c (stop_soon_quietly): Make it an enum, to better
8205 override the default behavior of handle_inferior_event.
8206 (clear_proceed_status): Update uses of stop_soon_quietly to
8207 reflect that it is now an enum.
8208 (start_remote): Ditto.
8209 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8210 is set to handle the new GNU/Linux kernel behavior for
8211 attach/sigstop. Update uses of stop_soon_quietly.
8212 * inferior.h (enum stop_kind): New enum.
8213 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8214 Reset normal handle_inferior_event behavior, afterwards.
8215 * fork-child.c (startup_inferior): Update.
8216 * alpha-tdep.c (heuristic_proc_start): Update.
8217 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8218 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8219 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8220 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8221 * remote-vx.c (vx_create_inferior): Update.
8222 * mips-tdep.c (heuristic_proc_start): Update.
8223
8224 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8225
8226 * disasm.c (dump_insns): Move variables inside loop, or they will
8227 be freed more than once, causing wild memory corruptions.
8228 (gdb_disassembly): Look for the substring "-thread",
8229 instead of "-threads" in the target name, to make sure to find
8230 the 'multi-thread' target. Also, make sure we do the right thing
8231 with the "core" target.
8232
8233 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8234
8235 * mips-tdep.c (mips_print_fp_register): New function, created from
8236 do_fp_register_row(). Registers are now (also) printed as hex.
8237 Only one register is printed per row.
8238 (mips_print_register, do_fp_register_row): Print floating point
8239 registers with mips_print_fp_register().
8240
8241 2003-04-06 Andrew Cagney <cagney@redhat.com>
8242
8243 * valprint.h (inspect_it): Add extern declaration.
8244 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8245 (selectors_info, classes_info): Ditto.
8246 (find_objc_msgcall): Fix indentation.
8247 (objc_printstr): Delete extern declarations.
8248
8249 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8250
8251 2003-04-06 Andrew Cagney <cagney@redhat.com>
8252
8253 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8254 Update comment.
8255 * frame.c (legacy_saved_regs_this_id): Update.
8256 (legacy_get_prev_frame): Update.
8257 * xstormy16-tdep.c: Update comment.
8258 * sparc-tdep.c (sparc_frame_chain): Update comment.
8259 * blockframe.c (legacy_frame_chain_valid): Update.
8260
8261 2003-04-06 Andrew Cagney <cagney@redhat.com>
8262
8263 * valprint.c (val_print_type_code_int): Delete #ifdef
8264 PRINT_TYPELESS_INTEGER code.
8265
8266 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8267 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8268 multi-arch definition.
8269 * gdbarch.h: Re-generate.
8270
8271 2003-04-05 Andrew Cagney <cagney@redhat.com>
8272
8273 Eliminate FRAME_FIND_SAVED_REGS.
8274 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8275 Change FSR parameter to a pointer.
8276 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8277 Assume FSR parameter is a pointer.
8278 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8279 Make fsr a pointer.
8280 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8281 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8282 saved_regs a pointer.
8283 (hppa_frame_saved_pc): Ditto.
8284 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8285 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8286 pointer.
8287 (restore_pc_queue): Make fsr a pointer.
8288 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8289 (hppa_frame_chain): Make saved_regs a pointer, call
8290 hppa_frame_init_saved_regs.
8291 * sparc-tdep.c: Include "gdb_assert.h".
8292 (sparc_frame_find_saved_regs): Replace internal_error with
8293 gdb_assert.
8294 * remote-vxsparc.c (vx_read_register): Delete reference to
8295 FRAME_FIND_SAVED_REGS.
8296 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8297 * gdbarch.h: Regenerate.
8298 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8299 (deprecated_get_frame_saved_regs): Delete declaration.
8300 (struct frame_saved_regs): Delete definition.
8301 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8302 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8303 (hppa_frame_find_saved_regs): Delete declaration.
8304 (FRAME_FIND_SAVED_REGS): Delete macro.
8305 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8306 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8307 FRAME_FIND_SAVED_REGS in comment.
8308
8309 2003-04-05 Andrew Cagney <cagney@redhat.com>
8310
8311 * frame.c (frame_func_unwind, get_frame_func): New functions.
8312 * frame.h (get_frame_func, frame_func_unwind): Declare.
8313 (struct frame_info): Add field "prev_func" for caching the
8314 previous frame's function address.
8315 * arm-tdep.c (arm_frameless_function_invocation): Combine
8316 get_pc_function_start and get_frame_pc into get_frame_func.
8317 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8318 (sh64_nofp_frame_init_saved_regs): Ditto.
8319 * s390-tdep.c (s390_function_start): Ditto.
8320 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8321 (rs6000_frameless_function_invocation): Ditto.
8322 (rs6000_frame_saved_pc): Ditto.
8323 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8324 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8325 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8326 (i386_frame_init_saved_regs): Ditto.
8327 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8328 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8329 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8330 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8331 * blockframe.c (frameless_look_for_prologue): Ditto.
8332
8333 2003-04-05 Andrew Cagney <cagney@redhat.com>
8334
8335 * frame.c (legacy_get_prev_frame): Link prev to next at the
8336 function start. Update comments.
8337
8338 2003-04-05 Andrew Cagney <cagney@redhat.com>
8339
8340 * frame.c (get_frame_id): Update comment.
8341 (legacy_get_prev_frame): Update comment.
8342 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8343 * gdbarch.h: Regenerate.
8344 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8345 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8346
8347 2003-04-05 Andrew Cagney <cagney@redhat.com>
8348
8349 * stack.c (print_frame_info): Use get_frame_pc.
8350
8351 2003-04-04 Andrew Cagney <cagney@redhat.com>
8352
8353 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8354 the frame's type from the unwinder.
8355 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8356 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8357 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8358 (get_frame_base_address): Use get_frame_type.
8359 (get_frame_locals_address, get_frame_args_address): Ditto.
8360 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8361 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8362 (struct frame_info): Add comment explaining why the frame contains
8363 a "type" field.
8364 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8365 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8366 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8367 NORMAL_FRAME.
8368 * frame-unwind.h: Include "frame.h".
8369 (struct frame_unwind): Add "type" field.
8370 * Makefile.in (frame_unwind_h): Add $(frame_h).
8371
8372 2003-04-04 Andrew Cagney <cagney@redhat.com>
8373
8374 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8375 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8376 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8377 get_frame_base.
8378 (d10v_unwind_dummy_id): Use frame_id_build.
8379 * frame.c (find_frame_sal): Use get_frame_pc.
8380 (create_new_frame): Use deprecated_update_frame_pc_hack and
8381 deprecated_update_frame_base_hack.
8382 (create_sentinel_frame): Add comment about ->pc going away.
8383 (get_prev_frame): Add comment about ->pc going away.
8384 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8385 frame_id_build, deprecated_update_frame_pc_hack and
8386 deprecated_update_frame_base_hack.
8387 (select_frame): Use get_frame_pc.
8388 (legacy_saved_regs_this_id): Use frame_id_build.
8389
8390 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8391
8392 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8393 signed integer case.
8394 (classify_argument): Handle enumerations and references.
8395
8396 2003-04-04 Andrew Cagney <cagney@redhat.com>
8397
8398 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8399 ID to NULL.
8400
8401 2003-04-01 Adam Fedor <fedor@gnu.org>
8402
8403 * gdb/objc-lang.c (selectors_info): Replace calls to
8404 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8405 SYMBOL_NATURAL_NAME.
8406 (classes_info, find_methods): Likewise.
8407
8408 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8409
8410 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8411 ``mach'' to the value determined by bfd_default_set_arch_mach().
8412
8413 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8414
8415 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8416 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8417 (mi-cmd-file.o): Update dependencies.
8418
8419 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8420
8421 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8422 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8423
8424 2003-04-01 Adam Fedor <fedor@gnu.org>
8425
8426 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8427 * language.h (struct language_defn): Add la_demangle.
8428 (language_demangle): Declare.
8429 * language.c (language_demangle): New function.
8430 (unk_lang_demangle): Likewise.
8431 (unknown_language_defn, auto_language_defn, local_language_defn):
8432 Add ukn_lang_demangle.
8433 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8434 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8435 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8436 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8437 * jv-lang.c (java_demangle): New function
8438 (java_language_defn): Use it for la_demangle element.
8439 * objc-lang.c (objc_demangle): Add options argument
8440 (objc_language_defn): Use objc_demangle for la_demangle element.
8441 * maint.c (maintenance_demangle): Replace switch with
8442 call to language_demangle.
8443 * utils.c (fprintf_symbol_filtered): Likewise.
8444
8445 2003-04-01 Andrew Cagney <cagney@redhat.com>
8446
8447 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8448 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8449 PRINT_TYPELESS_INTEGER.
8450 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8451 PUSH_RETURN_ADDRESS.
8452
8453 2003-04-01 Andrew Cagney <cagney@redhat.com>
8454
8455 * Makefile.in (d10v-tdep.o): Update dependencies.
8456 * d10v-tdep.c: Include "frame-base.h".
8457 (d10v_frame_unwind): Make constant.
8458 (d10v_frame_base_address): New function.
8459 (d10v_frame_base): New variable.
8460 (d10v_gdbarch_init): Set frame_base default.
8461 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8462 comment for base.
8463 (d10v_frame_unwind_cache): Set and use "prev_sp".
8464 (d10v_frame_this_id): Use the previous frame's inner most stack
8465 address and this frame's func address for the frame ID. Use
8466 frame_id_build. Don't analyze beyond the current instruction.
8467
8468 2003-04-01 Andrew Cagney <cagney@redhat.com>
8469
8470 * frame.h (get_frame_locals_address, get_frame_args_address):
8471 Refer to the base address, instead of the address of the first
8472 local or parameter.
8473
8474 2003-04-01 Andrew Cagney <cagney@redhat.com>
8475
8476 Add frame debug info addresses:
8477 * frame-base.c: New file.
8478 * frame-base.h: New file.
8479 * frame.h (struct frame_base): Add opaque declaration.
8480 (get_frame_base): Update comment.
8481 (get_frame_base_address): Declare.
8482 (get_frame_locals_address): Declare.
8483 (get_frame_args_address): Declare.
8484 (struct frame_info): Add "base" and "base_cache". Update
8485 comments on the unwinder.
8486 * frame.c: Include "frame-base.h".
8487 (get_frame_locals_address): New function.
8488 (get_frame_base_address): New function.
8489 (get_frame_args_address): New function.
8490 * findvar.c (read_var_value): Use get_frame_locals_address and
8491 get_frame_args_address.
8492 * stack.c (frame_info): Use get_frame_locals_address and
8493 get_frame_args_address.
8494 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8495 moved to "frame-base.c".
8496 * printcmd.c (print_frame_nameless_args): Ditto.
8497 * symtab.h (address_class): Update comments.
8498 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8499 get_frame_base_address.
8500 * dwarf2expr.c (execute_stack_op): Ditto.
8501 * Makefile.in (frame_base_h): Define.
8502 (frame.o): Update dependencies.
8503 (frame-base.o): Add dependencies.
8504 (SFILES): Add frame-base.c.
8505 (COMMON_OBS): Add frame-base.o.
8506
8507 2003-04-01 Andrew Cagney <cagney@redhat.com>
8508
8509 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8510 CALL_DUMMY_LENGTH): Ditto.
8511 * gdbarch.c: Re-generate.
8512 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8513 (CALL_DUMMY_LENGTH): Delete macro.
8514 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8515 * arm-tdep.c (arm_gdbarch_init): Ditto.
8516 * avr-tdep.c (avr_gdbarch_init): Ditto.
8517 * cris-tdep.c (cris_gdbarch_init): Ditto.
8518 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8519 * frv-tdep.c (frv_gdbarch_init): Ditto.
8520 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8521 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8522 * i386-tdep.c (i386_gdbarch_init): Ditto.
8523 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8524 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8525 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8526 * mips-tdep.c (mips_gdbarch_init): Ditto.
8527 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8528 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8529 * s390-tdep.c (s390_gdbarch_init): Ditto.
8530 * sh-tdep.c (sh_gdbarch_init): Ditto.
8531 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8532 * v850-tdep.c (v850_gdbarch_init): Ditto.
8533 * vax-tdep.c (vax_gdbarch_init): Ditto.
8534 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8535
8536 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8537
8538 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8539
8540 2003-04-01 Andrew Cagney <cagney@redhat.com>
8541
8542 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8543 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8544 * gdbarch.h, gdbarch.c: Re-generate.
8545 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8546 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8547 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8548 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8549 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8550 * infcmd.c (run_stack_dummy): Simplify assuming
8551 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8552 * infrun.c (handle_inferior_event): Ditto.
8553 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8554 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8555 * arm-tdep.c (arm_gdbarch_init): Ditto.
8556 * avr-tdep.c (avr_gdbarch_init): Ditto.
8557 * cris-tdep.c (cris_gdbarch_init): Ditto.
8558 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8559 * frv-tdep.c (frv_gdbarch_init): Ditto.
8560 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8561 * i386-tdep.c (i386_gdbarch_init): Ditto.
8562 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8563 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8564 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8565 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8566 * mips-tdep.c (mips_gdbarch_init): Ditto.
8567 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8568 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8569 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8570 * s390-tdep.c (s390_gdbarch_init): Ditto.
8571 * sh-tdep.c (sh_gdbarch_init): Ditto.
8572 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8573 * v850-tdep.c (v850_gdbarch_init): Ditto.
8574 * vax-tdep.c (vax_gdbarch_init): Ditto.
8575 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8576
8577 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8578
8579 * symfile.c (symfile_relocate_debug_section): Update call to
8580 bfd_simple_get_relocated_section_contents.
8581
8582 2003-03-31 Andrew Cagney <cagney@redhat.com>
8583
8584 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8585 * gdbarch.h, gdbarch.c: Regenerate.
8586 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8587 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8588 available.
8589 * frame.h (generic_fix_call_dummy): Delete declaration.
8590 * dummy-frame.h: Update comment.
8591 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8592 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8593 fix_call_dummy.
8594 * sh-tdep.c (sh_gdbarch_init): Ditto.
8595 * s390-tdep.c (s390_gdbarch_init): Ditto.
8596 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8597 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8598 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8599 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8600 * i386-tdep.c (i386_gdbarch_init): Ditto.
8601 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8602 * frv-tdep.c (frv_gdbarch_init): Ditto.
8603 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8604 * cris-tdep.c (cris_gdbarch_init): Ditto.
8605 * avr-tdep.c (avr_gdbarch_init): Ditto.
8606 * arm-tdep.c (arm_gdbarch_init): Ditto.
8607
8608 2003-03-31 J. Brobecker <brobecker@gnat.com>
8609
8610 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8611 (INIT_FRAME_AP): Likewise.
8612 (EXTRA_FRAME_INFO): Likewise.
8613
8614 2003-03-31 Andrew Cagney <cagney@redhat.com>
8615
8616 * gdbarch.sh: Include "symfile.h".
8617 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8618 * gdbarch.h, gdbarch.c: Re-generate.
8619 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8620 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8621 call_dummy_address, the default is at entry_point_address.
8622 * v850-tdep.c (v850_gdbarch_init): Ditto.
8623 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8624 * sh-tdep.c (sh_gdbarch_init): Ditto.
8625 * s390-tdep.c (s390_gdbarch_init): Ditto.
8626 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8627 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8628 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8629 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8630 * i386-tdep.c (i386_gdbarch_init): Ditto.
8631 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8632 * frv-tdep.c (frv_gdbarch_init): Ditto.
8633 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8634 * cris-tdep.c (cris_gdbarch_init): Ditto.
8635 * arm-tdep.c (arm_gdbarch_init): Ditto.
8636
8637 2003-03-31 Andrew Cagney <cagney@redhat.com>
8638
8639 * gdbarch.sh (CALL_DUMMY_P): Delete.
8640 * gdbarch.h, gdbarch.c: Re-generate.
8641 * inferior.h (CALL_DUMMY_P): Delete macro.
8642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8643 * vax-tdep.c (vax_gdbarch_init): Update.
8644 * v850-tdep.c (v850_gdbarch_init): Update.
8645 * sparc-tdep.c (sparc_gdbarch_init): Update.
8646 * sh-tdep.c (sh_gdbarch_init): Update.
8647 * s390-tdep.c (s390_gdbarch_init): Update.
8648 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8649 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8650 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8651 * mips-tdep.c (mips_gdbarch_init): Update.
8652 * mcore-tdep.c (mcore_gdbarch_init): Update.
8653 * m68k-tdep.c (m68k_gdbarch_init): Update.
8654 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8655 * ia64-tdep.c (ia64_gdbarch_init): Update.
8656 * i386-tdep.c (i386_gdbarch_init): Update.
8657 * h8300-tdep.c (h8300_gdbarch_init): Update.
8658 * frv-tdep.c (frv_gdbarch_init): Update.
8659 * d10v-tdep.c (d10v_gdbarch_init): Update.
8660 * cris-tdep.c (cris_gdbarch_init): Update.
8661 * breakpoint.c (deprecated_frame_in_dummy): Update.
8662 * avr-tdep.c (avr_gdbarch_init): Update.
8663 * alpha-tdep.c (alpha_gdbarch_init): Update.
8664 * arm-tdep.c (arm_gdbarch_init): Update.
8665 * dummy-frame.c (dummy_frame_this_id): Update comments.
8666 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8667 * frame.c (legacy_get_prev_frame): Ditto.
8668 * valops.c (call_function_by_hand): Delete function.
8669 (hand_function_call): Rename to call_function_by_hand
8670
8671 2003-03-30 Andrew Cagney <cagney@redhat.com>
8672
8673 2002-11-10 Klee Dienes <kdienes@apple.com>
8674 * value.h (struct value): Update comment.
8675
8676 2003-03-30 Andrew Cagney <cagney@redhat.com>
8677
8678 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8679 D10V_FP_REGNUM.
8680 (d10v_gdbarch_init): Do not set fp_regnum.
8681
8682 * frame.c (get_frame_base): Force ID initialization.
8683 (get_prev_frame): Move computation of the frame ID from here ...
8684 (get_frame_id): ... to here.
8685 (legacy_get_prev_frame): Mark the frame ID as valid.
8686 * frame.h (struct frame_info): Add field "id_p".
8687
8688 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8689
8690 * i386-tdep.c (i386_store_struct_return): Removed.
8691 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8692
8693 2003-03-30 Andrew Cagney <cagney@redhat.com>
8694
8695 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8696 * gdbarch.h, gdbarch.c: Regenerate.
8697 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8698 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8699 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8700 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8701 * i386-tdep.c (i386_gdbarch_init): Ditto.
8702 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8703 * cris-tdep.c (cris_gdbarch_init): Ditto.
8704 * vax-tdep.c (vax_gdbarch_init): Ditto.
8705 * s390-tdep.c (s390_gdbarch_init): Ditto.
8706 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8707 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8708 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8709 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8710 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8711 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8712 * sparc-tdep.c (sparc_gdbarch_init): Update.
8713 * sh-tdep.c (sh_gdbarch_init): Update.
8714 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8715 * mips-tdep.c (mips_gdbarch_init): Update.
8716 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8717 * ia64-tdep.c (ia64_gdbarch_init): Update.
8718 * frv-tdep.c (frv_gdbarch_init): Update.
8719 * avr-tdep.c (avr_gdbarch_init): Update.
8720 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8721 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8722 instead of when push_dummy_call is not available.
8723
8724 2003-03-30 Andrew Cagney <cagney@redhat.com>
8725
8726 * infttrace.c: Include "gdbthread.h".
8727 (parent_attach_all): Fix function signature.
8728 (call_ptrace): Update call.
8729 * Makefile.in (infttrace.o): Update dependencies.
8730
8731 2003-03-30 Andrew Cagney <cagney@redhat.com>
8732
8733 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8734 PUSH_RETURN_ADDRESS.
8735 * gdbarch.h, gdbarch.c: Regenerate.
8736 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8737 * x86-64-tdep.c (x86_64_init_abi): Update.
8738 * v850-tdep.c (v850_gdbarch_init): Update.
8739 * sparc-tdep.c (sparc_gdbarch_init): Update.
8740 * sh-tdep.c (sh_gdbarch_init): Update.
8741 * s390-tdep.c (s390_gdbarch_init): Update.
8742 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8743 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8744 * mips-tdep.c (mips_gdbarch_init): Update.
8745 * mcore-tdep.c (mcore_gdbarch_init): Update.
8746 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8747 * ia64-tdep.c (ia64_gdbarch_init): Update.
8748 * i386-tdep.c (i386_gdbarch_init): Update.
8749 * h8300-tdep.c (h8300_gdbarch_init): Update.
8750 * frv-tdep.c (frv_gdbarch_init): Update.
8751 * cris-tdep.c (cris_gdbarch_init): Update.
8752 * avr-tdep.c (avr_gdbarch_init): Update.
8753 * arm-tdep.c (arm_gdbarch_init): Update.
8754 * valops.c (hand_function_call): Update.
8755
8756 2003-03-29 Andrew Cagney <cagney@redhat.com>
8757
8758 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8759 sizeof_call_dummy_words.
8760 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8761 define.
8762 * gdbarch.h: Regenerate.
8763
8764 2003-03-29 Andrew Cagney <cagney@redhat.com>
8765
8766 * infttrace.h: New file.
8767 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8768 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8769 (hpread_read_doc_function_type): Detect an initialized type1.
8770 (hpread_quick_traverse): Initialize mod_name_string.
8771 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8772 (som_solib_get_solib_by_pc): Declare.
8773 (so_lib_thread_start_addr): Declare.
8774 (no_shared_libraries): Declare.
8775 * somread.c (init_import_symbols): Make static. Add forward
8776 declaration.
8777 * config/pa/nm-hppah.h: Include "infttrace.h" for
8778 parent_attach_all.
8779 (hppa_insert_hw_watchpoint): Declare.
8780 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8781 * hppah-nat.c: Include "gdb_string.h".
8782 (parent_attach_all): Delete extern declaration, moved to
8783 "infttrace.h".
8784 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8785 int.
8786 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8787 * Makefile.in (infttrace_h): Define.
8788 (hpread.o): Update dependencies.
8789 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8790 * hppa-hpux-tdep.c: Include "gdb_string.h".
8791 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8792 * infrun.c (handle_inferior_event): Always initialize
8793 stepped_after_stopped_by_watchpoint. Add default and remove
8794 fallthrough in switch statement.
8795 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8796 parameter to int.
8797 (hppa_remove_hw_watchpoint): Ditto.
8798
8799 2003-03-29 Andrew Cagney <cagney@redhat.com>
8800
8801 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8802 offset.
8803
8804 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8805
8806 * arm-tdep.c (arm_push_arguments): Delete.
8807 (struct stack_item): New type.
8808 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8809 (arm_store_struct_return): Delte.
8810 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8811 arm_push_arguments or arm_store_struct_return.
8812
8813 2003-03-28 Andrew Cagney <cagney@redhat.com>
8814
8815 * Makefile.in (d10v-tdep.o): Update dependencies.
8816 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8817 * d10v-tdep.c: Include "remote.h".
8818 (target_resume_hook): Delete extern declaration.
8819 (target_wait_loop_hook): Ditto.
8820 (tdisassemble_command): Eliminate assignment in "if" conditional.
8821 (d10v_ts2_register_sim_regno): Eliminate call to
8822 legacy_register_sim_regno.
8823 (d10v_ts3_register_sim_regno): Ditto.
8824
8825 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8826
8827 * thread.c: Reindented.
8828 * lin-lwp.c: Ditto.
8829 * linux-proc.c: Ditto.
8830
8831 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8832
8833 * MAINTAINERS (write after approval): Add myself.
8834
8835 2003-03-27 Theodore A. Roth <troth@openavr.org>
8836
8837 * objc-exp.y: Add missing semi-colons.
8838
8839 2003-03-27 Andrew Cagney <cagney@redhat.com>
8840
8841 * regcache.c (write_sp): Delete function and references.
8842 * inferior.h (write_sp): Delete declaration.
8843 * valops.c (hand_function_call): Replace write_sp with
8844 TARGET_WRITE_SP.
8845 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8846 (sparc_pop_frame): Ditto.
8847
8848 2003-03-27 Andrew Cagney <cagney@redhat.com>
8849
8850 * NEWS: Mention removal of support for hppa*-*-bsd* and
8851 hppa*-*-osf* natives, and hppa*-*-pro* target.
8852 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8853 * config/pa/xm-pa.h: Obsolete file.
8854 * config/pa/xm-hppab.h: Obsolete file.
8855 * config/pa/nm-hppab.h: Obsolete file.
8856 * config/pa/tm-hppab.h: Obsolete file.
8857 * config/pa/tm-hppao.h: Obsolete file.
8858 * config/pa/nm-hppao.h: Obsolete file.
8859 * config/pa/tm-pro.h: Obsolete file.
8860 * config/pa/hppaosf.mt: Obsolete file.
8861 * config/pa/hppaosf.mh: Obsolete file.
8862 * config/pa/hppapro.mt: Obsolete file.
8863 * config/pa/hppabsd.mt: Obsolete file.
8864 * config/pa/hppabsd.mh: Obsolete file.
8865 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8866 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8867 hppa*-*-osf*.
8868
8869 2003-03-27 Andrew Cagney <cagney@redhat.com>
8870
8871 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8872 push_arguments. Don't set push_return_address or write_sp.
8873 (d10v_push_dummy_call): Replace d10v_push_arguments.
8874 (d10v_push_return_address, d10v_write_sp): Delete function,
8875 handled by push_dummy_call.
8876
8877 2003-03-26 Andrew Cagney <cagney@redhat.com>
8878
8879 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8880 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8881 regcache and dummy_addr parameters.
8882 * gdbarch.h, gdbarch.c: Re-generate.
8883 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8884 available; assume it will handle stack alignment and return
8885 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8886 legacy_push_arguments.
8887 (legacy_push_arguments): Rename default_push_arguments.
8888 * value.h (legacy_push_arguments): Rename default_push_arguments.
8889 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8890 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8891 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8892 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8893 * config/i386/tm-symmetry.h: Update.
8894 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8895 * x86-64-tdep.c (x86_64_init_abi): Update.
8896 * v850-tdep.c (v850_gdbarch_init): Update.
8897 * sparc-tdep.c (sparc_gdbarch_init): Update.
8898 * sh-tdep.c (sh_gdbarch_init): Update.
8899 * s390-tdep.c (s390_gdbarch_init): Update.
8900 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8901 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8902 * mips-tdep.c (mips_gdbarch_init): Update.
8903 * mcore-tdep.c (mcore_gdbarch_init): Update.
8904 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8905 * ia64-tdep.c (ia64_gdbarch_init): Update.
8906 * i386-tdep.c (i386_gdbarch_init): Update.
8907 * hppa-tdep.c (hppa_gdbarch_init): Update.
8908 * h8300-tdep.c (h8300_gdbarch_init): Update.
8909 * frv-tdep.c (frv_gdbarch_init): Update.
8910 * d10v-tdep.c (d10v_gdbarch_init): Update.
8911 * cris-tdep.c (cris_gdbarch_init): Update.
8912 * avr-tdep.c (avr_gdbarch_init): Update.
8913 * arm-tdep.c (arm_gdbarch_init): Update.
8914 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8915 * alpha-tdep.c (alpha_gdbarch_init): Update.
8916
8917 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8918
8919 * signals/signals.c (do_target_signal_to_host): Correct realtime
8920 signal range test.
8921
8922 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8923
8924 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8925 (struct sal_chain, map_catch_names): Remove.
8926 (catch_exception_command_1): Don't call
8927 handle_gnu_4_16_catch_command.
8928
8929 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8930
8931 From Mark Dettinger <dettinge@de.ibm.com>:
8932 * dwarf2cfi.c (read_2u): Increment pointer by two.
8933
8934 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8935
8936 * signals/signals.c: Fix typos in last change.
8937
8938 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8939
8940 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8941 not already defined. Use __SIGRTMIN if available.
8942 (target_signal_from_host): Remove SIGRTMIN block.
8943 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8944 the signal is within the realtime range.
8945
8946 2003-03-25 Adam Fedor <fedor@gnu.org>
8947
8948 * Makefile.in (infrun.o): Add $(language_h)
8949 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8950 for language specific trampolines.
8951 * language.h (struct language_defn): Add skip_trampoline.
8952 (skip_language_trampoline): Declare.
8953 * language.c (unk_lang_trampoline, skip_language_trampoline):
8954 New functions.
8955 (unknown_language_defn, auto_language_defn, local_language_defn):
8956 Add ukn_lang_trampoline.
8957 * ada-lang.c (ada_language_defn): Add NULL for language
8958 specific skip_trampoline.
8959 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8960 scm-lang.c: Likewise.
8961 * objc-lang.c (objc_skip_trampoline): New function.
8962 (objc_language_defn): Add objc_skip_trampoline.
8963
8964 2003-03-25 Andrew Cagney <cagney@redhat.com>
8965
8966 * frame.c (get_prev_frame): Delay validating a frame's ID -
8967 non-NULL, didn't go backwards - until an attempt to unwind it to
8968 the previous frame.
8969
8970 2003-03-25 Andrew Cagney <cagney@redhat.com>
8971
8972 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8973 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8974 * gdbarch.h, gdbarch.c: Re-generate.
8975 * config/sparc/tm-sparc.h
8976 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8977 * sparc-tdep.c (sparc_gdbarch_init): Set
8978 deprecated_extra_stack_alignment_needed.
8979 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8980 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8981 extra_stack_alignment_needed.
8982 * v850-tdep.c (v850_gdbarch_init): Ditto.
8983 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8984 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8985 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8986 * cris-tdep.c (cris_gdbarch_init): Ditto.
8987 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8988 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8989
8990 2003-03-25 Andrew Cagney <cagney@redhat.com>
8991
8992 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8993 STORE_STRUCT_RETURN.
8994 * gdbarch.h, gdbarch.c: Regenerate.
8995 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8996 (d10v_push_arguments): Set the struct return register.
8997 (d10v_gdbarch_init): Update.
8998 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8999 * x86-64-tdep.c (x86_64_init_abi): Update.
9000 * vax-tdep.c (vax_gdbarch_init): Update.
9001 * v850-tdep.c (v850_gdbarch_init): Update.
9002 * sparc-tdep.c (sparc_gdbarch_init): Update.
9003 * sh-tdep.c (sh_gdbarch_init): Update.
9004 * s390-tdep.c (s390_gdbarch_init): Update.
9005 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9006 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9007 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9008 * mips-tdep.c (mips_gdbarch_init): Update.
9009 * mcore-tdep.c (mcore_gdbarch_init): Update.
9010 * m68k-tdep.c (m68k_gdbarch_init): Update.
9011 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9012 * ia64-tdep.c (ia64_gdbarch_init): Update.
9013 * i386-tdep.c (i386_gdbarch_init): Update.
9014 * hppa-tdep.c (hppa_gdbarch_init): Update.
9015 * h8300-tdep.c (h8300_gdbarch_init): Update.
9016 * frv-tdep.c (frv_gdbarch_init): Update.
9017 * cris-tdep.c (cris_gdbarch_init): Update.
9018 * avr-tdep.c (avr_gdbarch_init): Update.
9019 * arm-tdep.c (arm_gdbarch_init): Update.
9020 * alpha-tdep.c (alpha_gdbarch_init): Update.
9021
9022 2003-03-25 Andrew Cagney <cagney@redhat.com>
9023
9024 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9025 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9026 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9027 * gdbarch.h, gdbarch.c: Regenerate.
9028 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9029 call_dummy_stack_adjust_p.
9030 * vax-tdep.c (vax_gdbarch_init): Ditto.
9031 * v850-tdep.c (v850_gdbarch_init): Ditto.
9032 * sh-tdep.c (sh_gdbarch_init): Ditto.
9033 * s390-tdep.c (s390_gdbarch_init): Ditto.
9034 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9035 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9036 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9037 * mips-tdep.c (mips_gdbarch_init): Ditto.
9038 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9039 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9040 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9041 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9042 * i386-tdep.c (i386_gdbarch_init): Ditto.
9043 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9044 * frv-tdep.c (frv_gdbarch_init): Ditto.
9045 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9046 * cris-tdep.c (cris_gdbarch_init): Ditto.
9047 * avr-tdep.c (avr_gdbarch_init): Ditto.
9048 * arm-tdep.c (arm_gdbarch_init): Ditto.
9049 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9050 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9051 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9052 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9053 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9054 call_dummy_stack_adjust_p.
9055 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9056 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9057 * sparc-tdep.c (sparc32_push_arguments): Update.
9058 * valops.c (hand_function_call): Update.
9059
9060 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9061
9062 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9063 set_gdbarch_char_signed.
9064
9065 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9066
9067 PR cli/548
9068 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9069
9070 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9071
9072 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9073 (_initialize_arm_tdep): Don't set tm_print_insn.
9074
9075 2003-03-24 Adam Fedor <fedor@gnu.org>
9076
9077 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9078 * objc-lang.h: Add multiple inclusion protection.
9079 (start_msglist, add_msglist, end_msglist): Additional declarations.
9080
9081 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9082
9083 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9084 value was renamed to ARM_FLOAT_SOFT_FPA.
9085
9086 2003-03-23 Andrew Cagney <cagney@redhat.com>
9087
9088 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9089 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9090 * gdbarch.h, gdbarch.c: Regenerate.
9091 * valops.c (hand_function_call): Update.
9092 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9093 * frame.c (legacy_saved_regs_this_id): Update.
9094 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9095 * dummy-frame.h: Update.
9096 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9097 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9098 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9099 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9100 * config/m68k/tm-sun3.h: Update.
9101 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9102 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9103 * x86-64-tdep.c (x86_64_init_abi): Update.
9104 * vax-tdep.c (vax_gdbarch_init): Update.
9105 * v850-tdep.c (v850_gdbarch_init): Update.
9106 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9107 * sh-tdep.c (sh_gdbarch_init): Update.
9108 * s390-tdep.c (s390_gdbarch_init): Update.
9109 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9110 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9111 (frame_get_saved_regs): Update.
9112 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9113 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9114 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9115 * mips-tdep.c (mips_gdbarch_init): Update.
9116 * mcore-tdep.c (mcore_gdbarch_init): Update.
9117 * m68k-tdep.c (m68k_gdbarch_init): Update.
9118 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9119 * ia64-tdep.c (ia64_gdbarch_init): Update.
9120 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9121 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9122 (i386_interix_back_one_frame): Update.
9123 * hppa-tdep.c (hppa_gdbarch_init): Update.
9124 (hppa_init_extra_frame_info): Update.
9125 * h8300-tdep.c (h8300_gdbarch_init): Update.
9126 * frv-tdep.c (frv_gdbarch_init): Update.
9127 * cris-tdep.c (cris_gdbarch_init): Update.
9128 * avr-tdep.c (avr_gdbarch_init): Update.
9129 * arm-tdep.c (arm_gdbarch_init): Update.
9130 * alpha-tdep.c (alpha_gdbarch_init): Update.
9131
9132 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9133
9134 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9135 (arm_get_fp_model): Declare.
9136 * arm-tdep.c (fp_model_strings): New string array.
9137 (arm_fp_model, current_fp_model): New variables.
9138 (arm_get_fp_model): New function.
9139 (arm_set_fp): New function.
9140 (set_fp_model_sfunc): New function.
9141 (show_fp_model): New function.
9142 (_initialize_arm_tdep): Add new command to set/show the FPU.
9143 (arm_extract_return_value): Use arm_get_fp_model.
9144 (arm_store_return_value): Likewise.
9145 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9146 to initialize the floating-point data types.
9147 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9148 model is FPA.
9149
9150 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9151
9152 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9153 the current setting of each value.
9154 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9155 new_set and new_show. Use add_setshow_cmd_full and
9156 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9157 commands and add new version as subcommands of "set/show arm".
9158
9159 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9160
9161 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9162 (set_arm_command, show_arm_command): New functions.
9163 (_initialize_arm_tdep): Add them.
9164 (num_disassembly_options): Renamed from num_flavor_options.
9165 (valid_disassembly_styles): Renamed from valid_flavors.
9166 (disassembly_style): Renamed from disassembly_flavor.
9167 (set_disassembly_style_sfunc): Renamed from
9168 set_disassembly_flavor_sfunc.
9169 (set_disassembly_style): Renamed from set_disassembly_flavor.
9170 (arm_othernames): Updated.
9171 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9172 command. Add "set/show arm disassembly" commands. Deprecate
9173 "othernames" command.
9174
9175 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9176
9177 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9178 (arm-tdep.o): Depend on elf_arm_h.
9179
9180 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9181
9182 * Makefile.in (coff_internal_h): Define.
9183 (arm-tdep.o): Update dependencies.
9184
9185 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9186
9187 * arm-tdep.c (prologue_cache): Delete.
9188 (check_prologue_cache, save_prologue_cache): Delete.
9189 (arm_scan_prologue): Don't check or update the prologue_cache.
9190 (arm_gdb_arch_init): Don't initialize it.
9191 (_initialize_arm_tdep): Likewise.
9192
9193 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9194
9195 * MAINTAINERS (tui): Maintainer of tui code.
9196
9197 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9198
9199 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9200 (i386-cygwin-tdep.o): Add dependencies.
9201 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9202 * i386-cygwin-tdep.c: New file.
9203 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9204 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9205
9206 2003-03-20 Andrew Cagney <cagney@redhat.com>
9207
9208 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9209 (handle_inferior_event): Remove code calling
9210 DYNAMIC_TRAMPOLINE_NEXTPC.
9211
9212 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9213 already has a full path.
9214
9215 * main.c (gdb_main): Return 1.
9216 (captured_main): Call error to report an invalid interpreter.
9217
9218 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9219 * alpha-osf1-tdep.c: Include "gdb_string.h".
9220
9221 2003-03-19 J. Brobecker <brobecker@gnat.com>
9222
9223 Continuing work to convert the hppa targets to multiarch partial.
9224
9225 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9226 method, now that hppa_push_dummy_frame has a conformant prototype.
9227 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9228 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9229 for the switch to multiarch partial.
9230
9231 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9232
9233 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9234 when iss is issNull.
9235
9236 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9237
9238 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9239 NUM_REGS bounds check.
9240
9241 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9242
9243 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9244 * mips-tdep.c (gdb_assert.h): Include.
9245 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9246 (mips_register_name): Handle integer registers explicitly. Add
9247 bounds checking.
9248 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9249 (mips_lsi33k_reg_names): Don't list integer registers; they're
9250 handled by mips_register_name() now.
9251 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9252 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9253 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9254 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9255 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9256
9257 2003-03-18 Andrew Cagney <cagney@redhat.com>
9258
9259 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9260 a void pointer.
9261 * gdbtypes.h (print_scalar_formatted): Update declaration.
9262 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9263
9264 2003-03-18 J. Brobecker <brobecker@gnat.com>
9265
9266 * infrun.c (observer.h): Add #include.
9267 (normal_stop): Add call to observer_notify_normal_stop.
9268 * Makefile.in (infrun.o): Add dependency on observer.h.
9269
9270 2003-03-18 J. Brobecker <brobecker@gnat.com>
9271
9272 Continuing work to convert the hppa targets to multiarch partial.
9273 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9274 parameter. Reformat comment.
9275 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9276 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9277 to match new profile.
9278
9279 2003-03-18 J. Brobecker <brobecker@gnat.com>
9280
9281 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9282 appear to be working in any case.
9283
9284 2003-03-18 J. Brobecker <brobecker@gnat.com>
9285
9286 * observer.c (observer_test_first_observer): New static variable.
9287 (observer_test_second_observer): Likewise.
9288 (observer_test_third_observer): Likewise.
9289 (observer_test_first_notification_function): New static function.
9290 (observer_test_second_notification_function): Likewise.
9291 (observer_test_third_notification_function): Likewise.
9292
9293 2003-03-17 J. Brobecker <brobecker@gnat.com>
9294
9295 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9296 * somsolib.c (gdb_assert.h): Likewise.
9297 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9298 (somsolib.o): Likewise.
9299
9300 2003-03-17 Andrew Cagney <cagney@redhat.com>
9301
9302 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9303 BFD. Simplify setting of di.endian.
9304
9305 2003-03-17 Andrew Cagney <cagney@redhat.com>
9306
9307 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9308 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9309
9310 From Elena Zannoni <ezannoni@redhat.com>
9311 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9312 vector and floating-point parameters.
9313 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9314 convention.
9315 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9316
9317 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9318
9319 * MAINTAINERS: Remove my name from several maintainership roles.
9320
9321 2003-03-17 Andrew Cagney <cagney@redhat.com>
9322
9323 Fix frame off-by-one bug.
9324 * frame-unwind.h (frame_this_id_ftype): Replace
9325 frame_unwind_id_ftype.
9326 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9327 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9328 with "prev_register".
9329 * frame-unwind.c (frame_unwind_find_by_pc): Return
9330 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9331 comment.
9332 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9333 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9334 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9335 (dummy_frame_unwind): Update.
9336 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9337 sentinel_frame_register_unwind.
9338 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9339 (sentinel_frame_unwinder): Update.
9340 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9341 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9342 * frame.c (create_sentinel_frame): Update. Initialize
9343 "prologue_cache" instead of "unwind_cache".
9344 (frame_register_unwind): Call this frame's prev_register with the
9345 next frame and this frame's prologue cache.
9346 (get_prev_frame): Simplify. Always call prev frame's this_id with
9347 this frame and prev frame's prologue cache. Document that this
9348 call is shifted one to the left when compared to the
9349 frame_register_unwind call.
9350 (legacy_saved_regs_prev_register): Replace
9351 frame_saved_regs_register_unwind.
9352 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9353 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9354 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9355 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9356 (d10v_frame_unwind): Update.
9357 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9358 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9359 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9360 "saved_regs" with "this_saved_regs".
9361
9362 2003-03-16 Andrew Cagney <cagney@redhat.com>
9363
9364 * frame.c (frame_pop): Don't call target_store_registers. Fix
9365 problem reported by Mark Kettenis.
9366
9367 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9368
9369 * i386-tdep.c (i386_register_type): Renamed from
9370 i386_register_virtual_type. Adjust function signature.
9371 (i386_gdbarch_init): Set register_type instead of
9372 deprecated_max_register_raw_size,
9373 deprecated_max_register_virtual_size and register_virtual_type.
9374
9375 2003-03-14 Andrew Cagney <cagney@redhat.com>
9376
9377 * frame.c (get_prev_frame): When a legacy frame, always call
9378 legacy_get_prev_frame. Simplify unwind code using assumption that
9379 the unwinder is new.
9380 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9381 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9382 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9383
9384 2003-03-14 Andrew Cagney <cagney@redhat.com>
9385
9386 * frame.c (get_saved_register): Delete function.
9387 * frame.h (get_saved_register): Delete declaration.
9388 * xstormy16-tdep.c: Update comment.
9389 * regcache.h: Update comments.
9390 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9391 get_saved_register and extract_address, use
9392 frame_read_unsigned_register.
9393 (sparc_frame_saved_pc): Ditto.
9394 (sparc_get_saved_register): Instead of get_saved_register, use
9395 frame_register.
9396 (sparc_pop_frame): Ditto.
9397 * findvar.c: Update comments.
9398 (value_of_register): Call frame_register instead of
9399 get_saved_register.
9400 (value_from_register): Ditto.
9401 * config/sparc/tm-sparc.h: Update comment.
9402 * breakpoint.c: Update comment.
9403
9404 2003-03-14 Andrew Cagney <cagney@redhat.com>
9405
9406 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9407 GET_SAVED_REGISTER.
9408 * gdbarch.h, gdbarch.c: Re-generate.
9409 * frame.h: Update comments.
9410 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9411 * x86-64-tdep.c (x86_64_init_abi): Update.
9412 * sparc-tdep.c (sparc_gdbarch_init): Update.
9413 * sh-tdep.c (sh_gdbarch_init): Update.
9414 * mips-tdep.c (mips_gdbarch_init): Update.
9415 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9416 * cris-tdep.c (cris_gdbarch_init): Update.
9417 * ia64-tdep.c (ia64_gdbarch_init): Update.
9418 * frame.c (frame_register): Update.
9419 (get_saved_register): Update.
9420 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9421
9422 2003-03-13 Andrew Cagney <cagney@redhat.com>
9423
9424 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9425 * gdbarch.h, gdbarch.c: Regenerate.
9426 * valops.c (hand_function_call): Update comment.
9427 * stack.c (return_command): Update comment.
9428 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9429 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9430 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9431 * x86-64-tdep.c (x86_64_init_abi): Update.
9432 * vax-tdep.c (vax_gdbarch_init): Update.
9433 * v850-tdep.c (v850_gdbarch_init): Update.
9434 * sparc-tdep.c (sparc_gdbarch_init): Update.
9435 * sh-tdep.c (sh_gdbarch_init): Update.
9436 * s390-tdep.c (s390_gdbarch_init): Update.
9437 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9438 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9439 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9440 * mips-tdep.c (mips_gdbarch_init): Update.
9441 * mcore-tdep.c (mcore_gdbarch_init): Update.
9442 * m68k-tdep.c (m68k_gdbarch_init): Update.
9443 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9444 * ia64-tdep.c (ia64_gdbarch_init): Update.
9445 * i386-tdep.c (i386_gdbarch_init): Update.
9446 * hppa-tdep.c (hppa_gdbarch_init): Update.
9447 * h8300-tdep.c (h8300_gdbarch_init): Update.
9448 * frv-tdep.c (frv_gdbarch_init): Update.
9449 * cris-tdep.c (cris_gdbarch_init): Update.
9450 * avr-tdep.c (avr_gdbarch_init): Update.
9451 * arm-tdep.c (arm_gdbarch_init): Update.
9452 * alpha-tdep.c (alpha_gdbarch_init): Update.
9453
9454 2003-03-13 Andrew Cagney <cagney@redhat.com>
9455
9456 * frame.c (legacy_frame_p): New function.
9457 (get_prev_frame): Use legacy_frame_p.
9458 * frame.h (legacy_frame_p): Declare.
9459
9460 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9461
9462 * MAINTAINERS (write after approval): Alphabetically
9463 listing corrected.
9464
9465 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9466
9467 * MAINTAINERS (write after approval): Add myself.
9468
9469 2003-03-12 Andrew Cagney <cagney@redhat.com>
9470
9471 * frame.c (get_prev_frame): Rename the frame parameter to
9472 "this_frame".
9473 (get_next_frame, legacy_get_prev_frame): Ditto.
9474
9475 2003-03-12 Andrew Cagney <cagney@redhat.com>
9476
9477 * frame.c (get_current_frame): Check target_has_registers before
9478 checking target_has_stack.
9479 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9480 instead of deprecated_selected_frame.
9481 * findvar.c (value_of_register): Pass "frame", not
9482 deprecated_selected_frame, to value_of_builtin_reg.
9483
9484 2003-03-12 Andrew Cagney <cagney@redhat.com>
9485
9486 * regcache.c (regcache_cooked_write_signed): New function.
9487 (regcache_cooked_write_unsigned): New function.
9488 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9489 (regcache_cooked_read_signed): Fix regnum in range assertion.
9490 * regcache.h (regcache_cooked_write_signed): Declare.
9491 (regcache_cooked_write_unsigned): Declare.
9492
9493 2003-03-12 Andrew Cagney <cagney@redhat.com>
9494
9495 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9496 * gdbarch.h, gdbarch.c: Re-generate.
9497 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9498 * x86-64-tdep.h: Update.
9499 * x86-64-tdep.c (x86_64_init_abi): Update.
9500 * v850-tdep.c (v850_gdbarch_init): Update.
9501 * sparc-tdep.c (sparc_gdbarch_init): Update.
9502 * sh-tdep.c (sh_gdbarch_init): Update.
9503 * s390-tdep.c (s390_gdbarch_init): Update.
9504 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9505 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9506 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9507 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9508 * mips-tdep.c (mips_gdbarch_init): Update.
9509 * mcore-tdep.c (mcore_gdbarch_init): Update.
9510 * m68k-tdep.c (m68k_gdbarch_init): Update.
9511 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9512 * ia64-tdep.c (ia64_gdbarch_init): Update.
9513 * i386-tdep.c (i386_gdbarch_init): Update.
9514 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9515 * hppa-tdep.c (hppa_gdbarch_init): Update.
9516 * h8300-tdep.c (h8300_gdbarch_init): Update.
9517 * frv-tdep.c (frv_gdbarch_init): Update.
9518 * cris-tdep.c (cris_gdbarch_init): Update.
9519 * avr-tdep.c (avr_gdbarch_init): Update.
9520 * arm-tdep.c (arm_gdbarch_init): Update.
9521 * alpha-tdep.c (alpha_gdbarch_init): Update.
9522 * sh-tdep.c (sh_init_extra_frame_info): Update.
9523 (sh64_init_extra_frame_info): Update.
9524 * ns32knbsd-nat.c (frame_num_args): Update.
9525 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9526 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9527 (xstormy16_frame_chain_valid): Update.
9528 * vax-tdep.c (vax_saved_pc_after_call): Update.
9529 * v850-tdep.c (v850_frame_chain): Update.
9530 (v850_pop_frame): Update.
9531 (v850_init_extra_frame_info): Update.
9532 * sparc-tdep.c (setup_arbitrary_frame): Update.
9533 * ns32k-tdep.c (umax_frame_num_args): Update.
9534 * s390-tdep.c (s390_pop_frame_regular): Update.
9535 * mn10300-tdep.c (mn10300_frame_chain): Update.
9536 (mn10300_pop_frame_regular): Update.
9537 (mn10300_init_extra_frame_info): Update.
9538 * mips-tdep.c (mips_init_frame_pc_first): Update.
9539 (mips_frame_chain): Update.
9540 (mips_pop_frame): Update.
9541 * mcore-tdep.c (mcore_frame_chain): Update.
9542 (mcore_pop_frame): Update.
9543 (mcore_init_extra_frame_info): Update.
9544 * arch-utils.c (init_frame_pc_default): Update.
9545 * m68k-tdep.c (isi_frame_num_args): Update.
9546 (delta68_frame_num_args): Update.
9547 (news_frame_num_args): Update.
9548 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9549 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9550 (alpha_frame_chain): Update.
9551 (alpha_pop_frame): Update.
9552 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9553 (hppa_init_extra_frame_info): Update.
9554 (hppa_frame_chain): Update.
9555 (hppa_frame_chain_valid): Update.
9556 * cris-tdep.c (cris_init_extra_frame_info): Update.
9557 * avr-tdep.c (avr_init_extra_frame_info): Update.
9558 * arm-tdep.c (arm_frame_chain_valid): Update.
9559 (arm_init_extra_frame_info): Update.
9560 (arm_pop_frame): Update.
9561 * frame.c (frame_pc_unwind): Update.
9562 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9563 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9564 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9565 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9566 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9567 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9568
9569 2003-03-12 Andrew Cagney <cagney@redhat.com>
9570
9571 Eliminate the need for POP_FRAME.
9572 * frame.c (do_frame_unwind_register): New function.
9573 (frame_pop): When no POP_FRAME, pop the frame using register
9574 unwind and a scratch regcache.
9575 (frame_saved_regs_pop): Delete function.
9576 (trad_frame_unwinder): Update.
9577 * d10v-tdep.c (d10v_frame_pop): Delete function.
9578 (d10v_frame_unwind): Update.
9579 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9580 (sentinel_frame_unwinder): Update.
9581 * dummy-frame.c (dummy_frame_pop): Delete function.
9582 (dummy_frame_unwind): Update.
9583 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9584 (struct frame_unwind): Update.
9585
9586 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9587
9588 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9589 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9590 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9591 Do range checks on register number obtained from debugging info.
9592 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9593 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9594 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9595 mapping function.
9596 (do_fp_register_row): Fix typo which caused double type to be
9597 used when attempting to unpack a float.
9598
9599 2003-03-11 J. Brobecker <brobecker@gnat.com>
9600
9601 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9602
9603 2003-03-11 Andrew Cagney <cagney@redhat.com>
9604
9605 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9606 frame. Problem found by Corinna Vinschen.
9607
9608 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9609
9610 * doublest.c (floatformat_from_length): Accept also
9611 the real size of 'long double' type.
9612
9613 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9614
9615 From Klee Dienes <kdienes@apple.com>:
9616 * breakpoint.c (bpstat_copy): Copy the command lines as well
9617 as the old value, to match what is freed in bpstat_clear.
9618
9619 2003-03-10 David Carlton <carlton@math.stanford.edu>
9620
9621 * minsyms.c (add_minsym_to_hash_table): Replace
9622 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9623 (compare_minimal_symbols, compact_minimal_symbols)
9624 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9625 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9626 of DEPRECATED_SYMBOL_MATCHES_NAME.
9627 (lookup_minimal_symbol_solib_trampoline): Ditto.
9628
9629 2003-03-10 Andrew Cagney <cagney@redhat.com>
9630
9631 * regcache.h (regcache_cooked_read_ftype): Define.
9632 (regcache_save, regcache_restore): Add a cooked_read parameter.
9633 * regcache.c (regcache_save, regcache_restore): Update.
9634 (do_cooked_read): New function.
9635 (regcache_cpy): Pass do_cooked_read to regcache_save and
9636 regcache_restore.
9637
9638 2003-03-10 Andrew Cagney <cagney@redhat.com>
9639
9640 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9641 * gdbarch.h, gdbarch.c: Re-generate.
9642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9643 * x86-64-tdep.h: Update.
9644 * x86-64-tdep.c (x86_64_init_abi): Update.
9645 * v850-tdep.c (v850_gdbarch_init): Update.
9646 * sparc-tdep.c (sparc_gdbarch_init): Update.
9647 * sh-tdep.c (sh_gdbarch_init): Update.
9648 * s390-tdep.c (s390_gdbarch_init): Update.
9649 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9650 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9651 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9652 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9653 * mips-tdep.c (mips_gdbarch_init): Update.
9654 * mcore-tdep.c (mcore_gdbarch_init): Update.
9655 * m68k-tdep.c (m68k_gdbarch_init): Update.
9656 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9657 * ia64-tdep.c (ia64_gdbarch_init): Update.
9658 * i386-tdep.c (i386_gdbarch_init): Update.
9659 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9660 * hppa-tdep.c (hppa_gdbarch_init): Update.
9661 * h8300-tdep.c (h8300_gdbarch_init): Update.
9662 * frv-tdep.c (frv_gdbarch_init): Update.
9663 * cris-tdep.c (cris_gdbarch_init): Update.
9664 * avr-tdep.c (avr_gdbarch_init): Update.
9665 * arm-tdep.c (arm_gdbarch_init): Update.
9666 * alpha-tdep.c (alpha_gdbarch_init): Update.
9667 * sh-tdep.c (sh_init_extra_frame_info): Update.
9668 (sh64_init_extra_frame_info): Update.
9669 * ns32knbsd-nat.c (frame_num_args): Update.
9670 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9671 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9672 (xstormy16_frame_chain_valid): Update.
9673 * vax-tdep.c (vax_saved_pc_after_call): Update.
9674 * v850-tdep.c (v850_frame_chain): Update.
9675 (v850_pop_frame): Update.
9676 (v850_init_extra_frame_info): Update.
9677 * sparc-tdep.c (setup_arbitrary_frame): Update.
9678 * ns32k-tdep.c (umax_frame_num_args): Update.
9679 * s390-tdep.c (s390_pop_frame_regular): Update.
9680 * mn10300-tdep.c (mn10300_frame_chain): Update.
9681 (mn10300_pop_frame_regular): Update.
9682 (mn10300_init_extra_frame_info): Update.
9683 * mips-tdep.c (mips_init_frame_pc_first): Update.
9684 (mips_frame_chain): Update.
9685 (mips_pop_frame): Update.
9686 * mcore-tdep.c (mcore_frame_chain): Update.
9687 (mcore_pop_frame): Update.
9688 (mcore_init_extra_frame_info): Update.
9689 * arch-utils.c (init_frame_pc_default): Update.
9690 * m68k-tdep.c (isi_frame_num_args): Update.
9691 (delta68_frame_num_args): Update.
9692 (news_frame_num_args): Update.
9693 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9694 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9695 (alpha_frame_chain): Update.
9696 (alpha_pop_frame): Update.
9697 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9698 (hppa_init_extra_frame_info): Update.
9699 (hppa_frame_chain): Update.
9700 (hppa_frame_chain_valid): Update.
9701 * cris-tdep.c (cris_init_extra_frame_info): Update.
9702 * avr-tdep.c (avr_init_extra_frame_info): Update.
9703 * arm-tdep.c (arm_frame_chain_valid): Update.
9704 (arm_init_extra_frame_info): Update.
9705 (arm_pop_frame): Update.
9706 * frame.c (frame_pc_unwind): Update.
9707 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9708 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9709 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9710 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9711 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9712 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9713
9714 2003-03-10 Andrew Cagney <cagney@redhat.com>
9715
9716 * gdbarch.sh (gdbarch_unwind_pc): New method.
9717 * gdbarch.h, gdbarch.c: Regenerate.
9718 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9719 but use read_pc and FRAME_SAVED_PC as fall backs.
9720 (frame_saved_regs_pc_unwind): Delete function.
9721 (trad_frame_unwinder): Update.
9722 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9723 (struct frame_unwind): Update.
9724 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9725 (dummy_frame_unwind): Update.
9726 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9727 (sentinel_frame_unwinder): Update.
9728 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9729 (d10v_frame_unwind): Update.
9730 (d10v_unwind_pc): New function.
9731 (d10v_gdbarch_init): Set unwind_pc.
9732
9733 2003-03-10 Andrew Cagney <cagney@redhat.com>
9734
9735 * gdbarch.h: Re-generate.
9736
9737 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9738 PC.
9739 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9740 the PC register.
9741
9742 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9743
9744 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9745
9746 2003-03-08 Andrew Cagney <cagney@redhat.com>
9747
9748 * cli-out.c: Update copyright.
9749 (cli_out_data): Define typedef. Use instead of ui_out_data.
9750
9751 2003-03-08 Andrew Cagney <cagney@redhat.com>
9752
9753 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9754 the result.
9755
9756 2003-03-07 Andrew Cagney <cagney@redhat.com>
9757
9758 * gdbarch.sh: Don't generate two macro definitions when an
9759 undefined macro taking no arguments.
9760 * gdbarch.h: Regenerate.
9761
9762 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9763
9764 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9765 (x86_64_unwind_dummy_id): New functions.
9766 (x86_64_init_abi): Register these two new functions.
9767
9768 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9769
9770 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9771 (x86_64_skip_prologue): Move prologue detection to
9772 separate function.
9773 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9774
9775 2003-03-05 Andrew Cagney <cagney@redhat.com>
9776
9777 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9778 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9779 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9780 to use unwind_dummy_id when a dummy frame.
9781 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9782 predicate.
9783 * gdbarch.h, gdbarch.c: Regneerate.
9784
9785 2003-03-05 Andrew Cagney <cagney@redhat.com>
9786
9787 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9788 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9789 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9790 values.
9791
9792 2003-03-05 Andrew Cagney <cagney@redhat.com>
9793
9794 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9795 (struct d10v_unwind_cache): Delete field "frameless". Replace
9796 "next_addr" with "sp_offset". Add "r11_offset".
9797 (d10v_frame_unwind_cache): Update.
9798 (prologue_find_regs): Update. When "mv r11, sp", save the
9799 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9800 RN was saved in r11_offset.
9801
9802 2003-03-05 Andrew Cagney <cagney@redhat.com>
9803
9804 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9805 cached PC value in the next frame.
9806
9807 2003-03-05 Andrew Cagney <cagney@redhat.com>
9808
9809 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9810 "id_unwind_cache" with "id".
9811 (frame_id_unwind): Delete declaration.
9812 * frame.c (frame_id_unwind): Delete function.
9813 (get_prev_frame): Call the frame id unwind method directly. Store
9814 the returned next frame's ID value in NEXT_FRAME. Note that there
9815 is a problem with the wrong unwind ID being called with the wrong
9816 unwind cache.
9817
9818 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9819
9820 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9821
9822 2003-03-05 James Ingham <jingham@apple.com>
9823 Daniel Jacobowitz <drow@mvista.com>
9824
9825 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9826 (auto_cp_abi): New variable.
9827 (current_cp_abi, num_cp_abis): Make static.
9828 (CP_ABI_MAX): Define.
9829 (cp_abis): Turn into an array.
9830 (value_virtual_fn_field): Fix formatting.
9831 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9832 takes a pointer.
9833 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9834 (list_cp_abis, _initialize_cp_abi): New functions.
9835 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9836 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9837 switch_to_cp_abi. Update prototype for register_cp_abi.
9838 * Makefile.in (cp-abi.o): Update dependencies.
9839 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9840 instead of switch_to_cp_abi.
9841 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9842 register_cp_abi.
9843 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9844 register_cp_abi.
9845 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9846
9847 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9848
9849 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9850 * dwarf2loc.c: Include "regcache.h".
9851 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9852 register_size.
9853 * Makefile.in (dwarf2loc.o): Update dependencies.
9854
9855 2003-03-04 Theodore A. Roth <troth@openavr.org>
9856
9857 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9858 number of io registers reported by remote target is not a multiple of
9859 step.
9860
9861 2003-03-04 David Carlton <carlton@math.stanford.edu>
9862
9863 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9864 (lookup_symbol_aux_psymtabs): Update call to
9865 lookup_partial_symbol.
9866 (lookup_transparent_type, find_main_psymtab)
9867 (make_symbol_overload_list): Ditto.
9868
9869 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9870
9871 * MAINTAINERS (Write after approval): Update my email address.
9872
9873 2003-03-03 Andrew Cagney <cagney@redhat.com>
9874
9875 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9876 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9877 predicate. Replace MAX_REGISTER_RAW_SIZE.
9878 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9879 MAX_REGISTER_VIRTUAL_SIZE.
9880 * regcache.c (legacy_max_register_raw_size): New function.
9881 (legacy_max_register_virtual_size): New function.
9882 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9883 (MAX_REGISTER_RAW_SIZE): Define.
9884 (legacy_max_register_raw_size): Declare.
9885 (legacy_max_register_virtual_size): Declare.
9886 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9887 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9888 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9889 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9890 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9891 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9892 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9893 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9894 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9895 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9896 * vax-tdep.c (vax_gdbarch_init): Update.
9897 * v850-tdep.c (v850_gdbarch_init): Update.
9898 * sparc-tdep.c (sparc_gdbarch_init): Update.
9899 * sh-tdep.c (sh_gdbarch_init): Update.
9900 * s390-tdep.c (s390_gdbarch_init): Update.
9901 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9902 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9903 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9904 * mips-tdep.c (mips_gdbarch_init): Update.
9905 * mcore-tdep.c (mcore_gdbarch_init): Update.
9906 * m68k-tdep.c (m68k_gdbarch_init): Update.
9907 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9908 * ia64-tdep.c (ia64_gdbarch_init): Update.
9909 * i386-tdep.c (i386_gdbarch_init): Update.
9910 * hppa-tdep.c (hppa_gdbarch_init): Update.
9911 * h8300-tdep.c (h8300_gdbarch_init): Update.
9912 * frv-tdep.c (frv_gdbarch_init): Update.
9913 * cris-tdep.c (cris_gdbarch_init): Update.
9914 * avr-tdep.c (avr_gdbarch_init): Update.
9915 * arm-tdep.c (arm_gdbarch_init): Update.
9916 * alpha-tdep.c (alpha_gdbarch_init): Update.
9917 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9918 max_register_raw_size or max_register_virtual_size.
9919
9920 2003-03-03 David Carlton <carlton@math.stanford.edu>
9921
9922 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9923 SYMBOL_MATCHES_NAME, add comment.
9924 (SYMBOL_MATCHES_NATURAL_NAME): New.
9925 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9926 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9927 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9928 * symtab.c (lookup_partial_symbol): Use
9929 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9930 unhelpful comment.
9931 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9932 SYMBOL_MATCHES_NAME.
9933 Fix for PR c++/33.
9934
9935 2003-03-03 David Carlton <carlton@math.stanford.edu>
9936
9937 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9938 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9939 by regexp matching against SYMBOL_NATURAL_NAME.
9940
9941 2003-03-03 David Carlton <carlton@math.stanford.edu>
9942
9943 * linespec.c (find_method): Extract code into collect_methods.
9944 (collect_methods): New.
9945
9946 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9947
9948 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9949 get_frame_base.
9950
9951 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9952 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9953
9954 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9955
9956 * arch-utils.c (generic_register_byte): Fix to use the loop index
9957 and not regnum when summing the size of all registers up to regnum.
9958
9959 2003-03-01 Andrew Cagney <cagney@redhat.com>
9960
9961 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9962 FRAME_INIT_SAVED_REGS.
9963 * gdbarch.h, gdbarch.c: Regenerate.
9964 * stack.c (frame_info): Update.
9965 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9966 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9967 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9968 * ns32k-tdep.c (ns32k_pop_frame): Update.
9969 * mips-tdep.c (mips_pop_frame): Update.
9970 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9971 * ia64-tdep.c (ia64_frame_chain): Update.
9972 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9973 (ia64_frameless_function_invocation): Update.
9974 (ia64_init_extra_frame_info): Update.
9975 (ia64_pop_frame_regular): Update.
9976 * frame.h (struct frame_info): Update comment.
9977 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9978 * frame.c (frame_saved_regs_register_unwind): Update.
9979 (frame_saved_regs_register_unwind): Update.
9980 (deprecated_generic_get_saved_register): Update.
9981 * cris-tdep.c: Update comment.
9982 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9983 Rename macro.
9984 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9985 * x86-64-tdep.c (x86_64_init_abi): Update.
9986 * vax-tdep.c (vax_gdbarch_init): Update.
9987 * v850-tdep.c (v850_gdbarch_init): Update.
9988 * sparc-tdep.c (sparc_gdbarch_init): Update.
9989 * sh-tdep.c (sh_gdbarch_init): Update.
9990 * s390-tdep.c (s390_gdbarch_init): Update.
9991 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9992 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9993 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9994 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9995 * mips-tdep.c (mips_gdbarch_init): Update.
9996 * mcore-tdep.c (mcore_gdbarch_init): Update.
9997 * m68k-tdep.c (m68k_gdbarch_init): Update.
9998 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9999 * ia64-tdep.c (ia64_gdbarch_init): Update.
10000 * i386-tdep.c (i386_gdbarch_init): Update.
10001 * frv-tdep.c (frv_gdbarch_init): Update.
10002 * avr-tdep.c (avr_gdbarch_init): Update.
10003 * arm-tdep.c (arm_gdbarch_init): Update.
10004 * alpha-tdep.c (alpha_gdbarch_init): Update.
10005
10006 2003-03-01 Andrew Cagney <cagney@redhat.com>
10007
10008 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10009 option enum and switch. When no windows, set the interpreter to
10010 INTERP_CONSOLE.
10011
10012 2003-03-01 Andrew Cagney <cagney@redhat.com>
10013
10014 * main.c (captured_main): Replace magic option characters with an
10015 enum.
10016
10017 2003-03-01 Andrew Cagney <cagney@redhat.com>
10018
10019 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10020 INIT_EXTRA_FRAME_INFO.
10021 * gdbarch.h, gdbarch.c: Regenerate.
10022 * arm-tdep.c: Update comments.
10023 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10024 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10025 * frame.h, avr-tdep.c: Ditto.
10026 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10027 (create_new_frame, legacy_get_prev_frame): Ditto.
10028 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10029 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10030 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10031 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10032 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10033 * v850-tdep.c (v850_gdbarch_init): Ditto.
10034 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10035 * sh-tdep.c (sh_gdbarch_init): Ditto.
10036 * s390-tdep.c (s390_gdbarch_init): Ditto.
10037 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10038 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10039 * mips-tdep.c (mips_gdbarch_init): Ditto.
10040 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10041 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10042 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10043 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10044 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10045 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10046 * frv-tdep.c (frv_gdbarch_init): Ditto.
10047 * cris-tdep.c (cris_gdbarch_init): Ditto.
10048 * avr-tdep.c (avr_gdbarch_init): Ditto.
10049 * arm-tdep.c (arm_gdbarch_init): Ditto.
10050 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10051 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10052
10053 2003-03-01 Andrew Cagney <cagney@redhat.com>
10054
10055 * gdbarch.sh (register_type): New function with predicate.
10056 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10057 * gdbarch.h, gdbarch.c: Re-generate.
10058 * arch-utils.c (generic_register_byte): Use generic_register_size.
10059 (generic_register_size): When available, use
10060 gdbarch_register_type.
10061 * regcache.c (init_regcache_descr): When available, initialize the
10062 register type array using gdbarch_register_type. If the
10063 architecture supplies gdbarch_register_type, do not use the legacy
10064 regcache layout.
10065 * d10v-tdep.c (d10v_register_type): Replace
10066 d10v_register_virtual_type.
10067 (d10v_gdbarch_init): Set register_type instead of
10068 register_virtual_type.
10069
10070 2003-03-01 Andrew Cagney <cagney@redhat.com>
10071
10072 * Makefile.in (ax-gdb.o): Update dependencies.
10073 * ax-gdb.c: Include "regcache.h".
10074 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10075 * findvar.c (value_of_register): Ditto.
10076 * infcmd.c (default_print_registers_info): Ditto.
10077
10078 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10079
10080 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10081 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10082
10083 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10084
10085 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10086 of STREQ.
10087
10088 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10089
10090 * Makefile.in (dwarf2loc.o): Update dependencies.
10091 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10092 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10093 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10094 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10095 (locexpr_tracepoint_var_ref): New function.
10096 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10097
10098 2003-02-28 Andrew Cagney <cagney@redhat.com>
10099
10100 * regcache.c (register_size): New function.
10101 * regcache.h (register_size): Declare
10102 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10103 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10104
10105 2003-02-28 David Carlton <carlton@math.stanford.edu>
10106
10107 * linespec.c (decode_compound): Extract code into find_method.
10108 (find_method): New.
10109
10110 2003-02-28 J. Brobecker <brobecker@gnat.com>
10111
10112 * Makefile.in: Add rules to build and link in observer.o.
10113
10114 2003-02-27 J. Brobecker <brobecker@gnat.com>
10115
10116 * observer.c: Minor comments edits.
10117
10118 2003-02-27 J. Brobecker <brobecker@gnat.com>
10119
10120 * observer.h, observer.c: New file.
10121
10122 2003-02-27 Andrew Cagney <cagney@redhat.com>
10123
10124 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10125
10126 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10127
10128 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10129 (M6812_OP_STS_EXT): Likewise.
10130 (m6811_prologue): Use the above to recognize prologue.
10131 (m6812_prologue): Likewise.
10132
10133 2003-02-27 David Carlton <carlton@math.stanford.edu>
10134
10135 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10136 SYMBOL_PRINT_NAME.
10137 (compare_psymbols): Ditto.
10138 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10139
10140 2003-02-27 Michael Snyder <msnyder@redhat.com>
10141
10142 * f-lang.c (build_fortran_types): New function.
10143 (_initialize_f_language): Gdbarch-register built-in fortran types.
10144 * doublest.c (extract_floating): Fix warning text.
10145
10146 2003-02-27 Andrew Cagney <cagney@redhat.com>
10147
10148 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10149 predicate. Replaces PUSH_DUMMY_FRAME.
10150 * gdbarch.h, gdbarch.c: Regnerate.
10151 * valops.c (hand_function_call): Update. Call
10152 generic_push_dummy_frame directly.
10153 * vax-tdep.c (vax_gdbarch_init): Update.
10154 * sparc-tdep.c (sparc_gdbarch_init): Update.
10155 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10156 * m68k-tdep.c (m68k_gdbarch_init): Update.
10157 * hppa-tdep.c (hppa_gdbarch_init): Update.
10158 * alpha-tdep.c (alpha_gdbarch_init): Update.
10159 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10160 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10161 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10162 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10163 push_dummy_frame to generic_push_dummy_frame.
10164 * v850-tdep.c (v850_gdbarch_init): Ditto.
10165 * sh-tdep.c (sh_gdbarch_init): Ditto.
10166 * s390-tdep.c (s390_gdbarch_init): Ditto.
10167 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10168 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10169 * mips-tdep.c (mips_gdbarch_init): Ditto.
10170 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10171 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10172 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10173 * i386-tdep.c (i386_gdbarch_init): Ditto.
10174 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10175 * frv-tdep.c (frv_gdbarch_init): Ditto.
10176 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10177 * cris-tdep.c (cris_gdbarch_init): Ditto.
10178 * avr-tdep.c (avr_gdbarch_init): Ditto.
10179 * arm-tdep.c (arm_gdbarch_init): Ditto.
10180
10181 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10182
10183 * mips-tdep.c (show_mips_abi): New function.
10184 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10185 command ``show mips abi''.
10186
10187 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10188
10189 From Elena Zannoni <ezannoni@redhat.com>
10190 * dbxread.c (process_one_symbol): Only record line 0 if one or
10191 more sline entries have been seen for the function.
10192
10193 2003-02-26 Michael Chastain <mec@shout.net>
10194
10195 * configure: Regenerate with autoconf 000227.
10196
10197 2003-02-26 Michael Chastain <mec@shout.net>
10198
10199 Close PR build/660.
10200 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10201 for old libc5/glibc.
10202 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10203
10204 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10205
10206 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10207 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10208
10209 2003-02-26 Michael Chastain <mec@shout.net>
10210
10211 * configure.in: New variable HAVE_UINTPTR_T.
10212 * configure, config.in: Regenerated.
10213
10214 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10215
10216 Fix PR build/1097.
10217 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10218
10219 2003-02-25 Andrew Cagney <cagney@redhat.com>
10220
10221 * frame.c (get_prev_frame): Add comment on check for
10222 inside_entry_func. Only check for inside_entry_file when not a
10223 dummy and not a sentinel. Check that the new frame is not inner
10224 to the old frame.
10225
10226 2003-02-25 Andrew Cagney <cagney@redhat.com>
10227
10228 * frame.c (frame_debug): New variable.
10229 (_initialize_frame): Add "set/show debug frame" command.
10230 (get_prev_frame): When frame_debug, print reason why unwind
10231 failed.
10232
10233 2003-02-25 Michael Chastain <mec@shout.net>
10234
10235 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10236 to avoid uintptr_t definition problems.
10237
10238 2003-02-25 David Carlton <carlton@math.stanford.edu>
10239
10240 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10241 (SYMBOL_LINKAGE_NAME): Ditto.
10242 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10243 SYMBOL_LINKAGE_NAME.
10244 (struct general_symbol_info): Expand comment.
10245 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10246 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10247 (SYMBOL_MATCHES_REGEXP): Ditto.
10248 * symtab.c (symbol_natural_name): New function.
10249 * objfiles.h: Replace all uses of SYMBOL_NAME by
10250 DEPRECATED_SYMBOL_NAME.
10251 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10252 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10253 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10254 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10255 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10256 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10257 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10258 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10259 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10260 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10261 * ada-exp.y: Ditto.
10262 * ada-exp.y: Update copyright.
10263 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10264 * cp-valprint.c: Ditto.
10265
10266 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10267
10268 * infptrace.c (detach): Do not flag error if ptrace detach fails
10269 and errno is set to ESRCH.
10270
10271 2003-02-24 Andrew Cagney <cagney@redhat.com>
10272
10273 * infptrace.c (udot_info): Change type of udot_off to long. Use
10274 paddr when printing udot_off's value.
10275
10276 2003-02-24 David Carlton <carlton@math.stanford.edu>
10277
10278 * symtab.c (make_symbol_overload_list): Only read in partial
10279 symtabs containing a matching partial symbol.
10280
10281 2003-02-24 David Carlton <carlton@math.stanford.edu>
10282
10283 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10284 do the comparison, not strcmp.
10285 * symfile.c (compare_psymbols): Ditto.
10286 * defs.h: Declare strcmp_iw_ordered.
10287 * utils.c (strcmp_iw_ordered): New function.
10288
10289 2003-02-24 Jim Blandy <jimb@redhat.com>
10290
10291 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10292 support, shared libs): Remove my name from here, to better reflect
10293 reality.
10294
10295 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10296
10297 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10298 (target_ops): Add to_have_continuable_watchpoint.
10299 * target.c (update_current_target): Add INHERIT line for
10300 to_have_continuable_watchpoint.
10301 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10302 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10303 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10304 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10305
10306 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10307
10308 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10309 maintainership.
10310
10311 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10312
10313 * solib.c (solib_open): Call target defined search function after
10314 failing with solib-search-path.
10315 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10316 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10317
10318 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10319
10320 * MAINTAINERS: Add myself to Write After section.
10321
10322 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10323
10324 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10325
10326 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10327
10328 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10329 (m68hc11_add_reggroups): New function.
10330 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10331 (m68hc11_gdbarch_init): Install the reggroups.
10332 (_initialize_m68hc11_tdep): Initialize them.
10333
10334 2003-02-21 James E Wilson <wilson@tuliptree.org>
10335
10336 * MAINTAINERS: Update my email address.
10337
10338 2003-02-21 David Carlton <carlton@math.stanford.edu>
10339
10340 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10341
10342 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10343
10344 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10345 * symtab.h: Add opaque declarations of struct axs_value and
10346 struct agent_expr.
10347 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10348 (struct location_funcs): New type.
10349 (struct symbol): Add "loc" to aux_value.
10350 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10351 * dwarf2read.c: Include "dwarf2expr.h".
10352 (dwarf2_symbol_mark_computed): New function.
10353 (read_func_scope): Use it.
10354 (var_decode_location): New function.
10355 (new_symbol): Use it.
10356 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10357
10358 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10359 (dwarf2expr_h, dwarf2loc_h): New variables.
10360 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10361 (dwarf2expr.o, dwarf2loc.o): New rules.
10362 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10363 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10364 LOC_COMPUTED_ARG.
10365 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10366 * m2-exp.y (yylex): Likewise.
10367 * printcmd.c (address_info, print_frame_args): Likewise.
10368 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10369 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10370 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10371 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10372 * symtab.c (lookup_block_symbol): Likewise.
10373
10374 2003-02-20 Adam Fedor <fedor@gnu.org>
10375
10376 * symtab.h: Remove objc_specific struct
10377 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10378 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10379 Have language_objc use cplus_specific struct.
10380
10381 2003-02-20 Tom Tromey <tromey@redhat.com>
10382
10383 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10384 TYPE_NAME, when printing a String value. PR java/1075.
10385
10386 2003-02-20 Adam Fedor <fedor@gnu.org>
10387
10388 * objc-lang.h (find_methods): Remove declaration.
10389 * objc-lang.c (find_methods): Make static.
10390
10391 2003-02-20 Christopher Faylor <cgf@redhat.com>
10392
10393 * win32-nat.c (get_image_name): Check return value from
10394 ReadProcessMemory.
10395 (child_xfer_memory): Ditto.
10396
10397 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10398
10399 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10400 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10401 '${exec_prefix}' (in addition to the expansion thereof) as
10402 relocatable.
10403 * configure: Rebuilt.
10404
10405 2003-02-20 David Carlton <carlton@math.stanford.edu>
10406
10407 * symtab.c (search_symbols): Revert the search_symbols part of my
10408 2002-12-23 patch. Add comment.
10409
10410 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10411
10412 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10413 * dbxread.c (elfstab_build_psymtabs): Don't call
10414 install_minimal_symbols.
10415 (stabsect_build_psymtabs): Likewise.
10416 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10417 earlier.
10418 * somread.c (som_symfile_read): Call install_minimal_symbols
10419 and do_cleanups earlier.
10420 * nlmread.c (nlm_symfile_read): Likewise.
10421 * mdebugread.c (elfmdebug_build_psymtabs): Call
10422 install_minimal_symbols and make appropriate cleanups.
10423
10424 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10425
10426 * solib.c (reload_shared_libraries): New function.
10427 (_initialize_solib): Add callbacks for ``set solib-search-path''
10428 and ``set solib-absolute-prefix''.
10429
10430 2003-02-20 David Carlton <carlton@math.stanford.edu>
10431
10432 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10433 expand comment.
10434 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10435 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10436 * ada-typeprint.c (ada_typedef_print): Ditto.
10437 * ax-gdb.c (gen_var_ref): Ditto.
10438 * breakpoint.c (print_one_breakpoint): Ditto.
10439 * buildsym.c (finish_block): Ditto.
10440 * c-valprint.c (c_val_print): Ditto.
10441 * expprint.c (print_subexp): Ditto.
10442 * findvar.c (locate_var_value): Ditto.
10443 * infcmd.c (jump_command): Ditto.
10444 * linespec.c (decode_line_2, decode_compound): Ditto.
10445 * maint.c (maintenance_translate_address): Ditto.
10446 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10447 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10448 Ditto.
10449 * p-valprint.c (pascal_val_print): Ditto.
10450 * stabsread.c (define_symbol): Ditto.
10451 * stack.c (print_frame, frame_info, print_block_frame_locals)
10452 (print_frame_arg_vars, return_command): Ditto.
10453 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10454 * symmisc.c (print_symbol): Ditto.
10455 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10456 (compare_search_syms, print_symbol_info, print_msymbol_info)
10457 (rbreak_command): Ditto.
10458 * tracepoint.c (tracepoints_info): Ditto.
10459 * typeprint.c (typedef_print): Ditto.
10460 * valops.c (value_of_variable, hand_function_call): Ditto.
10461 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10462 * ada-typeprint.c: Update Copyright.
10463 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10464 * tracepoint.c, cli/cli-cmds.c: Ditto.
10465
10466 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10467
10468 * frame.c (generic_unwind_get_saved_register): Make non-static.
10469 * frame.h (generic_unwind_get_saved_register): Declare.
10470 * mips-tdep.c (read_next_frame_reg): Fetch register from
10471 current regcache when frame is NULL.
10472 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10473 that must be NULL.
10474 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10475 instead of frame_register_unwind().
10476
10477 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10478
10479 * remote-sim.c (gdbsim_insert_breakpoint)
10480 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10481 code.
10482
10483 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10484
10485 * remote.c (_initialize_remote): Add commands "set/show remote
10486 hardware-watchpoint-limit" and "set/show remote
10487 hardware-breakpoint-limit".
10488 (remote_hw_watchpoint_limit): Initialize to -1.
10489 (remote_hw_breakpoint_limit): Ditto.
10490 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10491
10492 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10493
10494 * coff-pe-read.c: New file - support reading of minimal symbols from a
10495 portable executable using the export table.
10496 * coff-pe-read.h: New file.
10497 * coffread.c: Include coff-pe-read.h.
10498 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10499 debugging symbols found.
10500 * Makefile.in (SFILES): Add coff-pe-read.o.
10501 (coff_pe_read_h): Define.
10502 (COMMON_OBS): Add coff-pe-read.o.
10503 (coffread.o): Add coff_pe_read_h dependency.
10504 (coff-pe-read.o): New target.
10505
10506 2003-02-19 David Carlton <carlton@math.stanford.edu>
10507
10508 * Makefile.in (SFILES): Add block.c.
10509 (block_h): New.
10510 (COMMON_OBS): Add block.o.
10511 (block.o): New.
10512 (x86-64-tdep.o): Add $(block_h).
10513 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10514 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10515 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10516 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10517 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10518 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10519 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10520 * value.h: Add opaque declaration for struct block.
10521 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10522 * ada-lang.h: Ditto.
10523 * x86-64-tdep.c: #include "block.h"
10524 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10525 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10526 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10527 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10528 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10529 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10530 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10531 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10532 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10533 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10534 * symtab.c (block_function): Ditto.
10535 (contained_in): Ditto.
10536 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10537 block.h. Add opaque declaration for struct block.
10538 * symtab.h: Move block_function and contained_in declarations to
10539 block.h. Add opaque declarations for struct block, struct
10540 blockvector.
10541 (struct block): Move to block.h.
10542 (struct blockvector): Ditto.
10543 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10544 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10545 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10546 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10547 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10548 Ditto.
10549 * block.c: New file.
10550 * block.h: New file.
10551
10552 2003-02-19 Theodore A. Roth <troth@openavr.org>
10553
10554 * avr-tdep.c (avr_extract_return_value): Remove function.
10555 (avr_store_return_value): Remove function.
10556 (avr_extract_struct_value_address): Remove function.
10557 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10558
10559 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10560
10561 * rs6000-tdep.c: Include "gdb_assert.h".
10562 (registers_e500): Add "acc" and "spefscr".
10563 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10564 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10565 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10566 really is "r0".
10567 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10568
10569 2003-02-18 Keith Seitz <keiths@redhat.com>
10570
10571 * Makefile.in: Add gdbtk-interps.c.
10572
10573 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10574
10575 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10576 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10577
10578 2003-02-18 Andrew Cagney <cagney@redhat.com>
10579
10580 * symtab.h (struct objfile): Add opaque declaration.
10581
10582 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10583
10584 From Jim Ingham <jingham@apple.com>:
10585 * dbxread.c (process_one_symbol): Use last_function_start rather
10586 than function_start_offset to find the real beginning of the
10587 current function. The latter is just the text section offset on
10588 some systems, the former is always the real function start.
10589
10590 2003-02-17 Andrew Cagney <cagney@redhat.com>
10591
10592 * configure.in: Revert ${target} != ${host}.
10593
10594 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10595
10596 * configure.in (Makefile): Use the test ${target} != ${host},
10597 instead of the absence of the "nm.h" file, to determine of the
10598 configuration non-native.
10599 * configure: Regenerate.
10600
10601 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10602
10603 From Brian Ford <ford@vss.fsi.com>
10604
10605 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10606 conditionalize tui_active test.
10607 (lookup_cmd_1): Ditto.
10608
10609 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10610
10611 * configure.in: Add check for _etext.
10612 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10613 available.
10614 * config.in, configure: regenerated.
10615
10616 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10617
10618 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10619
10620 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10621
10622 * main.c (tui_version): Delete variable.
10623 (captured_main): When --tui, set interpreter_p to "tui" instead of
10624 enabling tui_version.
10625 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10626 tui_version.
10627 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10628 * cli/cli-cmds.c (disassemble_command): Ditto.
10629 * defs.h (tui_version): Delete declaration.
10630 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10631 (tui-interp.o): Add rules.
10632 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10633
10634 2003-02-14 Christopher Faylor <cgf@redhat.com>
10635
10636 * win32-nat.c (register_loaded_dll): Correctly set address range for
10637 just-loaded dll.
10638
10639 2003-02-12 Jason Molenda (jmolenda@apple.com)
10640
10641 * symmisc.c (print_objfile_statistics): Include information about
10642 the number of psymtabs and symtabs in each object file.
10643
10644 2003-02-13 Keith R Seitz <keiths@redhat.com>
10645
10646 * main.h (struct captured_main_args): Add interpreter_p.
10647 * main.c (captured_main): Initialize interpreter_p from context.
10648 * gdb.c (main): Set interpreter_p argument.
10649 * Makefile.in (gdb.o): Add dependency for interps.h.
10650
10651 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10652
10653 * event-top.c (cli_command_loop): Delete declaration.
10654 (_initialize_event_loop): Delete function setting event_loop_hook.
10655 * event-top.h (cli_command_loop): Declare. Update copyright.
10656 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10657 * interps.c (current_interp_command_loop): When event_loop_p, call
10658 cli_command_loop.
10659
10660 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10661
10662 * interps.h (interp_command_loop_ftype): Change return type to
10663 void.
10664
10665 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10666
10667 * x86-64-tdep.c (x86_64_extract_return_value)
10668 (x86_64_store_return_value): Use regcache instead of regbuf.
10669 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10670 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10671
10672 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10673
10674 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10675 * aclocal.m4: Regenerate.
10676 * configure: Regenerate.
10677
10678 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10679 TCL_LD_SEARCH_FLAGS.
10680
10681 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10682
10683 * dwarf2cfi.c: Reindented.
10684
10685 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10686
10687 * interps.c (clear_interpreter_hooks): Convert function definition
10688 to ISO C.
10689
10690 2003-02-07 David Carlton <carlton@math.stanford.edu>
10691
10692 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10693
10694 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10695
10696 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10697 (struct type): ...to here.
10698 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10699 field.
10700 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10701 (replace_type): Set length on all type variants for a given type.
10702
10703 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10704
10705 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10706 <sys/stat.h>.
10707 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10708
10709 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10710
10711 * Makefile.in (symm-nat.o): Update dependencies.
10712 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10713 (lynx-nat.o, ia64-linux-nat.): Ditto.
10714 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10715 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10716 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10717
10718 * Makefile.in (inflow_h): Define.
10719 (procfs.o, inflow.o, procfs.o): Update dependencies.
10720 * inftarg.c (child_stop): Delete extern declaration of
10721 inferior_process_group. Include "inflow.h".
10722 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10723 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10724 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10725 (our_process_group, inferior_process_group): Extern declarations.
10726
10727 * procfs.c: Include "gdb_assert.h".
10728
10729 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10730 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10731 * jv-typeprint.c (java_type_print_base): Ditto.
10732 * typeprint.c (typedef_print): Eliminate STREQ.
10733 * cli/cli-script.c (define_command, define_command): Ditto.
10734 * main.c (captured_main): Ditto.
10735 * values.c (lookup_internalvar): Ditto.
10736 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10737 within `if' conditional.
10738 * linespec.c (decode_line_2): Ditto.
10739 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10740 (bfd_openw_with_cleanup): Ditto.
10741
10742 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10743
10744 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10745 legacy_extract_return_value and store_return_value to
10746 legacy_return_value.
10747
10748 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10749
10750 * win32-nat.c (get_relocated_section_addrs): New function. Find
10751 section load addresses for symbol handling in relocated DLLs.
10752 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10753
10754 2003-02-05 Fred Fish <fnf@intrinsity.com>
10755
10756 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10757 '=' and '!='.
10758 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10759 with '&' and '=='.
10760 (angel_RDI_info): Ditto.
10761 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10762 with '&' and '!='.
10763 (threads_continue_all_with_signals): Ditto.
10764
10765 2003-02-05 Jim Ingham <jingham@apple.com>
10766 Keith Seitz <keiths@redhat.com>
10767 Elena Zannoni <ezannoni@redhat.com>
10768 Andrew Cagney <ac131313@redhat.com>
10769
10770 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10771 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10772 (SUBDIR_MI_OBS): Add "mi-interp.o".
10773 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10774 (SFILES): Add "interps.c".
10775 (COMMON_OBS): Add "interps.o".
10776 (interps_h, mi_main_h): Define.
10777 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10778 (mi-main.o, main.o, event-top.o): Update dependencies.
10779 * cli/cli-interp.c: New file.
10780 * interps.h, interps.c: New files.
10781 * top.c: (gdb_init): Don't install the default interpreter, handed
10782 by captured_main.
10783 * main.c: Include "interps.h".
10784 (interpreter_p): Note that it should malloc'ed.
10785 (captured_command_loop): Call current_interp_command_loop.
10786 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10787 xfree and xstrdup when updating interpreter_p. Install the
10788 default interpreter. Add hack to stop mi1's copyright notice
10789 being encoded.
10790 * event-top.h (gdb_setup_readline): Declare.
10791 (gdb_disable_readline): Declare.
10792 * event-top.c: Include "interps.h".
10793 (display_gdb_prompt): Call current_interp_display_prompt_p.
10794 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10795 gdb_stdlog, and gdb_stdtarg.
10796 (_initialize_event_loop): Don't call gdb_setup_readline.
10797 * cli-out.c (cli_out_set_stream): New function.
10798 * cli-out.h (cli_out_set_stream): Declare.
10799
10800 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10801
10802 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10803 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10804 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10805 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10806 config/i386/i386v42mp.mt: Removed.
10807
10808 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10809
10810 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10811 GDB_OSABI_SOLARIS.
10812
10813 2003-02-05 Michael Chastain <mec@shout.net>
10814
10815 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10816 2.12.1 and earlier versions.
10817
10818 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10819
10820 Remove orphaned hosts, targets and files.
10821 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10822 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10823 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10824 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10825 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10826 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10827 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10828 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10829 * config/sparc/tm-sp64sim.h: Delete.
10830 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10831 hosts.
10832 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10833 mips*-dec-mach3* targets.
10834
10835 2003-02-04 Michael Chastain <mec@shout.net>
10836
10837 * NEWS: Fix typo: sepcifying -> specifying.
10838
10839 2003-02-04 Michael Chastain <mec@shout.net>
10840
10841 * dwarfread.c: Add documentation on the state of dwarf-1,
10842 looking towards obsoletion.
10843
10844 2003-02-03 Michael Chastain <mec@shout.net>
10845
10846 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10847 gdb/testsuite/gdb.c++/pr-1023.exp.
10848
10849 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10850
10851 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10852 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10853
10854 * utils.c (init_page_info): Delete reference to MPW in comments.
10855 * main.c (captured_main): Delete #ifdef MPW.
10856
10857 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10858
10859 * NEWS: Note that the m32r-*-elf* is obsolete.
10860 * monitor.c (monitor_expect): Obsolete reference to m32r.
10861 * configure.tgt: Mark m32r-*-elf* as obsolete.
10862 * MAINTAINERS: Mark m32k as obsolete.
10863 * m32r-rom.c: Obsolete file.
10864 * config/m32r/m32r.mt: Obsolete file.
10865 * config/m32r/tm-m32r.h: Obsolete file.
10866 * m32r-stub.c: Obsolete file.
10867 * m32r-tdep.c: Obsolete file.
10868
10869 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10870
10871 * NEWS: Mention that the z8k-zilog-none is obsolete.
10872 * MAINTAINERS: Mark z8k as obsolete.
10873 * configure.tgt: Obsolete the z8k-*-coff* target.
10874 * config/z8k/z8k.mt: Obsolete file.
10875 * config/z8k/tm-z8k.h: Obsolete file.
10876 * z8k-tdep.c: Obsolete file.
10877
10878 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10879
10880 * NEWS: Mention that the mn10200-elf is obsolete.
10881 * configure.tgt: Obsolete mn10200-*-* target.
10882 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10883 mention that the mn10200 is obsolete.
10884 * breakpoint.h: Ditto.
10885 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10886 * config/mn10200/mn10200.mt: Obsolete file.
10887 * config/mn10200/tm-mn10200.h: Obsolete file.
10888 * mn10200-tdep.c: Obsolete file.
10889
10890 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10891
10892 * MAINTAINERS: Mark h8500 as obsolete.
10893 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10894 * findvar.c (value_from_register): Ditto.
10895 * h8500-tdep.c: Mark file as obsolete.
10896 * config/h8500/h8500.mt: Ditto.
10897 * config/h8500/tm-h8500.h: Ditto.
10898 * NEWS: Mention that h8500 is obsolete.
10899
10900 2003-02-04 David Carlton <carlton@math.stanford.edu>
10901
10902 * objfiles.c (allocate_objfile): Always set name. Add comment at
10903 start of function.
10904 * jv-lang.c (get_dynamics_objfile): Add comment.
10905
10906 2003-02-04 David Carlton <carlton@math.stanford.edu>
10907
10908 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10909 * printcmd.c (build_address_symbolic): Replace uses of
10910 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10911 SYMBOL_NAME, and asm_demangle.
10912 Update copyright.
10913
10914 2003-02-04 David Carlton <carlton@math.stanford.edu>
10915
10916 * linespec.c (decode_compound): Extract code into
10917 lookup_prefix_sym.
10918 (lookup_prefix_sym): New function.
10919
10920 2003-02-04 David Carlton <carlton@math.stanford.edu>
10921
10922 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10923 FLOAT_COERCION_BADNESS.
10924 * gdbtypes.c (rank_one_type): Replace all uses of
10925 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10926
10927 2003-02-04 Jim Blandy <jimb@redhat.com>
10928
10929 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10930 section, let dwarf_macinfo_section point to it, not
10931 dwarf_loc_section.
10932
10933 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10934
10935 Pointed out by Anton Blanchard <anton@samba.org>.
10936 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10937 (ppc_linux_at_sigtramp_return_path): Use it.
10938
10939 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10940
10941 * defs.h (streq): Add prototype.
10942 * utils.c (streq): New function.
10943
10944 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10945 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10946 * mdebugread.c (new_symbol): Likewise.
10947 * stabsread.c (define_symbol): Likewise.
10948 * coffread.c (process_coff_symbol): Likewise.
10949 * dwarfread.c (new_symbol): Likewise.
10950
10951 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10952 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10953 here.
10954 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10955 SYMBOL_INIT_DEMANGLED_NAME.
10956 * objfiles.c: Include "hashtab.h".
10957 (allocate_objfile): Call htab_set_functions_ex for the
10958 demangled_names_hash.
10959 (free_objfile): Call htab_delete for the demangled_names_hash.
10960 * objfiles.h (struct htab): Add declaration.
10961 (struct objfile): Add demangled_names_hash.
10962 * symfile.c: Include "hashtab.h".
10963 (reread_symbols): Call htab_delete for the demangled_names_hash.
10964 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10965 SYMBOL_NAME in the bcache.
10966 * symtab.c: Include "hashtab.h". Update comments.
10967 (create_demangled_names_hash, symbol_set_names): New functions.
10968 (symbol_find_demangled_name): New function, broken out from
10969 symbol_init_demangled_names.
10970 (symbol_init_demangled_names): Use it.
10971 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10972 (SYMBOL_SET_NAMES): New macro.
10973 (symbol_set_names): Add prototype.
10974
10975 2003-02-03 Jim Blandy <jimb@redhat.com>
10976
10977 Use a single, consistent representation for an empty minimal
10978 symbol table in an objfile.
10979 * objfiles.c (terminate_minimal_symbol_table): New function.
10980 (allocate_objfile): Call it.
10981 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10982 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10983 non-NULL.
10984 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10985 objfile has minimal symbols, compare minimal_symbol_count to zero,
10986 instead of comparing msymbols with NULL.
10987 * objfiles.c (have_minimal_symbols): Same.
10988 * solib-sunos.c (solib_add_common_symbols): Call
10989 terminate_minimal_symbol_table.
10990 * symfile.c (reread_symbols): Same.
10991
10992 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10993
10994 * s390-tdep.c (s390_address_class_type_flags)
10995 (s390_address_class_type_flags_to_name)
10996 (s390_address_class_name_to_type_flags): New functions.
10997 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10998 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10999
11000 2003-02-03 Michael Snyder <msnyder@redhat.com>
11001
11002 * arm-tdep.c: Fix spell-o in comment.
11003
11004 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11005
11006 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11007 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11008 error messages to contain BFD filename.
11009
11010 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11011
11012 Fix PR gdb/742 gdb/743 gdb/877
11013 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11014 (do_mixed_source_and_assembly): Use
11015 make_cleanup_ui_out_tuple_begin_end and
11016 make_cleanup_ui_out_tuple_begin_end.
11017 (do_mixed_source_and_assembly): Ditto.
11018 * thread.c (do_captured_list_thread_ids): Ditto.
11019 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11020 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11021 ui_out_tuple_end): Delete prototypes.
11022 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11023 ui_out_list_end, ui_out_tuple_end): Delete.
11024
11025 From Kevin Buettner <kevinb@redhat.com>:
11026 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11027 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11028 (do_cleanup_table_end): New functions.
11029 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11030 Use cleanups to invoke_ui_out_tuple_end().
11031 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11032 * cli/cli-setshow.c (cmd_show_list): Use
11033 make_cleanup_ui_out_tuple_begin_end.
11034
11035 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11036
11037 * frame.c (frame_unwind_register): New function.
11038 (frame_unwind_unsigned_register): Use.
11039 (frame_unwind_signed_register): Use.
11040 (frame_read_register): New function.
11041 * frame.h (frame_unwind_register): Declare.
11042 (frame_read_register): Declare.
11043
11044 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11045 and frame_unwind_register instead of read_memory, write_register
11046 and deprecated_write_register_bytes.
11047
11048 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11049
11050 * frame.h: Note that namelen can be negative.
11051 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11052 NAME's length.
11053
11054 * NEWS: Mention that the d10v's `regs' command is deprecated.
11055 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11056 (d10v_print_registers_info): New function.
11057 (show_regs): Call d10v_print_registers_info.
11058 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11059
11060 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11061
11062 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11063 lost in the previous patch.
11064
11065 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11066
11067 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11068 * stack.c (print_frame_info_base): Output complete FRAME tuple
11069 for synthesized frames.
11070
11071 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11072
11073 * mips-nat.c (zerobuf): Delete.
11074 (fetch_inferior_registers): Alloc local zerobuf.
11075 (fetch_core_registers): Alloc local zerobuf.
11076 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11077 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11078 * thread-db.c (thread_db_store_registers): Ditto.
11079 * sh-tdep.c (sh_do_register): Ditto.
11080 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11081 * remote-sim.c (gdbsim_store_register): Ditto.
11082 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11083 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11084 * monitor.c (monitor_supply_register): Ditto.
11085 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11086 * mips-nat.c (fetch_inferior_registers): Ditto.
11087 * m68klinux-nat.c (fetch_register): Ditto.
11088 * lynx-nat.c (fetch_inferior_registers): Ditto.
11089 (fetch_inferior_registers): Ditto.
11090 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11091 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11092 (hpux_thread_store_registers): Ditto.
11093 * hppah-nat.c (fetch_register): Ditto.
11094 * hppab-nat.c (fetch_register): Ditto.
11095 * hppa-tdep.c (pa_register_look_aside): Ditto.
11096 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11097 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11098
11099 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11100
11101 * gdbarch.sh: Explictly specify all method levels. When a
11102 variable with an empty level, provide a non-multi-arch default.
11103 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11104 * gdbarch.h: Re-generate.
11105 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11106 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11107
11108 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11109
11110 * defs.h (host_pointer_to_address): Delete declaration.
11111 (address_to_host_pointer): Delete declaration.
11112 * utils.c (host_pointer_to_address): Delete function.
11113 (address_to_host_pointer): Delete function.
11114 * procfs.c (procfs_address_to_host_pointer): New function.
11115 * procfs.c (proc_set_watchpoint): Use.
11116 (procfs_can_use_hw_breakpoint): Update comments.
11117 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11118 (som_solib_add): Use.
11119 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11120 * hppa-tdep.c (unwind_command): Use.
11121
11122 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11123
11124 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11125 strlen d_name.
11126
11127 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11128 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11129 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11130 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11131 (define_symbol): Update.
11132 * symfile.c (generic_load): Remove references to nindy.
11133 * symtab.c: Remove references to nindy.
11134
11135 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11136
11137 * infcmd.c (print_float_info): Delete code conditional on
11138 FLOAT_INFO.
11139 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11140 * config/m68k/nm-apollo68b.h: Ditto.
11141 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11142 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11143 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11144
11145 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11146
11147 * config/i386/tm-i386os9k.h: Removed.
11148
11149 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11150 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11151 they're identical to i[3456]86-*-sysv* now.
11152 * config/i386/i386v32.mh: Removed.
11153 * config/i386/xm-i386v32.h: Removed.
11154 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11155
11156 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11157
11158 * config/i386/i386dgux.mh: Removed.
11159 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11160
11161 * configure.in: Fix typo.
11162 * configure: Regenerated.
11163
11164 2003-01-31 David Carlton <carlton@math.stanford.edu>
11165
11166 * dwarf2read.c (dwarf2_locate_sections): Set
11167 dwarf_ranges_section.
11168
11169 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11170
11171 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11172 * utils.c: Update comments documenting legitimate uses of PTR.
11173
11174 * utils.c: Re-indent.
11175
11176 * config/djgpp/fnchange.lst: Delete nindy files.
11177 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11178 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11179 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11180 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11181 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11182 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11183 * Makefile.in (init.c): Remove nindy references.
11184 (saber_gdb): Delete rule.
11185 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11186 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11187 and a68v-nat.c.
11188 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11189 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11190 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11191 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11192 nindy-share/stop.h.
11193 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11194 * saber.suppress: Delete file.
11195
11196 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11197
11198 * dbxread.c (stabs_data): New static variable.
11199 (fill_symbuf): Support an in-memory buffer for stabs data.
11200 (stabs_seek): New function.
11201 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11202 (read_ofile_symtab): Use stabs_seek.
11203 (elfstab_build_psymtabs): Take an asection* instead of
11204 an offset and size. Relocate the stabs data if necessary.
11205 Save the section* for dbx_psymtab_to_symtab.
11206 * dwarf2read.c: Add section variables for each debug section.
11207 (dwarf2_locate_sections): Fill them in.
11208 (dwarf2_read_section): Take an asection* argument.
11209 Relocate the section contents if necessary.
11210 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11211 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11212 it to dwarf2_read_section.
11213 (dwarf2_build_frame_info): Update callers.
11214 * elfread.c (elf_symfile_read): Update call to
11215 elfstab_build_psymtabs.
11216 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11217 (DBX_STAB_SECTION): New macro.
11218 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11219 * symfile.c (symfile_dummy_outputs): New function.
11220 (symfile_relocate_debug_section): New function.
11221 * symfile.h (symfile_relocate_debug_section): Add prototype.
11222
11223 2003-01-31 Richard Henderson <rth@redhat.com>
11224
11225 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11226 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11227 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11228 * alpha-tdep.c (alpha_register_name): Add "unique".
11229 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11230 (ALPHA_UNIQUE_REGNUM): New.
11231 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11232
11233 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11234
11235 * README: Remove reference to Ericsson 1800 monitor.
11236 * Makefile.in (remote-es.o): Delete rule.
11237 (ALLDEPFILES): Delete remote-es.c.
11238 * remote-es.c: Delete file.
11239 * config/m68k/es1800.mt: Delete file.
11240 * config/djgpp/fnchange.lst: Update.
11241 * configure.tgt: Delete m68*-ericsson-* target.
11242
11243 2003-01-31 Adam Fedor <fedor@gnu.org>
11244
11245 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11246 Remove duplicate/shadowing variable of same name.
11247
11248 2003-01-30 Jim Blandy <jimb@redhat.com>
11249
11250 * symfile.c (find_separate_debug_file): Assert that the objfile's
11251 directory name we compute ends with a slash, and then assume that
11252 that's so everywhere we use it.
11253
11254 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11255
11256 * valops.c (value_assign): Flush frame cache after stores to memory
11257 also.
11258
11259 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11260
11261 * Makefile.in (mon960-rom.o): Delete rule.
11262 * mon960-rom.c: Delete file.
11263
11264 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11265
11266 * d10v-tdep.c: Include "frame-unwind.h".
11267 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11268 list.
11269 (next_addr, uses_frame): Delete.
11270 (struct d10v_unwind_cache): Define.
11271 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11272 Use info instead of next_addr and uses_frame globals.
11273 (d10v_frame_init_saved_regs): Delete function.
11274 (d10v_init_extra_frame_info): Delete function.
11275 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11276 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11277 init_frame_pc or frame_saved_pc.
11278 (d10v_pop_frame): Delete function.
11279 (do_d10v_pop_frame): Delete function.
11280 (d10v_frame_chain): Delete function.
11281 (d10v_frame_chain_valid): Delete function.
11282 (d10v_frame_pc_unwind): New function.
11283 (d10v_frame_id_unwind): New function.
11284 (saved_regs_unwinder): New function.
11285 (d10v_frame_register_unwind): New function.
11286 (d10v_frame_pop): New function.
11287 (d10v_frame_unwind): New variable.
11288 (d10v_frame_p): New function.
11289 (d10v_frame_saved_pc): Delete function.
11290 * Makefile.in (d10v-tdep.o): Update dependencies.
11291
11292 2003-01-30 J. Brobecker <brobecker@gnat.com>
11293
11294 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11295 causing some regressions due to a change in the default value
11296 for this macro.
11297
11298 2003-01-29 Richard Henderson <rth@redhat.com>
11299 Elena Zannoni <ezannoni@redhat.com>
11300 Daniel Jacobowitz <drow@mvista.com>
11301
11302 Fix PR gdb/961.
11303 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11304 variables.
11305 (RANGES_SECTION): New.
11306 (dwarf_ranges_buffer): New variable.
11307 (struct comp_unit_head): Add member "die".
11308 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11309 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11310 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11311 (dwarf2_locate_sections): Likewise.
11312 (dwarf2_build_psymtabs): Read .debug_ranges.
11313 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11314 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11315 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11316 Look for DW_AT_ranges and return the bounding box.
11317
11318 2003-01-29 Brian Ford <ford@vss.fsi.com>
11319
11320 * win32-nat.c (cygwin_pid): Removed as unused.
11321 (child_attach): Try fall back to Cygwin pid.
11322
11323 2003-01-29 Jim Blandy <jimb@redhat.com>
11324
11325 * objfiles.h (struct objfile): Doc fix.
11326
11327 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11328
11329 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11330 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11331 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11332 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11333 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11334 (FRAME_SAVED_PC): Change to a function with predicate.
11335 * gdbarch.h, gdbarch.c: Re-generate.
11336
11337 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11338
11339 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11340
11341 * complaints.c (complain): Delete function.
11342 * complaints.h (struct deprecated_complaint): Delete definition.
11343 (complain): Delete declaration.
11344
11345 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11346
11347 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11348 dummy frames.
11349
11350 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11351
11352 * sentinel-frame.h, sentinel-frame.c: New files.
11353 * Makefile.in (frame.o): Update dependencies.
11354 (SFILES): Add sentinel-frame.c.
11355 (sentinel_frame_h): Define.
11356 (COMMON_OBS): Add sentinel-frame.o.
11357 (sentinel-frame.o): Specify dependencies.
11358 * frame.c: Include "sentinel-frame.h".
11359 (frame_register_unwind): Rewrite assuming that there is always a a
11360 ->next frame.
11361 (frame_register, generic_unwind_get_saved_register): Ditto.
11362 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11363 (create_sentinel_frame, unwind_to_current_frame): New functions.
11364 (get_current_frame): Rewrite using create_sentinel_frame and
11365 unwind_to_current_frame. When possible, always create a frame.
11366 (create_new_frame): Set next to the sentinel frame.
11367 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11368 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11369 ID cache when necessary.
11370 (frame_saved_regs_id_unwind): Use frame_relative_level.
11371 (deprecated_generic_get_saved_register): Use frame_relative_level,
11372 get_frame_saved_regs, get_frame_pc, get_frame_base and
11373 get_next_frame.
11374 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11375 frame_register.
11376
11377 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11378
11379 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11380
11381 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11382
11383 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11384 (maintenance_set_profile_cmd): Use error () instead of warning ().
11385
11386 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11387
11388 * configure.in: Check that -pg works if using --enable-profiling.
11389 Check for monstartup and _mcleanup regardless of --enable-profiling.
11390 * maint.c: Check for monstartup and _mcleanup before using them.
11391 * config.in: Regenerated.
11392 * configure: Regenerated.
11393
11394 2003-01-24 Nick Clifton <nickc@redhat.com>
11395
11396 * Add sh2e support:
11397
11398 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11399
11400 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11401 (sh2e_show_regs): New.
11402 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11403 * config/sh/tm-sh.h: Added sh2e to comments.
11404
11405 2003-01-23 Jim Blandy <jimb@redhat.com>
11406
11407 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11408 symbols found)" message here; we haven't checked for a separate
11409 debug info file yet, so we don't know yet.
11410 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11411 we've looked everywhere. Also, there's no need to print a special
11412 message when we're loading the separate debug info file: the one
11413 symbol_file_add prints is fine.
11414
11415 2003-01-23 Alexander Larsson <alexl@redhat.com>
11416 Jim Blandy <jimb@redhat.com>
11417
11418 Add support for executables whose debug info has been separated
11419 out into a separate file, leaving only a link behind.
11420 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11421 and separate_debug_objfile_backlink.
11422 (put_objfile_before): New declaration.
11423 * symfile.c: #include "filenames.h".
11424 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11425 debug info in a separate file, read that, too. Save the addrs
11426 argument, so we can use it again to read the separated debug info;
11427 syms_from_objfile modifies the table we pass it.
11428 (reread_symbols): After re-reading an objfile, call
11429 reread_separate_symbols to refresh its separate debug info
11430 objfile, if it has one.
11431 (reread_separate_symbols, find_separate_debug_file,
11432 get_debug_link_info, separate_debug_file_exists): New functions.
11433 (debug_file_directory): New global var.
11434 (_initialize_symfile): Initialize debug_file_directory, and
11435 provide the new `set debug-file-directory' command to let the user
11436 change it.
11437 * objfiles.c (free_objfile): If this objfile has its debug info in
11438 a separate objfile, free that one too. If this is itself a
11439 separate debug info objfile, clear our parent's backlink.
11440 (put_objfile_before): New function.
11441 * utils.c (gnu_debuglink_crc32): New function.
11442 * defs.h (gnu_debuglink_crc32): New declaration.
11443 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11444 * configure.in: Handle --with-separate-debug-dir config option.
11445 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11446 * acconfig.h (DEBUGDIR): New macro.
11447 * configure, aclocal.m4, config.in: Regenerated.
11448
11449 2003-01-22 Jim Blandy <jimb@redhat.com>
11450
11451 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11452 like the old symbol_file_add, but taking new arguments: you can
11453 now pass in either a `struct section_addr_info' list to say where
11454 each section is loaded, or a `struct section_offsets' table. Pass
11455 these new arguments through to syms_from_objfile as appropriate.
11456 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11457 with the appropriate quiescent values for the new arguments.
11458
11459 * symfile.c: #include "gdb_assert.h".
11460 (syms_from_objfile): Add the ability to pass in a section offset
11461 table directly, as an alternative to the section_addr_info table.
11462 Document arguments better.
11463 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11464 * symfile.h (syms_from_objfile): Update declaration.
11465 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11466 syms_from_objfile.
11467 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11468
11469 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11470
11471 Original patch by Tom Tromey <tromey@cygnus.com> and
11472 Jason Molenda <jmolenda@apple.com>.
11473 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11474 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11475 * NEWS: Mention profiling.
11476 * configure.in (--enable-gdbtk): Fix typo.
11477 (--enable-profiling): New. Set PROFILE_CFLAGS.
11478 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11479 Fill in function.
11480 (profiling_state): New variable.
11481 (mcleanup_wrapper): New function.
11482 (_initialize_maint): Remove NOTYET, fix call to
11483 add_setshow_boolean_cmd for "maint set profile".
11484 * configure: Regenerated.
11485
11486 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11487
11488 * Makefile.in (install-gdbtk): Install PNG images too.
11489
11490 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11491
11492 * exec.c (text_start): Delete global variable.
11493 (exec_file_attach): Make text_start local to the function.
11494 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11495 * valops.c (hand_function_call): Delete code that handles
11496 BEFORE_TEXT_END and AFTER_TEXT_END.
11497 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11498 of CALL_DUMMY_LOCATION.
11499 * gdbarch.c: Regenerate.
11500 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11501 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11502 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11503 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11504 (text_end): Delete extern declaration.
11505
11506 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11507
11508 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11509 * blockframe.c (backtrace_below_main): Move to "frame.c".
11510 (frame_chain_valid): Delete check for backtrace_below_main.
11511 (_initialize_blockframe): Delete initialization, move ``set
11512 backtrace-below-main'' command to "frame.c".
11513 (do_flush_frames_sfunc): Delete function.
11514 * frame.c: Include "command.h" and "gdbcmd.h".
11515 (frame_type_from_pc): New function.
11516 (create_new_frame): Use frame_type_from_pc.
11517 (legacy_get_prev_frame): New function.
11518 (get_prev_frame): Rewrite. When an old style frame, call
11519 legacy_get_prev_frame. Otherwize, unwind the PC first.
11520 (_initialize_frame): Add ``set backtrace-below-main'' command.
11521 * Makefile.in (frame.o): Update dependencies.
11522
11523 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11524
11525 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11526 DEPRECATED_REGISTERS_INFO.
11527
11528 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11529
11530 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11531 Maintainers'. Update `Various Maintainers'.
11532
11533 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11534
11535 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11536 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11537 Suppress actual parameters when `-'.
11538 * gdbarch.h, gdbarch.c: Regenerate.
11539
11540 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11541
11542 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11543 code handling dummy frames.
11544
11545 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11546
11547 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11548 (struct frame_unwind): Add field pop.
11549 * frame.h (frame_pop): Declare.
11550 * frame.c (frame_saved_regs_pop): New function.
11551 (trad_frame_unwinder): Add frame_saved_regs_pop.
11552 (frame_pop): New function.
11553 * dummy-frame.c (dummy_frame_pop): New function.
11554 (discard_innermost_dummy): New function.
11555 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11556 (dummy_frame_unwind): Add dummy_frame_pop.
11557 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11558 * valops.c (hand_function_call): Ditto.
11559 * stack.c (return_command): Ditto.
11560
11561 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11562
11563 * cris-tdep.c: Fix function declaration indentation.
11564 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11565 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11566 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11567 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11568 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11569 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11570
11571 2003-01-18 Michael Chastain <mec@shout.net>
11572
11573 * README (Unpacking and Installation -- quick overview):
11574 Warn against ".../gdb-5.3/gdb/configure".
11575
11576 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11577
11578 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11579 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11580 (struct frame_unwind): Declare opaque.
11581 (dummy_frame_p): Declare function.
11582 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11583 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11584 * dummy-frame.c: Include "frame-unwind.h".
11585 (dummy_frame_p): New function.
11586 (dummy_frame_unwind): New variable.
11587 * frame.c: Include "frame-unwind.h".
11588 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11589 to use the new unwind field.
11590 (set_unwind_by_pc): Delete function.
11591 (create_new_frame, get_prev_frame): Set unwind field using
11592 frame_unwind_find_by_pc.
11593 (trad_frame_unwind, trad_frame_unwinder): New variables.
11594 * frame.h (trad_frame_unwind): Declare variable.
11595 (frame_id_unwind_ftype): Delete declaration.
11596 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11597 (struct frame_unwind): Declare opaque.
11598 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11599 register_unwind with a single unwind pointer.
11600 * frame-unwind.h, frame-unwind.c: New files.
11601 * Makefile.in (SFILES): Add frame-unwind.c.
11602 (frame_unwind_h): Define.
11603 (COMMON_OBS): Add frame-unwind.o.
11604 (frame-unwind.o): Specify dependencies.
11605 (frame.o, dummy-frame.o): Update dependencies.
11606
11607 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11608
11609 * ada-valprint.c: Eliminate PTR.
11610 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11611 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11612 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11613 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11614 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11615 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11616 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11617
11618 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11619
11620 * main.c (captured_main): Don't use PTR.
11621 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11622 * gdbtypes.c (lookup_primitive_typename): Ditto.
11623 (lookup_struct_elt_type): Ditto.
11624 * f-valprint.c (info_common_command): Ditto.
11625 (list_all_visible_commons): Ditto.
11626 * jv-typeprint.c (java_type_print_base): Ditto.
11627
11628 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11629 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11630 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11631 i386-interix-nat.c and i386-interix-tdep.c. Rename
11632 m68klinux-nat.c and m68klinux-tdep.c. Rename
11633 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11634 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11635 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11636 * main.c (captured_main): Use xfree, not free.
11637
11638 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11639
11640 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11641 ID back using a parameter.
11642 * frame.c (frame_id_unwind): Update call.
11643 (frame_saved_regs_id_unwind): Update.
11644 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11645 * dummy-frame.h (struct frame_id): Add opaque declaration.
11646 (dummy_frame_id_unwind): Update declaration.
11647
11648 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11649
11650 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11651
11652 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11653
11654 * MAINTAINERS (Stephen P. Smith): Updated email address.
11655
11656 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11657
11658 Fix PR gdb/898
11659 * breakpoint.c (until_break_command): Add new argument. Use it to
11660 decide whether to stop only at the current frame or not.
11661 * breakpoint.h (until_break_command): Update prototype.
11662 * infcmd.c (until_command): Add new argument to until_break_command
11663 call.
11664 (advance_command): New function.
11665 (_initialize_infcmd): Update help string for 'until' command.
11666 Add new 'advance' command.
11667
11668 2003-01-14 David Carlton <carlton@math.stanford.edu>
11669
11670 * linespec.c (decode_line_1): Normalize comments.
11671 (set_flags): Ditto.
11672 (locate_first_half): Ditto.
11673 (decode_compound): Ditto.
11674 (symtab_from_filename): Ditto.
11675 (decode_all_digits): Ditto.
11676 (decode_dollar): Ditto.
11677 (find_methods): Ditto.
11678 (find_toplevel_char): Ditto.
11679
11680 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11681
11682 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11683 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11684 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11685 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11686 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11687 * language.c, language.h, m32r-tdep.c: Update copyright.
11688 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11689 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11690 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11691 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11692 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11693 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11694
11695 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11696
11697 * stabsread.h (process_later, resolve_cfront_continuation):
11698 Obsolete.
11699 Update copyright years.
11700 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11701 Update copyright year.
11702 * dbxread.c(struct cont_elem): Obsolete.
11703 (process_later, process_now): Obsolete functions.
11704 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11705 Update copyright year.
11706 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11707 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11708 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11709 (parse_partial_symbols): Obsolete cfront support.
11710 * stabsread.c
11711 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11712 macros.
11713 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11714 read_cfront_baseclasses, read_cfront_member_functions,
11715 resolve_cfront_continuation,read_cfront_static_fields,
11716 copy_cfront_struct_fields): Obsolete functions.
11717 (define_symbol, read_one_struct_field): Obsolete cfront support.
11718 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11719 Update Copyright year.
11720
11721 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11722
11723 * stack.c (print_frame_info, print_stack_frame_base_stub,
11724 print_stack_frame_base, show_and_print_stack_frame_stub,
11725 show_and_print_stack_frame, print_only_stack_frame_stub,
11726 print_only_stack_frame): Delete functions.
11727 (print_stack_frame_stub): Call print_frame_info instead of
11728 print_frame_info_base.
11729 (print_frame_info_base): Rename to print_frame_info.
11730 (backtrace_command_1): Call print_frame_info, instead of
11731 print_frame_info_base.
11732 (current_frame_command): Call print_stack_frame, instead of
11733 print_only_stack_frame.
11734 (frame_command): Call print_stack_frame, instead of
11735 show_and_print_stack_frame.
11736 (up_command): Ditto.
11737 (down_command): Ditto.
11738 * frame.h (print_only_stack_frame): Delete prototype.
11739 * infrun.c (normal_stop): Call print_stack_frame, instead of
11740 show_and_print_stack_frame.
11741 * thread.c (info_threads_command): Call print_stack_frame, instead
11742 of print_only_stack_frame.
11743
11744 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11745
11746 * README (Graphical interface to GDB): Update URL. Point at
11747 gdb/links/.
11748
11749 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11750 version match.
11751
11752 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11753
11754 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11755 lines.
11756
11757 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11758
11759 * thread-db.c (attach_thread): Prototype.
11760 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11761 thread information (ti), and valid flags (th_valid, ti_valid).
11762 (attach_thread): Move target_pid_to_str call to after the thread
11763 is added to GDB's list. Initialize the cache.
11764 (thread_get_info_callback, thread_db_map_id2thr)
11765 (thread_db_get_info): New functions.
11766 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11767 (thread_db_store_registers, thread_db_thread_alive)
11768 (thread_db_get_thread_local_address): Use them.
11769 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11770 of calling error() for threads in unknown state.
11771
11772 (clear_lwpid_callback): New function.
11773 (thread_db_resume): Use it to clear the cache.
11774
11775 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11776
11777 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11778 (resume_callback): Remove dead code.
11779
11780 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11781
11782 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11783 predicate.
11784 * gdbarch.h, gdbarch.c: Regenerate.
11785 * stack.c (frame_info): Only initialize the saved registers when
11786 FRAME_INIT_SAVED_REGS_P.
11787 * frame.c (frame_saved_regs_register_unwind): Assert
11788 FRAME_INIT_SAVED_REGS_P.
11789 (deprecated_generic_get_saved_register): Ditto.
11790
11791 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11792
11793 * source.c (openp): Squelch warning about "filename".
11794
11795 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11796
11797 * source.c (openp): If the file does not exist don't necessarily
11798 search the path.
11799
11800 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11801
11802 Fix PR gdb/872.
11803 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11804 (integer_types_same_name_p): New function.
11805 (rank_one_type): Use it.
11806 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11807
11808 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11809
11810 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11811 variables.
11812 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11813 * configure.in: Add --with-sysroot.
11814 * configure: Regenerated.
11815 * main.c (gdb_sysroot): New variable.
11816 (captured_main): Initialize gdb_sysroot.
11817 * defs.h (gdb_sysroot): New extern declaration.
11818 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11819
11820 2003-01-12 Michael Chastain <mec@shout.net>
11821
11822 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11823
11824 2003-01-12 Michael Chastain <mec@shout.net>
11825
11826 * top.c (print_gdb_version): Bump copyright year to 2003.
11827
11828 2003-01-12 David Carlton <carlton@bactrian.org>
11829
11830 * linespec.c (symtab_from_filename): Rename variable 's' to
11831 'file_symtab'.
11832
11833 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11834
11835 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11836 dummy frame.
11837 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11838
11839 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11840
11841 * d10v-tdep.c: Include "gdb_assert.h".
11842 (d10v_store_return_value): Rewrite to match current interface.
11843 (d10v_extract_struct_value_address): Ditto.
11844 (d10v_extract_return_value): Ditto.
11845 (d10v_gdbarch_init): Set store_restore_value,
11846 extract_struct_value_address and extract_return_value.
11847
11848 2003-01-12 J. Brobecker <brobecker@gnat.com>
11849
11850 * hpread.c (set_namestring): New procedure replacing the
11851 SET_NAMESTRING macro.
11852 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11853 by calls to set_namestring.
11854
11855 2003-01-11 J. Brobecker <brobecker@gnat.com>
11856
11857 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11858 a compilation warning.
11859 (hpread_process_one_debug_symbol): Likewise.
11860
11861 2003-01-10 David Carlton <carlton@math.stanford.edu>
11862
11863 * linespec.c (decode_line_1): Rename variable 's' to
11864 'file_symtab'.
11865 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11866 (decode_dollar): Ditto.
11867 (decode_variable): Ditto.
11868 (symbol_found): Ditto.
11869
11870 2003-01-09 Michael Chastain <mec@shout.net>
11871
11872 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11873
11874 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11875
11876 * win32-nat.c (set_process_privilege): New function.
11877 (child_attach): Call set_process_privilege() to enable the
11878 SE_DEBUG_NAME user privilege if available in process token.
11879
11880 2003-01-10 J. Brobecker <brobecker@gnat.com>
11881
11882 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11883 compilation error in the previous revision.
11884
11885 2003-01-09 David Carlton <carlton@math.stanford.edu>
11886
11887 * linespec.c: Update copyright.
11888
11889 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11890
11891 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11892 than inferior_ptid.
11893 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11894
11895 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11896
11897 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11898 Update comments.
11899 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11900 (frame_saved_regs_zalloc): Update.
11901 (frame_saved_regs_register_unwind): Update.
11902 (create_new_frame): Update.
11903 (get_prev_frame): Update.
11904 (frame_extra_info_zalloc): Update.
11905 (deprecated_get_frame_saved_regs): Update.
11906 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11907 * cris-tdep.c: Update comment.
11908
11909 * somsolib.h: Fix function indentation.
11910 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11911 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11912 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11913 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11914 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11915
11916 * infrun.c (follow_fork): Use ISO C definition.
11917 * expprint.c (print_subexp): Use xfree instead of free.
11918 * charset.c: Include "gdb_string.h" instead of <string.h>.
11919 (register_iconv_charsets): Use ISO C definition.
11920 (host_charset, target_charset): Ditto.
11921 * Makefile.in (charset.o): Update dependencies.
11922 (mi-cmd-env.o): Update dependencies.
11923
11924 2003-01-08 Andrew Cagney <cagney@redhat.com>
11925
11926 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11927 get_frame_base.
11928
11929 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11930
11931 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11932 build directories. Save edited gdb output in Mbuild.log. If a
11933 build fails, remove any final GDB executable.
11934
11935 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11936
11937 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11938 replacing hex constants with function names and stripping leading
11939 file name directory prefixes.
11940
11941 2003-01-08 Andrew Cagney <cagney@redhat.com>
11942
11943 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11944 get_frame_base.
11945
11946 2003-01-08 David Carlton <carlton@math.stanford.edu>
11947
11948 * linespec.c (decode_line_1): Move code into decode_variable.
11949 (decode_variable): New function.
11950
11951 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11952
11953 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11954
11955 2003-01-08 Andrew Cagney <cagney@redhat.com>
11956
11957 * cris-tdep.c (cris_frame_init_saved_regs): Use
11958 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11959 saved_regs buffer.
11960 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11961 (sh64_nofp_frame_init_saved_regs): Ditto.
11962 (sh_fp_frame_init_saved_regs): Ditto.
11963 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11964 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11965 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11966 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11967
11968 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11969
11970 * minsyms.c (lookup_minimal_symbol): Update comment.
11971 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11972 (lookup_minimal_symbol_solib_trampoline): Likewise.
11973
11974 2003-01-08 Andrew Cagney <cagney@redhat.com>
11975
11976 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11977 frame_relative_level.
11978
11979 * alpha-tdep.c: Use get_frame_extra_info.
11980 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11981 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11982 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11983 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11984
11985 * alpha-tdep.c: Use get_next_frame.
11986 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11987 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11988 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11989 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11990 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11991 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11992 * xstormy16-tdep.c: Ditto.
11993
11994 2003-01-07 Andrew Cagney <cagney@redhat.com>
11995
11996 * alpha-tdep.c: Use get_frame_base.
11997 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11998 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11999 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12000 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12001 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12002 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12003 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12004 * config/sparc/tm-sparc.h: Ditto.
12005
12006 2003-01-07 Andrew Cagney <cagney@redhat.com>
12007
12008 * frame.c (deprecated_get_frame_context): New function.
12009 (deprecated_set_frame_context): New function.
12010 * frame.h (deprecated_get_frame_context): Declare.
12011 (deprecated_set_frame_context): Declare.
12012 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12013 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12014
12015 2003-01-07 Andrew Cagney <cagney@redhat.com>
12016
12017 * frame.c (deprecated_set_frame_next_hack): New function.
12018 (deprecated_set_frame_prev_hack): New function.
12019 * frame.h (deprecated_set_frame_next_hack): Declare.
12020 (deprecated_set_frame_prev_hack): Declare.
12021 * mcore-tdep.c (analyze_dummy_frame): Use
12022 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12023 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12024
12025 2003-01-07 David Carlton <carlton@math.stanford.edu>
12026
12027 * linespec.c (decode_line_1): Move code into decode_dollar.
12028 (decode_dollar): New function.
12029
12030 2003-01-07 Andrew Cagney <cagney@redhat.com>
12031
12032 * arm-tdep.c (arm_init_extra_frame_info): Use
12033 deprecated_update_frame_base_hack.
12034 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12035 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12036 (fix_frame_pointer): Ditto.
12037 (mn10300_analyze_prologue): Ditto.
12038
12039 2003-01-07 Andrew Cagney <cagney@redhat.com>
12040
12041 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12042 extra_info using frame_extra_info_zalloc.
12043 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12044 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12045 (sh64_init_extra_frame_info): Ditto.
12046 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12047 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12048 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12049 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12050 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12051 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12052 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12053 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12054 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12055 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12056 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12057 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12058
12059 * mn10300-tdep.c (analyze_dummy_frame): Use
12060 deprecated_set_frame_extra_info_hack.
12061 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12062
12063 2003-01-07 J. Brobecker <brobecker@gnat.com>
12064
12065 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12066 class is not scText. These do not define "real" procedures.
12067 (parse_partial_symbols): Likewise.
12068
12069 2003-01-06 Michael Snyder <msnyder@redhat.com>
12070
12071 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12072
12073 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12074
12075 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12076 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12077 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12078 deprecated_frame_xmalloc_with_cleanup.
12079 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12080 deprecated_frame_xmalloc.
12081 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12082 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12083
12084 2003-01-06 Andrew Cagney <cagney@redhat.com>
12085
12086 * x86-64-linux-tdep.c: Include "osabi.h".
12087 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12088
12089 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12090
12091 2003-01-06 Andrew Cagney <cagney@redhat.com>
12092
12093 * MAINTAINERS (Target Instruction Set Architectures): Update
12094 arm-elf. Can be built with -Werror, has been multiarched.
12095
12096 * value.h (unpack_long): Make buffer parameter constant.
12097 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12098 * scm-lang.h (scm_parse): Ditto.
12099 * defs.h (extract_typed_address, extract_address): Ditto.
12100 (extract_long_unsigned_integer): Ditto.
12101 * inferior.h (unsigned_pointer_to_address): Ditto.
12102 (signed_pointer_to_address): Ditto.
12103 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12104 * gdbarch.h, gdbarch.c: Regenerate.
12105 * findvar.c (extract_long_unsigned_integer): Update.
12106 (extract_address): Update.
12107 (extract_typed_address): Update.
12108 (unsigned_pointer_to_address): Update.
12109 * values.c (unpack_long): Update.
12110 (unpack_double): Update.
12111 (unpack_pointer): Update.
12112 (unpack_field_as_long): Update.
12113 * d10v-tdep.c (d10v_pointer_to_address): Update.
12114 * avr-tdep.c (avr_pointer_to_address): Update.
12115 * scm-lang.c (scm_unpack): Update.
12116 * findvar.c (signed_pointer_to_address): Update.
12117
12118 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12119
12120 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12121 since it is in i386-tdep.c.
12122
12123 2003-01-06 J. Brobecker <brobecker@gnat.com>
12124
12125 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12126 failure introduced in the previous change.
12127
12128 2003-01-05 Michael Chastain <mec@shout.net>
12129
12130 * README: Remove references to deleted remote-*.c files:
12131 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12132 remote-nrom.c, remote-os9k.c, remote-udi.c.
12133
12134 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12135
12136 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12137 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12138 i386_get_longjmp_target.
12139
12140 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12141
12142 * arm-tdep.c (prologue_cache): Change to a pointer.
12143 (_initialize_arm_tdep): Allocate prologue_cache.
12144 (check_prologue_cache): Update.
12145 (save_prologue_cache): Update.
12146 (arm_gdbarch_init): Update.
12147
12148 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12149
12150 * stabsread.c (update_method_name_from_physname): Call complaint()
12151 instead of error.
12152
12153 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12154
12155 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12156 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12157 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12158
12159 * blockframe.c: Include "gdbcmd.h" and "command.h".
12160 (backtrace_below_main): New variable.
12161 (file_frame_chain_valid, func_frame_chain_valid)
12162 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12163 (generic_func_frame_chain_valid): Remove functions.
12164 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12165 (_initialize_blockframe): New function.
12166 * Makefile.in (blockframe.o): Update dependencies.
12167 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12168 comment. Call frame_chain_valid ().
12169 * frame.h: Remove old prototypes. Add prototype for
12170 frame_chain_valid and update comments to match.
12171 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12172 Remove old comment.
12173 * gdbarch.h: Regenerated.
12174 * gdbarch.c: Regenerated.
12175
12176 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12177 set_gdbarch_frame_chain_valid.
12178 * avr-tdep.c (avr_gdbarch_init): Likewise.
12179 * cris-tdep.c (cris_gdbarch_init): Likewise.
12180 * frv-tdep.c (frv_gdbarch_init): Likewise.
12181 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12182 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12183 (i386_nw_init_abi): Likewise.
12184 (i386_gdbarch_init): Likewise.
12185 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12186 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12187 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12188 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12189 * mips-tdep.c (mips_gdbarch_init): Likewise.
12190 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12191 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12192 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12193 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12194 * s390-tdep.c (s390_gdbarch_init): Likewise.
12195 * sh-tdep.c (sh_gdbarch_init): Likewise.
12196 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12197 * v850-tdep.c (v850_gdbarch_init): Likewise.
12198 * vax-tdep.c (vax_gdbarch_init): Likewise.
12199 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12200
12201 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12202 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12203 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12204 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12205 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12206 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12207 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12208 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12209
12210 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12211
12212 * Makefile.in (acconfig_h): Remove incorrect macro.
12213 (config_h): Define.
12214 (osabi.o): Update dependencies.
12215 * configure.tgt: Set gdb_osabi based on target triplet.
12216 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12217 * configure: Regenerated.
12218 * config.in: Regenerated.
12219 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12220 (GDB_OSABI_DEFAULT): Define if not already defined.
12221 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12222 (set_osabi_string): New variables.
12223 (gdbarch_register_osabi): Add new OS ABI to
12224 gdb_osabi_available_names.
12225 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12226 (set_osabi, show_osabi): New functions.
12227 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12228
12229 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12230
12231 * arch-utils.c (gdbarch_info_init): Set osabi to
12232 GDB_OSABI_UNINITIALIZED.
12233 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12234 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12235 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12236 * gdbarch.c: Regenerated.
12237 * gdbarch.h: Regenerated.
12238 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12239 there's no BFD.
12240 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12241 * osabi.h (enum gdb_osabi): Move to defs.h.
12242 (gdbarch_init_osabi): Update prototype.
12243 * defs.h (enum gdb_osabi): Moved here.
12244 * Makefile.in: Update dependencies.
12245
12246 * alpha-tdep.h: Don't include "osabi.h".
12247 (struct gdbarch_tdep): Remove osabi member.
12248 * alpha-tdep.c: Include "osabi.h".
12249 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12250 iterate over arches. Update call to gdbarch_init_osabi.
12251 (alpha_dump_tdep): Don't dump osabi.
12252 * alpha-linux-tdep.c: Include "osabi.h".
12253 * alpha-osf1-tdep.c: Include "osabi.h".
12254 * alphafbsd-tdep.c: Include "osabi.h".
12255 * alphanbsd-tdep.c: Include "osabi.h".
12256
12257 * arm-tdep.h: Don't include "osabi.h".
12258 (struct gdbarch_tdep): Remove osabi member.
12259 * arm-tdep.c: Include "osabi.h".
12260 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12261 iterate over arches. Update call to gdbarch_init_osabi.
12262 (arm_dump_tdep): Don't dump osabi.
12263 * arm-linux-tdep.c: Include "osabi.h".
12264 * armnbsd-tdep.c: Include "osabi.h".
12265
12266 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12267 Update call to gdbarch_init_osabi.
12268
12269 * i386-tdep.h: Don't include "osabi.h".
12270 (struct gdbarch_tdep): Remove osabi member.
12271 * i386-tdep.c: Include "osabi.h".
12272 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12273 iterate over arches. Update call to gdbarch_init_osabi.
12274 (i386_dump_tdep): Don't dump osabi.
12275 * i386-linux-tdep.c: Include "osabi.h".
12276 * i386-sol2-tdep.c: Include "osabi.h".
12277 * i386bsd-tdep.c: Include "osabi.h".
12278 * i386gnu-tdep.c: Include "osabi.h".
12279 * i386ly-tdep.c: Include "osabi.h".
12280 * i386nbsd-tdep.c: Include "osabi.h".
12281 * i386obsd-tdep.c: Include "osabi.h".
12282
12283 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12284 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12285 check osabi when iterating over arches. Update call to
12286 gdbarch_init_osabi.
12287 (mips_dump_tdep): Don't dump osabi.
12288
12289 * ns32k-tdep.h: Don't include "osabi.h".
12290 (struct gdbarch_tdep): Remove.
12291 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12292 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12293 allocate tdep. Update call to gdbarch_init_osabi.
12294 (ns32k_dump_tdep): Remove.
12295 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12296 * ns32knbsd-tdep.c: Include "osabi.h".
12297
12298 * ppc-tdep.h: Don't include "osabi.h".
12299 (struct gdbarch_tdep): Remove osabi member.
12300 * rs6000-tdep.c: Include "osabi.h".
12301 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12302 osabi when iterating over arches. Update call to
12303 gdbarch_init_osabi.
12304 (rs6000_dump_tdep): Don't dump osabi.
12305 * ppc-linux-tdep.c: Include "osabi.h".
12306 * ppcnbsd-tdep.c: Include "osabi.h".
12307
12308 * sh-tdep.h: Don't include "osabi.h".
12309 (struct gdbarch_tdep): Remove osabi member.
12310 * sh-tdep.c: Include "osabi.h".
12311 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12312 iterate over arches. Update call to gdbarch_init_osabi.
12313 (sh_dump_tdep): Don't dump osabi.
12314 * shnbsd-tdep.c: Include "osabi.h".
12315
12316 * sparc-tdep.c: Include "osabi.h".
12317 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12318 iterate over arches. Update call to gdbarch_init_osabi.
12319 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12320 tdep structure.
12321
12322 * vax-tdep.h: Don't include "osabi.h".
12323 (struct gdbarch_tdep): Remove.
12324 * vax-tdep.c: Include "osabi.h".
12325 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12326 iterate over arches. Don't allocate tdep. Update call
12327 to gdbarch_init_osabi.
12328 (vax_dump_tdep): Remove.
12329 (_initialize_vax_tdep): Update call to gdbarch_register.
12330
12331 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12332
12333 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12334 entirely.
12335 (breakpoint_re_set_one): Don't fetch the value for a disabled
12336 watchpoint.
12337
12338 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12339
12340 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12341 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12342 (COERCE_FLOAT_TO_DOUBLE): Remove.
12343 * gdbarch.c: Regenerate.
12344 * gdbarch.h: Regenerate.
12345 * Makefile.in: Remove value_h from gdbarch_h.
12346 * valops.c (coerce_float_to_double): New variable.
12347 (default_coerce_float_to_double): Remove.
12348 (standard_coerce_float_to_double): Remove.
12349 (value_arg_coerce): Use coerce_float_to_double.
12350 (_initialize_valops): Add "set coerce-float-to-double".
12351 * value.h (default_coerce_float_to_double): Remove prototype.
12352 (standard_coerce_float_to_double): Remove prototype.
12353
12354 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12355 prototyped.
12356 * mdebugread.c (parse_symbol): Likewise.
12357 * stabsread.c (define_symbol): Mark all functions as prototyped.
12358
12359 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12360 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12361 set_gdbarch_coerce_float_to_double.
12362 * arm-tdep.c (arm_gdbarch_init): Likewise.
12363 * frv-tdep.c (frv_gdbarch_init): Likewise.
12364 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12365 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12366 * mips-tdep.c (mips_gdbarch_init): Likewise.
12367 (mips_coerce_float_to_double): Remove.
12368 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12369 (rs6000_coerce_float_to_double): Remove.
12370 * s390-tdep.c (s390_gdbarch_init): Likewise.
12371 * sh-tdep.c (sh_gdbarch_init): Likewise.
12372 (sh_coerce_float_to_double): Remove.
12373 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12374 (sparc_coerce_float_to_double): Remove.
12375 * v850-tdep.c (v850_gdbarch_init): Likewise.
12376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12377 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12378 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12379 (hppa_coerce_float_to_double): Remove prototype.
12380 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12381
12382 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12383
12384 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12385
12386 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12387
12388 Suggested by Stewart Brown <sb24@avaya.com>:
12389 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12390 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12391 (c_type_print_varspec_suffix): Likewise.
12392
12393 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12394
12395 * configure.in: Don't set and AC_SUBST SUBDIRS.
12396 * configure: Regenerated.
12397
12398 * configure.in: Remove code dealing with shared libraries.
12399 * Makefile.in: Remove HLDFLAGS and HLDENV.
12400 * configure: Regenerated.
12401
12402 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12403
12404 * frame.c (deprecated_frame_xmalloc): New function.
12405 (deprecated_set_frame_saved_regs_hack): New function.
12406 (deprecated_set_frame_extra_info_hack): New function.
12407 * frame.h (deprecated_frame_xmalloc): Declare.
12408 (deprecated_set_frame_saved_regs_hack): Declare.
12409 (deprecated_set_frame_extra_info_hack): Declare.
12410
12411 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12412
12413 * configure.in: Move code that provides the --enable-gdbtk option
12414 right after the code that handles the --enable-tui option, and
12415 polish it somewhat.
12416 * configure: Regenerated.
12417
12418 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12419 AC_CHECK_FUNCS and remove the old check for pread64.
12420 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12421 * acconfig.h (_GNU_SOURCE): Add.
12422 (HAVE_PREAD64): Remove.
12423 * configure, aclocal.m4, config.in: Regenerated.
12424
12425 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12426
12427 * alpha-tdep.c: Use get_frame_saved_regs.
12428 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12429 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12430 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12431 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12432 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12433
12434 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12435
12436 * configure.in: Remove all use of the SUBDIRS variable; add
12437 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12438 code providing the --enable-multi-ice option, and move it right in
12439 front of the code that checks whether gdbserver is supported.
12440 Polish that too.
12441 * configure: Regenerated.
12442 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12443 @SUBDIRS@.
12444
12445 2003-01-03 Andrew Cagney <cagney@redhat.com>
12446
12447 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12448 * avr-tdep.c, cris-tdep.c: Ditto.
12449 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12450 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12451
12452 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12453
12454 * configure.in: Remove --enable-netrom option.
12455 * configure: Regenerated.
12456
12457 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12458
12459 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12460 declaration for `struct re_pattern_buffer' instead.
12461 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12462
12463 2003-01-03 J. Brobecker <brobecker@gnat.com>
12464
12465 * mdebugread.c (parse_symbol): Count until the stEnd matching
12466 the structure name.
12467
12468 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12469
12470 * configure.in: Remove --with-cpu option.
12471 subscripts. Remove evil changequotes here.
12472 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12473 * config.in, configure: Regenerated.
12474
12475 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12476 * configure.in: Cleanup section that sources GDB and BFD configure
12477 subscripts. Remove evil changequotes here.
12478 * config.in, configure: Regenerated.
12479
12480 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12481
12482 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12483 frame accessor methods.
12484 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12485 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12486 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12487 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12488 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12489 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12490 * z8k-tdep.c: Ditto.
12491
12492 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12493
12494 * configure.in: Remove UI_OUT configuration code.
12495 * ada-lang.c: Update assuming UI_OUT is always true.
12496 * Makefile.in (UIOUT_CFLAGS): Remove.
12497 * configure: Regenerated.
12498 * TODO: Remove blurb about elimination of -DUI_OUT.
12499
12500 * configure.in: Move code that provides the --enable-gdbcli,
12501 --enable-gdbmi options right before the code that handles the
12502 --enable-tui option. Polish a bit.
12503 * configure: Regenerated.
12504
12505 * configure.in: Rewrite check for GNU regex and the
12506 --without-included regex option, and move it into the "Checks for
12507 library functions" section. This makes us use the system regex
12508 again by default on systems with version 2 of the GNU C library.
12509 This was apparently broken.
12510 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12511 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12512 * config.in, configure: Regenerated.
12513
12514 * configure.in: Move code that provides the --enable-tui option
12515 before the "Checks for libraries" section. Polish the code
12516 somewhat and set need_curses to yes if we build the TUI. Rewrite
12517 code that looks for a library providing termcap functionality to
12518 match more closely what's done in the Readline library, and move
12519 it into to the "Checks for libraries" section.
12520 * configure: Regenerated.
12521 * Makefile.in (TERMCAP): Remove variable.
12522 * config/i386/go32.mh (TERMCAP): Remove variable.
12523
12524 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12525
12526 * MAINTAINERS: Mention gdb_mbuild.sh.
12527 * gdb_mbuild.sh: Rewrite.
12528
12529 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12530
12531 * configure.in: Fix typo in last change.
12532 * config.in, configure: Regenerated.
12533
12534 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12535
12536 * valarith.c (value_binop): Delete obsolete code and comments.
12537 * configure.host: Ditto.
12538 * buildsym.h (make_blockvector): Ditto.
12539 * buildsym.c (make_blockvector): Ditto.
12540 * defs.h (enum language): Ditto.
12541 (chill_demangle): Ditto.
12542 * elfread.c (elf_symtab_read): Ditto.
12543 * dwarfread.c (CHILL_PRODUCER): Ditto.
12544 (set_cu_language): Ditto.
12545 (handle_producer): Ditto.
12546 * expprint.c (print_subexp): Ditto.
12547 * gdbtypes.c (chill_varying_type): Ditto.
12548 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12549 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12550 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12551 (chill_varying_type): Ditto.
12552 * language.h (_LANG_chill): Ditto.
12553 * language.c (binop_result_type, integral_type): Ditto.
12554 (character_type, string_type, structured_type): Ditto.
12555 (lang_bool_type, binop_type_check): Ditto.
12556 * stabsread.h (os9k_stabs): Ditto.
12557 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12558 (define_symbol, read_type, read_struct_fields): Ditto.
12559 (read_array_type, read_enum_type, read_huge_number): Ditto.
12560 (read_range_type, start_stabs): Ditto.
12561 * symfile.c (init_filename_language_table): Ditto.
12562 (add_psymbol_with_dem_name_to_list): Ditto.
12563 * symtab.c (symbol_init_language_specific): Ditto.
12564 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12565 * symtab.h (struct general_symbol_info): Ditto.
12566 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12567 * typeprint.c (typedef_print): Ditto.
12568 * utils.c (fprintf_symbol_filtered): Ditto.
12569 * valops.c (value_cast, search_struct_field, value_slice): Delete
12570 obsolete code.
12571 (varying_to_slice): Delete function.
12572 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12573 (varying_to_slice): Delete declaration.
12574 * MAINTAINERS: Update.
12575
12576 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12577
12578 * configure.in: Reorganize "Checks for library functions section"
12579 a bit. Remove check for `btowc' and `isascii' functions.
12580 * configure: Regenerated.
12581
12582 * acconfig.h (_MSE_INT_H): Remove.
12583 * configure.in: Create "Checks for header files" section, and move
12584 appropriate tests there. Don't check for objlist.h, wchar.h,
12585 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12586 misdetection fix. Also add "Checks for types", "Checks for
12587 compiler characteristics" and "Checks for library functions"
12588 sections.
12589 * config.in, configure: Regenerated.
12590
12591 * configure.in: Create "Checks for programs" section, and move
12592 appropriate tests there.
12593
12594 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12595
12596 * configure.in: Create "Checks for libraries" section, and move
12597 appropriate tests there. Cleanup check for wctype in libw. Use
12598 AC_SEARCH_LIBS to see whether we need libsocket.
12599 * configure: Regenerated.
12600
12601 For older changes see ChangeLog-2002
12602 \f
12603 Local Variables:
12604 mode: change-log
12605 left-margin: 8
12606 fill-column: 74
12607 version-control: never
12608 End:
This page took 0.296556 seconds and 4 git commands to generate.