* x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-07-01 Andreas Jaeger <aj@suse.de>
2
3 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4 before the call.
5 Set %rax only to number of SSE registers used.
6
7 2003-07-01 Andrew Cagney <cagney@redhat.com>
8
9 * trad-frame.h: Update comments, a -1 .addr is reserved.
10 (trad_frame_value_p, trad_frame_addr_p): Declare.
11 (trad_frame_reg_p): Declare.
12 (trad_frame_set_value): Rename trad_frame_register_value.
13 (trad_frame_set_unknown): Declare.
14 * trad-frame.c (trad_frame_realreg_p): New function.
15 (trad_frame_addr_p, trad_frame_value_p): New function.
16 (trad_frame_set_unknown): New function.
17 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
18 (trad_frame_prev_register): Use trad_frame_realreg_p,
19 trad_frame_addr_p and trad_frame_value_p.
20 (trad_frame_set_value): Rename trad_frame_register_value.
21 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
22 and trad_frame_set_value.
23
24 2003-06-30 Jim Blandy <jimb@redhat.com>
25
26 Patch from IBM (authors unspecified, probably Ulrich Weigand and
27 Gerhard Tonn) for argument passing on the S/390 and S/390x:
28 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
29 for 16 registers, and then 32 more bytes.
30 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
31 New macros.
32 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
33 Move up in the file, since it's now used by is_simple_arg.
34 (is_simple_arg): Don't assume registers are four bytes long.
35 Exclude all double arguments. Extended floats are not simple
36 args.
37 (is_power_of_two): New function.
38 (pass_by_copy_ref): Call is_power_of_two, and check that the
39 length fits in a register, rather than listing all the acceptable
40 sizes. Extended floats are not passed by reference.
41 (s390_push_arguments): Don't assume registers are four bytes long.
42 Reserve an argument register to point to the buffer for structures
43 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
44 S390_STACK_FRAME_OVERHEAD.
45
46 2003-06-30 Andreas Schwab <schwab@suse.de>
47
48 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
49 format error message.
50
51 2003-06-30 Joel Brobecker <brobecker@gnat.com>
52
53 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
54
55 2003-06-30 David Carlton <carlton@kealia.com>
56
57 Band-aid for PR c++/1245.
58 * Makefile.in (cp-support.o): Depend on complaints_h.
59 * cp-support.c: Include complaints.h. Add declaration for
60 find_last_component.
61 (cp_find_first_component): Separate code into
62 cp_find_first_component_aux.
63 (cp_find_first_component_aux): Call demangled_name_complaint.
64 (demangled_name_complaint): New.
65
66 2003-06-30 Andrew Cagney <cagney@redhat.com>
67
68 * remote.c (remote_write_bytes): Explicitly compute and then use
69 the payload size. Update comments to reflect. Fixes problem of
70 GDB not sending small packets as found by Fred Fish.
71
72 2003-06-30 Andrew Cagney <cagney@redhat.com>
73
74 * remote.c (remote_async_wait): Fix -Wformat problem.
75
76 2003-06-29 Andrew Cagney <cagney@redhat.com>
77
78 * remote.c (remote_wait): Call error, and not warning, when the
79 packet is corrupt.
80 (remote_async_wait): Ditto.
81
82 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
83
84 * sparc-tdep.c (sparc_y_regnum): Make external again.
85
86 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
87
88 * cli/cli-logging.c (pop_output_files): Add void to function
89 definition.
90
91 2003-06-29 Andrew Cagney <cagney@redhat.com>
92
93 * frame.c (frame_register_unwind): Use unsigned char when dumping
94 the buffer contents.
95
96 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
97
98 * cli/cli-logging.c: New file.
99 * cli-out.c (struct ui_out_data): Add original_stream.
100 (cli_redirect): New function.
101 (cli_ui_out_impl): Add cli_redirect.
102 (cli_out_new): Initialize original_stream.
103 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
104 (uo_redirect, ui_out_redirect): New.
105 * ui-out.h (struct ui_out_impl): Add redirect member.
106 (redirect_ftype): New.
107 (ui_out_redirect): Add prototype.
108 * Makefile.in: Add rules for cli-logging.c.
109 * NEWS: Mention "set logging".
110
111 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
112
113 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
114
115 2003-06-27 Andrew Cagney <cagney@redhat.com>
116
117 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
118 (m68hc11_gdbarch_init): Do not set call_dummy_address.
119 * avr-tdep.c (avr_call_dummy_address): Delete function.
120 (avr_gdbarch_init): Do not set call_dummy_address.
121
122 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
123
124 * symfile.c (syms_from_objfile): Move variables to inner block.
125 Move the checks for the non-mainline case a bit earlier to avoid
126 doing some useless computations.
127
128 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
129
130 * dwarfread.c (decode_modified_type): Gag new compiler warning.
131
132 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
133
134 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
135 sections.
136
137 2003-06-26 Michael Chastain <mec@shout.net>
138
139 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
140 gdb/testsuite/gdb.c++/pr-1210.exp.
141
142 2003-06-26 Andrew Cagney <cagney@redhat.com>
143
144 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
145 altivec_expression.h and altivec_registers.h.
146
147 2003-06-26 Andrew Cagney <cagney@redhat.com>
148
149 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
150 info->mach when MIPS16. Patch suggested by Fred Fish.
151
152 2003-06-26 Andrew Cagney <cagney@redhat.com>
153
154 * utils.c (internal_vproblem): Print the problem to a reason
155 buffer and then pass to query. Make the msg variable more local.
156
157 2003-06-26 Andrew Cagney <cagney@redhat.com>
158
159 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
160 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
161 * gdbarch.h, gdbarch.c: Re-generate.
162 * frame-base.c (default_frame_args_address): Update. Use
163 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
164 not available.
165 (default_frame_locals_address): Ditto for
166 DEPRECATED_FRAME_LOCALS_ADDRESS.
167 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
168 (vax_frame_num_args): Update.
169 (vax_gdbarch_init): Update.
170 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
171 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
172 * mcore-tdep.c (mcore_gdbarch_init): Update.
173 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
174 * ia64-tdep.c (ia64_gdbarch_init): Update.
175 * symtab.h (address_class): Update comments.
176 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
177 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
178 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
179 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
180 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
181 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
182 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
183 * alpha-mdebug-tdep.c: Update.
184 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
185
186 2003-06-26 Andreas Jaeger <aj@suse.de>
187
188 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
189 of SSE registers so that varargs functions work. Rework handling
190 of passing arguments on the stack.
191 (x86_64_store_return_value): Return double and float values in SSE
192 register.
193
194 2003-06-24 Michael Chastain <mec@shout.net>
195
196 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
197 the "constructor breakpoints ignored" bug.
198
199 2003-06-25 David Carlton <carlton@kealia.com>
200
201 * MAINTAINERS: Update e-mail address.
202
203 2003-06-24 Jim Blandy <jimb@redhat.com>
204
205 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
206
207 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
208 function.
209 (ppc_linux_init_abi): Register it as the
210 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
211
212 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
213 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
214 method.
215
216 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
217 (ppc64_standard_linkage_target): Use it.
218
219 2003-06-23 Andrew Cagney <cagney@redhat.com>
220
221 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
222 for 0 "int0" and 4 "int32" sized registers.
223 * gdbtypes.c (builtin_type_int0): Define.
224 (build_gdbtypes): Initialize builtin_type_int0.
225 * gdbtypes.h (builtin_type_int0): Declare.
226
227 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
228
229 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
230 as characters are unsigned.
231
232 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
233
234 PR gdb/1179
235 * dwarfread.c (struct_type): Skip static fields without crashing.
236
237 2003-06-22 Andrew Cagney <cagney@redhat.com>
238
239 GDB 6.0 branch created.
240 * README: Update.
241 * PROBLEMS: Update. Empty.
242 * NEWS: Update.
243
244 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
245
246 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
247 Suggested by Nick Hibma <n_hibma@webweaving.org>.
248
249 2003-06-22 Andrew Cagney <cagney@redhat.com>
250
251 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
252 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
253 Velikov.
254
255 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
256
257 * cli/cli-cmds.c (shell_escape): Silence warnings from old
258 compilers.
259
260 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
261
262 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
263 argument of val_print.
264 * cp-valprint.c (cp_print_value): Don't add the offset parameter
265 to the address argument of baseclass_offset or target_read_memory.
266 Do add it to the argument of cp_print_value_fields.
267
268 2003-06-21 Andrew Cagney <cagney@redhat.com>
269
270 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
271 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
272 instead of 0..NUM_REGS.
273 (mips_register_reggroup_p): New function.
274 (mips_pseudo_register_write): New function.
275 (mips_pseudo_register_read): New function.
276 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
277 based on the register's type.
278 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
279 cooked.
280 (mips_get_saved_register): Simplify. Assert that REGNO is a
281 pseudo / cooked.
282 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
283 (mips_register_type): Replace mips_register_virtual_type. Map
284 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
285 when available.
286 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
287 that the register is cooked / virtual.
288 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
289 Only get the extra info when needed.
290 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
291 (mips32_heuristic_proc_desc): Fetch the cooked register.
292 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
293 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
294 (mips_print_register): Use gdbarch_register_type, instead of
295 REGISTER_VIRTUAL_TYPE.
296 (print_gp_register_row): Use gdbarch_register_type, instead of
297 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
298 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
299 Print the pseudo / cooked registers.
300 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
301 Print the pseudo / cooked registers.
302 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
303 REG_NUM is pseudo / cooked.
304 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
305 (mips_n32n64_xfer_return_value): Ditto.
306 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
307 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
308 (mips_register_sim_regno): New function.
309 (mips_gdbarch_init): Set deprecated_register_byte,
310 register_group_p, pseudo_register_write, pseudo_register_read,
311 register_sim_regno, and num_pseudo_regs. Set register_type,
312 instead of register_virtual_type.
313 * Makefile.in (mips-tdep.o): Update dependencies.
314 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
315 REGISTER_VIRTUAL_TYPE.
316 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
317 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
318 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
319 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
320 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
321
322 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
323
324 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
325 * cli/cli-cmds.c: Include "gdb_vfork.h".
326 (shell_escape): Use vfork.
327
328 2003-06-21 Andrew Cagney <cagney@redhat.com>
329
330 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
331 32 bit floating-point register saves.
332
333 * frame.h (deprecated_unwind_get_saved_register): Delete.
334 * frame.c (deprecated_unwind_get_saved_register): Delete function.
335 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
336 and deprecated_get_next_frame_hack instead of
337 deprecated_unwind_get_saved_register.
338
339 * mips-tdep.c (mips_dump_tdep): Do not print
340 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
341
342 * frame.c (get_frame_register): New function.
343 (frame_unwind_register_signed): New function.
344 (get_frame_register_signed): New function.
345 (frame_unwind_register_unsigned): New function.
346 (get_frame_register_unsigned): New function.
347 * frame.h: Add comments on naming schema.
348 (get_frame_register, frame_unwind_register_signed): Declare.
349 (get_frame_register_signed, get_frame_register_signed): Declare.
350 (frame_unwind_register_unsigned): Declare.
351 (get_frame_register_unsigned): Declare.
352
353 2003-06-20 Theodore A. Roth <troth@openavr.org>
354
355 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
356
357 2003-06-20 Theodore A. Roth <troth@openavr.org>
358
359 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
360 (avr_read_sp): Ditto.
361
362 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
363
364 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
365 * config/arm/nm-linux.h: Likewise.
366 * config/arm/tm-linux.h: Likewise.
367 * config/ia64/nm-linux.h: Likewise.
368 * config/ia64/tm-ia64.h: Likewise.
369 * config/s390/tm-linux.h: Likewise.
370 * config/s390/tm-s390.h: Likewise.
371 * s390-nat.c: Likewise.
372 * s390-tdep.c: Likewise.
373
374 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
375 * config/ia64/linux.mt: Likewise.
376 * config/m68k/linux.mh: Likewise.
377 * config/mips/linux.mt: Likewise.
378 * config/powerpc/linux.mh: Likewise.
379 * config/sh/linux.mt: Likewise.
380
381 2003-06-19 Kris Warkentin <kewarken@qnx.com>
382
383 * solib.c (solib_open): Change tests for whether to search
384 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
385 comments.
386
387 2003-06-19 Theodore A. Roth <troth@openavr.org>
388
389 * avr-tdep.c (avr_frame_address): Delete function.
390 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
391 set_gdbarch_frame_args_address.
392
393 2003-06-19 Andrew Cagney <cagney@redhat.com>
394
395 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
396 (REGISTER_CONVERT_FROM_TYPE): Delete.
397 (mips_register_convert_to_type): Delete declaration.
398 (mips_register_convert_from_type): Delete declaration.
399 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
400 kernel/.
401
402 2003-06-19 Michael Snyder <msnyder@redhat.com>
403
404 * linux-nat.h: New file.
405 * linux-nat.c: Include linux-nat.h.
406 * lin-lwp.c: Include linux-nat.h.
407 Move struct lwp_info def to linux-nat.h.
408 * linux-proc.c: Include linux-nat.h.
409 (linux_make_note_section): Iterate over lwps instead of threads.
410 (linux_do_thread_registers): Use lwp instead of merged pid.
411 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
412 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
413 Add dependency on linux_nat_h.
414
415 2003-06-19 Theodore A. Roth <troth@openavr.org>
416
417 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
418
419 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
420
421 * varobj.c (get_type, get_target_type): Use check_typedef.
422
423 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
424
425 * breakpoint.c (insert_catchpoint): Call internal_error.
426
427 2003-06-19 Theodore A. Roth <troth@openavr.org>
428
429 * avr-tdep.c (avr_push_dummy_code): Delete function.
430 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
431
432 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
433
434 * arch-utils.c (default_prepare_to_proceed): Remove.
435 (generic_prepare_to_proceed): Remove.
436 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
437 (generic_prepare_to_proceed): Remove prototype.
438 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
439 * gdbarch.c: Regenerate.
440 * gdbarch.h: Regenerate.
441 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
442 * hppah-nat.c (hppa_switched_threads): Remove.
443 * infrun.c (prepare_to_proceed): New static function, copied from
444 generic_prepare_to_proceed. Remove select_it argument.
445 (proceed): Call prepare_to_proceed.
446 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
447 variables.
448 (ptrace_wait): Don't set the removed variables.
449 (hppa_switched_threads): Remove.
450 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
451 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
452 (lin_lwp_prepare_to_proceed): Remove prototype.
453 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
454 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
455
456 2003-06-18 Theodore A. Roth <troth@openavr.org>
457
458 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
459 trad-frame.h.
460 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
461 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
462 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
463 (AVR_PROLOGUE_*): Enumerate prologue types.
464 (struct frame_extra_info): Remove.
465 (struct avr_unwind_cache): Define.
466 (avr_write_sp): Delete function.
467 (avr_read_fp): Ditto.
468 (avr_init_extra_frame_info): Ditto.
469 (avr_pop_frame): Ditto.
470 (avr_frame_saved_pc): Ditto.
471 (avr_saved_pc_after_call): Ditto.
472 (avr_push_return_address): Ditto.
473 (avr_frame_chain): Ditto.
474 (avr_store_struct_return): Ditto.
475 (avr_push_arguments): Ditto.
476 (avr_scan_prologue): Update comments. Changed to set up the info for
477 cache unwinding. Now returns end of prologue PC.
478 (avr_skip_prologue): Better handling of functions lacking a prologue
479 by using avr_scan_prologue.
480 (avr_scan_arg_moves): New function.
481 (avr_saved_regs_unwinder): Ditto.
482 (avr_frame_unwind_cache): Ditto.
483 (avr_unwind_pc): Ditto.
484 (avr_frame_this_id): Ditto.
485 (avr_frame_prev_register): Ditto.
486 (avr_frame_p): Ditto.
487 (avr_frame_base_address ): Ditto.
488 (avr_unwind_dummy_id): Ditto.
489 (avr_push_dummy_code): Ditto.
490 (push_stack_item): Ditto.
491 (pop_stack_item): Ditto.
492 (avr_push_dummy_call): Ditto.
493 (struct stack_item): Define.
494 (avr_frame_unwind): Declare structure.
495 (avr_frame_base): Ditto.
496 (avr_gdbarch_init): Remove calls to
497 set_gdbarch_deprecated_init_frame_pc,
498 set_gdbarch_deprecated_target_read_fp,
499 set_gdbarch_deprecated_dummy_write_sp,
500 set_gdbarch_deprecated_fp_regnum,
501 set_gdbarch_deprecated_push_arguments,
502 set_gdbarch_deprecated_push_return_address,
503 set_gdbarch_deprecated_pop_frame,
504 set_gdbarch_deprecated_store_struct_return,
505 set_gdbarch_deprecated_frame_init_saved_regs,
506 set_gdbarch_deprecated_init_extra_frame_info,
507 set_gdbarch_deprecated_frame_chain,
508 set_gdbarch_deprecated_frame_saved_pc,
509 set_gdbarch_deprecated_saved_pc_after_call.
510 Add calls to set_gdbarch_push_dummy_call,
511 set_gdbarch_push_dummy_code,
512 frame_unwind_append_predicate,
513 frame_base_set_default,
514 set_gdbarch_unwind_dummy_id,
515 set_gdbarch_unwind_pc.
516 Wrap a long line.
517
518 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
519
520 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
521 registers for H8/300S.
522 (h8300_print_registers_info): Ditto.
523 (h8300_gdbarch_init): Accommodate register count for H8/300S.
524
525 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
526
527 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
528 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
529 (lin_lwp_wait): Likewise. Update comments.
530 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
531 (pull_pid_from_list, linux_record_stopped_pid): New.
532
533 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
534
535 * ada-lang.c (scan_discrim_bound): Name first argument.
536 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
537 declared by ALL_BLOCK_SYMBOLS.
538
539 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
540
541 * ada-tasks.c (find_function_in_inferior): Don't declare it.
542 ("regcache.h"): Include it.
543 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
544
545 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
546
547 * NEWS: Mention gdbserver detach change and "disconnect" command.
548 * infcmd.c (disconnect_command): New function.
549 (_initialize_infcmd): Add ``disconnect'' command.
550 * remote.c (remote_async_detach): Delete.
551 (remote_detach): Merge remote_async_detach.
552 (remote_disconnect): New.
553 (init_remote_ops): Set to_disconnect.
554 (init_remote_cisco_ops): Likewise.
555 (init_remote_async_ops): Likewise. Use remote_detach.
556 * target.c (cleanup_target): Default to_disconnect.
557 (update_current_target): Inherit to_disconnect.
558 (target_disconnect, debug_to_disconnect): New functions.
559 (setup_target_debug): Set to_disconnect.
560 * target.h (struct target_ops): Add to_disconnect.
561 (target_disconnect): Add prototype.
562
563 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
564
565 * breakpoint.c (insert_catchpoint): New function.
566 (insert_breakpoints): Use catch_exceptions to call
567 insert_catchpoint. Disable catchpoints if they fail to insert.
568
569 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
570
571 * symfile.c (reread_symbols): Clear sym_private.
572
573 2003-06-17 Andrew Cagney <cagney@redhat.com>
574
575 * trad-frame.h (struct frame_info): Add opaque declaration.
576 * remote-fileio.h (struct cmd_list_element): Add opaque
577 declaration.
578 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
579 comments.
580
581 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
582
583 * remote.c (remote_prepare_to_store): Replace call to
584 deprecated_read_register_bytes with multiple regcache_raw_read
585 calls.
586
587 2003-06-17 Kris Warkentin <kewarken@qnx.com>
588
589 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
590 (nto_find_and_open_solib): Likewise.
591 (nto_init_solib_absolute_prefix): Likewise.
592 (_initialize_nto_tdep): Fix indentation.
593
594 2003-06-17 Kris Warkentin <kewarken@qnx.com>
595
596 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
597
598 2003-06-17 Kris Warkentin <kewarken@qnx.com>
599
600 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
601
602 2003-06-17 Jim Blandy <jimb@redhat.com>
603
604 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
605
606 2003-06-16 Theodore A. Roth <troth@openavr.org>
607
608 * avr-tdep.c (avr_extract_return_value): New function.
609 (avr_gdbarch_init): Set extract_return_value method.
610
611 2003-06-16 Andrew Cagney <cagney@redhat.com>
612
613 * frame.h (deprecated_get_next_frame_hack): Declare.
614 * frame.c (legacy_saved_regs_prev_register): Only require
615 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
616 there are always saved regs.
617 (deprecated_generic_get_saved_register): Do not require
618 DEPRECATED_FRAME_INIT_SAVED_REGS.
619 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
620 use frame ID unwind instead.
621 (deprecated_get_next_frame_hack): New function.
622
623 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
624
625 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
626 (h8300_push_dummy_call): ...this function. Some minor optimization.
627 (h8300_push_return_address): Remove.
628 (h8300_gdbarch_init): Remove calls to
629 set_gdbarch_deprecated_dummy_write_sp,
630 set_gdbarch_deprecated_push_arguments and
631 set_gdbarch_deprecated_push_return_address.
632 Add call to set_gdbarch_push_dummy_call.
633
634 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
635
636 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
637 (E_PSEUDO_EXR_REGNUM): Ditto.
638 (h8300_is_argument_spill): Check for instructions moving argument
639 registers into safe registers.
640 (h8300_skip_prologue): Check for stm instruction to push registers
641 used for register variables onto stack.
642 (gdb_print_insn_h8300): Remove.
643 (h8300_examine_prologue): Add a comment.
644 (h8300_register_name): Take pseudo registers into account.
645 (h8300s_register_name): Ditto.
646 (h8300sx_register_name): Ditto.
647 (h8300_print_register): Ditto.
648 (h8300_print_registers_info): Define "nice" printing order.
649 (h8300_saved_pc_after_call): Take pseudo registers into account.
650 (h8300_register_type): Ditto. Return type used for remote connection
651 when requesting real CCR or EXR register, return actual type when
652 requesting pseudo CCR or EXR.
653 (h8300_pseudo_register_read): New function.
654 (h8300_pseudo_register_write): Ditto.
655 (h8300_dbg_reg_to_regnum): Ditto.
656 (h8300s_dbg_reg_to_regnum): Ditto.
657 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
658 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
659 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
660 set_gdbarch_print_insn architecture dependent.
661 Call set_gdbarch_pseudo_register_read and
662 set_gdbarch_pseudo_register_write.
663 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
664
665 2003-06-16 Andrew Cagney <cagney@redhat.com>
666
667 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
668 * gdbarch.h, gdbarch.c: Re-generate.
669 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
670 * s390-tdep.c (s390_gdbarch_init): Update.
671 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
672 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
673 * mips-tdep.c (mips_gdbarch_init): Update.
674 * mcore-tdep.c (mcore_gdbarch_init): Update.
675 * cris-tdep.c (cris_gdbarch_init): Update.
676 * infcall.c (call_function_by_hand): Update.
677 * ia64-tdep.c (ia64_push_arguments): Update comment.
678 * frame.c (legacy_get_prev_frame): Do not assume
679 SAVE_DUMMY_FRAME_TOS_P.
680 * dummy-frame.c (find_dummy_frame): Update comment.
681
682 2003-06-16 Andrew Cagney <cagney@redhat.com>
683
684 * regcache.c (do_cooked_read): Do not use register_valid_p.
685
686 2003-06-15 Theodore A. Roth <troth@openavr.org>
687
688 * avr-tdep.c (avr_register_type): Remove a blank line.
689 (avr_scan_prologue): Correct some comments.
690
691 2003-06-15 Theodore A. Roth <troth@openavr.org>
692
693 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
694 prologue types.
695 Properly scan prologues generated by gcc with the -mcall-prologues
696 option.
697 Add code to scan -mcall-prologues for mega devices.
698
699 2003-06-15 Theodore A. Roth <troth@openavr.org>
700
701 * avr-tdep.c (avr_register_byte): Delete function.
702 (avr_register_raw_size): Delete function.
703 (avr_register_virtual_size): Delete function.
704 (avr_register_virtual_type): Delete function.
705 (avr_register_type): New function.
706 (avr_address_to_pointer): Remove unused code.
707 (avr_read_fp): Need to read FP as two separate bytes due to change to
708 avr_register_type() usage.
709 (avr_gdbarch_init): Don't set deprecated_register_size.
710 Don't set deprecated_register_bytes.
711 Don't set deprecated_register_byte.
712 Don't set deprecated_register_raw_size.
713 Don't set deprecated_max_register_raw_size.
714 Don't set deprecated_register_virtual_size.
715 Don't set deprecated_max_register_virtual_size.
716 Don't set deprecated_register_virtual_type.
717 Set register_type method.
718
719 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
720
721 * Makefile.in (linux-nat.o): Add rule.
722 * linux-nat.c: New file.
723 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
724 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
725 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
726 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
727 * config/arm/linux.mh (NATDEPFILES): Likewise.
728 * config/i386/linux.mh (NATDEPFILES): Likewise.
729 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
730 * config/ia64/linux.mh (NATDEPFILES): Likewise.
731 * config/m68k/linux.mh (NATDEPFILES): Likewise.
732 * config/mips/linux.mh (NATDEPFILES): Likewise.
733 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
734 * config/s390/s390.mh (NATDEPFILES): Likewise.
735 * config/sparc/linux.mh (NATDEPFILES): Likewise.
736
737 2003-06-15 Mark Kettenis <kettenis@gnu.org>
738
739 * i387-tdep.c: Reorder includes, fix some whitespace issues and
740 replace out-of-date comment.
741
742 2003-06-15 Andrew Cagney <cagney@redhat.com>
743
744 * rdi-share/host.h (Fail): Change to a varargs function.
745 * remote-rdi.c (Fail): Update.
746
747 2003-06-15 Mark Kettenis <kettenis@gnu.org>
748
749 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
750 (i386_convert_register_p, i386_register_to_value,
751 i386_register_from_value): Handle types longer than 8 bytes.
752
753 2003-06-15 Mark Kettenis <kettenis@gnu.org>
754
755 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
756 Move floating-point code to new function in i387-tdep.c.
757 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
758 New functions containing code moved here from i386-tdep.c.
759 * i387-tdep.h: Add opaque declaration for `struct type'.
760 (i387_register_to_value, i387_value_to_register): New prototypes.
761 * x86-64-tdep.c (x86_64_convert_register_p): New function.
762 (x86_64_init_abi): Set convert_register_p, register_to_value and
763 value_to_register here.
764
765 2003-06-14 Andrew Cagney <cagney@redhat.com>
766
767 * mips-tdep.c (mips_register_to_value): Make static.
768 (mips_value_to_register): Make static.
769 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
770 * ia64-tdep.c (ia64_register_raw_size): Make static.
771 (ia64_register_virtual_size): Make static.
772 (ia64_register_byte): Make static.
773 * i387-tdep.c: Include "i387-tdep.h".
774 (print_387_control_word): Delete function.
775 (print_387_status_word): Delete function.
776 (print_387_status_bits): Delete function.
777 (print_387_control_bits): Delete function.
778 * Makefile.in (i387-tdep.o): Update dependencies.
779 * rdi-share/host.h (Fail): Declare.
780 * remote-rdi.c (Fail): Update to match declaration.
781
782 2003-06-14 Andrew Cagney <cagney@redhat.com>
783
784 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
785 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
786 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
787 * config/djgpp/fnchange.lst: Delete "remote-array.c".
788 * README: Delete reference to remote-array.
789 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
790 (remote-array.o): Delete target.
791 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
792 * remote-array.c: Delete file.
793
794 2003-06-14 Andrew Cagney <cagney@redhat.com>
795 Mark Kettenis <kettenis@gnu.org>
796
797 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
798 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
799 parameter with "frame".
800 * gdbarch.h, gdbarch.c: Re-generate.
801 * frame.h (put_frame_register): Declare.
802 * frame.c (put_frame_register): New function.
803 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
804 (legacy_register_to_value): Rewrite, use "frame" to get the
805 register value.
806 (legacy_value_to_register): Rewrite, use "frame" to find the
807 register's location before storing.
808 * arch-utils.h (legacy_convert_register_p): Update.
809 (legacy_register_to_value, legacy_value_to_register): Update.
810 * findvar.c (value_from_register): Rewrite, eliminate use of
811 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
812 "frame" to REGISTER_TO_VALUE.
813 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
814 lval_reg_frame_relative + lval_register branch of the switch. Do
815 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
816 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
817 I386_EDI_REGNUM): New defines.
818 (i386_next_regnum, i386_convert_register_p,
819 i386_register_to_value, i386_value_to_register): New functions.
820 (i386_register_convertible, i386_register_convert_to_virtual,
821 i386_convert_to_raw): Remove functions.
822 (i386_gdbarch_init): Set convert_register_p, register_to_value and
823 value_to_register instead of register_convertible,
824 register_convert_to_virtual and register_convert_to_raw.
825 * mips-tdep.c (mips_convert_register_p): New function.
826 (mips_value_to_register): Replace mips_register_convert_from_type.
827 (mips_register_to_value): Replace mips_register_convert_to_type.
828 (mips_gdbarch_init): Set conver_register_p, value_to_register and
829 register_to_value.
830 * alpha-tdep.c (alpha_convert_register_p): Update.
831 (alpha_value_to_register): Update, store the register.
832 (alpha_register_to_value): Update, fetch the register.
833
834 2003-06-14 Theodore A. Roth <troth@openavr.org>
835
836 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
837 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
838 Don't set deprecated_call_dummy_words.
839 Remove commented out set_gdbarch_believe_pcc_promotion() call.
840 Don't set remote_translate_xfer_address.
841 (avr_io_reg_read_command): Remove commented out debug printf.
842 Wrap a long line.
843
844 2003-06-14 Theodore A. Roth <troth@openavr.org>
845
846 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
847 causes gdb to seg fault.
848
849 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
850
851 * sparc-nat.c (fetch_inferior_registers): Correct
852 a reference to "registers".
853
854 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
855
856 * Makefile.in (exc_request_U_h): Define
857 (exc_request_S_h): Likewise.
858 (msg_reply_S_h): Likewise.
859 (msg_U_h): Likewise.
860 (notify_S_h): Likewise.
861 (process_reply_S_h): Likewise.
862 (gnu-nat.o): Depend on gdb_obstack_h
863 * gnu-nat.c: Include "gdb_obstack.h".
864
865 2003-06-13 Andrew Cagney <cagney@redhat.com>
866
867 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
868 * gdbarch.h, gdbarch.c: Re-generate.
869
870 2003-06-13 Andrew Cagney <cagney@redhat.com>
871
872 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
873 when deprecated REGISTER macros can be deleted.
874 * gdbarch.h, gdbarch.c: Re-generate.
875
876 2003-06-13 Jim Blandy <jimb@redhat.com>
877
878 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
879 Linux entry point symbols for _dl_debug_state, too.
880
881 2003-06-13 Andrew Cagney <cagney@redhat.com>
882
883 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
884 available, do not use the FP register, and always save the TOS.
885 * dummy-frame.c (dummy_frame_this_id): Do not assert
886 SAVE_DUMMY_FRAME_TOS.
887 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
888 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
889 (i386_push_dummy_call): Add 8 to the returned SP.
890 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
891 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
892 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
893 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
894 (x86_64_push_dummy_call): Return "sp + 16".
895 (x86_64_init_abi): Do not set save_dummy_frame_tos.
896 * alpha-tdep.c (alpha_gdbarch_init): Do not set
897 save_dummy_frame_tos.
898
899 2003-06-13 Jim Blandy <jimb@redhat.com>
900
901 * frv-tdep.c (frv_use_struct_convention): Delete static
902 declaration for function deleted in my change of 2003-06-12.
903
904 2003-06-13 Theodore A. Roth <troth@openavr.org>
905
906 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
907 (avr_pointer_to_address): Shift code addrs left 1 bit.
908 (avr_convert_from_func_ptr_addr): Delete function since operation is
909 better handled by avr_address_to_pointer and avr_pointer_to_address.
910 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
911
912 2003-06-13 Mark Kettenis <kettenis@gnu.org>
913
914 From Kelley Cook <kelleycook@wideopenwest.com>:
915 * configure.host: Accept i[34567]86 variants.
916 * configure.tgt: Likewise.
917 * nlm/configure.in: Likewise.
918 * nlm/configure: Regenerated.
919
920 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
921
922 * arm-tdep.c (solib-svr4.h): Dont' include it.
923 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
924 * arm-linux-tdep.c: ... here. Make static.
925 (arm_linux_init_abi): Register it.
926 (solib-svr4.h): Include it.
927 * Makefile.in: Update dependencies.
928 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
929 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
930
931 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
932
933 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
934 indicate registers used for return values.
935 (struct frame_extra_info): Drop args_pointer and locals_pointer.
936 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
937 members.
938 (h8300_init_extra_frame_info): Ditto.
939 (h8300_frame_locals_address): Removed.
940 (h8300_frame_args_address): Removed.
941 (h8300_extract_return_value): Use new regcache structure. Only care
942 for 16 bit CPUs.
943 (h8300h_extract_return_value): Same function for 32 bit CPUs.
944 (h8300_store_return_value): Use new regcache structure. Only care
945 for 16 bit CPUs.
946 (h8300h_store_return_value): Same function for 32 bit CPUs.
947 (h8300_store_struct_return): Removed.
948 (h8300_extract_struct_value_address): Use new regcache structure.
949 (h8300h_extract_struct_value_address): Removed.
950 (h8300_push_dummy_code): New function.
951 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
952 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
953 set_gdbarch_store_return_value architecture dependent.
954 Call set_gdbarch_push_dummy_code and
955 set_gdbarch_extract_struct_value_address.
956 Remove calls to set_gdbarch_frame_args_address,
957 set_gdbarch_frame_locals_address,
958 set_gdbarch_deprecated_store_struct_return,
959 set_gdbarch_deprecated_extract_return_value,
960 set_gdbarch_deprecated_extract_struct_value_address,
961 set_gdbarch_deprecated_call_dummy_words and
962 set_gdbarch_deprecated_sizeof_call_dummy_words.
963
964 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
965
966 * h8300-tdep.c (h8300_register_byte): Remove.
967 (h8300h_register_byte): Remove.
968 (h8300_register_virtual_type): Remove. Substitute by...
969 (h8300_register_type): New function.
970 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
971 (h8300h_extract_struct_value_address): Ditto.
972 (h8300_gdbarch_init): Drop calls to
973 set_gdbarch_deprecated_register_byte and
974 set_gdbarch_deprecated_register_virtual_type.
975 Add call to set_gdbarch_register_type.
976
977 2003-06-13 Andrew Cagney <cagney@redhat.com>
978
979 * gdbarch.sh: Update comments on registers.
980 (deprecated_register_byte): Rename register_byte.
981 (deprecated_register_raw_size): Rename register_raw_size.
982 (deprecated_register_virtual_size): Rename register_virtual_size.
983 (deprecated_register_virtual_type): Rename register_virtual_type.
984 * gdbarch.h, gdbarch.c: Re-generate.
985 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
986 * vax-tdep.c (vax_gdbarch_init): Update.
987 * v850-tdep.c (v850_gdbarch_init): Update.
988 * sparc-tdep.c (sparc_gdbarch_init): Update.
989 * sh-tdep.c (sh_gdbarch_init): Update.
990 * s390-tdep.c (s390_gdbarch_init): Update.
991 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
992 * ns32k-tdep.c: Update.
993 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
994 * mips-tdep.c (mips_gdbarch_init): Update.
995 * mcore-tdep.c (mcore_gdbarch_init): Update.
996 * m68k-tdep.c (m68k_gdbarch_init): Update.
997 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
998 * ia64-tdep.c (ia64_gdbarch_init): Update.
999 * hppa-tdep.c (hppa_gdbarch_init): Update.
1000 * h8300-tdep.c (h8300_gdbarch_init): Update.
1001 * frv-tdep.c (frv_gdbarch_init): Update.
1002 * cris-tdep.c (cris_gdbarch_init): Update.
1003 * avr-tdep.c (avr_gdbarch_init): Update.
1004 * alpha-tdep.c (alpha_gdbarch_init): Update.
1005 * arm-tdep.c (arm_gdbarch_init): Update.
1006
1007 2003-06-13 Andrew Cagney <cagney@redhat.com>
1008
1009 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
1010 mips_o32_use_struct_convention with always_use_struct_convention.
1011
1012 2003-06-12 David Carlton <carlton@kealia.com>
1013
1014 * cp-namespace.c (cp_set_block_scope): Comment out
1015 processing_has_namespace_info branch.
1016
1017 2003-06-12 Jim Blandy <jimb@redhat.com>
1018
1019 Recognize and skip 64-bit PowerPC Linux linkage functions.
1020 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
1021 insn_pattern, insns_match_pattern, d_field, ds_field): New
1022 functions, macros, and types for working with PPC instructions.
1023 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
1024 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
1025 ppc64_skip_trampoline_code): New functions, variables, and macros
1026 for recognizing and skipping linkage functions.
1027 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
1028 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
1029
1030 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
1031 register offsets for both the 32- and 64-bit interfaces.
1032
1033 Actually finish the job started by my change of 2003-05-29.
1034 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
1035 other #definition of this.
1036 (ppc_linux_skip_trampoline_code): Remove declaration.
1037 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
1038 static.
1039 (ppc_linux_init_abi): Register it as the skip_trampoline_code
1040 method for GDBARCH.
1041
1042 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
1043 'long' on ppc64-*-linux*.
1044
1045 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
1046 isn't #defined, assume the register doesn't exist: act as if
1047 tdep->ppc_mq_regnum were -1.
1048
1049 * configure.host, configure.tgt: Add entries for
1050 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
1051 powerpc/linux.mt.
1052 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
1053 New files.
1054
1055 * arch-utils.c (always_use_struct_convention): New function.
1056 * arch-utils.h (always_use_struct_convention): New prototype.
1057 * alpha-tdep.c (alpha_use_struct_convention): Delete.
1058 (alpha_gdbarch_init): Register always_use_struct_convention,
1059 instead of alpha_use_struct_convention.
1060 * cris-tdep.c (cris_use_struct_convention): Delete.
1061 (cris_gdbarch_init): Register always_use_struct_convention,
1062 instead of cris_use_struct_convention.
1063 * frv-tdep.c (frv_use_struct_convention): Delete.
1064 (frv_gdbarch_init): Register always_use_struct_convention,
1065 instead of frv_use_struct_convention.
1066 * h8300-tdep.c (h8300_use_struct_convention): Delete.
1067 (h8300_gdbarch_init): Register always_use_struct_convention,
1068 instead of h8300_use_struct_convention.
1069 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1070 (mips_o32_gdbarch_init): Register always_use_struct_convention,
1071 instead of mips_o32_use_struct_convention.
1072
1073 2003-06-12 Andrew Cagney <cagney@redhat.com>
1074
1075 * wince.c: Include "mips-tdep.h".
1076 * mips-tdep.h (mips_next_pc): Declare.
1077 * mcore-tdep.c: Make more local functions static.
1078 * Makefile.in (wince.o): Update dependencies.
1079
1080 2003-06-12 David Carlton <carlton@kealia.com>
1081
1082 * symtab.c (lookup_symbol_aux_minsyms): Replace
1083 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1084 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
1085 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
1086 SYMBOL_NATURAL_NAME.
1087
1088 2003-06-12 Andreas Schwab <schwab@suse.de>
1089
1090 * Makefile.in (tuiDisassem.o): Update dependencies.
1091
1092 2003-06-12 David Carlton <carlton@bactrian.org>
1093
1094 * symtab.h: Delete declaration of make_symbol_overload_list.
1095 Add declaration of lookup_partial_symbol.
1096 * symtab.c (remove_params): Move to cp-support.c.
1097 (overload_list_add_symbol, make_symbol_overload_list)
1098 (sym_return_val_size, sym_return_val_index): Ditto.
1099 (lookup_partial_symbol): Make extern.
1100 * cp-support.h: Add declaration of make_symbol_overload_list.
1101 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
1102 symtab.h, and block.h.
1103 (remove_params): Move here from symtab.c.
1104 (overload_list_add_symbol, make_symbol_overload_list)
1105 (sym_return_val_size, sym_return_val_index): Ditto.
1106 * valops.c: Include cp-support.h.
1107 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
1108 frame_h, and block_h.
1109 (valops.o): Depend on cp_support_h.
1110
1111 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
1112
1113 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
1114 substitute by NUM_REGS throughout.
1115 (h8300_register_name): Only care for H8/300 and H8/300H registers.
1116 (h8300s_register_name): New function for H8S registers.
1117 (h8300sx_register_name): Ditto for H8SX registers.
1118 (h8300_print_register): Revise register printing, avoid depending
1119 on 32 bit long.
1120 (h8300_register_byte): Only care for H8/300 registers.
1121 (h8300h_register_byte): New function for any other architecture.
1122 (h8300_register_raw_size): Remove.
1123 (h8300_register_virtual_type): Revise to return actually useful
1124 type.
1125 (h8300_extract_struct_value_address): Only care for H8/300 registers.
1126 (h8300h_extract_struct_value_address): New function for any other
1127 architecture.
1128 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
1129 set_gdbarch_register_name, set_gdbarch_register_byte,
1130 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
1131 Remove calls to set_gdbarch_deprecated_register_size,
1132 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
1133 set_gdbarch_deprecated_max_register_raw_size,
1134 set_gdbarch_register_virtual_size and
1135 set_gdbarch_deprecated_max_register_virtual_size entirely.
1136 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
1137 set_gdbarch_long_double_bit.
1138
1139 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
1140
1141 * doublest.c (convert_doublest_to_floatformat): When dealing
1142 with the implied integer bit, only alter mant_bits if we are
1143 processing a full 32 bits of mantissa.
1144
1145 2003-06-11 David Carlton <carlton@bactrian.org>
1146
1147 * dictionary.h: New.
1148 * dictionary.c: New.
1149 * block.h: Add opaque declaration for struct dictionary.
1150 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
1151 'sym' members.
1152 (BLOCK_DICT): New macro.
1153 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
1154 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
1155 BLOCK_SHOULD_SORT.
1156 (ALL_BLOCK_SYMBOLS): Update definition.
1157 * Makefile.in (SFILES): Add dictionary.c.
1158 (dictionary_h): New.
1159 (COMMON_OBS): Add dictionary.o.
1160 (dictionary.o): New.
1161 (ada-lang.o): Depend on dictionary_h.
1162 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
1163 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
1164 (mi-cmd-stack.o): Ditto.
1165 (gdbtk-cmds.o): Update dependencies.
1166 (gdbtk-stack.o): Ditto.
1167 * ada-lang.c: Include dictionary.h.
1168 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
1169 (fill_in_ada_prototype, debug_print_block): Ditto.
1170 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
1171 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
1172 'is_sorted'.
1173 * mdebugread.c: Include dictionary.h.
1174 (struct parse_stack): Delete 'maxsyms' member.
1175 (parse_symbol): Update calls to new_block. Delete calls to
1176 shrink_block. Use dictionary methods.
1177 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
1178 Update calls to new_symtab. Don't maintain maxsyms data.
1179 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
1180 (add_symbol): Just call dict_add_symbol.
1181 (new_symtab): Delete 'maxsyms' argument.
1182 (new_symtab): Update calls to new_block.
1183 (new_block): Delete 'maxsyms' argument; add 'function' argument.
1184 (shrink_block): Delete function.
1185 (fixup_sigtramp): Update call to new_block. Add symbol via
1186 dict_add_symbol.
1187 * jv-lang.c: Include dictionary.h.
1188 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
1189 appropriately. Set class_symtab->free_func. Make sure the
1190 blockvector is big enough to hold two blocks.
1191 (add_class_symtab_symbol): Use dictionary methods.
1192 (free_class_block): New function.
1193 (type_from_class): Replace explicit iteration by
1194 ALL_BLOCK_SYMBOLS.
1195 * symtab.h (struct symtab): Replace 'free_ptr' method by
1196 'free_func'.
1197 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
1198 sort_symtab_syms.
1199 * dwarfread.c (psymtab_to_symtab_1): Delete call to
1200 sort_symtab_syms.
1201 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
1202 Include dictionary.h.
1203 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
1204 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
1205 sort_symtab_syms.
1206 * objfiles.c: Include dictionary.h.
1207 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
1208 * buildsym.c: Include dictionary.h.
1209 (finish_block): Use dictionary methods.
1210 (end_symtab): Set free_func to NULL, not free_ptr.
1211 * tracepoint.c: Include dictionary.h.
1212 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
1213 (scope_info): Ditto.
1214 * stack.c: Include dictionary.h.
1215 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
1216 (print_block_frame_labels, print_frame_arg_vars)
1217 (print_frame_args): Ditto.
1218 * symmisc.c (free_symtab_block): Use dictionary methods.
1219 (dump_symtab): Ditto.
1220 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
1221 Include dictionary.h.
1222 * symfile.h: Delete declarations of sort_block_syms,
1223 sort_symtab_syms.
1224 * symfile.c (sort_block_syms): Delete.
1225 (sort_symtab_syms): Delete.
1226 * symtab.c: Include dictionary.h.
1227 (lookup_block_symbol): Use dictionary iterators.
1228 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
1229 (search_symbols, make_symbol_completion_list): Ditto.
1230 (make_symbol_overload_list): Ditto.
1231 * valops.c (value_of_local): Use dict_empty.
1232 Include dictionary.h.
1233
1234 2003-06-11 J. Brobecker <brobecker@gnat.com>
1235
1236 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
1237
1238 2003-06-11 David Carlton <carlton@bactrian.org>
1239
1240 * block.h (BLOCK_SHOULD_SORT): Delete.
1241 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
1242 blocks.
1243 * ada-lang.c (ada_add_block_symbols): Ditto.
1244 * symfile.c (sort_block_syms): Delete.
1245 (sort_symtab_syms): Ditto.
1246 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
1247 declarations.
1248 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
1249 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
1250 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
1251 * dwarfread.c (psymtab_to_symtab_1): Ditto.
1252 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
1253 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1254 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
1255
1256 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
1257
1258 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
1259 bits to 128.
1260
1261 2003-06-11 Andrew Cagney <cagney@redhat.com>
1262
1263 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
1264 REGISTER_CONVERTIBLE.
1265 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
1266 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
1267 * gdbarch.h, gdbarch.c: Re-generate.
1268 * arch-utils.h (deprecated_register_convertible_not): Rename
1269 generic_register_convertible_not.
1270 * arch-utils.c (deprecated_register_convertible_not): Rename
1271 generic_register_convertible.
1272 (legacy_convert_register_p, legacy_register_to_value): Update.
1273 * sh-tdep.c (sh64_push_arguments): Update.
1274 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
1275 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
1276 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
1277 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
1278 * arch-utils.c (legacy_value_to_register): Update.
1279 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1280 (rs6000_register_convert_to_raw): Make parameter "from" const.
1281 * mips-tdep.c (mips_gdbarch_init): Update.
1282 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
1283 * infcmd.c (default_print_registers_info): Update.
1284 * ia64-tdep.c (ia64_gdbarch_init): Update.
1285 (ia64_register_convert_to_raw): Make parameter "from" const.
1286 * i386-tdep.c (i386_gdbarch_init): Update.
1287 (i386_register_convert_to_raw): Update.
1288
1289 2003-06-11 Andrew Cagney <cagney@redhat.com>
1290
1291 * remote-fileio.c: Include "remote-fileio.h".
1292 * Makefile.in (remote-fileio.o): Update dependencies.
1293 (remote_fileio_h): Fix typo.
1294
1295 2003-06-11 Andrew Cagney <cagney@redhat.com>
1296
1297 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
1298 (xstormy16_save_dummy_frame_tos): Make static.
1299 (_initialize_xstormy16_tdep): Add declaration.
1300 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
1301 * v850-tdep.c: Make local functions static.
1302 (_initialize_v850_tdep): Add declaration.
1303 * sparc-tdep.c: Make local functions static.
1304 (_initialize_sparc_tdep): Add declaration.
1305 * sh-tdep.c: Make local functions static.
1306 (_initialize_sh_tdep): Add declaration.
1307 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
1308 * s390-tdep.c: Make local functions static.
1309 (_initialize_s390_tdep): Add declaration.
1310 * dbxread.c (find_stab_function_addr): Make static.
1311 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
1312 * ocd.c (_initialize_remote_ocd): Add declaration.
1313 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
1314 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
1315 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
1316 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
1317 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
1318 * remote-array.c (_initialize_array): Add declaration.
1319 (_initialize_remote_monitors): Add declaration.
1320 * remote-mips.c: Make local functions static.
1321 (_initialize_remote_mips): Add declaration.
1322 * mcore-tdep.c: Make all local functions static.
1323 (_initialize_mcore_tdep): Add declaration.
1324 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
1325 * abug-rom.c (_initialize_abug_rom): Add declaration.
1326 * rom68k-rom.c (_initialize_rom68k): Add declaration.
1327 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
1328 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
1329 * remote-est.c (_initialize_est): Add declaration.
1330 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
1331 (m68hc11_call_dummy_address): Make static.
1332 * ia64-tdep.c: Make local functions static.
1333 (_initialize_ia64_tdep): Add declaration.
1334 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
1335 * monitor.c (monitor_wait_filter): Make static.
1336 (_initialize_remote_monitors): Add declaration.
1337 * remote-hms.c (_initialize_remote_hms): Add declaration.
1338 * remote-e7000.c (fetch_regs_from_dump): Make static.
1339 (expect_n): Make static.
1340 (_initialize_remote_e7000): Add declaration.
1341 * ser-e7kpc.c: Always include "defs.h".
1342 (_initialize_ser_e7000pc): Add declaration.
1343 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
1344 * cris-tdep.c: Make all but one function static.
1345 (_initialize_cris_tdep): Add declaration.
1346 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
1347 * solib.c (update_solib_list): Make static.
1348 (_initialize_solib): Add declaration.
1349 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
1350 (_initialize_avr_tdep): Add declaration.
1351 * remote-rdi.c (voiddummy): Make static.
1352 (_initialize_remote_rdi): Add declaration.
1353 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
1354 * remote-rdp.c (send_rdp): Make static.
1355 (_initialize_remote_rdp): Add declaration.
1356 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
1357
1358 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
1359
1360 * remote-fileio.c: Make ari happy.
1361
1362 2003-06-10 J. Brobecker <brobecker@gnat.com>
1363
1364 * rs6000-nat.c (child_xfer_memory): Compute the right address when
1365 fetching the trailing bytes of the buffer we are about to write.
1366
1367 2003-06-10 Andrew Cagney <cagney@redhat.com>
1368
1369 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
1370 * Makefile.in (remote-fileio.o): Update dependencies.
1371 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
1372 include <setjmp.h>, or <sys/types.h> conditional on USG.
1373 (remote_fio_jmp_buf): Delete global variable.
1374
1375 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
1376 Martin M. Hunt <hunt@redhat.com>
1377
1378 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
1379 (SFILES): Add remote-fileio.c.
1380 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
1381 dependencies for building remote.o.
1382 * remote-fileio.c: New file implementing the remote File-I/O protocol.
1383 * remote-fileio.h: New header file defining remote File-I/O interface.
1384 * remote.c (remote_write_bytes, remote_read_bytes): Remove
1385 static storage class.
1386 (remote_wait, remote_async_wait): Call remote_fileio_request() on
1387 'F' packet.
1388 (_initialize_remote): Call initialize_remote_fileio().
1389 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
1390 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
1391 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
1392 (captured_main): Initialize new ui_files.
1393 * ui-file.c: Add read and fgets input functions.
1394 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
1395 (null_file_read): New function.
1396 (ui_file_read): New function.
1397 (set_ui_file_read): New function.
1398 (stdio_file_read): New function.
1399 * ui-file.h: New type ui_file_read_ftype.
1400 (set_ui_file_read): Declare.
1401 (ui_file_read): Declare.
1402
1403 2003-06-09 Andrew Cagney <cagney@redhat.com>
1404
1405 * frame.h (deprecated_unwind_get_saved_register): Rename
1406 generic_unwind_get_saved_register, update comments.
1407 * mips-tdep.c (mips_get_saved_register): Update.
1408 * frame.c (deprecated_unwind_get_saved_register): Update.
1409
1410 2003-06-09 Andrew Cagney <cagney@redhat.com>
1411
1412 * vax-tdep.c (vax_frame_locals_address): Delete function.
1413 (vax_gdbarch_init): Do not set frame_locals_address.
1414 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
1415 (m68hc11_gdbarch_init): Do not set frame_locals_address.
1416 * s390-tdep.c (s390_frame_args_address): Delete function.
1417 (s390_gdbarch_init): Do not set frame_args_address or
1418 frame_locals_address.
1419 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
1420 (ns32k_gdbarch_init): Do not set frame_locals_address.
1421 * hppa-tdep.c (hppa_frame_args_address): Delete function.
1422 (hppa_frame_locals_address): Delete function.
1423 (hppa_gdbarch_init): Do not set frame_args_address, or
1424 frame_locals_address.
1425 * arm-tdep.c (arm_frame_args_address): Delete.
1426 (arm_frame_locals_address): Delete.
1427 (arm_gdbarch_init): Do not set frame_args_address, or
1428 frame_locals_address.
1429
1430 2003-06-09 Andrew Cagney <cagney@redhat.com>
1431
1432 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
1433 * gdbarch.h, gdbarch.c: Re-generate.
1434 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
1435 * arch-utils.c (frame_num_args_unknown): Delete function.
1436 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
1437 (frame_info): Use FRAME_NUM_ARGS_P.
1438 * arm-tdep.c (arm_frame_num_args): Delete function.
1439 (arm_gdbarch_init): Do not set frame_num_args.
1440 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
1441 * hppa-tdep.c (hppa_frame_num_args): Delete function.
1442 (hppa_gdbarch_init): Do not set frame_num_args.
1443 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
1444 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1445 frame_num_args to default frame_num_args_unknown.
1446 * v850-tdep.c (v850_gdbarch_init): Ditto.
1447 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1448 * sh-tdep.c (sh_gdbarch_init): Ditto.
1449 * s390-tdep.c (s390_gdbarch_init): Ditto.
1450 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1451 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1452 * mips-tdep.c (mips_gdbarch_init): Ditto.
1453 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1454 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1456 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1457 * i386-tdep.c (i386_gdbarch_init): Ditto.
1458 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1459 * frv-tdep.c (frv_gdbarch_init): Ditto.
1460 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1461 * cris-tdep.c (cris_gdbarch_init): Ditto.
1462 * avr-tdep.c (avr_gdbarch_init): Ditto.
1463 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1464
1465 2003-06-09 Andrew Cagney <cagney@redhat.com>
1466
1467 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
1468 (print_frame_args): Moved to "stack.c".
1469 * stack.c: Include "gdb_assert.h".
1470 (print_frame_nameless_args): Moved from "printcmd.c", made static.
1471 (print_frame_args): Moved from "printcmd.c".
1472 * frame.h (print_frame_args): Delete declaration.
1473 * Makefile.in (stack.o): Update dependencies.
1474
1475 2003-06-08 Andrew Cagney <cagney@redhat.com>
1476
1477 * frame.c (get_prev_frame): Remove reference to
1478 frame_args_address_correct in comments.
1479 * frame-base.c (default_frame_args_address): Delete code
1480 conditional on FRAME_ARGS_ADDRESS_CORRECT.
1481 * vax-tdep.c (vax_frame_args_address_correct): Delete.
1482 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
1483 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
1484 (vax_frame_args_address_correct): Delete declaration.
1485
1486 2003-06-08 Andrew Cagney <cagney@redhat.com>
1487
1488 * gdbarch.sh (UNWIND_SP): Add.
1489 * gdbarch.h, gdbarch.c: Re-generate.
1490 * frame.c (frame_sp_unwind): New function.
1491 (get_frame_sp): New function.
1492 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
1493 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
1494 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
1495 value.
1496 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
1497 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
1498
1499 2003-06-08 Andrew Cagney <cagney@redhat.com>
1500
1501 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
1502 REMOTE_BREAKPOINT.
1503 * remote.c: Update.
1504 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
1505 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
1506 * config/m68k/tm-sun3.h: Update.
1507 * config/m68k/tm-m68klynx.h: Update.
1508 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
1509
1510 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
1511 trad_frame". Update comments.
1512 * d10v-tdep.c (struct d10v_unwind_cache): Update.
1513 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
1514 (trad_frame_register_value, trad_frame_prev_register): Update.
1515
1516 2003-06-08 Andrew Cagney <cagney@redhat.com>
1517
1518 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
1519 from GCC's acinclude.m4.
1520 * configure.in: Check for getopt's delcaration.
1521 * aclocal.m4, config.in, configure: Re-generate.
1522 * main.c (error_init): Delete declaration.
1523 * defs.h (error_init): Declare.
1524 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
1525 (rs6000_convert_from_func_ptr_addr): Make static.
1526 (_initialize_rs6000_tdep): Add declaration.
1527 * cli/cli-cmds.c (dont_repeat): Delete declaration.
1528 (show_commands, set_verbose, show_history): Delete declaration.
1529 * top.h (set_verbose): Add declaration.
1530 (show_history, set_history, show_commands): Add declaration.
1531 (do_restore_instream_cleanup): Add declaration.
1532 * objc-lang.c (specialcmp): Make static.
1533 (print_object_command): Make static.
1534 (find_objc_msgsend): Make static.
1535 (find_objc_msgcall_submethod_helper): Make static.
1536 (find_objc_msgcall_submethod): Make static.
1537 (_initialize_objc_language): Add declaration.
1538 (find_implementation_from_class): Make static.
1539 (find_implementation): Make static.
1540 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
1541 * objc-lang.h (lookup_struct_typedef): Add declaration.
1542 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
1543 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
1544 (do_restore_user_call_depth): Make static.
1545 (do_restore_instream_cleanup): Delete declaration.
1546 (dont_repeat): Delete declaration.
1547 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
1548 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
1549 * reggroups.c (_initialize_reggroup): Add declaration.
1550 * cp-support.c (_initialize_cp_support): Add declaration.
1551 * cp-abi.c (_initialize_cp_abi): Add declaration.
1552 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
1553 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
1554 (_initialize_gnu_v3_abi): Add declaration.
1555 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
1556 (_initialize_gnu_v2_abi): Add declaration.
1557 * frame-base.c (_initialize_frame_base): Add declaration.
1558 * doublest.c (floatformat_from_length): Make static.
1559 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
1560 * frame.c (create_sentinel_frame): Make static.
1561 (_initialize_frame): Add declaration.
1562 * top.c (do_catch_errors): Make static.
1563 (gdb_rl_operate_and_get_next_completion): Make static.
1564 * typeprint.c: Include "typeprint.h".
1565 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
1566 (sentinel_frame_this_id): Make static.
1567 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
1568 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
1569 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
1570 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
1571 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
1572 * maint.c (maintenance_print_architecture): Make static.
1573 * signals/signals.c (_initialize_signals): Add declaration.
1574 * std-regs.c (_initialize_frame_reg): Add declaration.
1575 * jv-exp.y (push_variable): ISO C definition.
1576 (push_qualified_expression_name): Ditto.
1577 * memattr.c (_initialize_mem): Add declaration.
1578 * remote.c (remote_check_watch_resources): Make static.
1579 (remote_stopped_by_watchpoint): Make static.
1580 (remote_stopped_data_address): Make static.
1581 * d10v-tdep.c (nr_dmap_regs): Make static.
1582 (a0_regnum): Make static.
1583 (d10v_frame_unwind_cache): Make static.
1584 (d10v_frame_p): Make static.
1585 * osabi.c (show_osabi): Make static.
1586 (_initialize_gdb_osabi): Add extern declaration.
1587 * gdbtypes.c (make_qualified_type): Make static.
1588 (safe_parse_type): Make static.
1589 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
1590 * macrotab.c (macro_bcache_free): Make static.
1591 * interps.c (interp_set_quiet): Make static.
1592 (interpreter_exec_cmd): Make static.
1593 * stack.h (select_frame_command): New file.
1594 * stack.c: Include "stack.h".
1595 (select_frame_command_wrapper): Delete function.
1596 (select_frame_command): Make global.
1597 * infcall.c: Include "infcall.h".
1598 * linespec.c: Include "linespec.h".
1599 * symfile.c (sections_overlap): Make static.
1600 * cp-support.h (cp_initialize_namespace): ISO C declaration.
1601 * charset.c (_initialize_charset): Add missing prototype.
1602 * regcache.c (init_legacy_regcache_descr): Make static.
1603 (do_regcache_xfree): Make static.
1604 (regcache_xfer_part): Make static.
1605 (_initialize_regcache): Add missing prototype.
1606 * breakpoint.c (parse_breakpoint_sals): Make static.
1607 (breakpoint_sals_to_pc): Make static.
1608 * interps.h (clear_interpreter_hooks): ISO C declaration.
1609 * Makefile.in (stack_h): Define.
1610 (stack.o, typeprint.o, mi-main.o): Update dependencies.
1611 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
1612
1613 2003-06-08 Andrew Cagney <cagney@redhat.com>
1614
1615 * Makefile.in (d10v-tdep.o): Update dependencies.
1616 (SFILES): Add trad-frame.c.
1617 (trad_frame_h): Define.
1618 (COMMON_OBS): Add trad-frame.o.
1619 (trad-frame.o): Specify dependencies.
1620 * d10v-tdep.c: Include "trad-frame.h".
1621 (saved_regs_unwinder): Delete function.
1622 (d10v_frame_prev_register): Use trad_frame_prev_register.
1623 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
1624 trad_frame", delete "regs" and "prev_sp".
1625 (prologue_find_regs): Use trad-frame.
1626 * trad-frame.h, trad-frame.c: New files.
1627
1628 2003-06-08 Mark Kettenis <kettenis@gnu.org>
1629
1630 * dwarf2cfi.c, dwarf2cfi.h: Remove.
1631
1632 2003-06-07 Adam Fedor <fedor@gnu.org>
1633
1634 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
1635 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
1636 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
1637 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
1638 resolve_msgsend_super, resolve_msgsend_super_stret):
1639 Use it.
1640
1641 2003-06-07 Andrew Cagney <cagney@redhat.com>
1642
1643 * symfile.h: Re-indent, clean up comments.
1644
1645 2003-06-07 Andrew Cagney <cagney@redhat.com>
1646
1647 * inferior.h (deprecated_write_sp): Replace
1648 generic_target_write_sp.
1649 * regcache.c (deprecated_write_sp): Replace
1650 generic_target_write_sp.
1651 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1652 * vax-tdep.c (vax_gdbarch_init): Update.
1653 * v850-tdep.c (v850_gdbarch_init): Update.
1654 * sparc-tdep.c (sparc_gdbarch_init): Update.
1655 * sh-tdep.c (sh_gdbarch_init): Update.
1656 * s390-tdep.c (s390_gdbarch_init): Update.
1657 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1658 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1659 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1660 * mcore-tdep.c (mcore_gdbarch_init): Update.
1661 * m68k-tdep.c (m68k_gdbarch_init): Update.
1662 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1663 * ia64-tdep.c (ia64_gdbarch_init): Update.
1664 * h8300-tdep.c (h8300_gdbarch_init): Update.
1665 * frv-tdep.c (frv_gdbarch_init): Update.
1666 * cris-tdep.c (cris_gdbarch_init): Update.
1667 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
1668
1669 2003-06-07 Andrew Cagney <cagney@redhat.com>
1670
1671 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
1672 Assert that PC_REGNUM is valid.
1673 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
1674
1675 2003-06-07 Andrew Cagney <cagney@redhat.com>
1676
1677 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
1678 * gdbarch.h, gdbarch.c: Regenerate.
1679 * mn10300-tdep.c: Include "gdb_assert.h".
1680 (mn10300_read_fp): New function.
1681 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
1682 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
1683 * ia64-tdep.c: Include "gdb_assert.h".
1684 (ia64_read_fp): New function.
1685 (ia64_gdbarch_init): Set deprecated_target_read_fp to
1686 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
1687 * regcache.c (generic_target_read_sp): Delete function.
1688 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
1689 * inferior.h (generic_target_read_sp): Delete declaration.
1690 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
1691 generic_target_read_sp.
1692 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1693 * sparc-tdep.c (sparc_gdbarch_init): Ditto
1694 * sh-tdep.c (sh_gdbarch_init): Ditto.
1695 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1696 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
1697
1698 2003-06-07 Andrew Cagney <cagney@redhat.com>
1699
1700 * gdbarch.sh: Comment each field of startup_gdbarch.
1701 * gdbarch.h, gdbarch.c: Re-generate.
1702
1703 2003-06-07 Andrew Cagney <cagney@redhat.com>
1704
1705 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
1706 * gdbarch.h, gdbarch.c: Re-generate.
1707 * regcache.c: Update comments on read_pc et.al.
1708 (generic_target_read_pc): Delete function.
1709 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
1710 * inferior.h (generic_target_read_pc): Delete declaration.
1711 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
1712 generic_target_read_pc.
1713 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1714 * sh-tdep.c (sh_gdbarch_init): Ditto.
1715 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1716 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1717
1718 2003-06-07 Andrew Cagney <cagney@redhat.com>
1719
1720 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
1721 "index" with "special_local_sect". Use strcmp instead of STREQ.
1722 Append period to coments.
1723
1724 2003-06-06 Mark Mitchell <mark@codesourcery.com>
1725
1726 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
1727 (elfstab_offset_sections): Likewise.
1728 * gdb-stabs.h (stab_section_info): Likewise.
1729 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
1730 * objfiles.c (objfile_relocate): Likewise.
1731 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
1732 * remote.c (get_offsets): Likewise.
1733 (remote_cisco_objfile_relocate): Likewise.
1734 * somread.c (som_symfile_offsets): Likewise.
1735 * symfile.c (alloc_section_addr_info): New function.
1736 (build_section_addr_info_from_section_tab): Use it.
1737 (free_section_addr_info): Adjust.
1738 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
1739 (syms_from_objfile): Allocate local_addr dynamically.
1740 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
1741 dynamically.
1742 (add_symbol_file_command): Allocate sect_opts dynamically.
1743 (reread_symbols): Avoid use of SECT_OFF_MAX.
1744 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
1745 (alloc_section_addr_info): Declare it.
1746 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
1747 * win32-nat.c (solib_symbols_add): Allocate section_addrs
1748 dynamically.
1749 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
1750
1751 2003-06-06 Andrew Cagney <cagney@redhat.com>
1752
1753 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
1754 (d10v_frame_unwind_cache): Do not set "return_pc".
1755
1756 2003-06-06 Michael Snyder <msnyder@redhat.com>
1757
1758 * h8300-tdep.c: Make tidy (long lines).
1759
1760 2003-06-06 Michal Ludvig <mludvig@suse.cz>
1761
1762 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
1763 to regcache_collect().
1764
1765 2003-06-05 J. Brobecker <brobecker@gnat.com>
1766
1767 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
1768 pc_in_sigtramp multiarch method.
1769 (hppa_hpux_som_init_abi): Use it.
1770 (hppa_hpux_elf_init_abi): Likewise.
1771 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
1772 macro has been multiarched.
1773 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
1774 macro here, as hppa64 isn't multiarched yet.
1775
1776 2003-06-05 Andrew Cagney <cagney@redhat.com>
1777
1778 * Makefile.in (value_h): Add $(frame_h).
1779 * value.h: Include "frame.h".
1780 (struct value): Replace "frame_addr" with "frame_id".
1781 (VALUE_FRAME_ID): Replace VALUE_FRAME.
1782 * values.c (allocate_value): Use VALUE_FRAME_ID.
1783 (value_copy): Use VALUE_FRAME_ID.
1784 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
1785 * valops.c (value_assign): Update. Use frame_find_by_id.
1786
1787 2003-06-05 Michal Ludvig <mludvig@suse.cz>
1788
1789 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
1790 in each pass.
1791
1792 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
1793
1794 * thread-db.c (check_event): For create/death event breakpoints,
1795 loop through all messages to ensure that we read the message
1796 corresponding to the breakpoint we are at.
1797
1798 2003-06-04 Michael Snyder <msnyder@redhat.com>
1799
1800 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
1801
1802 2003-06-04 Mark Kettenis <kettenis@gnu.org>
1803
1804 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
1805 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
1806 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
1807 when handling .eh_frame sections.
1808
1809 2003-06-04 J. Brobecker <brobecker@gnat.com>
1810
1811 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
1812 prepare_to_proceed procedure instead of the hppa-specific one.
1813 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
1814
1815 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
1816
1817 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
1818 * config.in: Regenerated.
1819 * configure.in: Add test for syscall function and check for
1820 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
1821 * configure: Regenerated.
1822 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
1823 <sys/syscall.h>.
1824 (kill_lwp): New function that uses tkill syscall or
1825 uses kill, depending on whether threading model is nptl or not.
1826 All callers of kill() changed to use kill_lwp().
1827 (lin_lwp_wait): Make special check when WIFEXITED occurs to
1828 see if all threads have already exited in the nptl model.
1829 (stop_and_resume_callback): New callback function used by the
1830 lin_lwp_wait thread exit handling code.
1831 (stop_wait_callback): Check for threads already having exited and
1832 delete such threads fromt the lwp list when discovered.
1833 (stop_callback): Don't assert retcode of kill call.
1834
1835 Roland McGrath <roland@redhat.com>
1836 * i386-linux-nat.c (ps_get_thread_area): New function needed by
1837 nptl libthread_db.
1838
1839 2003-06-03 Richard Henderson <rth@redhat.com>
1840
1841 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
1842 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
1843 (alpha_sigtramp_frame_prev_register): Likewise.
1844 (alpha_heuristic_frame_prev_register): Likewise.
1845 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
1846
1847 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
1848 alpha-specific register id names.
1849 (alpha_mdebug_frame_unwind_cache): Likewise.
1850 (alpha_mdebug_frame_prev_register): Likewise.
1851
1852 2003-06-03 Richard Henderson <rth@redhat.com>
1853
1854 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
1855 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
1856 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
1857 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
1858 unwind routines.
1859 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
1860 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
1861 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
1862
1863 * alpha-linux-tdep.c: Remove unnecessary includes.
1864 * Makefile.in (alpha-linux-tdep.o): Update.
1865
1866 2003-06-03 Richard Henderson <rth@redhat.com>
1867
1868 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
1869 (alphabsd_fill_fpreg): Likewise.
1870
1871 2003-06-03 J. Brobecker <brobecker@gnat.com>
1872
1873 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
1874 references to struct frame_info fields by calls to the equivalent
1875 accessors. Necessary now that frame_info is opaque.
1876
1877 2003-06-03 J. Brobecker <brobecker@gnat.com>
1878
1879 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
1880 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
1881 structure, field no longer exists.
1882
1883 2003-06-03 J. Brobecker <brobecker@gnat.com>
1884
1885 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
1886 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
1887
1888 2003-06-03 J. Brobecker <brobecker@gnat.com>
1889
1890 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
1891 references to struct frame_info fields by calls to the equivalent
1892 accessors. Necessary now that frame_info is opaque.
1893
1894 2003-06-03 J. Brobecker <brobecker@gnat.com>
1895
1896 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
1897 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
1898 structure, field no longer exists.
1899
1900 2003-06-03 Theodore A. Roth <troth@openavr.org>
1901
1902 * remote.c (init_remote_state): Compute sizeof_g_packet by
1903 accumulation of the size of all registers instead of blindly using
1904 DEPRECATED_REGISTER_BYTES.
1905
1906 2003-06-03 Michael Snyder <msnyder@redhat.com>
1907
1908 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
1909 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
1910 for h8300sx.
1911
1912 2003-06-03 J. Brobecker <brobecker@gnat.com>
1913
1914 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
1915 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
1916
1917 2003-06-03 Andrew Cagney <cagney@redhat.com>
1918
1919 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
1920 (sparc_convert_to_raw): Delete function.
1921 (sparc_gdbarch_init): Do not set register_convert_to_raw or
1922 register_convert_to_virtual.
1923
1924 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
1925
1926 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
1927 layer if not dealing with a statically-linked threaded program.
1928
1929 2003-06-03 Kris Warkentin <kewarken@qnx.com>
1930
1931 * solib.c (solib_open): Update comment to reflect actual search order.
1932
1933 2003-06-03 Andrew Cagney <cagney@redhat.com>
1934
1935 * frame.c (get_frame_memory_signed): New function.
1936 (get_frame_memory, get_frame_memory_unsigned): New function.
1937 (get_frame_arch): New function.
1938 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
1939 (get_frame_memory, get_frame_unsigned_memory): Declare.
1940 * d10v-tdep.c (d10v_frame_unwind_cache): Use
1941 get_frame_memory_unsigned and get_frame_arch.
1942 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
1943
1944 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
1945
1946 * MAINTAINERS (write after approval): Add myself.
1947
1948 2003-06-03 Jim Blandy <jimb@redhat.com>
1949
1950 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
1951 elements of gregset_t are 64 bits each, but access registers
1952 are still 32 bits, so they're packed two per gregset_t
1953 element. Unpack/pack them properly.
1954
1955 2003-06-02 David Carlton <carlton@bactrian.org>
1956
1957 * linespec.c (find_methods): Break out code into
1958 add_matching_methods and add_constructors.
1959 (add_matching_methods): New.
1960 (add_constructors): Ditto.
1961
1962 2003-06-02 Andrew Cagney <cagney@redhat.com>
1963
1964 * sparc-tdep.c (sparc_print_registers): Delete call to
1965 REGISTER_CONVERTIBLE.
1966 (sparc_gdbarch_init): Do not set register_convertible.
1967 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1968 * frv-tdep.c (frv_gdbarch_init): Ditto.
1969 * cris-tdep.c (cris_gdbarch_init): Ditto.
1970
1971 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
1972
1973 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
1974 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
1975 (syms_from_objfile): Ditto.
1976
1977 2003-06-03 Andreas Schwab <schwab@suse.de>
1978
1979 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
1980 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
1981
1982 2003-06-02 Richard Henderson <rth@redhat.com>
1983
1984 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
1985 a member of all_reggroup.
1986
1987 2003-06-02 Richard Henderson <rth@redhat.com>
1988
1989 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
1990 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
1991 (alpha_lds, alpha_sts): New.
1992 (alpha_convert_register_p): Change from _register_convertible.
1993 (alpha_register_to_value): Change from _convert_to_virtual;
1994 restructure and fail for type sizes other than 4 or 8.
1995 (alpha_value_to_register): Similarly.
1996 (alpha_extract_return_value): Use alpha_sts.
1997 (alpha_store_return_value): Use alpha_lds.
1998 (alpha_gdbarch_init): Update hooks.
1999
2000 2003-06-02 Richard Henderson <rth@redhat.com>
2001
2002 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
2003 regnum identifiers.
2004 (alpha_sigtramp_register_address): Likewise.
2005
2006 2003-06-02 Richard Henderson <rth@redhat.com>
2007
2008 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
2009 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
2010 * alpha-tdep.h: Declare them.
2011
2012 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
2013 Remove zerobuf. Don't error on UNIQUE.
2014 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
2015 (ALPHA_REGSET_UNIQUE): Provide default.
2016 (supply_gregset): Use alpha_supply_int_regs.
2017 (fill_gregset): Use alpha_fill_int_regs.
2018 (supply_fpregset): Use alpha_supply_fp_regs.
2019 (fill_fpregset): Use alpha_fill_fp_regs.
2020 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
2021 (alphabsd_supply_reg): Use alpha_supply_int_regs.
2022 (alphabsd_fill_reg): Use alpha_fill_int_regs.
2023 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
2024 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
2025 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
2026
2027 2003-06-02 Richard Henderson <rth@redhat.com>
2028
2029 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
2030
2031 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
2032 (alpha_store_return_value): Likewise.
2033
2034 2003-06-02 David Carlton <carlton@math.stanford.edu>
2035
2036 * block.c (contained_in): Add 'const' to arguments.
2037 (block_function): Ditto.
2038 * block.h: Update declarations for block_function and
2039 contained_in.
2040
2041 2003-06-02 David Carlton <carlton@math.stanford.edu>
2042
2043 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
2044 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
2045 * p-valprint.c (pascal_val_print): Ditto.
2046 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
2047
2048 2003-06-02 Richard Henderson <rth@redhat.com>
2049
2050 * alpha-tdep.c (alpha_push_dummy_call): Use
2051 builtin_type_ieee_double_little instead of builtin_type_double.
2052
2053 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
2054 sign-extension of 32-bit values.
2055 (alpha_store_return_value): Similarly.
2056
2057 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
2058 (alpha_extract_return_value): Likewise.
2059 (alpha_store_return_value): Likewise.
2060
2061 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
2062 (alpha_store_return_value): Error on IEEE Quad floats.
2063
2064 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
2065 (alpha_extract_struct_value_address): Likewise.
2066 (alpha_store_return_value): Likewise.
2067 (alpha_store_struct_return): Remove.
2068 (alpha_gdbarch_init): Update hook registration to match.
2069
2070 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
2071 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
2072 macros where appropriate.
2073 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
2074 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
2075
2076 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
2077 for SP, GP; void_func_ptr for PC; non-language-specific types
2078 for all others.
2079 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
2080
2081 2003-06-02 Richard Henderson <rth@redhat.com>
2082
2083 * top.h (lim_at_start): Declare.
2084 * main.c (captured_main): Set it.
2085 * top.c (lim_at_start): Define.
2086 (command_loop): Use it instead of &environ.
2087 * event-top.c (command_handler): Likewise.
2088
2089 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
2090
2091 * mipsnbsd-tdep.c: Update copyright years.
2092 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
2093
2094 2003-06-01 Richard Henderson <rth@redhat.com>
2095
2096 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
2097 (alpha-linux-tdep.o): Update dependencies.
2098 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
2099 * alpha-mdebug-tdep.c: Remove unneeded includes.
2100
2101 2003-06-01 Richard Henderson <rth@redhat.com>
2102
2103 * alpha-tdep.c (alpha_register_reggroup_p): New.
2104 (alpha_gdbarch_init): Register it.
2105
2106 2003-06-02 Andrew Cagney <cagney@redhat.com>
2107
2108 * dwarfread.c: Eliminate "register"
2109 (decode_die_type): Eliminate assignment within "if".
2110 (struct_type, decode_array_element_type): Ditto.
2111 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
2112 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
2113 (decode_modified_type, completedieinfo): Ditto.
2114 * block.c: Eliminate "register".
2115 (blockvector_for_pc_sect): Eliminate assignment within "if".
2116 * cp-support.h (struct symbol): Opaque declaration.
2117 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
2118
2119 2003-06-01 Richard Henderson <rth@redhat.com>
2120
2121 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
2122 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
2123
2124 2003-06-01 Adam Fedor <fedor@gnu.org>
2125
2126 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
2127 * gdbarch.[ch]: Regenerate.
2128 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
2129 (hppa_gdbarch_init): Set it in the gdbarch vector.
2130 * i386-tdep.c (i386_fetch_pointer_argument): New
2131 (i386_gdbarch_init): Set it into gdbarch.
2132 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
2133 (rs6000_gdbarch_init): Set it in gdbarch.
2134 * sparc-tdep.c (sparc_fetch_pointer_argument): New
2135 (sparc_gdbarch_init): Set it in gdbarch.
2136
2137 2003-06-01 Andrew Cagney <cagney@redhat.com>
2138
2139 * defs.h (extract_address): Delete declaration.
2140 * findvar.c (extract_address): Delete function.
2141 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
2142 extract_address with the inline equivalent,
2143 extract_unsigned_integer.
2144 (xstormy16_extract_struct_value_address): Ditto.
2145 (xstormy16_pointer_to_address): Ditto.
2146 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
2147 * v850-tdep.c (v850_push_arguments): Ditto.
2148 (v850_extract_return_value): Ditto.
2149 (v850_extract_struct_value_address): Ditto.
2150 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
2151 (sparcnbsd_get_longjmp_target_64): Ditto.
2152 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
2153 (get_longjmp_target): Ditto.
2154 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
2155 (sh64_extract_struct_value_address): Ditto.
2156 (sh_push_arguments): Ditto.
2157 (sh64_push_arguments): Ditto.
2158 * remote-vxsparc.c (vx_read_register): Ditto.
2159 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
2160 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
2161 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
2162 * mipsv4-nat.c (get_longjmp_target): Ditto.
2163 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
2164 * mips-nat.c (get_longjmp_target): Ditto.
2165 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
2166 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
2167 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
2168 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
2169 * irix5-nat.c (get_longjmp_target): Ditto.
2170 * irix4-nat.c (get_longjmp_target): Ditto.
2171 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
2172 (ia64_push_arguments): Ditto.
2173 * hpux-thread.c (hpux_thread_store_registers): Ditto.
2174 * h8300-tdep.c (h8300_push_arguments): Ditto.
2175 (h8300_store_return_value): Ditto.
2176 (h8300_extract_struct_value_address): Ditto.
2177 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
2178 (frv_push_arguments): Ditto.
2179 * avr-tdep.c (avr_pointer_to_address): Ditto.
2180 (avr_push_arguments): Ditto.
2181 * arm-tdep.c (arm_push_dummy_call): Ditto.
2182 (arm_get_longjmp_target): Ditto.
2183 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
2184 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
2185 (alpha_get_longjmp_target): Ditto.
2186
2187 * solib-irix.c (extract_mips_address): Inline extract_address,
2188 replacing it with extract_signed_integer.
2189 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2190 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
2191 (first_link_map_member, open_symbol_file_object): Ditto.
2192 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
2193 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2194 (LM_NEXT, LM_NAME): Ditto.
2195
2196 2003-06-01 Richard Henderson <rth@redhat.com>
2197
2198 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
2199 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
2200 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
2201 (alpha_cannot_store_register): Likewise.
2202 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
2203 * alpha-nat.c (supply_gregset): Likewise.
2204 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
2205
2206 2003-06-01 Andrew Cagney <cagney@redhat.com>
2207
2208 * infcall.c (call_function_by_hand): Update comment on
2209 DEPRECATED_DUMMY_WRITE_SP.
2210
2211 * mips-tdep.c (mips_gdbarch_init): Do not set
2212 deprecated_dummy_write_sp.
2213 (mips_eabi_push_dummy_call): Set the SP register.
2214 (mips_o64_push_dummy_call): Set the SP register.
2215 (mips_o32_push_dummy_call): Set the SP register.
2216 (mips_n32n64_push_dummy_call): Set the SP register.
2217
2218 2003-06-01 Richard Henderson <rth@redhat.com>
2219
2220 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
2221 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
2222 (supply_gregset): Likewise.
2223 * alpha-tdep.c (alpha_store_return_value): Likewise.
2224 (alpha_get_longjmp_target): Likewise.
2225 (alpha_register_name): Constify array.
2226 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
2227 deprecated_register_size, deprecated_register_bytes,
2228 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
2229 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
2230 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
2231
2232 2003-06-01 Richard Henderson <rth@redhat.com>
2233
2234 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
2235 from arg_reg_buffer to regcache to avoid double conversion.
2236
2237 2003-06-01 Mark Kettenis <kettenis@gnu.org>
2238
2239 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
2240 SP_REGNUM.
2241 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
2242 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
2243
2244 2003-06-01 Richard Henderson <rth@redhat.com>
2245
2246 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
2247 (decode_frame_entry): Set it. Skip FDE augmentation.
2248
2249 2003-06-01 Richard Henderson <rth@redhat.com>
2250
2251 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
2252 not overlapping PC_REGNUM.
2253
2254 2003-06-01 Richard Henderson <rth@redhat.com>
2255
2256 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
2257 alpha_push_arguments. Don't dump argument register data to
2258 the target stack. Fix float and 128-bit long double semantics.
2259 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
2260 (alpha_fix_call_dummy): Remove.
2261 (alpha_call_dummy_words): Remove.
2262 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
2263
2264 2003-06-01 Richard Henderson <rth@redhat.com>
2265
2266 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
2267
2268 2003-06-01 Andrew Cagney <cagney@redhat.com>
2269
2270 * mips-tdep.c (is_mips16_addr): New function.
2271 (make_mips16_addr, unmake_mips16_addr): New functions.
2272 (pc_is_mips16, mips_fetch_instruction): Use.
2273 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
2274 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
2275 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
2276 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
2277 TARGET_MIPS.
2278 * config/mips/tm-mips.h: Update copyright.
2279 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
2280 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
2281 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
2282 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
2283 (TM_PRINT_INSN_MACH): Delete.
2284 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
2285
2286 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
2287 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
2288 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
2289 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
2290 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
2291 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
2292 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
2293 mips*-*-riscos* and mips*-*-sysv* onto mips.
2294 * config/mips/mips64.mt: New file.
2295 * config/mips/mips.mt: New file.
2296 * config/mips/littlemips.mt: Delete file.
2297 * config/mips/decstation.mt: Delete file.
2298 * config/mips/vr4300el.mt: Delete file.
2299 * config/mips/vr5000el.mt: Delete file.
2300 * config/mips/vr5000.mt: Delete file.
2301 * config/mips/vr4100.mt: Delete file.
2302 * config/mips/vr4xxxel.mt: Delete file.
2303 * config/mips/vr4300.mt: Delete file.
2304 * config/mips/vr4xxx.mt: Delete file.
2305 * config/mips/bigmips.mt: Delete file.
2306 * config/mips/bigmips64.mt: Delete file.
2307 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
2308 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
2309 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
2310 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
2311 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
2312 "tm-bigmips.h".
2313 * config/mips/tm-irix3.h: Ditto.
2314 * config/mips/tm-mipsv4.h: Ditto.
2315 * config/mips/tm-embed.h: Ditto.
2316 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
2317 "tm-bigmips64.h".
2318 * config/mips/tm-vr5000el.h: Delete file.
2319 * config/mips/tm-tx39l.h: Delete file.
2320 * config/mips/tm-vr4300el.h: Delete file.
2321 * config/mips/tm-vr4xxxel.h: Delete file.
2322 * config/mips/tm-vr4300.h: Delete file.
2323 * config/mips/tm-vr4100.h: Delete file.
2324 * config/mips/tm-vr4xxx.h: Delete file.
2325 * config/mips/tm-vr5000.h: Delete file.
2326 * config/mips/tm-embedl64.h: Delete file.
2327 * config/mips/tm-embedl.h: Delete file.
2328 * config/mips/tm-embed64.h: Delete file.
2329 * config/mips/tm-bigmips64.h: Delete file.
2330 * config/mips/tm-bigmips.h: Delete file.
2331
2332 2003-06-01 Mark Kettenis <kettenis@gnu.org>
2333
2334 Fix gdb/1216.
2335 * shnbsd-nat.c: Include "sh-tdep.h".
2336
2337 From Richard Henderson <rth@redhat.com>:
2338 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
2339
2340 2003-05-31 Andrew Cagney <cagney@redhat.com>
2341
2342 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
2343 forward declaration.
2344 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
2345 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
2346 (mips_find_saved_regs): Use set_reg_offset.
2347 (mips_frame_init_saved_regs): Delete function.
2348 (mips_pop_frame): Call mips_find_saved_regs instead of
2349 DEPRECATED_FRAME_INIT_SAVED_REGS.
2350
2351 2003-05-31 Andrew Cagney <cagney@redhat.com>
2352
2353 * mips-tdep.c (mips_gdbarch_init): Do not set
2354 deprecated_max_register_raw_size, register_virtual_size, and
2355 deprecated_max_register_virtual_size.
2356
2357 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2358
2359 * i386-tdep.c: Include "dwarf2-frame.h".
2360 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
2361 * Makefile.in (i386-tdep.o): Update dependencies.
2362
2363 * dwarf2-frame.c, dwarf2-frame.h: New files.
2364 * Makefile.in (SFILES): Add dwarf2-frame.c.
2365 (dwarf2_frame_h): Define.
2366 (COMMON_OBS): Add dwarf2-frame.o.
2367 (dwarf2-frame.o): Add dependencies.
2368
2369 2003-05-31 Andreas Jaeger <aj@suse.de>
2370
2371 * x86-64-linux-nat.c: Fix comment.
2372
2373 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2374
2375 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
2376 function signature.
2377
2378 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
2379 have a sigcontext_addr handler.
2380 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
2381 sigcontext_addr handler.
2382
2383 2003-05-31 Andrew Cagney <cagney@redhat.com>
2384
2385 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
2386 (print_fp_register_row): Replace do_fp_register_row.
2387 (mips_print_fp_register): Add "file" and "frame" parameters.
2388 (mips_print_register): Add "file" and "frame" parameters.
2389 (mips_print_registers_info): Replace mips_do_registers_info.
2390 (mips_gdbarch_init): Set print_registers_info instead of
2391 deprecated_do_registers_info.
2392 (mips_read_fp_register_single): Add "frame" parameter.
2393 (mips_read_fp_register_double): Add "frame" parameter.
2394
2395 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2396
2397 * i386-tdep.c (i386_register_name): Check for MMX registers first.
2398 Fixes a bug where GDB would print the wrong register names for
2399 targets without SSE.
2400
2401 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
2402 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
2403 registers.
2404
2405 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
2406 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
2407 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2408 TDEP->sc_sp_offset.
2409
2410 From Michal Ludvig <mludvig@suse.cz>:
2411 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
2412 and `sc_num_regs'.
2413 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
2414 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
2415 I386_ST0_REGNUM): Move here from...
2416 * i386-tdep.c: ... here.
2417 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
2418 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
2419 registers if possible.
2420 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
2421 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
2422 Remove variables.
2423 (i386bsd_sc_reg_offset): New variable.
2424 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
2425 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2426 TDEP->sc_sp_offset.
2427 (i386fbsd_sc_reg_offset): New variable.
2428 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
2429 TDEP->sc_num_regs.
2430 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
2431 variables.
2432 (i386fbsd4_sc_reg_offset): New variable.
2433 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
2434 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2435 TDEP->sc_sp_offset.
2436 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
2437 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
2438 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
2439 Remove variables.
2440 (i386nbsd_sc_reg_offset): New variable.
2441 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
2442 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2443 TDEP->sc_sp_offset.
2444 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
2445 Remove variables.
2446 (i386obsd_sc_reg_offset): New variable.
2447 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
2448 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
2449 TDEP->sc_sp_offset.
2450 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
2451 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
2452 for frame pointer offset in `struct sigcontext'.
2453
2454 2003-05-31 Andrew Cagney <cagney@redhat.com>
2455
2456 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
2457 architecture methods call_dummy_words, sizeof_call_dummy_words,
2458 push_return_address, store_struct_return, and fix_call_dummy. Set
2459 push_dummy_call instead of deprecated_push_arguments.
2460 (mips_store_struct_return): Delete function.
2461 (mips_fix_call_dummy): Delete function.
2462 (mips_push_return_address): Delete function.
2463 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
2464 RA_REGNUM and T9_REGNUM.
2465 (mips_n32n64_push_dummy_call): Ditto for
2466 mips_n32n64_push_arguments.
2467 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
2468 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
2469
2470 2003-05-31 Andrew Cagney <cagney@redhat.com>
2471
2472 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
2473 "dummy_addr" to "bp_addr".
2474 * infcall.c (call_function_by_hand): Pass "funaddr" to
2475 gdbarch_push_dummy_call.
2476 * gdbarch.h, gdbarch.c: Re-generate.
2477 * i386-tdep.c (i386_push_dummy_call): Update.
2478 * arm-tdep.c (arm_push_dummy_call): Update.
2479 * d10v-tdep.c (d10v_push_dummy_call): Update.
2480
2481 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2482
2483 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
2484 variable declarations.
2485 (x86_64_register_number, x86_64_register_name): Remove prototypes.
2486 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
2487 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
2488 x86_64_init_frame_pc, x86_64_init_frame_pc,
2489 x86_64_function_has_prologue): Remove prototypes.
2490 (X86_64_NUM_GREGS): New define.
2491 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
2492 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
2493 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
2494 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
2495 XMM1_REGNUM): Remove defines.
2496 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
2497 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
2498 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
2499 X86_64_XMM1_REGNUM): New defines.
2500 (struct x86_64_register_info): Renamed from `struct
2501 register_info'. Remove `size' member.
2502 (x86_64_register_info_table): Remove variable.
2503 (x86_64_register_info): New variable.
2504 (X86_64_NUM_REGS): New define.
2505 (X86_64_NUM_GREGS): Remove define.
2506 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
2507 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
2508 Remove variables.
2509 (x86_54_dwarf2_reg_to_regnum): Remove function.
2510 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
2511 (x86_64_dwarf_reg_to_regnum): New function.
2512 (x86_64_register_name): Rewrite.
2513 (x86_64_register_raw_size): Remove function.
2514 (x86_64_register_byte_table): Remove variable.
2515 (x86_64_register_byte): Remove function.
2516 (x86_64_register_virtual_type): Remove function.
2517 (x86_64_register_type): New function.
2518 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
2519 x86_64_register_convert_to_raw): Remove functions.
2520 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
2521 (x86_64_use_struct_convention): Make static. Adjust for renamed
2522 defines.
2523 (x86_64_frame_init_saved_regs): Remove function.
2524 (x86_64_push_arguments): Make static. Change to accept a regcache
2525 as argument.
2526 (x86_64_store_return_value, x86_64_extract_return_value): Make
2527 static. Rewrite based on i386 counterparts.
2528 (x86_64_push_dummy_call): New function.
2529 (X86_64_NUM_SAVED_REGS): New define.
2530 (x86_64_register_number): Remove function.
2531 (x86_64_store_struct_return): Remove function.
2532 (x86_64_frameless_function_invocation,
2533 x86_64_function_has_prologue): Remove functions.
2534 (PROLOG_BUFSIZE): Remove define.
2535 (struct x86_64_frame_cache): New structure.
2536 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
2537 x86_64_frame_cache, x86_64_frame_this_id,
2538 x86_64_frame_prev_register, x86_64_frame_p,
2539 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
2540 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
2541 functions.
2542 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
2543 variables.
2544 (x86_64_skip_prologue): Rewrite in terms of
2545 x86_64_analyze_prologue.
2546 (x86_64_frame_base_address): New function.
2547 (x86_64_frame_base): New variable.
2548 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
2549 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
2550 set deprecated_fp_regnum, deprecated_register_size,
2551 deprecated_register_bytes, register_raw_size, register_byte,
2552 register_virtual_type, register_convertiable,
2553 register_convert_to_virtual, convert_to_raw,
2554 deprecated_get_saved_register, deprecated_target_read_fp,
2555 deprecated_push_arguments, deprecated_push_return_address,
2556 deprecated_pop_frame, deprecated_store_struct_return,
2557 deprecated_frame_init_saved_regs, deprecated_frame_chain,
2558 frameless_function_invocation, deprecated_frame_saved_pc,
2559 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
2560 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
2561 deprecated_init_frame_pc and virtual_frame_pointer. Call
2562 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
2563 and x86_64_frame_p. Call frame_base_set_default to register
2564 x86_64_frame_base.
2565 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
2566 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
2567 (_initialize_x86_64_tdep): Remove function.
2568 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
2569 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
2570 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
2571 define.
2572 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
2573 (x86_64_linux_sigcontext_addr): Rewrite.
2574 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
2575 x86_64_linux_frame_saved_pc): Remove functions.
2576 (x86_64_linux_pc_in_sigtramp): Renamed from
2577 x86_64_linux_in_sigtramp. Try harder to recognize a signal
2578 trampoline.
2579 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
2580 Remove_functions.
2581 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
2582 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
2583 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
2584 (x86_64_regmap): Rename to regmap.
2585 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
2586 x86_64_num_gregs.
2587 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
2588 x86_64_regmap.
2589 (x86_64_fxsave_offset): Remove function.
2590 (supply_fpregset): Simply call x86_64_supply_fxsave.
2591 (fill_fpregset): Simply call x86_64_fill_fxsave.
2592 (fetch_inferior_registers, store_inferior_registers): Avoid
2593 asignment in if-statement.
2594 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
2595 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
2596 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
2597 (fetch_core_registers): Remove function.
2598 (linux_elf_core_fns): Remove.
2599 (offsetoff): Don't define.
2600 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
2601 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
2602 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
2603 add core-regset.o.
2604 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
2605 protection against multiple includes instead of NM_X86_64_h. Add
2606 various comments. Include "config/nm-linux.h". Don't include
2607 <signal.h>.
2608 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
2609 GET_THREAD_SIGNALS): Remove defines.
2610 (x86_64_register_u_addr, kernel_u_size,
2611 lin_thread_get_thread_signals): Remove prototypes.
2612 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
2613 [HAVE_LINK_H]: Don't include "solib.h".
2614 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
2615 * config/i386/tm-x86-64linux.h: Fix comments.
2616 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
2617 x86-64-tdep.o): Update dependencies.
2618
2619 2003-05-30 Andrew Cagney <cagney@redhat.com>
2620
2621 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
2622 Change parameter type to a "struct regcache *".
2623
2624 * gdbarch.sh: Regardless of the multi-arch level, always define
2625 the macro when not already defined.
2626 * gdbarch.h, gdbarch.c: Re-generate.
2627
2628 2003-05-30 Richard Henderson <rth@redhat.com>
2629
2630 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
2631 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
2632 (alpha_mdebug_frame_this_id): Likewise.
2633 (alpha_mdebug_frame_prev_register): Likewise.
2634 (alpha_mdebug_frame_base_address): Likewise.
2635 (alpha_mdebug_frame_locals_address): Likewise.
2636 (alpha_mdebug_frame_args_address): Likewise.
2637 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
2638 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
2639 (alpha_heuristic_frame_unwind_cache): Make static; add missing
2640 loop increment.
2641 (alpha_heuristic_frame_this_id): Make static.
2642 (alpha_heuristic_frame_prev_register): Likewise.
2643 (alpha_heuristic_frame_base_address): Likewise.
2644 * alpha-tdep.h: Update.
2645
2646 2003-05-30 Mark Kettenis <kettenis@gnu.org>
2647
2648 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
2649 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
2650 defenitions.
2651 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
2652 * i386-tdep.c: Mark functions that are 64-bit safe as such.
2653 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
2654 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
2655 I386_ST0_REGNUM): New defines.
2656 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
2657 codestream_get): Remove define.
2658 (codestream_next_addr, condestream_addr, condestream_buf,
2659 codestream_off, codestream_cnt): Remove variables.
2660 (codestream_fill, codestream_seek, codestream_read): Remove
2661 functions.
2662 (i386_follow_jump): Rewrite to avoid usage of removed codestream
2663 functionality.
2664 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
2665 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
2666 i386_frame_saved_pc, i386_saved_pc_after_call,
2667 i386_frame_num_args, i386_frame_init_saved_regs,
2668 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
2669 i386_push_arguments): Remove functions.
2670 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
2671 functionality. Use i386_analyze_prologue instead of
2672 i386_get_frame_setup.
2673 (I386_NUM_SAVED_REGS): New define.
2674 (struct i386_frame_cache): New structure.
2675 (i386_alloc_frame_cache, i386_analyze_struct_return,
2676 i386_skip_probe, i386_analyze_frame_setup,
2677 i386_analyze_register_saves, i386_analyze_prologue,
2678 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
2679 i386_frame_prev_register, i386_sigtramp_frame_cache,
2680 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
2681 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
2682 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
2683 New functions.
2684 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
2685 New variables.
2686 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
2687 I386_EAX_REGNUM and I386_EDX_REGNUM.
2688 (i386_extract_return_value, i386_store_return_value): Use
2689 I386_ST0_REGNUM where appropriate.
2690 (i386_extract_struct_value_address): Rewrite to use extract_address.
2691 (i386_svr4_pc_in_sigtramp): Add comment.
2692 (i386_svr4_sigcontext_addr): Rewrite.
2693 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
2694 TDEP->sc_sp_offset.
2695 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
2696 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
2697 of new defines. Set push_dummy_call, don't set
2698 deprecated_push_arguments, deprecated_push_return_address,
2699 deprecated_pop_frame. Don't set parm_boundary. Don't set
2700 deprecated_frame_chain, deprecated_frame_saved_pc,
2701 deprecated_saved_pc_after_call. Set unwind_dummy_id,
2702 save_dummy_frame_tos, unwind_pc. Call
2703 frame_unwind_append_predicate and frame_base_set_default. Don't
2704 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
2705 Don't set frameless_function_invocation. Don't set
2706 deprecated_register_bytes, deprecated_register_size,
2707 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
2708 * i386-linux-tdep.c: Fix formatting in some comments.
2709 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
2710 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
2711 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
2712 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
2713 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
2714 redundant parentheses.
2715 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
2716 (i386_linux_sigcontext_addr): Use it. Rewrite.
2717 (find_minsym_and_objfile): Change name of second argument.
2718 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
2719 changed. Use frame_pc_unwind instead of
2720 DEPRECATED_SAVED_PC_AFTER_CALL.
2721 (i386_linux_init_abi): Don't set deprecated_register_bytes.
2722 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
2723 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
2724 unwinder.
2725 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
2726 "dummy-frame.h".
2727 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
2728 (_initialize_i386_cygwin_tdep): New prototype.
2729 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
2730 deprecated_frame_chain_valid.
2731 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
2732 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
2733 Rely on the SVR4 defaults.
2734 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
2735 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
2736
2737 2003-05-30 Andrew Cagney <cagney@redhat.com>
2738
2739 * infcall.c (call_function_by_hand): Always call
2740 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
2741
2742 2003-05-30 Richard Henderson <rth@redhat.com>
2743
2744 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
2745 increment.
2746
2747 2003-05-29 Jim Blandy <jimb@redhat.com>
2748
2749 Use gdbarch methods for solib stuff on PowerPC Linux.
2750 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
2751 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
2752 show through.
2753 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2754 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
2755 giving the same effect as the #definitions above.
2756
2757 2003-05-29 Adam Fedor <fedor@gnu.org>
2758
2759 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
2760 (find_implementation_from_class): Replace it with the standard
2761 case i.e. do nothing.
2762
2763 2003-05-29 Richard Henderson <rth@redhat.com>
2764
2765 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
2766 (alpha_linux_sigtramp_offset): Use it. Make static.
2767 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
2768 update for new frame model.
2769 * alpha-mdebug-tdep.c: New file.
2770 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
2771 (alpha_osf1_init_abi): Install it.
2772 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
2773 (linked_proc_desc_table): Remove.
2774 (alpha_frame_past_sigtramp_frame): Remove.
2775 (alpha_dynamic_sigtramp_offset): Remove.
2776 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
2777 (alpha_proc_desc_is_dyn_sigtramp): Remove.
2778 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
2779 (push_sigtramp_desc): Remove.
2780 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
2781 (alpha_cannot_store_register): Likewise.
2782 (alpha_sigcontext_addr): Remove.
2783 (alpha_find_saved_regs): Remove.
2784 (alpha_frame_init_saved_regs): Remove.
2785 (alpha_init_frame_pc_first): Remove.
2786 (read_next_frame_reg): Remove.
2787 (alpha_frame_saved_pc): Remove.
2788 (alpha_saved_pc_after_call): Remove.
2789 (temp_proc_desc, temp_saved_regs): Remove.
2790 (alpha_about_to_return): Remove.
2791 (cached_proc_desc): Remove.
2792 (alpha_frame_chain): Remove.
2793 (alpha_print_extra_frame_info): Remove.
2794 (alpha_init_extra_frame_info): Remove.
2795 (alpha_frame_locals_address): Remove.
2796 (alpha_frame_args_address): Remove.
2797 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
2798 (alpha_push_dummy_frame): Remove.
2799 (alpha_pop_frame): Remove.
2800 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
2801 (alpha_read_insn): New.
2802 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
2803 for different insn encodings.
2804 (alpha_in_lenient_prologue): Remove.
2805 (struct alpha_sigtramp_unwind_cache): New.
2806 (alpha_sigtramp_frame_unwind_cache): New.
2807 (alpha_sigtramp_register_address): New.
2808 (alpha_sigtramp_frame_this_id): New.
2809 (alpha_sigtramp_frame_prev_register): New.
2810 (alpha_sigtramp_frame_unwind): New.
2811 (alpha_sigtramp_frame_p): New.
2812 (struct alpha_heuristic_unwind_cache): New.
2813 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
2814 don't count nop insns that occur between functions.
2815 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
2816 heuristic_proc_desc, but without the mdebug wrapping.
2817 (alpha_heuristic_frame_this_id): New.
2818 (alpha_heuristic_frame_prev_register): New.
2819 (alpha_heuristic_frame_unwind): New.
2820 (alpha_heuristic_frame_p): New.
2821 (alpha_heuristic_frame_base_address): New.
2822 (alpha_heuristic_frame_base): New.
2823 (alpha_unwind_dummy_id): New.
2824 (alpha_unwind_pc): New.
2825 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
2826 frame related deprecated initializations; install replacements.
2827 (alpha_dump_tdep): Remove.
2828 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
2829 (alpha_read_insn, alpha_after_prologue,
2830 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
2831 alpha_heuristic_frame_prev_register,
2832 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
2833 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2834 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
2835 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
2836
2837 2003-05-29 Andrew Cagney <cagney@redhat.com>
2838
2839 * gdb_assert.h (gdb_assert_fail): Provide different definitions
2840 dependant on the availability of ASSERT_FUNCTION.
2841 (ASSERT_FUNCTION): Do not define when there is no function name.
2842
2843 2003-05-29 Kevin Buettner <kevinb@redhat.com>
2844
2845 From Jimi X <jimix@watson.ibm.com>:
2846 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
2847
2848 2003-05-28 Jim Blandy <jimb@redhat.com>
2849
2850 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
2851 argument to ptrace to int; the system headers should give it the
2852 right type, and pointers don't fit in ints on powerpc64-*-*.
2853
2854 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
2855
2856 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
2857 DW_TAG_catch_block.
2858
2859 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
2860
2861 * stabsread.c (dbx_lookup_type): Make static.
2862 (read_type): Ditto.
2863 (add_undefined_type): Ditto.
2864 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
2865 not export.
2866
2867 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
2868
2869 * hpread.c (hpread_has_name): Make static.
2870 (hpread_psymtab_to_symtab): Ditto.
2871 (file_exists): Ditto.
2872 (hpread_call_pxdb): Ditto.
2873 (hpread_pxdb_needed): Ditto.
2874 (hpread_quick_traverse): Ditto.
2875 (hpread_get_header): Ditto.
2876 (hpread_get_lntt): Ditto.
2877 (hpread_get_slt): Ditto.
2878 (class_of): Ditto.
2879
2880 2003-05-25 Andreas Schwab <schwab@suse.de>
2881
2882 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
2883 stack_align and deprecated_extra_stack_alignment_needed.
2884 (m68k_stack_align): Delete.
2885
2886 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
2887 (m68k_register_virtual_size): Likewise.
2888 (altos_skip_prologue): Remove obsolete function.
2889 (isi_frame_num_args): Likewise.
2890 (news_frame_num_args): Likewise.
2891 (m68k_fix_call_dummy): Make static.
2892 (m68k_push_dummy_frame): Likewise.
2893 (m68k_pop_frame): Likewise.
2894 (m68k_skip_prologue): Likewise.
2895 (m68k_frame_init_saved_regs): Likewise.
2896 (m68k_saved_pc_after_call): Likewise.
2897 (m68k_get_longjmp_target): Make multi-arch.
2898 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
2899 structure. Register m68k_get_longjmp_target if enabled.
2900 * m68k-tdep.h (struct gdbarch_tdep): Define.
2901 * config/m68k/tm-m68k.h: Don't include "regcache.h".
2902
2903 * Makefile.in (config.status): Also depend on configure.tgt
2904 and configure.host.
2905 (m68klinux-tdep.o): Update dependencies.
2906 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
2907 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
2908 (M68K_LINUX_JB_PC): Define.
2909 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
2910 and take additional parameter.
2911 (m68k_linux_sigtramp_saved_pc): Update.
2912 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
2913 m68k_linux_pc_in_sigtramp, in_plt_section,
2914 find_solib_trampoline_target.
2915 * config/m68k/tm-linux.h: Don't include any tm headers.
2916 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
2917 (JB_ELEMENT_SIZE): Likewise.
2918 (JB_PC): Likewise.
2919 (GET_LONGJMP_TARGET): Likewise.
2920 (IN_SIGTRAMP): Likewise.
2921 (SVR4_SHARED_LIBS): Define this and include "solib.h".
2922
2923 2003-05-25 Mark Kettenis <kettenis@gnu.org>
2924
2925 * sparc-tdep.c (sparc32_do_push_arguments): New function.
2926 (sparc32_push_arguments): Re-implement by calling
2927 sparc32_do_push_arguments.
2928
2929 2003-05-25 Mark Kettenis <kettenis@gnu.org>
2930
2931 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
2932 SPARC_O1_REGNUM): New defines.
2933 (sparc32_extract_return_value): Rewrite to operate on a regcache.
2934 (sparc32_store_return_value): New function.
2935 (sparc_extract_struct_value_address): Rewrite to operate on a
2936 regcache.
2937 (sparc_gdbarch_init): Don't set
2938 deprecated_extract_struct_value_address. Set
2939 extract_struct_value_address instead. Don't set
2940 deprecated_extract_return_value and deprecated_store_return_value
2941 for 32-bit targets. Set extract_return_value and
2942 store_return_value instead.
2943 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
2944 DEPRECTAED_EXTRACT_RETURN_VALUE,
2945 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
2946 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2947 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
2948 (sparc_store_return_value): Remove prototype.
2949 (sparc32_store_return_value): New prototype.
2950 (sparc32_extract_return_value, sparc_extract_struct_value_address):
2951 Adjust prototypes.
2952
2953 2003-05-24 Mark Kettenis <kettenis@gnu.org>
2954
2955 * sparcnbsd-tdep.c: Include "gdb_string.h".
2956
2957 2003-05-23 Andrew Cagney <cagney@redhat.com>
2958
2959 * p-valprint.c (pascal_val_print): Replace extract_address with
2960 the inline equivalent extract_unsigned_integer.
2961 * jv-valprint.c (java_value_print): Ditto.
2962 * ada-valprint.c (ada_val_print_1): Ditto.
2963 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
2964
2965 2003-05-23 Theodore A. Roth <troth@openavr.org>
2966
2967 * blockframe.c (frameless_look_for_prologue): Remove unused
2968 after_prologue variable.
2969
2970 2003-05-23 Mark Kettenis <kettenis@gnu.org>
2971
2972 * blockframe.c (get_pc_function_start): Rewrite to avoid
2973 asignments in if-statements.
2974
2975 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
2976
2977 Committed by Elena Zannoni <ezannoni@redhat.com>.
2978 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
2979 files, don't relocate absolute symbols (and do use mst_abs).
2980
2981 2003-05-23 Andrew Cagney <cagney@redhat.com>
2982
2983 * objc-lang.c: Include "gdb_assert.h".
2984 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
2985 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
2986 (gdb_check, gdb_check_fatal): Delete functions.
2987 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
2988 gdb_assert.
2989 (parse_selector, parse_method, find_methods, find_imps): Ditto.
2990 * Makefile.in (objc-lang.o): Update dependencies.
2991
2992 2003-05-22 Ian Lance Taylor <ian@airs.com>
2993
2994 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
2995 with fprintf_filtered, not fprintf_unfiltered.
2996
2997 2003-05-22 Andrew Cagney <cagney@redhat.com>
2998
2999 * stack.c (frame_info): Inline extract_address, replacing it with
3000 extract_unsigned_integer.
3001 * findvar.c (unsigned_pointer_to_address): Ditto.
3002 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
3003 * dwarf2expr.c (dwarf2_read_address): Ditto.
3004 * frame.c (frame_pc_unwind): Update comment.
3005 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
3006
3007 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
3008
3009 * infptrace.c (detach): Call print_sys_errmsg rather than
3010 perror_with_name to issue warning message when errno is non-zero
3011 after calling ptrace detach.
3012
3013 2003-05-21 J. Brobecker <brobecker@gnat.com>
3014
3015 * config/pa/tm-hppa.h: Delete some unused macros. Move some
3016 macro definitions from here...
3017 * hppa-tdep.c: ...to there.
3018
3019 2003-05-20 Kevin Buettner <kevinb@redhat.com>
3020
3021 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
3022 register_ptrace_addr(). Fix all callers.
3023
3024 2003-05-21 Andreas Schwab <schwab@suse.de>
3025
3026 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3027 dependencies.
3028 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
3029 end.
3030 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
3031 (_initialize_m68k_linux_tdep): New function.
3032 (m68k_linux_frame_saved_pc): Make static.
3033 (m68k_linux_extract_return_value): Likewise.
3034 (m68k_linux_store_return_value): Likewise.
3035 (m68k_linux_extract_struct_value_address): Likewise.
3036 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
3037 Remove.
3038 (DEPRECATED_STORE_RETURN_VALUE): Remove.
3039 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3040 (DEPRECATED_FRAME_SAVED_PC): Remove.
3041
3042 2003-05-20 Kris Warkentin <kewarken@qnx.com>
3043
3044 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
3045 regset numbering rather than our own.
3046
3047 2003-05-19 David Carlton <carlton@bactrian.org>
3048
3049 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
3050
3051 2003-05-19 David Carlton <carlton@bactrian.org>
3052
3053 Partial fix for PR c++/827.
3054 * cp-support.h: Include symtab.h.
3055 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
3056 * cp-namespace.c: Update contributors.
3057 (cp_lookup_symbol_nonlocal): New.
3058 (lookup_namespace_scope, cp_lookup_symbol_namespace)
3059 (lookup_symbol_file): Ditto.
3060 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
3061 * block.h: Declare block_scope, block_using, block_global_block.
3062 * block.c (block_scope): New.
3063 (block_using, block_global_block): Ditto.
3064 * Makefile.in (cp_support_h): Depend on symtab_h.
3065 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
3066
3067 2003-05-19 David Carlton <carlton@bactrian.org>
3068
3069 * language.h (struct language_defn): Add 'la_value_of_this'
3070 and 'la_lookup_symbol_nonlocal' members.
3071 * symtab.h: Declare basic_lookup_symbol_nonlocal,
3072 lookup_symbol_static, lookup_symbol_global,
3073 lookup_symbol_aux_block.
3074 * symtab.c (lookup_symbol_aux): Call language hooks to determine
3075 if we should search fields of this and how to do static/global
3076 lookup.
3077 (lookup_symbol_aux_block): Make extern.
3078 (basic_lookup_symbol_nonlocal): New.
3079 (lookup_symbol_static, lookup_symbol_global): Ditto.
3080 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
3081 'la_lookup_symbol_nonlocal' members.
3082 * c-lang.c (c_language_defn, cplus_language_defn)
3083 (asm_language_defn, minimal_language_defn): Ditto.
3084 * jv-lang.c (java_language_defn): Ditto.
3085 * language.c (unknown_language_defn, auto_language_defn)
3086 (local_language_defn): Ditto.
3087 * m2-lang.c (m2_language_defn): Ditto.
3088 * objc-lang.c (objc_language_defn): Ditto.
3089 * scm-lang.c (scm_language_defn): Ditto.
3090 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
3091 * p-lang.c (pascal_language_defn): Ditto for both.
3092 * Makefile.in (f-lang.o): Depend on value_h.
3093 (p-lang.o): Ditto.
3094
3095 2003-05-19 David Carlton <carlton@bactrian.org>
3096
3097 * block.h: Declare block_static_block.
3098 * block.c (block_static_block): New.
3099 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
3100 lookup_symbol_aux_local, calling block_static_block instead.
3101 (lookup_symbol_aux_local): Delete 'static_block' argument.
3102
3103 2003-05-19 David Carlton <carlton@bactrian.org>
3104
3105 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
3106
3107 2003-05-19 Michal Ludvig <mludvig@suse.cz>
3108
3109 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
3110 register numbers mapping.
3111
3112 2003-05-18 Adam Fedor <fedor@gnu.org>
3113
3114 * symtab.c (completion_list_objc_symbol): New function.
3115 (make_symbol_completion_list): Use it to add ObjC symbols
3116 when looking though the list.
3117 (language_search_unquoted_string): New function.
3118 (make_file_symbol_completion_list): Use it.
3119
3120 2003-05-18 Andreas Schwab <schwab@suse.de>
3121
3122 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
3123 dependencies.
3124 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
3125 as m68k_linux_extract_return_value.
3126 (DEPRECATED_STORE_RETURN_VALUE): Define as
3127 m68k_linux_store_return_value.
3128 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3129 m68k_linux_extract_struct_value_address.
3130 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
3131 get_next_frame, get_frame_base, get_frame_pc.
3132 (m68k_linux_frame_saved_pc): Use get_frame_base.
3133 (m68k_linux_extract_return_value): New function.
3134 (m68k_linux_store_return_value): New function.
3135 (m68k_linux_extract_struct_value_address): New function.
3136 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
3137
3138 * c-exp.y (typebase): Remove duplicate occurence of
3139 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
3140 of lookup_signed_typename.
3141
3142 2003-05-18 Mark Kettenis <kettenis@gnu.org>
3143
3144 * dwarf2loc.c (find_location_expression): Change type of second
3145 argument to `size_t *'.
3146 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
3147 for size variable.
3148
3149 2003-05-18 David Carlton <carlton@bactrian.org>
3150
3151 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
3152 'linkage_name'. Add comment.
3153 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
3154 'linkage_name'.
3155 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
3156 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
3157 (lookup_block_symbol): Ditto.
3158
3159 2003-05-16 Andrew Cagney <cagney@redhat.com>
3160
3161 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
3162 * gdbarch.h, gdbarch.c: Re-generate.
3163 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
3164 * TODO (REGISTER_BYTES): Delete reference.
3165 * alpha-tdep.c (alpha_gdbarch_init): Update.
3166 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3167 * x86-64-tdep.c (x86_64_init_abi): Update.
3168 * vax-tdep.c (vax_gdbarch_init): Update.
3169 * v850-tdep.c (v850_gdbarch_init): Update.
3170 * sparc-tdep.c (sparc_gdbarch_init): Update.
3171 * sh-tdep.c (sh_gdbarch_init): Update.
3172 * s390-tdep.c (s390_gdbarch_init): Update.
3173 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3174 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3175 (ns32k_gdbarch_init_32382): Update.
3176 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3177 * mcore-tdep.c (mcore_gdbarch_init): Update.
3178 * m68k-tdep.c (m68k_gdbarch_init): Update.
3179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3180 * ia64-tdep.c (ia64_gdbarch_init): Update.
3181 * i386-tdep.c (i386_gdbarch_init): Update.
3182 * i386-linux-tdep.c (i386_linux_init_abi): Update.
3183 * hppa-tdep.c (hppa_gdbarch_init): Update.
3184 * h8300-tdep.c (h8300_gdbarch_init): Update.
3185 * frv-tdep.c (frv_gdbarch_init): Update.
3186 * cris-tdep.c (cris_gdbarch_init): Update.
3187 * avr-tdep.c (avr_gdbarch_init): Update.
3188 * arm-tdep.c (arm_gdbarch_init): Update.
3189 * sparc-tdep.c (sparc_pop_frame): Update.
3190 * rs6000-tdep.c (rs6000_pop_frame): Update.
3191 * remote.c (init_remote_state): Update.
3192 (remote_prepare_to_store): Update.
3193 * remote-vx.c (vx_prepare_to_store): Update.
3194 * remote-sds.c (sds_fetch_registers): Update.
3195 (sds_prepare_to_store): Update.
3196 * remote-array.c: Update.
3197 * regcache.c (init_legacy_regcache_descr): Update.
3198 (init_regcache_descr): Update.
3199 * mips-tdep.c (mips_eabi_extract_return_value): Update.
3200 (mips_o64_extract_return_value): Update.
3201 * irix5-nat.c (fetch_core_registers): Update.
3202 * irix4-nat.c (fetch_core_registers): Update.
3203 * i386-tdep.h: Update.
3204 * hppa-tdep.c (pa_do_registers_info): Update.
3205 (pa_do_strcat_registers_info): Update.
3206 * cris-tdep.c (cris_register_bytes_ok): Update.
3207 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3208 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
3209 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
3210 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
3211 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
3212 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
3213 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
3214 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
3215 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
3216 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
3217 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
3218 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
3219 (REGISTER_BYTES_OK): Update.
3220 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
3221 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
3222
3223 2003-05-16 Ian Lance Taylor <ian@airs.com>
3224
3225 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
3226 (vax_print_insn, print_insn_arg): Remove static functions.
3227 (vax_gdbarch_init): Call set_gdbarch_print_insn with
3228 print_insn_vax from opcodes library.
3229 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
3230
3231 2003-05-15 Andrew Cagney <cagney@redhat.com>
3232
3233 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
3234 * target.h (memory_breakpoint_from_pc): Delete declaration.
3235 * mem-break.c (memory_breakpoint_from_pc): Delete function.
3236 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
3237 * monitor.c (monitor_insert_breakpoint): Use
3238 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
3239 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
3240 * gdbarch.h, gdbarch.c: Re-generate.
3241 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
3242 (sparc_gdbarch_init): Set breakpoint_from_pc to
3243 sparc_breakpoint_from_pc.
3244 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
3245 (BREAKPOINT_FROM_PC): Define.
3246 (sparc_breakpoint_from_pc): Declare.
3247 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
3248 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
3249 (BREAKPOINT_FROM_PC): Define.
3250 (BREAKPOINT): Delete macro.
3251 * target.h: Update comment.
3252 * s390-tdep.c (s390_gdbarch_init): Update comments.
3253 * remote.c: Update comments.
3254 * remote-mips.c: Update comments.
3255 * proc-api.c (write_with_trace): Do not check for a breakpoint.
3256 * mem-break.c: Update comment.
3257 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
3258 (ia64_memory_insert_breakpoint): Update.
3259 * config/sparc/tm-sparc.h: Update comment.
3260 * config/pa/tm-hppa64.h: Update comment.
3261 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
3262 (rs6000_breakpoint_from_pc): Update.
3263 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
3264 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
3265 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
3266 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
3267 (mips_breakpoint_from_pc): Update.
3268 (mips_dump_tdep): Update.
3269
3270 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
3271 * minsyms.c (lookup_minimal_symbol): Inline
3272 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
3273
3274 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
3275 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3276 * p-lang.c (pascal_printstr): Ditto.
3277 * objc-lang.c (objc_printstr): Ditto.
3278 * m2-lang.c (m2_printstr): Ditto.
3279 * jv-valprint.c (java_print_value_fields): Ditto.
3280 * f-lang.c (f_printstr): Ditto.
3281 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
3282 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
3283 for repeat_count_threshold.
3284 * Makefile.in (cp-valprint.o): Update dependencies.
3285
3286 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
3287
3288 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
3289 (examine_prologue): Support looking through leaf functions, knowing
3290 they start with mov r2,r12. Support skipping over indirect stores
3291 of the input registers. Upon hitting a non-nop branch instruction
3292 or predicated instruction, bail out by setting lim_pc to the current
3293 pc value in the loop. At the end, if the lim_pc value is still
3294 beyond our calculated value and we have trust_limit set,
3295 use the lim_pc value.
3296
3297 2003-05-15 Andrew Cagney <cagney@redhat.com>
3298
3299 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
3300 generic_find_dummy_frame.
3301 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
3302 (deprecated_generic_find_dummy_frame): Update.
3303 (deprecated_read_register_dummy): Update.
3304 * frame.c (deprecated_generic_get_saved_register): Update.
3305
3306 2003-05-15 Theodore A. Roth <troth@openavr.org>
3307
3308 * avr-tdep.c (avr_breakpoint_from_pc): New function.
3309 (avr_gdbarch_init): Set breakpoint_from_pc method.
3310
3311 2003-05-15 Andrew Cagney <cagney@redhat.com>
3312
3313 * regcache.c (build_regcache): Set deprecated_register_valid
3314 directly.
3315 (deprecated_grub_regcache_for_register_valid): Delete function.
3316 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
3317 declaration.
3318
3319 2003-05-15 David Carlton <carlton@bactrian.org>
3320
3321 Committed by Elena Zannoni <ezannoni@redhat.com>
3322 * symtab.c (lookup_symbol_aux): Delete calls to
3323 lookup_symbol_aux_minsyms.
3324 (lookup_symbol_aux_minsyms): Comment out function and
3325 prototype. Delete lookup by mangled name.
3326
3327 2003-05-14 Kevin Buettner <kevinb@redhat.com>
3328
3329 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
3330 correctly indicate an empty stack and ``stack_allocated'' to the
3331 indicate the number of elements initially allocated.
3332 (dwarf_expr_grow_stack): Simplify method for computing new
3333 stack size. Don't loop infinitely if ``stack_len'' is zero.
3334 (execute_stack_op): Move ``ctx->in_reg'' initialization
3335 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
3336 be used in conjuction with DW_OP_piece. Revise error message
3337 accordingly.
3338
3339 2003-05-14 Theodore A. Roth <troth@openavr.org>
3340
3341 * MAINTAINERS: Update my email address.
3342 * avr-tdep.c: Ditto.
3343
3344 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
3345
3346 * symtab.h (enum domain_enum): Rename from namespace_enum.
3347 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
3348 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
3349 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
3350 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
3351 TYPES_NAMESPACE, METHODS_NAMESPACE.
3352 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
3353 (struct symbol, struct partial_symbol): Rename field
3354 'namespace_enum namespace' to 'domain_enum domain'.
3355 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
3356 Delete old define kludge for namespace.
3357
3358 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
3359 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
3360 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
3361 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
3362 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
3363 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
3364 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
3365 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
3366 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
3367 occurrences of the above.
3368
3369 2003-05-14 Ian Lance Taylor <ian@airs.com>
3370
3371 * Makefile.in (install-only): Use $(SHELL) when running
3372 mkinstalldirs.
3373
3374 2003-05-13 Ian Lance Taylor <ian@airs.com>
3375
3376 * MAINTAINERS (write after approval): Add myself.
3377
3378 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
3379 second and third arguments.
3380 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3381 * ser-unix.c (_initialize_ser_hardwire): Likewise.
3382
3383 2003-05-13 Andrew Cagney <cagney@redhat.com>
3384
3385 * defs.h (store_address): Delete declaration.
3386 findvar.c (store_address): Delete function.
3387 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
3388 store_unsigned_integer.
3389 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
3390 * v850-tdep.c (v850_push_arguments): Ditto.
3391 * sparc-tdep.c (sparc_get_saved_register): Ditto.
3392 * sh-tdep.c (sh64_get_saved_register): Ditto.
3393 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
3394 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
3395 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
3396 (mips_get_saved_register): Ditto.
3397 * ia64-tdep.c (ia64_get_saved_register): Ditto.
3398 (find_func_descr, ia64_push_arguments): Ditto.
3399 * i386-tdep.c (i386_push_arguments): Ditto.
3400 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
3401 * frv-tdep.c (frv_push_arguments): Ditto.
3402 * frame.c (legacy_saved_regs_prev_register): Ditto.
3403 (deprecated_generic_get_saved_register): Ditto.
3404 * findvar.c (unsigned_address_to_pointer): Ditto.
3405 * dwarf2read.c (dwarf2_const_value): Ditto.
3406 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3407 * alpha-tdep.c (alpha_push_arguments): Ditto.
3408
3409 2003-05-12 J. Brobecker <brobecker@gnat.com>
3410
3411 * NEWS: Mention that the hppa-hpux port has been partially
3412 multiarched (32bit ABIT only, so far).
3413
3414 2003-05-11 Andrew Cagney <cagney@redhat.com>
3415
3416 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
3417 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
3418 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
3419 sim/testsuite/sim/arm/misaligned2.ms, and
3420 sim/testsuite/sim/arm/misaligned3.ms.
3421 * disasm.h (struct ui_file): Add opaque struct declaration.
3422 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
3423 * frame.h (struct ui_file): Ditto.
3424
3425 2003-05-11 Mark Kettenis <kettenis@gnu.org>
3426
3427 * value.h: Pretty print.
3428
3429 2003-05-10 Mark Kettenis <kettenis@gnu.org>
3430
3431 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
3432
3433 2003-05-08 Andrew Cagney <cagney@redhat.com>
3434
3435 * regcache.h (max_register_size): Delete declaration.
3436 * regcache.c (max_register_size): Delete function.
3437 (struct regcache_descr): Delete field "max_register_size".
3438 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
3439 registers fit in MAX_REGISTER_SIZE.
3440 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
3441 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
3442 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
3443 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
3444 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
3445 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
3446 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
3447 * dve3900-rom.c, hppa-tdep.c: Ditto.
3448
3449 2003-05-08 David Carlton <carlton@math.stanford.edu>
3450
3451 * valops.c (push_word): Fix typo.
3452
3453 2003-05-08 Andrew Cagney <cagney@redhat.com>
3454
3455 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
3456 * gdbarch.h: Re-generate.
3457 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
3458 (legacy_max_register_raw_size): Delete declaration.
3459 * regcache.c (legacy_max_register_raw_size): Delete function.
3460 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
3461 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
3462 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
3463 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
3464 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
3465 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
3466 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
3467 * findvar.c, dwarf2cfi.c: Ditto.
3468
3469 2003-05-08 Andrew Cagney <cagney@redhat.com>
3470
3471 * mips-tdep.c (read_signed_register): New function, moved to here
3472 from "regcache.c".
3473 (read_signed_register_pid): Ditto.
3474 * regcache.c (read_signed_register_pid): Delete function, moved to
3475 "mips-tdep.c".
3476 (read_signed_register): Ditto.
3477 * regcache.h (read_signed_register): Delete declaration.
3478 (read_signed_register_pid): Delete declaration.
3479
3480 2003-05-08 Andrew Cagney <cagney@redhat.com>
3481
3482 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
3483 * gdbarch.h: Re-generate.
3484 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
3485 (legacy_max_register_virtual_size): Delete declaration.
3486 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
3487 * d10v-tdep.c (d10v_print_registers_info): Ditto.
3488 * tracepoint.c (memrange_sortmerge): Ditto.
3489 * sparc-tdep.c (sparc_print_registers): Ditto.
3490 * regcache.c (legacy_max_register_virtual_size): Delete function.
3491
3492 2002-05-08 J. Brobecker <brobecker@gnat.com>
3493
3494 * fork-child.c (escape_bang_in_quoted_argument): New function.
3495 (fork_inferior): Escape '!' characters in quoted arguments
3496 only when needed.
3497
3498 2003-05-08 J. Brobecker <brobecker@gnat.com>
3499
3500 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
3501 the language of the CU is not currently supported by GDB.
3502
3503 2003-05-08 J. Brobecker <brobecker@gnat.com>
3504
3505 * defs.h (language): Add language_minimal enum value.
3506 * c-lang.c (minimal_language_defn): New language definition.
3507 (_initialize_c_language): Add the new minimal language to the list
3508 of languages known to GDB.
3509
3510 2003-05-08 Kevin Buettner <kevinb@redhat.com>
3511
3512 * frame.c (get_frame_type): Don't attempt to lazily initialize
3513 frame's unwinder for legacy frames.
3514
3515 2003-05-07 Andrew Cagney <cagney@redhat.com>
3516
3517 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
3518 and "regcache" parameters.
3519 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
3520
3521 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
3522
3523 * dwarf2read.c (dwarf_decode_lines): Only use output of
3524 check_cu_functions() when calling record_line(). Do not update
3525 the current address.
3526
3527 2003-05-07 Andrew Cagney <cagney@redhat.com>
3528
3529 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
3530 code.
3531
3532 2003-05-07 Jim Blandy <jimb@redhat.com>
3533
3534 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
3535 'maint info symtabs' and 'maint info psymtabs'.
3536 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
3537 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
3538 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
3539 Declarations updated.
3540 * maint.c (maintenance_list_command): Delete.
3541 (_initialize_maint_cmds): Update calls to add_cmd.
3542 * gdbcmd.h (maintenancelistlist): Delete declaration.
3543 * cli/cli-cmds.c (maintenancelistlist): Delete.
3544 (init_cmd_lists): Don't initialize it.
3545 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
3546
3547 2003-05-07 Andrew Cagney <cagney@redhat.com>
3548
3549 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
3550 "regcache".
3551 (d10v_print_registers_info): Update.
3552 (d10v_dmap_register, d10v_imap_register): Delete functions.
3553 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
3554 and "imap_register".
3555 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
3556 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
3557 * arch-utils.c (generic_remote_translate_xfer_address): Add
3558 "regcache" and "gdbarch" parameters.
3559 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
3560 parameter. Change class to multi-arch.
3561 * gdbarch.h, gdbarch.c: Re-generate.
3562 * remote.c (remote_xfer_memory): Use
3563 gdbarch_remote_translate_xfer_address.
3564
3565 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
3566
3567 * infrun.c (prev_pc): Move declaration ahead of proceed().
3568 (proceed): Refresh prev_pc value before resuming.
3569 (stop_stepping): Remove code to refresh prev_pc.
3570
3571 2003-05-06 Kris Warkentin <kewarken@qnx.com>
3572
3573 * nto-tdep.c: Removed stray comment.
3574
3575 2003-05-06 Kris Warkentin <kewarken@qnx.com>
3576
3577 * i386-nto-tdep.c: Fix old K&R function definitions.
3578 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
3579 Also change add_show_from_set() call to add_setshow_cmd().
3580 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
3581
3582 2003-05-05 Andrew Cagney <cagney@redhat.com>
3583
3584 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
3585 (fprint_dummy_frames): New function.
3586 (maintenance_print_dummy_frames): New function.
3587 (_initialize_dummy_frame): Add command "maint print dummy-frames".
3588 * frame.c (fprint_frame_id): Make global.
3589 * frame.h (fprint_frame_id): Declare.
3590 * Makefile.in (dummy-frame.o): Update dependencies.
3591
3592 2003-05-05 Andrew Cagney <cagney@redhat.com>
3593
3594 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
3595 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
3596 SIZEOF_CALL_DUMMY_WORDS.
3597 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
3598 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
3599 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
3600 CALL_DUMMY_BREAKPOINT_OFFSET.
3601 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
3602 CALL_DUMMY_START_OFFSET.
3603 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
3604 * gdbarch.h, gdbarch.c: Re-generate.
3605 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
3606 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
3607 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
3608 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
3609 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
3610 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
3611 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3612 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
3613 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
3614 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
3615 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
3616 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
3617 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
3618 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
3619 * config/sparc/tm-sparc.h: Update.
3620
3621 2003-05-05 Kris Warkentin <kewarken@qnx.com>
3622
3623 * configure.tgt: Add i[3456]86-*-nto*.
3624 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
3625 * nto-tdep.c: New file. Neutrino target support routines.
3626 * nto-tdep.h: New file. Neutrino target header.
3627 * config/tm-qnxnto.h: New file.
3628 * config/i386/i386nto.mt: New file.
3629 * config/i386/tm-i386nto.h: New file.
3630
3631 2003-05-04 Andrew Cagney <cagney@redhat.com>
3632
3633 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
3634 (load_infrun_state): Ditto.
3635 (struct thread_info): Drop "prev_func_name" field.
3636 * thread.c (load_infrun_state): Update.
3637 (save_infrun_state): Update.
3638 * infrun.c (prev_func_name): Delete variable.
3639 (init_wait_for_inferior): Do not clear prev_func_name.
3640 (stop_stepping, keep_going, context_switch): Do not swap
3641 prev_func_name.
3642 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
3643 instead of PC_IN_SIGTRAMP.
3644
3645 2003-05-04 Andrew Cagney <cagney@redhat.com>
3646
3647 * sentinel-frame.c (sentinel_frame_prev_register): Replace
3648 REGISTER_BYTE with register_offset_hack.
3649 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
3650 that REGISTER_BYTE is consistent with the regcache.
3651 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
3652 * gdbarch.h, gdbarch.c: Regenerate.
3653
3654 2003-05-04 Mark Kettenis <kettenis@gnu.org>
3655
3656 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
3657 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
3658
3659 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
3660
3661 2003-05-03 J. Brobecker <brobecker@gnat.com>
3662
3663 From Thierry Schneider <tpschneider1@yahoo.com>
3664 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
3665 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
3666 (mi-cmd-symbol.o): Add rule.
3667
3668 2003-05-03 Andrew Cagney <cagney@redhat.com>
3669
3670 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
3671 comments noteing that it replaces the old FIX_CALL_DUMMY code.
3672 * gdbarch.h, gdbarch.c: Re-generate.
3673 * d10v-tdep.c (d10v_push_dummy_code): New function.
3674 (d10v_gdbarch_init): Set push_dummy_code.
3675 * infcall.c (legacy_push_dummy_code): New function.
3676 (generic_push_dummy_code): New function.
3677 (push_dummy_code): New function.
3678 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
3679 instead of dummy_addr, to push_dummy_call. Move call to
3680 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
3681 switch.
3682 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
3683
3684 2003-05-03 Andrew Cagney <cagney@redhat.com>
3685
3686 * disasm.h (print_insn): Declare.
3687 * disasm.c (init_gdb_disassemble_info): New function.
3688 (gdb_disassembly): Call init_gdb_disassemble_info.
3689 (gdb_print_insn): New function.
3690 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
3691 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
3692 * mcore-tdep.c: Include "disasm.h"
3693 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
3694 * d10v-tdep.c: Include "disasm.h".
3695 (display_trace): Call gdb_print_insn, instead of print_insn.
3696 (print_insn): Delete function.
3697 * printcmd.c: Include "disasm.h".
3698 (print_insn): Delete function.
3699 (print_formatted): Call gdb_print_insn, instead of print_insn.
3700 * Makefile.in (printcmd.o): Update dependencies.
3701 (mcore-tdep.o, d10v-tdep.o): Ditto.
3702
3703 2003-05-02 Andrew Cagney <cagney@redhat.com>
3704
3705 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
3706 PC_REGNUM, re-indent.
3707 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
3708 PC_REGNUM isn't set.
3709
3710 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
3711 * gdbarch.h, gdbarch.c: Re-generate.
3712 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
3713 register_virtual_size, pc_regnum, or register_bytes.
3714 (D10V_PC_REGNUM): Rename _PC_REGNUM.
3715 (d10v_register_type): Use D10V_PC_REGNUM.
3716 (d10v_print_registers_info, d10v_read_pc): Ditto.
3717 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
3718 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
3719
3720 2003-05-02 David Carlton <carlton@bactrian.org>
3721
3722 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
3723 the name with mstrsave.
3724
3725 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
3726
3727 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
3728 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
3729 (host_charset_name, target_charset_name): New vars for use by
3730 set/show commands.
3731 (host_charset_enum, target_charset_enum): New enums for set/show
3732 commands.
3733 (set_charset_sfunc, set_host_charset_sfunc,
3734 set_target_charset_sfunc): New functions.
3735 (set_host_charset, set_target_charset): Make static.
3736 (list_charsets, set_host_charset_command,
3737 set_target_charset_command): Delete functions.
3738 (show_charset_command): Rewrite as....
3739 (show_charset): Hook this up with the set/show command mechanism.
3740 (_initialize_charset): Change names of charsets to match the
3741 set/show enums. Use host_charset_name and target_charset_name.
3742 Use set/show mechanism for charset, host-charset, target-charset
3743 commands. Do not make 'show host-charset' and 'show
3744 target-charset' be aliases of 'show charset'.
3745
3746 * charset.h (set_host_charset, set_target_charset): Don't export,
3747 they are not used outside the file.
3748
3749 2003-05-01 Andrew Cagney <cagney@redhat.com>
3750
3751 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
3752 (gdb_disassembly): Make "di" non static, always initialize and
3753 cleanup. Always use dis_asm_read_memory.
3754 (gdb_dis_asm_read_memory): Delete function.
3755
3756 2003-05-01 Andrew Cagney <cagney@redhat.com>
3757
3758 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
3759 (d10v_gdbarch_init): Set frame_align instead of stack_align.
3760
3761 2003-04-30 Andrew Cagney <cagney@redhat.com>
3762
3763 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
3764 "tm_print_insn_info".
3765 (TARGET_PRINT_INSN_INFO): Delete macro.
3766 (dis_asm_read_memory): Delete function declaration.
3767 (dis_asm_memory_error, dis_asm_print_address): Ditto.
3768 (tm_print_insn_info): Delete variable definition.
3769 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
3770 * gdbarch.h, gdbarch.c: Re-generate.
3771 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
3772 "deprecated_tm_print_insn_info".
3773 * mcore-tdep.c (mcore_dump_insn): Ditto.
3774 * mips-tdep.c (mips_gdbarch_init): Ditto.
3775 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
3776 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
3777 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
3778 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
3779 instead of TARGET_PRINT_INSN_INFO, add comment.
3780 * s390-tdep.c (s390_get_frame_info): Instead of
3781 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
3782 (s390_check_function_end, s390_is_sigreturn): Ditto.
3783 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
3784 (dis_asm_memory_error, dis_asm_print_address): Ditto.
3785 * disasm.c: Include "gdbcore.h".
3786 (_initialize_disasm): New function, initialize
3787 "deprecated_tm_print_insn_info".
3788 (deprecated_tm_print_insn_info): New variable.
3789 (dis_asm_read_memory): Moved from "corefile.c", made static.
3790 (dis_asm_print_address, dis_asm_memory_error): Ditto.
3791 * Makefile.in (disasm.o): Update dependencies.
3792
3793 2003-04-30 Andrew Cagney <cagney@redhat.com>
3794
3795 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
3796
3797 2003-04-29 Adam Fedor <fedor@gnu.org>
3798
3799 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
3800 * infcall.c (find_function_addr): Make non-static.
3801 * infcall.h (find_function_addr): Declare.
3802 * Makefile.in (eval.o): Update dependencies.
3803
3804 2003-04-28 Adam Fedor <fedor@gnu.org>
3805
3806 * symtab.c (symbol_find_demangled_name): Check for and demangle
3807 ObjC symbols.
3808 (symbol_init_demangled_name): Init for language_objc as well.
3809
3810 2003-04-28 Andrew Cagney <cagney@redhat.com>
3811
3812 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
3813 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
3814 * gdbarch.h, gdbarch.c: Re-generate.
3815 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
3816 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
3817 * inferior.h (deprecated_read_fp): Rename read_fp.
3818 (generic_target_read_fp): Delete declaration.
3819 * regcache.c (generic_target_read_fp): Delete function.
3820 (deprecated_read_fp): Replace read_fp, use
3821 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
3822 * d10v-tdep.c (d10v_read_fp): Delete function.
3823 (d10v_gdbarch_init): Do not set deprecated_read_fp.
3824
3825 * sparc-tdep.c (sparc_gdbarch_init): Do not set
3826 deprecated_target_read_fp to generic_target_read_fp.
3827 * sh-tdep.c (sh_gdbarch_init): Ditto.
3828 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3829 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3830 * frv-tdep.c (frv_gdbarch_init): Ditto.
3831
3832 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
3833 deprecated_fp_regnum.
3834 * x86-64-tdep.c (x86_64_init_abi): Ditto.
3835 * vax-tdep.c (vax_gdbarch_init): Ditto.
3836 * v850-tdep.c (v850_gdbarch_init): Ditto.
3837 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3838 * sh-tdep.c (sh_gdbarch_init): Ditto.
3839 * s390-tdep.c (s390_gdbarch_init): Ditto.
3840 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3841 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3842 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3843 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3844 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3845 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3846 * i386-tdep.c (i386_gdbarch_init): Ditto.
3847 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3848 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3849 * frv-tdep.c (frv_gdbarch_init): Ditto.
3850 * cris-tdep.c (cris_gdbarch_init): Ditto.
3851 * avr-tdep.c (avr_gdbarch_init): Ditto.
3852 * arm-tdep.c (arm_gdbarch_init): Ditto.
3853 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3854
3855 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
3856 * v850-tdep.c (v850_gdbarch_init): Ditto.
3857 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3858 * sh-tdep.c (sh_gdbarch_init): Ditto.
3859 * s390-tdep.c (s390_gdbarch_init): Ditto.
3860 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3861 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3862 * mips-tdep.c (mips_gdbarch_init): Ditto.
3863 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3864 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3865 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3866 * frv-tdep.c (frv_gdbarch_init): Ditto.
3867 * avr-tdep.c (avr_gdbarch_init): Ditto.
3868 * arm-tdep.c (arm_gdbarch_init): Ditto.
3869
3870 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
3871 DEPRECATED_FP_REGNUM.
3872 (vax_push_dummy_frame, vax_pop_frame): Ditto.
3873 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
3874 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
3875 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
3876 (sparc32_register_virtual_type): Ditto.
3877 * sh-tdep.c (sh64_frame_chain): Ditto.
3878 (sh64_get_saved_register, sh64_pop_frame): Ditto.
3879 (sh_nofp_frame_init_saved_regs): Ditto.
3880 (sh64_nofp_frame_init_saved_regs): Ditto.
3881 (sh_fp_frame_init_saved_regs): Ditto.
3882 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3883 * remote-e7000.c (fetch_regs_from_dump): Ditto.
3884 * procfs.c (procfs_fetch_registers): Ditto.
3885 (procfs_store_registers): Ditto.
3886 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
3887 (store_inferior_registers, fetch_core_registers): Ditto.
3888 (fetch_kcore_registers, clear_regs): Ditto.
3889 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
3890 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
3891 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
3892 * nlm/i386.c (do_status): Ditto.
3893 * mipsv4-nat.c (supply_gregset): Ditto.
3894 * mips-tdep.c: Ditto for comments.
3895 * mips-nat.c (fetch_inferior_registers): Ditto.
3896 (store_inferior_registers, fetch_core_registers): Ditto.
3897 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
3898 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
3899 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
3900 (i386_do_pop_frame, i386_register_type): Ditto.
3901 * hppa-tdep.c (hppa_frame_chain): Ditto.
3902 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
3903 (hppa_pop_frame, hppa_read_fp): Ditto.
3904 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
3905 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
3906 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
3907 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
3908 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
3909 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
3910 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
3911 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
3912 * blockframe.c: Ditto for comments.
3913 * arch-utils.h: Ditto for comments.
3914 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
3915 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
3916 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
3917 * alpha-tdep.h: Ditto for comments.
3918 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
3919 (alpha_cannot_store_register): Ditto.
3920 (alpha_push_dummy_frame): Ditto.
3921 * alpha-nat.c (supply_gregset): Ditto.
3922
3923 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
3924 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
3925 * config/sparc/tm-sparc.h: Update comment.
3926
3927 * hppa-tdep.c (hppa_init_extra_frame_info): Use
3928 deprecated_read_fp instead of TARGET_READ_FP.
3929 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
3930 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
3931 * sparc-tdep.c (sparc_init_extra_frame_info): Use
3932 deprecated_read_fp instead of read_fp.
3933 * s390-tdep.c (s390_push_arguments): Ditto.
3934 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3935 * frame.h: Ditto in comments.
3936 * frame.c (legacy_get_prev_frame): Ditto.
3937 * dummy-frame.c (dummy_frame_this_id): Ditto.
3938 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
3939
3940 2003-04-28 Andrew Cagney <cagney@redhat.com>
3941
3942 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
3943 * gdbarch.h, gdbarch.c: Re-generate.
3944 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
3945 * vax-tdep.c (_initialize_vax_tdep): Update.
3946 * v850-tdep.c (_initialize_v850_tdep): Update.
3947 * sparc-tdep.c (_initialize_sparc_tdep): Update.
3948 * s390-tdep.c (_initialize_s390_tdep): Update.
3949 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
3950 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
3951 * mips-tdep.c (_initialize_mips_tdep): Update.
3952 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3953 * m68k-tdep.c (_initialize_m68k_tdep): Update.
3954 * ia64-tdep.c (_initialize_ia64_tdep): Update.
3955 * hppa-tdep.c (_initialize_hppa_tdep): Update.
3956 * h8300-tdep.c (_initialize_h8300_tdep): Update.
3957 * frv-tdep.c (_initialize_frv_tdep): Update.
3958 * cris-tdep.c (cris_delayed_get_disassembler): Update.
3959 (_initialize_cris_tdep): Update.
3960 * arch-utils.c (legacy_print_insn): Update.
3961 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3962
3963 2003-04-26 Adam Fedor <fedor@gnu.org>
3964
3965 * linespec.c (decode_objc): New function to decode ObjC calls
3966 (decode_line_1): Check for ObjC calls (using decode_objc)
3967 * Makefile (linespec.o): Update dependencies.
3968
3969 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
3970
3971 * breakpoint.h (struct breakpoint_ops): New.
3972 (struct breakpoint): Add ops member.
3973
3974 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
3975 (mention): Use new breakpoint ops member.
3976 (set_raw_breakpoint): Initialize ops field to NULL.
3977 (print_exception_catchpoint, print_one_exception_catchpoint)
3978 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
3979 (gnu_v3_exception_catchpoint_ops): New.
3980 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
3981
3982 2003-04-25 Adam Fedor <fedor@gnu.org>
3983
3984 * Makefile.in (COMMON_OBS): Add objc-lang.o
3985
3986 2003-04-25 Andrew Cagney <cagney@redhat.com>
3987
3988 * d10v-tdep.c (print_insn): Delete function.
3989 (display_trace): Use TARGET_PRINT_INSN.
3990 (_initialize_d10v_tdep): Do not set tm_print_insn.
3991 (d10v_gdbarch_init): Set print_insn.
3992
3993 2003-04-25 Andrew Cagney <cagney@redhat.com>
3994
3995 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
3996 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
3997 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
3998 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
3999 (nr_dmap_regs, a0_regnum): ... new functions.
4000 (d10v_print_registers_info): Use a0_regnum, use register_size.
4001 (d10v_register_byte): Delete function.
4002 (d10v_register_raw_size): Delete function.
4003 (d10v_register_type): Use a0_regnum.
4004 (d10v_print_registers_info): Use a0_regnum.
4005 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
4006 (d10v_gdbarch_init): Do not set register_byte or
4007 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
4008 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
4009 extract_address.
4010 (trace_command): Use XCALLOC.
4011 (print_insn): Delete reference to tm_print_insn.
4012 (saved_regs_unwinder): Use store_unsigned_integer instead of
4013 store_address.
4014 * frame.h (FRAME_OBSTACK_CALLOC): Define
4015
4016 2003-04-25 David Carlton <carlton@bactrian.org>
4017
4018 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
4019
4020 2003-04-24 Adam Fedor <fedor@gnu.org>
4021
4022 * objc-lang.c: Include "valprint.h"
4023 * Makefile.in (objc-lang.o): Update dependencies.
4024
4025 2003-04-24 Adam Fedor <fedor@gnu.org>
4026
4027 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
4028 architecture dependant compilation and mark as unimplemented
4029 (until they get put in the gdbarch vector).
4030
4031 2003-04-23 David Carlton <carlton@bactrian.org>
4032
4033 * cp-support.c (cp_find_first_component): Accept 'operator' in
4034 more locations.
4035
4036 2003-04-23 Andrew Cagney <cagney@redhat.com>
4037
4038 * infcall.c (call_function_by_hand): Eliminate redundant
4039 indentation. Move "saved_async" and "old_cleanups" to where they
4040 are needed.
4041
4042 2003-04-23 Andrew Cagney <cagney@redhat.com>
4043
4044 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
4045 and "buffer". Move the "name" code to where it is needed.
4046
4047 2003-04-23 Andrew Cagney <cagney@redhat.com>
4048
4049 * infcall.c (call_function_by_hand): Move variables "start_sp",
4050 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
4051 code to ON_STACK switch branch.
4052
4053 2003-04-23 Andrew Cagney <cagney@redhat.com>
4054
4055 * infcall.c (call_function_by_hand): Make declaration of "i",
4056 "sal", "bpt" and "old_sp" more local to their use. Delete #if
4057 lint.
4058
4059 2003-04-23 Andrew Cagney <cagney@redhat.com>
4060
4061 * infcall.c (call_function_by_hand): Delete variable
4062 "n_method_args". Localize "param_type"'s declaration to the loop
4063 that it is used. Reinstate code assigning to said variable -
4064 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
4065 Rationalize code using "param_type".
4066
4067 2003-04-22 Andrew Cagney <cagney@redhat.com>
4068
4069 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
4070 compute the breakpoint address. Only call FIX_CALL_DUMMY when
4071 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
4072 to DEPRECATED_PUSH_RETURN_ADDRESS.
4073
4074 2003-04-22 Kevin Buettner <kevinb@redhat.com>
4075
4076 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
4077 on the DWARF2 register number prior to fetching a register.
4078
4079 2003-04-22 J. Brobecker <brobecker@gnat.com>
4080
4081 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
4082 Update all the tests using SOFT_FLOAT considering the fact that
4083 this macro was always set to 0.
4084 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
4085 considering the fact that this macro was always set to 0.
4086 * hppa-tdep.h (hppa_store_return_value): Likewise.
4087 (hppa_extract_return_value): Likewise.
4088
4089 2003-04-22 J. Brobecker <brobecker@gnat.com>
4090
4091 * config/pa/tm-hppa.h: Remove obsolete code, was used by
4092 the hppa-pro target only.
4093
4094 2003-04-21 J. Brobecker <brobecker@gnat.com>
4095
4096 Ongoing multi-arch conversion effort for HP/UX:
4097 * config/pa/tm-hppa.h: Move all macro that are no longer
4098 defined now that GDB_MULTI_ARCH is now set to 1 from here...
4099 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
4100
4101 2003-04-21 J. Brobecker <brobecker@gnat.com>
4102
4103 * config/pa/tm-hppa.h: Obsolete a section that was only used
4104 for hppa-pro.
4105
4106 2003-04-21 J. Brobecker <brobecker@gnat.com>
4107
4108 Ongoing multi-arch conversion for HP/UX.
4109 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
4110 if already defined (allows hppa64 to stay non-multiarched for now).
4111 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
4112
4113 2003-04-21 Andrew Cagney <cagney@redhat.com>
4114
4115 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
4116
4117 2003-04-21 Andrew Cagney <cagney@redhat.com>
4118
4119 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
4120 "i386_num_mmx_regs".
4121
4122 2003-04-21 Andrew Cagney <cagney@redhat.com>
4123
4124 * infcall.c: New file.
4125 * infcall.h: New file.
4126 * valarith.c: Include "infcall.h".
4127 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
4128 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
4129 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
4130 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
4131 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
4132 (SFILES): Add "infcall.c"
4133 (COMMON_OBS): Add "infcall.o".
4134 (infcall.o): Specify dependencies.
4135 * value.h (call_function_by_hand): Delete declaration.
4136 * inferior.h (run_stack_dummy): Delete declaration.
4137 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
4138 (run_stack_dummy): Move to "infcall.c", merged into
4139 call_function_by_hand.
4140 * valops.c (call_function_by_hand): Moved to "infcall.c".
4141 (find_function_addr, value_arg_coerce): Ditto.
4142 (unwindonsignal_p, coerce_float_to_double): Ditto.
4143 (_initialize_valops): Move "set/show coerce-float-to-double", and
4144 "set/show unwindonsignal" commands to "infcall.c".
4145 * v850-tdep.c, target.h: Update comments.
4146 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
4147 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
4148 (sh64_init_extra_frame_info): Update comments.
4149 * mn10300-tdep.c: Update comments.
4150 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
4151 * config/sparc/tm-sparc.h: Update comments.
4152 * breakpoint.h: Update comments.
4153 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
4154 * arm-tdep.c: Update comment.
4155
4156 2003-04-19 Mark Kettenis <kettenis@gnu.org>
4157
4158 * i386-tdep.c (i386_num_register_names): New variable.
4159 (i386_num_mmx_regs): Renamed from mmx_num_regs.
4160 (MM0_REGNUM): Remove redundant parentheses in define.
4161 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
4162 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
4163 i386_mxcsr_regnum_p): Remove redundant parentheses.
4164 (i386_register_name): Use i386_num_register_names.
4165
4166 * i386-tdep.c (i386_extract_return_value,
4167 i386_store_return_value): Correct check for availability of
4168 floating-point registers.
4169
4170 * i386-tdep.c (i386_frame_num_args): Remove function.
4171 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
4172
4173 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
4174 mmx_regnum_to_fp_regnum. Adjust all callers.
4175
4176 * i386-tdep.c (i386_get_longjmp_target): Use
4177 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
4178 and TARGET_CHAR_BIT. Use extract_typed_address instead of
4179 extract_address.
4180
4181 2003-04-19 Mark Kettenis <kettenis@gnu.org>
4182
4183 * core-regset.c: Update comments to reflect reality. Re-order
4184 includes.
4185 (fetch_core_registers): Use switch instead of if. Remove
4186 redundant prototype.
4187
4188 2003-04-18 Jim Blandy <jimb@redhat.com>
4189
4190 * s390-tdep.c (s390_frame_align): New function.
4191 (s390_gdbarch_init): Register it with the gdbarch object.
4192
4193 2003-04-17 Richard Henderson <rth@redhat.com>
4194
4195 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
4196
4197 2003-04-17 Michael Snyder <msnyder@redhat.com>
4198 Karen Bennet <bennet@redhat.com>
4199
4200 Committed by Elena Zannoni <ezannoni@redhat.com>
4201 * gdb_gcore.sh: New script to create a core dump of a process.
4202
4203 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
4204
4205 * values.c (value_being_returned): Don't fetch the return
4206 value if the return type is void.
4207
4208 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
4209
4210 * thread-db.c: Reindented.
4211
4212 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
4213
4214 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
4215 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
4216 as types.
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242 2003-04-16 Kevin Buettner <kevinb@redhat.com>
4243
4244 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
4245 the size of ``long double'' to 16, instead of 8.
4246
4247 2003-04-16 Mark Kettenis <kettenis@gnu.org>
4248
4249 * i386-linux-nat.c: Add some whitespace to make things more
4250 readable.
4251 (fetch_register, store_register, fetch_inferior_registers,
4252 store_inferior_registers): Get rid of assignment in if-statement.
4253 (store_register): Fix typo in error message.
4254
4255 2003-04-16 Andrew Cagney <cagney@redhat.com>
4256
4257 * utils.c (xmmalloc): Always allocate something, matches
4258 libiberty/xmalloc's semantics.
4259 (xmrealloc, xmcalloc): Ditto.
4260
4261 2003-04-16 Andrew Cagney <cagney@redhat.com>
4262
4263 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
4264 update comments.
4265 (get_frame_type): Initialize unwind and type when needed.
4266 (get_frame_id, frame_register_unwind): Ditto.
4267
4268 2003-04-16 Andrew Cagney <cagney@redhat.com>
4269
4270 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
4271 obsolete.
4272 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
4273 * sparcl-stub.c: Obsolete file.
4274 * config/sparc/tm-sparclet.h: Obsolete file.
4275 * sparclet-stub.c: Obsolete file.
4276 * sparclet-rom.c: Obsolete file.
4277 * sparcl-tdep.c: Obsolete file.
4278 * config/sparc/tm-sparclite.h: Obsolete file.
4279 * config/sparc/sparclite.mt: Obsolete file.
4280 * config/sparc/sparclet.mt: Obsolete file.
4281 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
4282 sparc86x-*-* obsolete.
4283
4284 2003-04-15 David Carlton <carlton@math.stanford.edu>
4285
4286 * Makefile.in (SFILES): Add cp-namespace.c.
4287 (COMMON_OBS): Add cp-namespace.o.
4288 (block.o): Depend on gdb_obstack_h and cp_support_h.
4289 (buildsym.o): Depend on cp_support_h.
4290 (cp-namespace.o): New.
4291 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
4292 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
4293 (dwarf2read.o): Depend on cp_support_h.
4294 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
4295 * dwarf2read.c (process_die): Set processing_has_namespace_info,
4296 processing_current_namespace.
4297 (read_namespace): Update processing_current_namespace; check for
4298 anonymous namespaces.
4299 (dwarf2_name): New function.
4300 (dwarf2_extension): Ditto.
4301 * cp-support.h: Update copyright, contributors.
4302 Add inclusion guards.
4303 Add opaque declaration for structs obstack, block, symbol.
4304 (struct using_direct): New struct.
4305 Add declarations for cp_find_first_component,
4306 cp_entire_prefix_len, processing_has_namespace_info,
4307 processing_current_namespace, cp_is_anonymous,
4308 cp_add_using_directive, cp_initialize_namespace,
4309 cp_finalize_namespace, cp_set_block_scope,
4310 cp_scan_for_anonymous_namespaces.
4311 * cp-namespace.c: New file.
4312 * cp-support.c: Update copyright.
4313 Include ctype.h, gdb_assert.h, gdbcmd.h.
4314 New variable maint_cplus_cmd_list.
4315 (cp_find_first_component): New function.
4316 (cp_entire_prefix_len, maint_cplus_command)
4317 (first_component_command, _initialize_cp_support): Ditto.
4318 * buildsym.c: Include cp-support.h.
4319 New variable using_list.
4320 (add_symbol_to_list): Check for anonymous namespaces.
4321 (finish_block): Set block's scope.
4322 (start_symtab): Initialize C++ namespace support.
4323 (end_symtab): Finalize C++ namespace support.
4324 * block.h: Add opaque declarations for structs
4325 block_namespace_info, using_direct, and obstack.
4326 Add declarations for block_set_scope and block_set_using.
4327 (struct block): Add 'language_specific' member.
4328 (BLOCK_NAMESPACE): New macro.
4329 * block.c: Include gdb_obstack.h and cp-support.h.
4330 (struct block_namespace_info): New struct.
4331 (block_set_scope): New function.
4332 (block_set_using, block_initialize_namespace): Ditto.
4333
4334 2003-04-14 Kevin Buettner <kevinb@redhat.com>
4335
4336 * solib-svr4.c (svr4_have_link_map_offsets): New function.
4337 (locate_base): Return early if there aren't any link map offsets.
4338 (svr4_solib_create_inferior_hook): Warn if shared library support
4339 is unavailable.
4340
4341 2003-04-14 David Carlton <carlton@math.stanford.edu>
4342
4343 * symtab.c (symbol_set_names): Add prefix when storing Java names
4344 in hash table. Fix for PR java/1039.
4345
4346 2003-04-14 David Carlton <carlton@math.stanford.edu>
4347
4348 * symtab.c (symbol_set_names): Rename 'name' arg to
4349 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
4350 * symtab.h: Change 'name' argument in declaration of
4351 symbol_set_names to 'linkage_name'.
4352 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
4353
4354 2003-04-14 Andrew Cagney <cagney@redhat.com>
4355
4356 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
4357 return the fully sign-extended register value.
4358 (get_frame_pointer): Ditto.
4359 (mips_pop_frame): Initialize "proc_desc" after checking for a
4360 dummy frame.
4361
4362 2003-04-14 Andrew Cagney <cagney@redhat.com>
4363
4364 * mips-tdep.c (mips_push_dummy_frame): Delete function.
4365 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
4366 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
4367 (mips_push_register): Delete function.
4368 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
4369 PUSH_FP_REGNUM.
4370
4371 2003-04-14 Jim Blandy <jimb@redhat.com>
4372
4373 * symmisc.c: #include "gdb_regex.h".
4374 (maintenance_list_symtabs, maintenance_list_psymtabs): New
4375 functions.
4376 * maint.c (maintenance_list_command): New function.
4377 (_initialize_maint_cmds): Register the above as commands.
4378 * symtab.h (maintenance_list_symtabs,
4379 maintenance_list_psymtabs): New declarations.
4380 * cli/cli-cmds.c (maintenancelistlist): New variable.
4381 (init_cmd_lists): Initialize it.
4382 * cli/cli-cmds.h (maintenancelistlist): New declaration.
4383 * gdbcmd.h (maintenancelistlist): New declaration.
4384 * Makefile.in (symmisc.o): Update dependencies.
4385
4386 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
4387
4388 * s390-nat.c: Include asm/types.h for addr_t.
4389
4390 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
4391
4392 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
4393 actually incoming type.
4394
4395 2003-04-13 Andrew Cagney <cagney@redhat.com>
4396
4397 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
4398 get_next_frame and get_frame_saved_regs.
4399
4400 2003-04-13 Andrew Cagney <cagney@redhat.com>
4401
4402 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
4403 of gdbarch_num_regs.
4404
4405 2003-04-13 Andrew Cagney <cagney@redhat.com>
4406
4407 * frame.h: Mention what replaced what in "struct frame_info".
4408 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
4409 deprecated_update_frame_base_hack and
4410 deprecated_update_frame_pc_hack.
4411 * hppa-tdep.c: Ditto.
4412
4413 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
4414
4415 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
4416 to read_reg and update its comment. Remove regnum member.
4417 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
4418 Don't call read_reg when setting in_reg. Call read_reg to get
4419 the frame base if it's in a register. Return the register number
4420 on the stack instead of in the context. Remove extra arguments
4421 to read_reg.
4422 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
4423 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
4424 the register number on the expression stack.
4425 (needs_frame_read_reg): Remove extra arguments.
4426
4427 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
4428
4429 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
4430 made non-static.
4431 (execute_stack_op): All callers updated.
4432 * dwarf2expr.h: Add prototype for dwarf2_read_address.
4433 * dwarf2loc.c (find_location_expression): New function.
4434 (dwarf_expr_frame_base): Call it.
4435 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
4436 (dwarf2_tracepoint_var_ref): New function, broken out from
4437 locexpr_tracepoint_var_ref.
4438 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
4439 Make static.
4440 (loclist_read_variable, loclist_read_needs_frame): New functions.
4441 (loclist_describe_location, loclist_tracepoint_var_ref): New
4442 functions.
4443 (dwarf2_loclist_funcs): New struct location_funcs.
4444 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
4445 (struct dwarf2_locexpr_baton): Add comments.
4446 (dwarf2_loclist_funcs): New extern.
4447 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
4448 base_address and base_known.
4449 (dwarf_loc_buffer): New variable.
4450 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
4451 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
4452 (dwarf2_has_info): Initialize dwarf_loc_offset.
4453 (dwarf2_build_psymtabs): Read in .debug_loc.
4454 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
4455 DWARF_LOC_SIZE.
4456 (psymtab_to_symtab_1): Likewise. Move base address calculation
4457 here, from...
4458 (dwarf2_get_pc_bounds): ... here. Use the base address from
4459 cu_header.
4460 (dwarf2_symbol_mark_computed): Handle location lists.
4461
4462 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
4463
4464 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
4465 if the linkage name demangled successfully.
4466
4467 2003-04-13 Mark Kettenis <kettenis@gnu.org>
4468
4469 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
4470 disassmbly_flavour): Removed.
4471
4472 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
4473
4474 2003-04-13 Mark Kettenis <kettenis@gnu.org>
4475
4476 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
4477
4478 2003-04-12 Andrew Cagney <cagney@redhat.com>
4479
4480 * frame.h (struct frame_info): Move definition from here ...
4481 * frame.c (struct frame_info): ... to here.
4482
4483 2003-04-12 Andrew Cagney <cagney@redhat.com>
4484
4485 * gdbthread.h (save_infrun_state): Delete parameter
4486 "prev_func_start".
4487 (struct thread_info): Delete field "prev_func_start".
4488 (load_infrun_state): Ditto.
4489 * thread.c (load_infrun_state, save_infrun_state): Update.
4490 * infrun.c (prev_func_start): Delete variable.
4491 (context_switch, init_wait_for_inferior): Update.
4492 (stop_stepping, keep_going): Update.
4493
4494 2003-04-12 Andrew Cagney <cagney@redhat.com>
4495
4496 * gdbarch.sh: Add missing opaque declarations.
4497 * gdbarch.h: Regnerate.
4498 * symtab.h: Add missing opaque declarations.
4499 * value.h, target.h, symfile.h, stabsread.h: Ditto.
4500 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
4501 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
4502 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
4503 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
4504 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
4505 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
4506 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
4507 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
4508 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
4509 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
4510 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
4511 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
4512
4513 2003-04-11 Andrew Cagney <cagney@redhat.com>
4514
4515 * frame.c (get_frame_id): Return this frame's "id".
4516 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
4517 function start.
4518 (legacy_saved_regs_this_id): Replace function body with
4519 internal-error.
4520 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
4521 FRAME_OBSTACK_ZALLOC.
4522 (create_new_frame): Mark the frame ID as valid.
4523
4524 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
4525
4526 * Makefile.in (libbfd_h): Added missing setting.
4527 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
4528 according to the selected ABI.
4529
4530 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
4531
4532 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
4533
4534 2003-04-11 Andrew Cagney <cagney@redhat.com>
4535
4536 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
4537 SAVED_PC_AFTER_CALL.
4538 * gdbarch.h, gdbarch.c: Regenerate.
4539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4540 * x86-64-tdep.c (x86_64_init_abi): Update.
4541 * vax-tdep.c (vax_gdbarch_init): Update.
4542 * v850-tdep.c (v850_gdbarch_init): Update.
4543 * sparc-tdep.c (sparc_gdbarch_init): Update.
4544 * sh-tdep.c (sh_gdbarch_init): Update.
4545 * s390-tdep.c (s390_gdbarch_init): Update.
4546 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4547 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4548 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4549 * mips-tdep.c (mips_gdbarch_init): Update.
4550 * mcore-tdep.c (mcore_gdbarch_init): Update.
4551 * m68k-tdep.c (m68k_gdbarch_init): Update.
4552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4553 * ia64-tdep.c (ia64_gdbarch_init): Update.
4554 (ia64_saved_pc_after_call): Update declaration.
4555 * i386ly-tdep.c (i386lynx_init_abi): Update.
4556 * i386-tdep.c (i386_gdbarch_init): Update.
4557 * hppa-tdep.c (hppa_gdbarch_init): Update.
4558 * h8300-tdep.c (h8300_gdbarch_init): Update.
4559 * frv-tdep.c (frv_gdbarch_init): Update.
4560 * cris-tdep.c (cris_gdbarch_init): Update.
4561 * avr-tdep.c (avr_gdbarch_init): Update.
4562 * arm-tdep.c (arm_gdbarch_init): Update.
4563 * alpha-tdep.c (alpha_gdbarch_init): Update.
4564 * ns32knbsd-nat.c (frame_num_args): Update.
4565 * ns32k-tdep.c (umax_frame_num_args): Update.
4566 * mips-tdep.c (mips_init_frame_pc_first): Update.
4567 * infrun.c (step_over_function): Update.
4568 * i386-linux-tdep.c (skip_hurd_resolver): Update.
4569 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
4570 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
4571 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4572 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4573 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
4574 * arm-linux-tdep.c (skip_hurd_resolver): Update.
4575 * arch-utils.c (init_frame_pc_default): Update.
4576 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4577 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
4578 declaration.
4579
4580 2003-04-11 Andrew Cagney <cagney@redhat.com>
4581
4582 * i387-tdep.c: Update copyright.
4583 (i387_to_double): Delete function.
4584 (double_to_i387): Delete function.
4585
4586 2003-04-10 Andrew Cagney <cagney@redhat.com>
4587
4588 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
4589 frame's function's address. Simplify.
4590 (d10v_frame_unwind_cache): Check that the frame's function is
4591 non-zero.
4592
4593 2003-04-10 Jim Blandy <jimb@redhat.com>
4594
4595 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
4596 call to set_gdbarch_deprecated_push_arguments.
4597
4598 2003-04-10 Andrew Cagney <cagney@redhat.com>
4599
4600 * frame.c (fprint_frame_id): New function.
4601 (fprint_frame_type, fprint_frame): New function.
4602 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
4603 (create_sentinel_frame, get_frame_id): Ditto.
4604 (frame_id_p, frame_id_eq): Ditto.
4605 (frame_id_inner, create_new_frame): Ditto.
4606 (legacy_get_prev_frame, get_prev_frame): Ditto.
4607 (deprecated_update_frame_pc_hack): Ditto.
4608 (frame_register_unwind): Ditto.
4609 (deprecated_update_frame_base_hack): Ditto.
4610
4611 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
4612
4613 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
4614 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
4615 frame_chain function.
4616 * Makefile.in: Add dependencies due to above change.
4617
4618 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
4619
4620 * blockframe.c (legacy_frame_chain_valid): Move call to
4621 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
4622 inside_entry_file.
4623
4624 2003-04-09 Andrew Cagney <cagney@redhat.com>
4625
4626 * frame.h (struct frame_id): Replace "pc" and "base" with
4627 "stack_addr" and "code_addr". Update comments.
4628 (frame_id_build): Update parameter names and comment.
4629 (struct frame_info): Replace "id_p" and "id" with "this_id".
4630 * dummy-frame.c (dummy_frame_this_id): Update.
4631 * breakpoint.c (print_one_breakpoint): Update.
4632 * frame.c (get_frame_id): Update.
4633 (get_frame_base, frame_id_build): Update.
4634 (create_sentinel_frame, legacy_get_prev_frame): Update.
4635 (deprecated_update_frame_base_hack): Update.
4636 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
4637 (frame_id_inner): Ditto.
4638
4639 2003-04-09 Andrew Cagney <cagney@redhat.com>
4640
4641 * defs.h (gdb_print_host_address): Make "addr" parameter a
4642 pointer constant.
4643 * utils.c (gdb_print_host_address): Update.
4644
4645 2003-04-09 Kevin Buettner <kevinb@redhat.com>
4646
4647 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
4648 register number for R0 is 0.
4649
4650 2003-04-09 J. Brobecker <brobecker@gnat.com>
4651
4652 * frame.h (struct gdbarch): Add opaque structure definition
4653 to avoid a compilation warning on LynxOS 4.0.
4654
4655 2003-04-09 Andrew Cagney <cagney@redhat.com>
4656
4657 * frame.h (struct frame_info): Delete field "pc". Replace
4658 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
4659 structure.
4660 * frame.c (frame_pc_unwind): Update.
4661 (create_sentinel_frame): Do not set "pc".
4662 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
4663 (get_frame_pc): Call frame_pc_unwind.
4664 (deprecated_update_frame_pc_hack): Update.
4665 (create_new_frame): Use "pc" not "->pc".
4666
4667 2003-04-09 Andrew Cagney <cagney@redhat.com>
4668
4669 * frame.c (get_frame_id): Eliminate code updating "frame".
4670 (legacy_get_prev_frame): Ditto.
4671 (get_frame_base): Return id.base directly.
4672 (deprecated_update_frame_base_hack): Update "id.base".
4673 * frame.h (struct frame_info): Delete field "frame".
4674
4675 2003-04-09 Andrew Cagney <cagney@redhat.com>
4676
4677 * NEWS: Mention that the "Sequent family" is obsolete.
4678 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
4679 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
4680 * configure.host: Obsolete i[3456]86-sequent-bsd*,
4681 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
4682 * config/i386/tm-ptx4.h: Obsolete file.
4683 * config/i386/tm-ptx.h: Obsolete file.
4684 * symm-tdep.c: Obsolete file.
4685 * config/i386/symmetry.mt: Obsolete file.
4686 * config/i386/tm-symmetry.h: Obsolete file.
4687 * symm-nat.c: Obsolete file.
4688 * config/i386/nm-symmetry.h: Obsolete file.
4689 * config/i386/xm-symmetry.h: Obsolete file.
4690 * config/i386/symmetry.mh: Obsolete file.
4691 * config/i386/nm-ptx4.h: Obsolete file.
4692 * config/i386/ptx4.mh: Obsolete file.
4693 * config/i386/ptx.mt: Obsolete file.
4694 * config/i386/ptx.mh: Obsolete file.
4695 * config/i386/xm-ptx4.h: Obsolete file.
4696 * config/i386/xm-ptx.h: Obsolete file.
4697
4698 2003-04-09 Andrew Cagney <cagney@redhat.com>
4699
4700 Obsolete mips*-*-mach3*.
4701 * NEWS: Mention that mips*-*-mach3* is obsolete.
4702 * m3-nat.c: Obsolete file.
4703 * config/nm-m3.h: Obsolete file.
4704 * config/mips/tm-mipsm3.h: Obsolete file.
4705 * config/mips/mipsm3.mt: Obsolete file.
4706 * config/mips/mipsm3.mh: Obsolete file.
4707 * config/mips/xm-mipsm3.h: Obsolete file.
4708 * mipsm3-nat.c: Obsolete file.
4709 * configure.host: Obsolete mips-dec-mach3*.
4710 * configure.tgt: Obsolete mips*-*-mach3*.
4711
4712 2003-04-09 Andrew Cagney <cagney@redhat.com>
4713
4714 * doublest.h: Update copyright.
4715 (deprecated_store_floating, deprecated_extract_floating): Rename
4716 store_floating and extract_floating. Update comments.
4717 * doublest.c: Update copyright.
4718 (extract_floating_by_length): Replace extract_floating.
4719 (store_floating_by_length): Replace store_floating.
4720 (deprecated_extract_floating): New function.
4721 (deprecated_store_floating): New function.
4722 (extract_typed_floating): Call extract_floating_by_length.
4723 (store_typed_floating): Call store_floating_by_length.
4724 * x86-64-tdep.c (x86_64_store_return_value): Update.
4725 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
4726 (sh64_extract_return_value): Update.
4727 (sh_sh4_register_convert_to_virtual): Update.
4728 (sh_sh64_register_convert_to_virtual): Update.
4729 (sh_sh4_register_convert_to_raw): Update.
4730 (sh_sh64_register_convert_to_raw): Update.
4731 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
4732 (rs6000_register_convert_to_raw): Update.
4733 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
4734 (ia64_register_convert_to_raw): Update.
4735 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
4736 (REGISTER_CONVERT_TO_VIRTUAL): Update.
4737 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
4738 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
4739 (alpha_register_convert_to_raw): Update.
4740
4741 2003-04-08 Andrew Cagney <cagney@redhat.com>
4742
4743 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
4744 * gdbarch.h, gdbarch.c: Re-generate.
4745 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
4746 (d10v_gdbarch_init): Do not set saved_pc_after_call.
4747 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
4748 conditionally, use frame_pc_unwind as an alternative. Add
4749 comments.
4750 * arch-utils.c (init_frame_pc_default): Only call
4751 SAVED_PC_AFTER_CALL when available.
4752
4753 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
4754
4755 * infrun.c (stop_soon): Rename from stop_soon_quietly.
4756 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
4757 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
4758 (start_remote): Ditto.
4759 (handle_inferior_event): Ditto.
4760 (save_inferior_status): Ditto.
4761 (restore_inferior_status): Ditto.
4762 * infcmd.c (attach_command): Ditto.
4763 * fork-child.c (startup_inferior): Ditto.
4764 * inferior.h (stop_soon): Rename from stop_soon_quietly.
4765 * alpha-tdep.c (heuristic_proc_start): Ditto.
4766 * mips-tdep.c (heuristic_proc_start): Ditto.
4767 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
4768 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
4769 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
4770 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
4771 * remote-vx.c (vx_create_inferior): Ditto.
4772
4773 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
4774
4775 * infrun.c (stop_soon_quietly): Make it an enum, to better
4776 override the default behavior of handle_inferior_event.
4777 (clear_proceed_status): Update uses of stop_soon_quietly to
4778 reflect that it is now an enum.
4779 (start_remote): Ditto.
4780 (handle_inferior_event): Change logic a bit if stop_soon_quietly
4781 is set to handle the new GNU/Linux kernel behavior for
4782 attach/sigstop. Update uses of stop_soon_quietly.
4783 * inferior.h (enum stop_kind): New enum.
4784 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
4785 Reset normal handle_inferior_event behavior, afterwards.
4786 * fork-child.c (startup_inferior): Update.
4787 * alpha-tdep.c (heuristic_proc_start): Update.
4788 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4789 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
4790 * solib-osf.c (osf_solib_create_inferior_hook): Update.
4791 * solib-irix.c (irix_solib_create_inferior_hook): Update.
4792 * remote-vx.c (vx_create_inferior): Update.
4793 * mips-tdep.c (heuristic_proc_start): Update.
4794
4795 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
4796
4797 * disasm.c (dump_insns): Move variables inside loop, or they will
4798 be freed more than once, causing wild memory corruptions.
4799 (gdb_disassembly): Look for the substring "-thread",
4800 instead of "-threads" in the target name, to make sure to find
4801 the 'multi-thread' target. Also, make sure we do the right thing
4802 with the "core" target.
4803
4804 2003-04-07 Kevin Buettner <kevinb@redhat.com>
4805
4806 * mips-tdep.c (mips_print_fp_register): New function, created from
4807 do_fp_register_row(). Registers are now (also) printed as hex.
4808 Only one register is printed per row.
4809 (mips_print_register, do_fp_register_row): Print floating point
4810 registers with mips_print_fp_register().
4811
4812 2003-04-06 Andrew Cagney <cagney@redhat.com>
4813
4814 * valprint.h (inspect_it): Add extern declaration.
4815 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
4816 (selectors_info, classes_info): Ditto.
4817 (find_objc_msgcall): Fix indentation.
4818 (objc_printstr): Delete extern declarations.
4819
4820 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
4821
4822 2003-04-06 Andrew Cagney <cagney@redhat.com>
4823
4824 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
4825 Update comment.
4826 * frame.c (legacy_saved_regs_this_id): Update.
4827 (legacy_get_prev_frame): Update.
4828 * xstormy16-tdep.c: Update comment.
4829 * sparc-tdep.c (sparc_frame_chain): Update comment.
4830 * blockframe.c (legacy_frame_chain_valid): Update.
4831
4832 2003-04-06 Andrew Cagney <cagney@redhat.com>
4833
4834 * valprint.c (val_print_type_code_int): Delete #ifdef
4835 PRINT_TYPELESS_INTEGER code.
4836
4837 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
4838 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
4839 multi-arch definition.
4840 * gdbarch.h: Re-generate.
4841
4842 2003-04-05 Andrew Cagney <cagney@redhat.com>
4843
4844 Eliminate FRAME_FIND_SAVED_REGS.
4845 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
4846 Change FSR parameter to a pointer.
4847 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
4848 Assume FSR parameter is a pointer.
4849 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
4850 Make fsr a pointer.
4851 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
4852 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
4853 saved_regs a pointer.
4854 (hppa_frame_saved_pc): Ditto.
4855 (find_dummy_frame_regs): Make frame_saved_regs a pointer
4856 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
4857 pointer.
4858 (restore_pc_queue): Make fsr a pointer.
4859 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
4860 (hppa_frame_chain): Make saved_regs a pointer, call
4861 hppa_frame_init_saved_regs.
4862 * sparc-tdep.c: Include "gdb_assert.h".
4863 (sparc_frame_find_saved_regs): Replace internal_error with
4864 gdb_assert.
4865 * remote-vxsparc.c (vx_read_register): Delete reference to
4866 FRAME_FIND_SAVED_REGS.
4867 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
4868 * gdbarch.h: Regenerate.
4869 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
4870 (deprecated_get_frame_saved_regs): Delete declaration.
4871 (struct frame_saved_regs): Delete definition.
4872 * frame.c (deprecated_get_frame_saved_regs): Delete function.
4873 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
4874 (hppa_frame_find_saved_regs): Delete declaration.
4875 (FRAME_FIND_SAVED_REGS): Delete macro.
4876 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
4877 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
4878 FRAME_FIND_SAVED_REGS in comment.
4879
4880 2003-04-05 Andrew Cagney <cagney@redhat.com>
4881
4882 * frame.c (frame_func_unwind, get_frame_func): New functions.
4883 * frame.h (get_frame_func, frame_func_unwind): Declare.
4884 (struct frame_info): Add field "prev_func" for caching the
4885 previous frame's function address.
4886 * arm-tdep.c (arm_frameless_function_invocation): Combine
4887 get_pc_function_start and get_frame_pc into get_frame_func.
4888 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
4889 (sh64_nofp_frame_init_saved_regs): Ditto.
4890 * s390-tdep.c (s390_function_start): Ditto.
4891 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
4892 (rs6000_frameless_function_invocation): Ditto.
4893 (rs6000_frame_saved_pc): Ditto.
4894 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
4895 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
4896 * i386-tdep.c (i386_frameless_signal_p): Ditto.
4897 (i386_frame_init_saved_regs): Ditto.
4898 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
4899 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
4900 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
4901 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4902 * blockframe.c (frameless_look_for_prologue): Ditto.
4903
4904 2003-04-05 Andrew Cagney <cagney@redhat.com>
4905
4906 * frame.c (legacy_get_prev_frame): Link prev to next at the
4907 function start. Update comments.
4908
4909 2003-04-05 Andrew Cagney <cagney@redhat.com>
4910
4911 * frame.c (get_frame_id): Update comment.
4912 (legacy_get_prev_frame): Update comment.
4913 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
4914 * gdbarch.h: Regenerate.
4915 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
4916 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
4917
4918 2003-04-05 Andrew Cagney <cagney@redhat.com>
4919
4920 * stack.c (print_frame_info): Use get_frame_pc.
4921
4922 2003-04-04 Andrew Cagney <cagney@redhat.com>
4923
4924 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
4925 the frame's type from the unwinder.
4926 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
4927 (create_new_frame, legacy_get_prev_frame): When the unwinder's
4928 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
4929 (get_frame_base_address): Use get_frame_type.
4930 (get_frame_locals_address, get_frame_args_address): Ditto.
4931 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
4932 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
4933 (struct frame_info): Add comment explaining why the frame contains
4934 a "type" field.
4935 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
4936 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
4937 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
4938 NORMAL_FRAME.
4939 * frame-unwind.h: Include "frame.h".
4940 (struct frame_unwind): Add "type" field.
4941 * Makefile.in (frame_unwind_h): Add $(frame_h).
4942
4943 2003-04-04 Andrew Cagney <cagney@redhat.com>
4944
4945 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
4946 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
4947 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
4948 get_frame_base.
4949 (d10v_unwind_dummy_id): Use frame_id_build.
4950 * frame.c (find_frame_sal): Use get_frame_pc.
4951 (create_new_frame): Use deprecated_update_frame_pc_hack and
4952 deprecated_update_frame_base_hack.
4953 (create_sentinel_frame): Add comment about ->pc going away.
4954 (get_prev_frame): Add comment about ->pc going away.
4955 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
4956 frame_id_build, deprecated_update_frame_pc_hack and
4957 deprecated_update_frame_base_hack.
4958 (select_frame): Use get_frame_pc.
4959 (legacy_saved_regs_this_id): Use frame_id_build.
4960
4961 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
4962
4963 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
4964 signed integer case.
4965 (classify_argument): Handle enumerations and references.
4966
4967 2003-04-04 Andrew Cagney <cagney@redhat.com>
4968
4969 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
4970 ID to NULL.
4971
4972 2003-04-01 Adam Fedor <fedor@gnu.org>
4973
4974 * gdb/objc-lang.c (selectors_info): Replace calls to
4975 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
4976 SYMBOL_NATURAL_NAME.
4977 (classes_info, find_methods): Likewise.
4978
4979 2003-04-03 Kevin Buettner <kevinb@redhat.com>
4980
4981 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
4982 ``mach'' to the value determined by bfd_default_set_arch_mach().
4983
4984 2003-04-02 Bob Rossi <bob_rossi@cox.net>
4985
4986 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
4987 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
4988 (mi-cmd-file.o): Update dependencies.
4989
4990 2003-04-01 Kevin Buettner <kevinb@redhat.com>
4991
4992 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4993 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
4994
4995 2003-04-01 Adam Fedor <fedor@gnu.org>
4996
4997 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
4998 * language.h (struct language_defn): Add la_demangle.
4999 (language_demangle): Declare.
5000 * language.c (language_demangle): New function.
5001 (unk_lang_demangle): Likewise.
5002 (unknown_language_defn, auto_language_defn, local_language_defn):
5003 Add ukn_lang_demangle.
5004 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
5005 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
5006 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
5007 (cplus_language_defn): Add cplus_demangle for la_demangle element.
5008 * jv-lang.c (java_demangle): New function
5009 (java_language_defn): Use it for la_demangle element.
5010 * objc-lang.c (objc_demangle): Add options argument
5011 (objc_language_defn): Use objc_demangle for la_demangle element.
5012 * maint.c (maintenance_demangle): Replace switch with
5013 call to language_demangle.
5014 * utils.c (fprintf_symbol_filtered): Likewise.
5015
5016 2003-04-01 Andrew Cagney <cagney@redhat.com>
5017
5018 * printcmd.c (print_frame_nameless_args): Delete #ifdef
5019 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
5020 PRINT_TYPELESS_INTEGER.
5021 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
5022 PUSH_RETURN_ADDRESS.
5023
5024 2003-04-01 Andrew Cagney <cagney@redhat.com>
5025
5026 * Makefile.in (d10v-tdep.o): Update dependencies.
5027 * d10v-tdep.c: Include "frame-base.h".
5028 (d10v_frame_unwind): Make constant.
5029 (d10v_frame_base_address): New function.
5030 (d10v_frame_base): New variable.
5031 (d10v_gdbarch_init): Set frame_base default.
5032 (struct d10v_unwind_cache): Add the field "prev_sp". Update
5033 comment for base.
5034 (d10v_frame_unwind_cache): Set and use "prev_sp".
5035 (d10v_frame_this_id): Use the previous frame's inner most stack
5036 address and this frame's func address for the frame ID. Use
5037 frame_id_build. Don't analyze beyond the current instruction.
5038
5039 2003-04-01 Andrew Cagney <cagney@redhat.com>
5040
5041 * frame.h (get_frame_locals_address, get_frame_args_address):
5042 Refer to the base address, instead of the address of the first
5043 local or parameter.
5044
5045 2003-04-01 Andrew Cagney <cagney@redhat.com>
5046
5047 Add frame debug info addresses:
5048 * frame-base.c: New file.
5049 * frame-base.h: New file.
5050 * frame.h (struct frame_base): Add opaque declaration.
5051 (get_frame_base): Update comment.
5052 (get_frame_base_address): Declare.
5053 (get_frame_locals_address): Declare.
5054 (get_frame_args_address): Declare.
5055 (struct frame_info): Add "base" and "base_cache". Update
5056 comments on the unwinder.
5057 * frame.c: Include "frame-base.h".
5058 (get_frame_locals_address): New function.
5059 (get_frame_base_address): New function.
5060 (get_frame_args_address): New function.
5061 * findvar.c (read_var_value): Use get_frame_locals_address and
5062 get_frame_args_address.
5063 * stack.c (frame_info): Use get_frame_locals_address and
5064 get_frame_args_address.
5065 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
5066 moved to "frame-base.c".
5067 * printcmd.c (print_frame_nameless_args): Ditto.
5068 * symtab.h (address_class): Update comments.
5069 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
5070 get_frame_base_address.
5071 * dwarf2expr.c (execute_stack_op): Ditto.
5072 * Makefile.in (frame_base_h): Define.
5073 (frame.o): Update dependencies.
5074 (frame-base.o): Add dependencies.
5075 (SFILES): Add frame-base.c.
5076 (COMMON_OBS): Add frame-base.o.
5077
5078 2003-04-01 Andrew Cagney <cagney@redhat.com>
5079
5080 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
5081 CALL_DUMMY_LENGTH): Ditto.
5082 * gdbarch.c: Re-generate.
5083 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
5084 (CALL_DUMMY_LENGTH): Delete macro.
5085 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
5086 * arm-tdep.c (arm_gdbarch_init): Ditto.
5087 * avr-tdep.c (avr_gdbarch_init): Ditto.
5088 * cris-tdep.c (cris_gdbarch_init): Ditto.
5089 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5090 * frv-tdep.c (frv_gdbarch_init): Ditto.
5091 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5092 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5093 * i386-tdep.c (i386_gdbarch_init): Ditto.
5094 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5095 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5096 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5097 * mips-tdep.c (mips_gdbarch_init): Ditto.
5098 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5099 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5100 * s390-tdep.c (s390_gdbarch_init): Ditto.
5101 * sh-tdep.c (sh_gdbarch_init): Ditto.
5102 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5103 * v850-tdep.c (v850_gdbarch_init): Ditto.
5104 * vax-tdep.c (vax_gdbarch_init): Ditto.
5105 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5106
5107 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
5108
5109 * frame.c (get_prev_frame): Disable call to inside_entry_file().
5110
5111 2003-04-01 Andrew Cagney <cagney@redhat.com>
5112
5113 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
5114 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5115 * gdbarch.h, gdbarch.c: Re-generate.
5116 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5117 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5118 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5119 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5120 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5121 * infcmd.c (run_stack_dummy): Simplify assuming
5122 CALL_DUMMY_BREAKPOINT_OFFSET_P.
5123 * infrun.c (handle_inferior_event): Ditto.
5124 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5125 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
5126 * arm-tdep.c (arm_gdbarch_init): Ditto.
5127 * avr-tdep.c (avr_gdbarch_init): Ditto.
5128 * cris-tdep.c (cris_gdbarch_init): Ditto.
5129 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5130 * frv-tdep.c (frv_gdbarch_init): Ditto.
5131 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5132 * i386-tdep.c (i386_gdbarch_init): Ditto.
5133 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5134 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5135 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5136 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5137 * mips-tdep.c (mips_gdbarch_init): Ditto.
5138 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5139 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5140 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5141 * s390-tdep.c (s390_gdbarch_init): Ditto.
5142 * sh-tdep.c (sh_gdbarch_init): Ditto.
5143 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5144 * v850-tdep.c (v850_gdbarch_init): Ditto.
5145 * vax-tdep.c (vax_gdbarch_init): Ditto.
5146 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5147
5148 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
5149
5150 * symfile.c (symfile_relocate_debug_section): Update call to
5151 bfd_simple_get_relocated_section_contents.
5152
5153 2003-03-31 Andrew Cagney <cagney@redhat.com>
5154
5155 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
5156 * gdbarch.h, gdbarch.c: Regenerate.
5157 * inferior.h (FIX_CALL_DUMMY): Delete macro.
5158 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
5159 available.
5160 * frame.h (generic_fix_call_dummy): Delete declaration.
5161 * dummy-frame.h: Update comment.
5162 * dummy-frame.c (generic_fix_call_dummy): Delete function.
5163 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5164 fix_call_dummy.
5165 * sh-tdep.c (sh_gdbarch_init): Ditto.
5166 * s390-tdep.c (s390_gdbarch_init): Ditto.
5167 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5168 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5169 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5170 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5171 * i386-tdep.c (i386_gdbarch_init): Ditto.
5172 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5173 * frv-tdep.c (frv_gdbarch_init): Ditto.
5174 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5175 * cris-tdep.c (cris_gdbarch_init): Ditto.
5176 * avr-tdep.c (avr_gdbarch_init): Ditto.
5177 * arm-tdep.c (arm_gdbarch_init): Ditto.
5178
5179 2003-03-31 J. Brobecker <brobecker@gnat.com>
5180
5181 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
5182 (INIT_FRAME_AP): Likewise.
5183 (EXTRA_FRAME_INFO): Likewise.
5184
5185 2003-03-31 Andrew Cagney <cagney@redhat.com>
5186
5187 * gdbarch.sh: Include "symfile.h".
5188 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
5189 * gdbarch.h, gdbarch.c: Re-generate.
5190 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
5191 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5192 call_dummy_address, the default is at entry_point_address.
5193 * v850-tdep.c (v850_gdbarch_init): Ditto.
5194 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5195 * sh-tdep.c (sh_gdbarch_init): Ditto.
5196 * s390-tdep.c (s390_gdbarch_init): Ditto.
5197 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5198 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5199 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5200 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5201 * i386-tdep.c (i386_gdbarch_init): Ditto.
5202 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5203 * frv-tdep.c (frv_gdbarch_init): Ditto.
5204 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5205 * cris-tdep.c (cris_gdbarch_init): Ditto.
5206 * arm-tdep.c (arm_gdbarch_init): Ditto.
5207
5208 2003-03-31 Andrew Cagney <cagney@redhat.com>
5209
5210 * gdbarch.sh (CALL_DUMMY_P): Delete.
5211 * gdbarch.h, gdbarch.c: Re-generate.
5212 * inferior.h (CALL_DUMMY_P): Delete macro.
5213 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5214 * vax-tdep.c (vax_gdbarch_init): Update.
5215 * v850-tdep.c (v850_gdbarch_init): Update.
5216 * sparc-tdep.c (sparc_gdbarch_init): Update.
5217 * sh-tdep.c (sh_gdbarch_init): Update.
5218 * s390-tdep.c (s390_gdbarch_init): Update.
5219 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5220 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5221 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5222 * mips-tdep.c (mips_gdbarch_init): Update.
5223 * mcore-tdep.c (mcore_gdbarch_init): Update.
5224 * m68k-tdep.c (m68k_gdbarch_init): Update.
5225 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5226 * ia64-tdep.c (ia64_gdbarch_init): Update.
5227 * i386-tdep.c (i386_gdbarch_init): Update.
5228 * h8300-tdep.c (h8300_gdbarch_init): Update.
5229 * frv-tdep.c (frv_gdbarch_init): Update.
5230 * d10v-tdep.c (d10v_gdbarch_init): Update.
5231 * cris-tdep.c (cris_gdbarch_init): Update.
5232 * breakpoint.c (deprecated_frame_in_dummy): Update.
5233 * avr-tdep.c (avr_gdbarch_init): Update.
5234 * alpha-tdep.c (alpha_gdbarch_init): Update.
5235 * arm-tdep.c (arm_gdbarch_init): Update.
5236 * dummy-frame.c (dummy_frame_this_id): Update comments.
5237 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
5238 * frame.c (legacy_get_prev_frame): Ditto.
5239 * valops.c (call_function_by_hand): Delete function.
5240 (hand_function_call): Rename to call_function_by_hand
5241
5242 2003-03-30 Andrew Cagney <cagney@redhat.com>
5243
5244 2002-11-10 Klee Dienes <kdienes@apple.com>
5245 * value.h (struct value): Update comment.
5246
5247 2003-03-30 Andrew Cagney <cagney@redhat.com>
5248
5249 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
5250 D10V_FP_REGNUM.
5251 (d10v_gdbarch_init): Do not set fp_regnum.
5252
5253 * frame.c (get_frame_base): Force ID initialization.
5254 (get_prev_frame): Move computation of the frame ID from here ...
5255 (get_frame_id): ... to here.
5256 (legacy_get_prev_frame): Mark the frame ID as valid.
5257 * frame.h (struct frame_info): Add field "id_p".
5258
5259 2003-03-30 Mark Kettenis <kettenis@gnu.org>
5260
5261 * i386-tdep.c (i386_store_struct_return): Removed.
5262 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
5263
5264 2003-03-30 Andrew Cagney <cagney@redhat.com>
5265
5266 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
5267 * gdbarch.h, gdbarch.c: Regenerate.
5268 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
5269 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5270 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5271 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5272 * i386-tdep.c (i386_gdbarch_init): Ditto.
5273 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5274 * cris-tdep.c (cris_gdbarch_init): Ditto.
5275 * vax-tdep.c (vax_gdbarch_init): Ditto.
5276 * s390-tdep.c (s390_gdbarch_init): Ditto.
5277 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5278 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5279 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5280 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
5281 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5282 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
5283 * sparc-tdep.c (sparc_gdbarch_init): Update.
5284 * sh-tdep.c (sh_gdbarch_init): Update.
5285 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5286 * mips-tdep.c (mips_gdbarch_init): Update.
5287 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5288 * ia64-tdep.c (ia64_gdbarch_init): Update.
5289 * frv-tdep.c (frv_gdbarch_init): Update.
5290 * avr-tdep.c (avr_gdbarch_init): Update.
5291 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
5292 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
5293 instead of when push_dummy_call is not available.
5294
5295 2003-03-30 Andrew Cagney <cagney@redhat.com>
5296
5297 * infttrace.c: Include "gdbthread.h".
5298 (parent_attach_all): Fix function signature.
5299 (call_ptrace): Update call.
5300 * Makefile.in (infttrace.o): Update dependencies.
5301
5302 2003-03-30 Andrew Cagney <cagney@redhat.com>
5303
5304 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
5305 PUSH_RETURN_ADDRESS.
5306 * gdbarch.h, gdbarch.c: Regenerate.
5307 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5308 * x86-64-tdep.c (x86_64_init_abi): Update.
5309 * v850-tdep.c (v850_gdbarch_init): Update.
5310 * sparc-tdep.c (sparc_gdbarch_init): Update.
5311 * sh-tdep.c (sh_gdbarch_init): Update.
5312 * s390-tdep.c (s390_gdbarch_init): Update.
5313 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5314 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5315 * mips-tdep.c (mips_gdbarch_init): Update.
5316 * mcore-tdep.c (mcore_gdbarch_init): Update.
5317 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5318 * ia64-tdep.c (ia64_gdbarch_init): Update.
5319 * i386-tdep.c (i386_gdbarch_init): Update.
5320 * h8300-tdep.c (h8300_gdbarch_init): Update.
5321 * frv-tdep.c (frv_gdbarch_init): Update.
5322 * cris-tdep.c (cris_gdbarch_init): Update.
5323 * avr-tdep.c (avr_gdbarch_init): Update.
5324 * arm-tdep.c (arm_gdbarch_init): Update.
5325 * valops.c (hand_function_call): Update.
5326
5327 2003-03-29 Andrew Cagney <cagney@redhat.com>
5328
5329 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
5330 sizeof_call_dummy_words.
5331 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
5332 define.
5333 * gdbarch.h: Regenerate.
5334
5335 2003-03-29 Andrew Cagney <cagney@redhat.com>
5336
5337 * infttrace.h: New file.
5338 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
5339 (hpread_get_textlow): Detect an uninitialized dn_bufp.
5340 (hpread_read_doc_function_type): Detect an initialized type1.
5341 (hpread_quick_traverse): Initialize mod_name_string.
5342 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
5343 (som_solib_get_solib_by_pc): Declare.
5344 (so_lib_thread_start_addr): Declare.
5345 (no_shared_libraries): Declare.
5346 * somread.c (init_import_symbols): Make static. Add forward
5347 declaration.
5348 * config/pa/nm-hppah.h: Include "infttrace.h" for
5349 parent_attach_all.
5350 (hppa_insert_hw_watchpoint): Declare.
5351 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
5352 * hppah-nat.c: Include "gdb_string.h".
5353 (parent_attach_all): Delete extern declaration, moved to
5354 "infttrace.h".
5355 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
5356 int.
5357 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
5358 * Makefile.in (infttrace_h): Define.
5359 (hpread.o): Update dependencies.
5360 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
5361 * hppa-hpux-tdep.c: Include "gdb_string.h".
5362 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
5363 * infrun.c (handle_inferior_event): Always initialize
5364 stepped_after_stopped_by_watchpoint. Add default and remove
5365 fallthrough in switch statement.
5366 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
5367 parameter to int.
5368 (hppa_remove_hw_watchpoint): Ditto.
5369
5370 2003-03-29 Andrew Cagney <cagney@redhat.com>
5371
5372 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
5373 offset.
5374
5375 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
5376
5377 * arm-tdep.c (arm_push_arguments): Delete.
5378 (struct stack_item): New type.
5379 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
5380 (arm_store_struct_return): Delte.
5381 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
5382 arm_push_arguments or arm_store_struct_return.
5383
5384 2003-03-28 Andrew Cagney <cagney@redhat.com>
5385
5386 * Makefile.in (d10v-tdep.o): Update dependencies.
5387 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
5388 * d10v-tdep.c: Include "remote.h".
5389 (target_resume_hook): Delete extern declaration.
5390 (target_wait_loop_hook): Ditto.
5391 (tdisassemble_command): Eliminate assignment in "if" conditional.
5392 (d10v_ts2_register_sim_regno): Eliminate call to
5393 legacy_register_sim_regno.
5394 (d10v_ts3_register_sim_regno): Ditto.
5395
5396 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
5397
5398 * thread.c: Reindented.
5399 * lin-lwp.c: Ditto.
5400 * linux-proc.c: Ditto.
5401
5402 2003-03-28 Bob Rossi <bob_rossi@cox.net>
5403
5404 * MAINTAINERS (write after approval): Add myself.
5405
5406 2003-03-27 Theodore A. Roth <troth@openavr.org>
5407
5408 * objc-exp.y: Add missing semi-colons.
5409
5410 2003-03-27 Andrew Cagney <cagney@redhat.com>
5411
5412 * regcache.c (write_sp): Delete function and references.
5413 * inferior.h (write_sp): Delete declaration.
5414 * valops.c (hand_function_call): Replace write_sp with
5415 TARGET_WRITE_SP.
5416 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
5417 (sparc_pop_frame): Ditto.
5418
5419 2003-03-27 Andrew Cagney <cagney@redhat.com>
5420
5421 * NEWS: Mention removal of support for hppa*-*-bsd* and
5422 hppa*-*-osf* natives, and hppa*-*-pro* target.
5423 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
5424 * config/pa/xm-pa.h: Obsolete file.
5425 * config/pa/xm-hppab.h: Obsolete file.
5426 * config/pa/nm-hppab.h: Obsolete file.
5427 * config/pa/tm-hppab.h: Obsolete file.
5428 * config/pa/tm-hppao.h: Obsolete file.
5429 * config/pa/nm-hppao.h: Obsolete file.
5430 * config/pa/tm-pro.h: Obsolete file.
5431 * config/pa/hppaosf.mt: Obsolete file.
5432 * config/pa/hppaosf.mh: Obsolete file.
5433 * config/pa/hppapro.mt: Obsolete file.
5434 * config/pa/hppabsd.mt: Obsolete file.
5435 * config/pa/hppabsd.mh: Obsolete file.
5436 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
5437 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
5438 hppa*-*-osf*.
5439
5440 2003-03-27 Andrew Cagney <cagney@redhat.com>
5441
5442 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
5443 push_arguments. Don't set push_return_address or write_sp.
5444 (d10v_push_dummy_call): Replace d10v_push_arguments.
5445 (d10v_push_return_address, d10v_write_sp): Delete function,
5446 handled by push_dummy_call.
5447
5448 2003-03-26 Andrew Cagney <cagney@redhat.com>
5449
5450 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
5451 (push_dummy_call): New pure multi-arch replacement with gdbarch,
5452 regcache and dummy_addr parameters.
5453 * gdbarch.h, gdbarch.c: Re-generate.
5454 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
5455 available; assume it will handle stack alignment and return
5456 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
5457 legacy_push_arguments.
5458 (legacy_push_arguments): Rename default_push_arguments.
5459 * value.h (legacy_push_arguments): Rename default_push_arguments.
5460 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
5461 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5462 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5463 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
5464 * config/i386/tm-symmetry.h: Update.
5465 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5466 * x86-64-tdep.c (x86_64_init_abi): Update.
5467 * v850-tdep.c (v850_gdbarch_init): Update.
5468 * sparc-tdep.c (sparc_gdbarch_init): Update.
5469 * sh-tdep.c (sh_gdbarch_init): Update.
5470 * s390-tdep.c (s390_gdbarch_init): Update.
5471 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5472 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5473 * mips-tdep.c (mips_gdbarch_init): Update.
5474 * mcore-tdep.c (mcore_gdbarch_init): Update.
5475 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5476 * ia64-tdep.c (ia64_gdbarch_init): Update.
5477 * i386-tdep.c (i386_gdbarch_init): Update.
5478 * hppa-tdep.c (hppa_gdbarch_init): Update.
5479 * h8300-tdep.c (h8300_gdbarch_init): Update.
5480 * frv-tdep.c (frv_gdbarch_init): Update.
5481 * d10v-tdep.c (d10v_gdbarch_init): Update.
5482 * cris-tdep.c (cris_gdbarch_init): Update.
5483 * avr-tdep.c (avr_gdbarch_init): Update.
5484 * arm-tdep.c (arm_gdbarch_init): Update.
5485 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5486 * alpha-tdep.c (alpha_gdbarch_init): Update.
5487
5488 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5489
5490 * signals/signals.c (do_target_signal_to_host): Correct realtime
5491 signal range test.
5492
5493 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5494
5495 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
5496 (struct sal_chain, map_catch_names): Remove.
5497 (catch_exception_command_1): Don't call
5498 handle_gnu_4_16_catch_command.
5499
5500 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5501
5502 From Mark Dettinger <dettinge@de.ibm.com>:
5503 * dwarf2cfi.c (read_2u): Increment pointer by two.
5504
5505 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5506
5507 * signals/signals.c: Fix typos in last change.
5508
5509 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
5510
5511 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
5512 not already defined. Use __SIGRTMIN if available.
5513 (target_signal_from_host): Remove SIGRTMIN block.
5514 (do_target_signal_to_host): Remove SIGRTMIN block; check that
5515 the signal is within the realtime range.
5516
5517 2003-03-25 Adam Fedor <fedor@gnu.org>
5518
5519 * Makefile.in (infrun.o): Add $(language_h)
5520 * infrun.c (handle_inferior_event): Use skip_language_trampoline
5521 for language specific trampolines.
5522 * language.h (struct language_defn): Add skip_trampoline.
5523 (skip_language_trampoline): Declare.
5524 * language.c (unk_lang_trampoline, skip_language_trampoline):
5525 New functions.
5526 (unknown_language_defn, auto_language_defn, local_language_defn):
5527 Add ukn_lang_trampoline.
5528 * ada-lang.c (ada_language_defn): Add NULL for language
5529 specific skip_trampoline.
5530 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
5531 scm-lang.c: Likewise.
5532 * objc-lang.c (objc_skip_trampoline): New function.
5533 (objc_language_defn): Add objc_skip_trampoline.
5534
5535 2003-03-25 Andrew Cagney <cagney@redhat.com>
5536
5537 * frame.c (get_prev_frame): Delay validating a frame's ID -
5538 non-NULL, didn't go backwards - until an attempt to unwind it to
5539 the previous frame.
5540
5541 2003-03-25 Andrew Cagney <cagney@redhat.com>
5542
5543 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
5544 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
5545 * gdbarch.h, gdbarch.c: Re-generate.
5546 * config/sparc/tm-sparc.h
5547 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
5548 * sparc-tdep.c (sparc_gdbarch_init): Set
5549 deprecated_extra_stack_alignment_needed.
5550 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
5551 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
5552 extra_stack_alignment_needed.
5553 * v850-tdep.c (v850_gdbarch_init): Ditto.
5554 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5555 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5556 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5557 * cris-tdep.c (cris_gdbarch_init): Ditto.
5558 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5559 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5560
5561 2003-03-25 Andrew Cagney <cagney@redhat.com>
5562
5563 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
5564 STORE_STRUCT_RETURN.
5565 * gdbarch.h, gdbarch.c: Regenerate.
5566 * d10v-tdep.c (d10v_store_struct_return): Delete function.
5567 (d10v_push_arguments): Set the struct return register.
5568 (d10v_gdbarch_init): Update.
5569 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5570 * x86-64-tdep.c (x86_64_init_abi): Update.
5571 * vax-tdep.c (vax_gdbarch_init): Update.
5572 * v850-tdep.c (v850_gdbarch_init): Update.
5573 * sparc-tdep.c (sparc_gdbarch_init): Update.
5574 * sh-tdep.c (sh_gdbarch_init): Update.
5575 * s390-tdep.c (s390_gdbarch_init): Update.
5576 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5577 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5578 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5579 * mips-tdep.c (mips_gdbarch_init): Update.
5580 * mcore-tdep.c (mcore_gdbarch_init): Update.
5581 * m68k-tdep.c (m68k_gdbarch_init): Update.
5582 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5583 * ia64-tdep.c (ia64_gdbarch_init): Update.
5584 * i386-tdep.c (i386_gdbarch_init): Update.
5585 * hppa-tdep.c (hppa_gdbarch_init): Update.
5586 * h8300-tdep.c (h8300_gdbarch_init): Update.
5587 * frv-tdep.c (frv_gdbarch_init): Update.
5588 * cris-tdep.c (cris_gdbarch_init): Update.
5589 * avr-tdep.c (avr_gdbarch_init): Update.
5590 * arm-tdep.c (arm_gdbarch_init): Update.
5591 * alpha-tdep.c (alpha_gdbarch_init): Update.
5592
5593 2003-03-25 Andrew Cagney <cagney@redhat.com>
5594
5595 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
5596 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
5597 CALL_DUMMY_STACK_ADJUST with a predicate variable.
5598 * gdbarch.h, gdbarch.c: Regenerate.
5599 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5600 call_dummy_stack_adjust_p.
5601 * vax-tdep.c (vax_gdbarch_init): Ditto.
5602 * v850-tdep.c (v850_gdbarch_init): Ditto.
5603 * sh-tdep.c (sh_gdbarch_init): Ditto.
5604 * s390-tdep.c (s390_gdbarch_init): Ditto.
5605 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5606 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5607 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5608 * mips-tdep.c (mips_gdbarch_init): Ditto.
5609 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5610 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5611 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5612 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5613 * i386-tdep.c (i386_gdbarch_init): Ditto.
5614 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5615 * frv-tdep.c (frv_gdbarch_init): Ditto.
5616 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5617 * cris-tdep.c (cris_gdbarch_init): Ditto.
5618 * avr-tdep.c (avr_gdbarch_init): Ditto.
5619 * arm-tdep.c (arm_gdbarch_init): Ditto.
5620 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5621 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
5622 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
5623 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
5624 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
5625 call_dummy_stack_adjust_p.
5626 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
5627 (CALL_DUMMY_STACK_ADJUST): Delete macro.
5628 * sparc-tdep.c (sparc32_push_arguments): Update.
5629 * valops.c (hand_function_call): Update.
5630
5631 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
5632
5633 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
5634 set_gdbarch_char_signed.
5635
5636 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
5637
5638 PR cli/548
5639 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
5640
5641 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
5642
5643 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
5644 (_initialize_arm_tdep): Don't set tm_print_insn.
5645
5646 2003-03-24 Adam Fedor <fedor@gnu.org>
5647
5648 * Makefile.in (YYOBJ): Add objc-exp.tab.o
5649 * objc-lang.h: Add multiple inclusion protection.
5650 (start_msglist, add_msglist, end_msglist): Additional declarations.
5651
5652 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
5653
5654 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
5655 value was renamed to ARM_FLOAT_SOFT_FPA.
5656
5657 2003-03-23 Andrew Cagney <cagney@redhat.com>
5658
5659 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
5660 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
5661 * gdbarch.h, gdbarch.c: Regenerate.
5662 * valops.c (hand_function_call): Update.
5663 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
5664 * frame.c (legacy_saved_regs_this_id): Update.
5665 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
5666 * dummy-frame.h: Update.
5667 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
5668 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
5669 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
5670 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
5671 * config/m68k/tm-sun3.h: Update.
5672 * blockframe.c (inside_main_func, frame_chain_valid): Update.
5673 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5674 * x86-64-tdep.c (x86_64_init_abi): Update.
5675 * vax-tdep.c (vax_gdbarch_init): Update.
5676 * v850-tdep.c (v850_gdbarch_init): Update.
5677 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
5678 * sh-tdep.c (sh_gdbarch_init): Update.
5679 * s390-tdep.c (s390_gdbarch_init): Update.
5680 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
5681 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
5682 (frame_get_saved_regs): Update.
5683 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5684 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5685 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5686 * mips-tdep.c (mips_gdbarch_init): Update.
5687 * mcore-tdep.c (mcore_gdbarch_init): Update.
5688 * m68k-tdep.c (m68k_gdbarch_init): Update.
5689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5690 * ia64-tdep.c (ia64_gdbarch_init): Update.
5691 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
5692 * i386-interix-tdep.c (i386_interix_init_abi): Update.
5693 (i386_interix_back_one_frame): Update.
5694 * hppa-tdep.c (hppa_gdbarch_init): Update.
5695 (hppa_init_extra_frame_info): Update.
5696 * h8300-tdep.c (h8300_gdbarch_init): Update.
5697 * frv-tdep.c (frv_gdbarch_init): Update.
5698 * cris-tdep.c (cris_gdbarch_init): Update.
5699 * avr-tdep.c (avr_gdbarch_init): Update.
5700 * arm-tdep.c (arm_gdbarch_init): Update.
5701 * alpha-tdep.c (alpha_gdbarch_init): Update.
5702
5703 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5704
5705 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
5706 (arm_get_fp_model): Declare.
5707 * arm-tdep.c (fp_model_strings): New string array.
5708 (arm_fp_model, current_fp_model): New variables.
5709 (arm_get_fp_model): New function.
5710 (arm_set_fp): New function.
5711 (set_fp_model_sfunc): New function.
5712 (show_fp_model): New function.
5713 (_initialize_arm_tdep): Add new command to set/show the FPU.
5714 (arm_extract_return_value): Use arm_get_fp_model.
5715 (arm_store_return_value): Likewise.
5716 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
5717 to initialize the floating-point data types.
5718 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
5719 model is FPA.
5720
5721 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5722
5723 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
5724 the current setting of each value.
5725 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
5726 new_set and new_show. Use add_setshow_cmd_full and
5727 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
5728 commands and add new version as subcommands of "set/show arm".
5729
5730 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5731
5732 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
5733 (set_arm_command, show_arm_command): New functions.
5734 (_initialize_arm_tdep): Add them.
5735 (num_disassembly_options): Renamed from num_flavor_options.
5736 (valid_disassembly_styles): Renamed from valid_flavors.
5737 (disassembly_style): Renamed from disassembly_flavor.
5738 (set_disassembly_style_sfunc): Renamed from
5739 set_disassembly_flavor_sfunc.
5740 (set_disassembly_style): Renamed from set_disassembly_flavor.
5741 (arm_othernames): Updated.
5742 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
5743 command. Add "set/show arm disassembly" commands. Deprecate
5744 "othernames" command.
5745
5746 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5747
5748 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
5749 (arm-tdep.o): Depend on elf_arm_h.
5750
5751 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5752
5753 * Makefile.in (coff_internal_h): Define.
5754 (arm-tdep.o): Update dependencies.
5755
5756 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
5757
5758 * arm-tdep.c (prologue_cache): Delete.
5759 (check_prologue_cache, save_prologue_cache): Delete.
5760 (arm_scan_prologue): Don't check or update the prologue_cache.
5761 (arm_gdb_arch_init): Don't initialize it.
5762 (_initialize_arm_tdep): Likewise.
5763
5764 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
5765
5766 * MAINTAINERS (tui): Maintainer of tui code.
5767
5768 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
5769
5770 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
5771 (i386-cygwin-tdep.o): Add dependencies.
5772 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
5773 * i386-cygwin-tdep.c: New file.
5774 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
5775 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
5776
5777 2003-03-20 Andrew Cagney <cagney@redhat.com>
5778
5779 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
5780 (handle_inferior_event): Remove code calling
5781 DYNAMIC_TRAMPOLINE_NEXTPC.
5782
5783 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
5784 already has a full path.
5785
5786 * main.c (gdb_main): Return 1.
5787 (captured_main): Call error to report an invalid interpreter.
5788
5789 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5790 * alpha-osf1-tdep.c: Include "gdb_string.h".
5791
5792 2003-03-19 J. Brobecker <brobecker@gnat.com>
5793
5794 Continuing work to convert the hppa targets to multiarch partial.
5795
5796 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
5797 method, now that hppa_push_dummy_frame has a conformant prototype.
5798 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
5799 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
5800 for the switch to multiarch partial.
5801
5802 2003-03-19 Kevin Buettner <kevinb@redhat.com>
5803
5804 * mdebugread.c (parse_symbol): For stEnd, we're done counting
5805 when iss is issNull.
5806
5807 2003-03-18 Kevin Buettner <kevinb@redhat.com>
5808
5809 * mips-tdep.c (mips_register_name): Fix fencepost error involving
5810 NUM_REGS bounds check.
5811
5812 2003-03-18 Kevin Buettner <kevinb@redhat.com>
5813
5814 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
5815 * mips-tdep.c (gdb_assert.h): Include.
5816 (mips_generic_reg_names, mips_processor_reg_names): Make static.
5817 (mips_register_name): Handle integer registers explicitly. Add
5818 bounds checking.
5819 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
5820 (mips_lsi33k_reg_names): Don't list integer registers; they're
5821 handled by mips_register_name() now.
5822 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
5823 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
5824 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
5825 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
5826 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
5827
5828 2003-03-18 Andrew Cagney <cagney@redhat.com>
5829
5830 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
5831 a void pointer.
5832 * gdbtypes.h (print_scalar_formatted): Update declaration.
5833 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
5834
5835 2003-03-18 J. Brobecker <brobecker@gnat.com>
5836
5837 * infrun.c (observer.h): Add #include.
5838 (normal_stop): Add call to observer_notify_normal_stop.
5839 * Makefile.in (infrun.o): Add dependency on observer.h.
5840
5841 2003-03-18 J. Brobecker <brobecker@gnat.com>
5842
5843 Continuing work to convert the hppa targets to multiarch partial.
5844 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
5845 parameter. Reformat comment.
5846 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
5847 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
5848 to match new profile.
5849
5850 2003-03-18 J. Brobecker <brobecker@gnat.com>
5851
5852 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
5853 appear to be working in any case.
5854
5855 2003-03-18 J. Brobecker <brobecker@gnat.com>
5856
5857 * observer.c (observer_test_first_observer): New static variable.
5858 (observer_test_second_observer): Likewise.
5859 (observer_test_third_observer): Likewise.
5860 (observer_test_first_notification_function): New static function.
5861 (observer_test_second_notification_function): Likewise.
5862 (observer_test_third_notification_function): Likewise.
5863
5864 2003-03-17 J. Brobecker <brobecker@gnat.com>
5865
5866 * hppa-tdep.c (gdb_assert.h): Add missing #include.
5867 * somsolib.c (gdb_assert.h): Likewise.
5868 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
5869 (somsolib.o): Likewise.
5870
5871 2003-03-17 Andrew Cagney <cagney@redhat.com>
5872
5873 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
5874 BFD. Simplify setting of di.endian.
5875
5876 2003-03-17 Andrew Cagney <cagney@redhat.com>
5877
5878 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
5879 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
5880
5881 From Elena Zannoni <ezannoni@redhat.com>
5882 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
5883 vector and floating-point parameters.
5884 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
5885 convention.
5886 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
5887
5888 2003-03-17 Fernando Nasser <fnasser@redhat.com>
5889
5890 * MAINTAINERS: Remove my name from several maintainership roles.
5891
5892 2003-03-17 Andrew Cagney <cagney@redhat.com>
5893
5894 Fix frame off-by-one bug.
5895 * frame-unwind.h (frame_this_id_ftype): Replace
5896 frame_unwind_id_ftype.
5897 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
5898 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
5899 with "prev_register".
5900 * frame-unwind.c (frame_unwind_find_by_pc): Return
5901 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
5902 comment.
5903 * dummy-frame.c (cached_find_dummy_frame): Delete function.
5904 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
5905 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
5906 (dummy_frame_unwind): Update.
5907 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5908 sentinel_frame_register_unwind.
5909 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
5910 (sentinel_frame_unwinder): Update.
5911 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
5912 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
5913 * frame.c (create_sentinel_frame): Update. Initialize
5914 "prologue_cache" instead of "unwind_cache".
5915 (frame_register_unwind): Call this frame's prev_register with the
5916 next frame and this frame's prologue cache.
5917 (get_prev_frame): Simplify. Always call prev frame's this_id with
5918 this frame and prev frame's prologue cache. Document that this
5919 call is shifted one to the left when compared to the
5920 frame_register_unwind call.
5921 (legacy_saved_regs_prev_register): Replace
5922 frame_saved_regs_register_unwind.
5923 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
5924 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
5925 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
5926 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
5927 (d10v_frame_unwind): Update.
5928 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
5929 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
5930 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
5931 "saved_regs" with "this_saved_regs".
5932
5933 2003-03-16 Andrew Cagney <cagney@redhat.com>
5934
5935 * frame.c (frame_pop): Don't call target_store_registers. Fix
5936 problem reported by Mark Kettenis.
5937
5938 2003-03-16 Mark Kettenis <kettenis@gnu.org>
5939
5940 * i386-tdep.c (i386_register_type): Renamed from
5941 i386_register_virtual_type. Adjust function signature.
5942 (i386_gdbarch_init): Set register_type instead of
5943 deprecated_max_register_raw_size,
5944 deprecated_max_register_virtual_size and register_virtual_type.
5945
5946 2003-03-14 Andrew Cagney <cagney@redhat.com>
5947
5948 * frame.c (get_prev_frame): When a legacy frame, always call
5949 legacy_get_prev_frame. Simplify unwind code using assumption that
5950 the unwinder is new.
5951 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
5952 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
5953 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
5954
5955 2003-03-14 Andrew Cagney <cagney@redhat.com>
5956
5957 * frame.c (get_saved_register): Delete function.
5958 * frame.h (get_saved_register): Delete declaration.
5959 * xstormy16-tdep.c: Update comment.
5960 * regcache.h: Update comments.
5961 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
5962 get_saved_register and extract_address, use
5963 frame_read_unsigned_register.
5964 (sparc_frame_saved_pc): Ditto.
5965 (sparc_get_saved_register): Instead of get_saved_register, use
5966 frame_register.
5967 (sparc_pop_frame): Ditto.
5968 * findvar.c: Update comments.
5969 (value_of_register): Call frame_register instead of
5970 get_saved_register.
5971 (value_from_register): Ditto.
5972 * config/sparc/tm-sparc.h: Update comment.
5973 * breakpoint.c: Update comment.
5974
5975 2003-03-14 Andrew Cagney <cagney@redhat.com>
5976
5977 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
5978 GET_SAVED_REGISTER.
5979 * gdbarch.h, gdbarch.c: Re-generate.
5980 * frame.h: Update comments.
5981 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5982 * x86-64-tdep.c (x86_64_init_abi): Update.
5983 * sparc-tdep.c (sparc_gdbarch_init): Update.
5984 * sh-tdep.c (sh_gdbarch_init): Update.
5985 * mips-tdep.c (mips_gdbarch_init): Update.
5986 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5987 * cris-tdep.c (cris_gdbarch_init): Update.
5988 * ia64-tdep.c (ia64_gdbarch_init): Update.
5989 * frame.c (frame_register): Update.
5990 (get_saved_register): Update.
5991 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
5992
5993 2003-03-13 Andrew Cagney <cagney@redhat.com>
5994
5995 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
5996 * gdbarch.h, gdbarch.c: Regenerate.
5997 * valops.c (hand_function_call): Update comment.
5998 * stack.c (return_command): Update comment.
5999 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
6000 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
6001 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6002 * x86-64-tdep.c (x86_64_init_abi): Update.
6003 * vax-tdep.c (vax_gdbarch_init): Update.
6004 * v850-tdep.c (v850_gdbarch_init): Update.
6005 * sparc-tdep.c (sparc_gdbarch_init): Update.
6006 * sh-tdep.c (sh_gdbarch_init): Update.
6007 * s390-tdep.c (s390_gdbarch_init): Update.
6008 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6009 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6010 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6011 * mips-tdep.c (mips_gdbarch_init): Update.
6012 * mcore-tdep.c (mcore_gdbarch_init): Update.
6013 * m68k-tdep.c (m68k_gdbarch_init): Update.
6014 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6015 * ia64-tdep.c (ia64_gdbarch_init): Update.
6016 * i386-tdep.c (i386_gdbarch_init): Update.
6017 * hppa-tdep.c (hppa_gdbarch_init): Update.
6018 * h8300-tdep.c (h8300_gdbarch_init): Update.
6019 * frv-tdep.c (frv_gdbarch_init): Update.
6020 * cris-tdep.c (cris_gdbarch_init): Update.
6021 * avr-tdep.c (avr_gdbarch_init): Update.
6022 * arm-tdep.c (arm_gdbarch_init): Update.
6023 * alpha-tdep.c (alpha_gdbarch_init): Update.
6024
6025 2003-03-13 Andrew Cagney <cagney@redhat.com>
6026
6027 * frame.c (legacy_frame_p): New function.
6028 (get_prev_frame): Use legacy_frame_p.
6029 * frame.h (legacy_frame_p): Declare.
6030
6031 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
6032
6033 * MAINTAINERS (write after approval): Alphabetically
6034 listing corrected.
6035
6036 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
6037
6038 * MAINTAINERS (write after approval): Add myself.
6039
6040 2003-03-12 Andrew Cagney <cagney@redhat.com>
6041
6042 * frame.c (get_prev_frame): Rename the frame parameter to
6043 "this_frame".
6044 (get_next_frame, legacy_get_prev_frame): Ditto.
6045
6046 2003-03-12 Andrew Cagney <cagney@redhat.com>
6047
6048 * frame.c (get_current_frame): Check target_has_registers before
6049 checking target_has_stack.
6050 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
6051 instead of deprecated_selected_frame.
6052 * findvar.c (value_of_register): Pass "frame", not
6053 deprecated_selected_frame, to value_of_builtin_reg.
6054
6055 2003-03-12 Andrew Cagney <cagney@redhat.com>
6056
6057 * regcache.c (regcache_cooked_write_signed): New function.
6058 (regcache_cooked_write_unsigned): New function.
6059 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
6060 (regcache_cooked_read_signed): Fix regnum in range assertion.
6061 * regcache.h (regcache_cooked_write_signed): Declare.
6062 (regcache_cooked_write_unsigned): Declare.
6063
6064 2003-03-12 Andrew Cagney <cagney@redhat.com>
6065
6066 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6067 * gdbarch.h, gdbarch.c: Re-generate.
6068 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6069 * x86-64-tdep.h: Update.
6070 * x86-64-tdep.c (x86_64_init_abi): Update.
6071 * v850-tdep.c (v850_gdbarch_init): Update.
6072 * sparc-tdep.c (sparc_gdbarch_init): Update.
6073 * sh-tdep.c (sh_gdbarch_init): Update.
6074 * s390-tdep.c (s390_gdbarch_init): Update.
6075 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6076 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6077 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6078 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6079 * mips-tdep.c (mips_gdbarch_init): Update.
6080 * mcore-tdep.c (mcore_gdbarch_init): Update.
6081 * m68k-tdep.c (m68k_gdbarch_init): Update.
6082 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6083 * ia64-tdep.c (ia64_gdbarch_init): Update.
6084 * i386-tdep.c (i386_gdbarch_init): Update.
6085 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6086 * hppa-tdep.c (hppa_gdbarch_init): Update.
6087 * h8300-tdep.c (h8300_gdbarch_init): Update.
6088 * frv-tdep.c (frv_gdbarch_init): Update.
6089 * cris-tdep.c (cris_gdbarch_init): Update.
6090 * avr-tdep.c (avr_gdbarch_init): Update.
6091 * arm-tdep.c (arm_gdbarch_init): Update.
6092 * alpha-tdep.c (alpha_gdbarch_init): Update.
6093 * sh-tdep.c (sh_init_extra_frame_info): Update.
6094 (sh64_init_extra_frame_info): Update.
6095 * ns32knbsd-nat.c (frame_num_args): Update.
6096 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6097 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6098 (xstormy16_frame_chain_valid): Update.
6099 * vax-tdep.c (vax_saved_pc_after_call): Update.
6100 * v850-tdep.c (v850_frame_chain): Update.
6101 (v850_pop_frame): Update.
6102 (v850_init_extra_frame_info): Update.
6103 * sparc-tdep.c (setup_arbitrary_frame): Update.
6104 * ns32k-tdep.c (umax_frame_num_args): Update.
6105 * s390-tdep.c (s390_pop_frame_regular): Update.
6106 * mn10300-tdep.c (mn10300_frame_chain): Update.
6107 (mn10300_pop_frame_regular): Update.
6108 (mn10300_init_extra_frame_info): Update.
6109 * mips-tdep.c (mips_init_frame_pc_first): Update.
6110 (mips_frame_chain): Update.
6111 (mips_pop_frame): Update.
6112 * mcore-tdep.c (mcore_frame_chain): Update.
6113 (mcore_pop_frame): Update.
6114 (mcore_init_extra_frame_info): Update.
6115 * arch-utils.c (init_frame_pc_default): Update.
6116 * m68k-tdep.c (isi_frame_num_args): Update.
6117 (delta68_frame_num_args): Update.
6118 (news_frame_num_args): Update.
6119 * ia64-tdep.c (ia64_pop_frame_regular): Update.
6120 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6121 (alpha_frame_chain): Update.
6122 (alpha_pop_frame): Update.
6123 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
6124 (hppa_init_extra_frame_info): Update.
6125 (hppa_frame_chain): Update.
6126 (hppa_frame_chain_valid): Update.
6127 * cris-tdep.c (cris_init_extra_frame_info): Update.
6128 * avr-tdep.c (avr_init_extra_frame_info): Update.
6129 * arm-tdep.c (arm_frame_chain_valid): Update.
6130 (arm_init_extra_frame_info): Update.
6131 (arm_pop_frame): Update.
6132 * frame.c (frame_pc_unwind): Update.
6133 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
6134 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6135 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6136 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
6137 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
6138 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
6139
6140 2003-03-12 Andrew Cagney <cagney@redhat.com>
6141
6142 Eliminate the need for POP_FRAME.
6143 * frame.c (do_frame_unwind_register): New function.
6144 (frame_pop): When no POP_FRAME, pop the frame using register
6145 unwind and a scratch regcache.
6146 (frame_saved_regs_pop): Delete function.
6147 (trad_frame_unwinder): Update.
6148 * d10v-tdep.c (d10v_frame_pop): Delete function.
6149 (d10v_frame_unwind): Update.
6150 * sentinel-frame.c (sentinel_frame_pop): Delete function.
6151 (sentinel_frame_unwinder): Update.
6152 * dummy-frame.c (dummy_frame_pop): Delete function.
6153 (dummy_frame_unwind): Update.
6154 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
6155 (struct frame_unwind): Update.
6156
6157 2003-03-11 Kevin Buettner <kevinb@redhat.com>
6158
6159 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
6160 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
6161 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
6162 Do range checks on register number obtained from debugging info.
6163 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
6164 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
6165 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
6166 mapping function.
6167 (do_fp_register_row): Fix typo which caused double type to be
6168 used when attempting to unpack a float.
6169
6170 2003-03-11 J. Brobecker <brobecker@gnat.com>
6171
6172 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
6173
6174 2003-03-11 Andrew Cagney <cagney@redhat.com>
6175
6176 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
6177 frame. Problem found by Corinna Vinschen.
6178
6179 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
6180
6181 * doublest.c (floatformat_from_length): Accept also
6182 the real size of 'long double' type.
6183
6184 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
6185
6186 From Klee Dienes <kdienes@apple.com>:
6187 * breakpoint.c (bpstat_copy): Copy the command lines as well
6188 as the old value, to match what is freed in bpstat_clear.
6189
6190 2003-03-10 David Carlton <carlton@math.stanford.edu>
6191
6192 * minsyms.c (add_minsym_to_hash_table): Replace
6193 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6194 (compare_minimal_symbols, compact_minimal_symbols)
6195 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
6196 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
6197 of DEPRECATED_SYMBOL_MATCHES_NAME.
6198 (lookup_minimal_symbol_solib_trampoline): Ditto.
6199
6200 2003-03-10 Andrew Cagney <cagney@redhat.com>
6201
6202 * regcache.h (regcache_cooked_read_ftype): Define.
6203 (regcache_save, regcache_restore): Add a cooked_read parameter.
6204 * regcache.c (regcache_save, regcache_restore): Update.
6205 (do_cooked_read): New function.
6206 (regcache_cpy): Pass do_cooked_read to regcache_save and
6207 regcache_restore.
6208
6209 2003-03-10 Andrew Cagney <cagney@redhat.com>
6210
6211 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6212 * gdbarch.h, gdbarch.c: Re-generate.
6213 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6214 * x86-64-tdep.h: Update.
6215 * x86-64-tdep.c (x86_64_init_abi): Update.
6216 * v850-tdep.c (v850_gdbarch_init): Update.
6217 * sparc-tdep.c (sparc_gdbarch_init): Update.
6218 * sh-tdep.c (sh_gdbarch_init): Update.
6219 * s390-tdep.c (s390_gdbarch_init): Update.
6220 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6221 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6222 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6223 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6224 * mips-tdep.c (mips_gdbarch_init): Update.
6225 * mcore-tdep.c (mcore_gdbarch_init): Update.
6226 * m68k-tdep.c (m68k_gdbarch_init): Update.
6227 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6228 * ia64-tdep.c (ia64_gdbarch_init): Update.
6229 * i386-tdep.c (i386_gdbarch_init): Update.
6230 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6231 * hppa-tdep.c (hppa_gdbarch_init): Update.
6232 * h8300-tdep.c (h8300_gdbarch_init): Update.
6233 * frv-tdep.c (frv_gdbarch_init): Update.
6234 * cris-tdep.c (cris_gdbarch_init): Update.
6235 * avr-tdep.c (avr_gdbarch_init): Update.
6236 * arm-tdep.c (arm_gdbarch_init): Update.
6237 * alpha-tdep.c (alpha_gdbarch_init): Update.
6238 * sh-tdep.c (sh_init_extra_frame_info): Update.
6239 (sh64_init_extra_frame_info): Update.
6240 * ns32knbsd-nat.c (frame_num_args): Update.
6241 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6242 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6243 (xstormy16_frame_chain_valid): Update.
6244 * vax-tdep.c (vax_saved_pc_after_call): Update.
6245 * v850-tdep.c (v850_frame_chain): Update.
6246 (v850_pop_frame): Update.
6247 (v850_init_extra_frame_info): Update.
6248 * sparc-tdep.c (setup_arbitrary_frame): Update.
6249 * ns32k-tdep.c (umax_frame_num_args): Update.
6250 * s390-tdep.c (s390_pop_frame_regular): Update.
6251 * mn10300-tdep.c (mn10300_frame_chain): Update.
6252 (mn10300_pop_frame_regular): Update.
6253 (mn10300_init_extra_frame_info): Update.
6254 * mips-tdep.c (mips_init_frame_pc_first): Update.
6255 (mips_frame_chain): Update.
6256 (mips_pop_frame): Update.
6257 * mcore-tdep.c (mcore_frame_chain): Update.
6258 (mcore_pop_frame): Update.
6259 (mcore_init_extra_frame_info): Update.
6260 * arch-utils.c (init_frame_pc_default): Update.
6261 * m68k-tdep.c (isi_frame_num_args): Update.
6262 (delta68_frame_num_args): Update.
6263 (news_frame_num_args): Update.
6264 * ia64-tdep.c (ia64_pop_frame_regular): Update.
6265 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6266 (alpha_frame_chain): Update.
6267 (alpha_pop_frame): Update.
6268 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
6269 (hppa_init_extra_frame_info): Update.
6270 (hppa_frame_chain): Update.
6271 (hppa_frame_chain_valid): Update.
6272 * cris-tdep.c (cris_init_extra_frame_info): Update.
6273 * avr-tdep.c (avr_init_extra_frame_info): Update.
6274 * arm-tdep.c (arm_frame_chain_valid): Update.
6275 (arm_init_extra_frame_info): Update.
6276 (arm_pop_frame): Update.
6277 * frame.c (frame_pc_unwind): Update.
6278 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
6279 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6280 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6281 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
6282 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
6283 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
6284
6285 2003-03-10 Andrew Cagney <cagney@redhat.com>
6286
6287 * gdbarch.sh (gdbarch_unwind_pc): New method.
6288 * gdbarch.h, gdbarch.c: Regenerate.
6289 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
6290 but use read_pc and FRAME_SAVED_PC as fall backs.
6291 (frame_saved_regs_pc_unwind): Delete function.
6292 (trad_frame_unwinder): Update.
6293 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
6294 (struct frame_unwind): Update.
6295 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
6296 (dummy_frame_unwind): Update.
6297 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
6298 (sentinel_frame_unwinder): Update.
6299 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
6300 (d10v_frame_unwind): Update.
6301 (d10v_unwind_pc): New function.
6302 (d10v_gdbarch_init): Set unwind_pc.
6303
6304 2003-03-10 Andrew Cagney <cagney@redhat.com>
6305
6306 * gdbarch.h: Re-generate.
6307
6308 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
6309 PC.
6310 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
6311 the PC register.
6312
6313 2003-03-08 Mark Kettenis <kettenis@gnu.org>
6314
6315 * gdbarch.sh (save_dummy_frame_tos): Add comment.
6316
6317 2003-03-08 Andrew Cagney <cagney@redhat.com>
6318
6319 * cli-out.c: Update copyright.
6320 (cli_out_data): Define typedef. Use instead of ui_out_data.
6321
6322 2003-03-08 Andrew Cagney <cagney@redhat.com>
6323
6324 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
6325 the result.
6326
6327 2003-03-07 Andrew Cagney <cagney@redhat.com>
6328
6329 * gdbarch.sh: Don't generate two macro definitions when an
6330 undefined macro taking no arguments.
6331 * gdbarch.h: Regenerate.
6332
6333 2002-03-07 Michal Ludvig <mludvig@suse.cz>
6334
6335 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
6336 (x86_64_unwind_dummy_id): New functions.
6337 (x86_64_init_abi): Register these two new functions.
6338
6339 2003-03-07 Michal Ludvig <mludvig@suse.cz>
6340
6341 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
6342 (x86_64_skip_prologue): Move prologue detection to
6343 separate function.
6344 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
6345
6346 2003-03-05 Andrew Cagney <cagney@redhat.com>
6347
6348 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
6349 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
6350 * frame.c (get_prev_frame): Restructure the frame ID unwind code
6351 to use unwind_dummy_id when a dummy frame.
6352 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
6353 predicate.
6354 * gdbarch.h, gdbarch.c: Regneerate.
6355
6356 2003-03-05 Andrew Cagney <cagney@redhat.com>
6357
6358 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
6359 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
6360 Do not use d10v_read_sp or d10v_read_fp when obtaining register
6361 values.
6362
6363 2003-03-05 Andrew Cagney <cagney@redhat.com>
6364
6365 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
6366 (struct d10v_unwind_cache): Delete field "frameless". Replace
6367 "next_addr" with "sp_offset". Add "r11_offset".
6368 (d10v_frame_unwind_cache): Update.
6369 (prologue_find_regs): Update. When "mv r11, sp", save the
6370 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
6371 RN was saved in r11_offset.
6372
6373 2003-03-05 Andrew Cagney <cagney@redhat.com>
6374
6375 * frame.c (deprecated_update_frame_pc_hack): Also update the the
6376 cached PC value in the next frame.
6377
6378 2003-03-05 Andrew Cagney <cagney@redhat.com>
6379
6380 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
6381 "id_unwind_cache" with "id".
6382 (frame_id_unwind): Delete declaration.
6383 * frame.c (frame_id_unwind): Delete function.
6384 (get_prev_frame): Call the frame id unwind method directly. Store
6385 the returned next frame's ID value in NEXT_FRAME. Note that there
6386 is a problem with the wrong unwind ID being called with the wrong
6387 unwind cache.
6388
6389 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
6390
6391 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
6392
6393 2003-03-05 James Ingham <jingham@apple.com>
6394 Daniel Jacobowitz <drow@mvista.com>
6395
6396 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
6397 (auto_cp_abi): New variable.
6398 (current_cp_abi, num_cp_abis): Make static.
6399 (CP_ABI_MAX): Define.
6400 (cp_abis): Turn into an array.
6401 (value_virtual_fn_field): Fix formatting.
6402 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
6403 takes a pointer.
6404 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
6405 (list_cp_abis, _initialize_cp_abi): New functions.
6406 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
6407 declarations for cp_abis, num_cp_abis, current_cp_abi, and
6408 switch_to_cp_abi. Update prototype for register_cp_abi.
6409 * Makefile.in (cp-abi.o): Update dependencies.
6410 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
6411 instead of switch_to_cp_abi.
6412 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
6413 register_cp_abi.
6414 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
6415 register_cp_abi.
6416 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
6417
6418 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
6419
6420 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
6421 * dwarf2loc.c: Include "regcache.h".
6422 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
6423 register_size.
6424 * Makefile.in (dwarf2loc.o): Update dependencies.
6425
6426 2003-03-04 Theodore A. Roth <troth@openavr.org>
6427
6428 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
6429 number of io registers reported by remote target is not a multiple of
6430 step.
6431
6432 2003-03-04 David Carlton <carlton@math.stanford.edu>
6433
6434 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
6435 (lookup_symbol_aux_psymtabs): Update call to
6436 lookup_partial_symbol.
6437 (lookup_transparent_type, find_main_psymtab)
6438 (make_symbol_overload_list): Ditto.
6439
6440 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
6441
6442 * MAINTAINERS (Write after approval): Update my email address.
6443
6444 2003-03-03 Andrew Cagney <cagney@redhat.com>
6445
6446 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
6447 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
6448 predicate. Replace MAX_REGISTER_RAW_SIZE.
6449 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
6450 MAX_REGISTER_VIRTUAL_SIZE.
6451 * regcache.c (legacy_max_register_raw_size): New function.
6452 (legacy_max_register_virtual_size): New function.
6453 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
6454 (MAX_REGISTER_RAW_SIZE): Define.
6455 (legacy_max_register_raw_size): Declare.
6456 (legacy_max_register_virtual_size): Declare.
6457 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6458 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
6459 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6460 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
6461 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6462 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
6463 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6464 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6465 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
6466 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6467 * vax-tdep.c (vax_gdbarch_init): Update.
6468 * v850-tdep.c (v850_gdbarch_init): Update.
6469 * sparc-tdep.c (sparc_gdbarch_init): Update.
6470 * sh-tdep.c (sh_gdbarch_init): Update.
6471 * s390-tdep.c (s390_gdbarch_init): Update.
6472 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6473 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6474 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6475 * mips-tdep.c (mips_gdbarch_init): Update.
6476 * mcore-tdep.c (mcore_gdbarch_init): Update.
6477 * m68k-tdep.c (m68k_gdbarch_init): Update.
6478 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6479 * ia64-tdep.c (ia64_gdbarch_init): Update.
6480 * i386-tdep.c (i386_gdbarch_init): Update.
6481 * hppa-tdep.c (hppa_gdbarch_init): Update.
6482 * h8300-tdep.c (h8300_gdbarch_init): Update.
6483 * frv-tdep.c (frv_gdbarch_init): Update.
6484 * cris-tdep.c (cris_gdbarch_init): Update.
6485 * avr-tdep.c (avr_gdbarch_init): Update.
6486 * arm-tdep.c (arm_gdbarch_init): Update.
6487 * alpha-tdep.c (alpha_gdbarch_init): Update.
6488 * d10v-tdep.c (d10v_gdbarch_init): Do not set
6489 max_register_raw_size or max_register_virtual_size.
6490
6491 2003-03-03 David Carlton <carlton@math.stanford.edu>
6492
6493 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
6494 SYMBOL_MATCHES_NAME, add comment.
6495 (SYMBOL_MATCHES_NATURAL_NAME): New.
6496 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
6497 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
6498 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
6499 * symtab.c (lookup_partial_symbol): Use
6500 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
6501 unhelpful comment.
6502 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
6503 SYMBOL_MATCHES_NAME.
6504 Fix for PR c++/33.
6505
6506 2003-03-03 David Carlton <carlton@math.stanford.edu>
6507
6508 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
6509 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
6510 by regexp matching against SYMBOL_NATURAL_NAME.
6511
6512 2003-03-03 David Carlton <carlton@math.stanford.edu>
6513
6514 * linespec.c (find_method): Extract code into collect_methods.
6515 (collect_methods): New.
6516
6517 2003-03-02 Mark Kettenis <kettenis@gnu.org>
6518
6519 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
6520 get_frame_base.
6521
6522 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
6523 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6524
6525 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
6526
6527 * arch-utils.c (generic_register_byte): Fix to use the loop index
6528 and not regnum when summing the size of all registers up to regnum.
6529
6530 2003-03-01 Andrew Cagney <cagney@redhat.com>
6531
6532 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
6533 FRAME_INIT_SAVED_REGS.
6534 * gdbarch.h, gdbarch.c: Regenerate.
6535 * stack.c (frame_info): Update.
6536 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
6537 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
6538 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
6539 * ns32k-tdep.c (ns32k_pop_frame): Update.
6540 * mips-tdep.c (mips_pop_frame): Update.
6541 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
6542 * ia64-tdep.c (ia64_frame_chain): Update.
6543 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
6544 (ia64_frameless_function_invocation): Update.
6545 (ia64_init_extra_frame_info): Update.
6546 (ia64_pop_frame_regular): Update.
6547 * frame.h (struct frame_info): Update comment.
6548 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
6549 * frame.c (frame_saved_regs_register_unwind): Update.
6550 (frame_saved_regs_register_unwind): Update.
6551 (deprecated_generic_get_saved_register): Update.
6552 * cris-tdep.c: Update comment.
6553 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
6554 Rename macro.
6555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6556 * x86-64-tdep.c (x86_64_init_abi): Update.
6557 * vax-tdep.c (vax_gdbarch_init): Update.
6558 * v850-tdep.c (v850_gdbarch_init): Update.
6559 * sparc-tdep.c (sparc_gdbarch_init): Update.
6560 * sh-tdep.c (sh_gdbarch_init): Update.
6561 * s390-tdep.c (s390_gdbarch_init): Update.
6562 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6563 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6564 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6565 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6566 * mips-tdep.c (mips_gdbarch_init): Update.
6567 * mcore-tdep.c (mcore_gdbarch_init): Update.
6568 * m68k-tdep.c (m68k_gdbarch_init): Update.
6569 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6570 * ia64-tdep.c (ia64_gdbarch_init): Update.
6571 * i386-tdep.c (i386_gdbarch_init): Update.
6572 * frv-tdep.c (frv_gdbarch_init): Update.
6573 * avr-tdep.c (avr_gdbarch_init): Update.
6574 * arm-tdep.c (arm_gdbarch_init): Update.
6575 * alpha-tdep.c (alpha_gdbarch_init): Update.
6576
6577 2003-03-01 Andrew Cagney <cagney@redhat.com>
6578
6579 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
6580 option enum and switch. When no windows, set the interpreter to
6581 INTERP_CONSOLE.
6582
6583 2003-03-01 Andrew Cagney <cagney@redhat.com>
6584
6585 * main.c (captured_main): Replace magic option characters with an
6586 enum.
6587
6588 2003-03-01 Andrew Cagney <cagney@redhat.com>
6589
6590 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
6591 INIT_EXTRA_FRAME_INFO.
6592 * gdbarch.h, gdbarch.c: Regenerate.
6593 * arm-tdep.c: Update comments.
6594 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
6595 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
6596 * frame.h, avr-tdep.c: Ditto.
6597 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
6598 (create_new_frame, legacy_get_prev_frame): Ditto.
6599 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
6600 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
6601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
6602 deprecated_init_extra_frame_info instead of init_extra_frame_info.
6603 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6604 * v850-tdep.c (v850_gdbarch_init): Ditto.
6605 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6606 * sh-tdep.c (sh_gdbarch_init): Ditto.
6607 * s390-tdep.c (s390_gdbarch_init): Ditto.
6608 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
6609 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6610 * mips-tdep.c (mips_gdbarch_init): Ditto.
6611 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6612 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6613 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6614 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
6615 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6616 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6617 * frv-tdep.c (frv_gdbarch_init): Ditto.
6618 * cris-tdep.c (cris_gdbarch_init): Ditto.
6619 * avr-tdep.c (avr_gdbarch_init): Ditto.
6620 * arm-tdep.c (arm_gdbarch_init): Ditto.
6621 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6622 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6623
6624 2003-03-01 Andrew Cagney <cagney@redhat.com>
6625
6626 * gdbarch.sh (register_type): New function with predicate.
6627 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
6628 * gdbarch.h, gdbarch.c: Re-generate.
6629 * arch-utils.c (generic_register_byte): Use generic_register_size.
6630 (generic_register_size): When available, use
6631 gdbarch_register_type.
6632 * regcache.c (init_regcache_descr): When available, initialize the
6633 register type array using gdbarch_register_type. If the
6634 architecture supplies gdbarch_register_type, do not use the legacy
6635 regcache layout.
6636 * d10v-tdep.c (d10v_register_type): Replace
6637 d10v_register_virtual_type.
6638 (d10v_gdbarch_init): Set register_type instead of
6639 register_virtual_type.
6640
6641 2003-03-01 Andrew Cagney <cagney@redhat.com>
6642
6643 * Makefile.in (ax-gdb.o): Update dependencies.
6644 * ax-gdb.c: Include "regcache.h".
6645 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
6646 * findvar.c (value_of_register): Ditto.
6647 * infcmd.c (default_print_registers_info): Ditto.
6648
6649 2003-03-01 Mark Kettenis <kettenis@gnu.org>
6650
6651 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
6652 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6653
6654 2003-03-01 Mark Kettenis <kettenis@gnu.org>
6655
6656 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
6657 of STREQ.
6658
6659 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
6660
6661 * Makefile.in (dwarf2loc.o): Update dependencies.
6662 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
6663 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
6664 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
6665 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
6666 (locexpr_tracepoint_var_ref): New function.
6667 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
6668
6669 2003-02-28 Andrew Cagney <cagney@redhat.com>
6670
6671 * regcache.c (register_size): New function.
6672 * regcache.h (register_size): Declare
6673 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
6674 max_register_size instead of MAX_REGISTER_RAW_SIZE.
6675
6676 2003-02-28 David Carlton <carlton@math.stanford.edu>
6677
6678 * linespec.c (decode_compound): Extract code into find_method.
6679 (find_method): New.
6680
6681 2003-02-28 J. Brobecker <brobecker@gnat.com>
6682
6683 * Makefile.in: Add rules to build and link in observer.o.
6684
6685 2003-02-27 J. Brobecker <brobecker@gnat.com>
6686
6687 * observer.c: Minor comments edits.
6688
6689 2003-02-27 J. Brobecker <brobecker@gnat.com>
6690
6691 * observer.h, observer.c: New file.
6692
6693 2003-02-27 Andrew Cagney <cagney@redhat.com>
6694
6695 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
6696
6697 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
6698
6699 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
6700 (M6812_OP_STS_EXT): Likewise.
6701 (m6811_prologue): Use the above to recognize prologue.
6702 (m6812_prologue): Likewise.
6703
6704 2003-02-27 David Carlton <carlton@math.stanford.edu>
6705
6706 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
6707 SYMBOL_PRINT_NAME.
6708 (compare_psymbols): Ditto.
6709 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
6710
6711 2003-02-27 Michael Snyder <msnyder@redhat.com>
6712
6713 * f-lang.c (build_fortran_types): New function.
6714 (_initialize_f_language): Gdbarch-register built-in fortran types.
6715 * doublest.c (extract_floating): Fix warning text.
6716
6717 2003-02-27 Andrew Cagney <cagney@redhat.com>
6718
6719 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
6720 predicate. Replaces PUSH_DUMMY_FRAME.
6721 * gdbarch.h, gdbarch.c: Regnerate.
6722 * valops.c (hand_function_call): Update. Call
6723 generic_push_dummy_frame directly.
6724 * vax-tdep.c (vax_gdbarch_init): Update.
6725 * sparc-tdep.c (sparc_gdbarch_init): Update.
6726 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6727 * m68k-tdep.c (m68k_gdbarch_init): Update.
6728 * hppa-tdep.c (hppa_gdbarch_init): Update.
6729 * alpha-tdep.c (alpha_gdbarch_init): Update.
6730 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
6731 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
6732 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
6733 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
6734 push_dummy_frame to generic_push_dummy_frame.
6735 * v850-tdep.c (v850_gdbarch_init): Ditto.
6736 * sh-tdep.c (sh_gdbarch_init): Ditto.
6737 * s390-tdep.c (s390_gdbarch_init): Ditto.
6738 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6739 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6740 * mips-tdep.c (mips_gdbarch_init): Ditto.
6741 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6742 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6743 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6744 * i386-tdep.c (i386_gdbarch_init): Ditto.
6745 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6746 * frv-tdep.c (frv_gdbarch_init): Ditto.
6747 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6748 * cris-tdep.c (cris_gdbarch_init): Ditto.
6749 * avr-tdep.c (avr_gdbarch_init): Ditto.
6750 * arm-tdep.c (arm_gdbarch_init): Ditto.
6751
6752 2003-02-26 Kevin Buettner <kevinb@redhat.com>
6753
6754 * mips-tdep.c (show_mips_abi): New function.
6755 (_initialize_mips_tdep): Use show_mips_abi() to implement the
6756 command ``show mips abi''.
6757
6758 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
6759
6760 From Elena Zannoni <ezannoni@redhat.com>
6761 * dbxread.c (process_one_symbol): Only record line 0 if one or
6762 more sline entries have been seen for the function.
6763
6764 2003-02-26 Michael Chastain <mec@shout.net>
6765
6766 * configure: Regenerate with autoconf 000227.
6767
6768 2003-02-26 Michael Chastain <mec@shout.net>
6769
6770 Close PR build/660.
6771 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
6772 for old libc5/glibc.
6773 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
6774
6775 2003-02-26 Kris Warkentin <kewarken@qnx.com>
6776
6777 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
6778 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
6779
6780 2003-02-26 Michael Chastain <mec@shout.net>
6781
6782 * configure.in: New variable HAVE_UINTPTR_T.
6783 * configure, config.in: Regenerated.
6784
6785 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
6786
6787 Fix PR build/1097.
6788 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
6789
6790 2003-02-25 Andrew Cagney <cagney@redhat.com>
6791
6792 * frame.c (get_prev_frame): Add comment on check for
6793 inside_entry_func. Only check for inside_entry_file when not a
6794 dummy and not a sentinel. Check that the new frame is not inner
6795 to the old frame.
6796
6797 2003-02-25 Andrew Cagney <cagney@redhat.com>
6798
6799 * frame.c (frame_debug): New variable.
6800 (_initialize_frame): Add "set/show debug frame" command.
6801 (get_prev_frame): When frame_debug, print reason why unwind
6802 failed.
6803
6804 2003-02-25 Michael Chastain <mec@shout.net>
6805
6806 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
6807 to avoid uintptr_t definition problems.
6808
6809 2003-02-25 David Carlton <carlton@math.stanford.edu>
6810
6811 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
6812 (SYMBOL_LINKAGE_NAME): Ditto.
6813 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
6814 SYMBOL_LINKAGE_NAME.
6815 (struct general_symbol_info): Expand comment.
6816 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
6817 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
6818 (SYMBOL_MATCHES_REGEXP): Ditto.
6819 * symtab.c (symbol_natural_name): New function.
6820 * objfiles.h: Replace all uses of SYMBOL_NAME by
6821 DEPRECATED_SYMBOL_NAME.
6822 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
6823 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
6824 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
6825 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
6826 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
6827 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
6828 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
6829 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
6830 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
6831 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
6832 * ada-exp.y: Ditto.
6833 * ada-exp.y: Update copyright.
6834 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
6835 * cp-valprint.c: Ditto.
6836
6837 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
6838
6839 * infptrace.c (detach): Do not flag error if ptrace detach fails
6840 and errno is set to ESRCH.
6841
6842 2003-02-24 Andrew Cagney <cagney@redhat.com>
6843
6844 * infptrace.c (udot_info): Change type of udot_off to long. Use
6845 paddr when printing udot_off's value.
6846
6847 2003-02-24 David Carlton <carlton@math.stanford.edu>
6848
6849 * symtab.c (make_symbol_overload_list): Only read in partial
6850 symtabs containing a matching partial symbol.
6851
6852 2003-02-24 David Carlton <carlton@math.stanford.edu>
6853
6854 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
6855 do the comparison, not strcmp.
6856 * symfile.c (compare_psymbols): Ditto.
6857 * defs.h: Declare strcmp_iw_ordered.
6858 * utils.c (strcmp_iw_ordered): New function.
6859
6860 2003-02-24 Jim Blandy <jimb@redhat.com>
6861
6862 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
6863 support, shared libs): Remove my name from here, to better reflect
6864 reality.
6865
6866 2003-02-24 Kris Warkentin <kewarken@qnx.com>
6867
6868 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
6869 (target_ops): Add to_have_continuable_watchpoint.
6870 * target.c (update_current_target): Add INHERIT line for
6871 to_have_continuable_watchpoint.
6872 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
6873 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
6874 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
6875 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
6876
6877 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
6878
6879 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
6880 maintainership.
6881
6882 2003-02-24 Kris Warkentin <kewarken@qnx.com>
6883
6884 * solib.c (solib_open): Call target defined search function after
6885 failing with solib-search-path.
6886 * solist.h (target_so_ops): Add find_and_open_solib function hook and
6887 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
6888
6889 2003-02-24 Kris Warkentin <kewarken@qnx.com>
6890
6891 * MAINTAINERS: Add myself to Write After section.
6892
6893 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
6894
6895 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
6896
6897 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
6898
6899 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
6900 (m68hc11_add_reggroups): New function.
6901 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
6902 (m68hc11_gdbarch_init): Install the reggroups.
6903 (_initialize_m68hc11_tdep): Initialize them.
6904
6905 2003-02-21 James E Wilson <wilson@tuliptree.org>
6906
6907 * MAINTAINERS: Update my email address.
6908
6909 2003-02-21 David Carlton <carlton@math.stanford.edu>
6910
6911 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
6912
6913 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
6914
6915 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
6916 * symtab.h: Add opaque declarations of struct axs_value and
6917 struct agent_expr.
6918 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
6919 (struct location_funcs): New type.
6920 (struct symbol): Add "loc" to aux_value.
6921 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
6922 * dwarf2read.c: Include "dwarf2expr.h".
6923 (dwarf2_symbol_mark_computed): New function.
6924 (read_func_scope): Use it.
6925 (var_decode_location): New function.
6926 (new_symbol): Use it.
6927 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
6928
6929 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
6930 (dwarf2expr_h, dwarf2loc_h): New variables.
6931 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
6932 (dwarf2expr.o, dwarf2loc.o): New rules.
6933 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
6934 * buildsym.c (finish_block): Handle LOC_COMPUTED and
6935 LOC_COMPUTED_ARG.
6936 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6937 * m2-exp.y (yylex): Likewise.
6938 * printcmd.c (address_info, print_frame_args): Likewise.
6939 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
6940 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6941 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
6942 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
6943 * symtab.c (lookup_block_symbol): Likewise.
6944
6945 2003-02-20 Adam Fedor <fedor@gnu.org>
6946
6947 * symtab.h: Remove objc_specific struct
6948 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
6949 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
6950 Have language_objc use cplus_specific struct.
6951
6952 2003-02-20 Tom Tromey <tromey@redhat.com>
6953
6954 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
6955 TYPE_NAME, when printing a String value. PR java/1075.
6956
6957 2003-02-20 Adam Fedor <fedor@gnu.org>
6958
6959 * objc-lang.h (find_methods): Remove declaration.
6960 * objc-lang.c (find_methods): Make static.
6961
6962 2003-02-20 Christopher Faylor <cgf@redhat.com>
6963
6964 * win32-nat.c (get_image_name): Check return value from
6965 ReadProcessMemory.
6966 (child_xfer_memory): Ditto.
6967
6968 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
6969
6970 * configure.in (TARGET_SYSTEM_ROOT): Set default to
6971 ${exec_prefix}/${target_alias}/sys-root. Match explicit
6972 '${exec_prefix}' (in addition to the expansion thereof) as
6973 relocatable.
6974 * configure: Rebuilt.
6975
6976 2003-02-20 David Carlton <carlton@math.stanford.edu>
6977
6978 * symtab.c (search_symbols): Revert the search_symbols part of my
6979 2002-12-23 patch. Add comment.
6980
6981 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
6982
6983 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
6984 * dbxread.c (elfstab_build_psymtabs): Don't call
6985 install_minimal_symbols.
6986 (stabsect_build_psymtabs): Likewise.
6987 * elfread.c (elf_symfile_read): Call install_minimal_symbols
6988 earlier.
6989 * somread.c (som_symfile_read): Call install_minimal_symbols
6990 and do_cleanups earlier.
6991 * nlmread.c (nlm_symfile_read): Likewise.
6992 * mdebugread.c (elfmdebug_build_psymtabs): Call
6993 install_minimal_symbols and make appropriate cleanups.
6994
6995 2003-02-20 Kevin Buettner <kevinb@redhat.com>
6996
6997 * solib.c (reload_shared_libraries): New function.
6998 (_initialize_solib): Add callbacks for ``set solib-search-path''
6999 and ``set solib-absolute-prefix''.
7000
7001 2003-02-20 David Carlton <carlton@math.stanford.edu>
7002
7003 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
7004 expand comment.
7005 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
7006 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
7007 * ada-typeprint.c (ada_typedef_print): Ditto.
7008 * ax-gdb.c (gen_var_ref): Ditto.
7009 * breakpoint.c (print_one_breakpoint): Ditto.
7010 * buildsym.c (finish_block): Ditto.
7011 * c-valprint.c (c_val_print): Ditto.
7012 * expprint.c (print_subexp): Ditto.
7013 * findvar.c (locate_var_value): Ditto.
7014 * infcmd.c (jump_command): Ditto.
7015 * linespec.c (decode_line_2, decode_compound): Ditto.
7016 * maint.c (maintenance_translate_address): Ditto.
7017 * objc-lang.c (compare_selectors, compare_classes): Ditto.
7018 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
7019 Ditto.
7020 * p-valprint.c (pascal_val_print): Ditto.
7021 * stabsread.c (define_symbol): Ditto.
7022 * stack.c (print_frame, frame_info, print_block_frame_locals)
7023 (print_frame_arg_vars, return_command): Ditto.
7024 * symfile.c (compare_symbols, compare_psymbols): Ditto.
7025 * symmisc.c (print_symbol): Ditto.
7026 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
7027 (compare_search_syms, print_symbol_info, print_msymbol_info)
7028 (rbreak_command): Ditto.
7029 * tracepoint.c (tracepoints_info): Ditto.
7030 * typeprint.c (typedef_print): Ditto.
7031 * valops.c (value_of_variable, hand_function_call): Ditto.
7032 * cli/cli-cmds.c (edit_command, list_command): Ditto.
7033 * ada-typeprint.c: Update Copyright.
7034 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
7035 * tracepoint.c, cli/cli-cmds.c: Ditto.
7036
7037 2003-02-20 Kevin Buettner <kevinb@redhat.com>
7038
7039 * frame.c (generic_unwind_get_saved_register): Make non-static.
7040 * frame.h (generic_unwind_get_saved_register): Declare.
7041 * mips-tdep.c (read_next_frame_reg): Fetch register from
7042 current regcache when frame is NULL.
7043 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
7044 that must be NULL.
7045 (mips_get_saved_register): Call generic_unwind_get_saved_register()
7046 instead of frame_register_unwind().
7047
7048 2003-02-20 Andrew Cagney <ac131313@redhat.com>
7049
7050 * remote-sim.c (gdbsim_insert_breakpoint)
7051 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
7052 code.
7053
7054 2003-02-20 Andrew Cagney <ac131313@redhat.com>
7055
7056 * remote.c (_initialize_remote): Add commands "set/show remote
7057 hardware-watchpoint-limit" and "set/show remote
7058 hardware-breakpoint-limit".
7059 (remote_hw_watchpoint_limit): Initialize to -1.
7060 (remote_hw_breakpoint_limit): Ditto.
7061 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
7062
7063 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
7064
7065 * coff-pe-read.c: New file - support reading of minimal symbols from a
7066 portable executable using the export table.
7067 * coff-pe-read.h: New file.
7068 * coffread.c: Include coff-pe-read.h.
7069 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
7070 debugging symbols found.
7071 * Makefile.in (SFILES): Add coff-pe-read.o.
7072 (coff_pe_read_h): Define.
7073 (COMMON_OBS): Add coff-pe-read.o.
7074 (coffread.o): Add coff_pe_read_h dependency.
7075 (coff-pe-read.o): New target.
7076
7077 2003-02-19 David Carlton <carlton@math.stanford.edu>
7078
7079 * Makefile.in (SFILES): Add block.c.
7080 (block_h): New.
7081 (COMMON_OBS): Add block.o.
7082 (block.o): New.
7083 (x86-64-tdep.o): Add $(block_h).
7084 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
7085 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
7086 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
7087 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
7088 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
7089 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
7090 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
7091 * value.h: Add opaque declaration for struct block.
7092 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
7093 * ada-lang.h: Ditto.
7094 * x86-64-tdep.c: #include "block.h"
7095 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
7096 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
7097 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
7098 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
7099 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
7100 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
7101 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
7102 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
7103 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
7104 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
7105 * symtab.c (block_function): Ditto.
7106 (contained_in): Ditto.
7107 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
7108 block.h. Add opaque declaration for struct block.
7109 * symtab.h: Move block_function and contained_in declarations to
7110 block.h. Add opaque declarations for struct block, struct
7111 blockvector.
7112 (struct block): Move to block.h.
7113 (struct blockvector): Ditto.
7114 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
7115 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
7116 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
7117 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
7118 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
7119 Ditto.
7120 * block.c: New file.
7121 * block.h: New file.
7122
7123 2003-02-19 Theodore A. Roth <troth@openavr.org>
7124
7125 * avr-tdep.c (avr_extract_return_value): Remove function.
7126 (avr_store_return_value): Remove function.
7127 (avr_extract_struct_value_address): Remove function.
7128 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
7129
7130 2003-02-19 Andrew Cagney <ac131313@redhat.com>
7131
7132 * rs6000-tdep.c: Include "gdb_assert.h".
7133 (registers_e500): Add "acc" and "spefscr".
7134 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
7135 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
7136 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
7137 really is "r0".
7138 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
7139
7140 2003-02-18 Keith Seitz <keiths@redhat.com>
7141
7142 * Makefile.in: Add gdbtk-interps.c.
7143
7144 2003-02-18 Kevin Buettner <kevinb@redhat.com>
7145
7146 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
7147 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
7148
7149 2003-02-18 Andrew Cagney <cagney@redhat.com>
7150
7151 * symtab.h (struct objfile): Add opaque declaration.
7152
7153 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
7154
7155 From Jim Ingham <jingham@apple.com>:
7156 * dbxread.c (process_one_symbol): Use last_function_start rather
7157 than function_start_offset to find the real beginning of the
7158 current function. The latter is just the text section offset on
7159 some systems, the former is always the real function start.
7160
7161 2003-02-17 Andrew Cagney <cagney@redhat.com>
7162
7163 * configure.in: Revert ${target} != ${host}.
7164
7165 2003-02-17 Andrew Cagney <ac131313@redhat.com>
7166
7167 * configure.in (Makefile): Use the test ${target} != ${host},
7168 instead of the absence of the "nm.h" file, to determine of the
7169 configuration non-native.
7170 * configure: Regenerate.
7171
7172 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
7173
7174 From Brian Ford <ford@vss.fsi.com>
7175
7176 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
7177 conditionalize tui_active test.
7178 (lookup_cmd_1): Ditto.
7179
7180 2003-02-14 Mark Kettenis <kettenis@gnu.org>
7181
7182 * configure.in: Add check for _etext.
7183 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
7184 available.
7185 * config.in, configure: regenerated.
7186
7187 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
7188
7189 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
7190
7191 2003-02-14 Andrew Cagney <ac131313@redhat.com>
7192
7193 * main.c (tui_version): Delete variable.
7194 (captured_main): When --tui, set interpreter_p to "tui" instead of
7195 enabling tui_version.
7196 * printcmd.c (display_command) [TUI]: Test tui_active instead of
7197 tui_version.
7198 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
7199 * cli/cli-cmds.c (disassemble_command): Ditto.
7200 * defs.h (tui_version): Delete declaration.
7201 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
7202 (tui-interp.o): Add rules.
7203 (SUBDIR_TUI_OBS): Add "tui-interp.o".
7204
7205 2003-02-14 Christopher Faylor <cgf@redhat.com>
7206
7207 * win32-nat.c (register_loaded_dll): Correctly set address range for
7208 just-loaded dll.
7209
7210 2003-02-12 Jason Molenda (jmolenda@apple.com)
7211
7212 * symmisc.c (print_objfile_statistics): Include information about
7213 the number of psymtabs and symtabs in each object file.
7214
7215 2003-02-13 Keith R Seitz <keiths@redhat.com>
7216
7217 * main.h (struct captured_main_args): Add interpreter_p.
7218 * main.c (captured_main): Initialize interpreter_p from context.
7219 * gdb.c (main): Set interpreter_p argument.
7220 * Makefile.in (gdb.o): Add dependency for interps.h.
7221
7222 2003-02-12 Andrew Cagney <ac131313@redhat.com>
7223
7224 * event-top.c (cli_command_loop): Delete declaration.
7225 (_initialize_event_loop): Delete function setting event_loop_hook.
7226 * event-top.h (cli_command_loop): Declare. Update copyright.
7227 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
7228 * interps.c (current_interp_command_loop): When event_loop_p, call
7229 cli_command_loop.
7230
7231 2003-02-12 Andrew Cagney <ac131313@redhat.com>
7232
7233 * interps.h (interp_command_loop_ftype): Change return type to
7234 void.
7235
7236 2003-02-12 Michal Ludvig <mludvig@suse.cz>
7237
7238 * x86-64-tdep.c (x86_64_extract_return_value)
7239 (x86_64_store_return_value): Use regcache instead of regbuf.
7240 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
7241 * x86-64-linux-nat.c (fill_gregset): Use regcache.
7242
7243 2003-02-11 Andrew Cagney <ac131313@redhat.com>
7244
7245 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
7246 * aclocal.m4: Regenerate.
7247 * configure: Regenerate.
7248
7249 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
7250 TCL_LD_SEARCH_FLAGS.
7251
7252 2003-02-10 Michal Ludvig <mludvig@suse.cz>
7253
7254 * dwarf2cfi.c: Reindented.
7255
7256 2003-02-09 Andrew Cagney <ac131313@redhat.com>
7257
7258 * interps.c (clear_interpreter_hooks): Convert function definition
7259 to ISO C.
7260
7261 2003-02-07 David Carlton <carlton@math.stanford.edu>
7262
7263 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
7264
7265 2003-02-07 Kevin Buettner <kevinb@redhat.com>
7266
7267 * gdbtypes.h (struct main_type): Move ``length'' field from here...
7268 (struct type): ...to here.
7269 (TYPE_LENGTH): Adjust to reflect different location of ``length''
7270 field.
7271 * gdbtypes.c (make_qualified_type): Set length on newly created type.
7272 (replace_type): Set length on all type variants for a given type.
7273
7274 2003-02-07 Andrew Cagney <ac131313@redhat.com>
7275
7276 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
7277 <sys/stat.h>.
7278 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
7279
7280 2003-02-06 Andrew Cagney <ac131313@redhat.com>
7281
7282 * Makefile.in (symm-nat.o): Update dependencies.
7283 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
7284 (lynx-nat.o, ia64-linux-nat.): Ditto.
7285 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
7286 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
7287 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
7288
7289 * Makefile.in (inflow_h): Define.
7290 (procfs.o, inflow.o, procfs.o): Update dependencies.
7291 * inftarg.c (child_stop): Delete extern declaration of
7292 inferior_process_group. Include "inflow.h".
7293 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
7294 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
7295 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
7296 (our_process_group, inferior_process_group): Extern declarations.
7297
7298 * procfs.c: Include "gdb_assert.h".
7299
7300 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
7301 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
7302 * jv-typeprint.c (java_type_print_base): Ditto.
7303 * typeprint.c (typedef_print): Eliminate STREQ.
7304 * cli/cli-script.c (define_command, define_command): Ditto.
7305 * main.c (captured_main): Ditto.
7306 * values.c (lookup_internalvar): Ditto.
7307 * utils.c (safe_strerror, parse_escape): Eliminate assignment
7308 within `if' conditional.
7309 * linespec.c (decode_line_2): Ditto.
7310 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
7311 (bfd_openw_with_cleanup): Ditto.
7312
7313 2003-02-07 Mark Kettenis <kettenis@gnu.org>
7314
7315 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
7316 legacy_extract_return_value and store_return_value to
7317 legacy_return_value.
7318
7319 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
7320
7321 * win32-nat.c (get_relocated_section_addrs): New function. Find
7322 section load addresses for symbol handling in relocated DLLs.
7323 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
7324
7325 2003-02-05 Fred Fish <fnf@intrinsity.com>
7326
7327 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
7328 '=' and '!='.
7329 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
7330 with '&' and '=='.
7331 (angel_RDI_info): Ditto.
7332 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
7333 with '&' and '!='.
7334 (threads_continue_all_with_signals): Ditto.
7335
7336 2003-02-05 Jim Ingham <jingham@apple.com>
7337 Keith Seitz <keiths@redhat.com>
7338 Elena Zannoni <ezannoni@redhat.com>
7339 Andrew Cagney <ac131313@redhat.com>
7340
7341 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
7342 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
7343 (SUBDIR_MI_OBS): Add "mi-interp.o".
7344 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
7345 (SFILES): Add "interps.c".
7346 (COMMON_OBS): Add "interps.o".
7347 (interps_h, mi_main_h): Define.
7348 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
7349 (mi-main.o, main.o, event-top.o): Update dependencies.
7350 * cli/cli-interp.c: New file.
7351 * interps.h, interps.c: New files.
7352 * top.c: (gdb_init): Don't install the default interpreter, handed
7353 by captured_main.
7354 * main.c: Include "interps.h".
7355 (interpreter_p): Note that it should malloc'ed.
7356 (captured_command_loop): Call current_interp_command_loop.
7357 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
7358 xfree and xstrdup when updating interpreter_p. Install the
7359 default interpreter. Add hack to stop mi1's copyright notice
7360 being encoded.
7361 * event-top.h (gdb_setup_readline): Declare.
7362 (gdb_disable_readline): Declare.
7363 * event-top.c: Include "interps.h".
7364 (display_gdb_prompt): Call current_interp_display_prompt_p.
7365 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
7366 gdb_stdlog, and gdb_stdtarg.
7367 (_initialize_event_loop): Don't call gdb_setup_readline.
7368 * cli-out.c (cli_out_set_stream): New function.
7369 * cli-out.h (cli_out_set_stream): Declare.
7370
7371 2003-02-06 Mark Kettenis <kettenis@gnu.org>
7372
7373 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
7374 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
7375 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
7376 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
7377 config/i386/i386v42mp.mt: Removed.
7378
7379 2003-02-05 Mark Kettenis <kettenis@gnu.org>
7380
7381 * configure.tgt (*-*-solaris*): Set gdb_osabi to
7382 GDB_OSABI_SOLARIS.
7383
7384 2003-02-05 Michael Chastain <mec@shout.net>
7385
7386 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
7387 2.12.1 and earlier versions.
7388
7389 2003-02-05 Andrew Cagney <ac131313@redhat.com>
7390
7391 Remove orphaned hosts, targets and files.
7392 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
7393 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
7394 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
7395 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
7396 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
7397 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
7398 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
7399 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
7400 * config/sparc/tm-sp64sim.h: Delete.
7401 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
7402 hosts.
7403 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
7404 mips*-dec-mach3* targets.
7405
7406 2003-02-04 Michael Chastain <mec@shout.net>
7407
7408 * NEWS: Fix typo: sepcifying -> specifying.
7409
7410 2003-02-04 Michael Chastain <mec@shout.net>
7411
7412 * dwarfread.c: Add documentation on the state of dwarf-1,
7413 looking towards obsoletion.
7414
7415 2003-02-03 Michael Chastain <mec@shout.net>
7416
7417 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
7418 gdb/testsuite/gdb.c++/pr-1023.exp.
7419
7420 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7421
7422 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
7423 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
7424
7425 * utils.c (init_page_info): Delete reference to MPW in comments.
7426 * main.c (captured_main): Delete #ifdef MPW.
7427
7428 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7429
7430 * NEWS: Note that the m32r-*-elf* is obsolete.
7431 * monitor.c (monitor_expect): Obsolete reference to m32r.
7432 * configure.tgt: Mark m32r-*-elf* as obsolete.
7433 * MAINTAINERS: Mark m32k as obsolete.
7434 * m32r-rom.c: Obsolete file.
7435 * config/m32r/m32r.mt: Obsolete file.
7436 * config/m32r/tm-m32r.h: Obsolete file.
7437 * m32r-stub.c: Obsolete file.
7438 * m32r-tdep.c: Obsolete file.
7439
7440 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7441
7442 * NEWS: Mention that the z8k-zilog-none is obsolete.
7443 * MAINTAINERS: Mark z8k as obsolete.
7444 * configure.tgt: Obsolete the z8k-*-coff* target.
7445 * config/z8k/z8k.mt: Obsolete file.
7446 * config/z8k/tm-z8k.h: Obsolete file.
7447 * z8k-tdep.c: Obsolete file.
7448
7449 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7450
7451 * NEWS: Mention that the mn10200-elf is obsolete.
7452 * configure.tgt: Obsolete mn10200-*-* target.
7453 * breakpoint.c (update_breakpoints_after_exec): Update comment to
7454 mention that the mn10200 is obsolete.
7455 * breakpoint.h: Ditto.
7456 * MAINTAINERS: Mark the mn10200-elf as obsolete.
7457 * config/mn10200/mn10200.mt: Obsolete file.
7458 * config/mn10200/tm-mn10200.h: Obsolete file.
7459 * mn10200-tdep.c: Obsolete file.
7460
7461 2003-02-04 Andrew Cagney <ac131313@redhat.com>
7462
7463 * MAINTAINERS: Mark h8500 as obsolete.
7464 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
7465 * findvar.c (value_from_register): Ditto.
7466 * h8500-tdep.c: Mark file as obsolete.
7467 * config/h8500/h8500.mt: Ditto.
7468 * config/h8500/tm-h8500.h: Ditto.
7469 * NEWS: Mention that h8500 is obsolete.
7470
7471 2003-02-04 David Carlton <carlton@math.stanford.edu>
7472
7473 * objfiles.c (allocate_objfile): Always set name. Add comment at
7474 start of function.
7475 * jv-lang.c (get_dynamics_objfile): Add comment.
7476
7477 2003-02-04 David Carlton <carlton@math.stanford.edu>
7478
7479 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
7480 * printcmd.c (build_address_symbolic): Replace uses of
7481 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
7482 SYMBOL_NAME, and asm_demangle.
7483 Update copyright.
7484
7485 2003-02-04 David Carlton <carlton@math.stanford.edu>
7486
7487 * linespec.c (decode_compound): Extract code into
7488 lookup_prefix_sym.
7489 (lookup_prefix_sym): New function.
7490
7491 2003-02-04 David Carlton <carlton@math.stanford.edu>
7492
7493 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
7494 FLOAT_COERCION_BADNESS.
7495 * gdbtypes.c (rank_one_type): Replace all uses of
7496 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
7497
7498 2003-02-04 Jim Blandy <jimb@redhat.com>
7499
7500 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
7501 section, let dwarf_macinfo_section point to it, not
7502 dwarf_loc_section.
7503
7504 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
7505
7506 Pointed out by Anton Blanchard <anton@samba.org>.
7507 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
7508 (ppc_linux_at_sigtramp_return_path): Use it.
7509
7510 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
7511
7512 * defs.h (streq): Add prototype.
7513 * utils.c (streq): New function.
7514
7515 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
7516 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
7517 * mdebugread.c (new_symbol): Likewise.
7518 * stabsread.c (define_symbol): Likewise.
7519 * coffread.c (process_coff_symbol): Likewise.
7520 * dwarfread.c (new_symbol): Likewise.
7521
7522 * minsyms.c (prim_record_minimal_symbol_and_info): Use
7523 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
7524 here.
7525 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
7526 SYMBOL_INIT_DEMANGLED_NAME.
7527 * objfiles.c: Include "hashtab.h".
7528 (allocate_objfile): Call htab_set_functions_ex for the
7529 demangled_names_hash.
7530 (free_objfile): Call htab_delete for the demangled_names_hash.
7531 * objfiles.h (struct htab): Add declaration.
7532 (struct objfile): Add demangled_names_hash.
7533 * symfile.c: Include "hashtab.h".
7534 (reread_symbols): Call htab_delete for the demangled_names_hash.
7535 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
7536 SYMBOL_NAME in the bcache.
7537 * symtab.c: Include "hashtab.h". Update comments.
7538 (create_demangled_names_hash, symbol_set_names): New functions.
7539 (symbol_find_demangled_name): New function, broken out from
7540 symbol_init_demangled_names.
7541 (symbol_init_demangled_names): Use it.
7542 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
7543 (SYMBOL_SET_NAMES): New macro.
7544 (symbol_set_names): Add prototype.
7545
7546 2003-02-03 Jim Blandy <jimb@redhat.com>
7547
7548 Use a single, consistent representation for an empty minimal
7549 symbol table in an objfile.
7550 * objfiles.c (terminate_minimal_symbol_table): New function.
7551 (allocate_objfile): Call it.
7552 * objfiles.h (terminate_minimal_symbol_table): New declaration.
7553 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
7554 non-NULL.
7555 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
7556 objfile has minimal symbols, compare minimal_symbol_count to zero,
7557 instead of comparing msymbols with NULL.
7558 * objfiles.c (have_minimal_symbols): Same.
7559 * solib-sunos.c (solib_add_common_symbols): Call
7560 terminate_minimal_symbol_table.
7561 * symfile.c (reread_symbols): Same.
7562
7563 2003-02-03 Kevin Buettner <kevinb@redhat.com>
7564
7565 * s390-tdep.c (s390_address_class_type_flags)
7566 (s390_address_class_type_flags_to_name)
7567 (s390_address_class_name_to_type_flags): New functions.
7568 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
7569 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
7570
7571 2003-02-03 Michael Snyder <msnyder@redhat.com>
7572
7573 * arm-tdep.c: Fix spell-o in comment.
7574
7575 2003-02-03 Michal Ludvig <mludvig@suse.cz>
7576
7577 * dwarf2cfi.c (pointer_encoding): Added new parameter.
7578 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
7579 error messages to contain BFD filename.
7580
7581 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
7582
7583 Fix PR gdb/742 gdb/743 gdb/877
7584 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
7585 (do_mixed_source_and_assembly): Use
7586 make_cleanup_ui_out_tuple_begin_end and
7587 make_cleanup_ui_out_tuple_begin_end.
7588 (do_mixed_source_and_assembly): Ditto.
7589 * thread.c (do_captured_list_thread_ids): Ditto.
7590 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
7591 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
7592 ui_out_tuple_end): Delete prototypes.
7593 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
7594 ui_out_list_end, ui_out_tuple_end): Delete.
7595
7596 From Kevin Buettner <kevinb@redhat.com>:
7597 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
7598 * ui-out.c (make_cleanup_ui_out_table_begin_end)
7599 (do_cleanup_table_end): New functions.
7600 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
7601 Use cleanups to invoke_ui_out_tuple_end().
7602 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
7603 * cli/cli-setshow.c (cmd_show_list): Use
7604 make_cleanup_ui_out_tuple_begin_end.
7605
7606 2003-02-02 Andrew Cagney <ac131313@redhat.com>
7607
7608 * frame.c (frame_unwind_register): New function.
7609 (frame_unwind_unsigned_register): Use.
7610 (frame_unwind_signed_register): Use.
7611 (frame_read_register): New function.
7612 * frame.h (frame_unwind_register): Declare.
7613 (frame_read_register): Declare.
7614
7615 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
7616 and frame_unwind_register instead of read_memory, write_register
7617 and deprecated_write_register_bytes.
7618
7619 2003-02-02 Andrew Cagney <ac131313@redhat.com>
7620
7621 * frame.h: Note that namelen can be negative.
7622 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
7623 NAME's length.
7624
7625 * NEWS: Mention that the d10v's `regs' command is deprecated.
7626 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
7627 (d10v_print_registers_info): New function.
7628 (show_regs): Call d10v_print_registers_info.
7629 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
7630
7631 2003-02-02 Mark Kettenis <kettenis@gnu.org>
7632
7633 * stack.c (print_frame_info): Restore call to annotate_frame_begin
7634 lost in the previous patch.
7635
7636 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7637
7638 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
7639 * stack.c (print_frame_info_base): Output complete FRAME tuple
7640 for synthesized frames.
7641
7642 2003-02-02 Andrew Cagney <ac131313@redhat.com>
7643
7644 * mips-nat.c (zerobuf): Delete.
7645 (fetch_inferior_registers): Alloc local zerobuf.
7646 (fetch_core_registers): Alloc local zerobuf.
7647 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
7648 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
7649 * thread-db.c (thread_db_store_registers): Ditto.
7650 * sh-tdep.c (sh_do_register): Ditto.
7651 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
7652 * remote-sim.c (gdbsim_store_register): Ditto.
7653 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7654 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7655 * monitor.c (monitor_supply_register): Ditto.
7656 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
7657 * mips-nat.c (fetch_inferior_registers): Ditto.
7658 * m68klinux-nat.c (fetch_register): Ditto.
7659 * lynx-nat.c (fetch_inferior_registers): Ditto.
7660 (fetch_inferior_registers): Ditto.
7661 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
7662 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7663 (hpux_thread_store_registers): Ditto.
7664 * hppah-nat.c (fetch_register): Ditto.
7665 * hppab-nat.c (fetch_register): Ditto.
7666 * hppa-tdep.c (pa_register_look_aside): Ditto.
7667 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
7668 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
7669
7670 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7671
7672 * gdbarch.sh: Explictly specify all method levels. When a
7673 variable with an empty level, provide a non-multi-arch default.
7674 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
7675 * gdbarch.h: Re-generate.
7676 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
7677 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
7678
7679 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7680
7681 * defs.h (host_pointer_to_address): Delete declaration.
7682 (address_to_host_pointer): Delete declaration.
7683 * utils.c (host_pointer_to_address): Delete function.
7684 (address_to_host_pointer): Delete function.
7685 * procfs.c (procfs_address_to_host_pointer): New function.
7686 * procfs.c (proc_set_watchpoint): Use.
7687 (procfs_can_use_hw_breakpoint): Update comments.
7688 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
7689 (som_solib_add): Use.
7690 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
7691 * hppa-tdep.c (unwind_command): Use.
7692
7693 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7694
7695 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
7696 strlen d_name.
7697
7698 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
7699 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
7700 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
7701 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
7702 (define_symbol): Update.
7703 * symfile.c (generic_load): Remove references to nindy.
7704 * symtab.c: Remove references to nindy.
7705
7706 2003-02-01 Andrew Cagney <ac131313@redhat.com>
7707
7708 * infcmd.c (print_float_info): Delete code conditional on
7709 FLOAT_INFO.
7710 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
7711 * config/m68k/nm-apollo68b.h: Ditto.
7712 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
7713 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
7714 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
7715
7716 2003-02-01 Mark Kettenis <kettenis@gnu.org>
7717
7718 * config/i386/tm-i386os9k.h: Removed.
7719
7720 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
7721 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
7722 they're identical to i[3456]86-*-sysv* now.
7723 * config/i386/i386v32.mh: Removed.
7724 * config/i386/xm-i386v32.h: Removed.
7725 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
7726
7727 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
7728
7729 * config/i386/i386dgux.mh: Removed.
7730 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
7731
7732 * configure.in: Fix typo.
7733 * configure: Regenerated.
7734
7735 2003-01-31 David Carlton <carlton@math.stanford.edu>
7736
7737 * dwarf2read.c (dwarf2_locate_sections): Set
7738 dwarf_ranges_section.
7739
7740 2003-01-31 Andrew Cagney <ac131313@redhat.com>
7741
7742 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
7743 * utils.c: Update comments documenting legitimate uses of PTR.
7744
7745 * utils.c: Re-indent.
7746
7747 * config/djgpp/fnchange.lst: Delete nindy files.
7748 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
7749 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
7750 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
7751 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
7752 * nindy-share/README, nindy-share/Onindy.c: Delete files.
7753 * nindy-tdep.c, nindy-share/Makefile: Delete files.
7754 * Makefile.in (init.c): Remove nindy references.
7755 (saber_gdb): Delete rule.
7756 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
7757 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
7758 and a68v-nat.c.
7759 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
7760 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
7761 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
7762 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
7763 nindy-share/stop.h.
7764 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
7765 * saber.suppress: Delete file.
7766
7767 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
7768
7769 * dbxread.c (stabs_data): New static variable.
7770 (fill_symbuf): Support an in-memory buffer for stabs data.
7771 (stabs_seek): New function.
7772 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
7773 (read_ofile_symtab): Use stabs_seek.
7774 (elfstab_build_psymtabs): Take an asection* instead of
7775 an offset and size. Relocate the stabs data if necessary.
7776 Save the section* for dbx_psymtab_to_symtab.
7777 * dwarf2read.c: Add section variables for each debug section.
7778 (dwarf2_locate_sections): Fill them in.
7779 (dwarf2_read_section): Take an asection* argument.
7780 Relocate the section contents if necessary.
7781 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
7782 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
7783 it to dwarf2_read_section.
7784 (dwarf2_build_frame_info): Update callers.
7785 * elfread.c (elf_symfile_read): Update call to
7786 elfstab_build_psymtabs.
7787 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
7788 (DBX_STAB_SECTION): New macro.
7789 * stabsread.h (elfstab_build_psymtabs): Update prototype.
7790 * symfile.c (symfile_dummy_outputs): New function.
7791 (symfile_relocate_debug_section): New function.
7792 * symfile.h (symfile_relocate_debug_section): Add prototype.
7793
7794 2003-01-31 Richard Henderson <rth@redhat.com>
7795
7796 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
7797 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
7798 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
7799 * alpha-tdep.c (alpha_register_name): Add "unique".
7800 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
7801 (ALPHA_UNIQUE_REGNUM): New.
7802 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
7803
7804 2003-01-31 Andrew Cagney <ac131313@redhat.com>
7805
7806 * README: Remove reference to Ericsson 1800 monitor.
7807 * Makefile.in (remote-es.o): Delete rule.
7808 (ALLDEPFILES): Delete remote-es.c.
7809 * remote-es.c: Delete file.
7810 * config/m68k/es1800.mt: Delete file.
7811 * config/djgpp/fnchange.lst: Update.
7812 * configure.tgt: Delete m68*-ericsson-* target.
7813
7814 2003-01-31 Adam Fedor <fedor@gnu.org>
7815
7816 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
7817 Remove duplicate/shadowing variable of same name.
7818
7819 2003-01-30 Jim Blandy <jimb@redhat.com>
7820
7821 * symfile.c (find_separate_debug_file): Assert that the objfile's
7822 directory name we compute ends with a slash, and then assume that
7823 that's so everywhere we use it.
7824
7825 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
7826
7827 * valops.c (value_assign): Flush frame cache after stores to memory
7828 also.
7829
7830 2003-01-30 Andrew Cagney <ac131313@redhat.com>
7831
7832 * Makefile.in (mon960-rom.o): Delete rule.
7833 * mon960-rom.c: Delete file.
7834
7835 2003-01-30 Andrew Cagney <ac131313@redhat.com>
7836
7837 * d10v-tdep.c: Include "frame-unwind.h".
7838 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
7839 list.
7840 (next_addr, uses_frame): Delete.
7841 (struct d10v_unwind_cache): Define.
7842 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
7843 Use info instead of next_addr and uses_frame globals.
7844 (d10v_frame_init_saved_regs): Delete function.
7845 (d10v_init_extra_frame_info): Delete function.
7846 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
7847 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
7848 init_frame_pc or frame_saved_pc.
7849 (d10v_pop_frame): Delete function.
7850 (do_d10v_pop_frame): Delete function.
7851 (d10v_frame_chain): Delete function.
7852 (d10v_frame_chain_valid): Delete function.
7853 (d10v_frame_pc_unwind): New function.
7854 (d10v_frame_id_unwind): New function.
7855 (saved_regs_unwinder): New function.
7856 (d10v_frame_register_unwind): New function.
7857 (d10v_frame_pop): New function.
7858 (d10v_frame_unwind): New variable.
7859 (d10v_frame_p): New function.
7860 (d10v_frame_saved_pc): Delete function.
7861 * Makefile.in (d10v-tdep.o): Update dependencies.
7862
7863 2003-01-30 J. Brobecker <brobecker@gnat.com>
7864
7865 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
7866 causing some regressions due to a change in the default value
7867 for this macro.
7868
7869 2003-01-29 Richard Henderson <rth@redhat.com>
7870 Elena Zannoni <ezannoni@redhat.com>
7871 Daniel Jacobowitz <drow@mvista.com>
7872
7873 Fix PR gdb/961.
7874 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
7875 variables.
7876 (RANGES_SECTION): New.
7877 (dwarf_ranges_buffer): New variable.
7878 (struct comp_unit_head): Add member "die".
7879 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
7880 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
7881 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
7882 (dwarf2_locate_sections): Likewise.
7883 (dwarf2_build_psymtabs): Read .debug_ranges.
7884 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
7885 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
7886 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
7887 Look for DW_AT_ranges and return the bounding box.
7888
7889 2003-01-29 Brian Ford <ford@vss.fsi.com>
7890
7891 * win32-nat.c (cygwin_pid): Removed as unused.
7892 (child_attach): Try fall back to Cygwin pid.
7893
7894 2003-01-29 Jim Blandy <jimb@redhat.com>
7895
7896 * objfiles.h (struct objfile): Doc fix.
7897
7898 2003-01-29 Andrew Cagney <ac131313@redhat.com>
7899
7900 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
7901 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
7902 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
7903 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
7904 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
7905 (FRAME_SAVED_PC): Change to a function with predicate.
7906 * gdbarch.h, gdbarch.c: Re-generate.
7907
7908 2003-01-28 Andrew Cagney <ac131313@redhat.com>
7909
7910 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
7911
7912 * complaints.c (complain): Delete function.
7913 * complaints.h (struct deprecated_complaint): Delete definition.
7914 (complain): Delete declaration.
7915
7916 2003-01-28 Kevin Buettner <kevinb@redhat.com>
7917
7918 * mips-tdep.c (mips_init_extra_frame_info): Return early for
7919 dummy frames.
7920
7921 2003-01-27 Andrew Cagney <ac131313@redhat.com>
7922
7923 * sentinel-frame.h, sentinel-frame.c: New files.
7924 * Makefile.in (frame.o): Update dependencies.
7925 (SFILES): Add sentinel-frame.c.
7926 (sentinel_frame_h): Define.
7927 (COMMON_OBS): Add sentinel-frame.o.
7928 (sentinel-frame.o): Specify dependencies.
7929 * frame.c: Include "sentinel-frame.h".
7930 (frame_register_unwind): Rewrite assuming that there is always a a
7931 ->next frame.
7932 (frame_register, generic_unwind_get_saved_register): Ditto.
7933 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
7934 (create_sentinel_frame, unwind_to_current_frame): New functions.
7935 (get_current_frame): Rewrite using create_sentinel_frame and
7936 unwind_to_current_frame. When possible, always create a frame.
7937 (create_new_frame): Set next to the sentinel frame.
7938 (get_next_frame): Rewrite. Don't go below the level 0 frame.
7939 (deprecated_update_frame_pc_hack): Update the next frame's PC and
7940 ID cache when necessary.
7941 (frame_saved_regs_id_unwind): Use frame_relative_level.
7942 (deprecated_generic_get_saved_register): Use frame_relative_level,
7943 get_frame_saved_regs, get_frame_pc, get_frame_base and
7944 get_next_frame.
7945 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
7946 frame_register.
7947
7948 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
7949
7950 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
7951
7952 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
7953
7954 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
7955 (maintenance_set_profile_cmd): Use error () instead of warning ().
7956
7957 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
7958
7959 * configure.in: Check that -pg works if using --enable-profiling.
7960 Check for monstartup and _mcleanup regardless of --enable-profiling.
7961 * maint.c: Check for monstartup and _mcleanup before using them.
7962 * config.in: Regenerated.
7963 * configure: Regenerated.
7964
7965 2003-01-24 Nick Clifton <nickc@redhat.com>
7966
7967 * Add sh2e support:
7968
7969 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
7970
7971 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
7972 (sh2e_show_regs): New.
7973 (sh_gdbarch_init): Handle bfd_mach_sh2e.
7974 * config/sh/tm-sh.h: Added sh2e to comments.
7975
7976 2003-01-23 Jim Blandy <jimb@redhat.com>
7977
7978 * symfile.c (syms_from_objfile): Don't print the "(no debugging
7979 symbols found)" message here; we haven't checked for a separate
7980 debug info file yet, so we don't know yet.
7981 (symbol_file_add_with_addrs_or_offsets): Print it here, after
7982 we've looked everywhere. Also, there's no need to print a special
7983 message when we're loading the separate debug info file: the one
7984 symbol_file_add prints is fine.
7985
7986 2003-01-23 Alexander Larsson <alexl@redhat.com>
7987 Jim Blandy <jimb@redhat.com>
7988
7989 Add support for executables whose debug info has been separated
7990 out into a separate file, leaving only a link behind.
7991 * objfiles.h (struct objfile): New fields: separate_debug_objfile
7992 and separate_debug_objfile_backlink.
7993 (put_objfile_before): New declaration.
7994 * symfile.c: #include "filenames.h".
7995 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
7996 debug info in a separate file, read that, too. Save the addrs
7997 argument, so we can use it again to read the separated debug info;
7998 syms_from_objfile modifies the table we pass it.
7999 (reread_symbols): After re-reading an objfile, call
8000 reread_separate_symbols to refresh its separate debug info
8001 objfile, if it has one.
8002 (reread_separate_symbols, find_separate_debug_file,
8003 get_debug_link_info, separate_debug_file_exists): New functions.
8004 (debug_file_directory): New global var.
8005 (_initialize_symfile): Initialize debug_file_directory, and
8006 provide the new `set debug-file-directory' command to let the user
8007 change it.
8008 * objfiles.c (free_objfile): If this objfile has its debug info in
8009 a separate objfile, free that one too. If this is itself a
8010 separate debug info objfile, clear our parent's backlink.
8011 (put_objfile_before): New function.
8012 * utils.c (gnu_debuglink_crc32): New function.
8013 * defs.h (gnu_debuglink_crc32): New declaration.
8014 * Makefile.in (symfile.o): Note dependency on "filenames.h".
8015 * configure.in: Handle --with-separate-debug-dir config option.
8016 * acinclude.m4 (AC_DEFINE_DIR): New macro.
8017 * acconfig.h (DEBUGDIR): New macro.
8018 * configure, aclocal.m4, config.in: Regenerated.
8019
8020 2003-01-22 Jim Blandy <jimb@redhat.com>
8021
8022 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
8023 like the old symbol_file_add, but taking new arguments: you can
8024 now pass in either a `struct section_addr_info' list to say where
8025 each section is loaded, or a `struct section_offsets' table. Pass
8026 these new arguments through to syms_from_objfile as appropriate.
8027 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
8028 with the appropriate quiescent values for the new arguments.
8029
8030 * symfile.c: #include "gdb_assert.h".
8031 (syms_from_objfile): Add the ability to pass in a section offset
8032 table directly, as an alternative to the section_addr_info table.
8033 Document arguments better.
8034 (symbol_file_add): Pass extra arguments to syms_from_objfile.
8035 * symfile.h (syms_from_objfile): Update declaration.
8036 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
8037 syms_from_objfile.
8038 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
8039
8040 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
8041
8042 Original patch by Tom Tromey <tromey@cygnus.com> and
8043 Jason Molenda <jmolenda@apple.com>.
8044 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
8045 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
8046 * NEWS: Mention profiling.
8047 * configure.in (--enable-gdbtk): Fix typo.
8048 (--enable-profiling): New. Set PROFILE_CFLAGS.
8049 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
8050 Fill in function.
8051 (profiling_state): New variable.
8052 (mcleanup_wrapper): New function.
8053 (_initialize_maint): Remove NOTYET, fix call to
8054 add_setshow_boolean_cmd for "maint set profile".
8055 * configure: Regenerated.
8056
8057 2003-01-21 Martin M. Hunt <hunt@redhat.com>
8058
8059 * Makefile.in (install-gdbtk): Install PNG images too.
8060
8061 2003-01-21 Andrew Cagney <ac131313@redhat.com>
8062
8063 * exec.c (text_start): Delete global variable.
8064 (exec_file_attach): Make text_start local to the function.
8065 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
8066 * valops.c (hand_function_call): Delete code that handles
8067 BEFORE_TEXT_END and AFTER_TEXT_END.
8068 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
8069 of CALL_DUMMY_LOCATION.
8070 * gdbarch.c: Regenerate.
8071 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
8072 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
8073 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
8074 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
8075 (text_end): Delete extern declaration.
8076
8077 2003-01-21 Andrew Cagney <ac131313@redhat.com>
8078
8079 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
8080 * blockframe.c (backtrace_below_main): Move to "frame.c".
8081 (frame_chain_valid): Delete check for backtrace_below_main.
8082 (_initialize_blockframe): Delete initialization, move ``set
8083 backtrace-below-main'' command to "frame.c".
8084 (do_flush_frames_sfunc): Delete function.
8085 * frame.c: Include "command.h" and "gdbcmd.h".
8086 (frame_type_from_pc): New function.
8087 (create_new_frame): Use frame_type_from_pc.
8088 (legacy_get_prev_frame): New function.
8089 (get_prev_frame): Rewrite. When an old style frame, call
8090 legacy_get_prev_frame. Otherwize, unwind the PC first.
8091 (_initialize_frame): Add ``set backtrace-below-main'' command.
8092 * Makefile.in (frame.o): Update dependencies.
8093
8094 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8095
8096 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
8097 DEPRECATED_REGISTERS_INFO.
8098
8099 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8100
8101 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
8102 Maintainers'. Update `Various Maintainers'.
8103
8104 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8105
8106 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
8107 * gdbarch.sh (POP_FRAME): Change to function with predicate.
8108 Suppress actual parameters when `-'.
8109 * gdbarch.h, gdbarch.c: Regenerate.
8110
8111 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8112
8113 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
8114 code handling dummy frames.
8115
8116 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8117
8118 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
8119 (struct frame_unwind): Add field pop.
8120 * frame.h (frame_pop): Declare.
8121 * frame.c (frame_saved_regs_pop): New function.
8122 (trad_frame_unwinder): Add frame_saved_regs_pop.
8123 (frame_pop): New function.
8124 * dummy-frame.c (dummy_frame_pop): New function.
8125 (discard_innermost_dummy): New function.
8126 (generic_pop_dummy_frame): Use discard_innermost_dummy.
8127 (dummy_frame_unwind): Add dummy_frame_pop.
8128 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
8129 * valops.c (hand_function_call): Ditto.
8130 * stack.c (return_command): Ditto.
8131
8132 2003-01-18 Andrew Cagney <ac131313@redhat.com>
8133
8134 * cris-tdep.c: Fix function declaration indentation.
8135 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
8136 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
8137 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
8138 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
8139 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
8140 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
8141
8142 2003-01-18 Michael Chastain <mec@shout.net>
8143
8144 * README (Unpacking and Installation -- quick overview):
8145 Warn against ".../gdb-5.3/gdb/configure".
8146
8147 2003-01-18 Andrew Cagney <ac131313@redhat.com>
8148
8149 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
8150 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8151 (struct frame_unwind): Declare opaque.
8152 (dummy_frame_p): Declare function.
8153 * dummy-frame.c (dummy_frame_id_unwind): Make static.
8154 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8155 * dummy-frame.c: Include "frame-unwind.h".
8156 (dummy_frame_p): New function.
8157 (dummy_frame_unwind): New variable.
8158 * frame.c: Include "frame-unwind.h".
8159 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
8160 to use the new unwind field.
8161 (set_unwind_by_pc): Delete function.
8162 (create_new_frame, get_prev_frame): Set unwind field using
8163 frame_unwind_find_by_pc.
8164 (trad_frame_unwind, trad_frame_unwinder): New variables.
8165 * frame.h (trad_frame_unwind): Declare variable.
8166 (frame_id_unwind_ftype): Delete declaration.
8167 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
8168 (struct frame_unwind): Declare opaque.
8169 (struct frame_info): Replace the fields id_unwind, pc_unwind and
8170 register_unwind with a single unwind pointer.
8171 * frame-unwind.h, frame-unwind.c: New files.
8172 * Makefile.in (SFILES): Add frame-unwind.c.
8173 (frame_unwind_h): Define.
8174 (COMMON_OBS): Add frame-unwind.o.
8175 (frame-unwind.o): Specify dependencies.
8176 (frame.o, dummy-frame.o): Update dependencies.
8177
8178 2003-01-18 Andrew Cagney <ac131313@redhat.com>
8179
8180 * ada-valprint.c: Eliminate PTR.
8181 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
8182 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
8183 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
8184 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
8185 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
8186 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
8187 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8188
8189 2003-01-17 Andrew Cagney <ac131313@redhat.com>
8190
8191 * main.c (captured_main): Don't use PTR.
8192 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
8193 * gdbtypes.c (lookup_primitive_typename): Ditto.
8194 (lookup_struct_elt_type): Ditto.
8195 * f-valprint.c (info_common_command): Ditto.
8196 (list_all_visible_commons): Ditto.
8197 * jv-typeprint.c (java_type_print_base): Ditto.
8198
8199 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
8200 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
8201 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
8202 i386-interix-nat.c and i386-interix-tdep.c. Rename
8203 m68klinux-nat.c and m68klinux-tdep.c. Rename
8204 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
8205 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
8206 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
8207 * main.c (captured_main): Use xfree, not free.
8208
8209 2003-01-16 Andrew Cagney <ac131313@redhat.com>
8210
8211 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
8212 ID back using a parameter.
8213 * frame.c (frame_id_unwind): Update call.
8214 (frame_saved_regs_id_unwind): Update.
8215 * dummy-frame.c (dummy_frame_id_unwind): Update function.
8216 * dummy-frame.h (struct frame_id): Add opaque declaration.
8217 (dummy_frame_id_unwind): Update declaration.
8218
8219 2003-01-15 Andrew Cagney <ac131313@redhat.com>
8220
8221 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
8222
8223 2003-01-15 Stephen P. Smith <ischis2@cox.net>
8224
8225 * MAINTAINERS (Stephen P. Smith): Updated email address.
8226
8227 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
8228
8229 Fix PR gdb/898
8230 * breakpoint.c (until_break_command): Add new argument. Use it to
8231 decide whether to stop only at the current frame or not.
8232 * breakpoint.h (until_break_command): Update prototype.
8233 * infcmd.c (until_command): Add new argument to until_break_command
8234 call.
8235 (advance_command): New function.
8236 (_initialize_infcmd): Update help string for 'until' command.
8237 Add new 'advance' command.
8238
8239 2003-01-14 David Carlton <carlton@math.stanford.edu>
8240
8241 * linespec.c (decode_line_1): Normalize comments.
8242 (set_flags): Ditto.
8243 (locate_first_half): Ditto.
8244 (decode_compound): Ditto.
8245 (symtab_from_filename): Ditto.
8246 (decode_all_digits): Ditto.
8247 (decode_dollar): Ditto.
8248 (find_methods): Ditto.
8249 (find_toplevel_char): Ditto.
8250
8251 2003-01-13 Andrew Cagney <ac131313@redhat.com>
8252
8253 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
8254 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
8255 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
8256 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
8257 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
8258 * language.c, language.h, m32r-tdep.c: Update copyright.
8259 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
8260 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
8261 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
8262 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
8263 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
8264 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
8265
8266 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
8267
8268 * stabsread.h (process_later, resolve_cfront_continuation):
8269 Obsolete.
8270 Update copyright years.
8271 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
8272 Update copyright year.
8273 * dbxread.c(struct cont_elem): Obsolete.
8274 (process_later, process_now): Obsolete functions.
8275 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
8276 Update copyright year.
8277 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
8278 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
8279 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
8280 (parse_partial_symbols): Obsolete cfront support.
8281 * stabsread.c
8282 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
8283 macros.
8284 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
8285 read_cfront_baseclasses, read_cfront_member_functions,
8286 resolve_cfront_continuation,read_cfront_static_fields,
8287 copy_cfront_struct_fields): Obsolete functions.
8288 (define_symbol, read_one_struct_field): Obsolete cfront support.
8289 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
8290 Update Copyright year.
8291
8292 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
8293
8294 * stack.c (print_frame_info, print_stack_frame_base_stub,
8295 print_stack_frame_base, show_and_print_stack_frame_stub,
8296 show_and_print_stack_frame, print_only_stack_frame_stub,
8297 print_only_stack_frame): Delete functions.
8298 (print_stack_frame_stub): Call print_frame_info instead of
8299 print_frame_info_base.
8300 (print_frame_info_base): Rename to print_frame_info.
8301 (backtrace_command_1): Call print_frame_info, instead of
8302 print_frame_info_base.
8303 (current_frame_command): Call print_stack_frame, instead of
8304 print_only_stack_frame.
8305 (frame_command): Call print_stack_frame, instead of
8306 show_and_print_stack_frame.
8307 (up_command): Ditto.
8308 (down_command): Ditto.
8309 * frame.h (print_only_stack_frame): Delete prototype.
8310 * infrun.c (normal_stop): Call print_stack_frame, instead of
8311 show_and_print_stack_frame.
8312 * thread.c (info_threads_command): Call print_stack_frame, instead
8313 of print_only_stack_frame.
8314
8315 2003-01-13 Andrew Cagney <ac131313@redhat.com>
8316
8317 * README (Graphical interface to GDB): Update URL. Point at
8318 gdb/links/.
8319
8320 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
8321 version match.
8322
8323 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8324
8325 * symtab.c (find_pc_sect_line): Don't consider end-of-function
8326 lines.
8327
8328 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8329
8330 * thread-db.c (attach_thread): Prototype.
8331 (struct private_thread_info): Remove lwpid. Add thread handle (th),
8332 thread information (ti), and valid flags (th_valid, ti_valid).
8333 (attach_thread): Move target_pid_to_str call to after the thread
8334 is added to GDB's list. Initialize the cache.
8335 (thread_get_info_callback, thread_db_map_id2thr)
8336 (thread_db_get_info): New functions.
8337 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
8338 (thread_db_store_registers, thread_db_thread_alive)
8339 (thread_db_get_thread_local_address): Use them.
8340 (thread_db_pid_to_str): Likewise. Return "Missing" instead
8341 of calling error() for threads in unknown state.
8342
8343 (clear_lwpid_callback): New function.
8344 (thread_db_resume): Use it to clear the cache.
8345
8346 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8347
8348 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
8349 (resume_callback): Remove dead code.
8350
8351 2003-01-13 Andrew Cagney <ac131313@redhat.com>
8352
8353 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
8354 predicate.
8355 * gdbarch.h, gdbarch.c: Regenerate.
8356 * stack.c (frame_info): Only initialize the saved registers when
8357 FRAME_INIT_SAVED_REGS_P.
8358 * frame.c (frame_saved_regs_register_unwind): Assert
8359 FRAME_INIT_SAVED_REGS_P.
8360 (deprecated_generic_get_saved_register): Ditto.
8361
8362 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8363
8364 * source.c (openp): Squelch warning about "filename".
8365
8366 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8367
8368 * source.c (openp): If the file does not exist don't necessarily
8369 search the path.
8370
8371 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8372
8373 Fix PR gdb/872.
8374 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
8375 (integer_types_same_name_p): New function.
8376 (rank_one_type): Use it.
8377 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
8378
8379 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8380
8381 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
8382 variables.
8383 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
8384 * configure.in: Add --with-sysroot.
8385 * configure: Regenerated.
8386 * main.c (gdb_sysroot): New variable.
8387 (captured_main): Initialize gdb_sysroot.
8388 * defs.h (gdb_sysroot): New extern declaration.
8389 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
8390
8391 2003-01-12 Michael Chastain <mec@shout.net>
8392
8393 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
8394
8395 2003-01-12 Michael Chastain <mec@shout.net>
8396
8397 * top.c (print_gdb_version): Bump copyright year to 2003.
8398
8399 2003-01-12 David Carlton <carlton@bactrian.org>
8400
8401 * linespec.c (symtab_from_filename): Rename variable 's' to
8402 'file_symtab'.
8403
8404 2003-01-12 Andrew Cagney <ac131313@redhat.com>
8405
8406 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
8407 dummy frame.
8408 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
8409
8410 2003-01-12 Andrew Cagney <ac131313@redhat.com>
8411
8412 * d10v-tdep.c: Include "gdb_assert.h".
8413 (d10v_store_return_value): Rewrite to match current interface.
8414 (d10v_extract_struct_value_address): Ditto.
8415 (d10v_extract_return_value): Ditto.
8416 (d10v_gdbarch_init): Set store_restore_value,
8417 extract_struct_value_address and extract_return_value.
8418
8419 2003-01-12 J. Brobecker <brobecker@gnat.com>
8420
8421 * hpread.c (set_namestring): New procedure replacing the
8422 SET_NAMESTRING macro.
8423 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
8424 by calls to set_namestring.
8425
8426 2003-01-11 J. Brobecker <brobecker@gnat.com>
8427
8428 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
8429 a compilation warning.
8430 (hpread_process_one_debug_symbol): Likewise.
8431
8432 2003-01-10 David Carlton <carlton@math.stanford.edu>
8433
8434 * linespec.c (decode_line_1): Rename variable 's' to
8435 'file_symtab'.
8436 (decode_all_digits): Rename argument 's' to 'file_symtab'.
8437 (decode_dollar): Ditto.
8438 (decode_variable): Ditto.
8439 (symbol_found): Ditto.
8440
8441 2003-01-09 Michael Chastain <mec@shout.net>
8442
8443 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
8444
8445 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
8446
8447 * win32-nat.c (set_process_privilege): New function.
8448 (child_attach): Call set_process_privilege() to enable the
8449 SE_DEBUG_NAME user privilege if available in process token.
8450
8451 2003-01-10 J. Brobecker <brobecker@gnat.com>
8452
8453 * hpread.c (hpread_process_one_debug_symbol): Fix a small
8454 compilation error in the previous revision.
8455
8456 2003-01-09 David Carlton <carlton@math.stanford.edu>
8457
8458 * linespec.c: Update copyright.
8459
8460 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
8461
8462 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
8463 than inferior_ptid.
8464 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
8465
8466 2003-01-09 Andrew Cagney <ac131313@redhat.com>
8467
8468 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
8469 Update comments.
8470 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
8471 (frame_saved_regs_zalloc): Update.
8472 (frame_saved_regs_register_unwind): Update.
8473 (create_new_frame): Update.
8474 (get_prev_frame): Update.
8475 (frame_extra_info_zalloc): Update.
8476 (deprecated_get_frame_saved_regs): Update.
8477 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
8478 * cris-tdep.c: Update comment.
8479
8480 * somsolib.h: Fix function indentation.
8481 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
8482 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
8483 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
8484 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
8485 * somsolib.c, inftarg.c: Remove assignment in if conditional.
8486
8487 * infrun.c (follow_fork): Use ISO C definition.
8488 * expprint.c (print_subexp): Use xfree instead of free.
8489 * charset.c: Include "gdb_string.h" instead of <string.h>.
8490 (register_iconv_charsets): Use ISO C definition.
8491 (host_charset, target_charset): Ditto.
8492 * Makefile.in (charset.o): Update dependencies.
8493 (mi-cmd-env.o): Update dependencies.
8494
8495 2003-01-08 Andrew Cagney <cagney@redhat.com>
8496
8497 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
8498 get_frame_base.
8499
8500 2003-01-08 Andrew Cagney <ac131313@redhat.com>
8501
8502 * gdb_mbuild.sh: Add --keep option. When specified, keep the
8503 build directories. Save edited gdb output in Mbuild.log. If a
8504 build fails, remove any final GDB executable.
8505
8506 2003-01-08 Andrew Cagney <ac131313@redhat.com>
8507
8508 * gdb_mbuild.sh: Edit the output of `maint print architecture'
8509 replacing hex constants with function names and stripping leading
8510 file name directory prefixes.
8511
8512 2003-01-08 Andrew Cagney <cagney@redhat.com>
8513
8514 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
8515 get_frame_base.
8516
8517 2003-01-08 David Carlton <carlton@math.stanford.edu>
8518
8519 * linespec.c (decode_line_1): Move code into decode_variable.
8520 (decode_variable): New function.
8521
8522 2003-01-08 Andrew Cagney <ac131313@redhat.com>
8523
8524 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
8525
8526 2003-01-08 Andrew Cagney <cagney@redhat.com>
8527
8528 * cris-tdep.c (cris_frame_init_saved_regs): Use
8529 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
8530 saved_regs buffer.
8531 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8532 (sh64_nofp_frame_init_saved_regs): Ditto.
8533 (sh_fp_frame_init_saved_regs): Ditto.
8534 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
8535 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
8536 * mcore-tdep.c (analyze_dummy_frame): Ditto.
8537 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8538
8539 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
8540
8541 * minsyms.c (lookup_minimal_symbol): Update comment.
8542 (lookup_minimal_symbol_text): Update comment. Use the hash table.
8543 (lookup_minimal_symbol_solib_trampoline): Likewise.
8544
8545 2003-01-08 Andrew Cagney <cagney@redhat.com>
8546
8547 * d10v-tdep.c (d10v_init_extra_frame_info): Use
8548 frame_relative_level.
8549
8550 * alpha-tdep.c: Use get_frame_extra_info.
8551 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8552 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
8553 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
8554 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
8555
8556 * alpha-tdep.c: Use get_next_frame.
8557 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8558 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
8559 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
8560 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
8561 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
8562 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
8563 * xstormy16-tdep.c: Ditto.
8564
8565 2003-01-07 Andrew Cagney <cagney@redhat.com>
8566
8567 * alpha-tdep.c: Use get_frame_base.
8568 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
8569 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
8570 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
8571 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
8572 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
8573 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
8574 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
8575 * config/sparc/tm-sparc.h: Ditto.
8576
8577 2003-01-07 Andrew Cagney <cagney@redhat.com>
8578
8579 * frame.c (deprecated_get_frame_context): New function.
8580 (deprecated_set_frame_context): New function.
8581 * frame.h (deprecated_get_frame_context): Declare.
8582 (deprecated_set_frame_context): Declare.
8583 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
8584 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8585
8586 2003-01-07 Andrew Cagney <cagney@redhat.com>
8587
8588 * frame.c (deprecated_set_frame_next_hack): New function.
8589 (deprecated_set_frame_prev_hack): New function.
8590 * frame.h (deprecated_set_frame_next_hack): Declare.
8591 (deprecated_set_frame_prev_hack): Declare.
8592 * mcore-tdep.c (analyze_dummy_frame): Use
8593 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
8594 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8595
8596 2003-01-07 David Carlton <carlton@math.stanford.edu>
8597
8598 * linespec.c (decode_line_1): Move code into decode_dollar.
8599 (decode_dollar): New function.
8600
8601 2003-01-07 Andrew Cagney <cagney@redhat.com>
8602
8603 * arm-tdep.c (arm_init_extra_frame_info): Use
8604 deprecated_update_frame_base_hack.
8605 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
8606 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
8607 (fix_frame_pointer): Ditto.
8608 (mn10300_analyze_prologue): Ditto.
8609
8610 2003-01-07 Andrew Cagney <cagney@redhat.com>
8611
8612 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
8613 extra_info using frame_extra_info_zalloc.
8614 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8615 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
8616 (sh64_init_extra_frame_info): Ditto.
8617 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
8618 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
8619 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
8620 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
8621 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
8622 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
8623 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
8624 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
8625 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
8626 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
8627 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8628 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
8629
8630 * mn10300-tdep.c (analyze_dummy_frame): Use
8631 deprecated_set_frame_extra_info_hack.
8632 * mcore-tdep.c (analyze_dummy_frame): Ditto.
8633
8634 2003-01-07 J. Brobecker <brobecker@gnat.com>
8635
8636 * mdebugread.c (parse_symbol): Skip stProc entries which storage
8637 class is not scText. These do not define "real" procedures.
8638 (parse_partial_symbols): Likewise.
8639
8640 2003-01-06 Michael Snyder <msnyder@redhat.com>
8641
8642 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
8643
8644 2003-01-06 Andrew Cagney <ac131313@redhat.com>
8645
8646 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
8647 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
8648 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
8649 deprecated_frame_xmalloc_with_cleanup.
8650 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
8651 deprecated_frame_xmalloc.
8652 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
8653 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
8654
8655 2003-01-06 Andrew Cagney <cagney@redhat.com>
8656
8657 * x86-64-linux-tdep.c: Include "osabi.h".
8658 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
8659
8660 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
8661
8662 2003-01-06 Andrew Cagney <cagney@redhat.com>
8663
8664 * MAINTAINERS (Target Instruction Set Architectures): Update
8665 arm-elf. Can be built with -Werror, has been multiarched.
8666
8667 * value.h (unpack_long): Make buffer parameter constant.
8668 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
8669 * scm-lang.h (scm_parse): Ditto.
8670 * defs.h (extract_typed_address, extract_address): Ditto.
8671 (extract_long_unsigned_integer): Ditto.
8672 * inferior.h (unsigned_pointer_to_address): Ditto.
8673 (signed_pointer_to_address): Ditto.
8674 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
8675 * gdbarch.h, gdbarch.c: Regenerate.
8676 * findvar.c (extract_long_unsigned_integer): Update.
8677 (extract_address): Update.
8678 (extract_typed_address): Update.
8679 (unsigned_pointer_to_address): Update.
8680 * values.c (unpack_long): Update.
8681 (unpack_double): Update.
8682 (unpack_pointer): Update.
8683 (unpack_field_as_long): Update.
8684 * d10v-tdep.c (d10v_pointer_to_address): Update.
8685 * avr-tdep.c (avr_pointer_to_address): Update.
8686 * scm-lang.c (scm_unpack): Update.
8687 * findvar.c (signed_pointer_to_address): Update.
8688
8689 2003-01-06 Michal Ludvig <mludvig@suse.cz>
8690
8691 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
8692 since it is in i386-tdep.c.
8693
8694 2003-01-06 J. Brobecker <brobecker@gnat.com>
8695
8696 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
8697 failure introduced in the previous change.
8698
8699 2003-01-05 Michael Chastain <mec@shout.net>
8700
8701 * README: Remove references to deleted remote-*.c files:
8702 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
8703 remote-nrom.c, remote-os9k.c, remote-udi.c.
8704
8705 2003-01-05 Mark Kettenis <kettenis@gnu.org>
8706
8707 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
8708 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
8709 i386_get_longjmp_target.
8710
8711 2003-01-05 Andrew Cagney <ac131313@redhat.com>
8712
8713 * arm-tdep.c (prologue_cache): Change to a pointer.
8714 (_initialize_arm_tdep): Allocate prologue_cache.
8715 (check_prologue_cache): Update.
8716 (save_prologue_cache): Update.
8717 (arm_gdbarch_init): Update.
8718
8719 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8720
8721 * stabsread.c (update_method_name_from_physname): Call complaint()
8722 instead of error.
8723
8724 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8725
8726 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
8727 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
8728 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
8729
8730 * blockframe.c: Include "gdbcmd.h" and "command.h".
8731 (backtrace_below_main): New variable.
8732 (file_frame_chain_valid, func_frame_chain_valid)
8733 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
8734 (generic_func_frame_chain_valid): Remove functions.
8735 (frame_chain_valid, do_flush_frames_sfunc): New functions.
8736 (_initialize_blockframe): New function.
8737 * Makefile.in (blockframe.o): Update dependencies.
8738 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
8739 comment. Call frame_chain_valid ().
8740 * frame.h: Remove old prototypes. Add prototype for
8741 frame_chain_valid and update comments to match.
8742 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
8743 Remove old comment.
8744 * gdbarch.h: Regenerated.
8745 * gdbarch.c: Regenerated.
8746
8747 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8748 set_gdbarch_frame_chain_valid.
8749 * avr-tdep.c (avr_gdbarch_init): Likewise.
8750 * cris-tdep.c (cris_gdbarch_init): Likewise.
8751 * frv-tdep.c (frv_gdbarch_init): Likewise.
8752 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8753 * i386-tdep.c (i386_svr4_init_abi): Likewise.
8754 (i386_nw_init_abi): Likewise.
8755 (i386_gdbarch_init): Likewise.
8756 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
8757 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8758 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8759 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
8760 * mips-tdep.c (mips_gdbarch_init): Likewise.
8761 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8762 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
8763 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8764 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8765 * s390-tdep.c (s390_gdbarch_init): Likewise.
8766 * sh-tdep.c (sh_gdbarch_init): Likewise.
8767 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
8768 * v850-tdep.c (v850_gdbarch_init): Likewise.
8769 * vax-tdep.c (vax_gdbarch_init): Likewise.
8770 * x86-64-tdep.c (x86_64_init_abi): Likewise.
8771
8772 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
8773 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
8774 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
8775 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
8776 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
8777 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
8778 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
8779 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
8780
8781 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8782
8783 * Makefile.in (acconfig_h): Remove incorrect macro.
8784 (config_h): Define.
8785 (osabi.o): Update dependencies.
8786 * configure.tgt: Set gdb_osabi based on target triplet.
8787 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
8788 * configure: Regenerated.
8789 * config.in: Regenerated.
8790 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
8791 (GDB_OSABI_DEFAULT): Define if not already defined.
8792 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
8793 (set_osabi_string): New variables.
8794 (gdbarch_register_osabi): Add new OS ABI to
8795 gdb_osabi_available_names.
8796 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
8797 (set_osabi, show_osabi): New functions.
8798 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
8799
8800 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8801
8802 * arch-utils.c (gdbarch_info_init): Set osabi to
8803 GDB_OSABI_UNINITIALIZED.
8804 * gdbarch.sh: Add osabi to struct gdbarch and to struct
8805 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
8806 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
8807 * gdbarch.c: Regenerated.
8808 * gdbarch.h: Regenerated.
8809 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
8810 there's no BFD.
8811 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
8812 * osabi.h (enum gdb_osabi): Move to defs.h.
8813 (gdbarch_init_osabi): Update prototype.
8814 * defs.h (enum gdb_osabi): Moved here.
8815 * Makefile.in: Update dependencies.
8816
8817 * alpha-tdep.h: Don't include "osabi.h".
8818 (struct gdbarch_tdep): Remove osabi member.
8819 * alpha-tdep.c: Include "osabi.h".
8820 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8821 iterate over arches. Update call to gdbarch_init_osabi.
8822 (alpha_dump_tdep): Don't dump osabi.
8823 * alpha-linux-tdep.c: Include "osabi.h".
8824 * alpha-osf1-tdep.c: Include "osabi.h".
8825 * alphafbsd-tdep.c: Include "osabi.h".
8826 * alphanbsd-tdep.c: Include "osabi.h".
8827
8828 * arm-tdep.h: Don't include "osabi.h".
8829 (struct gdbarch_tdep): Remove osabi member.
8830 * arm-tdep.c: Include "osabi.h".
8831 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8832 iterate over arches. Update call to gdbarch_init_osabi.
8833 (arm_dump_tdep): Don't dump osabi.
8834 * arm-linux-tdep.c: Include "osabi.h".
8835 * armnbsd-tdep.c: Include "osabi.h".
8836
8837 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
8838 Update call to gdbarch_init_osabi.
8839
8840 * i386-tdep.h: Don't include "osabi.h".
8841 (struct gdbarch_tdep): Remove osabi member.
8842 * i386-tdep.c: Include "osabi.h".
8843 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8844 iterate over arches. Update call to gdbarch_init_osabi.
8845 (i386_dump_tdep): Don't dump osabi.
8846 * i386-linux-tdep.c: Include "osabi.h".
8847 * i386-sol2-tdep.c: Include "osabi.h".
8848 * i386bsd-tdep.c: Include "osabi.h".
8849 * i386gnu-tdep.c: Include "osabi.h".
8850 * i386ly-tdep.c: Include "osabi.h".
8851 * i386nbsd-tdep.c: Include "osabi.h".
8852 * i386obsd-tdep.c: Include "osabi.h".
8853
8854 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
8855 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8856 check osabi when iterating over arches. Update call to
8857 gdbarch_init_osabi.
8858 (mips_dump_tdep): Don't dump osabi.
8859
8860 * ns32k-tdep.h: Don't include "osabi.h".
8861 (struct gdbarch_tdep): Remove.
8862 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
8863 gdbarch_lookup_osabi. Don't iterate over arches. Don't
8864 allocate tdep. Update call to gdbarch_init_osabi.
8865 (ns32k_dump_tdep): Remove.
8866 (_initialize_ns32k_tdep): Update call to gdbarch_register.
8867 * ns32knbsd-tdep.c: Include "osabi.h".
8868
8869 * ppc-tdep.h: Don't include "osabi.h".
8870 (struct gdbarch_tdep): Remove osabi member.
8871 * rs6000-tdep.c: Include "osabi.h".
8872 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
8873 osabi when iterating over arches. Update call to
8874 gdbarch_init_osabi.
8875 (rs6000_dump_tdep): Don't dump osabi.
8876 * ppc-linux-tdep.c: Include "osabi.h".
8877 * ppcnbsd-tdep.c: Include "osabi.h".
8878
8879 * sh-tdep.h: Don't include "osabi.h".
8880 (struct gdbarch_tdep): Remove osabi member.
8881 * sh-tdep.c: Include "osabi.h".
8882 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8883 iterate over arches. Update call to gdbarch_init_osabi.
8884 (sh_dump_tdep): Don't dump osabi.
8885 * shnbsd-tdep.c: Include "osabi.h".
8886
8887 * sparc-tdep.c: Include "osabi.h".
8888 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8889 iterate over arches. Update call to gdbarch_init_osabi.
8890 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
8891 tdep structure.
8892
8893 * vax-tdep.h: Don't include "osabi.h".
8894 (struct gdbarch_tdep): Remove.
8895 * vax-tdep.c: Include "osabi.h".
8896 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
8897 iterate over arches. Don't allocate tdep. Update call
8898 to gdbarch_init_osabi.
8899 (vax_dump_tdep): Remove.
8900 (_initialize_vax_tdep): Update call to gdbarch_register.
8901
8902 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8903
8904 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
8905 entirely.
8906 (breakpoint_re_set_one): Don't fetch the value for a disabled
8907 watchpoint.
8908
8909 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8910
8911 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
8912 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
8913 (COERCE_FLOAT_TO_DOUBLE): Remove.
8914 * gdbarch.c: Regenerate.
8915 * gdbarch.h: Regenerate.
8916 * Makefile.in: Remove value_h from gdbarch_h.
8917 * valops.c (coerce_float_to_double): New variable.
8918 (default_coerce_float_to_double): Remove.
8919 (standard_coerce_float_to_double): Remove.
8920 (value_arg_coerce): Use coerce_float_to_double.
8921 (_initialize_valops): Add "set coerce-float-to-double".
8922 * value.h (default_coerce_float_to_double): Remove prototype.
8923 (standard_coerce_float_to_double): Remove prototype.
8924
8925 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
8926 prototyped.
8927 * mdebugread.c (parse_symbol): Likewise.
8928 * stabsread.c (define_symbol): Mark all functions as prototyped.
8929
8930 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
8931 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
8932 set_gdbarch_coerce_float_to_double.
8933 * arm-tdep.c (arm_gdbarch_init): Likewise.
8934 * frv-tdep.c (frv_gdbarch_init): Likewise.
8935 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
8936 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
8937 * mips-tdep.c (mips_gdbarch_init): Likewise.
8938 (mips_coerce_float_to_double): Remove.
8939 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8940 (rs6000_coerce_float_to_double): Remove.
8941 * s390-tdep.c (s390_gdbarch_init): Likewise.
8942 * sh-tdep.c (sh_gdbarch_init): Likewise.
8943 (sh_coerce_float_to_double): Remove.
8944 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
8945 (sparc_coerce_float_to_double): Remove.
8946 * v850-tdep.c (v850_gdbarch_init): Likewise.
8947 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8948 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8949 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
8950 (hppa_coerce_float_to_double): Remove prototype.
8951 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8952
8953 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8954
8955 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
8956
8957 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8958
8959 Suggested by Stewart Brown <sb24@avaya.com>:
8960 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
8961 in recursive calls. Handle TYPE_CODE_TYPEDEF.
8962 (c_type_print_varspec_suffix): Likewise.
8963
8964 2003-01-04 Mark Kettenis <kettenis@gnu.org>
8965
8966 * configure.in: Don't set and AC_SUBST SUBDIRS.
8967 * configure: Regenerated.
8968
8969 * configure.in: Remove code dealing with shared libraries.
8970 * Makefile.in: Remove HLDFLAGS and HLDENV.
8971 * configure: Regenerated.
8972
8973 2003-01-04 Andrew Cagney <ac131313@redhat.com>
8974
8975 * frame.c (deprecated_frame_xmalloc): New function.
8976 (deprecated_set_frame_saved_regs_hack): New function.
8977 (deprecated_set_frame_extra_info_hack): New function.
8978 * frame.h (deprecated_frame_xmalloc): Declare.
8979 (deprecated_set_frame_saved_regs_hack): Declare.
8980 (deprecated_set_frame_extra_info_hack): Declare.
8981
8982 2003-01-04 Mark Kettenis <kettenis@gnu.org>
8983
8984 * configure.in: Move code that provides the --enable-gdbtk option
8985 right after the code that handles the --enable-tui option, and
8986 polish it somewhat.
8987 * configure: Regenerated.
8988
8989 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
8990 AC_CHECK_FUNCS and remove the old check for pread64.
8991 * acinclude.m4 (AC_GNU_SOURCE): New macro.
8992 * acconfig.h (_GNU_SOURCE): Add.
8993 (HAVE_PREAD64): Remove.
8994 * configure, aclocal.m4, config.in: Regenerated.
8995
8996 2003-01-03 Andrew Cagney <ac131313@redhat.com>
8997
8998 * alpha-tdep.c: Use get_frame_saved_regs.
8999 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9000 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9001 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
9002 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
9003 * vax-tdep.c, xstormy16-tdep.c: Ditto.
9004
9005 2003-01-03 Mark Kettenis <kettenis@gnu.org>
9006
9007 * configure.in: Remove all use of the SUBDIRS variable; add
9008 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
9009 code providing the --enable-multi-ice option, and move it right in
9010 front of the code that checks whether gdbserver is supported.
9011 Polish that too.
9012 * configure: Regenerated.
9013 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
9014 @SUBDIRS@.
9015
9016 2003-01-03 Andrew Cagney <cagney@redhat.com>
9017
9018 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
9019 * avr-tdep.c, cris-tdep.c: Ditto.
9020 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9021 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
9022
9023 2003-01-03 Mark Kettenis <kettenis@gnu.org>
9024
9025 * configure.in: Remove --enable-netrom option.
9026 * configure: Regenerated.
9027
9028 2003-01-03 Mark Kettenis <kettenis@gnu.org>
9029
9030 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
9031 declaration for `struct re_pattern_buffer' instead.
9032 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
9033
9034 2003-01-03 J. Brobecker <brobecker@gnat.com>
9035
9036 * mdebugread.c (parse_symbol): Count until the stEnd matching
9037 the structure name.
9038
9039 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9040
9041 * configure.in: Remove --with-cpu option.
9042 subscripts. Remove evil changequotes here.
9043 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
9044 * config.in, configure: Regenerated.
9045
9046 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
9047 * configure.in: Cleanup section that sources GDB and BFD configure
9048 subscripts. Remove evil changequotes here.
9049 * config.in, configure: Regenerated.
9050
9051 2003-01-02 Andrew Cagney <ac131313@redhat.com>
9052
9053 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
9054 frame accessor methods.
9055 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9056 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9057 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
9058 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
9059 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
9060 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9061 * z8k-tdep.c: Ditto.
9062
9063 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9064
9065 * configure.in: Remove UI_OUT configuration code.
9066 * ada-lang.c: Update assuming UI_OUT is always true.
9067 * Makefile.in (UIOUT_CFLAGS): Remove.
9068 * configure: Regenerated.
9069 * TODO: Remove blurb about elimination of -DUI_OUT.
9070
9071 * configure.in: Move code that provides the --enable-gdbcli,
9072 --enable-gdbmi options right before the code that handles the
9073 --enable-tui option. Polish a bit.
9074 * configure: Regenerated.
9075
9076 * configure.in: Rewrite check for GNU regex and the
9077 --without-included regex option, and move it into the "Checks for
9078 library functions" section. This makes us use the system regex
9079 again by default on systems with version 2 of the GNU C library.
9080 This was apparently broken.
9081 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
9082 * acconfig.h (USE_INCLUDED_REGEX): Remove.
9083 * config.in, configure: Regenerated.
9084
9085 * configure.in: Move code that provides the --enable-tui option
9086 before the "Checks for libraries" section. Polish the code
9087 somewhat and set need_curses to yes if we build the TUI. Rewrite
9088 code that looks for a library providing termcap functionality to
9089 match more closely what's done in the Readline library, and move
9090 it into to the "Checks for libraries" section.
9091 * configure: Regenerated.
9092 * Makefile.in (TERMCAP): Remove variable.
9093 * config/i386/go32.mh (TERMCAP): Remove variable.
9094
9095 2003-01-02 Andrew Cagney <ac131313@redhat.com>
9096
9097 * MAINTAINERS: Mention gdb_mbuild.sh.
9098 * gdb_mbuild.sh: Rewrite.
9099
9100 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9101
9102 * configure.in: Fix typo in last change.
9103 * config.in, configure: Regenerated.
9104
9105 2003-01-02 Andrew Cagney <ac131313@redhat.com>
9106
9107 * valarith.c (value_binop): Delete obsolete code and comments.
9108 * configure.host: Ditto.
9109 * buildsym.h (make_blockvector): Ditto.
9110 * buildsym.c (make_blockvector): Ditto.
9111 * defs.h (enum language): Ditto.
9112 (chill_demangle): Ditto.
9113 * elfread.c (elf_symtab_read): Ditto.
9114 * dwarfread.c (CHILL_PRODUCER): Ditto.
9115 (set_cu_language): Ditto.
9116 (handle_producer): Ditto.
9117 * expprint.c (print_subexp): Ditto.
9118 * gdbtypes.c (chill_varying_type): Ditto.
9119 * gdbtypes.h (builtin_type_chill_bool): Ditto.
9120 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
9121 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
9122 (chill_varying_type): Ditto.
9123 * language.h (_LANG_chill): Ditto.
9124 * language.c (binop_result_type, integral_type): Ditto.
9125 (character_type, string_type, structured_type): Ditto.
9126 (lang_bool_type, binop_type_check): Ditto.
9127 * stabsread.h (os9k_stabs): Ditto.
9128 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
9129 (define_symbol, read_type, read_struct_fields): Ditto.
9130 (read_array_type, read_enum_type, read_huge_number): Ditto.
9131 (read_range_type, start_stabs): Ditto.
9132 * symfile.c (init_filename_language_table): Ditto.
9133 (add_psymbol_with_dem_name_to_list): Ditto.
9134 * symtab.c (symbol_init_language_specific): Ditto.
9135 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
9136 * symtab.h (struct general_symbol_info): Ditto.
9137 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
9138 * typeprint.c (typedef_print): Ditto.
9139 * utils.c (fprintf_symbol_filtered): Ditto.
9140 * valops.c (value_cast, search_struct_field, value_slice): Delete
9141 obsolete code.
9142 (varying_to_slice): Delete function.
9143 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
9144 (varying_to_slice): Delete declaration.
9145 * MAINTAINERS: Update.
9146
9147 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9148
9149 * configure.in: Reorganize "Checks for library functions section"
9150 a bit. Remove check for `btowc' and `isascii' functions.
9151 * configure: Regenerated.
9152
9153 * acconfig.h (_MSE_INT_H): Remove.
9154 * configure.in: Create "Checks for header files" section, and move
9155 appropriate tests there. Don't check for objlist.h, wchar.h,
9156 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
9157 misdetection fix. Also add "Checks for types", "Checks for
9158 compiler characteristics" and "Checks for library functions"
9159 sections.
9160 * config.in, configure: Regenerated.
9161
9162 * configure.in: Create "Checks for programs" section, and move
9163 appropriate tests there.
9164
9165 2003-01-01 Mark Kettenis <kettenis@gnu.org>
9166
9167 * configure.in: Create "Checks for libraries" section, and move
9168 appropriate tests there. Cleanup check for wctype in libw. Use
9169 AC_SEARCH_LIBS to see whether we need libsocket.
9170 * configure: Regenerated.
9171
9172 For older changes see ChangeLog-2002
9173 \f
9174 Local Variables:
9175 mode: change-log
9176 left-margin: 8
9177 fill-column: 74
9178 version-control: never
9179 End:
This page took 0.428314 seconds and 5 git commands to generate.