2003-10-01 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-10-01 Andrew Cagney <cagney@redhat.com>
2
3 * value.h (register_value_being_returned): Declare. Replace
4 "value_being_returned".
5 * infcall.c (call_function_by_hand): Use
6 register_value_being_returned.
7 * infcmd.c (print_return_value): Call
8 "register_value_being_returned", handle struct return locally.
9 * values.c (register_value_being_returned): New function. Replace
10 "value_being_returned".
11
12 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
13
14 * linux-proc.c (linux_do_registers): New function.
15 (linux_make_note_section): Use linux_do_registers in case of
16 single threaded inferior programs.
17
18 2003-10-01 Andrew Cagney <cagney@redhat.com>
19
20 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
21 use STRUCT_ADDR. When not using "struct return convention", pass
22 "0" to "value_being_returned". Add FIXMEs.
23 * infcmd.c (print_return_value): Pass an explicit 0/1 to
24 value_being_returned. Add comments.
25 * values.c (value_being_returned): Add fixme.
26 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
27 (hppa_value_returned_from_stack): Add FIXME.
28
29 2003-09-30 David Carlton <carlton@kealia.com>
30
31 * dwarf2read.c (struct die_info): Add 'parent' field; replace
32 'has_children' and 'next' by 'child' and 'sibling'.
33 (read_comp_unit): Rework algorithm, breaking body into
34 read_die_and_children and read_die_and_siblings.
35 (read_die_and_children, read_die_and_siblings): New.
36 (read_full_die): Add 'has_children' argument; set it instead of
37 the die's 'has_children' field. Minor formatting cleanup.
38 (free_die_list): Use die->child and die->sibling instead of
39 die->next.
40 (dump_die_list): Ditto.
41 (sibling_die): Use die->sibling.
42 (psymtab_to_symtab_1): Use die's 'child' field in place of its
43 'has_children' and 'next' fields.
44 (process_die, read_file_scope, read_func_scope)
45 (read_lexical_block_scope, read_structure_scope)
46 (read_enumeration, read_array_type, read_common_block)
47 (read_namespace, read_subroutine_type, dump_die): Ditto.
48
49 2003-09-30 Andrew Cagney <cagney@redhat.com>
50
51 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
52 to 224, not 220.
53
54 2003-09-30 Andrew Cagney <cagney@redhat.com>
55
56 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
57 REGISTER_VIRTUAL_SIZE.
58 * gdbarch.h, gdbarch.c: Regenerate.
59 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
60 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
61 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
62
63 2003-09-29 Andrew Cagney <cagney@redhat.com>
64
65 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
66 DEPRECATED_REGISTER_VIRTUAL_TYPE.
67 * gdbarch.h, gdbarch.c: Regenerate.
68 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
69 * sh64-tdep.c, sparc-tdep.c: Update.
70
71 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
72 * remote-vxmips.c (vx_read_register): Ditto.
73 * remote-vx68.c (vx_read_register): Ditto.
74 * gnu-nat.c (inf_validate_procs): Ditto.
75
76 2003-09-29 J. Brobecker <brobecker@gnat.com>
77
78 * infcall.c (call_function_by_hand): Fix build failure
79 introduced in the previous change to this file.
80
81 2003-09-29 Andrew Cagney <cagney@redhat.com>
82
83 * NEWS: Mention Objective-C.
84
85 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
86
87 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
88 test if the register has been saved on the stack.
89 (arm_scan_prologue_cache): When analysing the instruction
90 "str lr, [sp, #-4]", save the address where lr has been stored.
91
92 2003-09-28 Andrew Cagney <cagney@redhat.com>
93
94 * frame.c (frame_read_unsigned_register): Delete function.
95 * frame.h (frame_read_unsigned_register): Delete declaration.
96 * sparc-tdep.c (sparc_init_extra_frame_info): Use
97 get_frame_register_unsigned.
98 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
99 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
100 * d10v-tdep.c (d10v_print_registers_info): Ditto.
101
102 * frame.h (frame_read_register): Delete declaration.
103 * frame.c (frame_read_register): Delete function.
104 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
105 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
106 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
107 * mips-tdep.c (mips_register_to_value): Ditto.
108 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
109 * d10v-tdep.c (d10v_print_registers_info): Ditto.
110
111 * frame.c (frame_read_signed_register): Delete function.
112 (frame_read_unsigned_register): Update comments.
113 * frame.h (frame_read_signed_register): Delete declaration.
114 * h8300-tdep.c (h8300_print_register): Use
115 get_frame_register_signed.
116 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
117
118 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
119 Rename VALUE_RETURNED_FROM_STACK.
120 * infcmd.c (print_return_value): Update.
121 * infcall.c (call_function_by_hand): Update.
122
123 2003-09-28 Mark Kettenis <kettenis@gnu.org>
124
125 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
126 regcache argument and reverse the order of the other two
127 arguments. Remove local regcache variable. Determine
128 architecture from REGCACHE. Update comments.
129 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
130 reverse the order of the other two arguments. Remove local
131 regcache variable. Determine architecture from REGCACHE. Update
132 comments.
133 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
134 prototypes. Update comments.
135 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
136 comment.
137 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
138 Update.
139 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
140 * i386-interix-nat.c (supply_fpregset): Update.
141 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
142 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
143 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
144 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
145 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
146 Update.
147 * i386obsd-tdep.c (fetch_core_registers): Update.
148 * i386v4-nat.c (supply_fpregset): Update.
149 * x86-64-linux-nat.c (supply_fpregset): Update.
150 * x86-64-linux-tdep.c (fetch_core_registers): Update.
151
152 2003-09-27 Mark Kettenis <kettenis@gnu.org>
153
154 * i386-tdep.h: Put opaque declarations in alphabetical
155 order. Remove spurious whitespace.
156 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
157 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
158 * i386-tdep.c (MM0_REGNUM): Remove define.
159 (i386_mmx_regnum_p): Add gdbarch argument.
160 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
161 Rewrite using new macro definitions for FPU/SSE registers.
162 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
163 definitions from i387-tdep.h.
164 (i386_register_name): Update.
165 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
166 new macro definitions for FPU/SSE registers.
167 (i386_extract_return_value): Determine whether floating-point
168 registers are present by examining REGCACHE's architecture.
169 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
170 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
171 FPU/SSE registers.
172 (i386_register_type): Update.
173 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
174 definitions for FPU registers. Use REGCACHE's architecture to
175 determine the appropriate register numbers.
176 (i386_pseudo_register_read, i386_pseudo_register_write,
177 i386_register_reggroup_p): Update.
178 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
179 TDEP->mm0_regnum.
180 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
181 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
182 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
183 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
184 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
185 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
186 *' to `void *'.
187 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
188 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
189 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
190 definitions for FPU/SSE registers.
191 (FXSAVE_MXCSR_ADDR): New define.
192 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
193 TDEP->mm0_regnum.
194 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
195 (I387_ST0_REGNUM): Define.
196
197 * regcache.h (get_regcache_arch): New prototype.
198 * regcache.c (get_regcache_arch): New function.
199
200 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
201 whitespace.
202
203 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
204 Initialize using ARRAY_SIZE.
205
206 2003-09-27 Andrew Cagney <cagney@redhat.com>
207
208 * arch-utils.c (deprecated_init_frame_pc_default): Rename
209 "init_frame_pc_default".
210 * arch-utils.h (deprecated_init_frame_pc_default): Update.
211 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
212 * vax-tdep.c (vax_gdbarch_init): Update.
213 * v850-tdep.c (v850_gdbarch_init): Update.
214 * sh64-tdep.c (sh64_gdbarch_init): Update.
215 * s390-tdep.c (s390_gdbarch_init): Update.
216 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
217 * mcore-tdep.c (mcore_gdbarch_init): Update.
218 * h8300-tdep.c (h8300_gdbarch_init): Update.
219 * cris-tdep.c (cris_gdbarch_init): Update.
220 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
221
222 2003-09-26 Mark Kettenis <kettenis@gnu.org>
223
224 * regset.h: New file.
225 * Makefile.in (regset_h): Add.
226
227 2003-09-25 Andrew Cagney <cagney@redhat.com>
228
229 * frame.h (deprecated_frame_saved_regs): Rename
230 get_frame_saved_regs.
231 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
232 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
233 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
234 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
235 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
236
237 2003-09-25 Andrew Cagney <cagney@redhat.com>
238
239 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
240 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
241 and Java.
242 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
243 arm*-*-* do not use the new frame code.
244
245 2003-09-25 David Carlton <carlton@kealia.com>
246
247 * c-exp.y: Remove 'register' declarations.
248 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
249
250 2003-09-25 David Carlton <carlton@kealia.com>
251
252 * c-exp.y: Include cp-support.h. Add qualified_type.
253 (yylex): Delete nested type hack; add comments.
254 * cp-namespace.c (cp_lookup_nested_type): New function.
255 * cp-support.h: Declare cp_lookup_nested_type.
256 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
257 instead of value_struct_elt_for_reference.
258 * valops.c: Include cp-support.h.
259 (value_aggregate_elt): New function.
260 (value_namespace_elt): Ditto.
261 (value_struct_elt_for_reference): Make static.
262 * value.h: Delete declaration of value_struct_elt_for_reference;
263 add declaration for value_aggregate_elt.
264 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
265 (valops.o): Ditto.
266
267 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
268
269 * stack.c: Include "reggroups.h".
270 (frame_info): Only display registers in all_reggroup.
271 * Makefile.in (stack.o): Update dependencies.
272
273 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
274
275 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
276 "add ip, sp #n" in the prologue.
277 (arm_scan_prologue): Ditto.
278
279 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
280
281 * MAINTAINERS (write after approval): Add myself.
282
283 2003-09-25 Andreas Schwab <schwab@suse.de>
284
285 * m68k-tdep.c: Include "dwarf2-frame.h".
286 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
287 * Makefile.in (m68k-tdep.o): Update dependencies.
288
289 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
290
291 * sh-tdep.c (struct frame_extra_info): Remove.
292 (struct sh_frame_cache): New structure.
293 (GET_SOURCE_REG): New macro extracting source register of an opcode.
294 (GET_TARGET_REG): Ditto but target register.
295 (GET_PUSHED_REG): Remove.
296 (IS_MOV_ARG_TO_REG): New macro.
297 (IS_MOV_ARG_TO_IND_R14): New macro.
298 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
299 (IS_MOVW_PCREL_TO_REG): New macro.
300 (IS_MOVL_PCREL_TO_REG): New macro.
301 (IS_SUB_REG_FROM_SP): New macro.
302 (IS_ARG_MOV): Remove.
303 (IS_MOV_TO_R14): Remove.
304 (IS_RESTORE_FP): New macro.
305 (IS_RTS): New macro.
306 (IS_LDS): New macro.
307 (IS_MOV_FP_SP): New macro.
308 (IS_ADD_REG_TO_FP): New macro.
309 (IS_ADD_IMM_FP): New macro.
310 (sh_skip_prologue_hard_way): Remove.
311 (sh_saved_pc_after_call): Remove.
312 (sh_frame_chain): Remove.
313 (sh_find_callers_reg): Remove.
314 (sh_nofp_frame_init_saved_regs): Remove.
315 (sh_fp_frame_init_saved_regs): Remove.
316 (sh_init_extra_frame_info): Remove.
317 (sh_analyze_prologue): New function.
318 (sh_skip_prologue): Remove deprecated code. Rely on new function
319 sh_analyze_prologue when after_prologue fails.
320 (sh_frame_saved_pc): Remove.
321 (sh_alloc_frame_cache): New function.
322 (sh_frame_cache): Ditto.
323 (sh_frame_prev_register): Ditto.
324 (sh_frame_this_id): Ditto.
325 (sh_frame_unwind): New structure defining the heuristic frame
326 sniffer interface.
327 (sh_frame_sniffer): New function.
328 (sh_unwind_sp): Ditto.
329 (sh_unwind_pc): Ditto.
330 (sh_unwind_dummy_id): Ditto.
331 (sh_frame_base_address): Ditto.
332 (sh_frame_base): New structure defining new frame base code.
333 (sh_in_function_epilogue_p): New function.
334 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
335 code and to call all new code instead. Initialize dwarf2 and
336 heuristic frame sniffer.
337
338 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
339
340 * parser-defs.h (struct exp_descriptor): New definition, containing
341 language-specific info for printing, prefixifying, dumping, and
342 evaluating expressions.
343 (exp_descriptor_standard): Declare new variable.
344 (print_subexp): Make global and declare here (from expprint.c).
345 (dump_subexp): Ditto.
346 (dump_subexp_body_standard): Declare.
347 (operator_length_standard): Declare.
348 (op_name_standard): Declare.
349 (print_subexp): Declare.
350 (print_subexp_standard): Declare.
351
352 * language.h (struct language_defn): Add la_exp_desc field to hold
353 pointer to table for language-specific operators.
354 Remove evaluate_exp field, which is now in struct exp_descriptor.
355
356 * parse.c (operator_length): Move most code to new
357 operator_length_standard function. Use language-specific information.
358 (operator_length_standard): New function taking most code from
359 operator_length.
360 (exp_descriptor_standard): New constant.
361
362 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
363 and OP_EXTENDED_LAST.
364
365 * expprint.c (print_subexp): Use language-specific print_subexp.
366 Make global; remove static declaration.
367 Move most code to print_subexp_standard.
368 (print_subexp_standard): New function, containing code formerly in
369 print_subexp.
370 (op_name): Add expression to argument signature.
371 Use langauge-specific op_name.
372 Move most code to op_name_standard.
373 (op_name_standard): New function, containing code formerly in op_name.
374 (dump_subexp): Use new version of op_name function.
375 Use language-specific dump_subexp_body, and move most existing code to
376 dump_subexp_body_standard.
377 (dump_raw_expression): Use new op_name interface.
378 (dump_subexp_body): Move most code to dump_subexp_body_standard.
379 (dump_subexp_body_standard): New function, containing code formerly
380 in dump_subexp_body.
381
382 * language.c (unknown_language): Add default la_exp_desc field and
383 remove evaluate_exp field.
384 (auto_language): Ditto.
385 (local_language): Ditto.
386 * f-lang.c (f_language_defn): Ditto.
387 * c-lang.c (c_language_defn): Ditto.
388 (cplus_language_defn): Ditto.
389 (asm_language_defn): Ditto.
390 (minimal_language_defn): Ditto.
391 * p-lang.c (pascal_language_defn): Ditto.
392 * m2-lang.c (m2_language_defn): Ditto.
393 * objc-lang.c (objc_language_defn): Ditto.
394
395 * jv-lang.c (exp_descriptor_java): New variable, containing
396 Java-specific expression evaluator.
397 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
398 field.
399 * scm-lang.c (exp_descriptor_scm): New variable, containing
400 Scheme-specific expression evaluator.
401 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
402 field.
403 * objc-lang.c (print_object_command): Take evaluate_exp from the
404 la_exp_desc field.
405
406 * Makefile.in (eval.o): Add dependency on parser-defs.h.
407
408 * eval.c: Include parser-defs.h for the full declaration of
409 la_exp_desc's type.
410 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
411
412 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
413
414 * parser-defs.h (operator_length): Declare.
415
416 * parse.c (length_of_subexp): Use operator_length to get operator
417 lengths and arities for operators.
418 Move most code to new operator_length function.
419 (operator_length): New function absorbing most code from
420 length_of_subexp.
421 (prefixify_subexp): Remove large case and use operator_length instead.
422 (parse_exp_1): Use renamings:
423 dump_prefix_expression => dump_raw_expression and
424 dump_postfix_expression => dump_prefix_expression.
425
426 * expression.h (dump_prefix_expression): Rename to ...
427 (dump_raw_expression): New name.
428 (dump_postfix_expression): Rename to ...
429 (dump_prefix_expression): New name.
430
431 * expprint.c (dump_subexp): Make global. Add comment.
432 Move most existing code to dump_subexp_body.
433 (dump_subexp_body): New function.
434 (dump_prefix_expression): Rename to dump_raw_expression.
435 Remove attempt to print the expression via print_expression: it can't
436 work before the expression is prefixified.
437 (dump_raw_expression): Renamed from dump_prefix_expression.
438 (dump_postfix_expression): Rename to dump_prefix_expression, since
439 that's what it does.
440 Remove 'note' parameter, since this routine must be used on
441 prefixified expression.
442 (dump_prefix_expression): Renamed from dump_postfix_expression.
443
444 2003-09-22 Jim Blandy <jimb@redhat.com>
445
446 * dwarf2read.c (read_array_type): When building the type for an
447 array of unspecified length, make sure to choose the upper bound
448 so that the array's total length comes out to be zero --- that's
449 how we represent such arrays.
450
451 2003-09-22 Michael Chastain <mec@shout.net>
452
453 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
454
455 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
456
457 * top.c (quit_force): Fix indirect call to quit_target so
458 a struct qt_args pointer is passed.
459
460 2003-09-22 Andrew Cagney <cagney@redhat.com>
461
462 * arch-utils.h (init_frame_pc_noop): Delete declaration.
463 * arch-utils.c (init_frame_pc_noop): Delete function.
464 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
465 "init_frame_pc".
466 * mips-tdep.c (mips_gdbarch_init): Ditto.
467 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
468 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
469 declaration.
470 (DEPRECATED_INIT_FRAME_PC): Delete macro.
471 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
472 declaration.
473 (DEPRECATED_INIT_FRAME_PC): Delete macro.
474
475 2003-09-22 Anthony Green <green@redhat.com>
476
477 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
478 declaration.
479
480 2003-09-20 Andrew Cagney <cagney@redhat.com>
481
482 * breakpoint.c: Eliminate ARGSUSED.
483 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
484 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
485 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
486 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
487 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
488 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
489 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
490 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
491 * wince.c, remote-vx.c: Ditto.
492
493 * cli/cli-script.c: Remove "register" attributes.
494 * config/pa/tm-hppa.h: Ditto.
495 * cli/cli-decode.c: Ditto.
496 * cli/cli-cmds.c: Ditto.
497
498 2003-09-19 Andrew Cagney <cagney@redhat.com>
499
500 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
501 DEPRECATED_NPC_REGNUM.
502 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
503
504 2003-09-19 Christopher Faylor <cgf@redhat.com>
505
506 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
507
508 2003-09-19 Jim Blandy <jimb@redhat.com>
509
510 * macrotab.c (macro_include): Use the correct comparison to find
511 the appropriate place for this inclusion in the list.
512
513 2003-09-19 Andrew Cagney <cagney@redhat.com>
514
515 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
516 (DEPRECATED_HPUX_TEXT_END): Define.
517 (deprecated_hpux_text_end): Declare.
518 (struct target_ops): Declare opaque.
519 * hppah-nat.c (text_end): Make static.
520 (deprecated_hpux_text_end): New function.
521 * exec.c (text_end): Delete global variable.
522 (NEED_TEXT_START_END): Do not define.
523 (exec_file_attach): Replace code computing "text_end" code with
524 call to DEPRECATED_HPUX_TEXT_END.
525
526 2003-09-19 Andrew Cagney <cagney@redhat.com>
527
528 * utils.c (align_up, align_down): New functions.
529 * defs.h (align_up, align_down): Declare.
530 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
531 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
532 and "align_down".
533 (round_up, round_down): Delete functions.
534 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
535 "align_down".
536 (ROUND_DOWN, ROUND_UP): Delete macros.
537 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
538 * h8300-tdep.c: Replace "round_up" and "round_down" with
539 "align_up" and "align_down".
540 (round_up, round_down): Delete macros.
541 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
542 "align_down".
543 (ROUND_UP, ROUND_DOWN): Delete macros.
544
545 2003-09-18 J. Brobecker <brobecker@gnat.com>
546
547 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
548 hard-coded constant. Use the proper machine name instead.
549
550 2003-09-17 Andrew Cagney <cagney@redhat.com>
551
552 * sparc-tdep.c (legacy_register_name): Delete function.
553 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
554 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
555 * infcmd.c (gdb_register_name): Delete variable.
556 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
557 REGISTER_NAME and "tm.h".
558 * gdbarch.h, gdbarch.c: Regenerate.
559 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
560 REGISTER_NAMES in comments.
561 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
562 * m68klinux-nat.c (regmap): Ditto.
563
564 2003-09-17 Jim Blandy <jimb@redhat.com>
565
566 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
567
568 2003-09-17 Andrew Cagney <cagney@redhat.com>
569
570 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
571 (ppcnbsd_init_abi): Set "use_struct_convention" to
572 "ppcnbsd_use_struct_convention".
573
574 2003-09-17 Mark Kettenis <kettenis@gnu.org>
575
576 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
577 * gdbarch.h, gdbarch.c: Regenerate.
578 (stabs_argument_has_addr): New architecture method.
579 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
580 * arch-utils.c: Include "buildsym.h".
581 (default_stabs_argument_has_addr): New function.
582 * stabsread.c (define_symbol): Use stabs_argument_has_addr
583 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
584
585 2003-09-17 Andrew Cagney <cagney@redhat.com>
586
587 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
588 * gdbarch.h, gdbarch.c: Regenerate.
589 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
590 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
591 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
592 * sparcnbsd-tdep.c: Update.
593
594 2003-09-17 Andrew Cagney <cagney@redhat.com>
595
596 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
597 * gdbarch.h, gdbarch.c: Regenerate.
598 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
599 * d10v-tdep.c, frame.c: Update.
600 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
601 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
602 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
603 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
604 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
605 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
606 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
607 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
608 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
609 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
610 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
611 * config/pa/nm-hppah.h: Update.
612
613 2003-09-16 Andrew Cagney <cagney@redhat.com>
614
615 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
616 "use_struct_convention" to "ppc_linux_use_struct_convention".
617 (ppc_linux_use_struct_convention): New function.
618 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
619 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
620 "rs6000_use_struct_convention".
621 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
622 declaration.
623 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
624 Delete function.
625
626 2003-09-16 Andrew Cagney <cagney@redhat.com>
627
628 * buildsym.c: Remove more occurances of "register".
629 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
630 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
631 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
632 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
633 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
634 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
635 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
636 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
637
638 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
639
640 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
641 numbers to enumeration values.
642 * sh-tdep.c: Accomodate above change.
643 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
644 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
645 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
646 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
647 (IS_FPUSH): Rename from IS_FMOV.
648 (sh_extract_struct_value_address): Remove useless comment.
649 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
650 instead of own local values.
651 (sh_dump_tdep): Remove.
652 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
653 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
654
655 2003-09-15 Andrew Cagney <cagney@redhat.com>
656
657 * doublest.c (convert_floatformat_to_doublest): No longer need to
658 cast "exp_bias" to an int. Reverts 2002-12-04 change.
659
660 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
661
662 * values.c (unpack_double): Call floatformat_is_valid.
663
664 2003-09-15 Mark Kettenis <kettenis@gnu.org>
665
666 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
667 ps_strings into a long.
668
669 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
670 _initialize_am64fbsd_nat.
671
672 2003-09-15 Kevin Buettner <kevinb@redhat.com>
673
674 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
675 associated with DW_AT_ranges attribute is out of bounds.
676
677 2003-09-15 David Lecomber <dsl@sources.redhat.com>
678
679 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
680
681 2003-09-14 Michael Chastain <mec@shout.net>
682
683 * config/m68k/nm-apollo68v.h: Delete.
684 * config/m68k/xm-apollo68v.h: Delete.
685
686 2003-09-14 Andrew Cagney <cagney@redhat.com>
687
688 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
689 * dcache.c: Update copyrights and descriptions.
690 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
691
692 2003-09-14 Andrew Cagney <cagney@redhat.com>
693
694 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
695 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
696
697 2003-09-14 Andrew Cagney <cagney@redhat.com>
698
699 * alpha-nat.c: Remove some occurances of "register".
700 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
701 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
702 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
703 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
704 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
705 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
706 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
707 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
708 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
709 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
710 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
711 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
712 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
713 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
714 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
715 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
716 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
717 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
718 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
719 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
720 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
721 * values.c, vax-tdep.c, xcoffread.c: Ditto.
722
723 2003-09-13 Andrew Cagney <cagney@redhat.com>
724
725 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
726 * ppc-tdep.h (struct regcache): Declare opaque.
727 * objfiles.h (struct objfile_data): Declare opaque.
728 * cp-support.h (struct objfile): Declare opaque.
729 * linux-nat.h (target_waitstatus): Declare opaque.
730
731 2003-09-14 Mark Kettenis <kettenis@gnu.org>
732
733 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
734 (stabs_argument_has_addr): New architecture method.
735 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
736 * arch-utils.c: Include "buildsym.h".
737 (default_stabs_argument_has_addr): New function.
738 * stabsread.c (define_symbol): Use stabs_argument_has_addr
739 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
740
741 * cris-tdep.c (cris_gdbarch_init): Set
742 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
743 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
744 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
745 * mips-tdep.c (mips_gdbarch_init): Likewise.
746 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
747 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
748
749 2003-09-13 Andrew Cagney <cagney@redhat.com>
750
751 * values.c (using_struct_return): Delete "function" and "funcaddr"
752 parameters.
753 * value.h (using_struct_return): Update declaration.
754 * infcmd.c (finish_command_continuation): Update.
755 (finish_command): Update.
756 * infcall.c (call_function_by_hand): Update.
757 * eval.c (evaluate_subexp_standard): Update.
758
759 2003-09-13 Christopher Faylor <cgf@redhat.com>
760
761 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
762 SSE registers since gdb will not operate correctly without this.
763 Restore include file ordering munged in previous change.
764 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
765
766 2003-09-13 Mark Kettenis <kettenis@gnu.org>
767
768 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
769 REG_STRUCT_HAS_ADDR.
770 * gdbarch.c, gdbarch.h: Updated.
771 * infcall.c (call_function_by_hand): Update.
772 * stabsread.c (define_symbol): Updated.
773
774 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
775
776 2003-09-12 Christopher Faylor <cgf@redhat.com>
777
778 * win32-nat.c: Reorganize so that defines used by target headers are
779 actually defined by the system headers.
780 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
781 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
782
783 2003-09-12 Jim Blandy <jimb@redhat.com>
784
785 * dbxread.c (read_dbx_symtab): Don't report an internal error if
786 the file has no .data, .bss, or .rodata sections. Instead wait
787 until we see a variable alleged to live in one of those sections.
788
789 * dbxread.c (read_dbx_symtab): If we have no .data section and no
790 .bss section, presume that any variables we find live in the
791 .rodata section.
792
793 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
794 offsets for global and static variables.
795
796 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
797 symbol types are, by definition, in the .data section, so it is
798 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
799 If there is no .data section, there should be no N_DATA or N_DATA
800 | N_EXT symbols.
801
802 2003-09-12 Mark Kettenis <kettenis@gnu.org>
803
804 * amd64fbsd-tdep.c: Fix sigtramp recognition.
805 (amd64fbsd_sigcontext_addr): Rewrite.
806 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
807 with correct values.
808 (amd64fbsd_sc_reg_offset): Initialize with correct values.
809 (amd64fbsd_init_abi): Fix typo.
810
811 2003-09-12 Andrew Cagney <cagney@redhat.com>
812
813 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
814 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
815
816 2003-09-12 Andrew Cagney <cagney@redhat.com>
817
818 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
819 "entry_file_highpc". Update comments.
820 * defs.h (deprecated_inside_entry_file): Rename
821 "inside_entry_file".
822 * blockframe.c (deprecated_inside_entry_file): Rename
823 "inside_entry_file".
824 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
825 * vax-tdep.c (vax_frame_chain): Update.
826 * sh64-tdep.c (sh64_frame_chain): Update.
827 * sh-tdep.c (sh_frame_chain): Update.
828 * rs6000-tdep.c (rs6000_frame_chain): Update.
829 * ns32k-tdep.c (ns32k_frame_chain): Update.
830 * mips-tdep.c (mips_frame_chain): Update.
831 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
832 * m32r-tdep.c (m32r_frame_this_id): Update.
833 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
834 * frv-tdep.c (frv_frame_this_id): Update.
835 * d10v-tdep.c (d10v_frame_this_id): Update.
836 * cris-tdep.c (cris_frame_chain): Update.
837 * blockframe.c (legacy_frame_chain_valid): Update.
838 * avr-tdep.c (avr_frame_this_id): Update.
839 * arm-tdep.c (arm_prologue_this_id): Update.
840 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
841 * objfiles.c (objfile_relocate): Update.
842 * mipsread.c (mipscoff_symfile_read): Update.
843 (mipscoff_symfile_read): Update.
844 * mdebugread.c (parse_partial_symbols): Update.
845 * dwarfread.c (read_file_scope): Update.
846 * dwarf2read.c (read_file_scope): Update.
847 * dbxread.c (read_dbx_symtab): Update.
848 (read_dbx_symtab): Update.
849 * coffread.c (complete_symtab): Update.
850
851 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
852
853 * top.c (quit_target): New static helper function.
854 (quit_force): Moved code to quit_target(). Call quit_target()
855 via catch_errors() to catch errors during quit.
856
857 2003-09-11 David Carlton <carlton@kealia.com>
858
859 * buildsym.c (finish_block): Use allocate_block to allocate the
860 block.
861 * mdebugread.c (new_block): Add FIXME.
862
863 2003-09-11 David Carlton <carlton@kealia.com>
864
865 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
866 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
867 (recursive_dump_type): Ditto.
868 * printcmd.c (print_formatted): Ditto.
869 * typeprint.c (print_type_scalar): Ditto.
870 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
871 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
872 * cp-support.h: Declare cp_check_possible_namespace_symbols,
873 maint_cplus_cmd_list.
874 * cp-support.c: Make maint_cplus_cmd_list extern.
875 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
876 command.h.
877 (lookup_symbol_file): Look in possible namespace blocks when
878 appropriate.
879 (initialize_namespace_symtab): New.
880 (get_possible_namespace_block, free_namespace_block)
881 (check_possible_namespace_symbols)
882 (check_possible_namespace_symbols_loop)
883 (check_one_possible_namespace_symbol)
884 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
885 (_initialize_cp_namespace): Ditto.
886 * block.h: Declare allocate_block.
887 * block.c (allocate_block): New.
888 * jv-lang.c (get_java_class_symtab): Allocate blocks via
889 allocate_block.
890 * symfile.h: Update declaration of add_psymbol_to_list.
891 * symfile.c (add_psymbol_to_list): Return the partial symbol in
892 question.
893 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
894 scan_partial_symbols_call.
895 (scan_partial_symbols): Add NAMESPACE argument; update calls to
896 helper functions.
897 (add_partial_symbol): If necessary, scan mangled names for names
898 of namespaces.
899 (add_partial_namespace): Add NAMESPACE argument; generate partial
900 symbols associated to namespaces.
901 (add_partial_enumeration): Add NAMESPACE argument.
902 (new_symbol): Allow namespace syms.
903 (read_namespace): Generate namespace syms.
904 * objfiles.h: Add opaque declaration of struct symtab.
905 (struct objfile): Add cp_namespace_symtab member.
906 * objfiles.c (allocate_objfile): Set
907 objfile->cp_namespace_symtab.
908 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
909 dictionary_h, command_h.
910
911 2003-09-11 Andrew Cagney <cagney@redhat.com>
912
913 * rs6000-tdep.c (rs6000_push_dummy_call): Use
914 regcache_raw_write_signed to set SP_REGNUM, move the operation to
915 near the function's end.
916 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
917 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
918 regcache_raw_write_signed to set SP_REGNUM.
919
920 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
921
922 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
923 orig_addrs is set up properly.
924
925 2003-09-11 Andrew Cagney <cagney@redhat.com>
926
927 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
928 * gdbarch.h, gdbarch.c: Re-generate.
929 * infcall.c (call_function_by_hand): Update.
930 * hppa-tdep.c (hppa_push_arguments): Update.
931 * ada-lang.c (place_on_stack): Update.
932 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
933 * sparc-tdep.c (sparc_gdbarch_init): Update.
934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
935 * hppa-tdep.c (hppa_gdbarch_init): Update.
936 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
937 stack_align.
938
939 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
940
941 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
942 register do need a frame.
943
944 2003-09-11 Andrew Cagney <cagney@redhat.com>
945
946 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
947 buildable since GDB 5.0.
948 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
949 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
950 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
951 * irix4-nat.c: Delete file.
952 * config/mips/irix4.mh: Delete file.
953 * config/mips/irix3.mh: Delete file.
954 * config/mips/irix3.mt: Delete file.
955 * config/mips/tm-irix3.h: Delete file.
956 * config/mips/nm-irix3.h: Delete file.
957 * config/mips/xm-irix3.h: Delete file.
958 * config/mips/nm-irix4.h: Delete file.
959 * config/mips/xm-irix4.h: Delete file.
960 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
961
962 2003-09-10 J. Brobecker <brobecker@gnat.com>
963
964 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
965 * Makefile.in (hppa-tdep.o): Update dependencies.
966
967 2003-09-10 James E Wilson <wilson@specifixinc.com>
968
969 * MAINTAINERS: Change my e-mail address. Move to paper trail
970 section.
971
972 2003-09-10 Kevin Buettner <kevinb@redhat.com>
973
974 * MAINTAINERS (frv): New ISA entry.
975
976 2003-09-10 Kevin Buettner <kevinb@redhat.com>
977
978 * frv-tdep.c (dis-asm.h): Include.
979 * Makefile.in (frv-tdep.o): Update dependencies.
980
981 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
982
983 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
984 Fix typo for high range of floating registers.
985
986 2003-09-09 David Carlton <carlton@kealia.com>
987
988 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
989 highpc initialization here out of scan_partial_symbols.
990 (scan_partial_symbols): Restructure into a recursive version,
991 calling add_partial_namespace and add_partial_enumeration when
992 appropriate.
993 (add_partial_namespace): New.
994 (add_partial_enumeration, locate_pdi_sibling): Ditto.
995
996 2003-09-09 Andrew Cagney <cagney@redhat.com>
997
998 * rs6000-tdep.c (ppc_push_return_address): Delete function.
999 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1000 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1001 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1002
1003 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1004 (rs6000_push_dummy_call): Set the "TOC" register.
1005
1006 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1007 methods "max_register_raw_size", "max_register_virtual_size" or
1008 "register_virtual_size".
1009
1010 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1011
1012 * MAINTAINERS: Update my e-mail address.
1013
1014 2003-09-09 Andrew Cagney <cagney@redhat.com>
1015
1016 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1017 (rs6000_push_dummy_call): Store the struct return address.
1018 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1019
1020 2003-09-09 Andrew Cagney <cagney@redhat.com>
1021
1022 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1023 "ppc_sysv_abi_push_arguments".
1024 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1025 "ppc_sysv_abi_push_arguments".
1026 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1027 instead of "push_arguments".
1028 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1029
1030 2003-09-09 Andrew Cagney <cagney@redhat.com>
1031
1032 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1033 instead of CALL_DUMMY_ADDRESS.
1034
1035 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1036
1037 * p-lang.c: Eliminate "register".
1038 * c-lang.c: Ditto.
1039 * expprint.c: Ditto.
1040 * f-lang.c: Ditto.
1041 * jv-lang.c: Ditto.
1042 * language.c: Ditto.
1043 * m2-lang.c: Ditto.
1044 * parse.c: Ditto.
1045 * scm-lang.c: Ditto.
1046 * objc-lang.c: Ditto.
1047
1048 2003-09-09 Nick Clifton <nickc@redhat.com>
1049
1050 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1051
1052 2003-09-04 Andrew Cagney <cagney@redhat.com>
1053
1054 * avr-tdep.c: Include "dis-asm.h".
1055 * cris-tdep.c: Include "dis-asm.h".
1056 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1057 instead of corresponding typedef.
1058 * h8300-tdep.c: Include "dis-asm.h".
1059 * ia64-tdep.c: Include "dis-asm.h".
1060 * i386-tdep.c: Include "dis-asm.h".
1061 (i386_print_insn): Use "struct disassemble_info" instead of
1062 corresponding typedef.
1063 * m68k-tdep.c: Include "dis-asm.h".
1064 * mcore-tdep.c: Include "dis-asm.h".
1065 * mips-tdep.c: Include "dis-asm.h".
1066 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1067 instead of corresponding typedef.
1068 * ns32k-tdep.c: Include "dis-asm.h".
1069 * s390-tdep.c: Include "dis-asm.h".
1070 * sparc-tdep.c: Include "dis-asm.h".
1071 * vax-tdep.c: Include "dis-asm.h".
1072 * v850-tdep.c: Include "dis-asm.h".
1073 * mn10300-tdep.c: Include "dis-asm.h".
1074 * rs6000-tdep.c: Include "dis-asm.h".
1075 * xstormy16-tdep.c: Include "dis-asm.h".
1076 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1077 print_insn_xstormy16.
1078 * Makefile.in (v850-tdep.o): Update dependencies.
1079 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1080 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1081 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1082 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1083 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1084 (gdbarch_h): Remove $(dis_asm_h).
1085 * disasm.c: Include "dis-asm.h".
1086 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1087 corresponding typedef.
1088 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1089 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1090 * gdbarch.sh: Do not include "dis-asm.h".
1091 (struct disassemble_info): Declare opaque.
1092 (TARGET_PRINT_INSN): Update declaration.
1093 * gdbarch.h, gdbarch.c: Re-generate.
1094
1095 2003-09-08 Andrew Cagney <cagney@redhat.com>
1096
1097 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1098 CALL_DUMMY_ADDRESS, change to a predicate.
1099 * gdbarch.h, gdbarch.c: Re-generate.
1100 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1101 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1102 * infcall.c (call_function_by_hand): Ditto.
1103 * sparc-tdep.c (sparc_push_return_address): Ditto.
1104 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1105 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1106 CALL_DUMMY_ADDRESS with entry_point_address.
1107 * v850-tdep.c (v850_push_return_address): Ditto.
1108 * s390-tdep.c (s390_push_return_address): Ditto.
1109 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1110 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1111 * mcore-tdep.c (mcore_push_return_address): Ditto.
1112 * cris-tdep.c (cris_push_return_address): Ditto.
1113 * arm-tdep.c (arm_push_return_address): Ditto.
1114
1115 2003-09-08 Andrew Cagney <cagney@redhat.com>
1116
1117 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1118 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1119 and REG_UNMODIFIED to REG_SAME_VALUE.
1120 (execute_cfa_program): Update.
1121 (dwarf2_frame_cache): Update. Initialize table to
1122 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1123 location.
1124 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1125
1126 2003-09-08 Andrew Cagney <cagney@redhat.com>
1127
1128 * gnu-nat.c: Remove "inline" function attribute.
1129 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1130
1131 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1132
1133 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1134 target.
1135
1136 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1137
1138 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1139 (frame_extra_info): Rename this struct to frv_unwind_cache.
1140 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1141 Add fields ``prev_sp'' and ``base''.
1142 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1143 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1144 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1145 Delete.
1146 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1147 Revise all callers. Fill in the unwind cache argument and make
1148 other adjustments to account for new frame mechanisms.
1149 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1150 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1151 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1152 (frv_frame_unwind, frv_frame_base): New structs.
1153 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1154 additional arguments expected by this method and adjust function
1155 body accordingly.
1156 (frv_gdbarch_init): Remove calls to the following functions:
1157 set_gdbarch_deprecated_init_frame_pc(),
1158 set_gdbarch_deprecated_saved_pc_after_call(),
1159 set_gdbarch_deprecated_frame_chain(),
1160 set_gdbarch_deprecated_frame_saved_pc(),
1161 set_gdbarch_deprecated_frame_init_saved_regs(),
1162 set_gdbarch_deprecated_push_arguments(),
1163 set_gdbarch_deprecated_push_return_address(),
1164 set_gdbarch_deprecated_pop_frame(),
1165 set_gdbarch_deprecated_call_dummy_words(),
1166 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1167 set_gdbarch_deprecated_init_extra_frame_info(),
1168 set_gdbarch_deprecated_dummy_write_sp(), and
1169 set_gdbarch_deprecated_pc_in_call_dummy().
1170 Add calls to the following functions:
1171 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1172 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1173 frame_base_set_default().
1174 * Makefile.in (frv-tdep.o): Update dependencies.
1175
1176 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1177
1178 * dwarf2-frame.c (read_encoded_value): Add support for
1179 DW_EH_PE_aligned encoding.
1180
1181 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1182
1183 * infrun.c (normal_stop): Don't print a message if the inferior
1184 has exited.
1185
1186 2003-09-08 Jim Blandy <jimb@redhat.com>
1187
1188 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1189 * dbxread.c: #include "gdb_assert.h".
1190 (read_dbx_symtab): If the objfile has no .data section, use the
1191 section index for the .bss section instead.
1192
1193 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1194
1195 * frame.c (deprecated_safe_get_selected_frame): New function.
1196 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1197 * findvar.c (read_var_value): Call it.
1198
1199 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1200
1201 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1202 (sh64-tdep.o): Add dependencies.
1203 * configure.tgt: Add FIXME to sh-*-linux*.
1204 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1205 (sh_gdbarch_init): Always set correct sh_show_regs function
1206 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1207 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1208 * sh64-tdep.c: New file, containing all sh64 related code from
1209 sh-tdep.c.
1210 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1211 * config/sh/linux.mt (TDEPFILES): Ditto.
1212 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1213 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1214 * config/sh/wince.mt (TDEPFILES): Ditto.
1215
1216 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1217
1218 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1219 (stop_wait_callback): Handle !lp->signalled also.
1220 (lin_lwp_has_pending, flush_callback): New functions.
1221 (lin_lwp_wait): Call flush_callback.
1222 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1223 (linux_proc_pending_signals): New function.
1224 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1225
1226 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1227
1228 From Nick Kelsey <nickk@ubicom.com>:
1229 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1230 when the stop PC is at the beginning of a function also.
1231
1232 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1233
1234 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1235 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1236
1237 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1238
1239 * sol-thread.c: Include "gdb_string.h".
1240
1241 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1242
1243 * gcore.c: Reorder include files in alphabetical order. Include
1244 "gdb_assert.h". Various coding style fixes.
1245 (derive_stack_segment, derive_heap_segment): Replace check for
1246 non-null BOTTOM and TOP with gdb_assert.
1247 (derive_heap_segment): Replace check for successful creation of
1248 ZERO with gdb_assert.
1249 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1250
1251 2003-09-04 Andrew Cagney <cagney@redhat.com>
1252
1253 * thread-db.c (verbose_dlsym): New function.
1254 (thread_db_load): Use verbose_dlsym
1255 (thread_db_new_objfile): Print that libthread_db was loaded, and
1256 that thread debugging was enabled.
1257
1258 2003-09-04 Andrew Cagney <cagney@redhat.com>
1259
1260 * configure.tgt: Add "mips64*-*-*" target. Delete
1261 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1262 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1263 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1264 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1265 mips*-sony-*, and mips64*-*-elf* targets.
1266 * config/mips/embedl.mt: Delete file.
1267 * config/mips/embedl64.mt: Delete file.
1268 * config/mips/mips.mt: Delete file.
1269 * config/mips/mips64.mt: Delete file.
1270 * config/mips/tm-embed.h: Delete file.
1271 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1272 * config/mips/embed64.mt: Delete out-of-date comment.
1273
1274 2003-09-04 Andrew Cagney <cagney@redhat.com>
1275
1276 * hppa-tdep.c (hppa_gdbarch_init): Set
1277 "have_nonsteppable_watchpoint".
1278 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1279 * mips-tdep.c (mips_dump_tdep): Do not print
1280 HAVE_NONSTEPPABLE_WATCHPOINT.
1281 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1282 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1283 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1284 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1285
1286 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1287
1288 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1289 unused code. Add comment.
1290
1291 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1292
1293 * breakpoint.c (watchpoint_check): Check for pc being in an
1294 epilogue if watchpoint frame couldn't be found.
1295
1296 2003-09-04 Andrew Cagney <cagney@redhat.com>
1297
1298 * Makefile.in: Re-generate all dependencies.
1299
1300 2003-09-03 Andrew Cagney <cagney@redhat.com>
1301
1302 * arch-utils.h (legacy_print_insn): Delete declaration.
1303 * arch-utils.c (legacy_print_insn): Delete function.
1304 * disasm.c (deprecated_tm_print_insn_info): Delete.
1305 (_initialize_disasm): Delete function, contained code initializing
1306 deprecated_tm_print_insn_info.
1307 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1308 (deprecated_tm_print_insn_info): Delete.
1309 (TARGET_PRINT_INSN): Do not provide a default.
1310 * gdbarch.h, gdbarch.c: Re-generate.
1311
1312 2003-09-03 Andrew Cagney <cagney@redhat.com>
1313
1314 * disasm.c (fprintf_disasm): New function.
1315 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1316 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1317 reverts 2003-08-14 change.
1318 (_initialize_disasm): Call "init_disassemble_info", instead of
1319 INIT_DISASSEMBLE_INFO_NO_ARCH.
1320
1321 2003-09-03 Michael Snyder <msnyder@redhat.com>
1322
1323 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1324
1325 2003-09-03 Andrew Cagney <cagney@redhat.com>
1326
1327 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1328 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1329 * symfile.c (syms_from_objfile): Update.
1330 (reread_symbols): `Update
1331 * exec.c (exec_file_attach): Update.
1332 (exec_file_attach): Update.
1333 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1334 2003-08-29 change.
1335 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1336
1337 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1338
1339 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1340 trad-frame.h.
1341 (arm_get_cache): Delete macro.
1342 (struct arm_prologue_cache): Update comments. Make saved_regs into
1343 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1344 to prev_sp.
1345 (thumb_scan_prologue): Update for cache changes. Don't call
1346 DEPRECATED_PC_IN_CALL_DUMMY.
1347 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1348 argument and use it in desperation search for our prologue. Do not
1349 search past the specified PC.
1350 (arm_make_prologue_cache): Simplify.
1351
1352 (arm_prologue_this_id, arm_prologue_prev_register)
1353 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1354 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1355 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1356 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1357 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1358
1359 (arm_frame_chain_valid, arm_find_callers_reg)
1360 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1361 (arm_pop_frame): Delete obsolete methods.
1362 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1363
1364 (arm_gdbarch_init): Update for new frame methods. Register prologue
1365 and sigtramp unwinders. Set the default frame base method.
1366
1367 * Makefile.in (arm-tdep.o): Update dependencies.
1368 * varobj.c (find_frame_addr_in_frame_chain): Call
1369 get_frame_base_address.
1370 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1371
1372 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1373
1374 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1375 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1376 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1377 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1378 Take NEXT_FRAME and CACHE arguments. Call
1379 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1380 Set unwound_pc in CACHE instead of modifying the frame argument.
1381 Don't bother checking the frame type when looking for sigtramp
1382 frames.
1383 (arm_make_prologue_cache, arm_frame_chain)
1384 (arm_init_extra_frame_info): New functions.
1385
1386 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1387
1388 * arm-tdep.c (arm_get_cache): Define.
1389 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1390 unwound_sp, unwound_pc, and saved_regs.
1391 (thumb_scan_prologue): Take a cache instead of the frame.
1392 (arm_scan_prologue): Likewise.
1393 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1394 instead of a temporary frame.
1395 (arm_init_extra_frame_info): Allocate and use a cache.
1396 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1397
1398 2003-09-03 Andrew Cagney <cagney@redhat.com>
1399
1400 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1401 * config/mips/wince.mt (TM_CLIBS): Ditto.
1402 * config/sh/wince.mt (TM_CLIBS): Ditto.
1403 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1404 * config/sparc/sp64.mt (CC): Delete.
1405
1406 2003-09-03 Andrew Cagney <cagney@redhat.com>
1407
1408 * defs.h: Do not include "arch-utils.h".
1409 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1410 GDB_MULTI_ARCH_PURE.
1411 * configure.in (GDB_MULTI_ARCH): Do not define.
1412 * configure, config.in: Regenerate.
1413 * configure.tgt: Do not set variable "gdb_multi_arch".
1414 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1415 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1416 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1417 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1418 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1419 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1420 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1421 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1422 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1423 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1424 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1425 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1426 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1427 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1428 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1429 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1430 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1431 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1432
1433 2003-08-30 Michael Chastain <mec@shout.net>
1434
1435 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1436 * config/m68k/nm-hp300hpux.h: Delete.
1437 * config/m68k/tm-hp300hpux.h: Delete.
1438 * config/m68k/xm-hp300hpux.h: Delete.
1439 * config/m68k/xm-hp300bsd.h: Delete.
1440 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1441 tm-hp300hpux.h, xm-hp300hpux.h.
1442 * somsolib.c: Remove comment about hp300 shared libraries.
1443
1444 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1445
1446 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1447 Only define PTRACE_GET_THREAD_AREA is not already defined.
1448 Various style fixes in code and comments and some additional
1449 spelling fixes in comments. Move after functions dealing with
1450 debug registers.
1451 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1452 Fix coding-style.
1453
1454 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1455 frame_unwind_register_unsigned instead of
1456 frame_unwind_unsigned_register.
1457
1458 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1459
1460 * configure.in: Search for gethostbyname in libnsl.
1461 * configure: Regenerated.
1462
1463 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1464
1465 * configure.in: Remove redundant AC_MSG_RESULT in check for
1466 uintptr_t in stdint.h.
1467 * configure: Regenerated.
1468
1469 * amd64-nat.h (struct regcache): Add opaque declaration.
1470
1471 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1472 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1473 Change "register array" to "register cache" in comments.
1474 (x86_64_linux_gregset64_reg_offset): New variable.
1475 (GETREGS_SUPPLIES): Remove macro.
1476 (supply_gregset): Call amd64_supply_native_gregset instead of
1477 x86_64_linux_supply_gregset.
1478 (fill_gregset): Rename `regno' to `regnum'. Call
1479 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1480 (store_regs): Rename `regno' to `regnum'.
1481 (store_fpregs): Rename `regno' to `regnum'.
1482 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1483 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1484 Reorganize function a bit.
1485 (store_inferior_registers): Rename `regno' to `regnum'. Use
1486 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1487 Reorganize function a bit.
1488 (_initialize_x86_64_linux_nat): New function.
1489 * config/i386/x86-64linux.mh.
1490
1491 2003-08-29 Andrew Cagney <cagney@redhat.com>
1492
1493 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1494 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1495 (target_remove_watchpoint): Delete macro.
1496 (target_insert_watchpoint): Delete macro.
1497 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1498 (remote_mips_stopped_by_watchpoint): Delete declaration.
1499 (remote_mips_remove_watchpoint): Delete declaration.
1500 (remote_mips_set_watchpoint): Delete declaration.
1501 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1502 * remote-mips.c (_initialize_remote_mips): Set
1503 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1504 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1505 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1506 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1507 (mips_stopped_by_watchpoint): Rename
1508 remote_mips_stopped_by_watchpoint.
1509 (mips_can_hardware_watchpoint): Rename
1510 remote_mips_can_use_hardware_watchpoint, update function
1511 signature.
1512
1513 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1514
1515 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1516 USER_DS. We haven't given them a register number yet.
1517
1518 * amd64-nat.h: New file.
1519 * amd64-nat.c: New file.
1520 * amd64fbsd-nat.c: Include "amd64-nat.h".
1521 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1522 (amd64fbsd32_r_reg_offset): New variable.
1523 (supply_gregset): Simply call amd64_supply_native_gregset.
1524 (fill_gregset): Rename `regno' to `regnum'. Simply call
1525 amd64_collect_native_gregset.
1526 (fill_fpregset): Rename `regno' to `regnum'.
1527 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1528 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1529 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1530 `fpregset_t'. Call amd64_supply_native_gregset instead of
1531 supply_gregset. Call x86_64_supply_fxsave instead of
1532 supply_fpregset.
1533 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1534 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1535 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1536 `fpregset_t'. Call amd64_collect_native_gregset instead of
1537 fill_gregset. Call x86_64_collect_fxsave instead of
1538 fill_fpregset.
1539 (_initialize_am64fbsd_nat): Initialize
1540 amd64_native_gregset32_reg_offset and
1541 amd64_native_gregset64_reg_offset.
1542 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1543
1544 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1545 null pointer. Fix typo in comment.
1546
1547 * regcache.c (supply_register): Reimplement to call
1548 regcache_raw_supply.
1549 (regcache_collect): Reimplement by calling regcache_raw_collect.
1550
1551 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1552
1553 * regcache.c (register_buffer): Consitify first argument.
1554 (regcache_raw_supply, regcache_raw_collect): New
1555 functions.
1556
1557 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1558
1559 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1560 by Nathan J. Williams.
1561
1562 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1563
1564 * lin-lwp.c (wait_lwp): New function, copied from
1565 stop_wait_callback. Clean up.
1566 (stop_wait_callback): Use wait_lwp.
1567
1568 2003-08-28 Andrew Cagney <cagney@redhat.com>
1569
1570 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1571 flavour and disassembler options.
1572 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1573 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1574 deprecated_tm_print_insn_info.
1575
1576 2003-08-27 Andrew Cagney <cagney@redhat.com>
1577
1578 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1579 Use target_read_memory.
1580 (s390_get_frame_info): Update. Do not reference
1581 deprecated_tm_print_insn_info.
1582 (s390_check_function_end, s390_is_sigreturn): Ditto.
1583
1584 2003-08-27 Andrew Cagney <cagney@redhat.com>
1585
1586 * Makefile.in (cris-tdep.o): Update dependencies.
1587 * cris-tdep.c: Include "gdb_assert.h".
1588 (cris_gdbarch_init): Set print_insn.
1589 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1590 (cris_delayed_get_disassembler): Simplify, directly call the
1591 disassembler returned by cris_get_disassembler.
1592 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1593 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1594 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1595 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1596 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1597 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1598 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1599 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1600 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1601 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1602 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1603 (gdb_print_insn_sparc): Delete function.
1604 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1605 deprecated_tm_print_insn_info.
1606 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1607 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1608 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1609 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1610 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1611 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1612 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1613 (s390_gdbarch_init): Set print_insn.
1614
1615 2003-08-27 Andrew Cagney <cagney@redhat.com>
1616
1617 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1618 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1619 * infcall.c (call_function_by_hand): Convert the entry point
1620 address into a code address.
1621
1622 2003-08-27 Andrew Cagney <cagney@redhat.com>
1623
1624 * dsrec.c: Include "gdb_string.h".
1625 * Makefile.in (dsrec.o): Update dependencies.
1626
1627 2003-08-27 Michael Chastain <mec@shout.net>
1628
1629 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1630
1631 2003-08-27 Andrew Cagney <cagney@redhat.com>
1632
1633 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1634 (alpha_osf1_init_abi): Do not set call_dummy_address.
1635
1636 2003-08-27 David Carlton <carlton@kealia.com>
1637
1638 From Randolph Chung <tausq@debian.org>:
1639 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1640 compiles with -Wformat-nonliteral -Werror.
1641
1642 2003-08-26 Jim Blandy <jimb@redhat.com>
1643
1644 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1645 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1646 bfd_lookup_symbol, since we only want symbols in code sections.
1647 (look_for_base): Pass zero as the SECT_FLAGS argument to
1648 bfd_lookup_symbol, since we're not concerned about which section
1649 the symbol is in.
1650
1651 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1652
1653 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1654 we are frameless or the return address register is already known.
1655
1656 2003-08-26 Andrew Cagney <cagney@redhat.com>
1657
1658 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1659 in size. Add comments.
1660
1661 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1662
1663 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1664 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1665
1666 2003-08-26 Jason Merrill <jason@redhat.com>
1667
1668 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1669 case out of #ifdef MIPS block.
1670
1671 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1672
1673 PR java/1322
1674 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1675 available before calling SECT_OFF_TEXT.
1676 * PROBLEMS: Remove description of java/1322.
1677
1678 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1679
1680 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1681 bof, and nat0-nat127 as pseudo-registers.
1682 (ia64_frame_cache): New struct used to cache frame info.
1683 (ia64_register_reggroup_p): New routine used to override default
1684 register grouping so registers without names are still saved and
1685 restored.
1686 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1687 pseudo values.
1688 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1689 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1690 (ia64_alloc_frame_cache): New routine to create a new
1691 ia64_frame_cache.
1692 (examine_prologue): Change prototype to add next_frame pointer.
1693 Assume frameless until otherwise proven. Verify that the cfm for
1694 current frame matches the cfm that should occur for the prologues
1695 alloc insn and if equal, mark as not frameless. At end of routine,
1696 if not frameless, calculate registers for the previous frame and store
1697 in the cache, if a cache is provided.
1698 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1699 and pass 0 for next_frame.
1700 (ia64_store_return_value): Change to use convert_typed_floating()
1701 instead of calling ia64_convert_to_raw().
1702 (ia64_extract_return_value): Change to use convert_typed_floating()
1703 instead of calling ia64_convert_to_virtual().
1704 (ia64_frame_cache): New routine to support new frame model.
1705 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1706 (ia64_frame_sniffer): Ditto.
1707 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1708 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1709 (ia64_sigtramp_frame_prev_register): Ditto.
1710 (ia64_sigtramp_frame_sniffer): Ditto.
1711 (ia64_frame_base_address): Ditto.
1712 (ia64_extract_struct_value_address): Change to issue error message.
1713 (ia64_frame_align): New routine to align sp.
1714 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1715 (ia64_push_arguments): Removed. Logic moved to
1716 ia64_push_dummy_call().
1717 (ia64_push_return_address): Ditto.
1718 (ia64_unwind_dummy_id): New function.
1719 (ia64_unwind_pc): Ditto.
1720 (ia64_convert_register_p): Ditto.
1721 (ia64_register_to_value): Ditto.
1722 (ia64_value_to_register): Ditto.
1723 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1724 (ia64_register_byte, ia64_register_raw_size): Ditto.
1725 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1726 (ia64_saved_pc_after_call): Ditto.
1727 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1728 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1729 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1730 (ia64_register_convert_to_raw): Ditto.
1731 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1732 (ia64_init_extra_frame_info): Ditto.
1733 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1734 (ia64_gdbarch_init): Remove registering of deprecated functions that
1735 are no longer used. Add registration of new gdbarch functions.
1736 Remove registering deprecated_write_sp. Replace
1737 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1738 Delete set_gdbarch_deprecated_register_convertible(),
1739 set_gdbarch_deprecated_register_convert_to_virtual(), and
1740 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1741 set_gdbarch_deprecated_register_size(),
1742 set_gdbarch_deprecated_register_bytes(),
1743 set_gdbarch_pcregnum(),
1744 set_gdbarch_deprecated_register_byte(),
1745 set_gdbarch_deprecated_register_raw_size(),
1746 set_gdbarch_deprecated_max_register_raw_size(),
1747 set_gdbarch_deprecated_register_virtual_size(),
1748 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1749 Replace set_gdbarch_deprecated_extract_return_value() with
1750 set_gdbarch_extract_return_value(). Remove calls to:
1751 set_gdbarch_deprecated_saved_pc_after_call();
1752 set_gdbarch_deprecated_frame_chain(),
1753 set_gdbarch_deprecated_frame_saved_pc(),
1754 set_gdbarch_deprecated_frame_init_saved_regs(),
1755 set_gdbarch_deprecated_get_saved_register(),
1756 set_gdbarch_deprecated_call_dummy_words(),
1757 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1758 set_gdbarch_deprecated_init_extra_frame_info(),
1759 set_gdbarch_deprecated_frame_args_address(),
1760 set_gdbarch_deprecated_frame_locals_address(),
1761 and set_gdbarch_deprecated_dummy_write_sp().
1762 Add set_gdbarch_convert_register_p(),
1763 set_gdbarch_register_to_value(),
1764 set_gdbarch_value_to_register(),
1765 set_gdbarch_push_dummy_call(),
1766 set_gdbarch_frame_align(),
1767 set_gdbarch_unwind_dummy_id(),
1768 set_gdbarch_unwind_pc(),
1769 frame_unwind_append_sniffer(),
1770 frame_unwind_append_sniffer(),
1771 and frame_base_set_default().
1772
1773 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1774
1775 * configure.tgt: Document need for special "mipsisa64" handling.
1776 (mipsisa64*-*-linux64): Handle as target linux64.
1777 (mipsisa64*-*-*): Handle as target embed64.
1778
1779 2003-08-18 Michael Chastain <mec@shout.net>
1780
1781 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1782 objfile bug.
1783
1784 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1785
1786 * i387-tdep.h: Update copyright date.
1787 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1788
1789 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1790 CFLAGS games to reflect reality.
1791
1792 2003-08-24 Andrew Cagney <cagney@redhat.com>
1793
1794 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1795 GDB_MULTI_ARCH is always non-zero.
1796 * osabi.c (_initialize_gdb_osabi): Ditto.
1797 (gdbarch_init_osabi): Ditto.
1798 * sparc-tdep.c: Ditto for #if code.
1799
1800 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1801
1802 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1803 Update comments.
1804 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1805 comments.
1806 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1807 x86_64_supply_fxsave.
1808 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1809 x86_64_supply_fxsave.
1810 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1811 x86_64_supply_fxsave.
1812
1813 2003-08-23 Andreas Jaeger <aj@suse.de>
1814
1815 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1816 i387_supply_fxsave.
1817
1818 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1819
1820 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1821 i387_supply_register.
1822 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1823 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1824 i387_supply_fsave.
1825 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1826 i387_supply_fxsave.
1827 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1828 i387_supply_fsave.
1829 * i386bsd-nat.c (supply_fpregset): Adjust call to
1830 i387_supply_fsave.
1831 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1832 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1833 supply_fpregset.
1834 (store_inferior_registers): Remove extraneous whitespace. Call
1835 i387_fill_fsave instead of fill_fpregset.
1836 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1837 (supply_fpregset): Likewise.
1838 * i386v4-nat.c (supply_fpregset): Adjust call to
1839 i387_supply_fsave.
1840 * i386-interix-nat.c (supply_fpregset): Adjust call to
1841 i387_supply_fsave.
1842 * i386-linux-nat.c (supply_fpregset): Adjust call to
1843 i387_supply_fsave.
1844 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1845 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1846 i387supply_fsave and i387_supply_fxsave.
1847 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1848 Incorporate code from `i387_supply_register.
1849 (i387_supply_register): Remove.
1850 (i387_supply_fxsave): Add `regnum' argument.
1851 Update comments.
1852 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1853 prototype.
1854 (i387_supply_register): remove prototype.
1855 Update comments.
1856
1857 2003-08-22 Michael Chastain <mec@shout.net>
1858
1859 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1860 Add lines for files in gdb/testsuite/gdb.cp/* that are
1861 still not 8.3 unique.
1862
1863 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1864
1865 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1866 TYPE_VPTR_FIELDNO is valid.
1867
1868 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1869
1870 * utils.c (set_width_command): Remove prototypes.
1871 (set_screen_size): New prototype.
1872 (init_page_info): Simplify by fetching the screen size from
1873 Readline. Call set_screen_size.
1874 (set_screen_size): New function.
1875 (set_width): Add missing whitespace in comment.
1876 (set_width_command): Call set_screen_size.
1877 (set_height_command): New function.
1878 (initialize_utils): Fix formatting. Make "set height" command
1879 call set_height_command. Remove redundant code that turns off
1880 pagination if output isn't a terminal. Remove redundant call to
1881 set_width_command.
1882
1883 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1884
1885 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1886 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1887 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1888 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1889 `case' keyword.
1890 (sparc64_register_info): Give the reister with number
1891 SPARC64_STATE_REGNUM a name.
1892 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1893 %asi and %ccr.
1894 (sparc64_push_dummy_call): Take BIAS into account when checking
1895 stcak alignment.
1896 (sparc_software_single_step): Remove assertions that check whether
1897 NPC and NNPC were zero.
1898 (sparc_supply_rwindow): Make public. Merge functionality with
1899 sparc64_supply_rwindow.
1900 (sparc_fill_rwindow): Make public. Merge functionality with
1901 sparc64_fill_rwindow.
1902 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1903 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1904 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1905 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1906 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1907
1908 * reggroups.c: Add whitespace after declarations of local
1909 variables in functions.
1910
1911 2003-08-21 Michael Chastain <mec@shout.net>
1912
1913 * gdbtypes.h: Change array bound type from an int to enum.
1914
1915 2003-08-21 Andrew Cagney <cagney@redhat.com>
1916
1917 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1918 * config/sparc/tm-sparc.h: Ditto.
1919 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1920 unconditionally.
1921 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1922
1923 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1924
1925 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1926 (register_objfile_data, set_objfile_data, objfile_data): New
1927 prototypes.
1928 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1929 prototypes.
1930 (allocate_objfile): Call objfile_alloc_data.
1931 (free_objfile): Call objfile_free_data.
1932 (struct objfile_data): New.
1933 (struct objfile_data_registration): New.
1934 (struct objfile_data_registry): New.
1935 (objfile_data_registry): New variable.
1936 (register_objfile_data): New function.
1937 (objfile_alloc_data, objfile_free_data): New functions.
1938 (set_objfile_data, objfile_data): New functions.
1939 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1940 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1941 (_initialize_dwarf2_frame): New function and prototype.
1942
1943 2003-08-21 Andrew Cagney <cagney@redhat.com>
1944
1945 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1946 a specific architecture.
1947 * arch-utils.h (set_architecture_from_arch_mach): Delete
1948 declaration.
1949 (target_architecture_hook): Delete declaration.
1950 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1951 (default_float_format): Assume GDB_MULTI_ARCH.
1952 (default_double_format): Assume GDB_MULTI_ARCH.
1953 (set_endian_from_file): Delete function.
1954 (arch_ok): Delete function.
1955 (set_arch): Delete function.
1956 (set_architecture_from_arch_mach): Delete function.
1957 (set_architecture_from_file): Delete function.
1958 (set_architecture): Assume GDB_MULTI_ARCH.
1959 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1960
1961 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1962
1963 Rewrite FreeBSD/sparc64 native configuration.
1964 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1965 * sparc64fbsd-nat.c: New file.
1966 * sparc64fbsd-tdep.c: New file.
1967 * sparc64-tdep.c sparc64-tdep.h: New files.
1968 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1969 sparc64fbsd-tdep.o): New dependencies.
1970 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1971 and sparc64fbsd-tdep.c.
1972 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1973 * config/sparc/fbsd.mh: Remove copyright notice.
1974 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1975 sparcbsd-nat.o.
1976 * config/sparc/fbsd.mt: Remove copyright notice.
1977 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1978 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1979 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1980 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1981 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1982 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1983 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1984 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1985 "sparc/tm-sp64.h".
1986 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1987 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1988
1989 2003-08-21 Michael Chastain <mec@shout.net>
1990
1991 * symtab.h: Add doco on the space critical structures and
1992 some measurements of space usage.
1993
1994 2003-08-21 Michael Snyder <msnyder@redhat.com>
1995
1996 * tracepoint.c (trace_dump_command): Trace break address
1997 is subject to DECR_PC_AFTER_BREAK.
1998 (set_traceframe_context): Make "trace_line" an int.
1999 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2000
2001 2003-08-20 Michael Snyder <msnyder@redhat.com>
2002
2003 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2004 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2005 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2006 argument passing.
2007 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2008 functions, replace sh_push_dummy_call.
2009 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2010
2011 2003-08-20 Michael Chastain <mec@shout.net>
2012
2013 * gdbtypes.h (struct main_type): Rearrange to save space.
2014
2015 2003-08-20 Michael Snyder <msnyder@redhat.com>
2016
2017 * trad-frame.c: Comment typo fix.
2018
2019 2003-08-20 Michael Snyder <msnyder@redhat.com>
2020 Kevin Buettner <kevinb@redhat.com>
2021
2022 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2023 (frv_frame_init_saved_regs): Add declaration.
2024 (frame_extra_info): Add new field ``saved_regs''.
2025 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2026 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2027 Update frame related code.
2028 (frv_extract_struct_value_address): Adjust formatting.
2029 * Makefile.in (frv-tdep.o): Update dependencies.
2030 * config/frv/tm-frv.h (target_insert_watchpoint)
2031 (target_remove_watchpoint, target_insert_hw_breakpoint)
2032 (target_remove_hw_breakpoint): Delete these macros.
2033 (remote_insert_watchpoint, remote_remove_watchpoint)
2034 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2035 these declarations.
2036
2037 2003-08-20 Michael Chastain <mec@shout.net>
2038
2039 * defs.h (ENUM_BITFIELD): New macro.
2040 * symtab.h (ENUM_BITFIELD): Use it.
2041 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2042
2043 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2044
2045 * MAINTAINERS (write after approval): Add myself.
2046
2047 2003-08-18 Andrew Cagney <cagney@redhat.com>
2048
2049 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2050 * gdbarch.h, gdbarch.c: Re-generate.
2051 * infcall.c (call_function_by_hand): Adjust the SP by
2052 frame_red_zone_size before allocating any stack space.
2053 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2054 * x86-64-tdep.c (x86_64_frame_align): New function.
2055 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2056
2057 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2058 Remove code adjusting SP so that it skips over the Red Zone.
2059
2060 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2061
2062 * NEWS (New native configurations): Mention FreeBSD/amd64.
2063
2064 2003-08-18 Andrew Cagney <cagney@redhat.com>
2065
2066 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2067 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2068 "m68k_frame_p".
2069 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2070
2071 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2072
2073 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2074
2075 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2076
2077 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2078 Define.
2079 * i386-linux-nat.c: Include "linux-nat.h".
2080 (child_post_startup_inferior): New function.
2081
2082 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2083
2084 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2085 at the start of a frameless function. This probably fixes PR
2086 backtrace/1338.
2087
2088 2003-08-17 Michael Chastain <mec@shout.net>
2089
2090 * symfile.c (find_sym_fns): Remove special case for apollo target.
2091
2092 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2093
2094 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2095 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2096 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2097 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2098 (linux_supports_tracevforkdone): New function.
2099 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2100 TRACEVFORKDONE.
2101 (child_follow_fork): Handle vfork.
2102 (linux_handle_extended_wait): Likewise. Also handle exec.
2103 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2104 * NEWS: Mention fork tracing.
2105
2106 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2107
2108 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2109
2110 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2111
2112 * Makefile.in (i386-linux-nat.o): Update dependencies.
2113 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2114 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2115 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2116 * i386-linux-nat.c: Include "linux-nat.h".
2117 (child_post_startup_inferior): New function.
2118 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2119 * infptrace.c (kill_inferior): Wrap in #ifdef.
2120 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2121 attaching to each LWP.
2122 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2123 (init_lin_lwp_ops): Fill in some more operations.
2124 * linux-nat.h (linux_enable_event_reporting)
2125 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2126 prototypes.
2127 * linux-nat.c (linux_enable_event_reporting): New function.
2128 (child_post_attach, linux_child_post_startup_inferior)
2129 (child_post_startup_inferior, child_follow_fork)
2130 (linux_handle_extended_wait, kill_inferior): New functions.
2131
2132 2003-08-16 Andrew Cagney <cagney@redhat.com>
2133
2134 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2135 * gdbarch.h, gdbarch.c: Re-generate.
2136
2137 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2138
2139 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2140
2141 2003-08-16 Andrew Cagney <cagney@redhat.com>
2142
2143 * NEWS: Mention that "set prompt-escape-char" was deleted.
2144 * top.c (get_prompt_1): Delete function.
2145 (gdb_prompt_escape):
2146 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2147 prompt-escape-char" command.
2148 (MAX_PROMPT_SIZE): Delete macro.
2149 (get_prompt): Simplify, do not call get_prompt_1.
2150
2151 2003-08-16 Andrew Cagney <cagney@redhat.com>
2152
2153 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2154 -Werror. -Wformat-nonliteral problems.
2155
2156 2003-08-15 J. Brobecker <brobecker@gnat.com>
2157
2158 Further multiarching work mostly for hppa64-*-hpux11:
2159 * hppa-tdep.h: New file.
2160 * hppa-tdep.c: #include hppa-tdep.c.
2161 (hppa32_num_regs): Renamed from hppa_num_regs.
2162 (hppa64_num_regs): New constant.
2163 (hppa64_call_dummy_breakpoint_offset): New constant.
2164 (hppa32_call_dummy_length): New constant.
2165 (hppa64_call_dummy_length): New constant.
2166 (hppa32_stack_align): Make name 32bit explicit.
2167 (hppa32_register_virtual_type): Likewise.
2168 (hppa32_extract_return_value): Likewise.
2169 (hppa32_use_struct_convention): Likewise.
2170 (hppa32_store_return_value): Likewise.
2171 (hppa64_register_virtual_type): New function.
2172 (hppa64_extract_return_value): New function.
2173 (hppa64_use_struct_convention): New function.
2174 (hppa64_store_return_value): New function.
2175 (hppa_frame_locals_address): Remove declaration, function does
2176 not exist anymore.
2177 (hppa_register_byte): Add support for PA64 ABI.
2178 (hppa_gdbarch_init): Add support for PA64 ABI.
2179 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2180 Make name 32bit explicit.
2181 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2182 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2183 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2184 (hppa64_hpux_frame_base_before_sigtramp): New function.
2185 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2186 * config/pa/tm-hppa64.h: Remove macros that are no longer
2187 necessary now that the gdbarch vector is properly setup.
2188 Transform some macros into function calls. Some minor cleanup.
2189 * config/pa/tm-hppah.h: Update function calls in macros
2190 following the function renaming in hppa-hpux-tdep.c.
2191 * Makefile.in (hppa_tdep_h): New variable.
2192 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2193
2194 2003-08-14 Michael Snyder <msnyder@redhat.com>
2195
2196 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2197
2198 2003-08-13 J. Brobecker <brobecker@gnat.com>
2199
2200 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2201 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2202 routine.
2203
2204 2003-08-13 Michael Snyder <msnyder@redhat.com>
2205
2206 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2207 (frv_saved_pc_after_call): Use deprecated ftype.
2208 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2209 (frv_remote_translate_xfer_address): Remove.
2210 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2211
2212 2003-08-13 J. Brobecker <brobecker@gnat.com>
2213
2214 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2215 initialization after the common gdbarch initialization, not before.
2216
2217 2003-08-13 J. Brobecker <brobecker@gnat.com>
2218
2219 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2220 (ADDR_BITS_REMOVE): Remove, redundant.
2221
2222 2003-08-13 J. Brobecker <brobecker@gnat.com>
2223
2224 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2225 gdbarch method to clear the 2 low bits of text addresses.
2226
2227 2003-08-12 Andrew Cagney <cagney@redhat.com>
2228
2229 * Makefile.in (dsrec.o): Update dependencies.
2230 * dsrec.c: Include "gdb_assert.h".
2231 (make_srec): Use snprintf instead of sprintf, use a literal format
2232 string.
2233
2234 2003-08-12 Andrew Cagney <cagney@redhat.com>
2235
2236 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2237 FRAME_OBSTACK_ZALLOC.
2238
2239 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2240
2241 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2242 SSE registers.
2243
2244 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2245
2246 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2247 amd64fbsd_sc_reg_offset): Add extern declarations.
2248 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2249 declarations.
2250
2251 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2252
2253 * MAINTAINERS (write after approval): Update my mail address.
2254
2255 2003-08-10 Andrew Cagney <cagney@redhat.com>
2256
2257 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2258
2259 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2260
2261 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2262 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2263 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2264 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2265 i386bsd_sc_reg_offset): Add extern declarations.
2266 * i386obsd-nat.c: Include "i386-tdep.h"
2267 (_initialize_i386obsd_nat): Remove extern declarations.
2268 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2269 declarations.
2270 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2271 declarations.
2272
2273 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2274 instead of frame_read_register.
2275 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2276 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2277 SP_REGNUM.
2278 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2279 instead of frame_unwind_unsigned_register. Use
2280 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2281 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2282 instead of read_register. Use builtin_type_void_data_ptr instead
2283 of builtin_type_void_func_ptr when extracting the address of the
2284 jmp_buf.
2285 (i386_extract_return_value, i386_store_return_value,
2286 i386_pseudo_register_read, i386_pseudo_register_write): Use
2287 register_size instead REGISTER_RAW_SIZE.
2288
2289 2003-08-10 Andrew Cagney <cagney@redhat.com>
2290
2291 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2292 sprintf. Make "name" constant.
2293
2294 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2295
2296 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2297 instead of frame_read_register.
2298 (i387_print_float_info): Use get_frame_register and
2299 get_frame_register_unsigned instead of frame_register_read.
2300
2301 * i386fbsd-nat.c: Include "i386-tdep.h".
2302 (child_resume): Make `eflags' an ULONGEST. Use
2303 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2304 instead of register_read and register_write.
2305
2306 * i386bsd-nat.c (fetch_inferior_registers,
2307 store_inferior_registers): Don't use && at the end of a line.
2308 (_initialize_i386bsd_nat): Fix typo.
2309
2310 * frame.c (_initialize_frame): Add missing backslash.
2311
2312 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2313 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2314 and supply_register instead of manipulating the register buffer
2315 directly.
2316
2317 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2318 * config/i386/nm-i386sol2.h
2319 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2320
2321 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2322 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2323 instructions that GCC likes to mingle into the prologue. Fixes
2324 gdb/1253 and gdb/1255.
2325
2326 2003-08-09 Andrew Cagney <cagney@redhat.com>
2327
2328 Fix GDB PR cli/926.
2329 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2330 * command.h (add_setshow_uinteger_cmd): Declare.
2331 * frame.c (set_backtrace_cmd): New function.
2332 (show_backtrace_cmd): New function.
2333 * frame.c (_initialize_frame): Replace "set/show
2334 backtrace-below-main" with "set/show backtrace past-main". Add
2335 command "set/show backtrace limit".
2336 (backtrace_past_main): Rename "backtrace_below_main".
2337 (backtrace_limit): New variable.
2338 (get_prev_frame): Update. Check the backtrace_limit.
2339
2340 2003-08-09 Andrew Cagney <cagney@redhat.com>
2341
2342 * defs.h (xstrprintf): Declare.
2343 * utils.c (xstrprintf): New function.
2344 * breakpoint.c (insert_breakpoints): Replace sprintf and
2345 non-literal format strings, with xstrprintf and cleanups.
2346 (delete_breakpoint,breakpoint_re_set): Ditto.
2347 (commands_command, insert_breakpoints): Ditto.
2348 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2349 (break_at_finish_command_1): Ditto.
2350
2351 2003-08-09 Andrew Cagney <cagney@redhat.com>
2352
2353 * MAINTAINERS (language support): List Adam Fedor as Objective C
2354 maintainer.
2355
2356 2003-08-08 J. Brobecker <brobecker@gnat.com>
2357
2358 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2359 are now multiarched.
2360
2361 2003-08-08 J. Brobecker <brobecker@gnat.com>
2362
2363 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2364 longer necessary now that hppa64 is partially multiarch'ed.
2365
2366 2003-08-08 Andrew Cagney <cagney@redhat.com>
2367
2368 * interps.c (interp_set): Check for a NULL "old_interp".
2369
2370 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2371
2372 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2373 (install-only): Support DESTDIR.
2374 (uninstall): Likewise.
2375 (install-gdbtk): Likewise.
2376
2377 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2378
2379 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2380 contains something meaningful at all times.
2381
2382 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2383
2384 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2385
2386 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2387
2388 * MAINTAINERS (write after approval): Added self.
2389
2390 2003-08-07 Andrew Cagney <cagney@redhat.com>
2391
2392 * inferior.h (AT_SYMBOL): Define.
2393 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2394 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2395 * mips-tdep.c (mips_call_dummy_address): Delete function.
2396 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2397 set call_dummy_address.
2398
2399 2003-08-07 Andrew Cagney <cagney@redhat.com>
2400
2401 * language.c (op_error): Delete function.
2402 (binop_type_check): Delete function.
2403 * language.h (type_op_error, range_op_error): Delete macros.
2404 (op_error): Delete declaration.
2405
2406 2003-08-07 Andrew Cagney <cagney@redhat.com>
2407
2408 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2409
2410 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2411
2412 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2413 (x86_64_push_arguments): Skip the red zone.
2414
2415 2003-08-05 Andrew Cagney <cagney@redhat.com>
2416
2417 * reggroups.c (reggroup_next): Check for the final entry.
2418
2419 2003-08-04 Andrew Cagney <cagney@redhat.com>
2420
2421 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2422 * cli/cli-script.c (define_command): Call query directly, instead
2423 of passing it a buffer.
2424 * ocd.c (ocd_error): Pass error a constant format string.
2425 * remote-mips.c (mips_error): Use fputs_filtered.
2426
2427 * solib-svr4.c (_initialize_svr4_solib): Update
2428 register_gdbarch_data call.
2429 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2430
2431 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2432 (register_gdbarch_data): Delete "free" parameter. Update
2433 comments.
2434 * gdbarch.h, gdbarch.c: Re-generate.
2435 * reggroups.c (_initialize_reggroup): Update.
2436 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2437 * frame-base.c (_initialize_frame_base): Update.
2438 * frame-unwind.c (_initialize_frame_unwind): Update.
2439 * user-regs.c (_initialize_user_regs): Update.
2440 * remote.c (_initialize_remote): Update.
2441 * regcache.c (_initialize_regcache): Update.
2442
2443 * regcache.c (xfree_regcache_descr): Delete function.
2444 (_initialize_regcache): Update call to register_gdbarch_data.
2445 (init_regcache_descr, init_legacy_regcache_descr): Use
2446 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2447
2448 * remote.c (free_remote_state): Delete function.
2449 (_initialize_remote): Update register_gdbarch_data.
2450 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2451 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2452
2453 2003-08-04 Andrew Cagney <cagney@redhat.com>
2454
2455 * reggroups.c (struct reggroup_el): Define.
2456 (struct reggroups): Delete field "nr_group". Replace array
2457 "group" with a "first" to "last" linked list.
2458 (reggroups_init): Update. Allocate using gdbarch's obstack.
2459 (reggroups_free): Delete function.
2460 (add_group): Update. Add "el" parameter.
2461 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2462 (default_groups): Update.
2463 (reggroup_next): Replace reggroups.
2464 (reggroups_dump): Update.
2465 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2466 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2467 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2468
2469 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2470
2471 * Makefile.in (tui-interp.o): Update dependencies.
2472
2473 2003-08-04 David Carlton <carlton@kealia.com>
2474
2475 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2476 to internal_error call.
2477 * source.c (forward_search_command): Add "%s" format argument.
2478 (reverse_search_command): Ditto.
2479 * top.c (quit_confirm): Ditto.
2480 * cli/cli-setshow.c (do_setshow_command): Ditto.
2481 * cp-valprint.c (cp_print_class_method): Replace
2482 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2483 (cp_print_class_member): Ditto.
2484 * event-top.c (command_line_handler): Ditto.
2485 * linux-proc.c (linux_info_proc_cmd): Ditto.
2486 * p-typeprint.c (pascal_type_print_base): Ditto.
2487 * p-valprint.c (pascal_object_print_class_method): Ditto.
2488 (pascal_object_print_class_member): Ditto.
2489 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2490 * remote.c (remote_cisco_section_offsets): Ditto.
2491 * top.c (command_line_input): Ditto.
2492 * utils.c (vwarning,error_stream,quit): Ditto.
2493 * valprint.c (print_floating,print_binary_chars)
2494 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2495
2496 2003-08-04 Andrew Cagney <cagney@redhat.com>
2497
2498 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2499
2500 2003-08-02 Andrew Cagney <cagney@redhat.com>
2501
2502 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2503 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2504 amd64fbsd-nat.c.
2505
2506 2003-08-02 Andrew Cagney <cagney@redhat.com>
2507
2508 * Makefile.in: Update all dependencies and definitions.
2509
2510 2003-08-02 Adam Fedor <fedor@gnu.org>
2511
2512 * linespec.c (is_objc_method_format): New function
2513 (decode_line_1, locate_first_half): Use it.
2514 Fixes PR objc/1298
2515
2516 2003-08-01 Andrew Cagney <cagney@redhat.com>
2517
2518 * NEWS: Mention that m32r is multi-arch.
2519 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2520 * configure.tgt: Recognize m32r-*-*.
2521 * config/m32r/tm-m32r.h: Delete file.
2522 * config/m32r/m32r.mt: New file.
2523 * m32r-rom.c (m32r_upload_command): Use hostent only when
2524 gethostname succeeds, in order to avoid a compilation
2525 warning.
2526 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2527 compiler warning.
2528
2529 2003-08-01 Michael Snyder <msnyder@redhat.com>
2530
2531 * sh-tdep.c (sh_frame_align): New gdbarch method.
2532 (sh_gdbarch_init): Set up frame_align method.
2533
2534 2003-07-31 Michael Snyder <msnyder@redhat.com>
2535
2536 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2537 which is already covered by the new frames infrastructure.
2538
2539 2003-07-31 Andrew Cagney <cagney@redhat.com>
2540
2541 * user-regs.c (struct user_reg): Add "next" link.
2542 (struct user_regs): Replace "user" with "first" and "last" links.
2543 (append_user_reg): Add pre-allocated "reg" parameter.
2544 (builtin_user_regs): Provide initial value for "last".
2545 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2546 (user_regs_init): Allocate memory from the gdbarch obstack.
2547 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2548 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2549 linked list.
2550 (usernum_to_user_reg): New function.
2551 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2552 (value_of_user_reg): Use usernum_to_user_reg.
2553 (user_regs_free): Delete function.
2554 (_initialize_user_regs): Update register_gdbarch_data call.
2555
2556 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2557
2558 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2559
2560 2003-07-30 Michael Snyder <msnyder@redhat.com>
2561
2562 * value.h (value_being_returned): Add a struct_addr argument.
2563 * infcall.c (call_function_by_hand): Pass struct_addr to
2564 value_being_returned.
2565 * infcmd.c (print_return_value): Pass zero as struct_addr.
2566 * values.c (value_being_returned): If struct_addr is passed,
2567 use it instead of trying to recover it from the inferior.
2568
2569 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2570
2571 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2572 the prologue analyzer won't need to attempt to extract the pc
2573 value from the woefully incomplete dummy frame.
2574 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2575 possible. Disable code which modifies the frame.
2576
2577 2003-07-28 Andrew Cagney <cagney@redhat.com>
2578
2579 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2580 to level 2.
2581 (annotate_breakpoints_table, annotate_record): Ditto.
2582 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2583 (annotate_field_name_end, annotate_field_value): Ditto.
2584 (annotate_field_end, annotate_frame_source_begin): Ditto.
2585 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2586 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2587 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2588 (annotate_frame_address_end, annotate_frame_address): Ditto.
2589 (annotate_frame_args, annotate_frame_end): Ditto.
2590 (annotate_frame_where, annotate_arg_begin): Ditto.
2591 (annotate_arg_name_end, annotate_arg_value): Ditto.
2592 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2593 (annotate_function_call, annotate_signal_name): Ditto.
2594 (annotate_signal_string, annotate_signal_name_end): Ditto.
2595 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2596 (annotate_value_begin, annotate_value_history_value): Ditto.
2597 (annotate_value_history_end, annotate_value_end): Ditto.
2598 (annotate_display_begin, annotate_display_number_end): Ditto.
2599 (annotate_display_format, annotate_display_expression): Ditto.
2600 (annotate_display_expression_end, annotate_display_value): Ditto.
2601 (annotate_display_end, annotate_array_section_begin): Ditto.
2602 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2603 (annotate_elt, annotate_array_section_end): Ditto.
2604
2605 2003-07-28 Andrew Cagney <cagney@redhat.com>
2606
2607 * regcache.c (struct regcache_descr): Update comments on
2608 nr_raw_registers.
2609 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2610 sizeof_raw_register_valid_p.
2611 (init_regcache_descr): Set nr_raw_registers and
2612 sizeof_raw_register_valid_p before calling
2613 init_legacy_regcache_descr.
2614
2615 2003-07-28 Andrew Cagney <cagney@redhat.com>
2616
2617 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2618 MOD NUM_REGS.
2619
2620 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2621
2622 * thread.c (info_threads_command): Use get_selected_frame ().
2623 Check that there is at least one non-sentinel frame.
2624
2625 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2626
2627 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2628 (m68hc11_pop_frame): Remove.
2629 (m68hc11_frame_saved_pc): Remove.
2630 (m68hc11_frame_chain): Remove.
2631 (m68hc11_frame_init_saved_regs): Remove.
2632 (m68hc11_init_extra_frame_info): Remove.
2633 (m68hc11_store_struct_return): Remove.
2634 (m68hc11_saved_pc_after_call): Remove.
2635
2636 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2637
2638 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2639 frame unwind information.
2640 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2641 and adapted for frame unwinding.
2642 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2643 (m68hc11_unwind_pc): New function.
2644 (m68hc11_frame_unwind_cache): New function to analyze frames.
2645 (m68hc11_frame_this_id): New function to create new frame struct.
2646 (m68hc11_frame_prev_register): New function to unwind a register from
2647 the frame.
2648 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2649 (m68hc11_frame_p): New function for the above.
2650 (m68hc11_frame_base_address): New function to return fp of frame.
2651 (m68hc11_frame_args_address): Update for frame.
2652 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2653 (m68hc11_unwind_sp): New function.
2654 (m68hc11_unwind_dummy_id): New function.
2655 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2656 calls.
2657
2658 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2659
2660 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2661 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2662 when we are beyond the current pc.
2663
2664 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2665
2666 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2667 from m68hc11_push_arguments.
2668 (m68hc11_push_arguments): Remove.
2669 (m68hc11_push_return_address): Remove.
2670 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2671 handlers; remove deprecated_extra_stack_alignment_needed.
2672
2673 2003-07-27 Andrew Cagney <cagney@redhat.com>
2674
2675 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2676 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2677 REAL_PC and not the pointer.
2678 * hppa-hpux-tdep.c: Include frame.h
2679
2680 2003-07-27 Andrew Cagney <cagney@redhat.com>
2681
2682 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2683 GDB_MULTI_ACH_PARTIAL.
2684
2685 2003-07-27 Andrew Cagney <cagney@redhat.com>
2686
2687 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2688 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2689 operator at start and not end of line.
2690 (decode_prologue): Ditto.
2691 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2692 frame_unwind_register_unsigned instead of
2693 frame_unwind_unsigned_register.
2694 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2695 read_register.
2696 (m32r_push_dummy_call): Use register_size instead of
2697 REGISTER_RAW_SIZE.
2698 (m32r_frame_sniffer): Replace m32r_frame_p.
2699 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2700 * m32r-rom.c (report_transfer_performance): Delete extern
2701 declaration.
2702 (m32r_load, m32r_upload_command): Use print_transfer_performance
2703 instead of report_transfer_performance.
2704 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2705 / add_show_from_set.
2706
2707 2003-07-26 Andrew Cagney <cagney@redhat.com>
2708
2709 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2710 store_return_value and extract_struct_value_address.
2711
2712 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2713
2714 PR c++/1267
2715 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2716 NULL, default to the section containing PC.
2717
2718 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2719
2720 * NEWS: Mention "regs" deprecated for m68hc11 too.
2721
2722 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2723 (m68hc11_print_register): New function to print out one register.
2724 (m68hc11_print_registers_info): New function to print registers.
2725 (show_regs): Deprecate and use the above.
2726 (m68hc11_gdbarch_init): Install the print_registers_info.
2727
2728 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2729
2730 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2731 that we have a SIGTRAP before returning non-zero.
2732
2733 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2734 Elena Zannoni <ezannoni@redhat.com>
2735
2736 * linespec.c (decode_line_2): Avoid crash if
2737 find_function_start_sal() returns empty record.
2738
2739 2003-07-23 Andreas Schwab <schwab@suse.de>
2740
2741 * ia64-tdep.c (ia64_print_insn): New function.
2742 (ia64_gdbarch_init): Set print_insn to it.
2743 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2744 deprecated_tm_print_insn_info.
2745
2746 2003-07-22 Michael Snyder <msnyder@redhat.com>
2747
2748 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2749 handle 8-bit returns (long long).
2750 (h8300h_extract_return_value): Ditto.
2751 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2752
2753 2003-07-22 Andrew Cagney <cagney@redhat.com>
2754
2755 * gdbarch.c Include "gdb_obstack.h".
2756 (struct gdbarch): Add an "obstack".
2757 (alloc_gdbarch_data): Allocate the gdbarch data using
2758 GDBARCH_OBSTACK_CALLOC.
2759 (free_gdbarch_data): Delete function.
2760 (gdbarch_obstack_zalloc): New function.
2761 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2762 Assert that the architecture is not initialized.
2763 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2764 vector from the obstack.
2765 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2766 architecture obstack.
2767 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2768 (set_gdbarch_data): Assert that the data is not initialized.
2769 (struct gdbarch_data): Delete member "free".
2770 (register_gdbarch_data): Do not initialize "free".
2771 * gdbarch.h, gdbarch.c: Re-generate.
2772
2773 2003-07-22 Andrew Cagney <cagney@redhat.com>
2774
2775 * configure.in (build_warnings): Add -Wformat-nonliteral.
2776 * configure: Re-generate.
2777
2778 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2779
2780 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2781
2782 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2783
2784 * findvar.c (read_var_value): Remove case for thread local storage
2785 variables. It is now entirely handled by the dwarf2 location
2786 expression code.
2787 * printcmd.c (address_info): Ditto.
2788 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2789 enumeration value.
2790 (struct symbol): Remove objfile field, which was used by
2791 LOC_THREAD_LOCAL_STATIC only.
2792 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2793 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2794 usage of objfile pointer.
2795 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2796 thread local variables.
2797 Add include of objfiles.h.
2798 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2799 storage variables.
2800 * Makefile.in (dwarf2loc.o): Update dependencies.
2801
2802 2003-07-22 Andrew Cagney <cagney@redhat.com>
2803
2804 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2805 get_frame_base.
2806 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2807 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2808 (struct value): Add opaque declaration.
2809 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2810
2811 2003-07-21 Andrew Cagney <cagney@redhat.com>
2812
2813 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2814 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2815
2816 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2817
2818 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2819 regcache_cooked_read_unsigned instead of read_register.
2820 (m68hc11_saved_pc_after_call): Likewise.
2821 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2822 instead of write_register.
2823 (m68hc11_register_type): New function.
2824 (m68hc11_register_virtual_type): Remove.
2825 (m68hc11_store_return_value): Convert to use the regcache.
2826 (m68hc11_extract_struct_value_address): Likewise.
2827 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2828 m68hc11_register_type; undeprecate store_return_value and
2829 extract_struct_value_address.
2830
2831 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2832
2833 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2834 and translate to use regcache.
2835 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2836
2837 2003-07-18 Andrew Cagney <cagney@redhat.com>
2838
2839 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2840 * gdbarch.h, gdbarch.c: Re-generate.
2841 * i386-tdep.c (i386_gdbarch_init): Do not set
2842 DWARF2_BUILD_FRAME_INFO.
2843 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2844 unconditionally.
2845 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2846 DWARF2_BUILD_FRAME_INFO.
2847
2848 2003-07-18 Andrew Cagney <cagney@redhat.com>
2849
2850 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2851 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2852
2853 2003-07-18 Andrew Cagney <cagney@redhat.com>
2854
2855 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2856 frame_unwind_address_in_block, instead of frame_pc_unwind.
2857 (dwarf2_frame_cache): Ditto.
2858
2859 2003-07-18 Andrew Cagney <cagney@redhat.com>
2860
2861 * user-regs.h (struct gdbarch): Declare opaque.
2862 * ui-out.h (struct ui_file): Declare opaque.
2863 * dwarf2-frame.h (struct frame_info): Declare opaque.
2864
2865 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2866
2867 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2868 #include "...".
2869 (procfs_meminfo): Change strerror to safe_strerror.
2870 (procfs_can_run): Remove K&R badness.
2871
2872 2003-07-17 Michael Snyder <msnyder@redhat.com>
2873
2874 * remote-sim.c: Comment typo fix.
2875
2876 2003-07-17 Andrew Cagney <cagney@redhat.com>
2877
2878 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2879 configure.
2880 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2881 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2882 GDB_MULTI_ARCH_PARTIAL.
2883
2884 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2885
2886 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2887 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2888 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2889
2890 2003-07-16 Theodore A. Roth <troth@openavr.org>
2891
2892 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2893 found.
2894 (avr_frame_unwind_cache): Don't unwind FP for main.
2895 Update a comment.
2896 Save the computed prev_sp.
2897 (avr_saved_regs_unwinder): Remove function.
2898 (avr_frame_prev_register): Use PC unwind logic from
2899 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2900
2901 2003-07-16 Andrew Cagney <cagney@redhat.com>
2902
2903 * frame-base.h (frame_base_p_ftype): Delete definition.
2904 (frame_base_append_predicate): Delete declaration.
2905 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2906 (frame_unwind_append_predicate): Delete declaration.
2907 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2908 (append_predicate): Delete parameter "p".
2909 (frame_unwind_append_predicate): Delete function.
2910 (frame_unwind_append_sniffer): Update call to append_predicate.
2911 (frame_unwind_free): Delete function.
2912 (_initialize_frame_unwind): Pass NULL as "free" to
2913 register_gdbarch_data.
2914 (frame_unwind_init): Append the dummy_frame_sniffer.
2915 (frame_unwind_find_by_frame): Simplify.
2916 * frame-base.c (struct frame_base_table): Delete field "p".
2917 (append_predicate): Delete parameter "p".
2918 (frame_base_append_predicate): Delete function.
2919 (frame_base_append_sniffer): Update call to append_predicate.
2920 (frame_base_free): Delete function.
2921 (frame_base_find_by_frame): Simplify.
2922 (_initialize_frame_base): Pass NULL as "free" to
2923 register_gdbarch_data.
2924 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2925 (x86_64_sigtramp_frame_sniffer): Replace
2926 "x86_64_sigtramp_frame_p".
2927 (x86_64_init_abi): Set the frame unwind sniffers.
2928 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2929 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2930 (m68k_gdbarch_init): Set the frame unwind sniffers.
2931 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2932 "i386_sigtramp_frame_p".
2933 (i386_frame_sniffer): Replace "i386_frame_p".
2934 (i386_gdbarch_init): Set the frame unwind sniffers.
2935 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2936 (avr_gdbarch_init): Set the frame unwind sniffers.
2937 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2938 "alpha_sigtramp_frame_p"
2939 (alpha_heuristic_frame_sniffer): Replace
2940 "alpha_heuristic_frame_p".
2941 (alpha_gdbarch_init): Set the frame unwind sniffers.
2942 (alpha_dwarf2_init_abi): Ditto.
2943 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2944 "alpha_debug_frame_p".
2945 (alpha_mdebug_frame_base_sniffer): Replace
2946 "alpha_mdebug_frame_base_p".
2947 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2948 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2949 (d10v_gdbarch_init): Set the frame unwind sniffer.
2950 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2951 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2952 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2953 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2954 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2955 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2956
2957 2003-07-16 Michael Snyder <msnyder@redhat.com>
2958
2959 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2960 should go thru sh_dsp_register_sim_regno, else the dsp regs
2961 will not get the right values.
2962
2963 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2964
2965 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2966 deprecated_store_floating by call to store_typed_floating.
2967 (sh_sh4_register_convert_to_raw): Substitute call to
2968 deprecated_extract_floating by call to extract_typed_floating.
2969
2970 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2971
2972 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2973
2974 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2975
2976 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2977 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2978 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2979 as possible.
2980 (do_pseudo_register): Remove.
2981 (sh_push_dummy_code): New function.
2982 (sh64_store_struct_return): Rename from sh_store_struct_return.
2983 Only called for sh64 now.
2984 (sh_extract_struct_value_address): Regcache'ify.
2985 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2986 and accomodate new tasks.
2987 (sh64_push_return_address): Rename from sh_push_return_address.
2988 Only called for sh64 now.
2989 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2990 Regcache'ify.
2991 (sh3e_sh4_extract_return_value): Regcache'ify.
2992 (sh_default_store_return_value): Ditto.
2993 (sh3e_sh4_store_return_value): Ditto.
2994 (sh_default_register_byte): Remove.
2995 (sh_sh4_register_byte): Remove.
2996 (sh_default_register_raw_size): Remove.
2997 (sh_sh4_register_raw_size): Remove.
2998 (sh_register_virtual_size): Remove.
2999 (sh_sh3e_register_virtual_type): Remove.
3000 (sh_sh3e_register_type): New function.
3001 (sh_sh4_register_virtual_type): Remove.
3002 (sh_sh4_register_type): New function.
3003 (sh_default_register_virtual_type): Remove.
3004 (sh_default_register_type): New function.
3005 (do_fv_register_info): Add parameters to accomodate call from
3006 sh_print_registers_info.
3007 (do_dr_register_info): Ditto.
3008 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3009 Add parameters to accomodate call from sh_print_registers_info.
3010 (sh_do_fp_register): Ditto.
3011 (sh64_do_pseudo_register): Call do_dr_register_info,
3012 do_fv_register_info and sh_do_fp_register with default parameters.
3013 (sh_do_register): Add parameters to accomodate call from
3014 sh_print_registers_info.
3015 (sh_print_register): Ditto.
3016 (sh_print_registers_info): Rename from sh_do_registers_info.
3017 Add parameters to be used as gdbarch_print_registers_info
3018 implementation. Accomodate removed do_pseudo_register function
3019 pointer.
3020 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3021 function pointer. Call sh_print_register with default parameters.
3022 (sh64_do_registers_info): Call sh_print_registers_info instead of
3023 sh_do_registers_info.
3024 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3025 detection of deprecated vs. non-deprecated functionality.
3026 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3027 function pointer assignments by direct function calls.
3028
3029 2003-07-15 Andrew Cagney <cagney@redhat.com>
3030
3031 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3032 (frame_register_unwind, create_new_frame): Ditto.
3033 (legacy_get_prev_frame, get_frame_type): Ditto.
3034 (get_frame_base_address): Use frame_base_find_by_frame.
3035 (get_frame_locals_address): Use frame_base_find_by_frame.
3036 (get_frame_args_address): Use frame_base_find_by_frame.
3037 * frame-base.h (frame_base_sniffer_ftype): Declare.
3038 (frame_base_append_sniffer): Declare.
3039 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3040 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3041 (frame_base_append_sniffer): New function.
3042 (frame_base_append_predicate): Add a NULL sniffer.
3043 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3044 (struct frame_base_table): Add "sniffer".
3045 (frame_base_free): Free the "sniffer" table.
3046 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3047 (frame_unwind_append_sniffer): Declare.
3048 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3049 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3050 (struct frame_unwind_table): Add "sniffer", delete "middle".
3051 (append_predicate): Add "sniffer" parameter, append the sniffer.
3052 (frame_unwind_init): Update append_predicate call.
3053 (frame_unwind_append_sniffer): New function.
3054 (frame_unwind_append_predicate): Update append_predicate call.
3055 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3056
3057 2003-07-15 Andrew Cagney <cagney@redhat.com>
3058
3059 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3060 before code inhibiting repeated unwind attempts. Add to
3061 commentary on that test's problems.
3062 * blockframe.c (inside_main_func): Look for "main" in the minimal
3063 symbol table.
3064 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3065 identical.
3066
3067 2003-07-15 Andrew Cagney <cagney@redhat.com>
3068
3069 * complaints.c (struct explanation): Define.
3070 (struct complaints): Change type of "explanation" to "struct
3071 explanation".
3072 (symfile_explanations): Convert to a "struct explanation" table.
3073 (vcomplaint): Update.
3074
3075 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3076
3077 * x86-64-linux-nat.c (regmap): Removed.
3078 (supply_gregset, fill_gregset): Call
3079 x86_64_linux_(fill,supply)_gregset functions.
3080 * x86-64-linux-tdep.c (USER_*): New defines.
3081 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3082 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3083 New functions.
3084 (fetch_core_registers): Ditto.
3085 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3086 * x86-64-linux-tdep.h: New file.
3087 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3088 and core-regset.o.
3089 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3090
3091 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3092
3093 * x86-64-tdep.c (x86_64_store_return_value): Use
3094 regcache_cooked_write_part instead of regcache_cooked_write.
3095
3096 * configure.host: Add x86_64-*-freebsd*.
3097 * configure.tgt: Add x86_64-*-freebsd*.
3098 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3099 * amd64fbsd-nat.c: New file.
3100 * amd64fbsd-tdep.c: New file.
3101 * config/i386/nm-fbsd64.h: New file.
3102 * config/i386/fbsd64.mh: New file.
3103 * config/i386/fbsd64.mt: New file.
3104
3105 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3106
3107 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3108 `sc_regs_offset' and `sc_fpregs_offset'.
3109 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3110 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3111 (alpha_sigtramp_register_address): Rewrite to use new members of
3112 `struct gdbarch_tdep'.
3113 (alpha_gdbarch_init): Initialize new members of struct
3114 gdbarch_tdep'.
3115 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3116 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3117 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3118 (alphafbsd_pc_in_sigtramp): Implement.
3119 (alphafbsd_sigtramp_offset): New function.
3120 (alphafbsd_sigcontext_addr): New function.
3121 (alphafbsd_init_abi): Initialize signal trampoline related members
3122 of `struct gdbarch_tdep'.
3123 (_initialize_alphafbsd_tdep): Add prototype.
3124
3125 2003-07-11 Theodore A. Roth <troth@openavr.org>
3126
3127 * Makefile.in (install-only): Quote sed expression when generating
3128 transformed_name.
3129
3130 2003-07-11 Richard Henderson <rth@redhat.com>
3131
3132 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3133 * dwarf2-frame.c: Include complaints.h.
3134 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3135 variable initialization; return NULL on error.
3136 (decode_frame_entry): New.
3137
3138 2003-07-11 Andrew Cagney <cagney@redhat.com>
3139
3140 * frame.h (frame_address_in_block): Delete declaration.
3141 * blockframe.c (frame_address_in_block): Delete function.
3142 (get_frame_block): Use get_frame_address_in_block.
3143 (block_innermost_frame): Ditto.
3144 * stack.c (print_frame, backtrace_command_1): Ditto.
3145
3146 * frame.h (get_frame_address_in_block): Declare.
3147 (frame_unwind_address_in_block): Declare.
3148 * frame.c (frame_unwind_address_in_block): New function.
3149 (get_frame_address_in_block): New function.
3150
3151 2003-07-10 Andrew Cagney <cagney@redhat.com>
3152
3153 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3154 pre-default. Note: re-generate has no effect.
3155
3156 2003-07-10 Andrew Cagney <cagney@redhat.com>
3157
3158 * gdbarch.sh: When a variable, but not a function, compare against
3159 0. Fix problem in previous patch.
3160 * gdbarch.c: Re-generate.
3161
3162 2003-07-10 Andrew Cagney <cagney@redhat.com>
3163
3164 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3165 functions against NULL, not 0.
3166 * gdbarch.c: Re-generate.
3167
3168 2003-07-10 Fred Fish <fnf@ninemoons.com>
3169
3170 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3171 null string instead of a null pointer.
3172 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3173
3174 2003-07-09 Michael Snyder <msnyder@redhat.com>
3175
3176 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3177
3178 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3179
3180 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3181 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3182 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3183 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3184 * x86-64-tdep.c: ... from here.
3185
3186 2003-07-09 Andreas Schwab <schwab@suse.de>
3187
3188 * m68k-tdep.h (enum struct_return): Define.
3189 (struct gdbarch_tdep): Add struct_return.
3190 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3191 bytes are padded to the right, not to the left. Pass struct value
3192 address in register %a1, not on stack.
3193 (m68k_use_struct_convention): New function.
3194 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3195 struct_return in tdep to pcc_struct_return.
3196 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3197 reg_struct_return.
3198
3199 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3200
3201 * somread.c (som_symfile_offsets): Fix compilation error.
3202
3203 2003-07-09 Andrew Cagney <cagney@redhat.com>
3204
3205 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3206 Add comments about the checks.
3207
3208 2003-07-08 Andrew Cagney <cagney@redhat.com>
3209
3210 * Makefile.in: Make dependency section headers consistent.
3211 (config_h): Move to $BUILD headers section.
3212 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3213 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3214 (ada-exp.tab.c): Move to YACC/LEX section.
3215 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3216 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3217
3218 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3219
3220 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3221 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3222 of strerror with safe_strerror, use ISO C function definitions,
3223 and replace instances of sprintf with snprintf.
3224
3225 2003-07-07 Andrew Cagney <cagney@redhat.com>
3226
3227 * frame.c (get_prev_frame): Enable check for identical frames.
3228 Update comments. Update error messages.
3229
3230 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3231
3232 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3233
3234 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3235
3236 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3237 sort_symtab_syms, no longer necessary.
3238
3239 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3240
3241 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3242
3243 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3244
3245 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3246 (mips_register_byte): Likewise.
3247
3248 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3249
3250 * Makefile.in (sparc_tdep_h): New.
3251 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3252 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3253 * sparc-linux-nat.c: Include "sparc-tdep.h".
3254 * sparc-nat.c: Likewise.
3255 * sparc-tdep.c: Likewise.
3256 * sparc64nbsd-nat.c: Likewise.
3257 * sparcnbsd-nat.c: Likewise.
3258 * sparcnbsd-tdep.c: Likewise.
3259 * sparc-tdep.h: New file.
3260 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3261 and sparc_npc_regnum.
3262
3263 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3264
3265 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3266 (mips_linux_cannot_store_register): List supported instead of
3267 unsupported registers.
3268
3269 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3270
3271 * disasm.c (dump_insns): Separate instructions from addresses.
3272
3273 2003-07-07 Andreas Schwab <schwab@suse.de>
3274
3275 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3276 dependencies.
3277 * m68k-tdep.c (NUM_FREGS): Delete.
3278 (SIG_PC_FP_OFFSET): Delete.
3279 (TARGET_M68K): Delete.
3280 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3281 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3282 P_MOVEL_SP, P_MOVEML_SP): Define.
3283 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3284 P_TRAP): Delete.
3285 (m68k_register_raw_size): Delete.
3286 (m68k_register_virtual_size): Delete.
3287 (m68k_register_type): Renamed from m68k_register_virtual_type and
3288 add gdbarch argument.
3289 (m68k_store_struct_return): Delete.
3290 (m68k_deprecated_extract_return_value): Delete.
3291 (m68k_deprecated_extract_struct_value_address): Delete.
3292 (m68k_frame_chain): Delete.
3293 (m68k_frame_saved_pc): Delete.
3294 (m68k_fix_call_dummy): Delete.
3295 (m68k_push_dummy_frame): Delete.
3296 (m68k_pop_frame): Delete.
3297 (m68k_extract_return_value): New function.
3298 (m68k_store_return_value): Rewrite using regcache.
3299 (m68k_extract_struct_value_address): Rewrite using regcache.
3300 (m68k_push_dummy_call): New function.
3301 (struct m68k_frame_cache): Define.
3302 (m68k_alloc_frame_cache): New function.
3303 (m68k_analyze_frame_setup): New function.
3304 (m68k_analyze_register_saves): New function.
3305 (m68k_analyze_prologue): New function.
3306 (m68k_skip_prologue): Rewrite using above functions.
3307 (m68k_unwind_pc): New function.
3308 (m68k_frame_cache): New function.
3309 (m68k_frame_this_id): New function.
3310 (m68k_frame_prev_register): New function.
3311 (m68k_frame_unwind): New variable.
3312 (m68k_frame_p): New function.
3313 (m68k_sigtramp_frame_cache): New function.
3314 (m68k_sigtramp_frame_this_id): New function.
3315 (m68k_sigtramp_frame_prev_register): New function.
3316 (m68k_sigtramp_frame_unwind): New variable.
3317 (m68k_sigtramp_frame_p): New function.
3318 (m68k_frame_base_address): New function.
3319 (m68k_frame_base): New function.
3320 (m68k_unwind_dummy_id): New function.
3321 (fill_gregset): Use regcache_collect.
3322 (fill_fpregset): Likewise.
3323 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3324 defined.
3325 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3326 deprecated_init_frame_pc, deprecated_store_struct_return,
3327 deprecated_extract_return_value, deprecated_store_return_value,
3328 deprecated_frame_chain, deprecated_frame_saved_pc,
3329 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3330 deprecated_register_virtual_size,
3331 deprecated_max_register_raw_size,
3332 deprecated_max_register_virtual_size,
3333 deprecated_register_virtual_type, deprecated_register_size,
3334 deprecated_register_byte, deprecated_register_bytes,
3335 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3336 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3337 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3338 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3339 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3340 deprecated_push_dummy_frame, deprecated_pop_frame,
3341 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3342 only if SYSCALL_TRAP is defined. Set extract_return_value,
3343 store_return_value, extract_struct_value_address, register_type,
3344 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3345 predicates.
3346 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3347 M68K_MAX_REGISTER_SIZE): Define.
3348 (struct m68k_sigtramp_info): Define.
3349 (struct gdbarch_tdep): Add get_sigtramp_info.
3350 * m68klinux-nat.c (fetch_register): Use register_size instead of
3351 REGISTER_RAW_SIZE. Don't put assignment in if.
3352 (store_register): Likewise.
3353 (fetch_inferior_registers): Likewise.
3354 (store_inferior_registers): Likewise.
3355 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3356 (m68k_linux_frame_saved_pc): Delete.
3357 (m68k_linux_sigcontext_reg_offset,
3358 m68k_linux_ucontext_reg_offset): Define.
3359 (m68k_linux_get_sigtramp_info): New function.
3360 (m68k_linux_extract_return_value): Rewrite using regcache.
3361 (m68k_linux_store_return_value): Likewise.
3362 (m68k_linux_extract_struct_value_address): Likewise.
3363 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3364 Don't set deprecated_frame_saved_pc,
3365 deprecated_extract_return_value, deprecated_store_return_value,
3366 deprecated_extract_struct_value_address. Set
3367 extract_return_value, store_return_value,
3368 extract_struct_value_address.
3369
3370 2003-07-07 Andrew Cagney <cagney@redhat.com>
3371
3372 * expprint.c: Include "user-regs.h" instead of "frame.h".
3373 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3374 frame_map_regnum_to_name.
3375 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3376 (frame_map_name_to_regnum): Simplify, call
3377 user_reg_map_name_to_regnum.
3378 (frame_map_regnum_to_name): Simplify, call
3379 user_reg_map_regnum_to_name.
3380 (frame_register_unwind): Update.
3381 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3382 (_initialize_frame_reg): Call user_reg_add_builtin.
3383 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3384 (value_of_register): Use value_of_user_reg.
3385 * eval.c (evaluate_subexp_standard): Update.
3386 * parse.c (write_dollar_variable): Update.
3387 * d10v-tdep.c (d10v_print_registers_info): Update.
3388 * infcmd.c (registers_info): Update.
3389 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3390 (builtin_regs_h): Delete macro.
3391 (user_regs_h): Define.
3392 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3393 (builtin-regs.o): Delete target.
3394 (user-regs.o): Specify dependencies.
3395 (expprint.o): Update dependencies.
3396 (findvar.o): Update dependencies.
3397 (frame.o): Update dependencies.
3398 (std-regs.o): Update dependencies.
3399
3400 2003-07-06 Christopher Faylor <cgf@redhat.com>
3401
3402 * win32-nat.c (solib_symbols_add): Use one variable for all section
3403 address stuff. Pass variable rather than address of variable to
3404 safe_symbol_file_add.
3405
3406 2003-07-06 Andreas Schwab <schwab@suse.de>
3407
3408 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3409
3410 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3411
3412 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3413
3414 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3415
3416 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3417
3418 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3419
3420 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3421 * config/i386/nto.mh: New file.
3422 * config/i386/nm-nto.h: New file.
3423 * configure.host: Add i[3456]86-*-nto*.
3424
3425 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3426
3427 * remote-vx.c (vx_add_symbols): Fix compilation error.
3428
3429 2003-07-03 Andrew Cagney <cagney@redhat.com>
3430
3431 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3432 * gdbarch.h, gdbarch.c: Re-generate.
3433 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3434 (legacy_register_name): Declare.
3435 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3436 (REGISTER_NAME): Define.
3437 * sparc-tdep.c (legacy_register_name): New function.
3438 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3439 (REGISTER_NAME): Define.
3440 (hppa64_register_name): Declare.
3441 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3442 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3443 (hppa64_register_name): New function.
3444 (hppa_register_name): New function.
3445 * arch-utils.c (legacy_register_name): Delete.
3446 * arch-utils.h (legacy_register_name): Delete.
3447
3448 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3449
3450 * cli/cli-interp.c (cli_interpreter_resume): Update the
3451 cli_uiout's stream to gdb_stdout.
3452
3453 2003-07-03 Andrew Cagney <cagney@redhat.com>
3454
3455 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3456 predicate.
3457 * gdbarch.h, gdbarch.c: Re-generate.
3458 * regcache.c (init_regcache_descr): Use legacy code when either
3459 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3460
3461 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3462
3463 * NEWS: Move "set logging" entry into GDB 6.0 section.
3464
3465 2003-07-02 Jim Blandy <jimb@redhat.com>
3466
3467 * s390-tdep.c (struct frame_extra_info): new member:
3468 'stack_bought_valid'.
3469 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3470 initialize fextra_info->stack_bought.
3471 (s390_frameless_function_invocation): Don't trust the value of
3472 fextra_info_ptr->stack_bought unless
3473 fextra_info->stack_bought_valid is set.
3474
3475 New S390 prologue analyzer.
3476 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3477 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3478 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3479 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3480 compute_x_addr, s390_on_stack, s390_store,
3481 s390_get_signal_frame_info): New functions.
3482 (S390_NUM_SPILL_SLOTS): New macro.
3483 (s390_get_frame_info): Rewritten.
3484 (is_arg_reg): Deleted.
3485
3486 Break out the decoding of S/390 instructions into separate
3487 functions, to make it more legible, and easier to check
3488 against the spec.
3489 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3490 is_rx, is_rxe): New functions.
3491 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3492 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3493 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3494 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3495 enums for opcode values. (Is this an improvement?)
3496
3497 2003-07-02 Andrew Cagney <cagney@redhat.com>
3498
3499 * i386-tdep.c: Revert change committed as part of trad-frame code
3500 below.
3501
3502 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3503
3504 * breakpoint.c (insert_catchpoint): Make static.
3505
3506 2003-07-02 Andreas Schwab <schwab@suse.de>
3507
3508 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3509 former ia64_push_arguments and ia64_push_return_address, and use
3510 regcache functions instead of read/write_register.
3511 (ia64_gdbarch_init): Set push_dummy_call instead of
3512 deprecated_push_arguments and deprecated_push_return_address.
3513
3514 2003-07-01 Andreas Jaeger <aj@suse.de>
3515
3516 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3517 before the call.
3518 Set %rax only to number of SSE registers used.
3519
3520 2003-07-01 Andrew Cagney <cagney@redhat.com>
3521
3522 * trad-frame.h: Update comments, a -1 .addr is reserved.
3523 (trad_frame_value_p, trad_frame_addr_p): Declare.
3524 (trad_frame_reg_p): Declare.
3525 (trad_frame_set_value): Rename trad_frame_register_value.
3526 (trad_frame_set_unknown): Declare.
3527 * trad-frame.c (trad_frame_realreg_p): New function.
3528 (trad_frame_addr_p, trad_frame_value_p): New function.
3529 (trad_frame_set_unknown): New function.
3530 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3531 (trad_frame_prev_register): Use trad_frame_realreg_p,
3532 trad_frame_addr_p and trad_frame_value_p.
3533 (trad_frame_set_value): Rename trad_frame_register_value.
3534 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3535 and trad_frame_set_value.
3536
3537 2003-06-30 Jim Blandy <jimb@redhat.com>
3538
3539 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3540 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3541 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3542 for 16 registers, and then 32 more bytes.
3543 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3544 New macros.
3545 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3546 Move up in the file, since it's now used by is_simple_arg.
3547 (is_simple_arg): Don't assume registers are four bytes long.
3548 Exclude all double arguments. Extended floats are not simple
3549 args.
3550 (is_power_of_two): New function.
3551 (pass_by_copy_ref): Call is_power_of_two, and check that the
3552 length fits in a register, rather than listing all the acceptable
3553 sizes. Extended floats are not passed by reference.
3554 (s390_push_arguments): Don't assume registers are four bytes long.
3555 Reserve an argument register to point to the buffer for structures
3556 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3557 S390_STACK_FRAME_OVERHEAD.
3558
3559 2003-06-30 Andreas Schwab <schwab@suse.de>
3560
3561 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3562 format error message.
3563
3564 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3565
3566 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3567
3568 2003-06-30 David Carlton <carlton@kealia.com>
3569
3570 Band-aid for PR c++/1245.
3571 * Makefile.in (cp-support.o): Depend on complaints_h.
3572 * cp-support.c: Include complaints.h. Add declaration for
3573 find_last_component.
3574 (cp_find_first_component): Separate code into
3575 cp_find_first_component_aux.
3576 (cp_find_first_component_aux): Call demangled_name_complaint.
3577 (demangled_name_complaint): New.
3578
3579 2003-06-30 Andrew Cagney <cagney@redhat.com>
3580
3581 * remote.c (remote_write_bytes): Explicitly compute and then use
3582 the payload size. Update comments to reflect. Fixes problem of
3583 GDB not sending small packets as found by Fred Fish.
3584
3585 2003-06-30 Andrew Cagney <cagney@redhat.com>
3586
3587 * remote.c (remote_async_wait): Fix -Wformat problem.
3588
3589 2003-06-29 Andrew Cagney <cagney@redhat.com>
3590
3591 * remote.c (remote_wait): Call error, and not warning, when the
3592 packet is corrupt.
3593 (remote_async_wait): Ditto.
3594
3595 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3596
3597 * sparc-tdep.c (sparc_y_regnum): Make external again.
3598
3599 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3600
3601 * cli/cli-logging.c (pop_output_files): Add void to function
3602 definition.
3603
3604 2003-06-29 Andrew Cagney <cagney@redhat.com>
3605
3606 * frame.c (frame_register_unwind): Use unsigned char when dumping
3607 the buffer contents.
3608
3609 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3610
3611 * cli/cli-logging.c: New file.
3612 * cli-out.c (struct ui_out_data): Add original_stream.
3613 (cli_redirect): New function.
3614 (cli_ui_out_impl): Add cli_redirect.
3615 (cli_out_new): Initialize original_stream.
3616 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3617 (uo_redirect, ui_out_redirect): New.
3618 * ui-out.h (struct ui_out_impl): Add redirect member.
3619 (redirect_ftype): New.
3620 (ui_out_redirect): Add prototype.
3621 * Makefile.in: Add rules for cli-logging.c.
3622 * NEWS: Mention "set logging".
3623
3624 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3625
3626 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3627
3628 2003-06-27 Andrew Cagney <cagney@redhat.com>
3629
3630 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3631 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3632 * avr-tdep.c (avr_call_dummy_address): Delete function.
3633 (avr_gdbarch_init): Do not set call_dummy_address.
3634
3635 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3636
3637 * symfile.c (syms_from_objfile): Move variables to inner block.
3638 Move the checks for the non-mainline case a bit earlier to avoid
3639 doing some useless computations.
3640
3641 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3642
3643 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3644
3645 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3646
3647 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3648 sections.
3649
3650 2003-06-26 Michael Chastain <mec@shout.net>
3651
3652 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3653 gdb/testsuite/gdb.c++/pr-1210.exp.
3654
3655 2003-06-26 Andrew Cagney <cagney@redhat.com>
3656
3657 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3658 altivec_expression.h and altivec_registers.h.
3659
3660 2003-06-26 Andrew Cagney <cagney@redhat.com>
3661
3662 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3663 info->mach when MIPS16. Patch suggested by Fred Fish.
3664
3665 2003-06-26 Andrew Cagney <cagney@redhat.com>
3666
3667 * utils.c (internal_vproblem): Print the problem to a reason
3668 buffer and then pass to query. Make the msg variable more local.
3669
3670 2003-06-26 Andrew Cagney <cagney@redhat.com>
3671
3672 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3673 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3674 * gdbarch.h, gdbarch.c: Re-generate.
3675 * frame-base.c (default_frame_args_address): Update. Use
3676 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3677 not available.
3678 (default_frame_locals_address): Ditto for
3679 DEPRECATED_FRAME_LOCALS_ADDRESS.
3680 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3681 (vax_frame_num_args): Update.
3682 (vax_gdbarch_init): Update.
3683 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3684 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3685 * mcore-tdep.c (mcore_gdbarch_init): Update.
3686 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3687 * ia64-tdep.c (ia64_gdbarch_init): Update.
3688 * symtab.h (address_class): Update comments.
3689 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3690 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3691 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3692 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3693 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3694 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3695 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3696 * alpha-mdebug-tdep.c: Update.
3697 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3698
3699 2003-06-26 Andreas Jaeger <aj@suse.de>
3700
3701 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3702 of SSE registers so that varargs functions work. Rework handling
3703 of passing arguments on the stack.
3704 (x86_64_store_return_value): Return double and float values in SSE
3705 register.
3706
3707 2003-06-24 Michael Chastain <mec@shout.net>
3708
3709 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3710 the "constructor breakpoints ignored" bug.
3711
3712 2003-06-25 David Carlton <carlton@kealia.com>
3713
3714 * MAINTAINERS: Update e-mail address.
3715
3716 2003-06-24 Jim Blandy <jimb@redhat.com>
3717
3718 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3719
3720 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3721 function.
3722 (ppc_linux_init_abi): Register it as the
3723 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3724
3725 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3726 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3727 method.
3728
3729 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3730 (ppc64_standard_linkage_target): Use it.
3731
3732 2003-06-23 Andrew Cagney <cagney@redhat.com>
3733
3734 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3735 for 0 "int0" and 4 "int32" sized registers.
3736 * gdbtypes.c (builtin_type_int0): Define.
3737 (build_gdbtypes): Initialize builtin_type_int0.
3738 * gdbtypes.h (builtin_type_int0): Declare.
3739
3740 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3741
3742 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3743 as characters are unsigned.
3744
3745 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3746
3747 PR gdb/1179
3748 * dwarfread.c (struct_type): Skip static fields without crashing.
3749
3750 2003-06-22 Andrew Cagney <cagney@redhat.com>
3751
3752 GDB 6.0 branch created.
3753 * README: Update.
3754 * PROBLEMS: Update. Empty.
3755 * NEWS: Update.
3756
3757 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3758
3759 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3760 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3761
3762 2003-06-22 Andrew Cagney <cagney@redhat.com>
3763
3764 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3765 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3766 Velikov.
3767
3768 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3769
3770 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3771 compilers.
3772
3773 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3774
3775 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3776 argument of val_print.
3777 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3778 to the address argument of baseclass_offset or target_read_memory.
3779 Do add it to the argument of cp_print_value_fields.
3780
3781 2003-06-21 Andrew Cagney <cagney@redhat.com>
3782
3783 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3784 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3785 instead of 0..NUM_REGS.
3786 (mips_register_reggroup_p): New function.
3787 (mips_pseudo_register_write): New function.
3788 (mips_pseudo_register_read): New function.
3789 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3790 based on the register's type.
3791 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3792 cooked.
3793 (mips_get_saved_register): Simplify. Assert that REGNO is a
3794 pseudo / cooked.
3795 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3796 (mips_register_type): Replace mips_register_virtual_type. Map
3797 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3798 when available.
3799 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3800 that the register is cooked / virtual.
3801 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3802 Only get the extra info when needed.
3803 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3804 (mips32_heuristic_proc_desc): Fetch the cooked register.
3805 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3806 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3807 (mips_print_register): Use gdbarch_register_type, instead of
3808 REGISTER_VIRTUAL_TYPE.
3809 (print_gp_register_row): Use gdbarch_register_type, instead of
3810 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3811 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3812 Print the pseudo / cooked registers.
3813 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3814 Print the pseudo / cooked registers.
3815 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3816 REG_NUM is pseudo / cooked.
3817 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3818 (mips_n32n64_xfer_return_value): Ditto.
3819 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3820 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3821 (mips_register_sim_regno): New function.
3822 (mips_gdbarch_init): Set deprecated_register_byte,
3823 register_group_p, pseudo_register_write, pseudo_register_read,
3824 register_sim_regno, and num_pseudo_regs. Set register_type,
3825 instead of register_virtual_type.
3826 * Makefile.in (mips-tdep.o): Update dependencies.
3827 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3828 REGISTER_VIRTUAL_TYPE.
3829 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3830 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3831 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3832 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3833 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3834
3835 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3836
3837 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3838 * cli/cli-cmds.c: Include "gdb_vfork.h".
3839 (shell_escape): Use vfork.
3840
3841 2003-06-21 Andrew Cagney <cagney@redhat.com>
3842
3843 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3844 32 bit floating-point register saves.
3845
3846 * frame.h (deprecated_unwind_get_saved_register): Delete.
3847 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3848 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3849 and deprecated_get_next_frame_hack instead of
3850 deprecated_unwind_get_saved_register.
3851
3852 * mips-tdep.c (mips_dump_tdep): Do not print
3853 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3854
3855 * frame.c (get_frame_register): New function.
3856 (frame_unwind_register_signed): New function.
3857 (get_frame_register_signed): New function.
3858 (frame_unwind_register_unsigned): New function.
3859 (get_frame_register_unsigned): New function.
3860 * frame.h: Add comments on naming schema.
3861 (get_frame_register, frame_unwind_register_signed): Declare.
3862 (get_frame_register_signed, get_frame_register_signed): Declare.
3863 (frame_unwind_register_unsigned): Declare.
3864 (get_frame_register_unsigned): Declare.
3865
3866 2003-06-20 Theodore A. Roth <troth@openavr.org>
3867
3868 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3869
3870 2003-06-20 Theodore A. Roth <troth@openavr.org>
3871
3872 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3873 (avr_read_sp): Ditto.
3874
3875 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3876
3877 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3878 * config/arm/nm-linux.h: Likewise.
3879 * config/arm/tm-linux.h: Likewise.
3880 * config/ia64/nm-linux.h: Likewise.
3881 * config/ia64/tm-ia64.h: Likewise.
3882 * config/s390/tm-linux.h: Likewise.
3883 * config/s390/tm-s390.h: Likewise.
3884 * s390-nat.c: Likewise.
3885 * s390-tdep.c: Likewise.
3886
3887 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3888 * config/ia64/linux.mt: Likewise.
3889 * config/m68k/linux.mh: Likewise.
3890 * config/mips/linux.mt: Likewise.
3891 * config/powerpc/linux.mh: Likewise.
3892 * config/sh/linux.mt: Likewise.
3893
3894 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3895
3896 * solib.c (solib_open): Change tests for whether to search
3897 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3898 comments.
3899
3900 2003-06-19 Theodore A. Roth <troth@openavr.org>
3901
3902 * avr-tdep.c (avr_frame_address): Delete function.
3903 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3904 set_gdbarch_frame_args_address.
3905
3906 2003-06-19 Andrew Cagney <cagney@redhat.com>
3907
3908 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3909 (REGISTER_CONVERT_FROM_TYPE): Delete.
3910 (mips_register_convert_to_type): Delete declaration.
3911 (mips_register_convert_from_type): Delete declaration.
3912 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3913 kernel/.
3914
3915 2003-06-19 Michael Snyder <msnyder@redhat.com>
3916
3917 * linux-nat.h: New file.
3918 * linux-nat.c: Include linux-nat.h.
3919 * lin-lwp.c: Include linux-nat.h.
3920 Move struct lwp_info def to linux-nat.h.
3921 * linux-proc.c: Include linux-nat.h.
3922 (linux_make_note_section): Iterate over lwps instead of threads.
3923 (linux_do_thread_registers): Use lwp instead of merged pid.
3924 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3925 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3926 Add dependency on linux_nat_h.
3927
3928 2003-06-19 Theodore A. Roth <troth@openavr.org>
3929
3930 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3931
3932 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3933
3934 * varobj.c (get_type, get_target_type): Use check_typedef.
3935
3936 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3937
3938 * breakpoint.c (insert_catchpoint): Call internal_error.
3939
3940 2003-06-19 Theodore A. Roth <troth@openavr.org>
3941
3942 * avr-tdep.c (avr_push_dummy_code): Delete function.
3943 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3944
3945 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3946
3947 * arch-utils.c (default_prepare_to_proceed): Remove.
3948 (generic_prepare_to_proceed): Remove.
3949 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3950 (generic_prepare_to_proceed): Remove prototype.
3951 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3952 * gdbarch.c: Regenerate.
3953 * gdbarch.h: Regenerate.
3954 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3955 * hppah-nat.c (hppa_switched_threads): Remove.
3956 * infrun.c (prepare_to_proceed): New static function, copied from
3957 generic_prepare_to_proceed. Remove select_it argument.
3958 (proceed): Call prepare_to_proceed.
3959 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3960 variables.
3961 (ptrace_wait): Don't set the removed variables.
3962 (hppa_switched_threads): Remove.
3963 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3964 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3965 (lin_lwp_prepare_to_proceed): Remove prototype.
3966 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3967 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3968
3969 2003-06-18 Theodore A. Roth <troth@openavr.org>
3970
3971 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3972 trad-frame.h.
3973 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3974 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3975 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3976 (AVR_PROLOGUE_*): Enumerate prologue types.
3977 (struct frame_extra_info): Remove.
3978 (struct avr_unwind_cache): Define.
3979 (avr_write_sp): Delete function.
3980 (avr_read_fp): Ditto.
3981 (avr_init_extra_frame_info): Ditto.
3982 (avr_pop_frame): Ditto.
3983 (avr_frame_saved_pc): Ditto.
3984 (avr_saved_pc_after_call): Ditto.
3985 (avr_push_return_address): Ditto.
3986 (avr_frame_chain): Ditto.
3987 (avr_store_struct_return): Ditto.
3988 (avr_push_arguments): Ditto.
3989 (avr_scan_prologue): Update comments. Changed to set up the info for
3990 cache unwinding. Now returns end of prologue PC.
3991 (avr_skip_prologue): Better handling of functions lacking a prologue
3992 by using avr_scan_prologue.
3993 (avr_scan_arg_moves): New function.
3994 (avr_saved_regs_unwinder): Ditto.
3995 (avr_frame_unwind_cache): Ditto.
3996 (avr_unwind_pc): Ditto.
3997 (avr_frame_this_id): Ditto.
3998 (avr_frame_prev_register): Ditto.
3999 (avr_frame_p): Ditto.
4000 (avr_frame_base_address ): Ditto.
4001 (avr_unwind_dummy_id): Ditto.
4002 (avr_push_dummy_code): Ditto.
4003 (push_stack_item): Ditto.
4004 (pop_stack_item): Ditto.
4005 (avr_push_dummy_call): Ditto.
4006 (struct stack_item): Define.
4007 (avr_frame_unwind): Declare structure.
4008 (avr_frame_base): Ditto.
4009 (avr_gdbarch_init): Remove calls to
4010 set_gdbarch_deprecated_init_frame_pc,
4011 set_gdbarch_deprecated_target_read_fp,
4012 set_gdbarch_deprecated_dummy_write_sp,
4013 set_gdbarch_deprecated_fp_regnum,
4014 set_gdbarch_deprecated_push_arguments,
4015 set_gdbarch_deprecated_push_return_address,
4016 set_gdbarch_deprecated_pop_frame,
4017 set_gdbarch_deprecated_store_struct_return,
4018 set_gdbarch_deprecated_frame_init_saved_regs,
4019 set_gdbarch_deprecated_init_extra_frame_info,
4020 set_gdbarch_deprecated_frame_chain,
4021 set_gdbarch_deprecated_frame_saved_pc,
4022 set_gdbarch_deprecated_saved_pc_after_call.
4023 Add calls to set_gdbarch_push_dummy_call,
4024 set_gdbarch_push_dummy_code,
4025 frame_unwind_append_predicate,
4026 frame_base_set_default,
4027 set_gdbarch_unwind_dummy_id,
4028 set_gdbarch_unwind_pc.
4029 Wrap a long line.
4030
4031 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4032
4033 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4034 registers for H8/300S.
4035 (h8300_print_registers_info): Ditto.
4036 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4037
4038 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4039
4040 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4041 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4042 (lin_lwp_wait): Likewise. Update comments.
4043 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4044 (pull_pid_from_list, linux_record_stopped_pid): New.
4045
4046 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4047
4048 * ada-lang.c (scan_discrim_bound): Name first argument.
4049 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4050 declared by ALL_BLOCK_SYMBOLS.
4051
4052 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4053
4054 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4055 ("regcache.h"): Include it.
4056 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4057
4058 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4059
4060 * NEWS: Mention gdbserver detach change and "disconnect" command.
4061 * infcmd.c (disconnect_command): New function.
4062 (_initialize_infcmd): Add ``disconnect'' command.
4063 * remote.c (remote_async_detach): Delete.
4064 (remote_detach): Merge remote_async_detach.
4065 (remote_disconnect): New.
4066 (init_remote_ops): Set to_disconnect.
4067 (init_remote_cisco_ops): Likewise.
4068 (init_remote_async_ops): Likewise. Use remote_detach.
4069 * target.c (cleanup_target): Default to_disconnect.
4070 (update_current_target): Inherit to_disconnect.
4071 (target_disconnect, debug_to_disconnect): New functions.
4072 (setup_target_debug): Set to_disconnect.
4073 * target.h (struct target_ops): Add to_disconnect.
4074 (target_disconnect): Add prototype.
4075
4076 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4077
4078 * breakpoint.c (insert_catchpoint): New function.
4079 (insert_breakpoints): Use catch_exceptions to call
4080 insert_catchpoint. Disable catchpoints if they fail to insert.
4081
4082 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4083
4084 * symfile.c (reread_symbols): Clear sym_private.
4085
4086 2003-06-17 Andrew Cagney <cagney@redhat.com>
4087
4088 * trad-frame.h (struct frame_info): Add opaque declaration.
4089 * remote-fileio.h (struct cmd_list_element): Add opaque
4090 declaration.
4091 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4092 comments.
4093
4094 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4095
4096 * remote.c (remote_prepare_to_store): Replace call to
4097 deprecated_read_register_bytes with multiple regcache_raw_read
4098 calls.
4099
4100 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4101
4102 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4103 (nto_find_and_open_solib): Likewise.
4104 (nto_init_solib_absolute_prefix): Likewise.
4105 (_initialize_nto_tdep): Fix indentation.
4106
4107 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4108
4109 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4110
4111 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4112
4113 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4114
4115 2003-06-17 Jim Blandy <jimb@redhat.com>
4116
4117 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4118
4119 2003-06-16 Theodore A. Roth <troth@openavr.org>
4120
4121 * avr-tdep.c (avr_extract_return_value): New function.
4122 (avr_gdbarch_init): Set extract_return_value method.
4123
4124 2003-06-16 Andrew Cagney <cagney@redhat.com>
4125
4126 * frame.h (deprecated_get_next_frame_hack): Declare.
4127 * frame.c (legacy_saved_regs_prev_register): Only require
4128 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4129 there are always saved regs.
4130 (deprecated_generic_get_saved_register): Do not require
4131 DEPRECATED_FRAME_INIT_SAVED_REGS.
4132 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4133 use frame ID unwind instead.
4134 (deprecated_get_next_frame_hack): New function.
4135
4136 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4137
4138 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4139 (h8300_push_dummy_call): ...this function. Some minor optimization.
4140 (h8300_push_return_address): Remove.
4141 (h8300_gdbarch_init): Remove calls to
4142 set_gdbarch_deprecated_dummy_write_sp,
4143 set_gdbarch_deprecated_push_arguments and
4144 set_gdbarch_deprecated_push_return_address.
4145 Add call to set_gdbarch_push_dummy_call.
4146
4147 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4148
4149 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4150 (E_PSEUDO_EXR_REGNUM): Ditto.
4151 (h8300_is_argument_spill): Check for instructions moving argument
4152 registers into safe registers.
4153 (h8300_skip_prologue): Check for stm instruction to push registers
4154 used for register variables onto stack.
4155 (gdb_print_insn_h8300): Remove.
4156 (h8300_examine_prologue): Add a comment.
4157 (h8300_register_name): Take pseudo registers into account.
4158 (h8300s_register_name): Ditto.
4159 (h8300sx_register_name): Ditto.
4160 (h8300_print_register): Ditto.
4161 (h8300_print_registers_info): Define "nice" printing order.
4162 (h8300_saved_pc_after_call): Take pseudo registers into account.
4163 (h8300_register_type): Ditto. Return type used for remote connection
4164 when requesting real CCR or EXR register, return actual type when
4165 requesting pseudo CCR or EXR.
4166 (h8300_pseudo_register_read): New function.
4167 (h8300_pseudo_register_write): Ditto.
4168 (h8300_dbg_reg_to_regnum): Ditto.
4169 (h8300s_dbg_reg_to_regnum): Ditto.
4170 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4171 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4172 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4173 set_gdbarch_print_insn architecture dependent.
4174 Call set_gdbarch_pseudo_register_read and
4175 set_gdbarch_pseudo_register_write.
4176 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4177
4178 2003-06-16 Andrew Cagney <cagney@redhat.com>
4179
4180 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4181 * gdbarch.h, gdbarch.c: Re-generate.
4182 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4183 * s390-tdep.c (s390_gdbarch_init): Update.
4184 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4185 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4186 * mips-tdep.c (mips_gdbarch_init): Update.
4187 * mcore-tdep.c (mcore_gdbarch_init): Update.
4188 * cris-tdep.c (cris_gdbarch_init): Update.
4189 * infcall.c (call_function_by_hand): Update.
4190 * ia64-tdep.c (ia64_push_arguments): Update comment.
4191 * frame.c (legacy_get_prev_frame): Do not assume
4192 SAVE_DUMMY_FRAME_TOS_P.
4193 * dummy-frame.c (find_dummy_frame): Update comment.
4194
4195 2003-06-16 Andrew Cagney <cagney@redhat.com>
4196
4197 * regcache.c (do_cooked_read): Do not use register_valid_p.
4198
4199 2003-06-15 Theodore A. Roth <troth@openavr.org>
4200
4201 * avr-tdep.c (avr_register_type): Remove a blank line.
4202 (avr_scan_prologue): Correct some comments.
4203
4204 2003-06-15 Theodore A. Roth <troth@openavr.org>
4205
4206 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4207 prologue types.
4208 Properly scan prologues generated by gcc with the -mcall-prologues
4209 option.
4210 Add code to scan -mcall-prologues for mega devices.
4211
4212 2003-06-15 Theodore A. Roth <troth@openavr.org>
4213
4214 * avr-tdep.c (avr_register_byte): Delete function.
4215 (avr_register_raw_size): Delete function.
4216 (avr_register_virtual_size): Delete function.
4217 (avr_register_virtual_type): Delete function.
4218 (avr_register_type): New function.
4219 (avr_address_to_pointer): Remove unused code.
4220 (avr_read_fp): Need to read FP as two separate bytes due to change to
4221 avr_register_type() usage.
4222 (avr_gdbarch_init): Don't set deprecated_register_size.
4223 Don't set deprecated_register_bytes.
4224 Don't set deprecated_register_byte.
4225 Don't set deprecated_register_raw_size.
4226 Don't set deprecated_max_register_raw_size.
4227 Don't set deprecated_register_virtual_size.
4228 Don't set deprecated_max_register_virtual_size.
4229 Don't set deprecated_register_virtual_type.
4230 Set register_type method.
4231
4232 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4233
4234 * Makefile.in (linux-nat.o): Add rule.
4235 * linux-nat.c: New file.
4236 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4237 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4238 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4239 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4240 * config/arm/linux.mh (NATDEPFILES): Likewise.
4241 * config/i386/linux.mh (NATDEPFILES): Likewise.
4242 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4243 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4244 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4245 * config/mips/linux.mh (NATDEPFILES): Likewise.
4246 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4247 * config/s390/s390.mh (NATDEPFILES): Likewise.
4248 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4249
4250 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4251
4252 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4253 replace out-of-date comment.
4254
4255 2003-06-15 Andrew Cagney <cagney@redhat.com>
4256
4257 * rdi-share/host.h (Fail): Change to a varargs function.
4258 * remote-rdi.c (Fail): Update.
4259
4260 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4261
4262 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4263 (i386_convert_register_p, i386_register_to_value,
4264 i386_register_from_value): Handle types longer than 8 bytes.
4265
4266 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4267
4268 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4269 Move floating-point code to new function in i387-tdep.c.
4270 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4271 New functions containing code moved here from i386-tdep.c.
4272 * i387-tdep.h: Add opaque declaration for `struct type'.
4273 (i387_register_to_value, i387_value_to_register): New prototypes.
4274 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4275 (x86_64_init_abi): Set convert_register_p, register_to_value and
4276 value_to_register here.
4277
4278 2003-06-14 Andrew Cagney <cagney@redhat.com>
4279
4280 * mips-tdep.c (mips_register_to_value): Make static.
4281 (mips_value_to_register): Make static.
4282 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4283 * ia64-tdep.c (ia64_register_raw_size): Make static.
4284 (ia64_register_virtual_size): Make static.
4285 (ia64_register_byte): Make static.
4286 * i387-tdep.c: Include "i387-tdep.h".
4287 (print_387_control_word): Delete function.
4288 (print_387_status_word): Delete function.
4289 (print_387_status_bits): Delete function.
4290 (print_387_control_bits): Delete function.
4291 * Makefile.in (i387-tdep.o): Update dependencies.
4292 * rdi-share/host.h (Fail): Declare.
4293 * remote-rdi.c (Fail): Update to match declaration.
4294
4295 2003-06-14 Andrew Cagney <cagney@redhat.com>
4296
4297 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4298 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4299 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4300 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4301 * README: Delete reference to remote-array.
4302 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4303 (remote-array.o): Delete target.
4304 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4305 * remote-array.c: Delete file.
4306
4307 2003-06-14 Andrew Cagney <cagney@redhat.com>
4308 Mark Kettenis <kettenis@gnu.org>
4309
4310 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4311 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4312 parameter with "frame".
4313 * gdbarch.h, gdbarch.c: Re-generate.
4314 * frame.h (put_frame_register): Declare.
4315 * frame.c (put_frame_register): New function.
4316 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4317 (legacy_register_to_value): Rewrite, use "frame" to get the
4318 register value.
4319 (legacy_value_to_register): Rewrite, use "frame" to find the
4320 register's location before storing.
4321 * arch-utils.h (legacy_convert_register_p): Update.
4322 (legacy_register_to_value, legacy_value_to_register): Update.
4323 * findvar.c (value_from_register): Rewrite, eliminate use of
4324 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4325 "frame" to REGISTER_TO_VALUE.
4326 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4327 lval_reg_frame_relative + lval_register branch of the switch. Do
4328 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4329 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4330 I386_EDI_REGNUM): New defines.
4331 (i386_next_regnum, i386_convert_register_p,
4332 i386_register_to_value, i386_value_to_register): New functions.
4333 (i386_register_convertible, i386_register_convert_to_virtual,
4334 i386_convert_to_raw): Remove functions.
4335 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4336 value_to_register instead of register_convertible,
4337 register_convert_to_virtual and register_convert_to_raw.
4338 * mips-tdep.c (mips_convert_register_p): New function.
4339 (mips_value_to_register): Replace mips_register_convert_from_type.
4340 (mips_register_to_value): Replace mips_register_convert_to_type.
4341 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4342 register_to_value.
4343 * alpha-tdep.c (alpha_convert_register_p): Update.
4344 (alpha_value_to_register): Update, store the register.
4345 (alpha_register_to_value): Update, fetch the register.
4346
4347 2003-06-14 Theodore A. Roth <troth@openavr.org>
4348
4349 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4350 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4351 Don't set deprecated_call_dummy_words.
4352 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4353 Don't set remote_translate_xfer_address.
4354 (avr_io_reg_read_command): Remove commented out debug printf.
4355 Wrap a long line.
4356
4357 2003-06-14 Theodore A. Roth <troth@openavr.org>
4358
4359 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4360 causes gdb to seg fault.
4361
4362 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4363
4364 * sparc-nat.c (fetch_inferior_registers): Correct
4365 a reference to "registers".
4366
4367 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4368
4369 * Makefile.in (exc_request_U_h): Define
4370 (exc_request_S_h): Likewise.
4371 (msg_reply_S_h): Likewise.
4372 (msg_U_h): Likewise.
4373 (notify_S_h): Likewise.
4374 (process_reply_S_h): Likewise.
4375 (gnu-nat.o): Depend on gdb_obstack_h
4376 * gnu-nat.c: Include "gdb_obstack.h".
4377
4378 2003-06-13 Andrew Cagney <cagney@redhat.com>
4379
4380 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4381 * gdbarch.h, gdbarch.c: Re-generate.
4382
4383 2003-06-13 Andrew Cagney <cagney@redhat.com>
4384
4385 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4386 when deprecated REGISTER macros can be deleted.
4387 * gdbarch.h, gdbarch.c: Re-generate.
4388
4389 2003-06-13 Jim Blandy <jimb@redhat.com>
4390
4391 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4392 Linux entry point symbols for _dl_debug_state, too.
4393
4394 2003-06-13 Andrew Cagney <cagney@redhat.com>
4395
4396 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4397 available, do not use the FP register, and always save the TOS.
4398 * dummy-frame.c (dummy_frame_this_id): Do not assert
4399 SAVE_DUMMY_FRAME_TOS.
4400 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4401 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4402 (i386_push_dummy_call): Add 8 to the returned SP.
4403 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4404 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4405 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4406 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4407 (x86_64_push_dummy_call): Return "sp + 16".
4408 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4409 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4410 save_dummy_frame_tos.
4411
4412 2003-06-13 Jim Blandy <jimb@redhat.com>
4413
4414 * frv-tdep.c (frv_use_struct_convention): Delete static
4415 declaration for function deleted in my change of 2003-06-12.
4416
4417 2003-06-13 Theodore A. Roth <troth@openavr.org>
4418
4419 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4420 (avr_pointer_to_address): Shift code addrs left 1 bit.
4421 (avr_convert_from_func_ptr_addr): Delete function since operation is
4422 better handled by avr_address_to_pointer and avr_pointer_to_address.
4423 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4424
4425 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4426
4427 From Kelley Cook <kelleycook@wideopenwest.com>:
4428 * configure.host: Accept i[34567]86 variants.
4429 * configure.tgt: Likewise.
4430 * nlm/configure.in: Likewise.
4431 * nlm/configure: Regenerated.
4432
4433 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4434
4435 * arm-tdep.c (solib-svr4.h): Dont' include it.
4436 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4437 * arm-linux-tdep.c: ... here. Make static.
4438 (arm_linux_init_abi): Register it.
4439 (solib-svr4.h): Include it.
4440 * Makefile.in: Update dependencies.
4441 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4442 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4443
4444 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4445
4446 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4447 indicate registers used for return values.
4448 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4449 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4450 members.
4451 (h8300_init_extra_frame_info): Ditto.
4452 (h8300_frame_locals_address): Removed.
4453 (h8300_frame_args_address): Removed.
4454 (h8300_extract_return_value): Use new regcache structure. Only care
4455 for 16 bit CPUs.
4456 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4457 (h8300_store_return_value): Use new regcache structure. Only care
4458 for 16 bit CPUs.
4459 (h8300h_store_return_value): Same function for 32 bit CPUs.
4460 (h8300_store_struct_return): Removed.
4461 (h8300_extract_struct_value_address): Use new regcache structure.
4462 (h8300h_extract_struct_value_address): Removed.
4463 (h8300_push_dummy_code): New function.
4464 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4465 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4466 set_gdbarch_store_return_value architecture dependent.
4467 Call set_gdbarch_push_dummy_code and
4468 set_gdbarch_extract_struct_value_address.
4469 Remove calls to set_gdbarch_frame_args_address,
4470 set_gdbarch_frame_locals_address,
4471 set_gdbarch_deprecated_store_struct_return,
4472 set_gdbarch_deprecated_extract_return_value,
4473 set_gdbarch_deprecated_extract_struct_value_address,
4474 set_gdbarch_deprecated_call_dummy_words and
4475 set_gdbarch_deprecated_sizeof_call_dummy_words.
4476
4477 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4478
4479 * h8300-tdep.c (h8300_register_byte): Remove.
4480 (h8300h_register_byte): Remove.
4481 (h8300_register_virtual_type): Remove. Substitute by...
4482 (h8300_register_type): New function.
4483 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4484 (h8300h_extract_struct_value_address): Ditto.
4485 (h8300_gdbarch_init): Drop calls to
4486 set_gdbarch_deprecated_register_byte and
4487 set_gdbarch_deprecated_register_virtual_type.
4488 Add call to set_gdbarch_register_type.
4489
4490 2003-06-13 Andrew Cagney <cagney@redhat.com>
4491
4492 * gdbarch.sh: Update comments on registers.
4493 (deprecated_register_byte): Rename register_byte.
4494 (deprecated_register_raw_size): Rename register_raw_size.
4495 (deprecated_register_virtual_size): Rename register_virtual_size.
4496 (deprecated_register_virtual_type): Rename register_virtual_type.
4497 * gdbarch.h, gdbarch.c: Re-generate.
4498 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4499 * vax-tdep.c (vax_gdbarch_init): Update.
4500 * v850-tdep.c (v850_gdbarch_init): Update.
4501 * sparc-tdep.c (sparc_gdbarch_init): Update.
4502 * sh-tdep.c (sh_gdbarch_init): Update.
4503 * s390-tdep.c (s390_gdbarch_init): Update.
4504 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4505 * ns32k-tdep.c: Update.
4506 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4507 * mips-tdep.c (mips_gdbarch_init): Update.
4508 * mcore-tdep.c (mcore_gdbarch_init): Update.
4509 * m68k-tdep.c (m68k_gdbarch_init): Update.
4510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4511 * ia64-tdep.c (ia64_gdbarch_init): Update.
4512 * hppa-tdep.c (hppa_gdbarch_init): Update.
4513 * h8300-tdep.c (h8300_gdbarch_init): Update.
4514 * frv-tdep.c (frv_gdbarch_init): Update.
4515 * cris-tdep.c (cris_gdbarch_init): Update.
4516 * avr-tdep.c (avr_gdbarch_init): Update.
4517 * alpha-tdep.c (alpha_gdbarch_init): Update.
4518 * arm-tdep.c (arm_gdbarch_init): Update.
4519
4520 2003-06-13 Andrew Cagney <cagney@redhat.com>
4521
4522 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4523 mips_o32_use_struct_convention with always_use_struct_convention.
4524
4525 2003-06-12 David Carlton <carlton@kealia.com>
4526
4527 * cp-namespace.c (cp_set_block_scope): Comment out
4528 processing_has_namespace_info branch.
4529
4530 2003-06-12 Jim Blandy <jimb@redhat.com>
4531
4532 Recognize and skip 64-bit PowerPC Linux linkage functions.
4533 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4534 insn_pattern, insns_match_pattern, d_field, ds_field): New
4535 functions, macros, and types for working with PPC instructions.
4536 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4537 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4538 ppc64_skip_trampoline_code): New functions, variables, and macros
4539 for recognizing and skipping linkage functions.
4540 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4541 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4542
4543 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4544 register offsets for both the 32- and 64-bit interfaces.
4545
4546 Actually finish the job started by my change of 2003-05-29.
4547 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4548 other #definition of this.
4549 (ppc_linux_skip_trampoline_code): Remove declaration.
4550 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4551 static.
4552 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4553 method for GDBARCH.
4554
4555 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4556 'long' on ppc64-*-linux*.
4557
4558 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4559 isn't #defined, assume the register doesn't exist: act as if
4560 tdep->ppc_mq_regnum were -1.
4561
4562 * configure.host, configure.tgt: Add entries for
4563 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4564 powerpc/linux.mt.
4565 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4566 New files.
4567
4568 * arch-utils.c (always_use_struct_convention): New function.
4569 * arch-utils.h (always_use_struct_convention): New prototype.
4570 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4571 (alpha_gdbarch_init): Register always_use_struct_convention,
4572 instead of alpha_use_struct_convention.
4573 * cris-tdep.c (cris_use_struct_convention): Delete.
4574 (cris_gdbarch_init): Register always_use_struct_convention,
4575 instead of cris_use_struct_convention.
4576 * frv-tdep.c (frv_use_struct_convention): Delete.
4577 (frv_gdbarch_init): Register always_use_struct_convention,
4578 instead of frv_use_struct_convention.
4579 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4580 (h8300_gdbarch_init): Register always_use_struct_convention,
4581 instead of h8300_use_struct_convention.
4582 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4583 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4584 instead of mips_o32_use_struct_convention.
4585
4586 2003-06-12 Andrew Cagney <cagney@redhat.com>
4587
4588 * wince.c: Include "mips-tdep.h".
4589 * mips-tdep.h (mips_next_pc): Declare.
4590 * mcore-tdep.c: Make more local functions static.
4591 * Makefile.in (wince.o): Update dependencies.
4592
4593 2003-06-12 David Carlton <carlton@kealia.com>
4594
4595 * symtab.c (lookup_symbol_aux_minsyms): Replace
4596 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4597 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4598 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4599 SYMBOL_NATURAL_NAME.
4600
4601 2003-06-12 Andreas Schwab <schwab@suse.de>
4602
4603 * Makefile.in (tuiDisassem.o): Update dependencies.
4604
4605 2003-06-12 David Carlton <carlton@bactrian.org>
4606
4607 * symtab.h: Delete declaration of make_symbol_overload_list.
4608 Add declaration of lookup_partial_symbol.
4609 * symtab.c (remove_params): Move to cp-support.c.
4610 (overload_list_add_symbol, make_symbol_overload_list)
4611 (sym_return_val_size, sym_return_val_index): Ditto.
4612 (lookup_partial_symbol): Make extern.
4613 * cp-support.h: Add declaration of make_symbol_overload_list.
4614 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4615 symtab.h, and block.h.
4616 (remove_params): Move here from symtab.c.
4617 (overload_list_add_symbol, make_symbol_overload_list)
4618 (sym_return_val_size, sym_return_val_index): Ditto.
4619 * valops.c: Include cp-support.h.
4620 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4621 frame_h, and block_h.
4622 (valops.o): Depend on cp_support_h.
4623
4624 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4625
4626 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4627 substitute by NUM_REGS throughout.
4628 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4629 (h8300s_register_name): New function for H8S registers.
4630 (h8300sx_register_name): Ditto for H8SX registers.
4631 (h8300_print_register): Revise register printing, avoid depending
4632 on 32 bit long.
4633 (h8300_register_byte): Only care for H8/300 registers.
4634 (h8300h_register_byte): New function for any other architecture.
4635 (h8300_register_raw_size): Remove.
4636 (h8300_register_virtual_type): Revise to return actually useful
4637 type.
4638 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4639 (h8300h_extract_struct_value_address): New function for any other
4640 architecture.
4641 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4642 set_gdbarch_register_name, set_gdbarch_register_byte,
4643 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4644 Remove calls to set_gdbarch_deprecated_register_size,
4645 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4646 set_gdbarch_deprecated_max_register_raw_size,
4647 set_gdbarch_register_virtual_size and
4648 set_gdbarch_deprecated_max_register_virtual_size entirely.
4649 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4650 set_gdbarch_long_double_bit.
4651
4652 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4653
4654 * doublest.c (convert_doublest_to_floatformat): When dealing
4655 with the implied integer bit, only alter mant_bits if we are
4656 processing a full 32 bits of mantissa.
4657
4658 2003-06-11 David Carlton <carlton@bactrian.org>
4659
4660 * dictionary.h: New.
4661 * dictionary.c: New.
4662 * block.h: Add opaque declaration for struct dictionary.
4663 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4664 'sym' members.
4665 (BLOCK_DICT): New macro.
4666 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4667 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4668 BLOCK_SHOULD_SORT.
4669 (ALL_BLOCK_SYMBOLS): Update definition.
4670 * Makefile.in (SFILES): Add dictionary.c.
4671 (dictionary_h): New.
4672 (COMMON_OBS): Add dictionary.o.
4673 (dictionary.o): New.
4674 (ada-lang.o): Depend on dictionary_h.
4675 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4676 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4677 (mi-cmd-stack.o): Ditto.
4678 (gdbtk-cmds.o): Update dependencies.
4679 (gdbtk-stack.o): Ditto.
4680 * ada-lang.c: Include dictionary.h.
4681 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4682 (fill_in_ada_prototype, debug_print_block): Ditto.
4683 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4684 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4685 'is_sorted'.
4686 * mdebugread.c: Include dictionary.h.
4687 (struct parse_stack): Delete 'maxsyms' member.
4688 (parse_symbol): Update calls to new_block. Delete calls to
4689 shrink_block. Use dictionary methods.
4690 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4691 Update calls to new_symtab. Don't maintain maxsyms data.
4692 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4693 (add_symbol): Just call dict_add_symbol.
4694 (new_symtab): Delete 'maxsyms' argument.
4695 (new_symtab): Update calls to new_block.
4696 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4697 (shrink_block): Delete function.
4698 (fixup_sigtramp): Update call to new_block. Add symbol via
4699 dict_add_symbol.
4700 * jv-lang.c: Include dictionary.h.
4701 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4702 appropriately. Set class_symtab->free_func. Make sure the
4703 blockvector is big enough to hold two blocks.
4704 (add_class_symtab_symbol): Use dictionary methods.
4705 (free_class_block): New function.
4706 (type_from_class): Replace explicit iteration by
4707 ALL_BLOCK_SYMBOLS.
4708 * symtab.h (struct symtab): Replace 'free_ptr' method by
4709 'free_func'.
4710 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4711 sort_symtab_syms.
4712 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4713 sort_symtab_syms.
4714 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4715 Include dictionary.h.
4716 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4717 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4718 sort_symtab_syms.
4719 * objfiles.c: Include dictionary.h.
4720 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4721 * buildsym.c: Include dictionary.h.
4722 (finish_block): Use dictionary methods.
4723 (end_symtab): Set free_func to NULL, not free_ptr.
4724 * tracepoint.c: Include dictionary.h.
4725 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4726 (scope_info): Ditto.
4727 * stack.c: Include dictionary.h.
4728 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4729 (print_block_frame_labels, print_frame_arg_vars)
4730 (print_frame_args): Ditto.
4731 * symmisc.c (free_symtab_block): Use dictionary methods.
4732 (dump_symtab): Ditto.
4733 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4734 Include dictionary.h.
4735 * symfile.h: Delete declarations of sort_block_syms,
4736 sort_symtab_syms.
4737 * symfile.c (sort_block_syms): Delete.
4738 (sort_symtab_syms): Delete.
4739 * symtab.c: Include dictionary.h.
4740 (lookup_block_symbol): Use dictionary iterators.
4741 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4742 (search_symbols, make_symbol_completion_list): Ditto.
4743 (make_symbol_overload_list): Ditto.
4744 * valops.c (value_of_local): Use dict_empty.
4745 Include dictionary.h.
4746
4747 2003-06-11 J. Brobecker <brobecker@gnat.com>
4748
4749 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4750
4751 2003-06-11 David Carlton <carlton@bactrian.org>
4752
4753 * block.h (BLOCK_SHOULD_SORT): Delete.
4754 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4755 blocks.
4756 * ada-lang.c (ada_add_block_symbols): Ditto.
4757 * symfile.c (sort_block_syms): Delete.
4758 (sort_symtab_syms): Ditto.
4759 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4760 declarations.
4761 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4762 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4763 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4764 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4765 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4766 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4767 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4768
4769 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4770
4771 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4772 bits to 128.
4773
4774 2003-06-11 Andrew Cagney <cagney@redhat.com>
4775
4776 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4777 REGISTER_CONVERTIBLE.
4778 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4779 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4780 * gdbarch.h, gdbarch.c: Re-generate.
4781 * arch-utils.h (deprecated_register_convertible_not): Rename
4782 generic_register_convertible_not.
4783 * arch-utils.c (deprecated_register_convertible_not): Rename
4784 generic_register_convertible.
4785 (legacy_convert_register_p, legacy_register_to_value): Update.
4786 * sh-tdep.c (sh64_push_arguments): Update.
4787 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4788 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4789 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4790 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4791 * arch-utils.c (legacy_value_to_register): Update.
4792 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4793 (rs6000_register_convert_to_raw): Make parameter "from" const.
4794 * mips-tdep.c (mips_gdbarch_init): Update.
4795 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4796 * infcmd.c (default_print_registers_info): Update.
4797 * ia64-tdep.c (ia64_gdbarch_init): Update.
4798 (ia64_register_convert_to_raw): Make parameter "from" const.
4799 * i386-tdep.c (i386_gdbarch_init): Update.
4800 (i386_register_convert_to_raw): Update.
4801
4802 2003-06-11 Andrew Cagney <cagney@redhat.com>
4803
4804 * remote-fileio.c: Include "remote-fileio.h".
4805 * Makefile.in (remote-fileio.o): Update dependencies.
4806 (remote_fileio_h): Fix typo.
4807
4808 2003-06-11 Andrew Cagney <cagney@redhat.com>
4809
4810 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4811 (xstormy16_save_dummy_frame_tos): Make static.
4812 (_initialize_xstormy16_tdep): Add declaration.
4813 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4814 * v850-tdep.c: Make local functions static.
4815 (_initialize_v850_tdep): Add declaration.
4816 * sparc-tdep.c: Make local functions static.
4817 (_initialize_sparc_tdep): Add declaration.
4818 * sh-tdep.c: Make local functions static.
4819 (_initialize_sh_tdep): Add declaration.
4820 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4821 * s390-tdep.c: Make local functions static.
4822 (_initialize_s390_tdep): Add declaration.
4823 * dbxread.c (find_stab_function_addr): Make static.
4824 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4825 * ocd.c (_initialize_remote_ocd): Add declaration.
4826 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4827 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4828 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4829 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4830 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4831 * remote-array.c (_initialize_array): Add declaration.
4832 (_initialize_remote_monitors): Add declaration.
4833 * remote-mips.c: Make local functions static.
4834 (_initialize_remote_mips): Add declaration.
4835 * mcore-tdep.c: Make all local functions static.
4836 (_initialize_mcore_tdep): Add declaration.
4837 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4838 * abug-rom.c (_initialize_abug_rom): Add declaration.
4839 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4840 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4841 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4842 * remote-est.c (_initialize_est): Add declaration.
4843 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4844 (m68hc11_call_dummy_address): Make static.
4845 * ia64-tdep.c: Make local functions static.
4846 (_initialize_ia64_tdep): Add declaration.
4847 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4848 * monitor.c (monitor_wait_filter): Make static.
4849 (_initialize_remote_monitors): Add declaration.
4850 * remote-hms.c (_initialize_remote_hms): Add declaration.
4851 * remote-e7000.c (fetch_regs_from_dump): Make static.
4852 (expect_n): Make static.
4853 (_initialize_remote_e7000): Add declaration.
4854 * ser-e7kpc.c: Always include "defs.h".
4855 (_initialize_ser_e7000pc): Add declaration.
4856 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4857 * cris-tdep.c: Make all but one function static.
4858 (_initialize_cris_tdep): Add declaration.
4859 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4860 * solib.c (update_solib_list): Make static.
4861 (_initialize_solib): Add declaration.
4862 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4863 (_initialize_avr_tdep): Add declaration.
4864 * remote-rdi.c (voiddummy): Make static.
4865 (_initialize_remote_rdi): Add declaration.
4866 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4867 * remote-rdp.c (send_rdp): Make static.
4868 (_initialize_remote_rdp): Add declaration.
4869 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4870
4871 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4872
4873 * remote-fileio.c: Make ari happy.
4874
4875 2003-06-10 J. Brobecker <brobecker@gnat.com>
4876
4877 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4878 fetching the trailing bytes of the buffer we are about to write.
4879
4880 2003-06-10 Andrew Cagney <cagney@redhat.com>
4881
4882 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4883 * Makefile.in (remote-fileio.o): Update dependencies.
4884 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4885 include <setjmp.h>, or <sys/types.h> conditional on USG.
4886 (remote_fio_jmp_buf): Delete global variable.
4887
4888 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4889 Martin M. Hunt <hunt@redhat.com>
4890
4891 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4892 (SFILES): Add remote-fileio.c.
4893 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4894 dependencies for building remote.o.
4895 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4896 * remote-fileio.h: New header file defining remote File-I/O interface.
4897 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4898 static storage class.
4899 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4900 'F' packet.
4901 (_initialize_remote): Call initialize_remote_fileio().
4902 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4903 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4904 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4905 (captured_main): Initialize new ui_files.
4906 * ui-file.c: Add read and fgets input functions.
4907 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4908 (null_file_read): New function.
4909 (ui_file_read): New function.
4910 (set_ui_file_read): New function.
4911 (stdio_file_read): New function.
4912 * ui-file.h: New type ui_file_read_ftype.
4913 (set_ui_file_read): Declare.
4914 (ui_file_read): Declare.
4915
4916 2003-06-09 Andrew Cagney <cagney@redhat.com>
4917
4918 * frame.h (deprecated_unwind_get_saved_register): Rename
4919 generic_unwind_get_saved_register, update comments.
4920 * mips-tdep.c (mips_get_saved_register): Update.
4921 * frame.c (deprecated_unwind_get_saved_register): Update.
4922
4923 2003-06-09 Andrew Cagney <cagney@redhat.com>
4924
4925 * vax-tdep.c (vax_frame_locals_address): Delete function.
4926 (vax_gdbarch_init): Do not set frame_locals_address.
4927 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4928 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4929 * s390-tdep.c (s390_frame_args_address): Delete function.
4930 (s390_gdbarch_init): Do not set frame_args_address or
4931 frame_locals_address.
4932 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4933 (ns32k_gdbarch_init): Do not set frame_locals_address.
4934 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4935 (hppa_frame_locals_address): Delete function.
4936 (hppa_gdbarch_init): Do not set frame_args_address, or
4937 frame_locals_address.
4938 * arm-tdep.c (arm_frame_args_address): Delete.
4939 (arm_frame_locals_address): Delete.
4940 (arm_gdbarch_init): Do not set frame_args_address, or
4941 frame_locals_address.
4942
4943 2003-06-09 Andrew Cagney <cagney@redhat.com>
4944
4945 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4946 * gdbarch.h, gdbarch.c: Re-generate.
4947 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4948 * arch-utils.c (frame_num_args_unknown): Delete function.
4949 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4950 (frame_info): Use FRAME_NUM_ARGS_P.
4951 * arm-tdep.c (arm_frame_num_args): Delete function.
4952 (arm_gdbarch_init): Do not set frame_num_args.
4953 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4954 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4955 (hppa_gdbarch_init): Do not set frame_num_args.
4956 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4957 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4958 frame_num_args to default frame_num_args_unknown.
4959 * v850-tdep.c (v850_gdbarch_init): Ditto.
4960 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4961 * sh-tdep.c (sh_gdbarch_init): Ditto.
4962 * s390-tdep.c (s390_gdbarch_init): Ditto.
4963 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4964 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4965 * mips-tdep.c (mips_gdbarch_init): Ditto.
4966 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4967 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4968 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4969 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4970 * i386-tdep.c (i386_gdbarch_init): Ditto.
4971 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4972 * frv-tdep.c (frv_gdbarch_init): Ditto.
4973 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4974 * cris-tdep.c (cris_gdbarch_init): Ditto.
4975 * avr-tdep.c (avr_gdbarch_init): Ditto.
4976 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4977
4978 2003-06-09 Andrew Cagney <cagney@redhat.com>
4979
4980 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4981 (print_frame_args): Moved to "stack.c".
4982 * stack.c: Include "gdb_assert.h".
4983 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4984 (print_frame_args): Moved from "printcmd.c".
4985 * frame.h (print_frame_args): Delete declaration.
4986 * Makefile.in (stack.o): Update dependencies.
4987
4988 2003-06-08 Andrew Cagney <cagney@redhat.com>
4989
4990 * frame.c (get_prev_frame): Remove reference to
4991 frame_args_address_correct in comments.
4992 * frame-base.c (default_frame_args_address): Delete code
4993 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4994 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4995 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4996 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4997 (vax_frame_args_address_correct): Delete declaration.
4998
4999 2003-06-08 Andrew Cagney <cagney@redhat.com>
5000
5001 * gdbarch.sh (UNWIND_SP): Add.
5002 * gdbarch.h, gdbarch.c: Re-generate.
5003 * frame.c (frame_sp_unwind): New function.
5004 (get_frame_sp): New function.
5005 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5006 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5007 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5008 value.
5009 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5010 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5011
5012 2003-06-08 Andrew Cagney <cagney@redhat.com>
5013
5014 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5015 REMOTE_BREAKPOINT.
5016 * remote.c: Update.
5017 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5018 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5019 * config/m68k/tm-sun3.h: Update.
5020 * config/m68k/tm-m68klynx.h: Update.
5021 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5022
5023 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5024 trad_frame". Update comments.
5025 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5026 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5027 (trad_frame_register_value, trad_frame_prev_register): Update.
5028
5029 2003-06-08 Andrew Cagney <cagney@redhat.com>
5030
5031 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5032 from GCC's acinclude.m4.
5033 * configure.in: Check for getopt's delcaration.
5034 * aclocal.m4, config.in, configure: Re-generate.
5035 * main.c (error_init): Delete declaration.
5036 * defs.h (error_init): Declare.
5037 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5038 (rs6000_convert_from_func_ptr_addr): Make static.
5039 (_initialize_rs6000_tdep): Add declaration.
5040 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5041 (show_commands, set_verbose, show_history): Delete declaration.
5042 * top.h (set_verbose): Add declaration.
5043 (show_history, set_history, show_commands): Add declaration.
5044 (do_restore_instream_cleanup): Add declaration.
5045 * objc-lang.c (specialcmp): Make static.
5046 (print_object_command): Make static.
5047 (find_objc_msgsend): Make static.
5048 (find_objc_msgcall_submethod_helper): Make static.
5049 (find_objc_msgcall_submethod): Make static.
5050 (_initialize_objc_language): Add declaration.
5051 (find_implementation_from_class): Make static.
5052 (find_implementation): Make static.
5053 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5054 * objc-lang.h (lookup_struct_typedef): Add declaration.
5055 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5056 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5057 (do_restore_user_call_depth): Make static.
5058 (do_restore_instream_cleanup): Delete declaration.
5059 (dont_repeat): Delete declaration.
5060 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5061 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5062 * reggroups.c (_initialize_reggroup): Add declaration.
5063 * cp-support.c (_initialize_cp_support): Add declaration.
5064 * cp-abi.c (_initialize_cp_abi): Add declaration.
5065 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5066 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5067 (_initialize_gnu_v3_abi): Add declaration.
5068 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5069 (_initialize_gnu_v2_abi): Add declaration.
5070 * frame-base.c (_initialize_frame_base): Add declaration.
5071 * doublest.c (floatformat_from_length): Make static.
5072 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5073 * frame.c (create_sentinel_frame): Make static.
5074 (_initialize_frame): Add declaration.
5075 * top.c (do_catch_errors): Make static.
5076 (gdb_rl_operate_and_get_next_completion): Make static.
5077 * typeprint.c: Include "typeprint.h".
5078 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5079 (sentinel_frame_this_id): Make static.
5080 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5081 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5082 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5083 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5084 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5085 * maint.c (maintenance_print_architecture): Make static.
5086 * signals/signals.c (_initialize_signals): Add declaration.
5087 * std-regs.c (_initialize_frame_reg): Add declaration.
5088 * jv-exp.y (push_variable): ISO C definition.
5089 (push_qualified_expression_name): Ditto.
5090 * memattr.c (_initialize_mem): Add declaration.
5091 * remote.c (remote_check_watch_resources): Make static.
5092 (remote_stopped_by_watchpoint): Make static.
5093 (remote_stopped_data_address): Make static.
5094 * d10v-tdep.c (nr_dmap_regs): Make static.
5095 (a0_regnum): Make static.
5096 (d10v_frame_unwind_cache): Make static.
5097 (d10v_frame_p): Make static.
5098 * osabi.c (show_osabi): Make static.
5099 (_initialize_gdb_osabi): Add extern declaration.
5100 * gdbtypes.c (make_qualified_type): Make static.
5101 (safe_parse_type): Make static.
5102 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5103 * macrotab.c (macro_bcache_free): Make static.
5104 * interps.c (interp_set_quiet): Make static.
5105 (interpreter_exec_cmd): Make static.
5106 * stack.h (select_frame_command): New file.
5107 * stack.c: Include "stack.h".
5108 (select_frame_command_wrapper): Delete function.
5109 (select_frame_command): Make global.
5110 * infcall.c: Include "infcall.h".
5111 * linespec.c: Include "linespec.h".
5112 * symfile.c (sections_overlap): Make static.
5113 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5114 * charset.c (_initialize_charset): Add missing prototype.
5115 * regcache.c (init_legacy_regcache_descr): Make static.
5116 (do_regcache_xfree): Make static.
5117 (regcache_xfer_part): Make static.
5118 (_initialize_regcache): Add missing prototype.
5119 * breakpoint.c (parse_breakpoint_sals): Make static.
5120 (breakpoint_sals_to_pc): Make static.
5121 * interps.h (clear_interpreter_hooks): ISO C declaration.
5122 * Makefile.in (stack_h): Define.
5123 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5124 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5125
5126 2003-06-08 Andrew Cagney <cagney@redhat.com>
5127
5128 * Makefile.in (d10v-tdep.o): Update dependencies.
5129 (SFILES): Add trad-frame.c.
5130 (trad_frame_h): Define.
5131 (COMMON_OBS): Add trad-frame.o.
5132 (trad-frame.o): Specify dependencies.
5133 * d10v-tdep.c: Include "trad-frame.h".
5134 (saved_regs_unwinder): Delete function.
5135 (d10v_frame_prev_register): Use trad_frame_prev_register.
5136 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5137 trad_frame", delete "regs" and "prev_sp".
5138 (prologue_find_regs): Use trad-frame.
5139 * trad-frame.h, trad-frame.c: New files.
5140
5141 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5142
5143 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5144
5145 2003-06-07 Adam Fedor <fedor@gnu.org>
5146
5147 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5148 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5149 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5150 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5151 resolve_msgsend_super, resolve_msgsend_super_stret):
5152 Use it.
5153
5154 2003-06-07 Andrew Cagney <cagney@redhat.com>
5155
5156 * symfile.h: Re-indent, clean up comments.
5157
5158 2003-06-07 Andrew Cagney <cagney@redhat.com>
5159
5160 * inferior.h (deprecated_write_sp): Replace
5161 generic_target_write_sp.
5162 * regcache.c (deprecated_write_sp): Replace
5163 generic_target_write_sp.
5164 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5165 * vax-tdep.c (vax_gdbarch_init): Update.
5166 * v850-tdep.c (v850_gdbarch_init): Update.
5167 * sparc-tdep.c (sparc_gdbarch_init): Update.
5168 * sh-tdep.c (sh_gdbarch_init): Update.
5169 * s390-tdep.c (s390_gdbarch_init): Update.
5170 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5171 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5172 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5173 * mcore-tdep.c (mcore_gdbarch_init): Update.
5174 * m68k-tdep.c (m68k_gdbarch_init): Update.
5175 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5176 * ia64-tdep.c (ia64_gdbarch_init): Update.
5177 * h8300-tdep.c (h8300_gdbarch_init): Update.
5178 * frv-tdep.c (frv_gdbarch_init): Update.
5179 * cris-tdep.c (cris_gdbarch_init): Update.
5180 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5181
5182 2003-06-07 Andrew Cagney <cagney@redhat.com>
5183
5184 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5185 Assert that PC_REGNUM is valid.
5186 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5187
5188 2003-06-07 Andrew Cagney <cagney@redhat.com>
5189
5190 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5191 * gdbarch.h, gdbarch.c: Regenerate.
5192 * mn10300-tdep.c: Include "gdb_assert.h".
5193 (mn10300_read_fp): New function.
5194 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5195 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5196 * ia64-tdep.c: Include "gdb_assert.h".
5197 (ia64_read_fp): New function.
5198 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5199 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5200 * regcache.c (generic_target_read_sp): Delete function.
5201 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5202 * inferior.h (generic_target_read_sp): Delete declaration.
5203 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5204 generic_target_read_sp.
5205 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5206 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5207 * sh-tdep.c (sh_gdbarch_init): Ditto.
5208 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5209 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5210
5211 2003-06-07 Andrew Cagney <cagney@redhat.com>
5212
5213 * gdbarch.sh: Comment each field of startup_gdbarch.
5214 * gdbarch.h, gdbarch.c: Re-generate.
5215
5216 2003-06-07 Andrew Cagney <cagney@redhat.com>
5217
5218 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5219 * gdbarch.h, gdbarch.c: Re-generate.
5220 * regcache.c: Update comments on read_pc et.al.
5221 (generic_target_read_pc): Delete function.
5222 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5223 * inferior.h (generic_target_read_pc): Delete declaration.
5224 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5225 generic_target_read_pc.
5226 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5227 * sh-tdep.c (sh_gdbarch_init): Ditto.
5228 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5229 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5230
5231 2003-06-07 Andrew Cagney <cagney@redhat.com>
5232
5233 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5234 "index" with "special_local_sect". Use strcmp instead of STREQ.
5235 Append period to coments.
5236
5237 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5238
5239 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5240 (elfstab_offset_sections): Likewise.
5241 * gdb-stabs.h (stab_section_info): Likewise.
5242 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5243 * objfiles.c (objfile_relocate): Likewise.
5244 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5245 * remote.c (get_offsets): Likewise.
5246 (remote_cisco_objfile_relocate): Likewise.
5247 * somread.c (som_symfile_offsets): Likewise.
5248 * symfile.c (alloc_section_addr_info): New function.
5249 (build_section_addr_info_from_section_tab): Use it.
5250 (free_section_addr_info): Adjust.
5251 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5252 (syms_from_objfile): Allocate local_addr dynamically.
5253 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5254 dynamically.
5255 (add_symbol_file_command): Allocate sect_opts dynamically.
5256 (reread_symbols): Avoid use of SECT_OFF_MAX.
5257 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5258 (alloc_section_addr_info): Declare it.
5259 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5260 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5261 dynamically.
5262 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5263
5264 2003-06-06 Andrew Cagney <cagney@redhat.com>
5265
5266 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5267 (d10v_frame_unwind_cache): Do not set "return_pc".
5268
5269 2003-06-06 Michael Snyder <msnyder@redhat.com>
5270
5271 * h8300-tdep.c: Make tidy (long lines).
5272
5273 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5274
5275 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5276 to regcache_collect().
5277
5278 2003-06-05 J. Brobecker <brobecker@gnat.com>
5279
5280 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5281 pc_in_sigtramp multiarch method.
5282 (hppa_hpux_som_init_abi): Use it.
5283 (hppa_hpux_elf_init_abi): Likewise.
5284 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5285 macro has been multiarched.
5286 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5287 macro here, as hppa64 isn't multiarched yet.
5288
5289 2003-06-05 Andrew Cagney <cagney@redhat.com>
5290
5291 * Makefile.in (value_h): Add $(frame_h).
5292 * value.h: Include "frame.h".
5293 (struct value): Replace "frame_addr" with "frame_id".
5294 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5295 * values.c (allocate_value): Use VALUE_FRAME_ID.
5296 (value_copy): Use VALUE_FRAME_ID.
5297 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5298 * valops.c (value_assign): Update. Use frame_find_by_id.
5299
5300 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5301
5302 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5303 in each pass.
5304
5305 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5306
5307 * thread-db.c (check_event): For create/death event breakpoints,
5308 loop through all messages to ensure that we read the message
5309 corresponding to the breakpoint we are at.
5310
5311 2003-06-04 Michael Snyder <msnyder@redhat.com>
5312
5313 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5314
5315 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5316
5317 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5318 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5319 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5320 when handling .eh_frame sections.
5321
5322 2003-06-04 J. Brobecker <brobecker@gnat.com>
5323
5324 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5325 prepare_to_proceed procedure instead of the hppa-specific one.
5326 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5327
5328 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5329
5330 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5331 * config.in: Regenerated.
5332 * configure.in: Add test for syscall function and check for
5333 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5334 * configure: Regenerated.
5335 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5336 <sys/syscall.h>.
5337 (kill_lwp): New function that uses tkill syscall or
5338 uses kill, depending on whether threading model is nptl or not.
5339 All callers of kill() changed to use kill_lwp().
5340 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5341 see if all threads have already exited in the nptl model.
5342 (stop_and_resume_callback): New callback function used by the
5343 lin_lwp_wait thread exit handling code.
5344 (stop_wait_callback): Check for threads already having exited and
5345 delete such threads fromt the lwp list when discovered.
5346 (stop_callback): Don't assert retcode of kill call.
5347
5348 Roland McGrath <roland@redhat.com>
5349 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5350 nptl libthread_db.
5351
5352 2003-06-03 Richard Henderson <rth@redhat.com>
5353
5354 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5355 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5356 (alpha_sigtramp_frame_prev_register): Likewise.
5357 (alpha_heuristic_frame_prev_register): Likewise.
5358 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5359
5360 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5361 alpha-specific register id names.
5362 (alpha_mdebug_frame_unwind_cache): Likewise.
5363 (alpha_mdebug_frame_prev_register): Likewise.
5364
5365 2003-06-03 Richard Henderson <rth@redhat.com>
5366
5367 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5368 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5369 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5370 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5371 unwind routines.
5372 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5373 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5374 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5375
5376 * alpha-linux-tdep.c: Remove unnecessary includes.
5377 * Makefile.in (alpha-linux-tdep.o): Update.
5378
5379 2003-06-03 Richard Henderson <rth@redhat.com>
5380
5381 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5382 (alphabsd_fill_fpreg): Likewise.
5383
5384 2003-06-03 J. Brobecker <brobecker@gnat.com>
5385
5386 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5387 references to struct frame_info fields by calls to the equivalent
5388 accessors. Necessary now that frame_info is opaque.
5389
5390 2003-06-03 J. Brobecker <brobecker@gnat.com>
5391
5392 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5393 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5394 structure, field no longer exists.
5395
5396 2003-06-03 J. Brobecker <brobecker@gnat.com>
5397
5398 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5399 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5400
5401 2003-06-03 J. Brobecker <brobecker@gnat.com>
5402
5403 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5404 references to struct frame_info fields by calls to the equivalent
5405 accessors. Necessary now that frame_info is opaque.
5406
5407 2003-06-03 J. Brobecker <brobecker@gnat.com>
5408
5409 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5410 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5411 structure, field no longer exists.
5412
5413 2003-06-03 Theodore A. Roth <troth@openavr.org>
5414
5415 * remote.c (init_remote_state): Compute sizeof_g_packet by
5416 accumulation of the size of all registers instead of blindly using
5417 DEPRECATED_REGISTER_BYTES.
5418
5419 2003-06-03 Michael Snyder <msnyder@redhat.com>
5420
5421 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5422 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5423 for h8300sx.
5424
5425 2003-06-03 J. Brobecker <brobecker@gnat.com>
5426
5427 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5428 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5429
5430 2003-06-03 Andrew Cagney <cagney@redhat.com>
5431
5432 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5433 (sparc_convert_to_raw): Delete function.
5434 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5435 register_convert_to_virtual.
5436
5437 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5438
5439 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5440 layer if not dealing with a statically-linked threaded program.
5441
5442 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5443
5444 * solib.c (solib_open): Update comment to reflect actual search order.
5445
5446 2003-06-03 Andrew Cagney <cagney@redhat.com>
5447
5448 * frame.c (get_frame_memory_signed): New function.
5449 (get_frame_memory, get_frame_memory_unsigned): New function.
5450 (get_frame_arch): New function.
5451 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5452 (get_frame_memory, get_frame_unsigned_memory): Declare.
5453 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5454 get_frame_memory_unsigned and get_frame_arch.
5455 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5456
5457 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5458
5459 * MAINTAINERS (write after approval): Add myself.
5460
5461 2003-06-03 Jim Blandy <jimb@redhat.com>
5462
5463 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5464 elements of gregset_t are 64 bits each, but access registers
5465 are still 32 bits, so they're packed two per gregset_t
5466 element. Unpack/pack them properly.
5467
5468 2003-06-02 David Carlton <carlton@bactrian.org>
5469
5470 * linespec.c (find_methods): Break out code into
5471 add_matching_methods and add_constructors.
5472 (add_matching_methods): New.
5473 (add_constructors): Ditto.
5474
5475 2003-06-02 Andrew Cagney <cagney@redhat.com>
5476
5477 * sparc-tdep.c (sparc_print_registers): Delete call to
5478 REGISTER_CONVERTIBLE.
5479 (sparc_gdbarch_init): Do not set register_convertible.
5480 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5481 * frv-tdep.c (frv_gdbarch_init): Ditto.
5482 * cris-tdep.c (cris_gdbarch_init): Ditto.
5483
5484 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5485
5486 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5487 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5488 (syms_from_objfile): Ditto.
5489
5490 2003-06-03 Andreas Schwab <schwab@suse.de>
5491
5492 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5493 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5494
5495 2003-06-02 Richard Henderson <rth@redhat.com>
5496
5497 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5498 a member of all_reggroup.
5499
5500 2003-06-02 Richard Henderson <rth@redhat.com>
5501
5502 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5503 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5504 (alpha_lds, alpha_sts): New.
5505 (alpha_convert_register_p): Change from _register_convertible.
5506 (alpha_register_to_value): Change from _convert_to_virtual;
5507 restructure and fail for type sizes other than 4 or 8.
5508 (alpha_value_to_register): Similarly.
5509 (alpha_extract_return_value): Use alpha_sts.
5510 (alpha_store_return_value): Use alpha_lds.
5511 (alpha_gdbarch_init): Update hooks.
5512
5513 2003-06-02 Richard Henderson <rth@redhat.com>
5514
5515 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5516 regnum identifiers.
5517 (alpha_sigtramp_register_address): Likewise.
5518
5519 2003-06-02 Richard Henderson <rth@redhat.com>
5520
5521 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5522 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5523 * alpha-tdep.h: Declare them.
5524
5525 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5526 Remove zerobuf. Don't error on UNIQUE.
5527 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5528 (ALPHA_REGSET_UNIQUE): Provide default.
5529 (supply_gregset): Use alpha_supply_int_regs.
5530 (fill_gregset): Use alpha_fill_int_regs.
5531 (supply_fpregset): Use alpha_supply_fp_regs.
5532 (fill_fpregset): Use alpha_fill_fp_regs.
5533 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5534 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5535 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5536 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5537 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5538 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5539
5540 2003-06-02 Richard Henderson <rth@redhat.com>
5541
5542 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5543
5544 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5545 (alpha_store_return_value): Likewise.
5546
5547 2003-06-02 David Carlton <carlton@math.stanford.edu>
5548
5549 * block.c (contained_in): Add 'const' to arguments.
5550 (block_function): Ditto.
5551 * block.h: Update declarations for block_function and
5552 contained_in.
5553
5554 2003-06-02 David Carlton <carlton@math.stanford.edu>
5555
5556 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5557 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5558 * p-valprint.c (pascal_val_print): Ditto.
5559 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5560
5561 2003-06-02 Richard Henderson <rth@redhat.com>
5562
5563 * alpha-tdep.c (alpha_push_dummy_call): Use
5564 builtin_type_ieee_double_little instead of builtin_type_double.
5565
5566 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5567 sign-extension of 32-bit values.
5568 (alpha_store_return_value): Similarly.
5569
5570 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5571 (alpha_extract_return_value): Likewise.
5572 (alpha_store_return_value): Likewise.
5573
5574 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5575 (alpha_store_return_value): Error on IEEE Quad floats.
5576
5577 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5578 (alpha_extract_struct_value_address): Likewise.
5579 (alpha_store_return_value): Likewise.
5580 (alpha_store_struct_return): Remove.
5581 (alpha_gdbarch_init): Update hook registration to match.
5582
5583 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5584 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5585 macros where appropriate.
5586 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5587 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5588
5589 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5590 for SP, GP; void_func_ptr for PC; non-language-specific types
5591 for all others.
5592 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5593
5594 2003-06-02 Richard Henderson <rth@redhat.com>
5595
5596 * top.h (lim_at_start): Declare.
5597 * main.c (captured_main): Set it.
5598 * top.c (lim_at_start): Define.
5599 (command_loop): Use it instead of &environ.
5600 * event-top.c (command_handler): Likewise.
5601
5602 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5603
5604 * mipsnbsd-tdep.c: Update copyright years.
5605 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5606
5607 2003-06-01 Richard Henderson <rth@redhat.com>
5608
5609 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5610 (alpha-linux-tdep.o): Update dependencies.
5611 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5612 * alpha-mdebug-tdep.c: Remove unneeded includes.
5613
5614 2003-06-01 Richard Henderson <rth@redhat.com>
5615
5616 * alpha-tdep.c (alpha_register_reggroup_p): New.
5617 (alpha_gdbarch_init): Register it.
5618
5619 2003-06-02 Andrew Cagney <cagney@redhat.com>
5620
5621 * dwarfread.c: Eliminate "register"
5622 (decode_die_type): Eliminate assignment within "if".
5623 (struct_type, decode_array_element_type): Ditto.
5624 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5625 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5626 (decode_modified_type, completedieinfo): Ditto.
5627 * block.c: Eliminate "register".
5628 (blockvector_for_pc_sect): Eliminate assignment within "if".
5629 * cp-support.h (struct symbol): Opaque declaration.
5630 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5631
5632 2003-06-01 Richard Henderson <rth@redhat.com>
5633
5634 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5635 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5636
5637 2003-06-01 Adam Fedor <fedor@gnu.org>
5638
5639 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5640 * gdbarch.[ch]: Regenerate.
5641 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5642 (hppa_gdbarch_init): Set it in the gdbarch vector.
5643 * i386-tdep.c (i386_fetch_pointer_argument): New
5644 (i386_gdbarch_init): Set it into gdbarch.
5645 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5646 (rs6000_gdbarch_init): Set it in gdbarch.
5647 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5648 (sparc_gdbarch_init): Set it in gdbarch.
5649
5650 2003-06-01 Andrew Cagney <cagney@redhat.com>
5651
5652 * defs.h (extract_address): Delete declaration.
5653 * findvar.c (extract_address): Delete function.
5654 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5655 extract_address with the inline equivalent,
5656 extract_unsigned_integer.
5657 (xstormy16_extract_struct_value_address): Ditto.
5658 (xstormy16_pointer_to_address): Ditto.
5659 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5660 * v850-tdep.c (v850_push_arguments): Ditto.
5661 (v850_extract_return_value): Ditto.
5662 (v850_extract_struct_value_address): Ditto.
5663 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5664 (sparcnbsd_get_longjmp_target_64): Ditto.
5665 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5666 (get_longjmp_target): Ditto.
5667 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5668 (sh64_extract_struct_value_address): Ditto.
5669 (sh_push_arguments): Ditto.
5670 (sh64_push_arguments): Ditto.
5671 * remote-vxsparc.c (vx_read_register): Ditto.
5672 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5673 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5674 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5675 * mipsv4-nat.c (get_longjmp_target): Ditto.
5676 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5677 * mips-nat.c (get_longjmp_target): Ditto.
5678 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5679 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5680 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5681 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5682 * irix5-nat.c (get_longjmp_target): Ditto.
5683 * irix4-nat.c (get_longjmp_target): Ditto.
5684 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5685 (ia64_push_arguments): Ditto.
5686 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5687 * h8300-tdep.c (h8300_push_arguments): Ditto.
5688 (h8300_store_return_value): Ditto.
5689 (h8300_extract_struct_value_address): Ditto.
5690 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5691 (frv_push_arguments): Ditto.
5692 * avr-tdep.c (avr_pointer_to_address): Ditto.
5693 (avr_push_arguments): Ditto.
5694 * arm-tdep.c (arm_push_dummy_call): Ditto.
5695 (arm_get_longjmp_target): Ditto.
5696 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5697 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5698 (alpha_get_longjmp_target): Ditto.
5699
5700 * solib-irix.c (extract_mips_address): Inline extract_address,
5701 replacing it with extract_signed_integer.
5702 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5703 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5704 (first_link_map_member, open_symbol_file_object): Ditto.
5705 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5706 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5707 (LM_NEXT, LM_NAME): Ditto.
5708
5709 2003-06-01 Richard Henderson <rth@redhat.com>
5710
5711 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5712 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5713 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5714 (alpha_cannot_store_register): Likewise.
5715 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5716 * alpha-nat.c (supply_gregset): Likewise.
5717 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5718
5719 2003-06-01 Andrew Cagney <cagney@redhat.com>
5720
5721 * infcall.c (call_function_by_hand): Update comment on
5722 DEPRECATED_DUMMY_WRITE_SP.
5723
5724 * mips-tdep.c (mips_gdbarch_init): Do not set
5725 deprecated_dummy_write_sp.
5726 (mips_eabi_push_dummy_call): Set the SP register.
5727 (mips_o64_push_dummy_call): Set the SP register.
5728 (mips_o32_push_dummy_call): Set the SP register.
5729 (mips_n32n64_push_dummy_call): Set the SP register.
5730
5731 2003-06-01 Richard Henderson <rth@redhat.com>
5732
5733 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5734 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5735 (supply_gregset): Likewise.
5736 * alpha-tdep.c (alpha_store_return_value): Likewise.
5737 (alpha_get_longjmp_target): Likewise.
5738 (alpha_register_name): Constify array.
5739 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5740 deprecated_register_size, deprecated_register_bytes,
5741 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5742 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5743 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5744
5745 2003-06-01 Richard Henderson <rth@redhat.com>
5746
5747 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5748 from arg_reg_buffer to regcache to avoid double conversion.
5749
5750 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5751
5752 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5753 SP_REGNUM.
5754 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5755 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5756
5757 2003-06-01 Richard Henderson <rth@redhat.com>
5758
5759 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5760 (decode_frame_entry): Set it. Skip FDE augmentation.
5761
5762 2003-06-01 Richard Henderson <rth@redhat.com>
5763
5764 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5765 not overlapping PC_REGNUM.
5766
5767 2003-06-01 Richard Henderson <rth@redhat.com>
5768
5769 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5770 alpha_push_arguments. Don't dump argument register data to
5771 the target stack. Fix float and 128-bit long double semantics.
5772 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5773 (alpha_fix_call_dummy): Remove.
5774 (alpha_call_dummy_words): Remove.
5775 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5776
5777 2003-06-01 Richard Henderson <rth@redhat.com>
5778
5779 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5780
5781 2003-06-01 Andrew Cagney <cagney@redhat.com>
5782
5783 * mips-tdep.c (is_mips16_addr): New function.
5784 (make_mips16_addr, unmake_mips16_addr): New functions.
5785 (pc_is_mips16, mips_fetch_instruction): Use.
5786 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5787 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5788 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5789 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5790 TARGET_MIPS.
5791 * config/mips/tm-mips.h: Update copyright.
5792 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5793 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5794 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5795 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5796 (TM_PRINT_INSN_MACH): Delete.
5797 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5798
5799 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5800 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5801 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5802 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5803 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5804 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5805 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5806 mips*-*-riscos* and mips*-*-sysv* onto mips.
5807 * config/mips/mips64.mt: New file.
5808 * config/mips/mips.mt: New file.
5809 * config/mips/littlemips.mt: Delete file.
5810 * config/mips/decstation.mt: Delete file.
5811 * config/mips/vr4300el.mt: Delete file.
5812 * config/mips/vr5000el.mt: Delete file.
5813 * config/mips/vr5000.mt: Delete file.
5814 * config/mips/vr4100.mt: Delete file.
5815 * config/mips/vr4xxxel.mt: Delete file.
5816 * config/mips/vr4300.mt: Delete file.
5817 * config/mips/vr4xxx.mt: Delete file.
5818 * config/mips/bigmips.mt: Delete file.
5819 * config/mips/bigmips64.mt: Delete file.
5820 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5821 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5822 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5823 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5824 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5825 "tm-bigmips.h".
5826 * config/mips/tm-irix3.h: Ditto.
5827 * config/mips/tm-mipsv4.h: Ditto.
5828 * config/mips/tm-embed.h: Ditto.
5829 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5830 "tm-bigmips64.h".
5831 * config/mips/tm-vr5000el.h: Delete file.
5832 * config/mips/tm-tx39l.h: Delete file.
5833 * config/mips/tm-vr4300el.h: Delete file.
5834 * config/mips/tm-vr4xxxel.h: Delete file.
5835 * config/mips/tm-vr4300.h: Delete file.
5836 * config/mips/tm-vr4100.h: Delete file.
5837 * config/mips/tm-vr4xxx.h: Delete file.
5838 * config/mips/tm-vr5000.h: Delete file.
5839 * config/mips/tm-embedl64.h: Delete file.
5840 * config/mips/tm-embedl.h: Delete file.
5841 * config/mips/tm-embed64.h: Delete file.
5842 * config/mips/tm-bigmips64.h: Delete file.
5843 * config/mips/tm-bigmips.h: Delete file.
5844
5845 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5846
5847 Fix gdb/1216.
5848 * shnbsd-nat.c: Include "sh-tdep.h".
5849
5850 From Richard Henderson <rth@redhat.com>:
5851 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5852
5853 2003-05-31 Andrew Cagney <cagney@redhat.com>
5854
5855 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5856 forward declaration.
5857 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5858 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5859 (mips_find_saved_regs): Use set_reg_offset.
5860 (mips_frame_init_saved_regs): Delete function.
5861 (mips_pop_frame): Call mips_find_saved_regs instead of
5862 DEPRECATED_FRAME_INIT_SAVED_REGS.
5863
5864 2003-05-31 Andrew Cagney <cagney@redhat.com>
5865
5866 * mips-tdep.c (mips_gdbarch_init): Do not set
5867 deprecated_max_register_raw_size, register_virtual_size, and
5868 deprecated_max_register_virtual_size.
5869
5870 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5871
5872 * i386-tdep.c: Include "dwarf2-frame.h".
5873 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5874 * Makefile.in (i386-tdep.o): Update dependencies.
5875
5876 * dwarf2-frame.c, dwarf2-frame.h: New files.
5877 * Makefile.in (SFILES): Add dwarf2-frame.c.
5878 (dwarf2_frame_h): Define.
5879 (COMMON_OBS): Add dwarf2-frame.o.
5880 (dwarf2-frame.o): Add dependencies.
5881
5882 2003-05-31 Andreas Jaeger <aj@suse.de>
5883
5884 * x86-64-linux-nat.c: Fix comment.
5885
5886 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5887
5888 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5889 function signature.
5890
5891 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5892 have a sigcontext_addr handler.
5893 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5894 sigcontext_addr handler.
5895
5896 2003-05-31 Andrew Cagney <cagney@redhat.com>
5897
5898 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5899 (print_fp_register_row): Replace do_fp_register_row.
5900 (mips_print_fp_register): Add "file" and "frame" parameters.
5901 (mips_print_register): Add "file" and "frame" parameters.
5902 (mips_print_registers_info): Replace mips_do_registers_info.
5903 (mips_gdbarch_init): Set print_registers_info instead of
5904 deprecated_do_registers_info.
5905 (mips_read_fp_register_single): Add "frame" parameter.
5906 (mips_read_fp_register_double): Add "frame" parameter.
5907
5908 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5909
5910 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5911 Fixes a bug where GDB would print the wrong register names for
5912 targets without SSE.
5913
5914 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5915 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5916 registers.
5917
5918 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5919 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5920 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5921 TDEP->sc_sp_offset.
5922
5923 From Michal Ludvig <mludvig@suse.cz>:
5924 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5925 and `sc_num_regs'.
5926 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5927 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5928 I386_ST0_REGNUM): Move here from...
5929 * i386-tdep.c: ... here.
5930 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5931 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5932 registers if possible.
5933 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5934 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5935 Remove variables.
5936 (i386bsd_sc_reg_offset): New variable.
5937 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5938 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5939 TDEP->sc_sp_offset.
5940 (i386fbsd_sc_reg_offset): New variable.
5941 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5942 TDEP->sc_num_regs.
5943 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5944 variables.
5945 (i386fbsd4_sc_reg_offset): New variable.
5946 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5947 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5948 TDEP->sc_sp_offset.
5949 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5950 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5951 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5952 Remove variables.
5953 (i386nbsd_sc_reg_offset): New variable.
5954 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5955 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5956 TDEP->sc_sp_offset.
5957 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5958 Remove variables.
5959 (i386obsd_sc_reg_offset): New variable.
5960 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5961 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5962 TDEP->sc_sp_offset.
5963 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5964 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5965 for frame pointer offset in `struct sigcontext'.
5966
5967 2003-05-31 Andrew Cagney <cagney@redhat.com>
5968
5969 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5970 architecture methods call_dummy_words, sizeof_call_dummy_words,
5971 push_return_address, store_struct_return, and fix_call_dummy. Set
5972 push_dummy_call instead of deprecated_push_arguments.
5973 (mips_store_struct_return): Delete function.
5974 (mips_fix_call_dummy): Delete function.
5975 (mips_push_return_address): Delete function.
5976 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5977 RA_REGNUM and T9_REGNUM.
5978 (mips_n32n64_push_dummy_call): Ditto for
5979 mips_n32n64_push_arguments.
5980 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5981 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5982
5983 2003-05-31 Andrew Cagney <cagney@redhat.com>
5984
5985 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5986 "dummy_addr" to "bp_addr".
5987 * infcall.c (call_function_by_hand): Pass "funaddr" to
5988 gdbarch_push_dummy_call.
5989 * gdbarch.h, gdbarch.c: Re-generate.
5990 * i386-tdep.c (i386_push_dummy_call): Update.
5991 * arm-tdep.c (arm_push_dummy_call): Update.
5992 * d10v-tdep.c (d10v_push_dummy_call): Update.
5993
5994 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5995
5996 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5997 variable declarations.
5998 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5999 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6000 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6001 x86_64_init_frame_pc, x86_64_init_frame_pc,
6002 x86_64_function_has_prologue): Remove prototypes.
6003 (X86_64_NUM_GREGS): New define.
6004 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6005 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6006 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6007 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6008 XMM1_REGNUM): Remove defines.
6009 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6010 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6011 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6012 X86_64_XMM1_REGNUM): New defines.
6013 (struct x86_64_register_info): Renamed from `struct
6014 register_info'. Remove `size' member.
6015 (x86_64_register_info_table): Remove variable.
6016 (x86_64_register_info): New variable.
6017 (X86_64_NUM_REGS): New define.
6018 (X86_64_NUM_GREGS): Remove define.
6019 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6020 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6021 Remove variables.
6022 (x86_54_dwarf2_reg_to_regnum): Remove function.
6023 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6024 (x86_64_dwarf_reg_to_regnum): New function.
6025 (x86_64_register_name): Rewrite.
6026 (x86_64_register_raw_size): Remove function.
6027 (x86_64_register_byte_table): Remove variable.
6028 (x86_64_register_byte): Remove function.
6029 (x86_64_register_virtual_type): Remove function.
6030 (x86_64_register_type): New function.
6031 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6032 x86_64_register_convert_to_raw): Remove functions.
6033 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6034 (x86_64_use_struct_convention): Make static. Adjust for renamed
6035 defines.
6036 (x86_64_frame_init_saved_regs): Remove function.
6037 (x86_64_push_arguments): Make static. Change to accept a regcache
6038 as argument.
6039 (x86_64_store_return_value, x86_64_extract_return_value): Make
6040 static. Rewrite based on i386 counterparts.
6041 (x86_64_push_dummy_call): New function.
6042 (X86_64_NUM_SAVED_REGS): New define.
6043 (x86_64_register_number): Remove function.
6044 (x86_64_store_struct_return): Remove function.
6045 (x86_64_frameless_function_invocation,
6046 x86_64_function_has_prologue): Remove functions.
6047 (PROLOG_BUFSIZE): Remove define.
6048 (struct x86_64_frame_cache): New structure.
6049 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6050 x86_64_frame_cache, x86_64_frame_this_id,
6051 x86_64_frame_prev_register, x86_64_frame_p,
6052 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6053 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6054 functions.
6055 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6056 variables.
6057 (x86_64_skip_prologue): Rewrite in terms of
6058 x86_64_analyze_prologue.
6059 (x86_64_frame_base_address): New function.
6060 (x86_64_frame_base): New variable.
6061 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6062 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6063 set deprecated_fp_regnum, deprecated_register_size,
6064 deprecated_register_bytes, register_raw_size, register_byte,
6065 register_virtual_type, register_convertiable,
6066 register_convert_to_virtual, convert_to_raw,
6067 deprecated_get_saved_register, deprecated_target_read_fp,
6068 deprecated_push_arguments, deprecated_push_return_address,
6069 deprecated_pop_frame, deprecated_store_struct_return,
6070 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6071 frameless_function_invocation, deprecated_frame_saved_pc,
6072 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6073 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6074 deprecated_init_frame_pc and virtual_frame_pointer. Call
6075 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6076 and x86_64_frame_p. Call frame_base_set_default to register
6077 x86_64_frame_base.
6078 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6079 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6080 (_initialize_x86_64_tdep): Remove function.
6081 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6082 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6083 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6084 define.
6085 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6086 (x86_64_linux_sigcontext_addr): Rewrite.
6087 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6088 x86_64_linux_frame_saved_pc): Remove functions.
6089 (x86_64_linux_pc_in_sigtramp): Renamed from
6090 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6091 trampoline.
6092 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6093 Remove_functions.
6094 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6095 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6096 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6097 (x86_64_regmap): Rename to regmap.
6098 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6099 x86_64_num_gregs.
6100 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6101 x86_64_regmap.
6102 (x86_64_fxsave_offset): Remove function.
6103 (supply_fpregset): Simply call x86_64_supply_fxsave.
6104 (fill_fpregset): Simply call x86_64_fill_fxsave.
6105 (fetch_inferior_registers, store_inferior_registers): Avoid
6106 asignment in if-statement.
6107 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6108 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6109 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6110 (fetch_core_registers): Remove function.
6111 (linux_elf_core_fns): Remove.
6112 (offsetoff): Don't define.
6113 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6114 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6115 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6116 add core-regset.o.
6117 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6118 protection against multiple includes instead of NM_X86_64_h. Add
6119 various comments. Include "config/nm-linux.h". Don't include
6120 <signal.h>.
6121 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6122 GET_THREAD_SIGNALS): Remove defines.
6123 (x86_64_register_u_addr, kernel_u_size,
6124 lin_thread_get_thread_signals): Remove prototypes.
6125 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6126 [HAVE_LINK_H]: Don't include "solib.h".
6127 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6128 * config/i386/tm-x86-64linux.h: Fix comments.
6129 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6130 x86-64-tdep.o): Update dependencies.
6131
6132 2003-05-30 Andrew Cagney <cagney@redhat.com>
6133
6134 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6135 Change parameter type to a "struct regcache *".
6136
6137 * gdbarch.sh: Regardless of the multi-arch level, always define
6138 the macro when not already defined.
6139 * gdbarch.h, gdbarch.c: Re-generate.
6140
6141 2003-05-30 Richard Henderson <rth@redhat.com>
6142
6143 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6144 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6145 (alpha_mdebug_frame_this_id): Likewise.
6146 (alpha_mdebug_frame_prev_register): Likewise.
6147 (alpha_mdebug_frame_base_address): Likewise.
6148 (alpha_mdebug_frame_locals_address): Likewise.
6149 (alpha_mdebug_frame_args_address): Likewise.
6150 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6151 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6152 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6153 loop increment.
6154 (alpha_heuristic_frame_this_id): Make static.
6155 (alpha_heuristic_frame_prev_register): Likewise.
6156 (alpha_heuristic_frame_base_address): Likewise.
6157 * alpha-tdep.h: Update.
6158
6159 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6160
6161 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6162 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6163 defenitions.
6164 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6165 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6166 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6167 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6168 I386_ST0_REGNUM): New defines.
6169 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6170 codestream_get): Remove define.
6171 (codestream_next_addr, condestream_addr, condestream_buf,
6172 codestream_off, codestream_cnt): Remove variables.
6173 (codestream_fill, codestream_seek, codestream_read): Remove
6174 functions.
6175 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6176 functionality.
6177 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6178 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6179 i386_frame_saved_pc, i386_saved_pc_after_call,
6180 i386_frame_num_args, i386_frame_init_saved_regs,
6181 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6182 i386_push_arguments): Remove functions.
6183 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6184 functionality. Use i386_analyze_prologue instead of
6185 i386_get_frame_setup.
6186 (I386_NUM_SAVED_REGS): New define.
6187 (struct i386_frame_cache): New structure.
6188 (i386_alloc_frame_cache, i386_analyze_struct_return,
6189 i386_skip_probe, i386_analyze_frame_setup,
6190 i386_analyze_register_saves, i386_analyze_prologue,
6191 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6192 i386_frame_prev_register, i386_sigtramp_frame_cache,
6193 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6194 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6195 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6196 New functions.
6197 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6198 New variables.
6199 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6200 I386_EAX_REGNUM and I386_EDX_REGNUM.
6201 (i386_extract_return_value, i386_store_return_value): Use
6202 I386_ST0_REGNUM where appropriate.
6203 (i386_extract_struct_value_address): Rewrite to use extract_address.
6204 (i386_svr4_pc_in_sigtramp): Add comment.
6205 (i386_svr4_sigcontext_addr): Rewrite.
6206 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6207 TDEP->sc_sp_offset.
6208 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6209 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6210 of new defines. Set push_dummy_call, don't set
6211 deprecated_push_arguments, deprecated_push_return_address,
6212 deprecated_pop_frame. Don't set parm_boundary. Don't set
6213 deprecated_frame_chain, deprecated_frame_saved_pc,
6214 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6215 save_dummy_frame_tos, unwind_pc. Call
6216 frame_unwind_append_predicate and frame_base_set_default. Don't
6217 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6218 Don't set frameless_function_invocation. Don't set
6219 deprecated_register_bytes, deprecated_register_size,
6220 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6221 * i386-linux-tdep.c: Fix formatting in some comments.
6222 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6223 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6224 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6225 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6226 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6227 redundant parentheses.
6228 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6229 (i386_linux_sigcontext_addr): Use it. Rewrite.
6230 (find_minsym_and_objfile): Change name of second argument.
6231 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6232 changed. Use frame_pc_unwind instead of
6233 DEPRECATED_SAVED_PC_AFTER_CALL.
6234 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6235 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6236 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6237 unwinder.
6238 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6239 "dummy-frame.h".
6240 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6241 (_initialize_i386_cygwin_tdep): New prototype.
6242 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6243 deprecated_frame_chain_valid.
6244 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6245 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6246 Rely on the SVR4 defaults.
6247 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6248 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6249
6250 2003-05-30 Andrew Cagney <cagney@redhat.com>
6251
6252 * infcall.c (call_function_by_hand): Always call
6253 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6254
6255 2003-05-30 Richard Henderson <rth@redhat.com>
6256
6257 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6258 increment.
6259
6260 2003-05-29 Jim Blandy <jimb@redhat.com>
6261
6262 Use gdbarch methods for solib stuff on PowerPC Linux.
6263 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6264 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6265 show through.
6266 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6267 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6268 giving the same effect as the #definitions above.
6269
6270 2003-05-29 Adam Fedor <fedor@gnu.org>
6271
6272 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6273 (find_implementation_from_class): Replace it with the standard
6274 case i.e. do nothing.
6275
6276 2003-05-29 Richard Henderson <rth@redhat.com>
6277
6278 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6279 (alpha_linux_sigtramp_offset): Use it. Make static.
6280 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6281 update for new frame model.
6282 * alpha-mdebug-tdep.c: New file.
6283 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6284 (alpha_osf1_init_abi): Install it.
6285 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6286 (linked_proc_desc_table): Remove.
6287 (alpha_frame_past_sigtramp_frame): Remove.
6288 (alpha_dynamic_sigtramp_offset): Remove.
6289 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6290 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6291 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6292 (push_sigtramp_desc): Remove.
6293 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6294 (alpha_cannot_store_register): Likewise.
6295 (alpha_sigcontext_addr): Remove.
6296 (alpha_find_saved_regs): Remove.
6297 (alpha_frame_init_saved_regs): Remove.
6298 (alpha_init_frame_pc_first): Remove.
6299 (read_next_frame_reg): Remove.
6300 (alpha_frame_saved_pc): Remove.
6301 (alpha_saved_pc_after_call): Remove.
6302 (temp_proc_desc, temp_saved_regs): Remove.
6303 (alpha_about_to_return): Remove.
6304 (cached_proc_desc): Remove.
6305 (alpha_frame_chain): Remove.
6306 (alpha_print_extra_frame_info): Remove.
6307 (alpha_init_extra_frame_info): Remove.
6308 (alpha_frame_locals_address): Remove.
6309 (alpha_frame_args_address): Remove.
6310 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6311 (alpha_push_dummy_frame): Remove.
6312 (alpha_pop_frame): Remove.
6313 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6314 (alpha_read_insn): New.
6315 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6316 for different insn encodings.
6317 (alpha_in_lenient_prologue): Remove.
6318 (struct alpha_sigtramp_unwind_cache): New.
6319 (alpha_sigtramp_frame_unwind_cache): New.
6320 (alpha_sigtramp_register_address): New.
6321 (alpha_sigtramp_frame_this_id): New.
6322 (alpha_sigtramp_frame_prev_register): New.
6323 (alpha_sigtramp_frame_unwind): New.
6324 (alpha_sigtramp_frame_p): New.
6325 (struct alpha_heuristic_unwind_cache): New.
6326 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6327 don't count nop insns that occur between functions.
6328 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6329 heuristic_proc_desc, but without the mdebug wrapping.
6330 (alpha_heuristic_frame_this_id): New.
6331 (alpha_heuristic_frame_prev_register): New.
6332 (alpha_heuristic_frame_unwind): New.
6333 (alpha_heuristic_frame_p): New.
6334 (alpha_heuristic_frame_base_address): New.
6335 (alpha_heuristic_frame_base): New.
6336 (alpha_unwind_dummy_id): New.
6337 (alpha_unwind_pc): New.
6338 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6339 frame related deprecated initializations; install replacements.
6340 (alpha_dump_tdep): Remove.
6341 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6342 (alpha_read_insn, alpha_after_prologue,
6343 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6344 alpha_heuristic_frame_prev_register,
6345 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6346 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6347 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6348 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6349
6350 2003-05-29 Andrew Cagney <cagney@redhat.com>
6351
6352 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6353 dependant on the availability of ASSERT_FUNCTION.
6354 (ASSERT_FUNCTION): Do not define when there is no function name.
6355
6356 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6357
6358 From Jimi X <jimix@watson.ibm.com>:
6359 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6360
6361 2003-05-28 Jim Blandy <jimb@redhat.com>
6362
6363 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6364 argument to ptrace to int; the system headers should give it the
6365 right type, and pointers don't fit in ints on powerpc64-*-*.
6366
6367 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6368
6369 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6370 DW_TAG_catch_block.
6371
6372 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6373
6374 * stabsread.c (dbx_lookup_type): Make static.
6375 (read_type): Ditto.
6376 (add_undefined_type): Ditto.
6377 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6378 not export.
6379
6380 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6381
6382 * hpread.c (hpread_has_name): Make static.
6383 (hpread_psymtab_to_symtab): Ditto.
6384 (file_exists): Ditto.
6385 (hpread_call_pxdb): Ditto.
6386 (hpread_pxdb_needed): Ditto.
6387 (hpread_quick_traverse): Ditto.
6388 (hpread_get_header): Ditto.
6389 (hpread_get_lntt): Ditto.
6390 (hpread_get_slt): Ditto.
6391 (class_of): Ditto.
6392
6393 2003-05-25 Andreas Schwab <schwab@suse.de>
6394
6395 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6396 stack_align and deprecated_extra_stack_alignment_needed.
6397 (m68k_stack_align): Delete.
6398
6399 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6400 (m68k_register_virtual_size): Likewise.
6401 (altos_skip_prologue): Remove obsolete function.
6402 (isi_frame_num_args): Likewise.
6403 (news_frame_num_args): Likewise.
6404 (m68k_fix_call_dummy): Make static.
6405 (m68k_push_dummy_frame): Likewise.
6406 (m68k_pop_frame): Likewise.
6407 (m68k_skip_prologue): Likewise.
6408 (m68k_frame_init_saved_regs): Likewise.
6409 (m68k_saved_pc_after_call): Likewise.
6410 (m68k_get_longjmp_target): Make multi-arch.
6411 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6412 structure. Register m68k_get_longjmp_target if enabled.
6413 * m68k-tdep.h (struct gdbarch_tdep): Define.
6414 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6415
6416 * Makefile.in (config.status): Also depend on configure.tgt
6417 and configure.host.
6418 (m68klinux-tdep.o): Update dependencies.
6419 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6420 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6421 (M68K_LINUX_JB_PC): Define.
6422 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6423 and take additional parameter.
6424 (m68k_linux_sigtramp_saved_pc): Update.
6425 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6426 m68k_linux_pc_in_sigtramp, in_plt_section,
6427 find_solib_trampoline_target.
6428 * config/m68k/tm-linux.h: Don't include any tm headers.
6429 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6430 (JB_ELEMENT_SIZE): Likewise.
6431 (JB_PC): Likewise.
6432 (GET_LONGJMP_TARGET): Likewise.
6433 (IN_SIGTRAMP): Likewise.
6434 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6435
6436 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6437
6438 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6439 (sparc32_push_arguments): Re-implement by calling
6440 sparc32_do_push_arguments.
6441
6442 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6443
6444 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6445 SPARC_O1_REGNUM): New defines.
6446 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6447 (sparc32_store_return_value): New function.
6448 (sparc_extract_struct_value_address): Rewrite to operate on a
6449 regcache.
6450 (sparc_gdbarch_init): Don't set
6451 deprecated_extract_struct_value_address. Set
6452 extract_struct_value_address instead. Don't set
6453 deprecated_extract_return_value and deprecated_store_return_value
6454 for 32-bit targets. Set extract_return_value and
6455 store_return_value instead.
6456 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6457 DEPRECTAED_EXTRACT_RETURN_VALUE,
6458 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6459 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6460 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6461 (sparc_store_return_value): Remove prototype.
6462 (sparc32_store_return_value): New prototype.
6463 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6464 Adjust prototypes.
6465
6466 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6467
6468 * sparcnbsd-tdep.c: Include "gdb_string.h".
6469
6470 2003-05-23 Andrew Cagney <cagney@redhat.com>
6471
6472 * p-valprint.c (pascal_val_print): Replace extract_address with
6473 the inline equivalent extract_unsigned_integer.
6474 * jv-valprint.c (java_value_print): Ditto.
6475 * ada-valprint.c (ada_val_print_1): Ditto.
6476 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6477
6478 2003-05-23 Theodore A. Roth <troth@openavr.org>
6479
6480 * blockframe.c (frameless_look_for_prologue): Remove unused
6481 after_prologue variable.
6482
6483 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6484
6485 * blockframe.c (get_pc_function_start): Rewrite to avoid
6486 asignments in if-statements.
6487
6488 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6489
6490 Committed by Elena Zannoni <ezannoni@redhat.com>.
6491 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6492 files, don't relocate absolute symbols (and do use mst_abs).
6493
6494 2003-05-23 Andrew Cagney <cagney@redhat.com>
6495
6496 * objc-lang.c: Include "gdb_assert.h".
6497 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6498 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6499 (gdb_check, gdb_check_fatal): Delete functions.
6500 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6501 gdb_assert.
6502 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6503 * Makefile.in (objc-lang.o): Update dependencies.
6504
6505 2003-05-22 Ian Lance Taylor <ian@airs.com>
6506
6507 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6508 with fprintf_filtered, not fprintf_unfiltered.
6509
6510 2003-05-22 Andrew Cagney <cagney@redhat.com>
6511
6512 * stack.c (frame_info): Inline extract_address, replacing it with
6513 extract_unsigned_integer.
6514 * findvar.c (unsigned_pointer_to_address): Ditto.
6515 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6516 * dwarf2expr.c (dwarf2_read_address): Ditto.
6517 * frame.c (frame_pc_unwind): Update comment.
6518 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6519
6520 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6521
6522 * infptrace.c (detach): Call print_sys_errmsg rather than
6523 perror_with_name to issue warning message when errno is non-zero
6524 after calling ptrace detach.
6525
6526 2003-05-21 J. Brobecker <brobecker@gnat.com>
6527
6528 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6529 macro definitions from here...
6530 * hppa-tdep.c: ...to there.
6531
6532 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6533
6534 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6535 register_ptrace_addr(). Fix all callers.
6536
6537 2003-05-21 Andreas Schwab <schwab@suse.de>
6538
6539 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6540 dependencies.
6541 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6542 end.
6543 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6544 (_initialize_m68k_linux_tdep): New function.
6545 (m68k_linux_frame_saved_pc): Make static.
6546 (m68k_linux_extract_return_value): Likewise.
6547 (m68k_linux_store_return_value): Likewise.
6548 (m68k_linux_extract_struct_value_address): Likewise.
6549 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6550 Remove.
6551 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6552 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6553 (DEPRECATED_FRAME_SAVED_PC): Remove.
6554
6555 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6556
6557 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6558 regset numbering rather than our own.
6559
6560 2003-05-19 David Carlton <carlton@bactrian.org>
6561
6562 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6563
6564 2003-05-19 David Carlton <carlton@bactrian.org>
6565
6566 Partial fix for PR c++/827.
6567 * cp-support.h: Include symtab.h.
6568 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6569 * cp-namespace.c: Update contributors.
6570 (cp_lookup_symbol_nonlocal): New.
6571 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6572 (lookup_symbol_file): Ditto.
6573 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6574 * block.h: Declare block_scope, block_using, block_global_block.
6575 * block.c (block_scope): New.
6576 (block_using, block_global_block): Ditto.
6577 * Makefile.in (cp_support_h): Depend on symtab_h.
6578 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6579
6580 2003-05-19 David Carlton <carlton@bactrian.org>
6581
6582 * language.h (struct language_defn): Add 'la_value_of_this'
6583 and 'la_lookup_symbol_nonlocal' members.
6584 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6585 lookup_symbol_static, lookup_symbol_global,
6586 lookup_symbol_aux_block.
6587 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6588 if we should search fields of this and how to do static/global
6589 lookup.
6590 (lookup_symbol_aux_block): Make extern.
6591 (basic_lookup_symbol_nonlocal): New.
6592 (lookup_symbol_static, lookup_symbol_global): Ditto.
6593 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6594 'la_lookup_symbol_nonlocal' members.
6595 * c-lang.c (c_language_defn, cplus_language_defn)
6596 (asm_language_defn, minimal_language_defn): Ditto.
6597 * jv-lang.c (java_language_defn): Ditto.
6598 * language.c (unknown_language_defn, auto_language_defn)
6599 (local_language_defn): Ditto.
6600 * m2-lang.c (m2_language_defn): Ditto.
6601 * objc-lang.c (objc_language_defn): Ditto.
6602 * scm-lang.c (scm_language_defn): Ditto.
6603 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6604 * p-lang.c (pascal_language_defn): Ditto for both.
6605 * Makefile.in (f-lang.o): Depend on value_h.
6606 (p-lang.o): Ditto.
6607
6608 2003-05-19 David Carlton <carlton@bactrian.org>
6609
6610 * block.h: Declare block_static_block.
6611 * block.c (block_static_block): New.
6612 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6613 lookup_symbol_aux_local, calling block_static_block instead.
6614 (lookup_symbol_aux_local): Delete 'static_block' argument.
6615
6616 2003-05-19 David Carlton <carlton@bactrian.org>
6617
6618 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6619
6620 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6621
6622 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6623 register numbers mapping.
6624
6625 2003-05-18 Adam Fedor <fedor@gnu.org>
6626
6627 * symtab.c (completion_list_objc_symbol): New function.
6628 (make_symbol_completion_list): Use it to add ObjC symbols
6629 when looking though the list.
6630 (language_search_unquoted_string): New function.
6631 (make_file_symbol_completion_list): Use it.
6632
6633 2003-05-18 Andreas Schwab <schwab@suse.de>
6634
6635 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6636 dependencies.
6637 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6638 as m68k_linux_extract_return_value.
6639 (DEPRECATED_STORE_RETURN_VALUE): Define as
6640 m68k_linux_store_return_value.
6641 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6642 m68k_linux_extract_struct_value_address.
6643 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6644 get_next_frame, get_frame_base, get_frame_pc.
6645 (m68k_linux_frame_saved_pc): Use get_frame_base.
6646 (m68k_linux_extract_return_value): New function.
6647 (m68k_linux_store_return_value): New function.
6648 (m68k_linux_extract_struct_value_address): New function.
6649 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6650
6651 * c-exp.y (typebase): Remove duplicate occurence of
6652 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6653 of lookup_signed_typename.
6654
6655 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6656
6657 * dwarf2loc.c (find_location_expression): Change type of second
6658 argument to `size_t *'.
6659 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6660 for size variable.
6661
6662 2003-05-18 David Carlton <carlton@bactrian.org>
6663
6664 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6665 'linkage_name'. Add comment.
6666 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6667 'linkage_name'.
6668 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6669 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6670 (lookup_block_symbol): Ditto.
6671
6672 2003-05-16 Andrew Cagney <cagney@redhat.com>
6673
6674 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6675 * gdbarch.h, gdbarch.c: Re-generate.
6676 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6677 * TODO (REGISTER_BYTES): Delete reference.
6678 * alpha-tdep.c (alpha_gdbarch_init): Update.
6679 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6680 * x86-64-tdep.c (x86_64_init_abi): Update.
6681 * vax-tdep.c (vax_gdbarch_init): Update.
6682 * v850-tdep.c (v850_gdbarch_init): Update.
6683 * sparc-tdep.c (sparc_gdbarch_init): Update.
6684 * sh-tdep.c (sh_gdbarch_init): Update.
6685 * s390-tdep.c (s390_gdbarch_init): Update.
6686 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6687 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6688 (ns32k_gdbarch_init_32382): Update.
6689 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6690 * mcore-tdep.c (mcore_gdbarch_init): Update.
6691 * m68k-tdep.c (m68k_gdbarch_init): Update.
6692 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6693 * ia64-tdep.c (ia64_gdbarch_init): Update.
6694 * i386-tdep.c (i386_gdbarch_init): Update.
6695 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6696 * hppa-tdep.c (hppa_gdbarch_init): Update.
6697 * h8300-tdep.c (h8300_gdbarch_init): Update.
6698 * frv-tdep.c (frv_gdbarch_init): Update.
6699 * cris-tdep.c (cris_gdbarch_init): Update.
6700 * avr-tdep.c (avr_gdbarch_init): Update.
6701 * arm-tdep.c (arm_gdbarch_init): Update.
6702 * sparc-tdep.c (sparc_pop_frame): Update.
6703 * rs6000-tdep.c (rs6000_pop_frame): Update.
6704 * remote.c (init_remote_state): Update.
6705 (remote_prepare_to_store): Update.
6706 * remote-vx.c (vx_prepare_to_store): Update.
6707 * remote-sds.c (sds_fetch_registers): Update.
6708 (sds_prepare_to_store): Update.
6709 * remote-array.c: Update.
6710 * regcache.c (init_legacy_regcache_descr): Update.
6711 (init_regcache_descr): Update.
6712 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6713 (mips_o64_extract_return_value): Update.
6714 * irix5-nat.c (fetch_core_registers): Update.
6715 * irix4-nat.c (fetch_core_registers): Update.
6716 * i386-tdep.h: Update.
6717 * hppa-tdep.c (pa_do_registers_info): Update.
6718 (pa_do_strcat_registers_info): Update.
6719 * cris-tdep.c (cris_register_bytes_ok): Update.
6720 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6721 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6722 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6723 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6724 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6725 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6726 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6727 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6728 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6729 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6730 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6731 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6732 (REGISTER_BYTES_OK): Update.
6733 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6734 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6735
6736 2003-05-16 Ian Lance Taylor <ian@airs.com>
6737
6738 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6739 (vax_print_insn, print_insn_arg): Remove static functions.
6740 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6741 print_insn_vax from opcodes library.
6742 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6743
6744 2003-05-15 Andrew Cagney <cagney@redhat.com>
6745
6746 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6747 * target.h (memory_breakpoint_from_pc): Delete declaration.
6748 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6749 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6750 * monitor.c (monitor_insert_breakpoint): Use
6751 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6752 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6753 * gdbarch.h, gdbarch.c: Re-generate.
6754 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6755 (sparc_gdbarch_init): Set breakpoint_from_pc to
6756 sparc_breakpoint_from_pc.
6757 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6758 (BREAKPOINT_FROM_PC): Define.
6759 (sparc_breakpoint_from_pc): Declare.
6760 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6761 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6762 (BREAKPOINT_FROM_PC): Define.
6763 (BREAKPOINT): Delete macro.
6764 * target.h: Update comment.
6765 * s390-tdep.c (s390_gdbarch_init): Update comments.
6766 * remote.c: Update comments.
6767 * remote-mips.c: Update comments.
6768 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6769 * mem-break.c: Update comment.
6770 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6771 (ia64_memory_insert_breakpoint): Update.
6772 * config/sparc/tm-sparc.h: Update comment.
6773 * config/pa/tm-hppa64.h: Update comment.
6774 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6775 (rs6000_breakpoint_from_pc): Update.
6776 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6777 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6778 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6779 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6780 (mips_breakpoint_from_pc): Update.
6781 (mips_dump_tdep): Update.
6782
6783 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6784 * minsyms.c (lookup_minimal_symbol): Inline
6785 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6786
6787 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6788 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6789 * p-lang.c (pascal_printstr): Ditto.
6790 * objc-lang.c (objc_printstr): Ditto.
6791 * m2-lang.c (m2_printstr): Ditto.
6792 * jv-valprint.c (java_print_value_fields): Ditto.
6793 * f-lang.c (f_printstr): Ditto.
6794 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6795 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6796 for repeat_count_threshold.
6797 * Makefile.in (cp-valprint.o): Update dependencies.
6798
6799 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6800
6801 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6802 (examine_prologue): Support looking through leaf functions, knowing
6803 they start with mov r2,r12. Support skipping over indirect stores
6804 of the input registers. Upon hitting a non-nop branch instruction
6805 or predicated instruction, bail out by setting lim_pc to the current
6806 pc value in the loop. At the end, if the lim_pc value is still
6807 beyond our calculated value and we have trust_limit set,
6808 use the lim_pc value.
6809
6810 2003-05-15 Andrew Cagney <cagney@redhat.com>
6811
6812 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6813 generic_find_dummy_frame.
6814 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6815 (deprecated_generic_find_dummy_frame): Update.
6816 (deprecated_read_register_dummy): Update.
6817 * frame.c (deprecated_generic_get_saved_register): Update.
6818
6819 2003-05-15 Theodore A. Roth <troth@openavr.org>
6820
6821 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6822 (avr_gdbarch_init): Set breakpoint_from_pc method.
6823
6824 2003-05-15 Andrew Cagney <cagney@redhat.com>
6825
6826 * regcache.c (build_regcache): Set deprecated_register_valid
6827 directly.
6828 (deprecated_grub_regcache_for_register_valid): Delete function.
6829 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6830 declaration.
6831
6832 2003-05-15 David Carlton <carlton@bactrian.org>
6833
6834 Committed by Elena Zannoni <ezannoni@redhat.com>
6835 * symtab.c (lookup_symbol_aux): Delete calls to
6836 lookup_symbol_aux_minsyms.
6837 (lookup_symbol_aux_minsyms): Comment out function and
6838 prototype. Delete lookup by mangled name.
6839
6840 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6841
6842 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6843 correctly indicate an empty stack and ``stack_allocated'' to the
6844 indicate the number of elements initially allocated.
6845 (dwarf_expr_grow_stack): Simplify method for computing new
6846 stack size. Don't loop infinitely if ``stack_len'' is zero.
6847 (execute_stack_op): Move ``ctx->in_reg'' initialization
6848 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6849 be used in conjuction with DW_OP_piece. Revise error message
6850 accordingly.
6851
6852 2003-05-14 Theodore A. Roth <troth@openavr.org>
6853
6854 * MAINTAINERS: Update my email address.
6855 * avr-tdep.c: Ditto.
6856
6857 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6858
6859 * symtab.h (enum domain_enum): Rename from namespace_enum.
6860 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6861 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6862 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6863 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6864 TYPES_NAMESPACE, METHODS_NAMESPACE.
6865 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6866 (struct symbol, struct partial_symbol): Rename field
6867 'namespace_enum namespace' to 'domain_enum domain'.
6868 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6869 Delete old define kludge for namespace.
6870
6871 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6872 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6873 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6874 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6875 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6876 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6877 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6878 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6879 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6880 occurrences of the above.
6881
6882 2003-05-14 Ian Lance Taylor <ian@airs.com>
6883
6884 * Makefile.in (install-only): Use $(SHELL) when running
6885 mkinstalldirs.
6886
6887 2003-05-13 Ian Lance Taylor <ian@airs.com>
6888
6889 * MAINTAINERS (write after approval): Add myself.
6890
6891 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6892 second and third arguments.
6893 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6894 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6895
6896 2003-05-13 Andrew Cagney <cagney@redhat.com>
6897
6898 * defs.h (store_address): Delete declaration.
6899 findvar.c (store_address): Delete function.
6900 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6901 store_unsigned_integer.
6902 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6903 * v850-tdep.c (v850_push_arguments): Ditto.
6904 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6905 * sh-tdep.c (sh64_get_saved_register): Ditto.
6906 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6907 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6908 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6909 (mips_get_saved_register): Ditto.
6910 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6911 (find_func_descr, ia64_push_arguments): Ditto.
6912 * i386-tdep.c (i386_push_arguments): Ditto.
6913 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6914 * frv-tdep.c (frv_push_arguments): Ditto.
6915 * frame.c (legacy_saved_regs_prev_register): Ditto.
6916 (deprecated_generic_get_saved_register): Ditto.
6917 * findvar.c (unsigned_address_to_pointer): Ditto.
6918 * dwarf2read.c (dwarf2_const_value): Ditto.
6919 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6920 * alpha-tdep.c (alpha_push_arguments): Ditto.
6921
6922 2003-05-12 J. Brobecker <brobecker@gnat.com>
6923
6924 * NEWS: Mention that the hppa-hpux port has been partially
6925 multiarched (32bit ABIT only, so far).
6926
6927 2003-05-11 Andrew Cagney <cagney@redhat.com>
6928
6929 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6930 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6931 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6932 sim/testsuite/sim/arm/misaligned2.ms, and
6933 sim/testsuite/sim/arm/misaligned3.ms.
6934 * disasm.h (struct ui_file): Add opaque struct declaration.
6935 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6936 * frame.h (struct ui_file): Ditto.
6937
6938 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6939
6940 * value.h: Pretty print.
6941
6942 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6943
6944 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6945
6946 2003-05-08 Andrew Cagney <cagney@redhat.com>
6947
6948 * regcache.h (max_register_size): Delete declaration.
6949 * regcache.c (max_register_size): Delete function.
6950 (struct regcache_descr): Delete field "max_register_size".
6951 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6952 registers fit in MAX_REGISTER_SIZE.
6953 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6954 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6955 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6956 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6957 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6958 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6959 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6960 * dve3900-rom.c, hppa-tdep.c: Ditto.
6961
6962 2003-05-08 David Carlton <carlton@math.stanford.edu>
6963
6964 * valops.c (push_word): Fix typo.
6965
6966 2003-05-08 Andrew Cagney <cagney@redhat.com>
6967
6968 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6969 * gdbarch.h: Re-generate.
6970 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6971 (legacy_max_register_raw_size): Delete declaration.
6972 * regcache.c (legacy_max_register_raw_size): Delete function.
6973 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6974 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6975 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6976 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6977 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6978 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6979 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6980 * findvar.c, dwarf2cfi.c: Ditto.
6981
6982 2003-05-08 Andrew Cagney <cagney@redhat.com>
6983
6984 * mips-tdep.c (read_signed_register): New function, moved to here
6985 from "regcache.c".
6986 (read_signed_register_pid): Ditto.
6987 * regcache.c (read_signed_register_pid): Delete function, moved to
6988 "mips-tdep.c".
6989 (read_signed_register): Ditto.
6990 * regcache.h (read_signed_register): Delete declaration.
6991 (read_signed_register_pid): Delete declaration.
6992
6993 2003-05-08 Andrew Cagney <cagney@redhat.com>
6994
6995 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6996 * gdbarch.h: Re-generate.
6997 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6998 (legacy_max_register_virtual_size): Delete declaration.
6999 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7000 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7001 * tracepoint.c (memrange_sortmerge): Ditto.
7002 * sparc-tdep.c (sparc_print_registers): Ditto.
7003 * regcache.c (legacy_max_register_virtual_size): Delete function.
7004
7005 2002-05-08 J. Brobecker <brobecker@gnat.com>
7006
7007 * fork-child.c (escape_bang_in_quoted_argument): New function.
7008 (fork_inferior): Escape '!' characters in quoted arguments
7009 only when needed.
7010
7011 2003-05-08 J. Brobecker <brobecker@gnat.com>
7012
7013 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7014 the language of the CU is not currently supported by GDB.
7015
7016 2003-05-08 J. Brobecker <brobecker@gnat.com>
7017
7018 * defs.h (language): Add language_minimal enum value.
7019 * c-lang.c (minimal_language_defn): New language definition.
7020 (_initialize_c_language): Add the new minimal language to the list
7021 of languages known to GDB.
7022
7023 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7024
7025 * frame.c (get_frame_type): Don't attempt to lazily initialize
7026 frame's unwinder for legacy frames.
7027
7028 2003-05-07 Andrew Cagney <cagney@redhat.com>
7029
7030 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7031 and "regcache" parameters.
7032 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7033
7034 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7035
7036 * dwarf2read.c (dwarf_decode_lines): Only use output of
7037 check_cu_functions() when calling record_line(). Do not update
7038 the current address.
7039
7040 2003-05-07 Andrew Cagney <cagney@redhat.com>
7041
7042 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7043 code.
7044
7045 2003-05-07 Jim Blandy <jimb@redhat.com>
7046
7047 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7048 'maint info symtabs' and 'maint info psymtabs'.
7049 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7050 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7051 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7052 Declarations updated.
7053 * maint.c (maintenance_list_command): Delete.
7054 (_initialize_maint_cmds): Update calls to add_cmd.
7055 * gdbcmd.h (maintenancelistlist): Delete declaration.
7056 * cli/cli-cmds.c (maintenancelistlist): Delete.
7057 (init_cmd_lists): Don't initialize it.
7058 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7059
7060 2003-05-07 Andrew Cagney <cagney@redhat.com>
7061
7062 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7063 "regcache".
7064 (d10v_print_registers_info): Update.
7065 (d10v_dmap_register, d10v_imap_register): Delete functions.
7066 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7067 and "imap_register".
7068 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7069 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7070 * arch-utils.c (generic_remote_translate_xfer_address): Add
7071 "regcache" and "gdbarch" parameters.
7072 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7073 parameter. Change class to multi-arch.
7074 * gdbarch.h, gdbarch.c: Re-generate.
7075 * remote.c (remote_xfer_memory): Use
7076 gdbarch_remote_translate_xfer_address.
7077
7078 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7079
7080 * infrun.c (prev_pc): Move declaration ahead of proceed().
7081 (proceed): Refresh prev_pc value before resuming.
7082 (stop_stepping): Remove code to refresh prev_pc.
7083
7084 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7085
7086 * nto-tdep.c: Removed stray comment.
7087
7088 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7089
7090 * i386-nto-tdep.c: Fix old K&R function definitions.
7091 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7092 Also change add_show_from_set() call to add_setshow_cmd().
7093 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7094
7095 2003-05-05 Andrew Cagney <cagney@redhat.com>
7096
7097 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7098 (fprint_dummy_frames): New function.
7099 (maintenance_print_dummy_frames): New function.
7100 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7101 * frame.c (fprint_frame_id): Make global.
7102 * frame.h (fprint_frame_id): Declare.
7103 * Makefile.in (dummy-frame.o): Update dependencies.
7104
7105 2003-05-05 Andrew Cagney <cagney@redhat.com>
7106
7107 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7108 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7109 SIZEOF_CALL_DUMMY_WORDS.
7110 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7111 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7112 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7113 CALL_DUMMY_BREAKPOINT_OFFSET.
7114 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7115 CALL_DUMMY_START_OFFSET.
7116 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7117 * gdbarch.h, gdbarch.c: Re-generate.
7118 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7119 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7120 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7121 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7122 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7123 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7124 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7125 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7126 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7127 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7128 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7129 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7130 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7131 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7132 * config/sparc/tm-sparc.h: Update.
7133
7134 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7135
7136 * configure.tgt: Add i[3456]86-*-nto*.
7137 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7138 * nto-tdep.c: New file. Neutrino target support routines.
7139 * nto-tdep.h: New file. Neutrino target header.
7140 * config/tm-qnxnto.h: New file.
7141 * config/i386/i386nto.mt: New file.
7142 * config/i386/tm-i386nto.h: New file.
7143
7144 2003-05-04 Andrew Cagney <cagney@redhat.com>
7145
7146 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7147 (load_infrun_state): Ditto.
7148 (struct thread_info): Drop "prev_func_name" field.
7149 * thread.c (load_infrun_state): Update.
7150 (save_infrun_state): Update.
7151 * infrun.c (prev_func_name): Delete variable.
7152 (init_wait_for_inferior): Do not clear prev_func_name.
7153 (stop_stepping, keep_going, context_switch): Do not swap
7154 prev_func_name.
7155 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7156 instead of PC_IN_SIGTRAMP.
7157
7158 2003-05-04 Andrew Cagney <cagney@redhat.com>
7159
7160 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7161 REGISTER_BYTE with register_offset_hack.
7162 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7163 that REGISTER_BYTE is consistent with the regcache.
7164 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7165 * gdbarch.h, gdbarch.c: Regenerate.
7166
7167 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7168
7169 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7170 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7171
7172 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7173
7174 2003-05-03 J. Brobecker <brobecker@gnat.com>
7175
7176 From Thierry Schneider <tpschneider1@yahoo.com>
7177 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7178 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7179 (mi-cmd-symbol.o): Add rule.
7180
7181 2003-05-03 Andrew Cagney <cagney@redhat.com>
7182
7183 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7184 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7185 * gdbarch.h, gdbarch.c: Re-generate.
7186 * d10v-tdep.c (d10v_push_dummy_code): New function.
7187 (d10v_gdbarch_init): Set push_dummy_code.
7188 * infcall.c (legacy_push_dummy_code): New function.
7189 (generic_push_dummy_code): New function.
7190 (push_dummy_code): New function.
7191 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7192 instead of dummy_addr, to push_dummy_call. Move call to
7193 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7194 switch.
7195 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7196
7197 2003-05-03 Andrew Cagney <cagney@redhat.com>
7198
7199 * disasm.h (print_insn): Declare.
7200 * disasm.c (init_gdb_disassemble_info): New function.
7201 (gdb_disassembly): Call init_gdb_disassemble_info.
7202 (gdb_print_insn): New function.
7203 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7204 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7205 * mcore-tdep.c: Include "disasm.h"
7206 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7207 * d10v-tdep.c: Include "disasm.h".
7208 (display_trace): Call gdb_print_insn, instead of print_insn.
7209 (print_insn): Delete function.
7210 * printcmd.c: Include "disasm.h".
7211 (print_insn): Delete function.
7212 (print_formatted): Call gdb_print_insn, instead of print_insn.
7213 * Makefile.in (printcmd.o): Update dependencies.
7214 (mcore-tdep.o, d10v-tdep.o): Ditto.
7215
7216 2003-05-02 Andrew Cagney <cagney@redhat.com>
7217
7218 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7219 PC_REGNUM, re-indent.
7220 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7221 PC_REGNUM isn't set.
7222
7223 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7224 * gdbarch.h, gdbarch.c: Re-generate.
7225 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7226 register_virtual_size, pc_regnum, or register_bytes.
7227 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7228 (d10v_register_type): Use D10V_PC_REGNUM.
7229 (d10v_print_registers_info, d10v_read_pc): Ditto.
7230 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7231 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7232
7233 2003-05-02 David Carlton <carlton@bactrian.org>
7234
7235 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7236 the name with mstrsave.
7237
7238 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7239
7240 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7241 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7242 (host_charset_name, target_charset_name): New vars for use by
7243 set/show commands.
7244 (host_charset_enum, target_charset_enum): New enums for set/show
7245 commands.
7246 (set_charset_sfunc, set_host_charset_sfunc,
7247 set_target_charset_sfunc): New functions.
7248 (set_host_charset, set_target_charset): Make static.
7249 (list_charsets, set_host_charset_command,
7250 set_target_charset_command): Delete functions.
7251 (show_charset_command): Rewrite as....
7252 (show_charset): Hook this up with the set/show command mechanism.
7253 (_initialize_charset): Change names of charsets to match the
7254 set/show enums. Use host_charset_name and target_charset_name.
7255 Use set/show mechanism for charset, host-charset, target-charset
7256 commands. Do not make 'show host-charset' and 'show
7257 target-charset' be aliases of 'show charset'.
7258
7259 * charset.h (set_host_charset, set_target_charset): Don't export,
7260 they are not used outside the file.
7261
7262 2003-05-01 Andrew Cagney <cagney@redhat.com>
7263
7264 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7265 (gdb_disassembly): Make "di" non static, always initialize and
7266 cleanup. Always use dis_asm_read_memory.
7267 (gdb_dis_asm_read_memory): Delete function.
7268
7269 2003-05-01 Andrew Cagney <cagney@redhat.com>
7270
7271 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7272 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7273
7274 2003-04-30 Andrew Cagney <cagney@redhat.com>
7275
7276 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7277 "tm_print_insn_info".
7278 (TARGET_PRINT_INSN_INFO): Delete macro.
7279 (dis_asm_read_memory): Delete function declaration.
7280 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7281 (tm_print_insn_info): Delete variable definition.
7282 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7283 * gdbarch.h, gdbarch.c: Re-generate.
7284 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7285 "deprecated_tm_print_insn_info".
7286 * mcore-tdep.c (mcore_dump_insn): Ditto.
7287 * mips-tdep.c (mips_gdbarch_init): Ditto.
7288 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7289 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7290 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7291 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7292 instead of TARGET_PRINT_INSN_INFO, add comment.
7293 * s390-tdep.c (s390_get_frame_info): Instead of
7294 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7295 (s390_check_function_end, s390_is_sigreturn): Ditto.
7296 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7297 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7298 * disasm.c: Include "gdbcore.h".
7299 (_initialize_disasm): New function, initialize
7300 "deprecated_tm_print_insn_info".
7301 (deprecated_tm_print_insn_info): New variable.
7302 (dis_asm_read_memory): Moved from "corefile.c", made static.
7303 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7304 * Makefile.in (disasm.o): Update dependencies.
7305
7306 2003-04-30 Andrew Cagney <cagney@redhat.com>
7307
7308 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7309
7310 2003-04-29 Adam Fedor <fedor@gnu.org>
7311
7312 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7313 * infcall.c (find_function_addr): Make non-static.
7314 * infcall.h (find_function_addr): Declare.
7315 * Makefile.in (eval.o): Update dependencies.
7316
7317 2003-04-28 Adam Fedor <fedor@gnu.org>
7318
7319 * symtab.c (symbol_find_demangled_name): Check for and demangle
7320 ObjC symbols.
7321 (symbol_init_demangled_name): Init for language_objc as well.
7322
7323 2003-04-28 Andrew Cagney <cagney@redhat.com>
7324
7325 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7326 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7327 * gdbarch.h, gdbarch.c: Re-generate.
7328 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7329 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7330 * inferior.h (deprecated_read_fp): Rename read_fp.
7331 (generic_target_read_fp): Delete declaration.
7332 * regcache.c (generic_target_read_fp): Delete function.
7333 (deprecated_read_fp): Replace read_fp, use
7334 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7335 * d10v-tdep.c (d10v_read_fp): Delete function.
7336 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7337
7338 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7339 deprecated_target_read_fp to generic_target_read_fp.
7340 * sh-tdep.c (sh_gdbarch_init): Ditto.
7341 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7343 * frv-tdep.c (frv_gdbarch_init): Ditto.
7344
7345 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7346 deprecated_fp_regnum.
7347 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7348 * vax-tdep.c (vax_gdbarch_init): Ditto.
7349 * v850-tdep.c (v850_gdbarch_init): Ditto.
7350 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7351 * sh-tdep.c (sh_gdbarch_init): Ditto.
7352 * s390-tdep.c (s390_gdbarch_init): Ditto.
7353 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7354 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7355 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7356 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7357 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7358 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7359 * i386-tdep.c (i386_gdbarch_init): Ditto.
7360 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7361 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7362 * frv-tdep.c (frv_gdbarch_init): Ditto.
7363 * cris-tdep.c (cris_gdbarch_init): Ditto.
7364 * avr-tdep.c (avr_gdbarch_init): Ditto.
7365 * arm-tdep.c (arm_gdbarch_init): Ditto.
7366 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7367
7368 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7369 * v850-tdep.c (v850_gdbarch_init): Ditto.
7370 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7371 * sh-tdep.c (sh_gdbarch_init): Ditto.
7372 * s390-tdep.c (s390_gdbarch_init): Ditto.
7373 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7374 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7375 * mips-tdep.c (mips_gdbarch_init): Ditto.
7376 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7377 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7378 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7379 * frv-tdep.c (frv_gdbarch_init): Ditto.
7380 * avr-tdep.c (avr_gdbarch_init): Ditto.
7381 * arm-tdep.c (arm_gdbarch_init): Ditto.
7382
7383 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7384 DEPRECATED_FP_REGNUM.
7385 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7386 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7387 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7388 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7389 (sparc32_register_virtual_type): Ditto.
7390 * sh-tdep.c (sh64_frame_chain): Ditto.
7391 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7392 (sh_nofp_frame_init_saved_regs): Ditto.
7393 (sh64_nofp_frame_init_saved_regs): Ditto.
7394 (sh_fp_frame_init_saved_regs): Ditto.
7395 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7396 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7397 * procfs.c (procfs_fetch_registers): Ditto.
7398 (procfs_store_registers): Ditto.
7399 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7400 (store_inferior_registers, fetch_core_registers): Ditto.
7401 (fetch_kcore_registers, clear_regs): Ditto.
7402 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7403 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7404 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7405 * nlm/i386.c (do_status): Ditto.
7406 * mipsv4-nat.c (supply_gregset): Ditto.
7407 * mips-tdep.c: Ditto for comments.
7408 * mips-nat.c (fetch_inferior_registers): Ditto.
7409 (store_inferior_registers, fetch_core_registers): Ditto.
7410 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7411 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7412 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7413 (i386_do_pop_frame, i386_register_type): Ditto.
7414 * hppa-tdep.c (hppa_frame_chain): Ditto.
7415 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7416 (hppa_pop_frame, hppa_read_fp): Ditto.
7417 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7418 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7419 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7420 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7421 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7422 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7423 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7424 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7425 * blockframe.c: Ditto for comments.
7426 * arch-utils.h: Ditto for comments.
7427 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7428 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7429 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7430 * alpha-tdep.h: Ditto for comments.
7431 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7432 (alpha_cannot_store_register): Ditto.
7433 (alpha_push_dummy_frame): Ditto.
7434 * alpha-nat.c (supply_gregset): Ditto.
7435
7436 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7437 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7438 * config/sparc/tm-sparc.h: Update comment.
7439
7440 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7441 deprecated_read_fp instead of TARGET_READ_FP.
7442 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7443 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7444 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7445 deprecated_read_fp instead of read_fp.
7446 * s390-tdep.c (s390_push_arguments): Ditto.
7447 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7448 * frame.h: Ditto in comments.
7449 * frame.c (legacy_get_prev_frame): Ditto.
7450 * dummy-frame.c (dummy_frame_this_id): Ditto.
7451 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7452
7453 2003-04-28 Andrew Cagney <cagney@redhat.com>
7454
7455 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7456 * gdbarch.h, gdbarch.c: Re-generate.
7457 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7458 * vax-tdep.c (_initialize_vax_tdep): Update.
7459 * v850-tdep.c (_initialize_v850_tdep): Update.
7460 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7461 * s390-tdep.c (_initialize_s390_tdep): Update.
7462 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7463 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7464 * mips-tdep.c (_initialize_mips_tdep): Update.
7465 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7466 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7467 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7468 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7469 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7470 * frv-tdep.c (_initialize_frv_tdep): Update.
7471 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7472 (_initialize_cris_tdep): Update.
7473 * arch-utils.c (legacy_print_insn): Update.
7474 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7475
7476 2003-04-26 Adam Fedor <fedor@gnu.org>
7477
7478 * linespec.c (decode_objc): New function to decode ObjC calls
7479 (decode_line_1): Check for ObjC calls (using decode_objc)
7480 * Makefile (linespec.o): Update dependencies.
7481
7482 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7483
7484 * breakpoint.h (struct breakpoint_ops): New.
7485 (struct breakpoint): Add ops member.
7486
7487 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7488 (mention): Use new breakpoint ops member.
7489 (set_raw_breakpoint): Initialize ops field to NULL.
7490 (print_exception_catchpoint, print_one_exception_catchpoint)
7491 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7492 (gnu_v3_exception_catchpoint_ops): New.
7493 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7494
7495 2003-04-25 Adam Fedor <fedor@gnu.org>
7496
7497 * Makefile.in (COMMON_OBS): Add objc-lang.o
7498
7499 2003-04-25 Andrew Cagney <cagney@redhat.com>
7500
7501 * d10v-tdep.c (print_insn): Delete function.
7502 (display_trace): Use TARGET_PRINT_INSN.
7503 (_initialize_d10v_tdep): Do not set tm_print_insn.
7504 (d10v_gdbarch_init): Set print_insn.
7505
7506 2003-04-25 Andrew Cagney <cagney@redhat.com>
7507
7508 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7509 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7510 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7511 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7512 (nr_dmap_regs, a0_regnum): ... new functions.
7513 (d10v_print_registers_info): Use a0_regnum, use register_size.
7514 (d10v_register_byte): Delete function.
7515 (d10v_register_raw_size): Delete function.
7516 (d10v_register_type): Use a0_regnum.
7517 (d10v_print_registers_info): Use a0_regnum.
7518 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7519 (d10v_gdbarch_init): Do not set register_byte or
7520 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7521 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7522 extract_address.
7523 (trace_command): Use XCALLOC.
7524 (print_insn): Delete reference to tm_print_insn.
7525 (saved_regs_unwinder): Use store_unsigned_integer instead of
7526 store_address.
7527 * frame.h (FRAME_OBSTACK_CALLOC): Define
7528
7529 2003-04-25 David Carlton <carlton@bactrian.org>
7530
7531 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7532
7533 2003-04-24 Adam Fedor <fedor@gnu.org>
7534
7535 * objc-lang.c: Include "valprint.h"
7536 * Makefile.in (objc-lang.o): Update dependencies.
7537
7538 2003-04-24 Adam Fedor <fedor@gnu.org>
7539
7540 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7541 architecture dependant compilation and mark as unimplemented
7542 (until they get put in the gdbarch vector).
7543
7544 2003-04-23 David Carlton <carlton@bactrian.org>
7545
7546 * cp-support.c (cp_find_first_component): Accept 'operator' in
7547 more locations.
7548
7549 2003-04-23 Andrew Cagney <cagney@redhat.com>
7550
7551 * infcall.c (call_function_by_hand): Eliminate redundant
7552 indentation. Move "saved_async" and "old_cleanups" to where they
7553 are needed.
7554
7555 2003-04-23 Andrew Cagney <cagney@redhat.com>
7556
7557 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7558 and "buffer". Move the "name" code to where it is needed.
7559
7560 2003-04-23 Andrew Cagney <cagney@redhat.com>
7561
7562 * infcall.c (call_function_by_hand): Move variables "start_sp",
7563 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7564 code to ON_STACK switch branch.
7565
7566 2003-04-23 Andrew Cagney <cagney@redhat.com>
7567
7568 * infcall.c (call_function_by_hand): Make declaration of "i",
7569 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7570 lint.
7571
7572 2003-04-23 Andrew Cagney <cagney@redhat.com>
7573
7574 * infcall.c (call_function_by_hand): Delete variable
7575 "n_method_args". Localize "param_type"'s declaration to the loop
7576 that it is used. Reinstate code assigning to said variable -
7577 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7578 Rationalize code using "param_type".
7579
7580 2003-04-22 Andrew Cagney <cagney@redhat.com>
7581
7582 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7583 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7584 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7585 to DEPRECATED_PUSH_RETURN_ADDRESS.
7586
7587 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7588
7589 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7590 on the DWARF2 register number prior to fetching a register.
7591
7592 2003-04-22 J. Brobecker <brobecker@gnat.com>
7593
7594 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7595 Update all the tests using SOFT_FLOAT considering the fact that
7596 this macro was always set to 0.
7597 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7598 considering the fact that this macro was always set to 0.
7599 * hppa-tdep.h (hppa_store_return_value): Likewise.
7600 (hppa_extract_return_value): Likewise.
7601
7602 2003-04-22 J. Brobecker <brobecker@gnat.com>
7603
7604 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7605 the hppa-pro target only.
7606
7607 2003-04-21 J. Brobecker <brobecker@gnat.com>
7608
7609 Ongoing multi-arch conversion effort for HP/UX:
7610 * config/pa/tm-hppa.h: Move all macro that are no longer
7611 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7612 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7613
7614 2003-04-21 J. Brobecker <brobecker@gnat.com>
7615
7616 * config/pa/tm-hppa.h: Obsolete a section that was only used
7617 for hppa-pro.
7618
7619 2003-04-21 J. Brobecker <brobecker@gnat.com>
7620
7621 Ongoing multi-arch conversion for HP/UX.
7622 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7623 if already defined (allows hppa64 to stay non-multiarched for now).
7624 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7625
7626 2003-04-21 Andrew Cagney <cagney@redhat.com>
7627
7628 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7629
7630 2003-04-21 Andrew Cagney <cagney@redhat.com>
7631
7632 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7633 "i386_num_mmx_regs".
7634
7635 2003-04-21 Andrew Cagney <cagney@redhat.com>
7636
7637 * infcall.c: New file.
7638 * infcall.h: New file.
7639 * valarith.c: Include "infcall.h".
7640 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7641 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7642 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7643 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7644 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7645 (SFILES): Add "infcall.c"
7646 (COMMON_OBS): Add "infcall.o".
7647 (infcall.o): Specify dependencies.
7648 * value.h (call_function_by_hand): Delete declaration.
7649 * inferior.h (run_stack_dummy): Delete declaration.
7650 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7651 (run_stack_dummy): Move to "infcall.c", merged into
7652 call_function_by_hand.
7653 * valops.c (call_function_by_hand): Moved to "infcall.c".
7654 (find_function_addr, value_arg_coerce): Ditto.
7655 (unwindonsignal_p, coerce_float_to_double): Ditto.
7656 (_initialize_valops): Move "set/show coerce-float-to-double", and
7657 "set/show unwindonsignal" commands to "infcall.c".
7658 * v850-tdep.c, target.h: Update comments.
7659 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7660 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7661 (sh64_init_extra_frame_info): Update comments.
7662 * mn10300-tdep.c: Update comments.
7663 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7664 * config/sparc/tm-sparc.h: Update comments.
7665 * breakpoint.h: Update comments.
7666 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7667 * arm-tdep.c: Update comment.
7668
7669 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7670
7671 * i386-tdep.c (i386_num_register_names): New variable.
7672 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7673 (MM0_REGNUM): Remove redundant parentheses in define.
7674 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7675 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7676 i386_mxcsr_regnum_p): Remove redundant parentheses.
7677 (i386_register_name): Use i386_num_register_names.
7678
7679 * i386-tdep.c (i386_extract_return_value,
7680 i386_store_return_value): Correct check for availability of
7681 floating-point registers.
7682
7683 * i386-tdep.c (i386_frame_num_args): Remove function.
7684 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7685
7686 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7687 mmx_regnum_to_fp_regnum. Adjust all callers.
7688
7689 * i386-tdep.c (i386_get_longjmp_target): Use
7690 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7691 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7692 extract_address.
7693
7694 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7695
7696 * core-regset.c: Update comments to reflect reality. Re-order
7697 includes.
7698 (fetch_core_registers): Use switch instead of if. Remove
7699 redundant prototype.
7700
7701 2003-04-18 Jim Blandy <jimb@redhat.com>
7702
7703 * s390-tdep.c (s390_frame_align): New function.
7704 (s390_gdbarch_init): Register it with the gdbarch object.
7705
7706 2003-04-17 Richard Henderson <rth@redhat.com>
7707
7708 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7709
7710 2003-04-17 Michael Snyder <msnyder@redhat.com>
7711 Karen Bennet <bennet@redhat.com>
7712
7713 Committed by Elena Zannoni <ezannoni@redhat.com>
7714 * gdb_gcore.sh: New script to create a core dump of a process.
7715
7716 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7717
7718 * values.c (value_being_returned): Don't fetch the return
7719 value if the return type is void.
7720
7721 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7722
7723 * thread-db.c: Reindented.
7724
7725 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7726
7727 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7728 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7729 as types.
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7756
7757 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7758 the size of ``long double'' to 16, instead of 8.
7759
7760 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7761
7762 * i386-linux-nat.c: Add some whitespace to make things more
7763 readable.
7764 (fetch_register, store_register, fetch_inferior_registers,
7765 store_inferior_registers): Get rid of assignment in if-statement.
7766 (store_register): Fix typo in error message.
7767
7768 2003-04-16 Andrew Cagney <cagney@redhat.com>
7769
7770 * utils.c (xmmalloc): Always allocate something, matches
7771 libiberty/xmalloc's semantics.
7772 (xmrealloc, xmcalloc): Ditto.
7773
7774 2003-04-16 Andrew Cagney <cagney@redhat.com>
7775
7776 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7777 update comments.
7778 (get_frame_type): Initialize unwind and type when needed.
7779 (get_frame_id, frame_register_unwind): Ditto.
7780
7781 2003-04-16 Andrew Cagney <cagney@redhat.com>
7782
7783 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7784 obsolete.
7785 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7786 * sparcl-stub.c: Obsolete file.
7787 * config/sparc/tm-sparclet.h: Obsolete file.
7788 * sparclet-stub.c: Obsolete file.
7789 * sparclet-rom.c: Obsolete file.
7790 * sparcl-tdep.c: Obsolete file.
7791 * config/sparc/tm-sparclite.h: Obsolete file.
7792 * config/sparc/sparclite.mt: Obsolete file.
7793 * config/sparc/sparclet.mt: Obsolete file.
7794 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7795 sparc86x-*-* obsolete.
7796
7797 2003-04-15 David Carlton <carlton@math.stanford.edu>
7798
7799 * Makefile.in (SFILES): Add cp-namespace.c.
7800 (COMMON_OBS): Add cp-namespace.o.
7801 (block.o): Depend on gdb_obstack_h and cp_support_h.
7802 (buildsym.o): Depend on cp_support_h.
7803 (cp-namespace.o): New.
7804 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7805 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7806 (dwarf2read.o): Depend on cp_support_h.
7807 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7808 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7809 processing_current_namespace.
7810 (read_namespace): Update processing_current_namespace; check for
7811 anonymous namespaces.
7812 (dwarf2_name): New function.
7813 (dwarf2_extension): Ditto.
7814 * cp-support.h: Update copyright, contributors.
7815 Add inclusion guards.
7816 Add opaque declaration for structs obstack, block, symbol.
7817 (struct using_direct): New struct.
7818 Add declarations for cp_find_first_component,
7819 cp_entire_prefix_len, processing_has_namespace_info,
7820 processing_current_namespace, cp_is_anonymous,
7821 cp_add_using_directive, cp_initialize_namespace,
7822 cp_finalize_namespace, cp_set_block_scope,
7823 cp_scan_for_anonymous_namespaces.
7824 * cp-namespace.c: New file.
7825 * cp-support.c: Update copyright.
7826 Include ctype.h, gdb_assert.h, gdbcmd.h.
7827 New variable maint_cplus_cmd_list.
7828 (cp_find_first_component): New function.
7829 (cp_entire_prefix_len, maint_cplus_command)
7830 (first_component_command, _initialize_cp_support): Ditto.
7831 * buildsym.c: Include cp-support.h.
7832 New variable using_list.
7833 (add_symbol_to_list): Check for anonymous namespaces.
7834 (finish_block): Set block's scope.
7835 (start_symtab): Initialize C++ namespace support.
7836 (end_symtab): Finalize C++ namespace support.
7837 * block.h: Add opaque declarations for structs
7838 block_namespace_info, using_direct, and obstack.
7839 Add declarations for block_set_scope and block_set_using.
7840 (struct block): Add 'language_specific' member.
7841 (BLOCK_NAMESPACE): New macro.
7842 * block.c: Include gdb_obstack.h and cp-support.h.
7843 (struct block_namespace_info): New struct.
7844 (block_set_scope): New function.
7845 (block_set_using, block_initialize_namespace): Ditto.
7846
7847 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7848
7849 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7850 (locate_base): Return early if there aren't any link map offsets.
7851 (svr4_solib_create_inferior_hook): Warn if shared library support
7852 is unavailable.
7853
7854 2003-04-14 David Carlton <carlton@math.stanford.edu>
7855
7856 * symtab.c (symbol_set_names): Add prefix when storing Java names
7857 in hash table. Fix for PR java/1039.
7858
7859 2003-04-14 David Carlton <carlton@math.stanford.edu>
7860
7861 * symtab.c (symbol_set_names): Rename 'name' arg to
7862 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7863 * symtab.h: Change 'name' argument in declaration of
7864 symbol_set_names to 'linkage_name'.
7865 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7866
7867 2003-04-14 Andrew Cagney <cagney@redhat.com>
7868
7869 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7870 return the fully sign-extended register value.
7871 (get_frame_pointer): Ditto.
7872 (mips_pop_frame): Initialize "proc_desc" after checking for a
7873 dummy frame.
7874
7875 2003-04-14 Andrew Cagney <cagney@redhat.com>
7876
7877 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7878 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7879 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7880 (mips_push_register): Delete function.
7881 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7882 PUSH_FP_REGNUM.
7883
7884 2003-04-14 Jim Blandy <jimb@redhat.com>
7885
7886 * symmisc.c: #include "gdb_regex.h".
7887 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7888 functions.
7889 * maint.c (maintenance_list_command): New function.
7890 (_initialize_maint_cmds): Register the above as commands.
7891 * symtab.h (maintenance_list_symtabs,
7892 maintenance_list_psymtabs): New declarations.
7893 * cli/cli-cmds.c (maintenancelistlist): New variable.
7894 (init_cmd_lists): Initialize it.
7895 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7896 * gdbcmd.h (maintenancelistlist): New declaration.
7897 * Makefile.in (symmisc.o): Update dependencies.
7898
7899 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7900
7901 * s390-nat.c: Include asm/types.h for addr_t.
7902
7903 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7904
7905 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7906 actually incoming type.
7907
7908 2003-04-13 Andrew Cagney <cagney@redhat.com>
7909
7910 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7911 get_next_frame and get_frame_saved_regs.
7912
7913 2003-04-13 Andrew Cagney <cagney@redhat.com>
7914
7915 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7916 of gdbarch_num_regs.
7917
7918 2003-04-13 Andrew Cagney <cagney@redhat.com>
7919
7920 * frame.h: Mention what replaced what in "struct frame_info".
7921 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7922 deprecated_update_frame_base_hack and
7923 deprecated_update_frame_pc_hack.
7924 * hppa-tdep.c: Ditto.
7925
7926 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7927
7928 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7929 to read_reg and update its comment. Remove regnum member.
7930 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7931 Don't call read_reg when setting in_reg. Call read_reg to get
7932 the frame base if it's in a register. Return the register number
7933 on the stack instead of in the context. Remove extra arguments
7934 to read_reg.
7935 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7936 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7937 the register number on the expression stack.
7938 (needs_frame_read_reg): Remove extra arguments.
7939
7940 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7941
7942 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7943 made non-static.
7944 (execute_stack_op): All callers updated.
7945 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7946 * dwarf2loc.c (find_location_expression): New function.
7947 (dwarf_expr_frame_base): Call it.
7948 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7949 (dwarf2_tracepoint_var_ref): New function, broken out from
7950 locexpr_tracepoint_var_ref.
7951 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7952 Make static.
7953 (loclist_read_variable, loclist_read_needs_frame): New functions.
7954 (loclist_describe_location, loclist_tracepoint_var_ref): New
7955 functions.
7956 (dwarf2_loclist_funcs): New struct location_funcs.
7957 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7958 (struct dwarf2_locexpr_baton): Add comments.
7959 (dwarf2_loclist_funcs): New extern.
7960 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7961 base_address and base_known.
7962 (dwarf_loc_buffer): New variable.
7963 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7964 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7965 (dwarf2_has_info): Initialize dwarf_loc_offset.
7966 (dwarf2_build_psymtabs): Read in .debug_loc.
7967 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7968 DWARF_LOC_SIZE.
7969 (psymtab_to_symtab_1): Likewise. Move base address calculation
7970 here, from...
7971 (dwarf2_get_pc_bounds): ... here. Use the base address from
7972 cu_header.
7973 (dwarf2_symbol_mark_computed): Handle location lists.
7974
7975 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7976
7977 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7978 if the linkage name demangled successfully.
7979
7980 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7981
7982 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7983 disassmbly_flavour): Removed.
7984
7985 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7986
7987 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7988
7989 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7990
7991 2003-04-12 Andrew Cagney <cagney@redhat.com>
7992
7993 * frame.h (struct frame_info): Move definition from here ...
7994 * frame.c (struct frame_info): ... to here.
7995
7996 2003-04-12 Andrew Cagney <cagney@redhat.com>
7997
7998 * gdbthread.h (save_infrun_state): Delete parameter
7999 "prev_func_start".
8000 (struct thread_info): Delete field "prev_func_start".
8001 (load_infrun_state): Ditto.
8002 * thread.c (load_infrun_state, save_infrun_state): Update.
8003 * infrun.c (prev_func_start): Delete variable.
8004 (context_switch, init_wait_for_inferior): Update.
8005 (stop_stepping, keep_going): Update.
8006
8007 2003-04-12 Andrew Cagney <cagney@redhat.com>
8008
8009 * gdbarch.sh: Add missing opaque declarations.
8010 * gdbarch.h: Regnerate.
8011 * symtab.h: Add missing opaque declarations.
8012 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8013 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8014 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8015 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8016 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8017 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8018 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8019 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8020 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8021 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8022 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8023 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8024 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8025
8026 2003-04-11 Andrew Cagney <cagney@redhat.com>
8027
8028 * frame.c (get_frame_id): Return this frame's "id".
8029 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8030 function start.
8031 (legacy_saved_regs_this_id): Replace function body with
8032 internal-error.
8033 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8034 FRAME_OBSTACK_ZALLOC.
8035 (create_new_frame): Mark the frame ID as valid.
8036
8037 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8038
8039 * Makefile.in (libbfd_h): Added missing setting.
8040 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8041 according to the selected ABI.
8042
8043 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8044
8045 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8046
8047 2003-04-11 Andrew Cagney <cagney@redhat.com>
8048
8049 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8050 SAVED_PC_AFTER_CALL.
8051 * gdbarch.h, gdbarch.c: Regenerate.
8052 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8053 * x86-64-tdep.c (x86_64_init_abi): Update.
8054 * vax-tdep.c (vax_gdbarch_init): Update.
8055 * v850-tdep.c (v850_gdbarch_init): Update.
8056 * sparc-tdep.c (sparc_gdbarch_init): Update.
8057 * sh-tdep.c (sh_gdbarch_init): Update.
8058 * s390-tdep.c (s390_gdbarch_init): Update.
8059 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8060 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8061 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8062 * mips-tdep.c (mips_gdbarch_init): Update.
8063 * mcore-tdep.c (mcore_gdbarch_init): Update.
8064 * m68k-tdep.c (m68k_gdbarch_init): Update.
8065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8066 * ia64-tdep.c (ia64_gdbarch_init): Update.
8067 (ia64_saved_pc_after_call): Update declaration.
8068 * i386ly-tdep.c (i386lynx_init_abi): Update.
8069 * i386-tdep.c (i386_gdbarch_init): Update.
8070 * hppa-tdep.c (hppa_gdbarch_init): Update.
8071 * h8300-tdep.c (h8300_gdbarch_init): Update.
8072 * frv-tdep.c (frv_gdbarch_init): Update.
8073 * cris-tdep.c (cris_gdbarch_init): Update.
8074 * avr-tdep.c (avr_gdbarch_init): Update.
8075 * arm-tdep.c (arm_gdbarch_init): Update.
8076 * alpha-tdep.c (alpha_gdbarch_init): Update.
8077 * ns32knbsd-nat.c (frame_num_args): Update.
8078 * ns32k-tdep.c (umax_frame_num_args): Update.
8079 * mips-tdep.c (mips_init_frame_pc_first): Update.
8080 * infrun.c (step_over_function): Update.
8081 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8082 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8083 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8084 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8085 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8086 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8087 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8088 * arch-utils.c (init_frame_pc_default): Update.
8089 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8090 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8091 declaration.
8092
8093 2003-04-11 Andrew Cagney <cagney@redhat.com>
8094
8095 * i387-tdep.c: Update copyright.
8096 (i387_to_double): Delete function.
8097 (double_to_i387): Delete function.
8098
8099 2003-04-10 Andrew Cagney <cagney@redhat.com>
8100
8101 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8102 frame's function's address. Simplify.
8103 (d10v_frame_unwind_cache): Check that the frame's function is
8104 non-zero.
8105
8106 2003-04-10 Jim Blandy <jimb@redhat.com>
8107
8108 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8109 call to set_gdbarch_deprecated_push_arguments.
8110
8111 2003-04-10 Andrew Cagney <cagney@redhat.com>
8112
8113 * frame.c (fprint_frame_id): New function.
8114 (fprint_frame_type, fprint_frame): New function.
8115 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8116 (create_sentinel_frame, get_frame_id): Ditto.
8117 (frame_id_p, frame_id_eq): Ditto.
8118 (frame_id_inner, create_new_frame): Ditto.
8119 (legacy_get_prev_frame, get_prev_frame): Ditto.
8120 (deprecated_update_frame_pc_hack): Ditto.
8121 (frame_register_unwind): Ditto.
8122 (deprecated_update_frame_base_hack): Ditto.
8123
8124 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8125
8126 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8127 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8128 frame_chain function.
8129 * Makefile.in: Add dependencies due to above change.
8130
8131 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8132
8133 * blockframe.c (legacy_frame_chain_valid): Move call to
8134 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8135 inside_entry_file.
8136
8137 2003-04-09 Andrew Cagney <cagney@redhat.com>
8138
8139 * frame.h (struct frame_id): Replace "pc" and "base" with
8140 "stack_addr" and "code_addr". Update comments.
8141 (frame_id_build): Update parameter names and comment.
8142 (struct frame_info): Replace "id_p" and "id" with "this_id".
8143 * dummy-frame.c (dummy_frame_this_id): Update.
8144 * breakpoint.c (print_one_breakpoint): Update.
8145 * frame.c (get_frame_id): Update.
8146 (get_frame_base, frame_id_build): Update.
8147 (create_sentinel_frame, legacy_get_prev_frame): Update.
8148 (deprecated_update_frame_base_hack): Update.
8149 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8150 (frame_id_inner): Ditto.
8151
8152 2003-04-09 Andrew Cagney <cagney@redhat.com>
8153
8154 * defs.h (gdb_print_host_address): Make "addr" parameter a
8155 pointer constant.
8156 * utils.c (gdb_print_host_address): Update.
8157
8158 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8159
8160 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8161 register number for R0 is 0.
8162
8163 2003-04-09 J. Brobecker <brobecker@gnat.com>
8164
8165 * frame.h (struct gdbarch): Add opaque structure definition
8166 to avoid a compilation warning on LynxOS 4.0.
8167
8168 2003-04-09 Andrew Cagney <cagney@redhat.com>
8169
8170 * frame.h (struct frame_info): Delete field "pc". Replace
8171 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8172 structure.
8173 * frame.c (frame_pc_unwind): Update.
8174 (create_sentinel_frame): Do not set "pc".
8175 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8176 (get_frame_pc): Call frame_pc_unwind.
8177 (deprecated_update_frame_pc_hack): Update.
8178 (create_new_frame): Use "pc" not "->pc".
8179
8180 2003-04-09 Andrew Cagney <cagney@redhat.com>
8181
8182 * frame.c (get_frame_id): Eliminate code updating "frame".
8183 (legacy_get_prev_frame): Ditto.
8184 (get_frame_base): Return id.base directly.
8185 (deprecated_update_frame_base_hack): Update "id.base".
8186 * frame.h (struct frame_info): Delete field "frame".
8187
8188 2003-04-09 Andrew Cagney <cagney@redhat.com>
8189
8190 * NEWS: Mention that the "Sequent family" is obsolete.
8191 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8192 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8193 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8194 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8195 * config/i386/tm-ptx4.h: Obsolete file.
8196 * config/i386/tm-ptx.h: Obsolete file.
8197 * symm-tdep.c: Obsolete file.
8198 * config/i386/symmetry.mt: Obsolete file.
8199 * config/i386/tm-symmetry.h: Obsolete file.
8200 * symm-nat.c: Obsolete file.
8201 * config/i386/nm-symmetry.h: Obsolete file.
8202 * config/i386/xm-symmetry.h: Obsolete file.
8203 * config/i386/symmetry.mh: Obsolete file.
8204 * config/i386/nm-ptx4.h: Obsolete file.
8205 * config/i386/ptx4.mh: Obsolete file.
8206 * config/i386/ptx.mt: Obsolete file.
8207 * config/i386/ptx.mh: Obsolete file.
8208 * config/i386/xm-ptx4.h: Obsolete file.
8209 * config/i386/xm-ptx.h: Obsolete file.
8210
8211 2003-04-09 Andrew Cagney <cagney@redhat.com>
8212
8213 Obsolete mips*-*-mach3*.
8214 * NEWS: Mention that mips*-*-mach3* is obsolete.
8215 * m3-nat.c: Obsolete file.
8216 * config/nm-m3.h: Obsolete file.
8217 * config/mips/tm-mipsm3.h: Obsolete file.
8218 * config/mips/mipsm3.mt: Obsolete file.
8219 * config/mips/mipsm3.mh: Obsolete file.
8220 * config/mips/xm-mipsm3.h: Obsolete file.
8221 * mipsm3-nat.c: Obsolete file.
8222 * configure.host: Obsolete mips-dec-mach3*.
8223 * configure.tgt: Obsolete mips*-*-mach3*.
8224
8225 2003-04-09 Andrew Cagney <cagney@redhat.com>
8226
8227 * doublest.h: Update copyright.
8228 (deprecated_store_floating, deprecated_extract_floating): Rename
8229 store_floating and extract_floating. Update comments.
8230 * doublest.c: Update copyright.
8231 (extract_floating_by_length): Replace extract_floating.
8232 (store_floating_by_length): Replace store_floating.
8233 (deprecated_extract_floating): New function.
8234 (deprecated_store_floating): New function.
8235 (extract_typed_floating): Call extract_floating_by_length.
8236 (store_typed_floating): Call store_floating_by_length.
8237 * x86-64-tdep.c (x86_64_store_return_value): Update.
8238 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8239 (sh64_extract_return_value): Update.
8240 (sh_sh4_register_convert_to_virtual): Update.
8241 (sh_sh64_register_convert_to_virtual): Update.
8242 (sh_sh4_register_convert_to_raw): Update.
8243 (sh_sh64_register_convert_to_raw): Update.
8244 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8245 (rs6000_register_convert_to_raw): Update.
8246 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8247 (ia64_register_convert_to_raw): Update.
8248 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8249 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8250 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8251 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8252 (alpha_register_convert_to_raw): Update.
8253
8254 2003-04-08 Andrew Cagney <cagney@redhat.com>
8255
8256 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8257 * gdbarch.h, gdbarch.c: Re-generate.
8258 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8259 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8260 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8261 conditionally, use frame_pc_unwind as an alternative. Add
8262 comments.
8263 * arch-utils.c (init_frame_pc_default): Only call
8264 SAVED_PC_AFTER_CALL when available.
8265
8266 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8267
8268 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8269 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8270 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8271 (start_remote): Ditto.
8272 (handle_inferior_event): Ditto.
8273 (save_inferior_status): Ditto.
8274 (restore_inferior_status): Ditto.
8275 * infcmd.c (attach_command): Ditto.
8276 * fork-child.c (startup_inferior): Ditto.
8277 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8278 * alpha-tdep.c (heuristic_proc_start): Ditto.
8279 * mips-tdep.c (heuristic_proc_start): Ditto.
8280 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8281 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8282 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8283 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8284 * remote-vx.c (vx_create_inferior): Ditto.
8285
8286 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8287
8288 * infrun.c (stop_soon_quietly): Make it an enum, to better
8289 override the default behavior of handle_inferior_event.
8290 (clear_proceed_status): Update uses of stop_soon_quietly to
8291 reflect that it is now an enum.
8292 (start_remote): Ditto.
8293 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8294 is set to handle the new GNU/Linux kernel behavior for
8295 attach/sigstop. Update uses of stop_soon_quietly.
8296 * inferior.h (enum stop_kind): New enum.
8297 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8298 Reset normal handle_inferior_event behavior, afterwards.
8299 * fork-child.c (startup_inferior): Update.
8300 * alpha-tdep.c (heuristic_proc_start): Update.
8301 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8302 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8303 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8304 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8305 * remote-vx.c (vx_create_inferior): Update.
8306 * mips-tdep.c (heuristic_proc_start): Update.
8307
8308 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8309
8310 * disasm.c (dump_insns): Move variables inside loop, or they will
8311 be freed more than once, causing wild memory corruptions.
8312 (gdb_disassembly): Look for the substring "-thread",
8313 instead of "-threads" in the target name, to make sure to find
8314 the 'multi-thread' target. Also, make sure we do the right thing
8315 with the "core" target.
8316
8317 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8318
8319 * mips-tdep.c (mips_print_fp_register): New function, created from
8320 do_fp_register_row(). Registers are now (also) printed as hex.
8321 Only one register is printed per row.
8322 (mips_print_register, do_fp_register_row): Print floating point
8323 registers with mips_print_fp_register().
8324
8325 2003-04-06 Andrew Cagney <cagney@redhat.com>
8326
8327 * valprint.h (inspect_it): Add extern declaration.
8328 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8329 (selectors_info, classes_info): Ditto.
8330 (find_objc_msgcall): Fix indentation.
8331 (objc_printstr): Delete extern declarations.
8332
8333 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8334
8335 2003-04-06 Andrew Cagney <cagney@redhat.com>
8336
8337 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8338 Update comment.
8339 * frame.c (legacy_saved_regs_this_id): Update.
8340 (legacy_get_prev_frame): Update.
8341 * xstormy16-tdep.c: Update comment.
8342 * sparc-tdep.c (sparc_frame_chain): Update comment.
8343 * blockframe.c (legacy_frame_chain_valid): Update.
8344
8345 2003-04-06 Andrew Cagney <cagney@redhat.com>
8346
8347 * valprint.c (val_print_type_code_int): Delete #ifdef
8348 PRINT_TYPELESS_INTEGER code.
8349
8350 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8351 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8352 multi-arch definition.
8353 * gdbarch.h: Re-generate.
8354
8355 2003-04-05 Andrew Cagney <cagney@redhat.com>
8356
8357 Eliminate FRAME_FIND_SAVED_REGS.
8358 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8359 Change FSR parameter to a pointer.
8360 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8361 Assume FSR parameter is a pointer.
8362 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8363 Make fsr a pointer.
8364 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8365 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8366 saved_regs a pointer.
8367 (hppa_frame_saved_pc): Ditto.
8368 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8369 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8370 pointer.
8371 (restore_pc_queue): Make fsr a pointer.
8372 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8373 (hppa_frame_chain): Make saved_regs a pointer, call
8374 hppa_frame_init_saved_regs.
8375 * sparc-tdep.c: Include "gdb_assert.h".
8376 (sparc_frame_find_saved_regs): Replace internal_error with
8377 gdb_assert.
8378 * remote-vxsparc.c (vx_read_register): Delete reference to
8379 FRAME_FIND_SAVED_REGS.
8380 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8381 * gdbarch.h: Regenerate.
8382 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8383 (deprecated_get_frame_saved_regs): Delete declaration.
8384 (struct frame_saved_regs): Delete definition.
8385 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8386 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8387 (hppa_frame_find_saved_regs): Delete declaration.
8388 (FRAME_FIND_SAVED_REGS): Delete macro.
8389 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8390 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8391 FRAME_FIND_SAVED_REGS in comment.
8392
8393 2003-04-05 Andrew Cagney <cagney@redhat.com>
8394
8395 * frame.c (frame_func_unwind, get_frame_func): New functions.
8396 * frame.h (get_frame_func, frame_func_unwind): Declare.
8397 (struct frame_info): Add field "prev_func" for caching the
8398 previous frame's function address.
8399 * arm-tdep.c (arm_frameless_function_invocation): Combine
8400 get_pc_function_start and get_frame_pc into get_frame_func.
8401 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8402 (sh64_nofp_frame_init_saved_regs): Ditto.
8403 * s390-tdep.c (s390_function_start): Ditto.
8404 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8405 (rs6000_frameless_function_invocation): Ditto.
8406 (rs6000_frame_saved_pc): Ditto.
8407 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8408 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8409 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8410 (i386_frame_init_saved_regs): Ditto.
8411 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8412 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8413 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8414 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8415 * blockframe.c (frameless_look_for_prologue): Ditto.
8416
8417 2003-04-05 Andrew Cagney <cagney@redhat.com>
8418
8419 * frame.c (legacy_get_prev_frame): Link prev to next at the
8420 function start. Update comments.
8421
8422 2003-04-05 Andrew Cagney <cagney@redhat.com>
8423
8424 * frame.c (get_frame_id): Update comment.
8425 (legacy_get_prev_frame): Update comment.
8426 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8427 * gdbarch.h: Regenerate.
8428 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8429 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8430
8431 2003-04-05 Andrew Cagney <cagney@redhat.com>
8432
8433 * stack.c (print_frame_info): Use get_frame_pc.
8434
8435 2003-04-04 Andrew Cagney <cagney@redhat.com>
8436
8437 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8438 the frame's type from the unwinder.
8439 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8440 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8441 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8442 (get_frame_base_address): Use get_frame_type.
8443 (get_frame_locals_address, get_frame_args_address): Ditto.
8444 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8445 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8446 (struct frame_info): Add comment explaining why the frame contains
8447 a "type" field.
8448 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8449 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8450 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8451 NORMAL_FRAME.
8452 * frame-unwind.h: Include "frame.h".
8453 (struct frame_unwind): Add "type" field.
8454 * Makefile.in (frame_unwind_h): Add $(frame_h).
8455
8456 2003-04-04 Andrew Cagney <cagney@redhat.com>
8457
8458 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8459 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8460 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8461 get_frame_base.
8462 (d10v_unwind_dummy_id): Use frame_id_build.
8463 * frame.c (find_frame_sal): Use get_frame_pc.
8464 (create_new_frame): Use deprecated_update_frame_pc_hack and
8465 deprecated_update_frame_base_hack.
8466 (create_sentinel_frame): Add comment about ->pc going away.
8467 (get_prev_frame): Add comment about ->pc going away.
8468 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8469 frame_id_build, deprecated_update_frame_pc_hack and
8470 deprecated_update_frame_base_hack.
8471 (select_frame): Use get_frame_pc.
8472 (legacy_saved_regs_this_id): Use frame_id_build.
8473
8474 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8475
8476 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8477 signed integer case.
8478 (classify_argument): Handle enumerations and references.
8479
8480 2003-04-04 Andrew Cagney <cagney@redhat.com>
8481
8482 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8483 ID to NULL.
8484
8485 2003-04-01 Adam Fedor <fedor@gnu.org>
8486
8487 * gdb/objc-lang.c (selectors_info): Replace calls to
8488 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8489 SYMBOL_NATURAL_NAME.
8490 (classes_info, find_methods): Likewise.
8491
8492 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8493
8494 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8495 ``mach'' to the value determined by bfd_default_set_arch_mach().
8496
8497 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8498
8499 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8500 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8501 (mi-cmd-file.o): Update dependencies.
8502
8503 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8504
8505 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8506 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8507
8508 2003-04-01 Adam Fedor <fedor@gnu.org>
8509
8510 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8511 * language.h (struct language_defn): Add la_demangle.
8512 (language_demangle): Declare.
8513 * language.c (language_demangle): New function.
8514 (unk_lang_demangle): Likewise.
8515 (unknown_language_defn, auto_language_defn, local_language_defn):
8516 Add ukn_lang_demangle.
8517 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8518 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8519 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8520 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8521 * jv-lang.c (java_demangle): New function
8522 (java_language_defn): Use it for la_demangle element.
8523 * objc-lang.c (objc_demangle): Add options argument
8524 (objc_language_defn): Use objc_demangle for la_demangle element.
8525 * maint.c (maintenance_demangle): Replace switch with
8526 call to language_demangle.
8527 * utils.c (fprintf_symbol_filtered): Likewise.
8528
8529 2003-04-01 Andrew Cagney <cagney@redhat.com>
8530
8531 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8532 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8533 PRINT_TYPELESS_INTEGER.
8534 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8535 PUSH_RETURN_ADDRESS.
8536
8537 2003-04-01 Andrew Cagney <cagney@redhat.com>
8538
8539 * Makefile.in (d10v-tdep.o): Update dependencies.
8540 * d10v-tdep.c: Include "frame-base.h".
8541 (d10v_frame_unwind): Make constant.
8542 (d10v_frame_base_address): New function.
8543 (d10v_frame_base): New variable.
8544 (d10v_gdbarch_init): Set frame_base default.
8545 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8546 comment for base.
8547 (d10v_frame_unwind_cache): Set and use "prev_sp".
8548 (d10v_frame_this_id): Use the previous frame's inner most stack
8549 address and this frame's func address for the frame ID. Use
8550 frame_id_build. Don't analyze beyond the current instruction.
8551
8552 2003-04-01 Andrew Cagney <cagney@redhat.com>
8553
8554 * frame.h (get_frame_locals_address, get_frame_args_address):
8555 Refer to the base address, instead of the address of the first
8556 local or parameter.
8557
8558 2003-04-01 Andrew Cagney <cagney@redhat.com>
8559
8560 Add frame debug info addresses:
8561 * frame-base.c: New file.
8562 * frame-base.h: New file.
8563 * frame.h (struct frame_base): Add opaque declaration.
8564 (get_frame_base): Update comment.
8565 (get_frame_base_address): Declare.
8566 (get_frame_locals_address): Declare.
8567 (get_frame_args_address): Declare.
8568 (struct frame_info): Add "base" and "base_cache". Update
8569 comments on the unwinder.
8570 * frame.c: Include "frame-base.h".
8571 (get_frame_locals_address): New function.
8572 (get_frame_base_address): New function.
8573 (get_frame_args_address): New function.
8574 * findvar.c (read_var_value): Use get_frame_locals_address and
8575 get_frame_args_address.
8576 * stack.c (frame_info): Use get_frame_locals_address and
8577 get_frame_args_address.
8578 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8579 moved to "frame-base.c".
8580 * printcmd.c (print_frame_nameless_args): Ditto.
8581 * symtab.h (address_class): Update comments.
8582 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8583 get_frame_base_address.
8584 * dwarf2expr.c (execute_stack_op): Ditto.
8585 * Makefile.in (frame_base_h): Define.
8586 (frame.o): Update dependencies.
8587 (frame-base.o): Add dependencies.
8588 (SFILES): Add frame-base.c.
8589 (COMMON_OBS): Add frame-base.o.
8590
8591 2003-04-01 Andrew Cagney <cagney@redhat.com>
8592
8593 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8594 CALL_DUMMY_LENGTH): Ditto.
8595 * gdbarch.c: Re-generate.
8596 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8597 (CALL_DUMMY_LENGTH): Delete macro.
8598 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8599 * arm-tdep.c (arm_gdbarch_init): Ditto.
8600 * avr-tdep.c (avr_gdbarch_init): Ditto.
8601 * cris-tdep.c (cris_gdbarch_init): Ditto.
8602 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8603 * frv-tdep.c (frv_gdbarch_init): Ditto.
8604 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8605 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8606 * i386-tdep.c (i386_gdbarch_init): Ditto.
8607 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8609 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8610 * mips-tdep.c (mips_gdbarch_init): Ditto.
8611 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8612 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8613 * s390-tdep.c (s390_gdbarch_init): Ditto.
8614 * sh-tdep.c (sh_gdbarch_init): Ditto.
8615 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8616 * v850-tdep.c (v850_gdbarch_init): Ditto.
8617 * vax-tdep.c (vax_gdbarch_init): Ditto.
8618 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8619
8620 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8621
8622 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8623
8624 2003-04-01 Andrew Cagney <cagney@redhat.com>
8625
8626 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8627 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8628 * gdbarch.h, gdbarch.c: Re-generate.
8629 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8630 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8631 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8632 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8633 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8634 * infcmd.c (run_stack_dummy): Simplify assuming
8635 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8636 * infrun.c (handle_inferior_event): Ditto.
8637 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8638 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8639 * arm-tdep.c (arm_gdbarch_init): Ditto.
8640 * avr-tdep.c (avr_gdbarch_init): Ditto.
8641 * cris-tdep.c (cris_gdbarch_init): Ditto.
8642 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8643 * frv-tdep.c (frv_gdbarch_init): Ditto.
8644 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8645 * i386-tdep.c (i386_gdbarch_init): Ditto.
8646 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8647 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8648 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8649 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8650 * mips-tdep.c (mips_gdbarch_init): Ditto.
8651 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8652 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8653 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8654 * s390-tdep.c (s390_gdbarch_init): Ditto.
8655 * sh-tdep.c (sh_gdbarch_init): Ditto.
8656 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8657 * v850-tdep.c (v850_gdbarch_init): Ditto.
8658 * vax-tdep.c (vax_gdbarch_init): Ditto.
8659 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8660
8661 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8662
8663 * symfile.c (symfile_relocate_debug_section): Update call to
8664 bfd_simple_get_relocated_section_contents.
8665
8666 2003-03-31 Andrew Cagney <cagney@redhat.com>
8667
8668 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8669 * gdbarch.h, gdbarch.c: Regenerate.
8670 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8671 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8672 available.
8673 * frame.h (generic_fix_call_dummy): Delete declaration.
8674 * dummy-frame.h: Update comment.
8675 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8676 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8677 fix_call_dummy.
8678 * sh-tdep.c (sh_gdbarch_init): Ditto.
8679 * s390-tdep.c (s390_gdbarch_init): Ditto.
8680 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8681 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8682 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8683 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8684 * i386-tdep.c (i386_gdbarch_init): Ditto.
8685 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8686 * frv-tdep.c (frv_gdbarch_init): Ditto.
8687 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8688 * cris-tdep.c (cris_gdbarch_init): Ditto.
8689 * avr-tdep.c (avr_gdbarch_init): Ditto.
8690 * arm-tdep.c (arm_gdbarch_init): Ditto.
8691
8692 2003-03-31 J. Brobecker <brobecker@gnat.com>
8693
8694 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8695 (INIT_FRAME_AP): Likewise.
8696 (EXTRA_FRAME_INFO): Likewise.
8697
8698 2003-03-31 Andrew Cagney <cagney@redhat.com>
8699
8700 * gdbarch.sh: Include "symfile.h".
8701 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8702 * gdbarch.h, gdbarch.c: Re-generate.
8703 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8704 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8705 call_dummy_address, the default is at entry_point_address.
8706 * v850-tdep.c (v850_gdbarch_init): Ditto.
8707 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8708 * sh-tdep.c (sh_gdbarch_init): Ditto.
8709 * s390-tdep.c (s390_gdbarch_init): Ditto.
8710 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8711 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8712 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8713 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8714 * i386-tdep.c (i386_gdbarch_init): Ditto.
8715 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8716 * frv-tdep.c (frv_gdbarch_init): Ditto.
8717 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8718 * cris-tdep.c (cris_gdbarch_init): Ditto.
8719 * arm-tdep.c (arm_gdbarch_init): Ditto.
8720
8721 2003-03-31 Andrew Cagney <cagney@redhat.com>
8722
8723 * gdbarch.sh (CALL_DUMMY_P): Delete.
8724 * gdbarch.h, gdbarch.c: Re-generate.
8725 * inferior.h (CALL_DUMMY_P): Delete macro.
8726 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8727 * vax-tdep.c (vax_gdbarch_init): Update.
8728 * v850-tdep.c (v850_gdbarch_init): Update.
8729 * sparc-tdep.c (sparc_gdbarch_init): Update.
8730 * sh-tdep.c (sh_gdbarch_init): Update.
8731 * s390-tdep.c (s390_gdbarch_init): Update.
8732 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8733 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8734 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8735 * mips-tdep.c (mips_gdbarch_init): Update.
8736 * mcore-tdep.c (mcore_gdbarch_init): Update.
8737 * m68k-tdep.c (m68k_gdbarch_init): Update.
8738 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8739 * ia64-tdep.c (ia64_gdbarch_init): Update.
8740 * i386-tdep.c (i386_gdbarch_init): Update.
8741 * h8300-tdep.c (h8300_gdbarch_init): Update.
8742 * frv-tdep.c (frv_gdbarch_init): Update.
8743 * d10v-tdep.c (d10v_gdbarch_init): Update.
8744 * cris-tdep.c (cris_gdbarch_init): Update.
8745 * breakpoint.c (deprecated_frame_in_dummy): Update.
8746 * avr-tdep.c (avr_gdbarch_init): Update.
8747 * alpha-tdep.c (alpha_gdbarch_init): Update.
8748 * arm-tdep.c (arm_gdbarch_init): Update.
8749 * dummy-frame.c (dummy_frame_this_id): Update comments.
8750 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8751 * frame.c (legacy_get_prev_frame): Ditto.
8752 * valops.c (call_function_by_hand): Delete function.
8753 (hand_function_call): Rename to call_function_by_hand
8754
8755 2003-03-30 Andrew Cagney <cagney@redhat.com>
8756
8757 2002-11-10 Klee Dienes <kdienes@apple.com>
8758 * value.h (struct value): Update comment.
8759
8760 2003-03-30 Andrew Cagney <cagney@redhat.com>
8761
8762 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8763 D10V_FP_REGNUM.
8764 (d10v_gdbarch_init): Do not set fp_regnum.
8765
8766 * frame.c (get_frame_base): Force ID initialization.
8767 (get_prev_frame): Move computation of the frame ID from here ...
8768 (get_frame_id): ... to here.
8769 (legacy_get_prev_frame): Mark the frame ID as valid.
8770 * frame.h (struct frame_info): Add field "id_p".
8771
8772 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8773
8774 * i386-tdep.c (i386_store_struct_return): Removed.
8775 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8776
8777 2003-03-30 Andrew Cagney <cagney@redhat.com>
8778
8779 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8780 * gdbarch.h, gdbarch.c: Regenerate.
8781 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8782 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8783 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8784 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8785 * i386-tdep.c (i386_gdbarch_init): Ditto.
8786 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8787 * cris-tdep.c (cris_gdbarch_init): Ditto.
8788 * vax-tdep.c (vax_gdbarch_init): Ditto.
8789 * s390-tdep.c (s390_gdbarch_init): Ditto.
8790 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8791 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8792 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8793 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8794 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8795 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8796 * sparc-tdep.c (sparc_gdbarch_init): Update.
8797 * sh-tdep.c (sh_gdbarch_init): Update.
8798 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8799 * mips-tdep.c (mips_gdbarch_init): Update.
8800 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8801 * ia64-tdep.c (ia64_gdbarch_init): Update.
8802 * frv-tdep.c (frv_gdbarch_init): Update.
8803 * avr-tdep.c (avr_gdbarch_init): Update.
8804 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8805 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8806 instead of when push_dummy_call is not available.
8807
8808 2003-03-30 Andrew Cagney <cagney@redhat.com>
8809
8810 * infttrace.c: Include "gdbthread.h".
8811 (parent_attach_all): Fix function signature.
8812 (call_ptrace): Update call.
8813 * Makefile.in (infttrace.o): Update dependencies.
8814
8815 2003-03-30 Andrew Cagney <cagney@redhat.com>
8816
8817 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8818 PUSH_RETURN_ADDRESS.
8819 * gdbarch.h, gdbarch.c: Regenerate.
8820 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8821 * x86-64-tdep.c (x86_64_init_abi): Update.
8822 * v850-tdep.c (v850_gdbarch_init): Update.
8823 * sparc-tdep.c (sparc_gdbarch_init): Update.
8824 * sh-tdep.c (sh_gdbarch_init): Update.
8825 * s390-tdep.c (s390_gdbarch_init): Update.
8826 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8827 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8828 * mips-tdep.c (mips_gdbarch_init): Update.
8829 * mcore-tdep.c (mcore_gdbarch_init): Update.
8830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8831 * ia64-tdep.c (ia64_gdbarch_init): Update.
8832 * i386-tdep.c (i386_gdbarch_init): Update.
8833 * h8300-tdep.c (h8300_gdbarch_init): Update.
8834 * frv-tdep.c (frv_gdbarch_init): Update.
8835 * cris-tdep.c (cris_gdbarch_init): Update.
8836 * avr-tdep.c (avr_gdbarch_init): Update.
8837 * arm-tdep.c (arm_gdbarch_init): Update.
8838 * valops.c (hand_function_call): Update.
8839
8840 2003-03-29 Andrew Cagney <cagney@redhat.com>
8841
8842 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8843 sizeof_call_dummy_words.
8844 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8845 define.
8846 * gdbarch.h: Regenerate.
8847
8848 2003-03-29 Andrew Cagney <cagney@redhat.com>
8849
8850 * infttrace.h: New file.
8851 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8852 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8853 (hpread_read_doc_function_type): Detect an initialized type1.
8854 (hpread_quick_traverse): Initialize mod_name_string.
8855 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8856 (som_solib_get_solib_by_pc): Declare.
8857 (so_lib_thread_start_addr): Declare.
8858 (no_shared_libraries): Declare.
8859 * somread.c (init_import_symbols): Make static. Add forward
8860 declaration.
8861 * config/pa/nm-hppah.h: Include "infttrace.h" for
8862 parent_attach_all.
8863 (hppa_insert_hw_watchpoint): Declare.
8864 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8865 * hppah-nat.c: Include "gdb_string.h".
8866 (parent_attach_all): Delete extern declaration, moved to
8867 "infttrace.h".
8868 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8869 int.
8870 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8871 * Makefile.in (infttrace_h): Define.
8872 (hpread.o): Update dependencies.
8873 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8874 * hppa-hpux-tdep.c: Include "gdb_string.h".
8875 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8876 * infrun.c (handle_inferior_event): Always initialize
8877 stepped_after_stopped_by_watchpoint. Add default and remove
8878 fallthrough in switch statement.
8879 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8880 parameter to int.
8881 (hppa_remove_hw_watchpoint): Ditto.
8882
8883 2003-03-29 Andrew Cagney <cagney@redhat.com>
8884
8885 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8886 offset.
8887
8888 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8889
8890 * arm-tdep.c (arm_push_arguments): Delete.
8891 (struct stack_item): New type.
8892 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8893 (arm_store_struct_return): Delte.
8894 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8895 arm_push_arguments or arm_store_struct_return.
8896
8897 2003-03-28 Andrew Cagney <cagney@redhat.com>
8898
8899 * Makefile.in (d10v-tdep.o): Update dependencies.
8900 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8901 * d10v-tdep.c: Include "remote.h".
8902 (target_resume_hook): Delete extern declaration.
8903 (target_wait_loop_hook): Ditto.
8904 (tdisassemble_command): Eliminate assignment in "if" conditional.
8905 (d10v_ts2_register_sim_regno): Eliminate call to
8906 legacy_register_sim_regno.
8907 (d10v_ts3_register_sim_regno): Ditto.
8908
8909 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8910
8911 * thread.c: Reindented.
8912 * lin-lwp.c: Ditto.
8913 * linux-proc.c: Ditto.
8914
8915 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8916
8917 * MAINTAINERS (write after approval): Add myself.
8918
8919 2003-03-27 Theodore A. Roth <troth@openavr.org>
8920
8921 * objc-exp.y: Add missing semi-colons.
8922
8923 2003-03-27 Andrew Cagney <cagney@redhat.com>
8924
8925 * regcache.c (write_sp): Delete function and references.
8926 * inferior.h (write_sp): Delete declaration.
8927 * valops.c (hand_function_call): Replace write_sp with
8928 TARGET_WRITE_SP.
8929 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8930 (sparc_pop_frame): Ditto.
8931
8932 2003-03-27 Andrew Cagney <cagney@redhat.com>
8933
8934 * NEWS: Mention removal of support for hppa*-*-bsd* and
8935 hppa*-*-osf* natives, and hppa*-*-pro* target.
8936 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8937 * config/pa/xm-pa.h: Obsolete file.
8938 * config/pa/xm-hppab.h: Obsolete file.
8939 * config/pa/nm-hppab.h: Obsolete file.
8940 * config/pa/tm-hppab.h: Obsolete file.
8941 * config/pa/tm-hppao.h: Obsolete file.
8942 * config/pa/nm-hppao.h: Obsolete file.
8943 * config/pa/tm-pro.h: Obsolete file.
8944 * config/pa/hppaosf.mt: Obsolete file.
8945 * config/pa/hppaosf.mh: Obsolete file.
8946 * config/pa/hppapro.mt: Obsolete file.
8947 * config/pa/hppabsd.mt: Obsolete file.
8948 * config/pa/hppabsd.mh: Obsolete file.
8949 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8950 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8951 hppa*-*-osf*.
8952
8953 2003-03-27 Andrew Cagney <cagney@redhat.com>
8954
8955 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8956 push_arguments. Don't set push_return_address or write_sp.
8957 (d10v_push_dummy_call): Replace d10v_push_arguments.
8958 (d10v_push_return_address, d10v_write_sp): Delete function,
8959 handled by push_dummy_call.
8960
8961 2003-03-26 Andrew Cagney <cagney@redhat.com>
8962
8963 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8964 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8965 regcache and dummy_addr parameters.
8966 * gdbarch.h, gdbarch.c: Re-generate.
8967 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8968 available; assume it will handle stack alignment and return
8969 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8970 legacy_push_arguments.
8971 (legacy_push_arguments): Rename default_push_arguments.
8972 * value.h (legacy_push_arguments): Rename default_push_arguments.
8973 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8974 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8975 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8976 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8977 * config/i386/tm-symmetry.h: Update.
8978 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8979 * x86-64-tdep.c (x86_64_init_abi): Update.
8980 * v850-tdep.c (v850_gdbarch_init): Update.
8981 * sparc-tdep.c (sparc_gdbarch_init): Update.
8982 * sh-tdep.c (sh_gdbarch_init): Update.
8983 * s390-tdep.c (s390_gdbarch_init): Update.
8984 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8985 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8986 * mips-tdep.c (mips_gdbarch_init): Update.
8987 * mcore-tdep.c (mcore_gdbarch_init): Update.
8988 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8989 * ia64-tdep.c (ia64_gdbarch_init): Update.
8990 * i386-tdep.c (i386_gdbarch_init): Update.
8991 * hppa-tdep.c (hppa_gdbarch_init): Update.
8992 * h8300-tdep.c (h8300_gdbarch_init): Update.
8993 * frv-tdep.c (frv_gdbarch_init): Update.
8994 * d10v-tdep.c (d10v_gdbarch_init): Update.
8995 * cris-tdep.c (cris_gdbarch_init): Update.
8996 * avr-tdep.c (avr_gdbarch_init): Update.
8997 * arm-tdep.c (arm_gdbarch_init): Update.
8998 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8999 * alpha-tdep.c (alpha_gdbarch_init): Update.
9000
9001 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9002
9003 * signals/signals.c (do_target_signal_to_host): Correct realtime
9004 signal range test.
9005
9006 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9007
9008 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9009 (struct sal_chain, map_catch_names): Remove.
9010 (catch_exception_command_1): Don't call
9011 handle_gnu_4_16_catch_command.
9012
9013 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9014
9015 From Mark Dettinger <dettinge@de.ibm.com>:
9016 * dwarf2cfi.c (read_2u): Increment pointer by two.
9017
9018 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9019
9020 * signals/signals.c: Fix typos in last change.
9021
9022 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9023
9024 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9025 not already defined. Use __SIGRTMIN if available.
9026 (target_signal_from_host): Remove SIGRTMIN block.
9027 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9028 the signal is within the realtime range.
9029
9030 2003-03-25 Adam Fedor <fedor@gnu.org>
9031
9032 * Makefile.in (infrun.o): Add $(language_h)
9033 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9034 for language specific trampolines.
9035 * language.h (struct language_defn): Add skip_trampoline.
9036 (skip_language_trampoline): Declare.
9037 * language.c (unk_lang_trampoline, skip_language_trampoline):
9038 New functions.
9039 (unknown_language_defn, auto_language_defn, local_language_defn):
9040 Add ukn_lang_trampoline.
9041 * ada-lang.c (ada_language_defn): Add NULL for language
9042 specific skip_trampoline.
9043 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9044 scm-lang.c: Likewise.
9045 * objc-lang.c (objc_skip_trampoline): New function.
9046 (objc_language_defn): Add objc_skip_trampoline.
9047
9048 2003-03-25 Andrew Cagney <cagney@redhat.com>
9049
9050 * frame.c (get_prev_frame): Delay validating a frame's ID -
9051 non-NULL, didn't go backwards - until an attempt to unwind it to
9052 the previous frame.
9053
9054 2003-03-25 Andrew Cagney <cagney@redhat.com>
9055
9056 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9057 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9058 * gdbarch.h, gdbarch.c: Re-generate.
9059 * config/sparc/tm-sparc.h
9060 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9061 * sparc-tdep.c (sparc_gdbarch_init): Set
9062 deprecated_extra_stack_alignment_needed.
9063 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9064 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9065 extra_stack_alignment_needed.
9066 * v850-tdep.c (v850_gdbarch_init): Ditto.
9067 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9068 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9069 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9070 * cris-tdep.c (cris_gdbarch_init): Ditto.
9071 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9073
9074 2003-03-25 Andrew Cagney <cagney@redhat.com>
9075
9076 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9077 STORE_STRUCT_RETURN.
9078 * gdbarch.h, gdbarch.c: Regenerate.
9079 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9080 (d10v_push_arguments): Set the struct return register.
9081 (d10v_gdbarch_init): Update.
9082 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9083 * x86-64-tdep.c (x86_64_init_abi): Update.
9084 * vax-tdep.c (vax_gdbarch_init): Update.
9085 * v850-tdep.c (v850_gdbarch_init): Update.
9086 * sparc-tdep.c (sparc_gdbarch_init): Update.
9087 * sh-tdep.c (sh_gdbarch_init): Update.
9088 * s390-tdep.c (s390_gdbarch_init): Update.
9089 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9090 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9091 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9092 * mips-tdep.c (mips_gdbarch_init): Update.
9093 * mcore-tdep.c (mcore_gdbarch_init): Update.
9094 * m68k-tdep.c (m68k_gdbarch_init): Update.
9095 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9096 * ia64-tdep.c (ia64_gdbarch_init): Update.
9097 * i386-tdep.c (i386_gdbarch_init): Update.
9098 * hppa-tdep.c (hppa_gdbarch_init): Update.
9099 * h8300-tdep.c (h8300_gdbarch_init): Update.
9100 * frv-tdep.c (frv_gdbarch_init): Update.
9101 * cris-tdep.c (cris_gdbarch_init): Update.
9102 * avr-tdep.c (avr_gdbarch_init): Update.
9103 * arm-tdep.c (arm_gdbarch_init): Update.
9104 * alpha-tdep.c (alpha_gdbarch_init): Update.
9105
9106 2003-03-25 Andrew Cagney <cagney@redhat.com>
9107
9108 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9109 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9110 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9111 * gdbarch.h, gdbarch.c: Regenerate.
9112 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9113 call_dummy_stack_adjust_p.
9114 * vax-tdep.c (vax_gdbarch_init): Ditto.
9115 * v850-tdep.c (v850_gdbarch_init): Ditto.
9116 * sh-tdep.c (sh_gdbarch_init): Ditto.
9117 * s390-tdep.c (s390_gdbarch_init): Ditto.
9118 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9119 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9120 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9121 * mips-tdep.c (mips_gdbarch_init): Ditto.
9122 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9123 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9124 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9125 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9126 * i386-tdep.c (i386_gdbarch_init): Ditto.
9127 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9128 * frv-tdep.c (frv_gdbarch_init): Ditto.
9129 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9130 * cris-tdep.c (cris_gdbarch_init): Ditto.
9131 * avr-tdep.c (avr_gdbarch_init): Ditto.
9132 * arm-tdep.c (arm_gdbarch_init): Ditto.
9133 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9134 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9135 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9136 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9137 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9138 call_dummy_stack_adjust_p.
9139 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9140 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9141 * sparc-tdep.c (sparc32_push_arguments): Update.
9142 * valops.c (hand_function_call): Update.
9143
9144 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9145
9146 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9147 set_gdbarch_char_signed.
9148
9149 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9150
9151 PR cli/548
9152 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9153
9154 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9155
9156 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9157 (_initialize_arm_tdep): Don't set tm_print_insn.
9158
9159 2003-03-24 Adam Fedor <fedor@gnu.org>
9160
9161 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9162 * objc-lang.h: Add multiple inclusion protection.
9163 (start_msglist, add_msglist, end_msglist): Additional declarations.
9164
9165 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9166
9167 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9168 value was renamed to ARM_FLOAT_SOFT_FPA.
9169
9170 2003-03-23 Andrew Cagney <cagney@redhat.com>
9171
9172 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9173 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9174 * gdbarch.h, gdbarch.c: Regenerate.
9175 * valops.c (hand_function_call): Update.
9176 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9177 * frame.c (legacy_saved_regs_this_id): Update.
9178 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9179 * dummy-frame.h: Update.
9180 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9181 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9182 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9183 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9184 * config/m68k/tm-sun3.h: Update.
9185 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9186 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9187 * x86-64-tdep.c (x86_64_init_abi): Update.
9188 * vax-tdep.c (vax_gdbarch_init): Update.
9189 * v850-tdep.c (v850_gdbarch_init): Update.
9190 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9191 * sh-tdep.c (sh_gdbarch_init): Update.
9192 * s390-tdep.c (s390_gdbarch_init): Update.
9193 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9194 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9195 (frame_get_saved_regs): Update.
9196 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9197 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9198 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9199 * mips-tdep.c (mips_gdbarch_init): Update.
9200 * mcore-tdep.c (mcore_gdbarch_init): Update.
9201 * m68k-tdep.c (m68k_gdbarch_init): Update.
9202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9203 * ia64-tdep.c (ia64_gdbarch_init): Update.
9204 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9205 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9206 (i386_interix_back_one_frame): Update.
9207 * hppa-tdep.c (hppa_gdbarch_init): Update.
9208 (hppa_init_extra_frame_info): Update.
9209 * h8300-tdep.c (h8300_gdbarch_init): Update.
9210 * frv-tdep.c (frv_gdbarch_init): Update.
9211 * cris-tdep.c (cris_gdbarch_init): Update.
9212 * avr-tdep.c (avr_gdbarch_init): Update.
9213 * arm-tdep.c (arm_gdbarch_init): Update.
9214 * alpha-tdep.c (alpha_gdbarch_init): Update.
9215
9216 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9217
9218 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9219 (arm_get_fp_model): Declare.
9220 * arm-tdep.c (fp_model_strings): New string array.
9221 (arm_fp_model, current_fp_model): New variables.
9222 (arm_get_fp_model): New function.
9223 (arm_set_fp): New function.
9224 (set_fp_model_sfunc): New function.
9225 (show_fp_model): New function.
9226 (_initialize_arm_tdep): Add new command to set/show the FPU.
9227 (arm_extract_return_value): Use arm_get_fp_model.
9228 (arm_store_return_value): Likewise.
9229 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9230 to initialize the floating-point data types.
9231 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9232 model is FPA.
9233
9234 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9235
9236 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9237 the current setting of each value.
9238 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9239 new_set and new_show. Use add_setshow_cmd_full and
9240 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9241 commands and add new version as subcommands of "set/show arm".
9242
9243 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9244
9245 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9246 (set_arm_command, show_arm_command): New functions.
9247 (_initialize_arm_tdep): Add them.
9248 (num_disassembly_options): Renamed from num_flavor_options.
9249 (valid_disassembly_styles): Renamed from valid_flavors.
9250 (disassembly_style): Renamed from disassembly_flavor.
9251 (set_disassembly_style_sfunc): Renamed from
9252 set_disassembly_flavor_sfunc.
9253 (set_disassembly_style): Renamed from set_disassembly_flavor.
9254 (arm_othernames): Updated.
9255 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9256 command. Add "set/show arm disassembly" commands. Deprecate
9257 "othernames" command.
9258
9259 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9260
9261 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9262 (arm-tdep.o): Depend on elf_arm_h.
9263
9264 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9265
9266 * Makefile.in (coff_internal_h): Define.
9267 (arm-tdep.o): Update dependencies.
9268
9269 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9270
9271 * arm-tdep.c (prologue_cache): Delete.
9272 (check_prologue_cache, save_prologue_cache): Delete.
9273 (arm_scan_prologue): Don't check or update the prologue_cache.
9274 (arm_gdb_arch_init): Don't initialize it.
9275 (_initialize_arm_tdep): Likewise.
9276
9277 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9278
9279 * MAINTAINERS (tui): Maintainer of tui code.
9280
9281 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9282
9283 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9284 (i386-cygwin-tdep.o): Add dependencies.
9285 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9286 * i386-cygwin-tdep.c: New file.
9287 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9288 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9289
9290 2003-03-20 Andrew Cagney <cagney@redhat.com>
9291
9292 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9293 (handle_inferior_event): Remove code calling
9294 DYNAMIC_TRAMPOLINE_NEXTPC.
9295
9296 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9297 already has a full path.
9298
9299 * main.c (gdb_main): Return 1.
9300 (captured_main): Call error to report an invalid interpreter.
9301
9302 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9303 * alpha-osf1-tdep.c: Include "gdb_string.h".
9304
9305 2003-03-19 J. Brobecker <brobecker@gnat.com>
9306
9307 Continuing work to convert the hppa targets to multiarch partial.
9308
9309 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9310 method, now that hppa_push_dummy_frame has a conformant prototype.
9311 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9312 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9313 for the switch to multiarch partial.
9314
9315 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9316
9317 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9318 when iss is issNull.
9319
9320 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9321
9322 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9323 NUM_REGS bounds check.
9324
9325 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9326
9327 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9328 * mips-tdep.c (gdb_assert.h): Include.
9329 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9330 (mips_register_name): Handle integer registers explicitly. Add
9331 bounds checking.
9332 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9333 (mips_lsi33k_reg_names): Don't list integer registers; they're
9334 handled by mips_register_name() now.
9335 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9336 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9337 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9338 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9339 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9340
9341 2003-03-18 Andrew Cagney <cagney@redhat.com>
9342
9343 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9344 a void pointer.
9345 * gdbtypes.h (print_scalar_formatted): Update declaration.
9346 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9347
9348 2003-03-18 J. Brobecker <brobecker@gnat.com>
9349
9350 * infrun.c (observer.h): Add #include.
9351 (normal_stop): Add call to observer_notify_normal_stop.
9352 * Makefile.in (infrun.o): Add dependency on observer.h.
9353
9354 2003-03-18 J. Brobecker <brobecker@gnat.com>
9355
9356 Continuing work to convert the hppa targets to multiarch partial.
9357 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9358 parameter. Reformat comment.
9359 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9360 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9361 to match new profile.
9362
9363 2003-03-18 J. Brobecker <brobecker@gnat.com>
9364
9365 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9366 appear to be working in any case.
9367
9368 2003-03-18 J. Brobecker <brobecker@gnat.com>
9369
9370 * observer.c (observer_test_first_observer): New static variable.
9371 (observer_test_second_observer): Likewise.
9372 (observer_test_third_observer): Likewise.
9373 (observer_test_first_notification_function): New static function.
9374 (observer_test_second_notification_function): Likewise.
9375 (observer_test_third_notification_function): Likewise.
9376
9377 2003-03-17 J. Brobecker <brobecker@gnat.com>
9378
9379 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9380 * somsolib.c (gdb_assert.h): Likewise.
9381 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9382 (somsolib.o): Likewise.
9383
9384 2003-03-17 Andrew Cagney <cagney@redhat.com>
9385
9386 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9387 BFD. Simplify setting of di.endian.
9388
9389 2003-03-17 Andrew Cagney <cagney@redhat.com>
9390
9391 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9392 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9393
9394 From Elena Zannoni <ezannoni@redhat.com>
9395 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9396 vector and floating-point parameters.
9397 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9398 convention.
9399 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9400
9401 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9402
9403 * MAINTAINERS: Remove my name from several maintainership roles.
9404
9405 2003-03-17 Andrew Cagney <cagney@redhat.com>
9406
9407 Fix frame off-by-one bug.
9408 * frame-unwind.h (frame_this_id_ftype): Replace
9409 frame_unwind_id_ftype.
9410 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9411 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9412 with "prev_register".
9413 * frame-unwind.c (frame_unwind_find_by_pc): Return
9414 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9415 comment.
9416 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9417 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9418 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9419 (dummy_frame_unwind): Update.
9420 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9421 sentinel_frame_register_unwind.
9422 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9423 (sentinel_frame_unwinder): Update.
9424 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9425 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9426 * frame.c (create_sentinel_frame): Update. Initialize
9427 "prologue_cache" instead of "unwind_cache".
9428 (frame_register_unwind): Call this frame's prev_register with the
9429 next frame and this frame's prologue cache.
9430 (get_prev_frame): Simplify. Always call prev frame's this_id with
9431 this frame and prev frame's prologue cache. Document that this
9432 call is shifted one to the left when compared to the
9433 frame_register_unwind call.
9434 (legacy_saved_regs_prev_register): Replace
9435 frame_saved_regs_register_unwind.
9436 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9437 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9438 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9439 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9440 (d10v_frame_unwind): Update.
9441 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9442 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9443 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9444 "saved_regs" with "this_saved_regs".
9445
9446 2003-03-16 Andrew Cagney <cagney@redhat.com>
9447
9448 * frame.c (frame_pop): Don't call target_store_registers. Fix
9449 problem reported by Mark Kettenis.
9450
9451 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9452
9453 * i386-tdep.c (i386_register_type): Renamed from
9454 i386_register_virtual_type. Adjust function signature.
9455 (i386_gdbarch_init): Set register_type instead of
9456 deprecated_max_register_raw_size,
9457 deprecated_max_register_virtual_size and register_virtual_type.
9458
9459 2003-03-14 Andrew Cagney <cagney@redhat.com>
9460
9461 * frame.c (get_prev_frame): When a legacy frame, always call
9462 legacy_get_prev_frame. Simplify unwind code using assumption that
9463 the unwinder is new.
9464 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9465 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9466 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9467
9468 2003-03-14 Andrew Cagney <cagney@redhat.com>
9469
9470 * frame.c (get_saved_register): Delete function.
9471 * frame.h (get_saved_register): Delete declaration.
9472 * xstormy16-tdep.c: Update comment.
9473 * regcache.h: Update comments.
9474 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9475 get_saved_register and extract_address, use
9476 frame_read_unsigned_register.
9477 (sparc_frame_saved_pc): Ditto.
9478 (sparc_get_saved_register): Instead of get_saved_register, use
9479 frame_register.
9480 (sparc_pop_frame): Ditto.
9481 * findvar.c: Update comments.
9482 (value_of_register): Call frame_register instead of
9483 get_saved_register.
9484 (value_from_register): Ditto.
9485 * config/sparc/tm-sparc.h: Update comment.
9486 * breakpoint.c: Update comment.
9487
9488 2003-03-14 Andrew Cagney <cagney@redhat.com>
9489
9490 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9491 GET_SAVED_REGISTER.
9492 * gdbarch.h, gdbarch.c: Re-generate.
9493 * frame.h: Update comments.
9494 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9495 * x86-64-tdep.c (x86_64_init_abi): Update.
9496 * sparc-tdep.c (sparc_gdbarch_init): Update.
9497 * sh-tdep.c (sh_gdbarch_init): Update.
9498 * mips-tdep.c (mips_gdbarch_init): Update.
9499 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9500 * cris-tdep.c (cris_gdbarch_init): Update.
9501 * ia64-tdep.c (ia64_gdbarch_init): Update.
9502 * frame.c (frame_register): Update.
9503 (get_saved_register): Update.
9504 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9505
9506 2003-03-13 Andrew Cagney <cagney@redhat.com>
9507
9508 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9509 * gdbarch.h, gdbarch.c: Regenerate.
9510 * valops.c (hand_function_call): Update comment.
9511 * stack.c (return_command): Update comment.
9512 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9513 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9514 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9515 * x86-64-tdep.c (x86_64_init_abi): Update.
9516 * vax-tdep.c (vax_gdbarch_init): Update.
9517 * v850-tdep.c (v850_gdbarch_init): Update.
9518 * sparc-tdep.c (sparc_gdbarch_init): Update.
9519 * sh-tdep.c (sh_gdbarch_init): Update.
9520 * s390-tdep.c (s390_gdbarch_init): Update.
9521 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9522 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9523 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9524 * mips-tdep.c (mips_gdbarch_init): Update.
9525 * mcore-tdep.c (mcore_gdbarch_init): Update.
9526 * m68k-tdep.c (m68k_gdbarch_init): Update.
9527 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9528 * ia64-tdep.c (ia64_gdbarch_init): Update.
9529 * i386-tdep.c (i386_gdbarch_init): Update.
9530 * hppa-tdep.c (hppa_gdbarch_init): Update.
9531 * h8300-tdep.c (h8300_gdbarch_init): Update.
9532 * frv-tdep.c (frv_gdbarch_init): Update.
9533 * cris-tdep.c (cris_gdbarch_init): Update.
9534 * avr-tdep.c (avr_gdbarch_init): Update.
9535 * arm-tdep.c (arm_gdbarch_init): Update.
9536 * alpha-tdep.c (alpha_gdbarch_init): Update.
9537
9538 2003-03-13 Andrew Cagney <cagney@redhat.com>
9539
9540 * frame.c (legacy_frame_p): New function.
9541 (get_prev_frame): Use legacy_frame_p.
9542 * frame.h (legacy_frame_p): Declare.
9543
9544 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9545
9546 * MAINTAINERS (write after approval): Alphabetically
9547 listing corrected.
9548
9549 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9550
9551 * MAINTAINERS (write after approval): Add myself.
9552
9553 2003-03-12 Andrew Cagney <cagney@redhat.com>
9554
9555 * frame.c (get_prev_frame): Rename the frame parameter to
9556 "this_frame".
9557 (get_next_frame, legacy_get_prev_frame): Ditto.
9558
9559 2003-03-12 Andrew Cagney <cagney@redhat.com>
9560
9561 * frame.c (get_current_frame): Check target_has_registers before
9562 checking target_has_stack.
9563 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9564 instead of deprecated_selected_frame.
9565 * findvar.c (value_of_register): Pass "frame", not
9566 deprecated_selected_frame, to value_of_builtin_reg.
9567
9568 2003-03-12 Andrew Cagney <cagney@redhat.com>
9569
9570 * regcache.c (regcache_cooked_write_signed): New function.
9571 (regcache_cooked_write_unsigned): New function.
9572 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9573 (regcache_cooked_read_signed): Fix regnum in range assertion.
9574 * regcache.h (regcache_cooked_write_signed): Declare.
9575 (regcache_cooked_write_unsigned): Declare.
9576
9577 2003-03-12 Andrew Cagney <cagney@redhat.com>
9578
9579 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9580 * gdbarch.h, gdbarch.c: Re-generate.
9581 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9582 * x86-64-tdep.h: Update.
9583 * x86-64-tdep.c (x86_64_init_abi): Update.
9584 * v850-tdep.c (v850_gdbarch_init): Update.
9585 * sparc-tdep.c (sparc_gdbarch_init): Update.
9586 * sh-tdep.c (sh_gdbarch_init): Update.
9587 * s390-tdep.c (s390_gdbarch_init): Update.
9588 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9589 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9590 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9591 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9592 * mips-tdep.c (mips_gdbarch_init): Update.
9593 * mcore-tdep.c (mcore_gdbarch_init): Update.
9594 * m68k-tdep.c (m68k_gdbarch_init): Update.
9595 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9596 * ia64-tdep.c (ia64_gdbarch_init): Update.
9597 * i386-tdep.c (i386_gdbarch_init): Update.
9598 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9599 * hppa-tdep.c (hppa_gdbarch_init): Update.
9600 * h8300-tdep.c (h8300_gdbarch_init): Update.
9601 * frv-tdep.c (frv_gdbarch_init): Update.
9602 * cris-tdep.c (cris_gdbarch_init): Update.
9603 * avr-tdep.c (avr_gdbarch_init): Update.
9604 * arm-tdep.c (arm_gdbarch_init): Update.
9605 * alpha-tdep.c (alpha_gdbarch_init): Update.
9606 * sh-tdep.c (sh_init_extra_frame_info): Update.
9607 (sh64_init_extra_frame_info): Update.
9608 * ns32knbsd-nat.c (frame_num_args): Update.
9609 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9610 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9611 (xstormy16_frame_chain_valid): Update.
9612 * vax-tdep.c (vax_saved_pc_after_call): Update.
9613 * v850-tdep.c (v850_frame_chain): Update.
9614 (v850_pop_frame): Update.
9615 (v850_init_extra_frame_info): Update.
9616 * sparc-tdep.c (setup_arbitrary_frame): Update.
9617 * ns32k-tdep.c (umax_frame_num_args): Update.
9618 * s390-tdep.c (s390_pop_frame_regular): Update.
9619 * mn10300-tdep.c (mn10300_frame_chain): Update.
9620 (mn10300_pop_frame_regular): Update.
9621 (mn10300_init_extra_frame_info): Update.
9622 * mips-tdep.c (mips_init_frame_pc_first): Update.
9623 (mips_frame_chain): Update.
9624 (mips_pop_frame): Update.
9625 * mcore-tdep.c (mcore_frame_chain): Update.
9626 (mcore_pop_frame): Update.
9627 (mcore_init_extra_frame_info): Update.
9628 * arch-utils.c (init_frame_pc_default): Update.
9629 * m68k-tdep.c (isi_frame_num_args): Update.
9630 (delta68_frame_num_args): Update.
9631 (news_frame_num_args): Update.
9632 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9633 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9634 (alpha_frame_chain): Update.
9635 (alpha_pop_frame): Update.
9636 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9637 (hppa_init_extra_frame_info): Update.
9638 (hppa_frame_chain): Update.
9639 (hppa_frame_chain_valid): Update.
9640 * cris-tdep.c (cris_init_extra_frame_info): Update.
9641 * avr-tdep.c (avr_init_extra_frame_info): Update.
9642 * arm-tdep.c (arm_frame_chain_valid): Update.
9643 (arm_init_extra_frame_info): Update.
9644 (arm_pop_frame): Update.
9645 * frame.c (frame_pc_unwind): Update.
9646 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9647 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9648 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9649 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9650 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9651 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9652
9653 2003-03-12 Andrew Cagney <cagney@redhat.com>
9654
9655 Eliminate the need for POP_FRAME.
9656 * frame.c (do_frame_unwind_register): New function.
9657 (frame_pop): When no POP_FRAME, pop the frame using register
9658 unwind and a scratch regcache.
9659 (frame_saved_regs_pop): Delete function.
9660 (trad_frame_unwinder): Update.
9661 * d10v-tdep.c (d10v_frame_pop): Delete function.
9662 (d10v_frame_unwind): Update.
9663 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9664 (sentinel_frame_unwinder): Update.
9665 * dummy-frame.c (dummy_frame_pop): Delete function.
9666 (dummy_frame_unwind): Update.
9667 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9668 (struct frame_unwind): Update.
9669
9670 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9671
9672 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9673 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9674 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9675 Do range checks on register number obtained from debugging info.
9676 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9677 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9678 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9679 mapping function.
9680 (do_fp_register_row): Fix typo which caused double type to be
9681 used when attempting to unpack a float.
9682
9683 2003-03-11 J. Brobecker <brobecker@gnat.com>
9684
9685 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9686
9687 2003-03-11 Andrew Cagney <cagney@redhat.com>
9688
9689 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9690 frame. Problem found by Corinna Vinschen.
9691
9692 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9693
9694 * doublest.c (floatformat_from_length): Accept also
9695 the real size of 'long double' type.
9696
9697 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9698
9699 From Klee Dienes <kdienes@apple.com>:
9700 * breakpoint.c (bpstat_copy): Copy the command lines as well
9701 as the old value, to match what is freed in bpstat_clear.
9702
9703 2003-03-10 David Carlton <carlton@math.stanford.edu>
9704
9705 * minsyms.c (add_minsym_to_hash_table): Replace
9706 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9707 (compare_minimal_symbols, compact_minimal_symbols)
9708 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9709 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9710 of DEPRECATED_SYMBOL_MATCHES_NAME.
9711 (lookup_minimal_symbol_solib_trampoline): Ditto.
9712
9713 2003-03-10 Andrew Cagney <cagney@redhat.com>
9714
9715 * regcache.h (regcache_cooked_read_ftype): Define.
9716 (regcache_save, regcache_restore): Add a cooked_read parameter.
9717 * regcache.c (regcache_save, regcache_restore): Update.
9718 (do_cooked_read): New function.
9719 (regcache_cpy): Pass do_cooked_read to regcache_save and
9720 regcache_restore.
9721
9722 2003-03-10 Andrew Cagney <cagney@redhat.com>
9723
9724 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9725 * gdbarch.h, gdbarch.c: Re-generate.
9726 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9727 * x86-64-tdep.h: Update.
9728 * x86-64-tdep.c (x86_64_init_abi): Update.
9729 * v850-tdep.c (v850_gdbarch_init): Update.
9730 * sparc-tdep.c (sparc_gdbarch_init): Update.
9731 * sh-tdep.c (sh_gdbarch_init): Update.
9732 * s390-tdep.c (s390_gdbarch_init): Update.
9733 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9734 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9735 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9736 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9737 * mips-tdep.c (mips_gdbarch_init): Update.
9738 * mcore-tdep.c (mcore_gdbarch_init): Update.
9739 * m68k-tdep.c (m68k_gdbarch_init): Update.
9740 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9741 * ia64-tdep.c (ia64_gdbarch_init): Update.
9742 * i386-tdep.c (i386_gdbarch_init): Update.
9743 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9744 * hppa-tdep.c (hppa_gdbarch_init): Update.
9745 * h8300-tdep.c (h8300_gdbarch_init): Update.
9746 * frv-tdep.c (frv_gdbarch_init): Update.
9747 * cris-tdep.c (cris_gdbarch_init): Update.
9748 * avr-tdep.c (avr_gdbarch_init): Update.
9749 * arm-tdep.c (arm_gdbarch_init): Update.
9750 * alpha-tdep.c (alpha_gdbarch_init): Update.
9751 * sh-tdep.c (sh_init_extra_frame_info): Update.
9752 (sh64_init_extra_frame_info): Update.
9753 * ns32knbsd-nat.c (frame_num_args): Update.
9754 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9755 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9756 (xstormy16_frame_chain_valid): Update.
9757 * vax-tdep.c (vax_saved_pc_after_call): Update.
9758 * v850-tdep.c (v850_frame_chain): Update.
9759 (v850_pop_frame): Update.
9760 (v850_init_extra_frame_info): Update.
9761 * sparc-tdep.c (setup_arbitrary_frame): Update.
9762 * ns32k-tdep.c (umax_frame_num_args): Update.
9763 * s390-tdep.c (s390_pop_frame_regular): Update.
9764 * mn10300-tdep.c (mn10300_frame_chain): Update.
9765 (mn10300_pop_frame_regular): Update.
9766 (mn10300_init_extra_frame_info): Update.
9767 * mips-tdep.c (mips_init_frame_pc_first): Update.
9768 (mips_frame_chain): Update.
9769 (mips_pop_frame): Update.
9770 * mcore-tdep.c (mcore_frame_chain): Update.
9771 (mcore_pop_frame): Update.
9772 (mcore_init_extra_frame_info): Update.
9773 * arch-utils.c (init_frame_pc_default): Update.
9774 * m68k-tdep.c (isi_frame_num_args): Update.
9775 (delta68_frame_num_args): Update.
9776 (news_frame_num_args): Update.
9777 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9778 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9779 (alpha_frame_chain): Update.
9780 (alpha_pop_frame): Update.
9781 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9782 (hppa_init_extra_frame_info): Update.
9783 (hppa_frame_chain): Update.
9784 (hppa_frame_chain_valid): Update.
9785 * cris-tdep.c (cris_init_extra_frame_info): Update.
9786 * avr-tdep.c (avr_init_extra_frame_info): Update.
9787 * arm-tdep.c (arm_frame_chain_valid): Update.
9788 (arm_init_extra_frame_info): Update.
9789 (arm_pop_frame): Update.
9790 * frame.c (frame_pc_unwind): Update.
9791 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9792 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9793 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9794 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9795 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9796 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9797
9798 2003-03-10 Andrew Cagney <cagney@redhat.com>
9799
9800 * gdbarch.sh (gdbarch_unwind_pc): New method.
9801 * gdbarch.h, gdbarch.c: Regenerate.
9802 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9803 but use read_pc and FRAME_SAVED_PC as fall backs.
9804 (frame_saved_regs_pc_unwind): Delete function.
9805 (trad_frame_unwinder): Update.
9806 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9807 (struct frame_unwind): Update.
9808 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9809 (dummy_frame_unwind): Update.
9810 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9811 (sentinel_frame_unwinder): Update.
9812 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9813 (d10v_frame_unwind): Update.
9814 (d10v_unwind_pc): New function.
9815 (d10v_gdbarch_init): Set unwind_pc.
9816
9817 2003-03-10 Andrew Cagney <cagney@redhat.com>
9818
9819 * gdbarch.h: Re-generate.
9820
9821 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9822 PC.
9823 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9824 the PC register.
9825
9826 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9827
9828 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9829
9830 2003-03-08 Andrew Cagney <cagney@redhat.com>
9831
9832 * cli-out.c: Update copyright.
9833 (cli_out_data): Define typedef. Use instead of ui_out_data.
9834
9835 2003-03-08 Andrew Cagney <cagney@redhat.com>
9836
9837 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9838 the result.
9839
9840 2003-03-07 Andrew Cagney <cagney@redhat.com>
9841
9842 * gdbarch.sh: Don't generate two macro definitions when an
9843 undefined macro taking no arguments.
9844 * gdbarch.h: Regenerate.
9845
9846 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9847
9848 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9849 (x86_64_unwind_dummy_id): New functions.
9850 (x86_64_init_abi): Register these two new functions.
9851
9852 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9853
9854 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9855 (x86_64_skip_prologue): Move prologue detection to
9856 separate function.
9857 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9858
9859 2003-03-05 Andrew Cagney <cagney@redhat.com>
9860
9861 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9862 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9863 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9864 to use unwind_dummy_id when a dummy frame.
9865 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9866 predicate.
9867 * gdbarch.h, gdbarch.c: Regneerate.
9868
9869 2003-03-05 Andrew Cagney <cagney@redhat.com>
9870
9871 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9872 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9873 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9874 values.
9875
9876 2003-03-05 Andrew Cagney <cagney@redhat.com>
9877
9878 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9879 (struct d10v_unwind_cache): Delete field "frameless". Replace
9880 "next_addr" with "sp_offset". Add "r11_offset".
9881 (d10v_frame_unwind_cache): Update.
9882 (prologue_find_regs): Update. When "mv r11, sp", save the
9883 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9884 RN was saved in r11_offset.
9885
9886 2003-03-05 Andrew Cagney <cagney@redhat.com>
9887
9888 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9889 cached PC value in the next frame.
9890
9891 2003-03-05 Andrew Cagney <cagney@redhat.com>
9892
9893 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9894 "id_unwind_cache" with "id".
9895 (frame_id_unwind): Delete declaration.
9896 * frame.c (frame_id_unwind): Delete function.
9897 (get_prev_frame): Call the frame id unwind method directly. Store
9898 the returned next frame's ID value in NEXT_FRAME. Note that there
9899 is a problem with the wrong unwind ID being called with the wrong
9900 unwind cache.
9901
9902 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9903
9904 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9905
9906 2003-03-05 James Ingham <jingham@apple.com>
9907 Daniel Jacobowitz <drow@mvista.com>
9908
9909 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9910 (auto_cp_abi): New variable.
9911 (current_cp_abi, num_cp_abis): Make static.
9912 (CP_ABI_MAX): Define.
9913 (cp_abis): Turn into an array.
9914 (value_virtual_fn_field): Fix formatting.
9915 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9916 takes a pointer.
9917 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9918 (list_cp_abis, _initialize_cp_abi): New functions.
9919 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9920 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9921 switch_to_cp_abi. Update prototype for register_cp_abi.
9922 * Makefile.in (cp-abi.o): Update dependencies.
9923 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9924 instead of switch_to_cp_abi.
9925 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9926 register_cp_abi.
9927 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9928 register_cp_abi.
9929 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9930
9931 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9932
9933 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9934 * dwarf2loc.c: Include "regcache.h".
9935 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9936 register_size.
9937 * Makefile.in (dwarf2loc.o): Update dependencies.
9938
9939 2003-03-04 Theodore A. Roth <troth@openavr.org>
9940
9941 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9942 number of io registers reported by remote target is not a multiple of
9943 step.
9944
9945 2003-03-04 David Carlton <carlton@math.stanford.edu>
9946
9947 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9948 (lookup_symbol_aux_psymtabs): Update call to
9949 lookup_partial_symbol.
9950 (lookup_transparent_type, find_main_psymtab)
9951 (make_symbol_overload_list): Ditto.
9952
9953 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9954
9955 * MAINTAINERS (Write after approval): Update my email address.
9956
9957 2003-03-03 Andrew Cagney <cagney@redhat.com>
9958
9959 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9960 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9961 predicate. Replace MAX_REGISTER_RAW_SIZE.
9962 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9963 MAX_REGISTER_VIRTUAL_SIZE.
9964 * regcache.c (legacy_max_register_raw_size): New function.
9965 (legacy_max_register_virtual_size): New function.
9966 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9967 (MAX_REGISTER_RAW_SIZE): Define.
9968 (legacy_max_register_raw_size): Declare.
9969 (legacy_max_register_virtual_size): Declare.
9970 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9971 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9972 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9973 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9974 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9975 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9976 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9977 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9978 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9979 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9980 * vax-tdep.c (vax_gdbarch_init): Update.
9981 * v850-tdep.c (v850_gdbarch_init): Update.
9982 * sparc-tdep.c (sparc_gdbarch_init): Update.
9983 * sh-tdep.c (sh_gdbarch_init): Update.
9984 * s390-tdep.c (s390_gdbarch_init): Update.
9985 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9986 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9987 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9988 * mips-tdep.c (mips_gdbarch_init): Update.
9989 * mcore-tdep.c (mcore_gdbarch_init): Update.
9990 * m68k-tdep.c (m68k_gdbarch_init): Update.
9991 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9992 * ia64-tdep.c (ia64_gdbarch_init): Update.
9993 * i386-tdep.c (i386_gdbarch_init): Update.
9994 * hppa-tdep.c (hppa_gdbarch_init): Update.
9995 * h8300-tdep.c (h8300_gdbarch_init): Update.
9996 * frv-tdep.c (frv_gdbarch_init): Update.
9997 * cris-tdep.c (cris_gdbarch_init): Update.
9998 * avr-tdep.c (avr_gdbarch_init): Update.
9999 * arm-tdep.c (arm_gdbarch_init): Update.
10000 * alpha-tdep.c (alpha_gdbarch_init): Update.
10001 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10002 max_register_raw_size or max_register_virtual_size.
10003
10004 2003-03-03 David Carlton <carlton@math.stanford.edu>
10005
10006 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10007 SYMBOL_MATCHES_NAME, add comment.
10008 (SYMBOL_MATCHES_NATURAL_NAME): New.
10009 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10010 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10011 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10012 * symtab.c (lookup_partial_symbol): Use
10013 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10014 unhelpful comment.
10015 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10016 SYMBOL_MATCHES_NAME.
10017 Fix for PR c++/33.
10018
10019 2003-03-03 David Carlton <carlton@math.stanford.edu>
10020
10021 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10022 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10023 by regexp matching against SYMBOL_NATURAL_NAME.
10024
10025 2003-03-03 David Carlton <carlton@math.stanford.edu>
10026
10027 * linespec.c (find_method): Extract code into collect_methods.
10028 (collect_methods): New.
10029
10030 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10031
10032 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10033 get_frame_base.
10034
10035 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10036 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10037
10038 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10039
10040 * arch-utils.c (generic_register_byte): Fix to use the loop index
10041 and not regnum when summing the size of all registers up to regnum.
10042
10043 2003-03-01 Andrew Cagney <cagney@redhat.com>
10044
10045 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10046 FRAME_INIT_SAVED_REGS.
10047 * gdbarch.h, gdbarch.c: Regenerate.
10048 * stack.c (frame_info): Update.
10049 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10050 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10051 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10052 * ns32k-tdep.c (ns32k_pop_frame): Update.
10053 * mips-tdep.c (mips_pop_frame): Update.
10054 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10055 * ia64-tdep.c (ia64_frame_chain): Update.
10056 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10057 (ia64_frameless_function_invocation): Update.
10058 (ia64_init_extra_frame_info): Update.
10059 (ia64_pop_frame_regular): Update.
10060 * frame.h (struct frame_info): Update comment.
10061 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10062 * frame.c (frame_saved_regs_register_unwind): Update.
10063 (frame_saved_regs_register_unwind): Update.
10064 (deprecated_generic_get_saved_register): Update.
10065 * cris-tdep.c: Update comment.
10066 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10067 Rename macro.
10068 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10069 * x86-64-tdep.c (x86_64_init_abi): Update.
10070 * vax-tdep.c (vax_gdbarch_init): Update.
10071 * v850-tdep.c (v850_gdbarch_init): Update.
10072 * sparc-tdep.c (sparc_gdbarch_init): Update.
10073 * sh-tdep.c (sh_gdbarch_init): Update.
10074 * s390-tdep.c (s390_gdbarch_init): Update.
10075 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10076 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10077 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10078 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10079 * mips-tdep.c (mips_gdbarch_init): Update.
10080 * mcore-tdep.c (mcore_gdbarch_init): Update.
10081 * m68k-tdep.c (m68k_gdbarch_init): Update.
10082 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10083 * ia64-tdep.c (ia64_gdbarch_init): Update.
10084 * i386-tdep.c (i386_gdbarch_init): Update.
10085 * frv-tdep.c (frv_gdbarch_init): Update.
10086 * avr-tdep.c (avr_gdbarch_init): Update.
10087 * arm-tdep.c (arm_gdbarch_init): Update.
10088 * alpha-tdep.c (alpha_gdbarch_init): Update.
10089
10090 2003-03-01 Andrew Cagney <cagney@redhat.com>
10091
10092 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10093 option enum and switch. When no windows, set the interpreter to
10094 INTERP_CONSOLE.
10095
10096 2003-03-01 Andrew Cagney <cagney@redhat.com>
10097
10098 * main.c (captured_main): Replace magic option characters with an
10099 enum.
10100
10101 2003-03-01 Andrew Cagney <cagney@redhat.com>
10102
10103 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10104 INIT_EXTRA_FRAME_INFO.
10105 * gdbarch.h, gdbarch.c: Regenerate.
10106 * arm-tdep.c: Update comments.
10107 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10108 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10109 * frame.h, avr-tdep.c: Ditto.
10110 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10111 (create_new_frame, legacy_get_prev_frame): Ditto.
10112 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10113 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10114 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10115 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10116 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10117 * v850-tdep.c (v850_gdbarch_init): Ditto.
10118 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10119 * sh-tdep.c (sh_gdbarch_init): Ditto.
10120 * s390-tdep.c (s390_gdbarch_init): Ditto.
10121 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10122 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10123 * mips-tdep.c (mips_gdbarch_init): Ditto.
10124 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10125 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10126 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10127 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10128 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10129 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10130 * frv-tdep.c (frv_gdbarch_init): Ditto.
10131 * cris-tdep.c (cris_gdbarch_init): Ditto.
10132 * avr-tdep.c (avr_gdbarch_init): Ditto.
10133 * arm-tdep.c (arm_gdbarch_init): Ditto.
10134 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10135 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10136
10137 2003-03-01 Andrew Cagney <cagney@redhat.com>
10138
10139 * gdbarch.sh (register_type): New function with predicate.
10140 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10141 * gdbarch.h, gdbarch.c: Re-generate.
10142 * arch-utils.c (generic_register_byte): Use generic_register_size.
10143 (generic_register_size): When available, use
10144 gdbarch_register_type.
10145 * regcache.c (init_regcache_descr): When available, initialize the
10146 register type array using gdbarch_register_type. If the
10147 architecture supplies gdbarch_register_type, do not use the legacy
10148 regcache layout.
10149 * d10v-tdep.c (d10v_register_type): Replace
10150 d10v_register_virtual_type.
10151 (d10v_gdbarch_init): Set register_type instead of
10152 register_virtual_type.
10153
10154 2003-03-01 Andrew Cagney <cagney@redhat.com>
10155
10156 * Makefile.in (ax-gdb.o): Update dependencies.
10157 * ax-gdb.c: Include "regcache.h".
10158 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10159 * findvar.c (value_of_register): Ditto.
10160 * infcmd.c (default_print_registers_info): Ditto.
10161
10162 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10163
10164 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10165 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10166
10167 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10168
10169 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10170 of STREQ.
10171
10172 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10173
10174 * Makefile.in (dwarf2loc.o): Update dependencies.
10175 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10176 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10177 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10178 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10179 (locexpr_tracepoint_var_ref): New function.
10180 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10181
10182 2003-02-28 Andrew Cagney <cagney@redhat.com>
10183
10184 * regcache.c (register_size): New function.
10185 * regcache.h (register_size): Declare
10186 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10187 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10188
10189 2003-02-28 David Carlton <carlton@math.stanford.edu>
10190
10191 * linespec.c (decode_compound): Extract code into find_method.
10192 (find_method): New.
10193
10194 2003-02-28 J. Brobecker <brobecker@gnat.com>
10195
10196 * Makefile.in: Add rules to build and link in observer.o.
10197
10198 2003-02-27 J. Brobecker <brobecker@gnat.com>
10199
10200 * observer.c: Minor comments edits.
10201
10202 2003-02-27 J. Brobecker <brobecker@gnat.com>
10203
10204 * observer.h, observer.c: New file.
10205
10206 2003-02-27 Andrew Cagney <cagney@redhat.com>
10207
10208 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10209
10210 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10211
10212 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10213 (M6812_OP_STS_EXT): Likewise.
10214 (m6811_prologue): Use the above to recognize prologue.
10215 (m6812_prologue): Likewise.
10216
10217 2003-02-27 David Carlton <carlton@math.stanford.edu>
10218
10219 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10220 SYMBOL_PRINT_NAME.
10221 (compare_psymbols): Ditto.
10222 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10223
10224 2003-02-27 Michael Snyder <msnyder@redhat.com>
10225
10226 * f-lang.c (build_fortran_types): New function.
10227 (_initialize_f_language): Gdbarch-register built-in fortran types.
10228 * doublest.c (extract_floating): Fix warning text.
10229
10230 2003-02-27 Andrew Cagney <cagney@redhat.com>
10231
10232 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10233 predicate. Replaces PUSH_DUMMY_FRAME.
10234 * gdbarch.h, gdbarch.c: Regnerate.
10235 * valops.c (hand_function_call): Update. Call
10236 generic_push_dummy_frame directly.
10237 * vax-tdep.c (vax_gdbarch_init): Update.
10238 * sparc-tdep.c (sparc_gdbarch_init): Update.
10239 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10240 * m68k-tdep.c (m68k_gdbarch_init): Update.
10241 * hppa-tdep.c (hppa_gdbarch_init): Update.
10242 * alpha-tdep.c (alpha_gdbarch_init): Update.
10243 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10244 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10245 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10246 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10247 push_dummy_frame to generic_push_dummy_frame.
10248 * v850-tdep.c (v850_gdbarch_init): Ditto.
10249 * sh-tdep.c (sh_gdbarch_init): Ditto.
10250 * s390-tdep.c (s390_gdbarch_init): Ditto.
10251 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10252 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10253 * mips-tdep.c (mips_gdbarch_init): Ditto.
10254 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10256 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10257 * i386-tdep.c (i386_gdbarch_init): Ditto.
10258 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10259 * frv-tdep.c (frv_gdbarch_init): Ditto.
10260 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10261 * cris-tdep.c (cris_gdbarch_init): Ditto.
10262 * avr-tdep.c (avr_gdbarch_init): Ditto.
10263 * arm-tdep.c (arm_gdbarch_init): Ditto.
10264
10265 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10266
10267 * mips-tdep.c (show_mips_abi): New function.
10268 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10269 command ``show mips abi''.
10270
10271 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10272
10273 From Elena Zannoni <ezannoni@redhat.com>
10274 * dbxread.c (process_one_symbol): Only record line 0 if one or
10275 more sline entries have been seen for the function.
10276
10277 2003-02-26 Michael Chastain <mec@shout.net>
10278
10279 * configure: Regenerate with autoconf 000227.
10280
10281 2003-02-26 Michael Chastain <mec@shout.net>
10282
10283 Close PR build/660.
10284 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10285 for old libc5/glibc.
10286 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10287
10288 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10289
10290 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10291 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10292
10293 2003-02-26 Michael Chastain <mec@shout.net>
10294
10295 * configure.in: New variable HAVE_UINTPTR_T.
10296 * configure, config.in: Regenerated.
10297
10298 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10299
10300 Fix PR build/1097.
10301 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10302
10303 2003-02-25 Andrew Cagney <cagney@redhat.com>
10304
10305 * frame.c (get_prev_frame): Add comment on check for
10306 inside_entry_func. Only check for inside_entry_file when not a
10307 dummy and not a sentinel. Check that the new frame is not inner
10308 to the old frame.
10309
10310 2003-02-25 Andrew Cagney <cagney@redhat.com>
10311
10312 * frame.c (frame_debug): New variable.
10313 (_initialize_frame): Add "set/show debug frame" command.
10314 (get_prev_frame): When frame_debug, print reason why unwind
10315 failed.
10316
10317 2003-02-25 Michael Chastain <mec@shout.net>
10318
10319 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10320 to avoid uintptr_t definition problems.
10321
10322 2003-02-25 David Carlton <carlton@math.stanford.edu>
10323
10324 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10325 (SYMBOL_LINKAGE_NAME): Ditto.
10326 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10327 SYMBOL_LINKAGE_NAME.
10328 (struct general_symbol_info): Expand comment.
10329 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10330 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10331 (SYMBOL_MATCHES_REGEXP): Ditto.
10332 * symtab.c (symbol_natural_name): New function.
10333 * objfiles.h: Replace all uses of SYMBOL_NAME by
10334 DEPRECATED_SYMBOL_NAME.
10335 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10336 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10337 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10338 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10339 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10340 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10341 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10342 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10343 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10344 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10345 * ada-exp.y: Ditto.
10346 * ada-exp.y: Update copyright.
10347 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10348 * cp-valprint.c: Ditto.
10349
10350 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10351
10352 * infptrace.c (detach): Do not flag error if ptrace detach fails
10353 and errno is set to ESRCH.
10354
10355 2003-02-24 Andrew Cagney <cagney@redhat.com>
10356
10357 * infptrace.c (udot_info): Change type of udot_off to long. Use
10358 paddr when printing udot_off's value.
10359
10360 2003-02-24 David Carlton <carlton@math.stanford.edu>
10361
10362 * symtab.c (make_symbol_overload_list): Only read in partial
10363 symtabs containing a matching partial symbol.
10364
10365 2003-02-24 David Carlton <carlton@math.stanford.edu>
10366
10367 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10368 do the comparison, not strcmp.
10369 * symfile.c (compare_psymbols): Ditto.
10370 * defs.h: Declare strcmp_iw_ordered.
10371 * utils.c (strcmp_iw_ordered): New function.
10372
10373 2003-02-24 Jim Blandy <jimb@redhat.com>
10374
10375 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10376 support, shared libs): Remove my name from here, to better reflect
10377 reality.
10378
10379 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10380
10381 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10382 (target_ops): Add to_have_continuable_watchpoint.
10383 * target.c (update_current_target): Add INHERIT line for
10384 to_have_continuable_watchpoint.
10385 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10386 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10387 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10388 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10389
10390 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10391
10392 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10393 maintainership.
10394
10395 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10396
10397 * solib.c (solib_open): Call target defined search function after
10398 failing with solib-search-path.
10399 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10400 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10401
10402 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10403
10404 * MAINTAINERS: Add myself to Write After section.
10405
10406 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10407
10408 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10409
10410 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10411
10412 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10413 (m68hc11_add_reggroups): New function.
10414 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10415 (m68hc11_gdbarch_init): Install the reggroups.
10416 (_initialize_m68hc11_tdep): Initialize them.
10417
10418 2003-02-21 James E Wilson <wilson@tuliptree.org>
10419
10420 * MAINTAINERS: Update my email address.
10421
10422 2003-02-21 David Carlton <carlton@math.stanford.edu>
10423
10424 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10425
10426 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10427
10428 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10429 * symtab.h: Add opaque declarations of struct axs_value and
10430 struct agent_expr.
10431 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10432 (struct location_funcs): New type.
10433 (struct symbol): Add "loc" to aux_value.
10434 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10435 * dwarf2read.c: Include "dwarf2expr.h".
10436 (dwarf2_symbol_mark_computed): New function.
10437 (read_func_scope): Use it.
10438 (var_decode_location): New function.
10439 (new_symbol): Use it.
10440 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10441
10442 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10443 (dwarf2expr_h, dwarf2loc_h): New variables.
10444 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10445 (dwarf2expr.o, dwarf2loc.o): New rules.
10446 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10447 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10448 LOC_COMPUTED_ARG.
10449 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10450 * m2-exp.y (yylex): Likewise.
10451 * printcmd.c (address_info, print_frame_args): Likewise.
10452 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10453 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10454 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10455 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10456 * symtab.c (lookup_block_symbol): Likewise.
10457
10458 2003-02-20 Adam Fedor <fedor@gnu.org>
10459
10460 * symtab.h: Remove objc_specific struct
10461 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10462 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10463 Have language_objc use cplus_specific struct.
10464
10465 2003-02-20 Tom Tromey <tromey@redhat.com>
10466
10467 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10468 TYPE_NAME, when printing a String value. PR java/1075.
10469
10470 2003-02-20 Adam Fedor <fedor@gnu.org>
10471
10472 * objc-lang.h (find_methods): Remove declaration.
10473 * objc-lang.c (find_methods): Make static.
10474
10475 2003-02-20 Christopher Faylor <cgf@redhat.com>
10476
10477 * win32-nat.c (get_image_name): Check return value from
10478 ReadProcessMemory.
10479 (child_xfer_memory): Ditto.
10480
10481 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10482
10483 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10484 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10485 '${exec_prefix}' (in addition to the expansion thereof) as
10486 relocatable.
10487 * configure: Rebuilt.
10488
10489 2003-02-20 David Carlton <carlton@math.stanford.edu>
10490
10491 * symtab.c (search_symbols): Revert the search_symbols part of my
10492 2002-12-23 patch. Add comment.
10493
10494 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10495
10496 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10497 * dbxread.c (elfstab_build_psymtabs): Don't call
10498 install_minimal_symbols.
10499 (stabsect_build_psymtabs): Likewise.
10500 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10501 earlier.
10502 * somread.c (som_symfile_read): Call install_minimal_symbols
10503 and do_cleanups earlier.
10504 * nlmread.c (nlm_symfile_read): Likewise.
10505 * mdebugread.c (elfmdebug_build_psymtabs): Call
10506 install_minimal_symbols and make appropriate cleanups.
10507
10508 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10509
10510 * solib.c (reload_shared_libraries): New function.
10511 (_initialize_solib): Add callbacks for ``set solib-search-path''
10512 and ``set solib-absolute-prefix''.
10513
10514 2003-02-20 David Carlton <carlton@math.stanford.edu>
10515
10516 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10517 expand comment.
10518 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10519 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10520 * ada-typeprint.c (ada_typedef_print): Ditto.
10521 * ax-gdb.c (gen_var_ref): Ditto.
10522 * breakpoint.c (print_one_breakpoint): Ditto.
10523 * buildsym.c (finish_block): Ditto.
10524 * c-valprint.c (c_val_print): Ditto.
10525 * expprint.c (print_subexp): Ditto.
10526 * findvar.c (locate_var_value): Ditto.
10527 * infcmd.c (jump_command): Ditto.
10528 * linespec.c (decode_line_2, decode_compound): Ditto.
10529 * maint.c (maintenance_translate_address): Ditto.
10530 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10531 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10532 Ditto.
10533 * p-valprint.c (pascal_val_print): Ditto.
10534 * stabsread.c (define_symbol): Ditto.
10535 * stack.c (print_frame, frame_info, print_block_frame_locals)
10536 (print_frame_arg_vars, return_command): Ditto.
10537 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10538 * symmisc.c (print_symbol): Ditto.
10539 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10540 (compare_search_syms, print_symbol_info, print_msymbol_info)
10541 (rbreak_command): Ditto.
10542 * tracepoint.c (tracepoints_info): Ditto.
10543 * typeprint.c (typedef_print): Ditto.
10544 * valops.c (value_of_variable, hand_function_call): Ditto.
10545 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10546 * ada-typeprint.c: Update Copyright.
10547 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10548 * tracepoint.c, cli/cli-cmds.c: Ditto.
10549
10550 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10551
10552 * frame.c (generic_unwind_get_saved_register): Make non-static.
10553 * frame.h (generic_unwind_get_saved_register): Declare.
10554 * mips-tdep.c (read_next_frame_reg): Fetch register from
10555 current regcache when frame is NULL.
10556 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10557 that must be NULL.
10558 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10559 instead of frame_register_unwind().
10560
10561 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10562
10563 * remote-sim.c (gdbsim_insert_breakpoint)
10564 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10565 code.
10566
10567 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10568
10569 * remote.c (_initialize_remote): Add commands "set/show remote
10570 hardware-watchpoint-limit" and "set/show remote
10571 hardware-breakpoint-limit".
10572 (remote_hw_watchpoint_limit): Initialize to -1.
10573 (remote_hw_breakpoint_limit): Ditto.
10574 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10575
10576 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10577
10578 * coff-pe-read.c: New file - support reading of minimal symbols from a
10579 portable executable using the export table.
10580 * coff-pe-read.h: New file.
10581 * coffread.c: Include coff-pe-read.h.
10582 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10583 debugging symbols found.
10584 * Makefile.in (SFILES): Add coff-pe-read.o.
10585 (coff_pe_read_h): Define.
10586 (COMMON_OBS): Add coff-pe-read.o.
10587 (coffread.o): Add coff_pe_read_h dependency.
10588 (coff-pe-read.o): New target.
10589
10590 2003-02-19 David Carlton <carlton@math.stanford.edu>
10591
10592 * Makefile.in (SFILES): Add block.c.
10593 (block_h): New.
10594 (COMMON_OBS): Add block.o.
10595 (block.o): New.
10596 (x86-64-tdep.o): Add $(block_h).
10597 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10598 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10599 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10600 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10601 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10602 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10603 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10604 * value.h: Add opaque declaration for struct block.
10605 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10606 * ada-lang.h: Ditto.
10607 * x86-64-tdep.c: #include "block.h"
10608 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10609 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10610 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10611 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10612 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10613 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10614 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10615 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10616 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10617 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10618 * symtab.c (block_function): Ditto.
10619 (contained_in): Ditto.
10620 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10621 block.h. Add opaque declaration for struct block.
10622 * symtab.h: Move block_function and contained_in declarations to
10623 block.h. Add opaque declarations for struct block, struct
10624 blockvector.
10625 (struct block): Move to block.h.
10626 (struct blockvector): Ditto.
10627 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10628 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10629 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10630 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10631 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10632 Ditto.
10633 * block.c: New file.
10634 * block.h: New file.
10635
10636 2003-02-19 Theodore A. Roth <troth@openavr.org>
10637
10638 * avr-tdep.c (avr_extract_return_value): Remove function.
10639 (avr_store_return_value): Remove function.
10640 (avr_extract_struct_value_address): Remove function.
10641 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10642
10643 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10644
10645 * rs6000-tdep.c: Include "gdb_assert.h".
10646 (registers_e500): Add "acc" and "spefscr".
10647 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10648 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10649 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10650 really is "r0".
10651 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10652
10653 2003-02-18 Keith Seitz <keiths@redhat.com>
10654
10655 * Makefile.in: Add gdbtk-interps.c.
10656
10657 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10658
10659 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10660 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10661
10662 2003-02-18 Andrew Cagney <cagney@redhat.com>
10663
10664 * symtab.h (struct objfile): Add opaque declaration.
10665
10666 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10667
10668 From Jim Ingham <jingham@apple.com>:
10669 * dbxread.c (process_one_symbol): Use last_function_start rather
10670 than function_start_offset to find the real beginning of the
10671 current function. The latter is just the text section offset on
10672 some systems, the former is always the real function start.
10673
10674 2003-02-17 Andrew Cagney <cagney@redhat.com>
10675
10676 * configure.in: Revert ${target} != ${host}.
10677
10678 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10679
10680 * configure.in (Makefile): Use the test ${target} != ${host},
10681 instead of the absence of the "nm.h" file, to determine of the
10682 configuration non-native.
10683 * configure: Regenerate.
10684
10685 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10686
10687 From Brian Ford <ford@vss.fsi.com>
10688
10689 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10690 conditionalize tui_active test.
10691 (lookup_cmd_1): Ditto.
10692
10693 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10694
10695 * configure.in: Add check for _etext.
10696 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10697 available.
10698 * config.in, configure: regenerated.
10699
10700 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10701
10702 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10703
10704 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10705
10706 * main.c (tui_version): Delete variable.
10707 (captured_main): When --tui, set interpreter_p to "tui" instead of
10708 enabling tui_version.
10709 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10710 tui_version.
10711 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10712 * cli/cli-cmds.c (disassemble_command): Ditto.
10713 * defs.h (tui_version): Delete declaration.
10714 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10715 (tui-interp.o): Add rules.
10716 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10717
10718 2003-02-14 Christopher Faylor <cgf@redhat.com>
10719
10720 * win32-nat.c (register_loaded_dll): Correctly set address range for
10721 just-loaded dll.
10722
10723 2003-02-12 Jason Molenda (jmolenda@apple.com)
10724
10725 * symmisc.c (print_objfile_statistics): Include information about
10726 the number of psymtabs and symtabs in each object file.
10727
10728 2003-02-13 Keith R Seitz <keiths@redhat.com>
10729
10730 * main.h (struct captured_main_args): Add interpreter_p.
10731 * main.c (captured_main): Initialize interpreter_p from context.
10732 * gdb.c (main): Set interpreter_p argument.
10733 * Makefile.in (gdb.o): Add dependency for interps.h.
10734
10735 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10736
10737 * event-top.c (cli_command_loop): Delete declaration.
10738 (_initialize_event_loop): Delete function setting event_loop_hook.
10739 * event-top.h (cli_command_loop): Declare. Update copyright.
10740 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10741 * interps.c (current_interp_command_loop): When event_loop_p, call
10742 cli_command_loop.
10743
10744 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10745
10746 * interps.h (interp_command_loop_ftype): Change return type to
10747 void.
10748
10749 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10750
10751 * x86-64-tdep.c (x86_64_extract_return_value)
10752 (x86_64_store_return_value): Use regcache instead of regbuf.
10753 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10754 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10755
10756 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10757
10758 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10759 * aclocal.m4: Regenerate.
10760 * configure: Regenerate.
10761
10762 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10763 TCL_LD_SEARCH_FLAGS.
10764
10765 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10766
10767 * dwarf2cfi.c: Reindented.
10768
10769 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10770
10771 * interps.c (clear_interpreter_hooks): Convert function definition
10772 to ISO C.
10773
10774 2003-02-07 David Carlton <carlton@math.stanford.edu>
10775
10776 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10777
10778 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10779
10780 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10781 (struct type): ...to here.
10782 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10783 field.
10784 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10785 (replace_type): Set length on all type variants for a given type.
10786
10787 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10788
10789 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10790 <sys/stat.h>.
10791 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10792
10793 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10794
10795 * Makefile.in (symm-nat.o): Update dependencies.
10796 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10797 (lynx-nat.o, ia64-linux-nat.): Ditto.
10798 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10799 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10800 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10801
10802 * Makefile.in (inflow_h): Define.
10803 (procfs.o, inflow.o, procfs.o): Update dependencies.
10804 * inftarg.c (child_stop): Delete extern declaration of
10805 inferior_process_group. Include "inflow.h".
10806 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10807 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10808 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10809 (our_process_group, inferior_process_group): Extern declarations.
10810
10811 * procfs.c: Include "gdb_assert.h".
10812
10813 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10814 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10815 * jv-typeprint.c (java_type_print_base): Ditto.
10816 * typeprint.c (typedef_print): Eliminate STREQ.
10817 * cli/cli-script.c (define_command, define_command): Ditto.
10818 * main.c (captured_main): Ditto.
10819 * values.c (lookup_internalvar): Ditto.
10820 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10821 within `if' conditional.
10822 * linespec.c (decode_line_2): Ditto.
10823 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10824 (bfd_openw_with_cleanup): Ditto.
10825
10826 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10827
10828 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10829 legacy_extract_return_value and store_return_value to
10830 legacy_return_value.
10831
10832 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10833
10834 * win32-nat.c (get_relocated_section_addrs): New function. Find
10835 section load addresses for symbol handling in relocated DLLs.
10836 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10837
10838 2003-02-05 Fred Fish <fnf@intrinsity.com>
10839
10840 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10841 '=' and '!='.
10842 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10843 with '&' and '=='.
10844 (angel_RDI_info): Ditto.
10845 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10846 with '&' and '!='.
10847 (threads_continue_all_with_signals): Ditto.
10848
10849 2003-02-05 Jim Ingham <jingham@apple.com>
10850 Keith Seitz <keiths@redhat.com>
10851 Elena Zannoni <ezannoni@redhat.com>
10852 Andrew Cagney <ac131313@redhat.com>
10853
10854 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10855 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10856 (SUBDIR_MI_OBS): Add "mi-interp.o".
10857 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10858 (SFILES): Add "interps.c".
10859 (COMMON_OBS): Add "interps.o".
10860 (interps_h, mi_main_h): Define.
10861 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10862 (mi-main.o, main.o, event-top.o): Update dependencies.
10863 * cli/cli-interp.c: New file.
10864 * interps.h, interps.c: New files.
10865 * top.c: (gdb_init): Don't install the default interpreter, handed
10866 by captured_main.
10867 * main.c: Include "interps.h".
10868 (interpreter_p): Note that it should malloc'ed.
10869 (captured_command_loop): Call current_interp_command_loop.
10870 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10871 xfree and xstrdup when updating interpreter_p. Install the
10872 default interpreter. Add hack to stop mi1's copyright notice
10873 being encoded.
10874 * event-top.h (gdb_setup_readline): Declare.
10875 (gdb_disable_readline): Declare.
10876 * event-top.c: Include "interps.h".
10877 (display_gdb_prompt): Call current_interp_display_prompt_p.
10878 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10879 gdb_stdlog, and gdb_stdtarg.
10880 (_initialize_event_loop): Don't call gdb_setup_readline.
10881 * cli-out.c (cli_out_set_stream): New function.
10882 * cli-out.h (cli_out_set_stream): Declare.
10883
10884 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10885
10886 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10887 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10888 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10889 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10890 config/i386/i386v42mp.mt: Removed.
10891
10892 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10893
10894 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10895 GDB_OSABI_SOLARIS.
10896
10897 2003-02-05 Michael Chastain <mec@shout.net>
10898
10899 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10900 2.12.1 and earlier versions.
10901
10902 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10903
10904 Remove orphaned hosts, targets and files.
10905 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10906 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10907 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10908 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10909 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10910 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10911 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10912 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10913 * config/sparc/tm-sp64sim.h: Delete.
10914 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10915 hosts.
10916 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10917 mips*-dec-mach3* targets.
10918
10919 2003-02-04 Michael Chastain <mec@shout.net>
10920
10921 * NEWS: Fix typo: sepcifying -> specifying.
10922
10923 2003-02-04 Michael Chastain <mec@shout.net>
10924
10925 * dwarfread.c: Add documentation on the state of dwarf-1,
10926 looking towards obsoletion.
10927
10928 2003-02-03 Michael Chastain <mec@shout.net>
10929
10930 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10931 gdb/testsuite/gdb.c++/pr-1023.exp.
10932
10933 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10934
10935 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10936 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10937
10938 * utils.c (init_page_info): Delete reference to MPW in comments.
10939 * main.c (captured_main): Delete #ifdef MPW.
10940
10941 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10942
10943 * NEWS: Note that the m32r-*-elf* is obsolete.
10944 * monitor.c (monitor_expect): Obsolete reference to m32r.
10945 * configure.tgt: Mark m32r-*-elf* as obsolete.
10946 * MAINTAINERS: Mark m32k as obsolete.
10947 * m32r-rom.c: Obsolete file.
10948 * config/m32r/m32r.mt: Obsolete file.
10949 * config/m32r/tm-m32r.h: Obsolete file.
10950 * m32r-stub.c: Obsolete file.
10951 * m32r-tdep.c: Obsolete file.
10952
10953 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10954
10955 * NEWS: Mention that the z8k-zilog-none is obsolete.
10956 * MAINTAINERS: Mark z8k as obsolete.
10957 * configure.tgt: Obsolete the z8k-*-coff* target.
10958 * config/z8k/z8k.mt: Obsolete file.
10959 * config/z8k/tm-z8k.h: Obsolete file.
10960 * z8k-tdep.c: Obsolete file.
10961
10962 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10963
10964 * NEWS: Mention that the mn10200-elf is obsolete.
10965 * configure.tgt: Obsolete mn10200-*-* target.
10966 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10967 mention that the mn10200 is obsolete.
10968 * breakpoint.h: Ditto.
10969 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10970 * config/mn10200/mn10200.mt: Obsolete file.
10971 * config/mn10200/tm-mn10200.h: Obsolete file.
10972 * mn10200-tdep.c: Obsolete file.
10973
10974 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10975
10976 * MAINTAINERS: Mark h8500 as obsolete.
10977 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10978 * findvar.c (value_from_register): Ditto.
10979 * h8500-tdep.c: Mark file as obsolete.
10980 * config/h8500/h8500.mt: Ditto.
10981 * config/h8500/tm-h8500.h: Ditto.
10982 * NEWS: Mention that h8500 is obsolete.
10983
10984 2003-02-04 David Carlton <carlton@math.stanford.edu>
10985
10986 * objfiles.c (allocate_objfile): Always set name. Add comment at
10987 start of function.
10988 * jv-lang.c (get_dynamics_objfile): Add comment.
10989
10990 2003-02-04 David Carlton <carlton@math.stanford.edu>
10991
10992 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10993 * printcmd.c (build_address_symbolic): Replace uses of
10994 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10995 SYMBOL_NAME, and asm_demangle.
10996 Update copyright.
10997
10998 2003-02-04 David Carlton <carlton@math.stanford.edu>
10999
11000 * linespec.c (decode_compound): Extract code into
11001 lookup_prefix_sym.
11002 (lookup_prefix_sym): New function.
11003
11004 2003-02-04 David Carlton <carlton@math.stanford.edu>
11005
11006 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11007 FLOAT_COERCION_BADNESS.
11008 * gdbtypes.c (rank_one_type): Replace all uses of
11009 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11010
11011 2003-02-04 Jim Blandy <jimb@redhat.com>
11012
11013 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11014 section, let dwarf_macinfo_section point to it, not
11015 dwarf_loc_section.
11016
11017 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11018
11019 Pointed out by Anton Blanchard <anton@samba.org>.
11020 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11021 (ppc_linux_at_sigtramp_return_path): Use it.
11022
11023 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11024
11025 * defs.h (streq): Add prototype.
11026 * utils.c (streq): New function.
11027
11028 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11029 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11030 * mdebugread.c (new_symbol): Likewise.
11031 * stabsread.c (define_symbol): Likewise.
11032 * coffread.c (process_coff_symbol): Likewise.
11033 * dwarfread.c (new_symbol): Likewise.
11034
11035 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11036 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11037 here.
11038 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11039 SYMBOL_INIT_DEMANGLED_NAME.
11040 * objfiles.c: Include "hashtab.h".
11041 (allocate_objfile): Call htab_set_functions_ex for the
11042 demangled_names_hash.
11043 (free_objfile): Call htab_delete for the demangled_names_hash.
11044 * objfiles.h (struct htab): Add declaration.
11045 (struct objfile): Add demangled_names_hash.
11046 * symfile.c: Include "hashtab.h".
11047 (reread_symbols): Call htab_delete for the demangled_names_hash.
11048 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11049 SYMBOL_NAME in the bcache.
11050 * symtab.c: Include "hashtab.h". Update comments.
11051 (create_demangled_names_hash, symbol_set_names): New functions.
11052 (symbol_find_demangled_name): New function, broken out from
11053 symbol_init_demangled_names.
11054 (symbol_init_demangled_names): Use it.
11055 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11056 (SYMBOL_SET_NAMES): New macro.
11057 (symbol_set_names): Add prototype.
11058
11059 2003-02-03 Jim Blandy <jimb@redhat.com>
11060
11061 Use a single, consistent representation for an empty minimal
11062 symbol table in an objfile.
11063 * objfiles.c (terminate_minimal_symbol_table): New function.
11064 (allocate_objfile): Call it.
11065 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11066 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11067 non-NULL.
11068 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11069 objfile has minimal symbols, compare minimal_symbol_count to zero,
11070 instead of comparing msymbols with NULL.
11071 * objfiles.c (have_minimal_symbols): Same.
11072 * solib-sunos.c (solib_add_common_symbols): Call
11073 terminate_minimal_symbol_table.
11074 * symfile.c (reread_symbols): Same.
11075
11076 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11077
11078 * s390-tdep.c (s390_address_class_type_flags)
11079 (s390_address_class_type_flags_to_name)
11080 (s390_address_class_name_to_type_flags): New functions.
11081 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11082 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11083
11084 2003-02-03 Michael Snyder <msnyder@redhat.com>
11085
11086 * arm-tdep.c: Fix spell-o in comment.
11087
11088 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11089
11090 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11091 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11092 error messages to contain BFD filename.
11093
11094 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11095
11096 Fix PR gdb/742 gdb/743 gdb/877
11097 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11098 (do_mixed_source_and_assembly): Use
11099 make_cleanup_ui_out_tuple_begin_end and
11100 make_cleanup_ui_out_tuple_begin_end.
11101 (do_mixed_source_and_assembly): Ditto.
11102 * thread.c (do_captured_list_thread_ids): Ditto.
11103 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11104 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11105 ui_out_tuple_end): Delete prototypes.
11106 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11107 ui_out_list_end, ui_out_tuple_end): Delete.
11108
11109 From Kevin Buettner <kevinb@redhat.com>:
11110 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11111 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11112 (do_cleanup_table_end): New functions.
11113 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11114 Use cleanups to invoke_ui_out_tuple_end().
11115 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11116 * cli/cli-setshow.c (cmd_show_list): Use
11117 make_cleanup_ui_out_tuple_begin_end.
11118
11119 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11120
11121 * frame.c (frame_unwind_register): New function.
11122 (frame_unwind_unsigned_register): Use.
11123 (frame_unwind_signed_register): Use.
11124 (frame_read_register): New function.
11125 * frame.h (frame_unwind_register): Declare.
11126 (frame_read_register): Declare.
11127
11128 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11129 and frame_unwind_register instead of read_memory, write_register
11130 and deprecated_write_register_bytes.
11131
11132 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11133
11134 * frame.h: Note that namelen can be negative.
11135 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11136 NAME's length.
11137
11138 * NEWS: Mention that the d10v's `regs' command is deprecated.
11139 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11140 (d10v_print_registers_info): New function.
11141 (show_regs): Call d10v_print_registers_info.
11142 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11143
11144 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11145
11146 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11147 lost in the previous patch.
11148
11149 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11150
11151 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11152 * stack.c (print_frame_info_base): Output complete FRAME tuple
11153 for synthesized frames.
11154
11155 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11156
11157 * mips-nat.c (zerobuf): Delete.
11158 (fetch_inferior_registers): Alloc local zerobuf.
11159 (fetch_core_registers): Alloc local zerobuf.
11160 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11161 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11162 * thread-db.c (thread_db_store_registers): Ditto.
11163 * sh-tdep.c (sh_do_register): Ditto.
11164 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11165 * remote-sim.c (gdbsim_store_register): Ditto.
11166 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11167 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11168 * monitor.c (monitor_supply_register): Ditto.
11169 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11170 * mips-nat.c (fetch_inferior_registers): Ditto.
11171 * m68klinux-nat.c (fetch_register): Ditto.
11172 * lynx-nat.c (fetch_inferior_registers): Ditto.
11173 (fetch_inferior_registers): Ditto.
11174 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11175 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11176 (hpux_thread_store_registers): Ditto.
11177 * hppah-nat.c (fetch_register): Ditto.
11178 * hppab-nat.c (fetch_register): Ditto.
11179 * hppa-tdep.c (pa_register_look_aside): Ditto.
11180 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11181 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11182
11183 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11184
11185 * gdbarch.sh: Explictly specify all method levels. When a
11186 variable with an empty level, provide a non-multi-arch default.
11187 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11188 * gdbarch.h: Re-generate.
11189 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11190 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11191
11192 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11193
11194 * defs.h (host_pointer_to_address): Delete declaration.
11195 (address_to_host_pointer): Delete declaration.
11196 * utils.c (host_pointer_to_address): Delete function.
11197 (address_to_host_pointer): Delete function.
11198 * procfs.c (procfs_address_to_host_pointer): New function.
11199 * procfs.c (proc_set_watchpoint): Use.
11200 (procfs_can_use_hw_breakpoint): Update comments.
11201 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11202 (som_solib_add): Use.
11203 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11204 * hppa-tdep.c (unwind_command): Use.
11205
11206 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11207
11208 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11209 strlen d_name.
11210
11211 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11212 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11213 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11214 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11215 (define_symbol): Update.
11216 * symfile.c (generic_load): Remove references to nindy.
11217 * symtab.c: Remove references to nindy.
11218
11219 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11220
11221 * infcmd.c (print_float_info): Delete code conditional on
11222 FLOAT_INFO.
11223 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11224 * config/m68k/nm-apollo68b.h: Ditto.
11225 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11226 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11227 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11228
11229 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11230
11231 * config/i386/tm-i386os9k.h: Removed.
11232
11233 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11234 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11235 they're identical to i[3456]86-*-sysv* now.
11236 * config/i386/i386v32.mh: Removed.
11237 * config/i386/xm-i386v32.h: Removed.
11238 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11239
11240 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11241
11242 * config/i386/i386dgux.mh: Removed.
11243 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11244
11245 * configure.in: Fix typo.
11246 * configure: Regenerated.
11247
11248 2003-01-31 David Carlton <carlton@math.stanford.edu>
11249
11250 * dwarf2read.c (dwarf2_locate_sections): Set
11251 dwarf_ranges_section.
11252
11253 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11254
11255 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11256 * utils.c: Update comments documenting legitimate uses of PTR.
11257
11258 * utils.c: Re-indent.
11259
11260 * config/djgpp/fnchange.lst: Delete nindy files.
11261 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11262 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11263 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11264 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11265 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11266 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11267 * Makefile.in (init.c): Remove nindy references.
11268 (saber_gdb): Delete rule.
11269 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11270 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11271 and a68v-nat.c.
11272 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11273 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11274 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11275 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11276 nindy-share/stop.h.
11277 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11278 * saber.suppress: Delete file.
11279
11280 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11281
11282 * dbxread.c (stabs_data): New static variable.
11283 (fill_symbuf): Support an in-memory buffer for stabs data.
11284 (stabs_seek): New function.
11285 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11286 (read_ofile_symtab): Use stabs_seek.
11287 (elfstab_build_psymtabs): Take an asection* instead of
11288 an offset and size. Relocate the stabs data if necessary.
11289 Save the section* for dbx_psymtab_to_symtab.
11290 * dwarf2read.c: Add section variables for each debug section.
11291 (dwarf2_locate_sections): Fill them in.
11292 (dwarf2_read_section): Take an asection* argument.
11293 Relocate the section contents if necessary.
11294 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11295 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11296 it to dwarf2_read_section.
11297 (dwarf2_build_frame_info): Update callers.
11298 * elfread.c (elf_symfile_read): Update call to
11299 elfstab_build_psymtabs.
11300 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11301 (DBX_STAB_SECTION): New macro.
11302 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11303 * symfile.c (symfile_dummy_outputs): New function.
11304 (symfile_relocate_debug_section): New function.
11305 * symfile.h (symfile_relocate_debug_section): Add prototype.
11306
11307 2003-01-31 Richard Henderson <rth@redhat.com>
11308
11309 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11310 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11311 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11312 * alpha-tdep.c (alpha_register_name): Add "unique".
11313 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11314 (ALPHA_UNIQUE_REGNUM): New.
11315 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11316
11317 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11318
11319 * README: Remove reference to Ericsson 1800 monitor.
11320 * Makefile.in (remote-es.o): Delete rule.
11321 (ALLDEPFILES): Delete remote-es.c.
11322 * remote-es.c: Delete file.
11323 * config/m68k/es1800.mt: Delete file.
11324 * config/djgpp/fnchange.lst: Update.
11325 * configure.tgt: Delete m68*-ericsson-* target.
11326
11327 2003-01-31 Adam Fedor <fedor@gnu.org>
11328
11329 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11330 Remove duplicate/shadowing variable of same name.
11331
11332 2003-01-30 Jim Blandy <jimb@redhat.com>
11333
11334 * symfile.c (find_separate_debug_file): Assert that the objfile's
11335 directory name we compute ends with a slash, and then assume that
11336 that's so everywhere we use it.
11337
11338 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11339
11340 * valops.c (value_assign): Flush frame cache after stores to memory
11341 also.
11342
11343 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11344
11345 * Makefile.in (mon960-rom.o): Delete rule.
11346 * mon960-rom.c: Delete file.
11347
11348 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11349
11350 * d10v-tdep.c: Include "frame-unwind.h".
11351 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11352 list.
11353 (next_addr, uses_frame): Delete.
11354 (struct d10v_unwind_cache): Define.
11355 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11356 Use info instead of next_addr and uses_frame globals.
11357 (d10v_frame_init_saved_regs): Delete function.
11358 (d10v_init_extra_frame_info): Delete function.
11359 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11360 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11361 init_frame_pc or frame_saved_pc.
11362 (d10v_pop_frame): Delete function.
11363 (do_d10v_pop_frame): Delete function.
11364 (d10v_frame_chain): Delete function.
11365 (d10v_frame_chain_valid): Delete function.
11366 (d10v_frame_pc_unwind): New function.
11367 (d10v_frame_id_unwind): New function.
11368 (saved_regs_unwinder): New function.
11369 (d10v_frame_register_unwind): New function.
11370 (d10v_frame_pop): New function.
11371 (d10v_frame_unwind): New variable.
11372 (d10v_frame_p): New function.
11373 (d10v_frame_saved_pc): Delete function.
11374 * Makefile.in (d10v-tdep.o): Update dependencies.
11375
11376 2003-01-30 J. Brobecker <brobecker@gnat.com>
11377
11378 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11379 causing some regressions due to a change in the default value
11380 for this macro.
11381
11382 2003-01-29 Richard Henderson <rth@redhat.com>
11383 Elena Zannoni <ezannoni@redhat.com>
11384 Daniel Jacobowitz <drow@mvista.com>
11385
11386 Fix PR gdb/961.
11387 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11388 variables.
11389 (RANGES_SECTION): New.
11390 (dwarf_ranges_buffer): New variable.
11391 (struct comp_unit_head): Add member "die".
11392 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11393 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11394 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11395 (dwarf2_locate_sections): Likewise.
11396 (dwarf2_build_psymtabs): Read .debug_ranges.
11397 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11398 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11399 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11400 Look for DW_AT_ranges and return the bounding box.
11401
11402 2003-01-29 Brian Ford <ford@vss.fsi.com>
11403
11404 * win32-nat.c (cygwin_pid): Removed as unused.
11405 (child_attach): Try fall back to Cygwin pid.
11406
11407 2003-01-29 Jim Blandy <jimb@redhat.com>
11408
11409 * objfiles.h (struct objfile): Doc fix.
11410
11411 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11412
11413 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11414 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11415 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11416 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11417 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11418 (FRAME_SAVED_PC): Change to a function with predicate.
11419 * gdbarch.h, gdbarch.c: Re-generate.
11420
11421 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11422
11423 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11424
11425 * complaints.c (complain): Delete function.
11426 * complaints.h (struct deprecated_complaint): Delete definition.
11427 (complain): Delete declaration.
11428
11429 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11430
11431 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11432 dummy frames.
11433
11434 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11435
11436 * sentinel-frame.h, sentinel-frame.c: New files.
11437 * Makefile.in (frame.o): Update dependencies.
11438 (SFILES): Add sentinel-frame.c.
11439 (sentinel_frame_h): Define.
11440 (COMMON_OBS): Add sentinel-frame.o.
11441 (sentinel-frame.o): Specify dependencies.
11442 * frame.c: Include "sentinel-frame.h".
11443 (frame_register_unwind): Rewrite assuming that there is always a a
11444 ->next frame.
11445 (frame_register, generic_unwind_get_saved_register): Ditto.
11446 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11447 (create_sentinel_frame, unwind_to_current_frame): New functions.
11448 (get_current_frame): Rewrite using create_sentinel_frame and
11449 unwind_to_current_frame. When possible, always create a frame.
11450 (create_new_frame): Set next to the sentinel frame.
11451 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11452 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11453 ID cache when necessary.
11454 (frame_saved_regs_id_unwind): Use frame_relative_level.
11455 (deprecated_generic_get_saved_register): Use frame_relative_level,
11456 get_frame_saved_regs, get_frame_pc, get_frame_base and
11457 get_next_frame.
11458 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11459 frame_register.
11460
11461 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11462
11463 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11464
11465 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11466
11467 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11468 (maintenance_set_profile_cmd): Use error () instead of warning ().
11469
11470 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11471
11472 * configure.in: Check that -pg works if using --enable-profiling.
11473 Check for monstartup and _mcleanup regardless of --enable-profiling.
11474 * maint.c: Check for monstartup and _mcleanup before using them.
11475 * config.in: Regenerated.
11476 * configure: Regenerated.
11477
11478 2003-01-24 Nick Clifton <nickc@redhat.com>
11479
11480 * Add sh2e support:
11481
11482 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11483
11484 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11485 (sh2e_show_regs): New.
11486 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11487 * config/sh/tm-sh.h: Added sh2e to comments.
11488
11489 2003-01-23 Jim Blandy <jimb@redhat.com>
11490
11491 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11492 symbols found)" message here; we haven't checked for a separate
11493 debug info file yet, so we don't know yet.
11494 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11495 we've looked everywhere. Also, there's no need to print a special
11496 message when we're loading the separate debug info file: the one
11497 symbol_file_add prints is fine.
11498
11499 2003-01-23 Alexander Larsson <alexl@redhat.com>
11500 Jim Blandy <jimb@redhat.com>
11501
11502 Add support for executables whose debug info has been separated
11503 out into a separate file, leaving only a link behind.
11504 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11505 and separate_debug_objfile_backlink.
11506 (put_objfile_before): New declaration.
11507 * symfile.c: #include "filenames.h".
11508 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11509 debug info in a separate file, read that, too. Save the addrs
11510 argument, so we can use it again to read the separated debug info;
11511 syms_from_objfile modifies the table we pass it.
11512 (reread_symbols): After re-reading an objfile, call
11513 reread_separate_symbols to refresh its separate debug info
11514 objfile, if it has one.
11515 (reread_separate_symbols, find_separate_debug_file,
11516 get_debug_link_info, separate_debug_file_exists): New functions.
11517 (debug_file_directory): New global var.
11518 (_initialize_symfile): Initialize debug_file_directory, and
11519 provide the new `set debug-file-directory' command to let the user
11520 change it.
11521 * objfiles.c (free_objfile): If this objfile has its debug info in
11522 a separate objfile, free that one too. If this is itself a
11523 separate debug info objfile, clear our parent's backlink.
11524 (put_objfile_before): New function.
11525 * utils.c (gnu_debuglink_crc32): New function.
11526 * defs.h (gnu_debuglink_crc32): New declaration.
11527 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11528 * configure.in: Handle --with-separate-debug-dir config option.
11529 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11530 * acconfig.h (DEBUGDIR): New macro.
11531 * configure, aclocal.m4, config.in: Regenerated.
11532
11533 2003-01-22 Jim Blandy <jimb@redhat.com>
11534
11535 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11536 like the old symbol_file_add, but taking new arguments: you can
11537 now pass in either a `struct section_addr_info' list to say where
11538 each section is loaded, or a `struct section_offsets' table. Pass
11539 these new arguments through to syms_from_objfile as appropriate.
11540 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11541 with the appropriate quiescent values for the new arguments.
11542
11543 * symfile.c: #include "gdb_assert.h".
11544 (syms_from_objfile): Add the ability to pass in a section offset
11545 table directly, as an alternative to the section_addr_info table.
11546 Document arguments better.
11547 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11548 * symfile.h (syms_from_objfile): Update declaration.
11549 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11550 syms_from_objfile.
11551 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11552
11553 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11554
11555 Original patch by Tom Tromey <tromey@cygnus.com> and
11556 Jason Molenda <jmolenda@apple.com>.
11557 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11558 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11559 * NEWS: Mention profiling.
11560 * configure.in (--enable-gdbtk): Fix typo.
11561 (--enable-profiling): New. Set PROFILE_CFLAGS.
11562 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11563 Fill in function.
11564 (profiling_state): New variable.
11565 (mcleanup_wrapper): New function.
11566 (_initialize_maint): Remove NOTYET, fix call to
11567 add_setshow_boolean_cmd for "maint set profile".
11568 * configure: Regenerated.
11569
11570 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11571
11572 * Makefile.in (install-gdbtk): Install PNG images too.
11573
11574 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11575
11576 * exec.c (text_start): Delete global variable.
11577 (exec_file_attach): Make text_start local to the function.
11578 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11579 * valops.c (hand_function_call): Delete code that handles
11580 BEFORE_TEXT_END and AFTER_TEXT_END.
11581 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11582 of CALL_DUMMY_LOCATION.
11583 * gdbarch.c: Regenerate.
11584 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11585 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11586 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11587 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11588 (text_end): Delete extern declaration.
11589
11590 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11591
11592 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11593 * blockframe.c (backtrace_below_main): Move to "frame.c".
11594 (frame_chain_valid): Delete check for backtrace_below_main.
11595 (_initialize_blockframe): Delete initialization, move ``set
11596 backtrace-below-main'' command to "frame.c".
11597 (do_flush_frames_sfunc): Delete function.
11598 * frame.c: Include "command.h" and "gdbcmd.h".
11599 (frame_type_from_pc): New function.
11600 (create_new_frame): Use frame_type_from_pc.
11601 (legacy_get_prev_frame): New function.
11602 (get_prev_frame): Rewrite. When an old style frame, call
11603 legacy_get_prev_frame. Otherwize, unwind the PC first.
11604 (_initialize_frame): Add ``set backtrace-below-main'' command.
11605 * Makefile.in (frame.o): Update dependencies.
11606
11607 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11608
11609 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11610 DEPRECATED_REGISTERS_INFO.
11611
11612 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11613
11614 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11615 Maintainers'. Update `Various Maintainers'.
11616
11617 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11618
11619 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11620 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11621 Suppress actual parameters when `-'.
11622 * gdbarch.h, gdbarch.c: Regenerate.
11623
11624 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11625
11626 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11627 code handling dummy frames.
11628
11629 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11630
11631 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11632 (struct frame_unwind): Add field pop.
11633 * frame.h (frame_pop): Declare.
11634 * frame.c (frame_saved_regs_pop): New function.
11635 (trad_frame_unwinder): Add frame_saved_regs_pop.
11636 (frame_pop): New function.
11637 * dummy-frame.c (dummy_frame_pop): New function.
11638 (discard_innermost_dummy): New function.
11639 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11640 (dummy_frame_unwind): Add dummy_frame_pop.
11641 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11642 * valops.c (hand_function_call): Ditto.
11643 * stack.c (return_command): Ditto.
11644
11645 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11646
11647 * cris-tdep.c: Fix function declaration indentation.
11648 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11649 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11650 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11651 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11652 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11653 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11654
11655 2003-01-18 Michael Chastain <mec@shout.net>
11656
11657 * README (Unpacking and Installation -- quick overview):
11658 Warn against ".../gdb-5.3/gdb/configure".
11659
11660 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11661
11662 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11663 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11664 (struct frame_unwind): Declare opaque.
11665 (dummy_frame_p): Declare function.
11666 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11667 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11668 * dummy-frame.c: Include "frame-unwind.h".
11669 (dummy_frame_p): New function.
11670 (dummy_frame_unwind): New variable.
11671 * frame.c: Include "frame-unwind.h".
11672 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11673 to use the new unwind field.
11674 (set_unwind_by_pc): Delete function.
11675 (create_new_frame, get_prev_frame): Set unwind field using
11676 frame_unwind_find_by_pc.
11677 (trad_frame_unwind, trad_frame_unwinder): New variables.
11678 * frame.h (trad_frame_unwind): Declare variable.
11679 (frame_id_unwind_ftype): Delete declaration.
11680 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11681 (struct frame_unwind): Declare opaque.
11682 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11683 register_unwind with a single unwind pointer.
11684 * frame-unwind.h, frame-unwind.c: New files.
11685 * Makefile.in (SFILES): Add frame-unwind.c.
11686 (frame_unwind_h): Define.
11687 (COMMON_OBS): Add frame-unwind.o.
11688 (frame-unwind.o): Specify dependencies.
11689 (frame.o, dummy-frame.o): Update dependencies.
11690
11691 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11692
11693 * ada-valprint.c: Eliminate PTR.
11694 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11695 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11696 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11697 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11698 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11699 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11700 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11701
11702 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11703
11704 * main.c (captured_main): Don't use PTR.
11705 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11706 * gdbtypes.c (lookup_primitive_typename): Ditto.
11707 (lookup_struct_elt_type): Ditto.
11708 * f-valprint.c (info_common_command): Ditto.
11709 (list_all_visible_commons): Ditto.
11710 * jv-typeprint.c (java_type_print_base): Ditto.
11711
11712 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11713 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11714 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11715 i386-interix-nat.c and i386-interix-tdep.c. Rename
11716 m68klinux-nat.c and m68klinux-tdep.c. Rename
11717 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11718 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11719 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11720 * main.c (captured_main): Use xfree, not free.
11721
11722 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11723
11724 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11725 ID back using a parameter.
11726 * frame.c (frame_id_unwind): Update call.
11727 (frame_saved_regs_id_unwind): Update.
11728 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11729 * dummy-frame.h (struct frame_id): Add opaque declaration.
11730 (dummy_frame_id_unwind): Update declaration.
11731
11732 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11733
11734 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11735
11736 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11737
11738 * MAINTAINERS (Stephen P. Smith): Updated email address.
11739
11740 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11741
11742 Fix PR gdb/898
11743 * breakpoint.c (until_break_command): Add new argument. Use it to
11744 decide whether to stop only at the current frame or not.
11745 * breakpoint.h (until_break_command): Update prototype.
11746 * infcmd.c (until_command): Add new argument to until_break_command
11747 call.
11748 (advance_command): New function.
11749 (_initialize_infcmd): Update help string for 'until' command.
11750 Add new 'advance' command.
11751
11752 2003-01-14 David Carlton <carlton@math.stanford.edu>
11753
11754 * linespec.c (decode_line_1): Normalize comments.
11755 (set_flags): Ditto.
11756 (locate_first_half): Ditto.
11757 (decode_compound): Ditto.
11758 (symtab_from_filename): Ditto.
11759 (decode_all_digits): Ditto.
11760 (decode_dollar): Ditto.
11761 (find_methods): Ditto.
11762 (find_toplevel_char): Ditto.
11763
11764 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11765
11766 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11767 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11768 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11769 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11770 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11771 * language.c, language.h, m32r-tdep.c: Update copyright.
11772 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11773 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11774 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11775 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11776 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11777 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11778
11779 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11780
11781 * stabsread.h (process_later, resolve_cfront_continuation):
11782 Obsolete.
11783 Update copyright years.
11784 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11785 Update copyright year.
11786 * dbxread.c(struct cont_elem): Obsolete.
11787 (process_later, process_now): Obsolete functions.
11788 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11789 Update copyright year.
11790 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11791 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11792 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11793 (parse_partial_symbols): Obsolete cfront support.
11794 * stabsread.c
11795 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11796 macros.
11797 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11798 read_cfront_baseclasses, read_cfront_member_functions,
11799 resolve_cfront_continuation,read_cfront_static_fields,
11800 copy_cfront_struct_fields): Obsolete functions.
11801 (define_symbol, read_one_struct_field): Obsolete cfront support.
11802 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11803 Update Copyright year.
11804
11805 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11806
11807 * stack.c (print_frame_info, print_stack_frame_base_stub,
11808 print_stack_frame_base, show_and_print_stack_frame_stub,
11809 show_and_print_stack_frame, print_only_stack_frame_stub,
11810 print_only_stack_frame): Delete functions.
11811 (print_stack_frame_stub): Call print_frame_info instead of
11812 print_frame_info_base.
11813 (print_frame_info_base): Rename to print_frame_info.
11814 (backtrace_command_1): Call print_frame_info, instead of
11815 print_frame_info_base.
11816 (current_frame_command): Call print_stack_frame, instead of
11817 print_only_stack_frame.
11818 (frame_command): Call print_stack_frame, instead of
11819 show_and_print_stack_frame.
11820 (up_command): Ditto.
11821 (down_command): Ditto.
11822 * frame.h (print_only_stack_frame): Delete prototype.
11823 * infrun.c (normal_stop): Call print_stack_frame, instead of
11824 show_and_print_stack_frame.
11825 * thread.c (info_threads_command): Call print_stack_frame, instead
11826 of print_only_stack_frame.
11827
11828 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11829
11830 * README (Graphical interface to GDB): Update URL. Point at
11831 gdb/links/.
11832
11833 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11834 version match.
11835
11836 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11837
11838 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11839 lines.
11840
11841 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11842
11843 * thread-db.c (attach_thread): Prototype.
11844 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11845 thread information (ti), and valid flags (th_valid, ti_valid).
11846 (attach_thread): Move target_pid_to_str call to after the thread
11847 is added to GDB's list. Initialize the cache.
11848 (thread_get_info_callback, thread_db_map_id2thr)
11849 (thread_db_get_info): New functions.
11850 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11851 (thread_db_store_registers, thread_db_thread_alive)
11852 (thread_db_get_thread_local_address): Use them.
11853 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11854 of calling error() for threads in unknown state.
11855
11856 (clear_lwpid_callback): New function.
11857 (thread_db_resume): Use it to clear the cache.
11858
11859 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11860
11861 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11862 (resume_callback): Remove dead code.
11863
11864 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11865
11866 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11867 predicate.
11868 * gdbarch.h, gdbarch.c: Regenerate.
11869 * stack.c (frame_info): Only initialize the saved registers when
11870 FRAME_INIT_SAVED_REGS_P.
11871 * frame.c (frame_saved_regs_register_unwind): Assert
11872 FRAME_INIT_SAVED_REGS_P.
11873 (deprecated_generic_get_saved_register): Ditto.
11874
11875 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11876
11877 * source.c (openp): Squelch warning about "filename".
11878
11879 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11880
11881 * source.c (openp): If the file does not exist don't necessarily
11882 search the path.
11883
11884 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11885
11886 Fix PR gdb/872.
11887 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11888 (integer_types_same_name_p): New function.
11889 (rank_one_type): Use it.
11890 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11891
11892 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11893
11894 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11895 variables.
11896 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11897 * configure.in: Add --with-sysroot.
11898 * configure: Regenerated.
11899 * main.c (gdb_sysroot): New variable.
11900 (captured_main): Initialize gdb_sysroot.
11901 * defs.h (gdb_sysroot): New extern declaration.
11902 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11903
11904 2003-01-12 Michael Chastain <mec@shout.net>
11905
11906 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11907
11908 2003-01-12 Michael Chastain <mec@shout.net>
11909
11910 * top.c (print_gdb_version): Bump copyright year to 2003.
11911
11912 2003-01-12 David Carlton <carlton@bactrian.org>
11913
11914 * linespec.c (symtab_from_filename): Rename variable 's' to
11915 'file_symtab'.
11916
11917 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11918
11919 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11920 dummy frame.
11921 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11922
11923 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11924
11925 * d10v-tdep.c: Include "gdb_assert.h".
11926 (d10v_store_return_value): Rewrite to match current interface.
11927 (d10v_extract_struct_value_address): Ditto.
11928 (d10v_extract_return_value): Ditto.
11929 (d10v_gdbarch_init): Set store_restore_value,
11930 extract_struct_value_address and extract_return_value.
11931
11932 2003-01-12 J. Brobecker <brobecker@gnat.com>
11933
11934 * hpread.c (set_namestring): New procedure replacing the
11935 SET_NAMESTRING macro.
11936 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11937 by calls to set_namestring.
11938
11939 2003-01-11 J. Brobecker <brobecker@gnat.com>
11940
11941 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11942 a compilation warning.
11943 (hpread_process_one_debug_symbol): Likewise.
11944
11945 2003-01-10 David Carlton <carlton@math.stanford.edu>
11946
11947 * linespec.c (decode_line_1): Rename variable 's' to
11948 'file_symtab'.
11949 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11950 (decode_dollar): Ditto.
11951 (decode_variable): Ditto.
11952 (symbol_found): Ditto.
11953
11954 2003-01-09 Michael Chastain <mec@shout.net>
11955
11956 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11957
11958 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11959
11960 * win32-nat.c (set_process_privilege): New function.
11961 (child_attach): Call set_process_privilege() to enable the
11962 SE_DEBUG_NAME user privilege if available in process token.
11963
11964 2003-01-10 J. Brobecker <brobecker@gnat.com>
11965
11966 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11967 compilation error in the previous revision.
11968
11969 2003-01-09 David Carlton <carlton@math.stanford.edu>
11970
11971 * linespec.c: Update copyright.
11972
11973 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11974
11975 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11976 than inferior_ptid.
11977 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11978
11979 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11980
11981 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11982 Update comments.
11983 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11984 (frame_saved_regs_zalloc): Update.
11985 (frame_saved_regs_register_unwind): Update.
11986 (create_new_frame): Update.
11987 (get_prev_frame): Update.
11988 (frame_extra_info_zalloc): Update.
11989 (deprecated_get_frame_saved_regs): Update.
11990 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11991 * cris-tdep.c: Update comment.
11992
11993 * somsolib.h: Fix function indentation.
11994 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11995 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11996 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11997 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11998 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11999
12000 * infrun.c (follow_fork): Use ISO C definition.
12001 * expprint.c (print_subexp): Use xfree instead of free.
12002 * charset.c: Include "gdb_string.h" instead of <string.h>.
12003 (register_iconv_charsets): Use ISO C definition.
12004 (host_charset, target_charset): Ditto.
12005 * Makefile.in (charset.o): Update dependencies.
12006 (mi-cmd-env.o): Update dependencies.
12007
12008 2003-01-08 Andrew Cagney <cagney@redhat.com>
12009
12010 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12011 get_frame_base.
12012
12013 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12014
12015 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12016 build directories. Save edited gdb output in Mbuild.log. If a
12017 build fails, remove any final GDB executable.
12018
12019 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12020
12021 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12022 replacing hex constants with function names and stripping leading
12023 file name directory prefixes.
12024
12025 2003-01-08 Andrew Cagney <cagney@redhat.com>
12026
12027 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12028 get_frame_base.
12029
12030 2003-01-08 David Carlton <carlton@math.stanford.edu>
12031
12032 * linespec.c (decode_line_1): Move code into decode_variable.
12033 (decode_variable): New function.
12034
12035 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12036
12037 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12038
12039 2003-01-08 Andrew Cagney <cagney@redhat.com>
12040
12041 * cris-tdep.c (cris_frame_init_saved_regs): Use
12042 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12043 saved_regs buffer.
12044 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12045 (sh64_nofp_frame_init_saved_regs): Ditto.
12046 (sh_fp_frame_init_saved_regs): Ditto.
12047 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12048 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12049 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12050 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12051
12052 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12053
12054 * minsyms.c (lookup_minimal_symbol): Update comment.
12055 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12056 (lookup_minimal_symbol_solib_trampoline): Likewise.
12057
12058 2003-01-08 Andrew Cagney <cagney@redhat.com>
12059
12060 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12061 frame_relative_level.
12062
12063 * alpha-tdep.c: Use get_frame_extra_info.
12064 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12065 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12066 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12067 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12068
12069 * alpha-tdep.c: Use get_next_frame.
12070 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12071 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12072 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12073 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12074 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12075 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12076 * xstormy16-tdep.c: Ditto.
12077
12078 2003-01-07 Andrew Cagney <cagney@redhat.com>
12079
12080 * alpha-tdep.c: Use get_frame_base.
12081 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12082 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12083 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12084 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12085 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12086 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12087 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12088 * config/sparc/tm-sparc.h: Ditto.
12089
12090 2003-01-07 Andrew Cagney <cagney@redhat.com>
12091
12092 * frame.c (deprecated_get_frame_context): New function.
12093 (deprecated_set_frame_context): New function.
12094 * frame.h (deprecated_get_frame_context): Declare.
12095 (deprecated_set_frame_context): Declare.
12096 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12097 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12098
12099 2003-01-07 Andrew Cagney <cagney@redhat.com>
12100
12101 * frame.c (deprecated_set_frame_next_hack): New function.
12102 (deprecated_set_frame_prev_hack): New function.
12103 * frame.h (deprecated_set_frame_next_hack): Declare.
12104 (deprecated_set_frame_prev_hack): Declare.
12105 * mcore-tdep.c (analyze_dummy_frame): Use
12106 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12107 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12108
12109 2003-01-07 David Carlton <carlton@math.stanford.edu>
12110
12111 * linespec.c (decode_line_1): Move code into decode_dollar.
12112 (decode_dollar): New function.
12113
12114 2003-01-07 Andrew Cagney <cagney@redhat.com>
12115
12116 * arm-tdep.c (arm_init_extra_frame_info): Use
12117 deprecated_update_frame_base_hack.
12118 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12119 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12120 (fix_frame_pointer): Ditto.
12121 (mn10300_analyze_prologue): Ditto.
12122
12123 2003-01-07 Andrew Cagney <cagney@redhat.com>
12124
12125 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12126 extra_info using frame_extra_info_zalloc.
12127 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12128 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12129 (sh64_init_extra_frame_info): Ditto.
12130 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12131 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12132 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12133 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12134 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12135 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12136 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12137 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12138 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12139 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12140 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12141 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12142
12143 * mn10300-tdep.c (analyze_dummy_frame): Use
12144 deprecated_set_frame_extra_info_hack.
12145 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12146
12147 2003-01-07 J. Brobecker <brobecker@gnat.com>
12148
12149 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12150 class is not scText. These do not define "real" procedures.
12151 (parse_partial_symbols): Likewise.
12152
12153 2003-01-06 Michael Snyder <msnyder@redhat.com>
12154
12155 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12156
12157 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12158
12159 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12160 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12161 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12162 deprecated_frame_xmalloc_with_cleanup.
12163 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12164 deprecated_frame_xmalloc.
12165 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12166 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12167
12168 2003-01-06 Andrew Cagney <cagney@redhat.com>
12169
12170 * x86-64-linux-tdep.c: Include "osabi.h".
12171 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12172
12173 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12174
12175 2003-01-06 Andrew Cagney <cagney@redhat.com>
12176
12177 * MAINTAINERS (Target Instruction Set Architectures): Update
12178 arm-elf. Can be built with -Werror, has been multiarched.
12179
12180 * value.h (unpack_long): Make buffer parameter constant.
12181 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12182 * scm-lang.h (scm_parse): Ditto.
12183 * defs.h (extract_typed_address, extract_address): Ditto.
12184 (extract_long_unsigned_integer): Ditto.
12185 * inferior.h (unsigned_pointer_to_address): Ditto.
12186 (signed_pointer_to_address): Ditto.
12187 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12188 * gdbarch.h, gdbarch.c: Regenerate.
12189 * findvar.c (extract_long_unsigned_integer): Update.
12190 (extract_address): Update.
12191 (extract_typed_address): Update.
12192 (unsigned_pointer_to_address): Update.
12193 * values.c (unpack_long): Update.
12194 (unpack_double): Update.
12195 (unpack_pointer): Update.
12196 (unpack_field_as_long): Update.
12197 * d10v-tdep.c (d10v_pointer_to_address): Update.
12198 * avr-tdep.c (avr_pointer_to_address): Update.
12199 * scm-lang.c (scm_unpack): Update.
12200 * findvar.c (signed_pointer_to_address): Update.
12201
12202 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12203
12204 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12205 since it is in i386-tdep.c.
12206
12207 2003-01-06 J. Brobecker <brobecker@gnat.com>
12208
12209 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12210 failure introduced in the previous change.
12211
12212 2003-01-05 Michael Chastain <mec@shout.net>
12213
12214 * README: Remove references to deleted remote-*.c files:
12215 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12216 remote-nrom.c, remote-os9k.c, remote-udi.c.
12217
12218 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12219
12220 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12221 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12222 i386_get_longjmp_target.
12223
12224 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12225
12226 * arm-tdep.c (prologue_cache): Change to a pointer.
12227 (_initialize_arm_tdep): Allocate prologue_cache.
12228 (check_prologue_cache): Update.
12229 (save_prologue_cache): Update.
12230 (arm_gdbarch_init): Update.
12231
12232 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12233
12234 * stabsread.c (update_method_name_from_physname): Call complaint()
12235 instead of error.
12236
12237 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12238
12239 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12240 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12241 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12242
12243 * blockframe.c: Include "gdbcmd.h" and "command.h".
12244 (backtrace_below_main): New variable.
12245 (file_frame_chain_valid, func_frame_chain_valid)
12246 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12247 (generic_func_frame_chain_valid): Remove functions.
12248 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12249 (_initialize_blockframe): New function.
12250 * Makefile.in (blockframe.o): Update dependencies.
12251 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12252 comment. Call frame_chain_valid ().
12253 * frame.h: Remove old prototypes. Add prototype for
12254 frame_chain_valid and update comments to match.
12255 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12256 Remove old comment.
12257 * gdbarch.h: Regenerated.
12258 * gdbarch.c: Regenerated.
12259
12260 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12261 set_gdbarch_frame_chain_valid.
12262 * avr-tdep.c (avr_gdbarch_init): Likewise.
12263 * cris-tdep.c (cris_gdbarch_init): Likewise.
12264 * frv-tdep.c (frv_gdbarch_init): Likewise.
12265 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12266 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12267 (i386_nw_init_abi): Likewise.
12268 (i386_gdbarch_init): Likewise.
12269 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12270 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12271 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12272 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12273 * mips-tdep.c (mips_gdbarch_init): Likewise.
12274 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12275 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12276 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12277 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12278 * s390-tdep.c (s390_gdbarch_init): Likewise.
12279 * sh-tdep.c (sh_gdbarch_init): Likewise.
12280 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12281 * v850-tdep.c (v850_gdbarch_init): Likewise.
12282 * vax-tdep.c (vax_gdbarch_init): Likewise.
12283 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12284
12285 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12286 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12287 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12288 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12289 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12290 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12291 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12292 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12293
12294 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12295
12296 * Makefile.in (acconfig_h): Remove incorrect macro.
12297 (config_h): Define.
12298 (osabi.o): Update dependencies.
12299 * configure.tgt: Set gdb_osabi based on target triplet.
12300 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12301 * configure: Regenerated.
12302 * config.in: Regenerated.
12303 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12304 (GDB_OSABI_DEFAULT): Define if not already defined.
12305 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12306 (set_osabi_string): New variables.
12307 (gdbarch_register_osabi): Add new OS ABI to
12308 gdb_osabi_available_names.
12309 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12310 (set_osabi, show_osabi): New functions.
12311 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12312
12313 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12314
12315 * arch-utils.c (gdbarch_info_init): Set osabi to
12316 GDB_OSABI_UNINITIALIZED.
12317 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12318 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12319 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12320 * gdbarch.c: Regenerated.
12321 * gdbarch.h: Regenerated.
12322 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12323 there's no BFD.
12324 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12325 * osabi.h (enum gdb_osabi): Move to defs.h.
12326 (gdbarch_init_osabi): Update prototype.
12327 * defs.h (enum gdb_osabi): Moved here.
12328 * Makefile.in: Update dependencies.
12329
12330 * alpha-tdep.h: Don't include "osabi.h".
12331 (struct gdbarch_tdep): Remove osabi member.
12332 * alpha-tdep.c: Include "osabi.h".
12333 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12334 iterate over arches. Update call to gdbarch_init_osabi.
12335 (alpha_dump_tdep): Don't dump osabi.
12336 * alpha-linux-tdep.c: Include "osabi.h".
12337 * alpha-osf1-tdep.c: Include "osabi.h".
12338 * alphafbsd-tdep.c: Include "osabi.h".
12339 * alphanbsd-tdep.c: Include "osabi.h".
12340
12341 * arm-tdep.h: Don't include "osabi.h".
12342 (struct gdbarch_tdep): Remove osabi member.
12343 * arm-tdep.c: Include "osabi.h".
12344 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12345 iterate over arches. Update call to gdbarch_init_osabi.
12346 (arm_dump_tdep): Don't dump osabi.
12347 * arm-linux-tdep.c: Include "osabi.h".
12348 * armnbsd-tdep.c: Include "osabi.h".
12349
12350 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12351 Update call to gdbarch_init_osabi.
12352
12353 * i386-tdep.h: Don't include "osabi.h".
12354 (struct gdbarch_tdep): Remove osabi member.
12355 * i386-tdep.c: Include "osabi.h".
12356 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12357 iterate over arches. Update call to gdbarch_init_osabi.
12358 (i386_dump_tdep): Don't dump osabi.
12359 * i386-linux-tdep.c: Include "osabi.h".
12360 * i386-sol2-tdep.c: Include "osabi.h".
12361 * i386bsd-tdep.c: Include "osabi.h".
12362 * i386gnu-tdep.c: Include "osabi.h".
12363 * i386ly-tdep.c: Include "osabi.h".
12364 * i386nbsd-tdep.c: Include "osabi.h".
12365 * i386obsd-tdep.c: Include "osabi.h".
12366
12367 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12368 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12369 check osabi when iterating over arches. Update call to
12370 gdbarch_init_osabi.
12371 (mips_dump_tdep): Don't dump osabi.
12372
12373 * ns32k-tdep.h: Don't include "osabi.h".
12374 (struct gdbarch_tdep): Remove.
12375 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12376 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12377 allocate tdep. Update call to gdbarch_init_osabi.
12378 (ns32k_dump_tdep): Remove.
12379 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12380 * ns32knbsd-tdep.c: Include "osabi.h".
12381
12382 * ppc-tdep.h: Don't include "osabi.h".
12383 (struct gdbarch_tdep): Remove osabi member.
12384 * rs6000-tdep.c: Include "osabi.h".
12385 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12386 osabi when iterating over arches. Update call to
12387 gdbarch_init_osabi.
12388 (rs6000_dump_tdep): Don't dump osabi.
12389 * ppc-linux-tdep.c: Include "osabi.h".
12390 * ppcnbsd-tdep.c: Include "osabi.h".
12391
12392 * sh-tdep.h: Don't include "osabi.h".
12393 (struct gdbarch_tdep): Remove osabi member.
12394 * sh-tdep.c: Include "osabi.h".
12395 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12396 iterate over arches. Update call to gdbarch_init_osabi.
12397 (sh_dump_tdep): Don't dump osabi.
12398 * shnbsd-tdep.c: Include "osabi.h".
12399
12400 * sparc-tdep.c: Include "osabi.h".
12401 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12402 iterate over arches. Update call to gdbarch_init_osabi.
12403 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12404 tdep structure.
12405
12406 * vax-tdep.h: Don't include "osabi.h".
12407 (struct gdbarch_tdep): Remove.
12408 * vax-tdep.c: Include "osabi.h".
12409 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12410 iterate over arches. Don't allocate tdep. Update call
12411 to gdbarch_init_osabi.
12412 (vax_dump_tdep): Remove.
12413 (_initialize_vax_tdep): Update call to gdbarch_register.
12414
12415 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12416
12417 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12418 entirely.
12419 (breakpoint_re_set_one): Don't fetch the value for a disabled
12420 watchpoint.
12421
12422 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12423
12424 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12425 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12426 (COERCE_FLOAT_TO_DOUBLE): Remove.
12427 * gdbarch.c: Regenerate.
12428 * gdbarch.h: Regenerate.
12429 * Makefile.in: Remove value_h from gdbarch_h.
12430 * valops.c (coerce_float_to_double): New variable.
12431 (default_coerce_float_to_double): Remove.
12432 (standard_coerce_float_to_double): Remove.
12433 (value_arg_coerce): Use coerce_float_to_double.
12434 (_initialize_valops): Add "set coerce-float-to-double".
12435 * value.h (default_coerce_float_to_double): Remove prototype.
12436 (standard_coerce_float_to_double): Remove prototype.
12437
12438 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12439 prototyped.
12440 * mdebugread.c (parse_symbol): Likewise.
12441 * stabsread.c (define_symbol): Mark all functions as prototyped.
12442
12443 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12444 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12445 set_gdbarch_coerce_float_to_double.
12446 * arm-tdep.c (arm_gdbarch_init): Likewise.
12447 * frv-tdep.c (frv_gdbarch_init): Likewise.
12448 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12449 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12450 * mips-tdep.c (mips_gdbarch_init): Likewise.
12451 (mips_coerce_float_to_double): Remove.
12452 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12453 (rs6000_coerce_float_to_double): Remove.
12454 * s390-tdep.c (s390_gdbarch_init): Likewise.
12455 * sh-tdep.c (sh_gdbarch_init): Likewise.
12456 (sh_coerce_float_to_double): Remove.
12457 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12458 (sparc_coerce_float_to_double): Remove.
12459 * v850-tdep.c (v850_gdbarch_init): Likewise.
12460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12461 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12462 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12463 (hppa_coerce_float_to_double): Remove prototype.
12464 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12465
12466 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12467
12468 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12469
12470 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12471
12472 Suggested by Stewart Brown <sb24@avaya.com>:
12473 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12474 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12475 (c_type_print_varspec_suffix): Likewise.
12476
12477 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12478
12479 * configure.in: Don't set and AC_SUBST SUBDIRS.
12480 * configure: Regenerated.
12481
12482 * configure.in: Remove code dealing with shared libraries.
12483 * Makefile.in: Remove HLDFLAGS and HLDENV.
12484 * configure: Regenerated.
12485
12486 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12487
12488 * frame.c (deprecated_frame_xmalloc): New function.
12489 (deprecated_set_frame_saved_regs_hack): New function.
12490 (deprecated_set_frame_extra_info_hack): New function.
12491 * frame.h (deprecated_frame_xmalloc): Declare.
12492 (deprecated_set_frame_saved_regs_hack): Declare.
12493 (deprecated_set_frame_extra_info_hack): Declare.
12494
12495 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12496
12497 * configure.in: Move code that provides the --enable-gdbtk option
12498 right after the code that handles the --enable-tui option, and
12499 polish it somewhat.
12500 * configure: Regenerated.
12501
12502 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12503 AC_CHECK_FUNCS and remove the old check for pread64.
12504 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12505 * acconfig.h (_GNU_SOURCE): Add.
12506 (HAVE_PREAD64): Remove.
12507 * configure, aclocal.m4, config.in: Regenerated.
12508
12509 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12510
12511 * alpha-tdep.c: Use get_frame_saved_regs.
12512 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12513 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12514 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12515 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12516 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12517
12518 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12519
12520 * configure.in: Remove all use of the SUBDIRS variable; add
12521 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12522 code providing the --enable-multi-ice option, and move it right in
12523 front of the code that checks whether gdbserver is supported.
12524 Polish that too.
12525 * configure: Regenerated.
12526 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12527 @SUBDIRS@.
12528
12529 2003-01-03 Andrew Cagney <cagney@redhat.com>
12530
12531 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12532 * avr-tdep.c, cris-tdep.c: Ditto.
12533 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12534 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12535
12536 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12537
12538 * configure.in: Remove --enable-netrom option.
12539 * configure: Regenerated.
12540
12541 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12542
12543 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12544 declaration for `struct re_pattern_buffer' instead.
12545 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12546
12547 2003-01-03 J. Brobecker <brobecker@gnat.com>
12548
12549 * mdebugread.c (parse_symbol): Count until the stEnd matching
12550 the structure name.
12551
12552 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12553
12554 * configure.in: Remove --with-cpu option.
12555 subscripts. Remove evil changequotes here.
12556 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12557 * config.in, configure: Regenerated.
12558
12559 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12560 * configure.in: Cleanup section that sources GDB and BFD configure
12561 subscripts. Remove evil changequotes here.
12562 * config.in, configure: Regenerated.
12563
12564 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12565
12566 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12567 frame accessor methods.
12568 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12569 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12570 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12571 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12572 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12573 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12574 * z8k-tdep.c: Ditto.
12575
12576 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12577
12578 * configure.in: Remove UI_OUT configuration code.
12579 * ada-lang.c: Update assuming UI_OUT is always true.
12580 * Makefile.in (UIOUT_CFLAGS): Remove.
12581 * configure: Regenerated.
12582 * TODO: Remove blurb about elimination of -DUI_OUT.
12583
12584 * configure.in: Move code that provides the --enable-gdbcli,
12585 --enable-gdbmi options right before the code that handles the
12586 --enable-tui option. Polish a bit.
12587 * configure: Regenerated.
12588
12589 * configure.in: Rewrite check for GNU regex and the
12590 --without-included regex option, and move it into the "Checks for
12591 library functions" section. This makes us use the system regex
12592 again by default on systems with version 2 of the GNU C library.
12593 This was apparently broken.
12594 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12595 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12596 * config.in, configure: Regenerated.
12597
12598 * configure.in: Move code that provides the --enable-tui option
12599 before the "Checks for libraries" section. Polish the code
12600 somewhat and set need_curses to yes if we build the TUI. Rewrite
12601 code that looks for a library providing termcap functionality to
12602 match more closely what's done in the Readline library, and move
12603 it into to the "Checks for libraries" section.
12604 * configure: Regenerated.
12605 * Makefile.in (TERMCAP): Remove variable.
12606 * config/i386/go32.mh (TERMCAP): Remove variable.
12607
12608 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12609
12610 * MAINTAINERS: Mention gdb_mbuild.sh.
12611 * gdb_mbuild.sh: Rewrite.
12612
12613 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12614
12615 * configure.in: Fix typo in last change.
12616 * config.in, configure: Regenerated.
12617
12618 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12619
12620 * valarith.c (value_binop): Delete obsolete code and comments.
12621 * configure.host: Ditto.
12622 * buildsym.h (make_blockvector): Ditto.
12623 * buildsym.c (make_blockvector): Ditto.
12624 * defs.h (enum language): Ditto.
12625 (chill_demangle): Ditto.
12626 * elfread.c (elf_symtab_read): Ditto.
12627 * dwarfread.c (CHILL_PRODUCER): Ditto.
12628 (set_cu_language): Ditto.
12629 (handle_producer): Ditto.
12630 * expprint.c (print_subexp): Ditto.
12631 * gdbtypes.c (chill_varying_type): Ditto.
12632 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12633 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12634 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12635 (chill_varying_type): Ditto.
12636 * language.h (_LANG_chill): Ditto.
12637 * language.c (binop_result_type, integral_type): Ditto.
12638 (character_type, string_type, structured_type): Ditto.
12639 (lang_bool_type, binop_type_check): Ditto.
12640 * stabsread.h (os9k_stabs): Ditto.
12641 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12642 (define_symbol, read_type, read_struct_fields): Ditto.
12643 (read_array_type, read_enum_type, read_huge_number): Ditto.
12644 (read_range_type, start_stabs): Ditto.
12645 * symfile.c (init_filename_language_table): Ditto.
12646 (add_psymbol_with_dem_name_to_list): Ditto.
12647 * symtab.c (symbol_init_language_specific): Ditto.
12648 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12649 * symtab.h (struct general_symbol_info): Ditto.
12650 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12651 * typeprint.c (typedef_print): Ditto.
12652 * utils.c (fprintf_symbol_filtered): Ditto.
12653 * valops.c (value_cast, search_struct_field, value_slice): Delete
12654 obsolete code.
12655 (varying_to_slice): Delete function.
12656 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12657 (varying_to_slice): Delete declaration.
12658 * MAINTAINERS: Update.
12659
12660 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12661
12662 * configure.in: Reorganize "Checks for library functions section"
12663 a bit. Remove check for `btowc' and `isascii' functions.
12664 * configure: Regenerated.
12665
12666 * acconfig.h (_MSE_INT_H): Remove.
12667 * configure.in: Create "Checks for header files" section, and move
12668 appropriate tests there. Don't check for objlist.h, wchar.h,
12669 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12670 misdetection fix. Also add "Checks for types", "Checks for
12671 compiler characteristics" and "Checks for library functions"
12672 sections.
12673 * config.in, configure: Regenerated.
12674
12675 * configure.in: Create "Checks for programs" section, and move
12676 appropriate tests there.
12677
12678 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12679
12680 * configure.in: Create "Checks for libraries" section, and move
12681 appropriate tests there. Cleanup check for wctype in libw. Use
12682 AC_SEARCH_LIBS to see whether we need libsocket.
12683 * configure: Regenerated.
12684
12685 For older changes see ChangeLog-2002
12686 \f
12687 Local Variables:
12688 mode: change-log
12689 left-margin: 8
12690 fill-column: 74
12691 version-control: never
12692 End:
This page took 0.389402 seconds and 5 git commands to generate.