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