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