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