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