OSDN Git Service

From Jimi X <jimix@watson.ibm.com>:
[pf3gnuchains/pf3gnuchains3x.git] / gdb / ChangeLog
1 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
2
3         From Jimi X <jimix@watson.ibm.com>:
4         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5
6 2003-05-28  Jim Blandy  <jimb@redhat.com>
7
8         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
9         argument to ptrace to int; the system headers should give it the
10         right type, and pointers don't fit in ints on powerpc64-*-*.
11
12 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
13
14         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
15         DW_TAG_catch_block.
16
17 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
18
19         * stabsread.c (dbx_lookup_type): Make static.
20         (read_type): Ditto.
21         (add_undefined_type): Ditto.
22         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
23         not export.
24
25 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
26
27         * hpread.c (hpread_has_name): Make static.
28         (hpread_psymtab_to_symtab): Ditto.
29         (file_exists): Ditto.
30         (hpread_call_pxdb): Ditto.
31         (hpread_pxdb_needed): Ditto.
32         (hpread_quick_traverse): Ditto.
33         (hpread_get_header): Ditto.
34         (hpread_get_lntt): Ditto.
35         (hpread_get_slt): Ditto.
36         (class_of): Ditto.
37
38 2003-05-25  Andreas Schwab  <schwab@suse.de>
39
40         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
41         stack_align and deprecated_extra_stack_alignment_needed.
42         (m68k_stack_align): Delete.
43
44         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
45         (m68k_register_virtual_size): Likewise.
46         (altos_skip_prologue): Remove obsolete function.
47         (isi_frame_num_args): Likewise.
48         (news_frame_num_args): Likewise.
49         (m68k_fix_call_dummy): Make static.
50         (m68k_push_dummy_frame): Likewise.
51         (m68k_pop_frame): Likewise.
52         (m68k_skip_prologue): Likewise.
53         (m68k_frame_init_saved_regs): Likewise.
54         (m68k_saved_pc_after_call): Likewise.
55         (m68k_get_longjmp_target): Make multi-arch.
56         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
57         structure.  Register m68k_get_longjmp_target if enabled.
58         * m68k-tdep.h (struct gdbarch_tdep): Define.
59         * config/m68k/tm-m68k.h: Don't include "regcache.h".
60
61         * Makefile.in (config.status): Also depend on configure.tgt
62         and configure.host.
63         (m68klinux-tdep.o): Update dependencies.
64         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
65         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
66         (M68K_LINUX_JB_PC): Define.
67         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
68         and take additional parameter.
69         (m68k_linux_sigtramp_saved_pc): Update.
70         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
71         m68k_linux_pc_in_sigtramp, in_plt_section,
72         find_solib_trampoline_target.
73         * config/m68k/tm-linux.h: Don't include any tm headers.
74         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
75         (JB_ELEMENT_SIZE): Likewise.
76         (JB_PC): Likewise.
77         (GET_LONGJMP_TARGET): Likewise.
78         (IN_SIGTRAMP): Likewise.
79         (SVR4_SHARED_LIBS): Define this and include "solib.h".
80
81 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
82
83         * sparc-tdep.c (sparc32_do_push_arguments): New function.
84         (sparc32_push_arguments): Re-implement by calling
85         sparc32_do_push_arguments.
86
87 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
88
89         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
90         SPARC_O1_REGNUM): New defines.
91         (sparc32_extract_return_value): Rewrite to operate on a regcache.
92         (sparc32_store_return_value): New function.
93         (sparc_extract_struct_value_address): Rewrite to operate on a
94         regcache.
95         (sparc_gdbarch_init): Don't set
96         deprecated_extract_struct_value_address.  Set
97         extract_struct_value_address instead. Don't set
98         deprecated_extract_return_value and deprecated_store_return_value
99         for 32-bit targets.  Set extract_return_value and
100         store_return_value instead.
101         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
102         DEPRECTAED_EXTRACT_RETURN_VALUE,
103         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
104         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
105         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
106         (sparc_store_return_value): Remove prototype.
107         (sparc32_store_return_value): New prototype.
108         (sparc32_extract_return_value, sparc_extract_struct_value_address):
109         Adjust prototypes.
110
111 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
112
113         * sparcnbsd-tdep.c: Include "gdb_string.h".
114
115 2003-05-23  Andrew Cagney  <cagney@redhat.com>
116
117         * p-valprint.c (pascal_val_print): Replace extract_address with
118         the inline equivalent extract_unsigned_integer.
119         * jv-valprint.c (java_value_print): Ditto.
120         * ada-valprint.c (ada_val_print_1): Ditto.
121         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
122
123 2003-05-23  Theodore A. Roth  <troth@openavr.org>
124
125         * blockframe.c (frameless_look_for_prologue): Remove unused
126         after_prologue variable.
127
128 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
129
130         * blockframe.c (get_pc_function_start): Rewrite to avoid
131         asignments in if-statements.
132
133 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
134
135         Committed by Elena Zannoni  <ezannoni@redhat.com>.
136         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
137         files, don't relocate absolute symbols (and do use mst_abs).
138
139 2003-05-23  Andrew Cagney  <cagney@redhat.com>
140
141         * objc-lang.c: Include "gdb_assert.h".
142         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
143         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
144         (gdb_check, gdb_check_fatal): Delete functions.
145         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
146         gdb_assert.
147         (parse_selector, parse_method, find_methods, find_imps): Ditto.
148         * Makefile.in (objc-lang.o): Update dependencies.
149
150 2003-05-22  Ian Lance Taylor  <ian@airs.com>
151
152         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
153         with fprintf_filtered, not fprintf_unfiltered.
154
155 2003-05-22  Andrew Cagney  <cagney@redhat.com>
156
157         * stack.c (frame_info): Inline extract_address, replacing it with
158         extract_unsigned_integer.
159         * findvar.c (unsigned_pointer_to_address): Ditto.
160         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
161         * dwarf2expr.c (dwarf2_read_address): Ditto.
162         * frame.c (frame_pc_unwind): Update comment.
163         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
164
165 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
166
167         * infptrace.c (detach): Call print_sys_errmsg rather than
168         perror_with_name to issue warning message when errno is non-zero
169         after calling ptrace detach.
170
171 2003-05-21  J. Brobecker  <brobecker@gnat.com>
172
173         * config/pa/tm-hppa.h: Delete some unused macros. Move some
174         macro definitions from here...
175         * hppa-tdep.c: ...to there.
176
177 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
178
179         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
180         register_ptrace_addr().  Fix all callers.
181
182 2003-05-21  Andreas Schwab  <schwab@suse.de>
183
184         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
185         dependencies.
186         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
187         end.
188         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
189         (_initialize_m68k_linux_tdep): New function.
190         (m68k_linux_frame_saved_pc): Make static.
191         (m68k_linux_extract_return_value): Likewise.
192         (m68k_linux_store_return_value): Likewise.
193         (m68k_linux_extract_struct_value_address): Likewise.
194         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
195         Remove.
196         (DEPRECATED_STORE_RETURN_VALUE): Remove.
197         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
198         (DEPRECATED_FRAME_SAVED_PC): Remove.
199
200 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
201
202         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
203         regset numbering rather than our own.
204
205 2003-05-19  David Carlton  <carlton@bactrian.org>
206
207         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
208
209 2003-05-19  David Carlton  <carlton@bactrian.org>
210
211         Partial fix for PR c++/827.
212         * cp-support.h: Include symtab.h.
213         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
214         * cp-namespace.c: Update contributors.
215         (cp_lookup_symbol_nonlocal): New.
216         (lookup_namespace_scope, cp_lookup_symbol_namespace)
217         (lookup_symbol_file): Ditto.
218         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
219         * block.h: Declare block_scope, block_using, block_global_block.
220         * block.c (block_scope): New.
221         (block_using, block_global_block): Ditto.
222         * Makefile.in (cp_support_h): Depend on symtab_h.
223         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
224
225 2003-05-19  David Carlton  <carlton@bactrian.org>
226
227         * language.h (struct language_defn): Add 'la_value_of_this'
228         and 'la_lookup_symbol_nonlocal' members.
229         * symtab.h: Declare basic_lookup_symbol_nonlocal,
230         lookup_symbol_static, lookup_symbol_global,
231         lookup_symbol_aux_block.
232         * symtab.c (lookup_symbol_aux): Call language hooks to determine
233         if we should search fields of this and how to do static/global
234         lookup.
235         (lookup_symbol_aux_block): Make extern.
236         (basic_lookup_symbol_nonlocal): New.
237         (lookup_symbol_static, lookup_symbol_global): Ditto.
238         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
239         'la_lookup_symbol_nonlocal' members.
240         * c-lang.c (c_language_defn, cplus_language_defn)
241         (asm_language_defn, minimal_language_defn): Ditto.
242         * jv-lang.c (java_language_defn): Ditto.
243         * language.c (unknown_language_defn, auto_language_defn)
244         (local_language_defn): Ditto.
245         * m2-lang.c (m2_language_defn): Ditto.
246         * objc-lang.c (objc_language_defn): Ditto.
247         * scm-lang.c (scm_language_defn): Ditto.
248         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
249         * p-lang.c (pascal_language_defn): Ditto for both.
250         * Makefile.in (f-lang.o): Depend on value_h.
251         (p-lang.o): Ditto.
252
253 2003-05-19  David Carlton  <carlton@bactrian.org>
254
255         * block.h: Declare block_static_block.
256         * block.c (block_static_block): New.
257         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
258         lookup_symbol_aux_local, calling block_static_block instead.
259         (lookup_symbol_aux_local): Delete 'static_block' argument.
260
261 2003-05-19  David Carlton  <carlton@bactrian.org>
262
263         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
264
265 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
266
267         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
268         register numbers mapping.
269
270 2003-05-18  Adam Fedor  <fedor@gnu.org>
271
272         * symtab.c (completion_list_objc_symbol): New function.
273         (make_symbol_completion_list): Use it to add ObjC symbols
274         when looking though the list.
275         (language_search_unquoted_string): New function.
276         (make_file_symbol_completion_list): Use it.
277
278 2003-05-18  Andreas Schwab  <schwab@suse.de>
279
280         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
281         dependencies.
282         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
283         as m68k_linux_extract_return_value.
284         (DEPRECATED_STORE_RETURN_VALUE): Define as
285         m68k_linux_store_return_value.
286         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
287         m68k_linux_extract_struct_value_address.
288         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
289         get_next_frame, get_frame_base, get_frame_pc.
290         (m68k_linux_frame_saved_pc): Use get_frame_base.
291         (m68k_linux_extract_return_value): New function.
292         (m68k_linux_store_return_value): New function.
293         (m68k_linux_extract_struct_value_address): New function.
294         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
295
296         * c-exp.y (typebase): Remove duplicate occurence of
297         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
298         of lookup_signed_typename. 
299
300 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
301
302         * dwarf2loc.c (find_location_expression): Change type of second
303         argument to `size_t *'.
304         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
305         for size variable.
306
307 2003-05-18  David Carlton  <carlton@bactrian.org>
308
309         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
310         'linkage_name'.  Add comment.
311         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
312         'linkage_name'.
313         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
314         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
315         (lookup_block_symbol): Ditto.
316
317 2003-05-16  Andrew Cagney  <cagney@redhat.com>
318
319         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
320         * gdbarch.h, gdbarch.c: Re-generate.
321         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
322         * TODO (REGISTER_BYTES): Delete reference.
323         * alpha-tdep.c (alpha_gdbarch_init): Update.
324         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
325         * x86-64-tdep.c (x86_64_init_abi): Update.
326         * vax-tdep.c (vax_gdbarch_init): Update.
327         * v850-tdep.c (v850_gdbarch_init): Update.
328         * sparc-tdep.c (sparc_gdbarch_init): Update.
329         * sh-tdep.c (sh_gdbarch_init): Update.
330         * s390-tdep.c (s390_gdbarch_init): Update.
331         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
332         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
333         (ns32k_gdbarch_init_32382): Update.
334         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
335         * mcore-tdep.c (mcore_gdbarch_init): Update.
336         * m68k-tdep.c (m68k_gdbarch_init): Update.
337         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
338         * ia64-tdep.c (ia64_gdbarch_init): Update.
339         * i386-tdep.c (i386_gdbarch_init): Update.
340         * i386-linux-tdep.c (i386_linux_init_abi): Update.
341         * hppa-tdep.c (hppa_gdbarch_init): Update.
342         * h8300-tdep.c (h8300_gdbarch_init): Update.
343         * frv-tdep.c (frv_gdbarch_init): Update.
344         * cris-tdep.c (cris_gdbarch_init): Update.
345         * avr-tdep.c (avr_gdbarch_init): Update.
346         * arm-tdep.c (arm_gdbarch_init): Update.
347         * sparc-tdep.c (sparc_pop_frame): Update.
348         * rs6000-tdep.c (rs6000_pop_frame): Update.
349         * remote.c (init_remote_state): Update.
350         (remote_prepare_to_store): Update.
351         * remote-vx.c (vx_prepare_to_store): Update.
352         * remote-sds.c (sds_fetch_registers): Update.
353         (sds_prepare_to_store): Update.
354         * remote-array.c: Update.
355         * regcache.c (init_legacy_regcache_descr): Update.
356         (init_regcache_descr): Update.
357         * mips-tdep.c (mips_eabi_extract_return_value): Update.
358         (mips_o64_extract_return_value): Update.
359         * irix5-nat.c (fetch_core_registers): Update.
360         * irix4-nat.c (fetch_core_registers): Update.
361         * i386-tdep.h: Update.
362         * hppa-tdep.c (pa_do_registers_info): Update.
363         (pa_do_strcat_registers_info): Update.
364         * cris-tdep.c (cris_register_bytes_ok): Update.
365         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
366         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
367         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
368         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
369         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
370         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
371         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
372         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
373         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
374         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
375         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
376         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
377         (REGISTER_BYTES_OK): Update.
378         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
379         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
380
381 2003-05-16  Ian Lance Taylor  <ian@airs.com>
382
383         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
384         (vax_print_insn, print_insn_arg): Remove static functions.
385         (vax_gdbarch_init): Call set_gdbarch_print_insn with
386         print_insn_vax from opcodes library.
387         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
388
389 2003-05-15  Andrew Cagney  <cagney@redhat.com>
390
391         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
392         * target.h (memory_breakpoint_from_pc): Delete declaration.
393         * mem-break.c (memory_breakpoint_from_pc): Delete function.
394         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
395         * monitor.c (monitor_insert_breakpoint): Use
396         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
397         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
398         * gdbarch.h, gdbarch.c: Re-generate.
399         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
400         (sparc_gdbarch_init): Set breakpoint_from_pc to
401         sparc_breakpoint_from_pc.
402         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
403         (BREAKPOINT_FROM_PC): Define.
404         (sparc_breakpoint_from_pc): Declare.
405         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
406         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
407         (BREAKPOINT_FROM_PC): Define.
408         (BREAKPOINT): Delete macro.
409         * target.h: Update comment.
410         * s390-tdep.c (s390_gdbarch_init): Update comments.
411         * remote.c: Update comments.
412         * remote-mips.c: Update comments.
413         * proc-api.c (write_with_trace): Do not check for a breakpoint.
414         * mem-break.c: Update comment.
415         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
416         (ia64_memory_insert_breakpoint): Update.
417         * config/sparc/tm-sparc.h: Update comment.
418         * config/pa/tm-hppa64.h: Update comment.
419         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
420         (rs6000_breakpoint_from_pc): Update.
421         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
422         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
423         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
424         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
425         (mips_breakpoint_from_pc): Update.
426         (mips_dump_tdep): Update.
427
428         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
429         * minsyms.c (lookup_minimal_symbol): Inline
430         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
431
432         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
433         * p-valprint.c (pascal_object_print_value_fields): Ditto.
434         * p-lang.c (pascal_printstr): Ditto.
435         * objc-lang.c (objc_printstr): Ditto.
436         * m2-lang.c (m2_printstr): Ditto.
437         * jv-valprint.c (java_print_value_fields): Ditto.
438         * f-lang.c (f_printstr): Ditto.
439         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
440         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
441         for repeat_count_threshold.
442         * Makefile.in (cp-valprint.o): Update dependencies.
443
444 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
445  
446         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
447         (examine_prologue): Support looking through leaf functions, knowing
448         they start with mov r2,r12.  Support skipping over indirect stores 
449         of the input registers.  Upon hitting a non-nop branch instruction 
450         or predicated instruction, bail out by setting lim_pc to the current 
451         pc value in the loop.  At the end, if the lim_pc value is still 
452         beyond our calculated value and we have trust_limit set,
453         use the lim_pc value.
454
455 2003-05-15  Andrew Cagney  <cagney@redhat.com>
456
457         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
458         generic_find_dummy_frame.
459         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
460         (deprecated_generic_find_dummy_frame): Update.
461         (deprecated_read_register_dummy): Update.
462         * frame.c (deprecated_generic_get_saved_register): Update.
463
464 2003-05-15  Theodore A. Roth  <troth@openavr.org>
465
466         * avr-tdep.c (avr_breakpoint_from_pc): New function.
467         (avr_gdbarch_init): Set breakpoint_from_pc method.
468
469 2003-05-15  Andrew Cagney  <cagney@redhat.com>
470
471         * regcache.c (build_regcache): Set deprecated_register_valid
472         directly.
473         (deprecated_grub_regcache_for_register_valid): Delete function.
474         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
475         declaration.
476
477 2003-05-15  David Carlton  <carlton@bactrian.org>
478         
479         Committed by Elena Zannoni <ezannoni@redhat.com>    
480         * symtab.c (lookup_symbol_aux): Delete calls to
481         lookup_symbol_aux_minsyms.
482         (lookup_symbol_aux_minsyms): Comment out function and
483         prototype. Delete lookup by mangled name.
484
485 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
486
487         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
488         correctly indicate an empty stack and ``stack_allocated'' to the
489         indicate the number of elements initially allocated.
490         (dwarf_expr_grow_stack): Simplify method for computing new
491         stack size.  Don't loop infinitely if ``stack_len'' is zero.
492         (execute_stack_op): Move ``ctx->in_reg'' initialization
493         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
494         be used in conjuction with DW_OP_piece.  Revise error message
495         accordingly.
496
497 2003-05-14  Theodore A. Roth  <troth@openavr.org>
498
499         * MAINTAINERS: Update my email address.
500         * avr-tdep.c: Ditto.
501
502 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
503
504         * symtab.h (enum domain_enum): Rename from namespace_enum.
505         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
506         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
507         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
508         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
509         TYPES_NAMESPACE, METHODS_NAMESPACE.
510         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
511         (struct symbol, struct partial_symbol): Rename field
512         'namespace_enum namespace' to 'domain_enum domain'.
513         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
514         Delete old define kludge for namespace.
515
516         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
517         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
518         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
519         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
520         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
521         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
522         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
523         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
524         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
525         occurrences of the above.
526
527 2003-05-14  Ian Lance Taylor  <ian@airs.com>
528
529         * Makefile.in (install-only): Use $(SHELL) when running
530         mkinstalldirs.
531
532 2003-05-13  Ian Lance Taylor  <ian@airs.com>
533
534         * MAINTAINERS (write after approval): Add myself.
535
536         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
537         second and third arguments.
538         * ser-tcp.c (_initialize_ser_tcp): Likewise.
539         * ser-unix.c (_initialize_ser_hardwire): Likewise.
540
541 2003-05-13  Andrew Cagney  <cagney@redhat.com>
542
543         * defs.h (store_address): Delete declaration.
544         findvar.c (store_address): Delete function.
545         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
546         store_unsigned_integer.
547         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
548         * v850-tdep.c (v850_push_arguments): Ditto.
549         * sparc-tdep.c (sparc_get_saved_register): Ditto.
550         * sh-tdep.c (sh64_get_saved_register): Ditto.
551         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
552         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
553         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
554         (mips_get_saved_register): Ditto.
555         * ia64-tdep.c (ia64_get_saved_register): Ditto.
556         (find_func_descr, ia64_push_arguments): Ditto.
557         * i386-tdep.c (i386_push_arguments): Ditto.
558         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
559         * frv-tdep.c (frv_push_arguments): Ditto.
560         * frame.c (legacy_saved_regs_prev_register): Ditto.
561         (deprecated_generic_get_saved_register): Ditto.
562         * findvar.c (unsigned_address_to_pointer): Ditto.
563         * dwarf2read.c (dwarf2_const_value): Ditto.
564         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
565         * alpha-tdep.c (alpha_push_arguments): Ditto.
566
567 2003-05-12  J. Brobecker  <brobecker@gnat.com>
568
569         * NEWS: Mention that the hppa-hpux port has been partially
570         multiarched (32bit ABIT only, so far).
571
572 2003-05-11  Andrew Cagney  <cagney@redhat.com>
573
574         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
575         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
576         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
577         sim/testsuite/sim/arm/misaligned2.ms, and
578         sim/testsuite/sim/arm/misaligned3.ms.
579         * disasm.h (struct ui_file): Add opaque struct declaration.
580         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
581         * frame.h (struct ui_file): Ditto.
582
583 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
584
585         * value.h: Pretty print.
586
587 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
588
589         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
590
591 2003-05-08  Andrew Cagney  <cagney@redhat.com>
592
593         * regcache.h (max_register_size): Delete declaration.
594         * regcache.c (max_register_size): Delete function.
595         (struct regcache_descr): Delete field "max_register_size".
596         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
597         registers fit in MAX_REGISTER_SIZE.
598         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
599         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
600         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
601         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
602         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
603         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
604         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
605         * dve3900-rom.c, hppa-tdep.c: Ditto.
606
607 2003-05-08  David Carlton  <carlton@math.stanford.edu>
608
609         * valops.c (push_word): Fix typo.
610
611 2003-05-08  Andrew Cagney  <cagney@redhat.com>
612
613         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
614         * gdbarch.h: Re-generate.
615         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
616         (legacy_max_register_raw_size): Delete declaration.
617         * regcache.c (legacy_max_register_raw_size): Delete function.
618         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
619         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
620         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
621         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
622         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
623         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
624         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
625         * findvar.c, dwarf2cfi.c: Ditto.
626
627 2003-05-08  Andrew Cagney  <cagney@redhat.com>
628
629         * mips-tdep.c (read_signed_register): New function, moved to here
630         from "regcache.c".
631         (read_signed_register_pid): Ditto.
632         * regcache.c (read_signed_register_pid): Delete function, moved to
633         "mips-tdep.c".
634         (read_signed_register): Ditto.
635         * regcache.h (read_signed_register): Delete declaration.
636         (read_signed_register_pid): Delete declaration.
637
638 2003-05-08  Andrew Cagney  <cagney@redhat.com>
639
640         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
641         * gdbarch.h: Re-generate.
642         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
643         (legacy_max_register_virtual_size): Delete declaration.
644         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
645         * d10v-tdep.c (d10v_print_registers_info): Ditto.
646         * tracepoint.c (memrange_sortmerge): Ditto.
647         * sparc-tdep.c (sparc_print_registers): Ditto.
648         * regcache.c (legacy_max_register_virtual_size): Delete function.
649
650 2002-05-08  J. Brobecker  <brobecker@gnat.com>
651
652         * fork-child.c (escape_bang_in_quoted_argument): New function.
653         (fork_inferior): Escape '!' characters in quoted arguments
654         only when needed.
655
656 2003-05-08  J. Brobecker  <brobecker@gnat.com>
657
658         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
659         the language of the CU is not currently supported by GDB.
660
661 2003-05-08  J. Brobecker  <brobecker@gnat.com>
662
663         * defs.h (language): Add language_minimal enum value.
664         * c-lang.c (minimal_language_defn): New language definition.
665         (_initialize_c_language): Add the new minimal language to the list
666         of languages known to GDB.
667
668 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
669
670         * frame.c (get_frame_type): Don't attempt to lazily initialize
671         frame's unwinder for legacy frames.
672
673 2003-05-07  Andrew Cagney  <cagney@redhat.com>
674
675         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
676         and "regcache" parameters.
677         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
678
679 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
680  
681         * dwarf2read.c (dwarf_decode_lines): Only use output of 
682         check_cu_functions() when calling record_line().  Do not update 
683         the current address.
684
685 2003-05-07  Andrew Cagney  <cagney@redhat.com>
686
687         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
688         code.
689
690 2003-05-07  Jim Blandy  <jimb@redhat.com>
691
692         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
693         'maint info symtabs' and 'maint info psymtabs'.
694         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
695         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
696         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
697         Declarations updated.
698         * maint.c (maintenance_list_command): Delete.
699         (_initialize_maint_cmds): Update calls to add_cmd.
700         * gdbcmd.h (maintenancelistlist): Delete declaration.
701         * cli/cli-cmds.c (maintenancelistlist): Delete.
702         (init_cmd_lists): Don't initialize it.
703         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
704
705 2003-05-07  Andrew Cagney  <cagney@redhat.com>
706
707         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
708         "regcache".
709         (d10v_print_registers_info): Update.
710         (d10v_dmap_register, d10v_imap_register): Delete functions.
711         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
712         and "imap_register".
713         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
714         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
715         * arch-utils.c (generic_remote_translate_xfer_address): Add
716         "regcache" and "gdbarch" parameters.
717         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
718         parameter.  Change class to multi-arch.
719         * gdbarch.h, gdbarch.c: Re-generate.
720         * remote.c (remote_xfer_memory): Use
721         gdbarch_remote_translate_xfer_address.
722         
723 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
724
725         * infrun.c (prev_pc): Move declaration ahead of proceed().
726         (proceed): Refresh prev_pc value before resuming.
727         (stop_stepping): Remove code to refresh prev_pc.
728
729 2003-05-06  Kris Warkentin <kewarken@qnx.com>
730
731         * nto-tdep.c: Removed stray comment.
732
733 2003-05-06  Kris Warkentin <kewarken@qnx.com>
734
735         * i386-nto-tdep.c: Fix old K&R function definitions.
736         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
737         Also change add_show_from_set() call to add_setshow_cmd().
738         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
739
740 2003-05-05  Andrew Cagney  <cagney@redhat.com>
741
742         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
743         (fprint_dummy_frames): New function.
744         (maintenance_print_dummy_frames): New function.
745         (_initialize_dummy_frame): Add command "maint print dummy-frames".
746         * frame.c (fprint_frame_id): Make global.
747         * frame.h (fprint_frame_id): Declare.
748         * Makefile.in (dummy-frame.o): Update dependencies.
749
750 2003-05-05  Andrew Cagney  <cagney@redhat.com>
751
752         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
753         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
754         SIZEOF_CALL_DUMMY_WORDS.
755         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
756         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
757         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
758         CALL_DUMMY_BREAKPOINT_OFFSET.
759         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
760         CALL_DUMMY_START_OFFSET.
761         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
762         * gdbarch.h, gdbarch.c: Re-generate.
763         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
764         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
765         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
766         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
767         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
768         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
769         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
770         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
771         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
772         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
773         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
774         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
775         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
776         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
777         * config/sparc/tm-sparc.h: Update.
778
779 2003-05-05  Kris Warkentin <kewarken@qnx.com>
780
781         * configure.tgt: Add i[3456]86-*-nto*.
782         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
783         * nto-tdep.c: New file. Neutrino target support routines.
784         * nto-tdep.h: New file. Neutrino target header.
785         * config/tm-qnxnto.h: New file.
786         * config/i386/i386nto.mt: New file.
787         * config/i386/tm-i386nto.h: New file.
788         
789 2003-05-04  Andrew Cagney  <cagney@redhat.com>
790
791         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
792         (load_infrun_state): Ditto.
793         (struct thread_info): Drop "prev_func_name" field.
794         * thread.c (load_infrun_state): Update.
795         (save_infrun_state): Update.
796         * infrun.c (prev_func_name): Delete variable.
797         (init_wait_for_inferior): Do not clear prev_func_name.
798         (stop_stepping, keep_going, context_switch): Do not swap
799         prev_func_name.
800         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
801         instead of PC_IN_SIGTRAMP.
802
803 2003-05-04  Andrew Cagney  <cagney@redhat.com>
804
805         * sentinel-frame.c (sentinel_frame_prev_register): Replace
806         REGISTER_BYTE with register_offset_hack.
807         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
808         that REGISTER_BYTE is consistent with the regcache.
809         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
810         * gdbarch.h, gdbarch.c: Regenerate.
811         
812 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
813
814         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
815         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
816
817         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
818
819 2003-05-03  J. Brobecker  <brobecker@gnat.com>
820
821         From Thierry Schneider <tpschneider1@yahoo.com>
822         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
823         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
824         (mi-cmd-symbol.o): Add rule.
825
826 2003-05-03  Andrew Cagney  <cagney@redhat.com>
827
828         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
829         comments noteing that it replaces the old FIX_CALL_DUMMY code.
830         * gdbarch.h, gdbarch.c: Re-generate.
831         * d10v-tdep.c (d10v_push_dummy_code): New function.
832         (d10v_gdbarch_init): Set push_dummy_code.
833         * infcall.c (legacy_push_dummy_code): New function.
834         (generic_push_dummy_code): New function.
835         (push_dummy_code): New function.
836         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
837         instead of dummy_addr, to push_dummy_call.  Move call to
838         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
839         switch.
840         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
841
842 2003-05-03  Andrew Cagney  <cagney@redhat.com>
843
844         * disasm.h (print_insn): Declare.
845         * disasm.c (init_gdb_disassemble_info): New function.
846         (gdb_disassembly): Call init_gdb_disassemble_info.
847         (gdb_print_insn): New function.
848         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
849         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
850         * mcore-tdep.c: Include "disasm.h"
851         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
852         * d10v-tdep.c: Include "disasm.h".
853         (display_trace): Call gdb_print_insn, instead of print_insn.
854         (print_insn): Delete function.
855         * printcmd.c: Include "disasm.h".
856         (print_insn): Delete function.
857         (print_formatted): Call gdb_print_insn, instead of print_insn.
858         * Makefile.in (printcmd.o): Update dependencies.
859         (mcore-tdep.o, d10v-tdep.o): Ditto.
860         
861 2003-05-02  Andrew Cagney  <cagney@redhat.com>
862
863         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
864         PC_REGNUM, re-indent.
865         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
866         PC_REGNUM isn't set.
867
868         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
869         * gdbarch.h, gdbarch.c: Re-generate.
870         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
871         register_virtual_size, pc_regnum, or register_bytes.
872         (D10V_PC_REGNUM): Rename _PC_REGNUM.
873         (d10v_register_type): Use D10V_PC_REGNUM.
874         (d10v_print_registers_info, d10v_read_pc): Ditto.
875         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
876         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
877
878 2003-05-02  David Carlton  <carlton@bactrian.org>
879
880         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
881         the name with mstrsave.
882
883 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
884
885         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
886         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
887         (host_charset_name, target_charset_name): New vars for use by
888         set/show commands.
889         (host_charset_enum, target_charset_enum): New enums for set/show
890         commands.
891         (set_charset_sfunc, set_host_charset_sfunc,
892         set_target_charset_sfunc): New functions.
893         (set_host_charset, set_target_charset): Make static.
894         (list_charsets, set_host_charset_command,
895         set_target_charset_command): Delete functions.
896         (show_charset_command): Rewrite as....
897         (show_charset): Hook this up with the set/show command mechanism.
898         (_initialize_charset): Change names of charsets to match the
899         set/show enums. Use host_charset_name and target_charset_name.
900         Use set/show mechanism for charset, host-charset, target-charset
901         commands. Do not make 'show host-charset' and 'show
902         target-charset' be aliases of 'show charset'.
903
904         * charset.h (set_host_charset, set_target_charset): Don't export,
905         they are not used outside the file.
906
907 2003-05-01  Andrew Cagney  <cagney@redhat.com>
908
909         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
910         (gdb_disassembly): Make "di" non static, always initialize and
911         cleanup.  Always use dis_asm_read_memory.
912         (gdb_dis_asm_read_memory): Delete function.
913
914 2003-05-01  Andrew Cagney  <cagney@redhat.com>
915
916         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
917         (d10v_gdbarch_init): Set frame_align instead of stack_align.
918
919 2003-04-30  Andrew Cagney  <cagney@redhat.com>
920
921         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
922         "tm_print_insn_info".
923         (TARGET_PRINT_INSN_INFO): Delete macro.
924         (dis_asm_read_memory): Delete function declaration.
925         (dis_asm_memory_error, dis_asm_print_address): Ditto.
926         (tm_print_insn_info): Delete variable definition.
927         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
928         * gdbarch.h, gdbarch.c: Re-generate.
929         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
930         "deprecated_tm_print_insn_info".
931         * mcore-tdep.c (mcore_dump_insn): Ditto.
932         * mips-tdep.c (mips_gdbarch_init): Ditto.
933         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
934         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
935         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
936         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
937         instead of TARGET_PRINT_INSN_INFO, add comment.
938         * s390-tdep.c (s390_get_frame_info): Instead of
939         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
940         (s390_check_function_end, s390_is_sigreturn): Ditto.
941         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
942         (dis_asm_memory_error, dis_asm_print_address): Ditto.
943         * disasm.c: Include "gdbcore.h".
944         (_initialize_disasm): New function, initialize
945         "deprecated_tm_print_insn_info".
946         (deprecated_tm_print_insn_info): New variable.
947         (dis_asm_read_memory): Moved from "corefile.c", made static.
948         (dis_asm_print_address, dis_asm_memory_error): Ditto.
949         * Makefile.in (disasm.o): Update dependencies.
950
951 2003-04-30  Andrew Cagney  <cagney@redhat.com>
952
953         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
954
955 2003-04-29  Adam Fedor  <fedor@gnu.org>
956
957         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
958         * infcall.c (find_function_addr): Make non-static.
959         * infcall.h (find_function_addr): Declare.
960         * Makefile.in (eval.o): Update dependencies.
961
962 2003-04-28  Adam Fedor  <fedor@gnu.org>
963
964         * symtab.c (symbol_find_demangled_name): Check for and demangle
965         ObjC symbols.
966         (symbol_init_demangled_name): Init for language_objc as well.
967
968 2003-04-28  Andrew Cagney  <cagney@redhat.com>
969
970         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
971         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
972         * gdbarch.h, gdbarch.c: Re-generate.
973         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
974         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
975         * inferior.h (deprecated_read_fp): Rename read_fp.
976         (generic_target_read_fp): Delete declaration.
977         * regcache.c (generic_target_read_fp): Delete function.
978         (deprecated_read_fp): Replace read_fp, use
979         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
980         * d10v-tdep.c (d10v_read_fp): Delete function.
981         (d10v_gdbarch_init): Do not set deprecated_read_fp.
982
983         * sparc-tdep.c (sparc_gdbarch_init): Do not set
984         deprecated_target_read_fp to generic_target_read_fp.
985         * sh-tdep.c (sh_gdbarch_init): Ditto.
986         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
987         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
988         * frv-tdep.c (frv_gdbarch_init): Ditto.
989
990         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
991         deprecated_fp_regnum.
992         * x86-64-tdep.c (x86_64_init_abi): Ditto.
993         * vax-tdep.c (vax_gdbarch_init): Ditto.
994         * v850-tdep.c (v850_gdbarch_init): Ditto.
995         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
996         * sh-tdep.c (sh_gdbarch_init): Ditto.
997         * s390-tdep.c (s390_gdbarch_init): Ditto.
998         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
999         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1000         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1001         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1002         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1003         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1004         * i386-tdep.c (i386_gdbarch_init): Ditto.
1005         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1006         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1007         * frv-tdep.c (frv_gdbarch_init): Ditto.
1008         * cris-tdep.c (cris_gdbarch_init): Ditto.
1009         * avr-tdep.c (avr_gdbarch_init): Ditto.
1010         * arm-tdep.c (arm_gdbarch_init): Ditto.
1011         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1012
1013         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
1014         * v850-tdep.c (v850_gdbarch_init): Ditto.
1015         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1016         * sh-tdep.c (sh_gdbarch_init): Ditto.
1017         * s390-tdep.c (s390_gdbarch_init): Ditto.
1018         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1019         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1020         * mips-tdep.c (mips_gdbarch_init): Ditto.
1021         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1022         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1023         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1024         * frv-tdep.c (frv_gdbarch_init): Ditto.
1025         * avr-tdep.c (avr_gdbarch_init): Ditto.
1026         * arm-tdep.c (arm_gdbarch_init): Ditto.
1027
1028         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
1029         DEPRECATED_FP_REGNUM.
1030         (vax_push_dummy_frame, vax_pop_frame): Ditto.
1031         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
1032         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
1033         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
1034         (sparc32_register_virtual_type): Ditto.
1035         * sh-tdep.c (sh64_frame_chain): Ditto.
1036         (sh64_get_saved_register, sh64_pop_frame): Ditto.
1037         (sh_nofp_frame_init_saved_regs): Ditto.
1038         (sh64_nofp_frame_init_saved_regs): Ditto.
1039         (sh_fp_frame_init_saved_regs): Ditto.
1040         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1041         * remote-e7000.c (fetch_regs_from_dump): Ditto.
1042         * procfs.c (procfs_fetch_registers): Ditto.
1043         (procfs_store_registers): Ditto.
1044         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
1045         (store_inferior_registers, fetch_core_registers): Ditto.
1046         (fetch_kcore_registers, clear_regs): Ditto.
1047         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
1048         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
1049         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
1050         * nlm/i386.c (do_status): Ditto.
1051         * mipsv4-nat.c (supply_gregset): Ditto.
1052         * mips-tdep.c: Ditto for comments.
1053         * mips-nat.c (fetch_inferior_registers): Ditto.
1054         (store_inferior_registers, fetch_core_registers): Ditto.
1055         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
1056         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
1057         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
1058         (i386_do_pop_frame, i386_register_type): Ditto.
1059         * hppa-tdep.c (hppa_frame_chain): Ditto.
1060         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
1061         (hppa_pop_frame, hppa_read_fp): Ditto.
1062         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
1063         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
1064         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
1065         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
1066         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
1067         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
1068         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
1069         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
1070         * blockframe.c: Ditto for comments.
1071         * arch-utils.h: Ditto for comments.
1072         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
1073         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
1074         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
1075         * alpha-tdep.h: Ditto for comments.
1076         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
1077         (alpha_cannot_store_register): Ditto.
1078         (alpha_push_dummy_frame): Ditto.
1079         * alpha-nat.c (supply_gregset): Ditto.
1080
1081         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
1082         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
1083         * config/sparc/tm-sparc.h: Update comment.
1084
1085         * hppa-tdep.c (hppa_init_extra_frame_info): Use
1086         deprecated_read_fp instead of TARGET_READ_FP.
1087         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
1088         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
1089         * sparc-tdep.c (sparc_init_extra_frame_info): Use
1090         deprecated_read_fp instead of read_fp.
1091         * s390-tdep.c (s390_push_arguments): Ditto.
1092         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1093         * frame.h: Ditto in comments.
1094         * frame.c (legacy_get_prev_frame): Ditto.
1095         * dummy-frame.c (dummy_frame_this_id): Ditto.
1096         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
1097
1098 2003-04-28  Andrew Cagney  <cagney@redhat.com>
1099
1100         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
1101         * gdbarch.h, gdbarch.c: Re-generate.
1102         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
1103         * vax-tdep.c (_initialize_vax_tdep): Update.
1104         * v850-tdep.c (_initialize_v850_tdep): Update.
1105         * sparc-tdep.c (_initialize_sparc_tdep): Update.
1106         * s390-tdep.c (_initialize_s390_tdep): Update.
1107         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
1108         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
1109         * mips-tdep.c (_initialize_mips_tdep): Update.
1110         * mcore-tdep.c (_initialize_mcore_tdep): Update.
1111         * m68k-tdep.c (_initialize_m68k_tdep): Update.
1112         * ia64-tdep.c (_initialize_ia64_tdep): Update.
1113         * hppa-tdep.c (_initialize_hppa_tdep): Update.
1114         * h8300-tdep.c (_initialize_h8300_tdep): Update.
1115         * frv-tdep.c (_initialize_frv_tdep): Update.
1116         * cris-tdep.c (cris_delayed_get_disassembler): Update.
1117         (_initialize_cris_tdep): Update.
1118         * arch-utils.c (legacy_print_insn): Update.
1119         * alpha-tdep.c (_initialize_alpha_tdep): Update.
1120
1121 2003-04-26  Adam Fedor  <fedor@gnu.org>
1122
1123         * linespec.c (decode_objc): New function to decode ObjC calls
1124         (decode_line_1): Check for ObjC calls (using decode_objc)
1125         * Makefile (linespec.o): Update dependencies.
1126
1127 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
1128
1129         * breakpoint.h (struct breakpoint_ops): New.
1130         (struct breakpoint): Add ops member.
1131
1132         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
1133         (mention): Use new breakpoint ops member.
1134         (set_raw_breakpoint): Initialize ops field to NULL.
1135         (print_exception_catchpoint, print_one_exception_catchpoint)
1136         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
1137         (gnu_v3_exception_catchpoint_ops): New.
1138         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
1139
1140 2003-04-25  Adam Fedor  <fedor@gnu.org>
1141
1142         * Makefile.in (COMMON_OBS): Add objc-lang.o
1143
1144 2003-04-25  Andrew Cagney  <cagney@redhat.com>
1145
1146         * d10v-tdep.c (print_insn): Delete function.
1147         (display_trace): Use TARGET_PRINT_INSN.
1148         (_initialize_d10v_tdep): Do not set tm_print_insn.
1149         (d10v_gdbarch_init): Set print_insn.
1150
1151 2003-04-25  Andrew Cagney  <cagney@redhat.com>
1152
1153         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
1154         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
1155         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
1156         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
1157         (nr_dmap_regs, a0_regnum): ... new functions.
1158         (d10v_print_registers_info): Use a0_regnum, use register_size.
1159         (d10v_register_byte): Delete function.
1160         (d10v_register_raw_size): Delete function.
1161         (d10v_register_type): Use a0_regnum.
1162         (d10v_print_registers_info): Use a0_regnum.
1163         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
1164         (d10v_gdbarch_init): Do not set register_byte or
1165         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
1166         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
1167         extract_address.
1168         (trace_command): Use XCALLOC.
1169         (print_insn): Delete reference to tm_print_insn.
1170         (saved_regs_unwinder): Use store_unsigned_integer instead of
1171         store_address.
1172         * frame.h (FRAME_OBSTACK_CALLOC): Define
1173
1174 2003-04-25  David Carlton  <carlton@bactrian.org>
1175
1176         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
1177
1178 2003-04-24  Adam Fedor  <fedor@gnu.org>
1179
1180         * objc-lang.c: Include "valprint.h"
1181         * Makefile.in (objc-lang.o): Update dependencies.
1182
1183 2003-04-24  Adam Fedor  <fedor@gnu.org>
1184
1185         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove 
1186         architecture dependant compilation and mark as unimplemented
1187         (until they get put in the gdbarch vector).
1188
1189 2003-04-23  David Carlton  <carlton@bactrian.org>
1190
1191         * cp-support.c (cp_find_first_component): Accept 'operator' in
1192         more locations.
1193
1194 2003-04-23  Andrew Cagney  <cagney@redhat.com>
1195
1196         * infcall.c (call_function_by_hand): Eliminate redundant
1197         indentation.  Move "saved_async" and "old_cleanups" to where they
1198         are needed.
1199         
1200 2003-04-23  Andrew Cagney  <cagney@redhat.com>
1201
1202         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
1203         and "buffer".  Move the "name" code to where it is needed.
1204
1205 2003-04-23  Andrew Cagney  <cagney@redhat.com>
1206
1207         * infcall.c (call_function_by_hand): Move variables "start_sp",
1208         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
1209         code to ON_STACK switch branch.
1210         
1211 2003-04-23  Andrew Cagney  <cagney@redhat.com>
1212
1213         * infcall.c (call_function_by_hand): Make declaration of "i",
1214         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
1215         lint.
1216
1217 2003-04-23  Andrew Cagney  <cagney@redhat.com>
1218
1219         * infcall.c (call_function_by_hand): Delete variable
1220         "n_method_args".  Localize "param_type"'s declaration to the loop
1221         that it is used.  Reinstate code assigning to said variable -
1222         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
1223         Rationalize code using "param_type".
1224
1225 2003-04-22  Andrew Cagney  <cagney@redhat.com>
1226
1227         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
1228         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
1229         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
1230         to DEPRECATED_PUSH_RETURN_ADDRESS.
1231
1232 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
1233
1234         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
1235         on the DWARF2 register number prior to fetching a register.
1236
1237 2003-04-22  J. Brobecker  <brobecker@gnat.com>
1238
1239         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
1240         Update all the tests using SOFT_FLOAT considering the fact that
1241         this macro was always set to 0. 
1242         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
1243         considering the fact that this macro was always set to 0.
1244         * hppa-tdep.h (hppa_store_return_value): Likewise.
1245         (hppa_extract_return_value): Likewise.
1246
1247 2003-04-22  J. Brobecker  <brobecker@gnat.com>
1248
1249         * config/pa/tm-hppa.h: Remove obsolete code, was used by
1250         the hppa-pro target only.
1251
1252 2003-04-21  J. Brobecker  <brobecker@gnat.com>
1253
1254         Ongoing multi-arch conversion effort for HP/UX:
1255         * config/pa/tm-hppa.h: Move all macro that are no longer
1256         defined now that GDB_MULTI_ARCH is now set to 1 from here...
1257         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
1258
1259 2003-04-21  J. Brobecker  <brobecker@gnat.com>
1260
1261         * config/pa/tm-hppa.h: Obsolete a section that was only used
1262         for hppa-pro.
1263
1264 2003-04-21  J. Brobecker  <brobecker@gnat.com>
1265
1266         Ongoing multi-arch conversion for HP/UX.
1267         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
1268         if already defined (allows hppa64 to stay non-multiarched for now).
1269         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
1270
1271 2003-04-21  Andrew Cagney  <cagney@redhat.com>
1272
1273         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
1274
1275 2003-04-21  Andrew Cagney  <cagney@redhat.com>
1276
1277         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
1278         "i386_num_mmx_regs".
1279
1280 2003-04-21  Andrew Cagney  <cagney@redhat.com>
1281
1282         * infcall.c: New file.
1283         * infcall.h: New file.
1284         * valarith.c: Include "infcall.h".
1285         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
1286         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
1287         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
1288         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
1289         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
1290         (SFILES): Add "infcall.c"
1291         (COMMON_OBS): Add "infcall.o".
1292         (infcall.o): Specify dependencies.
1293         * value.h (call_function_by_hand): Delete declaration.
1294         * inferior.h (run_stack_dummy): Delete declaration.
1295         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
1296         (run_stack_dummy): Move to "infcall.c", merged into
1297         call_function_by_hand.
1298         * valops.c (call_function_by_hand): Moved to "infcall.c".
1299         (find_function_addr, value_arg_coerce): Ditto.
1300         (unwindonsignal_p, coerce_float_to_double): Ditto.
1301         (_initialize_valops): Move "set/show coerce-float-to-double", and
1302         "set/show unwindonsignal" commands to "infcall.c".
1303         * v850-tdep.c, target.h: Update comments.
1304         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
1305         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
1306         (sh64_init_extra_frame_info): Update comments.
1307         * mn10300-tdep.c: Update comments.
1308         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
1309         * config/sparc/tm-sparc.h: Update comments.
1310         * breakpoint.h: Update comments.
1311         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
1312         * arm-tdep.c: Update comment.
1313
1314 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
1315
1316         * i386-tdep.c (i386_num_register_names): New variable.
1317         (i386_num_mmx_regs): Renamed from mmx_num_regs.
1318         (MM0_REGNUM): Remove redundant parentheses in define.
1319         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
1320         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
1321         i386_mxcsr_regnum_p): Remove redundant parentheses.
1322         (i386_register_name): Use i386_num_register_names.
1323         
1324         * i386-tdep.c (i386_extract_return_value,
1325         i386_store_return_value): Correct check for availability of
1326         floating-point registers.
1327
1328         * i386-tdep.c (i386_frame_num_args): Remove function.
1329         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
1330
1331         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
1332         mmx_regnum_to_fp_regnum.  Adjust all callers.
1333
1334         * i386-tdep.c (i386_get_longjmp_target): Use
1335         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
1336         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
1337         extract_address.
1338
1339 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
1340
1341         * core-regset.c: Update comments to reflect reality.  Re-order
1342         includes.
1343         (fetch_core_registers): Use switch instead of if.  Remove
1344         redundant prototype.
1345
1346 2003-04-18  Jim Blandy  <jimb@redhat.com>
1347
1348         * s390-tdep.c (s390_frame_align): New function.
1349         (s390_gdbarch_init): Register it with the gdbarch object.
1350
1351 2003-04-17  Richard Henderson  <rth@redhat.com>
1352
1353         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
1354
1355 2003-04-17  Michael Snyder  <msnyder@redhat.com>
1356             Karen Bennet  <bennet@redhat.com>
1357
1358         Committed by Elena Zannoni  <ezannoni@redhat.com>
1359         * gdb_gcore.sh: New script to create a core dump of a process.
1360         
1361 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
1362
1363         * values.c (value_being_returned): Don't fetch the return
1364         value if the return type is void.
1365
1366 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
1367
1368         * thread-db.c: Reindented.
1369  
1370 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
1371  
1372         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t, 
1373         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
1374         as types.
1375
1376 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
1377
1378         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
1379         the size of ``long double'' to 16, instead of 8.
1380
1381 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
1382
1383         * i386-linux-nat.c: Add some whitespace to make things more
1384         readable.
1385         (fetch_register, store_register, fetch_inferior_registers,
1386         store_inferior_registers): Get rid of assignment in if-statement.
1387         (store_register): Fix typo in error message.
1388
1389 2003-04-16  Andrew Cagney  <cagney@redhat.com>
1390
1391         * utils.c (xmmalloc): Always allocate something, matches
1392         libiberty/xmalloc's semantics.
1393         (xmrealloc, xmcalloc): Ditto.
1394
1395 2003-04-16  Andrew Cagney  <cagney@redhat.com>
1396
1397         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
1398         update comments.
1399         (get_frame_type): Initialize unwind and type when needed.
1400         (get_frame_id, frame_register_unwind): Ditto.
1401
1402 2003-04-16  Andrew Cagney  <cagney@redhat.com>
1403
1404         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
1405         obsolete.
1406         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
1407         * sparcl-stub.c: Obsolete file.
1408         * config/sparc/tm-sparclet.h: Obsolete file.
1409         * sparclet-stub.c: Obsolete file.
1410         * sparclet-rom.c: Obsolete file.
1411         * sparcl-tdep.c: Obsolete file.
1412         * config/sparc/tm-sparclite.h: Obsolete file.
1413         * config/sparc/sparclite.mt: Obsolete file.
1414         * config/sparc/sparclet.mt: Obsolete file.
1415         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
1416         sparc86x-*-* obsolete.
1417
1418 2003-04-15  David Carlton  <carlton@math.stanford.edu>
1419
1420         * Makefile.in (SFILES): Add cp-namespace.c.
1421         (COMMON_OBS): Add cp-namespace.o.
1422         (block.o): Depend on gdb_obstack_h and cp_support_h.
1423         (buildsym.o): Depend on cp_support_h.
1424         (cp-namespace.o): New.
1425         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
1426         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
1427         (dwarf2read.o): Depend on cp_support_h.
1428         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
1429         * dwarf2read.c (process_die): Set processing_has_namespace_info,
1430         processing_current_namespace.
1431         (read_namespace): Update processing_current_namespace; check for
1432         anonymous namespaces.
1433         (dwarf2_name): New function.
1434         (dwarf2_extension): Ditto.
1435         * cp-support.h: Update copyright, contributors.
1436         Add inclusion guards.
1437         Add opaque declaration for structs obstack, block, symbol.
1438         (struct using_direct): New struct.
1439         Add declarations for cp_find_first_component,
1440         cp_entire_prefix_len, processing_has_namespace_info,
1441         processing_current_namespace, cp_is_anonymous,
1442         cp_add_using_directive, cp_initialize_namespace,
1443         cp_finalize_namespace, cp_set_block_scope,
1444         cp_scan_for_anonymous_namespaces.
1445         * cp-namespace.c: New file.
1446         * cp-support.c: Update copyright.
1447         Include ctype.h, gdb_assert.h, gdbcmd.h.
1448         New variable maint_cplus_cmd_list.
1449         (cp_find_first_component): New function.
1450         (cp_entire_prefix_len, maint_cplus_command)
1451         (first_component_command, _initialize_cp_support): Ditto.
1452         * buildsym.c: Include cp-support.h.
1453         New variable using_list.
1454         (add_symbol_to_list): Check for anonymous namespaces.
1455         (finish_block): Set block's scope.
1456         (start_symtab): Initialize C++ namespace support.
1457         (end_symtab): Finalize C++ namespace support.
1458         * block.h: Add opaque declarations for structs
1459         block_namespace_info, using_direct, and obstack.
1460         Add declarations for block_set_scope and block_set_using.
1461         (struct block): Add 'language_specific' member.
1462         (BLOCK_NAMESPACE): New macro.
1463         * block.c: Include gdb_obstack.h and cp-support.h.
1464         (struct block_namespace_info): New struct.
1465         (block_set_scope): New function.
1466         (block_set_using, block_initialize_namespace): Ditto.
1467
1468 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
1469
1470         * solib-svr4.c (svr4_have_link_map_offsets): New function.
1471         (locate_base): Return early if there aren't any link map offsets.
1472         (svr4_solib_create_inferior_hook): Warn if shared library support
1473         is unavailable.
1474
1475 2003-04-14  David Carlton  <carlton@math.stanford.edu>
1476
1477         * symtab.c (symbol_set_names): Add prefix when storing Java names
1478         in hash table.  Fix for PR java/1039.
1479
1480 2003-04-14  David Carlton  <carlton@math.stanford.edu>
1481
1482         * symtab.c (symbol_set_names): Rename 'name' arg to
1483         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
1484         * symtab.h: Change 'name' argument in declaration of
1485         symbol_set_names to 'linkage_name'.
1486         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
1487
1488 2003-04-14  Andrew Cagney  <cagney@redhat.com>
1489
1490         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
1491         return the fully sign-extended register value.
1492         (get_frame_pointer): Ditto.
1493         (mips_pop_frame): Initialize "proc_desc" after checking for a
1494         dummy frame.
1495
1496 2003-04-14  Andrew Cagney  <cagney@redhat.com>
1497
1498         * mips-tdep.c (mips_push_dummy_frame): Delete function.
1499         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
1500         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
1501         (mips_push_register): Delete function.
1502         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
1503         PUSH_FP_REGNUM.
1504
1505 2003-04-14  Jim Blandy  <jimb@redhat.com>
1506
1507         * symmisc.c: #include "gdb_regex.h".
1508         (maintenance_list_symtabs, maintenance_list_psymtabs): New
1509         functions.
1510         * maint.c (maintenance_list_command): New function.
1511         (_initialize_maint_cmds): Register the above as commands.
1512         * symtab.h (maintenance_list_symtabs,
1513         maintenance_list_psymtabs): New declarations.
1514         * cli/cli-cmds.c (maintenancelistlist): New variable.
1515         (init_cmd_lists): Initialize it.
1516         * cli/cli-cmds.h (maintenancelistlist): New declaration.
1517         * gdbcmd.h (maintenancelistlist): New declaration.
1518         * Makefile.in (symmisc.o): Update dependencies.
1519
1520 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
1521
1522         * s390-nat.c: Include asm/types.h for addr_t.
1523
1524 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
1525
1526         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
1527         actually incoming type.
1528
1529 2003-04-13  Andrew Cagney  <cagney@redhat.com>
1530
1531         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
1532         get_next_frame and get_frame_saved_regs.
1533
1534 2003-04-13  Andrew Cagney  <cagney@redhat.com>
1535
1536         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
1537         of gdbarch_num_regs.
1538
1539 2003-04-13  Andrew Cagney  <cagney@redhat.com>
1540
1541         * frame.h: Mention what replaced what in "struct frame_info".
1542         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
1543         deprecated_update_frame_base_hack and
1544         deprecated_update_frame_pc_hack.
1545         * hppa-tdep.c: Ditto.
1546
1547 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
1548
1549         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
1550         to read_reg and update its comment.  Remove regnum member.
1551         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
1552         Don't call read_reg when setting in_reg.  Call read_reg to get
1553         the frame base if it's in a register.  Return the register number
1554         on the stack instead of in the context.  Remove extra arguments
1555         to read_reg.
1556         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
1557         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
1558         the register number on the expression stack.
1559         (needs_frame_read_reg): Remove extra arguments.
1560
1561 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
1562
1563         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
1564         made non-static.
1565         (execute_stack_op): All callers updated.
1566         * dwarf2expr.h: Add prototype for dwarf2_read_address.
1567         * dwarf2loc.c (find_location_expression): New function.
1568         (dwarf_expr_frame_base): Call it.
1569         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
1570         (dwarf2_tracepoint_var_ref): New function, broken out from
1571         locexpr_tracepoint_var_ref.
1572         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
1573         Make static.
1574         (loclist_read_variable, loclist_read_needs_frame): New functions.
1575         (loclist_describe_location, loclist_tracepoint_var_ref): New
1576         functions.
1577         (dwarf2_loclist_funcs): New struct location_funcs.
1578         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
1579         (struct dwarf2_locexpr_baton): Add comments.
1580         (dwarf2_loclist_funcs): New extern.
1581         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
1582         base_address and base_known.
1583         (dwarf_loc_buffer): New variable.
1584         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
1585         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
1586         (dwarf2_has_info): Initialize dwarf_loc_offset.
1587         (dwarf2_build_psymtabs): Read in .debug_loc.
1588         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
1589         DWARF_LOC_SIZE.
1590         (psymtab_to_symtab_1): Likewise.  Move base address calculation
1591         here, from...
1592         (dwarf2_get_pc_bounds): ... here.  Use the base address from
1593         cu_header.
1594         (dwarf2_symbol_mark_computed): Handle location lists.
1595
1596 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
1597
1598         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
1599         if the linkage name demangled successfully.
1600
1601 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
1602
1603         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
1604         disassmbly_flavour): Removed.
1605
1606         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
1607
1608 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
1609
1610         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
1611
1612 2003-04-12  Andrew Cagney  <cagney@redhat.com>
1613
1614         * frame.h (struct frame_info): Move definition from here ...
1615         * frame.c (struct frame_info): ... to here.
1616
1617 2003-04-12  Andrew Cagney  <cagney@redhat.com>
1618
1619         * gdbthread.h (save_infrun_state): Delete parameter
1620         "prev_func_start".
1621         (struct thread_info): Delete field "prev_func_start".
1622         (load_infrun_state): Ditto.
1623         * thread.c (load_infrun_state, save_infrun_state): Update.
1624         * infrun.c (prev_func_start): Delete variable.
1625         (context_switch, init_wait_for_inferior): Update.
1626         (stop_stepping, keep_going): Update.
1627
1628 2003-04-12  Andrew Cagney  <cagney@redhat.com>
1629
1630         * gdbarch.sh: Add missing opaque declarations.
1631         * gdbarch.h: Regnerate.
1632         * symtab.h: Add missing opaque declarations.
1633         * value.h, target.h, symfile.h, stabsread.h: Ditto.
1634         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
1635         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
1636         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
1637         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
1638         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
1639         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
1640         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
1641         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
1642         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
1643         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
1644         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
1645         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
1646
1647 2003-04-11  Andrew Cagney  <cagney@redhat.com>
1648
1649         * frame.c (get_frame_id): Return this frame's "id".
1650         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
1651         function start.
1652         (legacy_saved_regs_this_id): Replace function body with
1653         internal-error.
1654         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
1655         FRAME_OBSTACK_ZALLOC.
1656         (create_new_frame): Mark the frame ID as valid.
1657
1658 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
1659
1660         * Makefile.in (libbfd_h): Added missing setting.
1661         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
1662         according to the selected ABI.
1663
1664 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
1665
1666         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
1667
1668 2003-04-11  Andrew Cagney  <cagney@redhat.com>
1669
1670         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
1671         SAVED_PC_AFTER_CALL.
1672         * gdbarch.h, gdbarch.c: Regenerate.
1673         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1674         * x86-64-tdep.c (x86_64_init_abi): Update.
1675         * vax-tdep.c (vax_gdbarch_init): Update.
1676         * v850-tdep.c (v850_gdbarch_init): Update.
1677         * sparc-tdep.c (sparc_gdbarch_init): Update.
1678         * sh-tdep.c (sh_gdbarch_init): Update.
1679         * s390-tdep.c (s390_gdbarch_init): Update.
1680         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1681         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1682         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1683         * mips-tdep.c (mips_gdbarch_init): Update.
1684         * mcore-tdep.c (mcore_gdbarch_init): Update.
1685         * m68k-tdep.c (m68k_gdbarch_init): Update.
1686         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1687         * ia64-tdep.c (ia64_gdbarch_init): Update.
1688         (ia64_saved_pc_after_call): Update declaration.
1689         * i386ly-tdep.c (i386lynx_init_abi): Update.
1690         * i386-tdep.c (i386_gdbarch_init): Update.
1691         * hppa-tdep.c (hppa_gdbarch_init): Update.
1692         * h8300-tdep.c (h8300_gdbarch_init): Update.
1693         * frv-tdep.c (frv_gdbarch_init): Update.
1694         * cris-tdep.c (cris_gdbarch_init): Update.
1695         * avr-tdep.c (avr_gdbarch_init): Update.
1696         * arm-tdep.c (arm_gdbarch_init): Update.
1697         * alpha-tdep.c (alpha_gdbarch_init): Update.
1698         * ns32knbsd-nat.c (frame_num_args): Update.
1699         * ns32k-tdep.c (umax_frame_num_args): Update.
1700         * mips-tdep.c (mips_init_frame_pc_first): Update.
1701         * infrun.c (step_over_function): Update.
1702         * i386-linux-tdep.c (skip_hurd_resolver): Update.
1703         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
1704         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
1705         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1706         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1707         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
1708         * arm-linux-tdep.c (skip_hurd_resolver): Update.
1709         * arch-utils.c (init_frame_pc_default): Update.
1710         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1711         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
1712         declaration.
1713         
1714 2003-04-11  Andrew Cagney  <cagney@redhat.com>
1715
1716         * i387-tdep.c: Update copyright.
1717         (i387_to_double): Delete function.
1718         (double_to_i387): Delete function.
1719
1720 2003-04-10  Andrew Cagney  <cagney@redhat.com>
1721
1722         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
1723         frame's function's address.  Simplify.
1724         (d10v_frame_unwind_cache): Check that the frame's function is
1725         non-zero.
1726
1727 2003-04-10  Jim Blandy  <jimb@redhat.com>
1728
1729         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
1730         call to set_gdbarch_deprecated_push_arguments.
1731
1732 2003-04-10  Andrew Cagney  <cagney@redhat.com>
1733
1734         * frame.c (fprint_frame_id): New function.
1735         (fprint_frame_type, fprint_frame): New function.
1736         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
1737         (create_sentinel_frame, get_frame_id): Ditto.
1738         (frame_id_p, frame_id_eq): Ditto.
1739         (frame_id_inner, create_new_frame): Ditto.
1740         (legacy_get_prev_frame, get_prev_frame): Ditto.
1741         (deprecated_update_frame_pc_hack): Ditto.
1742         (frame_register_unwind): Ditto.
1743         (deprecated_update_frame_base_hack): Ditto.
1744
1745 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
1746
1747         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
1748         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
1749         frame_chain function.
1750         * Makefile.in: Add dependencies due to above change.
1751
1752 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
1753
1754         * blockframe.c (legacy_frame_chain_valid): Move call to
1755         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
1756         inside_entry_file.
1757
1758 2003-04-09  Andrew Cagney  <cagney@redhat.com>
1759
1760         * frame.h (struct frame_id): Replace "pc" and "base" with
1761         "stack_addr" and "code_addr".  Update comments.
1762         (frame_id_build): Update parameter names and comment.
1763         (struct frame_info): Replace "id_p" and "id" with "this_id".
1764         * dummy-frame.c (dummy_frame_this_id): Update.
1765         * breakpoint.c (print_one_breakpoint): Update.
1766         * frame.c (get_frame_id): Update.
1767         (get_frame_base, frame_id_build): Update.
1768         (create_sentinel_frame, legacy_get_prev_frame): Update.
1769         (deprecated_update_frame_base_hack): Update.
1770         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
1771         (frame_id_inner): Ditto.
1772
1773 2003-04-09  Andrew Cagney  <cagney@redhat.com>
1774
1775         * defs.h (gdb_print_host_address): Make "addr" parameter a
1776         pointer constant.
1777         * utils.c (gdb_print_host_address): Update.
1778
1779 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
1780
1781         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
1782         register number for R0 is 0.
1783
1784 2003-04-09  J. Brobecker  <brobecker@gnat.com>
1785
1786         * frame.h (struct gdbarch): Add opaque structure definition
1787         to avoid a compilation warning on LynxOS 4.0.
1788
1789 2003-04-09  Andrew Cagney  <cagney@redhat.com>
1790
1791         * frame.h (struct frame_info): Delete field "pc".  Replace
1792         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
1793         structure.
1794         * frame.c (frame_pc_unwind): Update.
1795         (create_sentinel_frame): Do not set "pc".
1796         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
1797         (get_frame_pc): Call frame_pc_unwind.
1798         (deprecated_update_frame_pc_hack): Update.
1799         (create_new_frame): Use "pc" not "->pc".
1800
1801 2003-04-09  Andrew Cagney  <cagney@redhat.com>
1802
1803         * frame.c (get_frame_id): Eliminate code updating "frame".
1804         (legacy_get_prev_frame): Ditto.
1805         (get_frame_base): Return id.base directly.
1806         (deprecated_update_frame_base_hack): Update "id.base".
1807         * frame.h (struct frame_info): Delete field "frame".
1808
1809 2003-04-09  Andrew Cagney  <cagney@redhat.com>
1810
1811         * NEWS: Mention that the "Sequent family" is obsolete.
1812         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
1813         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
1814         * configure.host: Obsolete i[3456]86-sequent-bsd*,
1815         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
1816         * config/i386/tm-ptx4.h: Obsolete file.
1817         * config/i386/tm-ptx.h: Obsolete file.
1818         * symm-tdep.c: Obsolete file.
1819         * config/i386/symmetry.mt: Obsolete file.
1820         * config/i386/tm-symmetry.h: Obsolete file.
1821         * symm-nat.c: Obsolete file.
1822         * config/i386/nm-symmetry.h: Obsolete file.
1823         * config/i386/xm-symmetry.h: Obsolete file.
1824         * config/i386/symmetry.mh: Obsolete file.
1825         * config/i386/nm-ptx4.h: Obsolete file.
1826         * config/i386/ptx4.mh: Obsolete file.
1827         * config/i386/ptx.mt: Obsolete file.
1828         * config/i386/ptx.mh: Obsolete file.
1829         * config/i386/xm-ptx4.h: Obsolete file.
1830         * config/i386/xm-ptx.h: Obsolete file.
1831
1832 2003-04-09  Andrew Cagney  <cagney@redhat.com>
1833
1834         Obsolete mips*-*-mach3*.
1835         * NEWS: Mention that mips*-*-mach3* is obsolete.
1836         * m3-nat.c: Obsolete file.
1837         * config/nm-m3.h: Obsolete file.
1838         * config/mips/tm-mipsm3.h: Obsolete file.
1839         * config/mips/mipsm3.mt: Obsolete file.
1840         * config/mips/mipsm3.mh: Obsolete file.
1841         * config/mips/xm-mipsm3.h: Obsolete file.
1842         * mipsm3-nat.c: Obsolete file.
1843         * configure.host: Obsolete mips-dec-mach3*.
1844         * configure.tgt: Obsolete mips*-*-mach3*.
1845
1846 2003-04-09  Andrew Cagney  <cagney@redhat.com>
1847
1848         * doublest.h: Update copyright.
1849         (deprecated_store_floating, deprecated_extract_floating): Rename
1850         store_floating and extract_floating.  Update comments.
1851         * doublest.c: Update copyright.
1852         (extract_floating_by_length): Replace extract_floating.
1853         (store_floating_by_length): Replace store_floating.
1854         (deprecated_extract_floating): New function.
1855         (deprecated_store_floating): New function.
1856         (extract_typed_floating): Call extract_floating_by_length.
1857         (store_typed_floating): Call store_floating_by_length.
1858         * x86-64-tdep.c (x86_64_store_return_value): Update.
1859         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
1860         (sh64_extract_return_value): Update.
1861         (sh_sh4_register_convert_to_virtual): Update.
1862         (sh_sh64_register_convert_to_virtual): Update.
1863         (sh_sh4_register_convert_to_raw): Update.
1864         (sh_sh64_register_convert_to_raw): Update.
1865         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
1866         (rs6000_register_convert_to_raw): Update.
1867         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
1868         (ia64_register_convert_to_raw): Update.
1869         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
1870         (REGISTER_CONVERT_TO_VIRTUAL): Update.
1871         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
1872         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
1873         (alpha_register_convert_to_raw): Update.
1874
1875 2003-04-08  Andrew Cagney  <cagney@redhat.com>
1876
1877         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
1878         * gdbarch.h, gdbarch.c: Re-generate.
1879         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
1880         (d10v_gdbarch_init): Do not set saved_pc_after_call.
1881         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
1882         conditionally, use frame_pc_unwind as an alternative.  Add
1883         comments.
1884         * arch-utils.c (init_frame_pc_default): Only call
1885         SAVED_PC_AFTER_CALL when available.
1886
1887 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
1888
1889         * infrun.c (stop_soon): Rename from stop_soon_quietly.
1890         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
1891         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
1892         (start_remote): Ditto.
1893         (handle_inferior_event): Ditto.
1894         (save_inferior_status): Ditto.
1895         (restore_inferior_status): Ditto.
1896         * infcmd.c (attach_command): Ditto.
1897         * fork-child.c (startup_inferior): Ditto.
1898         * inferior.h (stop_soon): Rename from stop_soon_quietly.
1899         * alpha-tdep.c (heuristic_proc_start): Ditto.
1900         * mips-tdep.c (heuristic_proc_start): Ditto.
1901         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
1902         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
1903         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
1904         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
1905         * remote-vx.c (vx_create_inferior): Ditto.
1906
1907 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
1908
1909         * infrun.c (stop_soon_quietly): Make it an enum, to better
1910         override the default behavior of handle_inferior_event.
1911         (clear_proceed_status): Update uses of stop_soon_quietly to
1912         reflect that it is now an enum.
1913         (start_remote): Ditto.
1914         (handle_inferior_event): Change logic a bit if stop_soon_quietly
1915         is set to handle the new GNU/Linux kernel behavior for
1916         attach/sigstop.  Update uses of stop_soon_quietly.
1917         * inferior.h (enum stop_kind): New enum.
1918         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
1919         Reset normal handle_inferior_event behavior, afterwards.
1920         * fork-child.c (startup_inferior): Update.
1921         * alpha-tdep.c (heuristic_proc_start): Update.
1922         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1923         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
1924         * solib-osf.c (osf_solib_create_inferior_hook): Update.
1925         * solib-irix.c (irix_solib_create_inferior_hook): Update.
1926         * remote-vx.c (vx_create_inferior): Update.
1927         * mips-tdep.c (heuristic_proc_start): Update.
1928
1929 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
1930
1931         * disasm.c (dump_insns):  Move variables inside loop, or they will
1932         be freed more than once, causing wild memory corruptions.
1933         (gdb_disassembly): Look for the substring "-thread",
1934         instead of "-threads" in the target name, to make sure to find
1935         the 'multi-thread' target.  Also, make sure we do the right thing 
1936         with the "core" target.
1937
1938 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
1939
1940         * mips-tdep.c (mips_print_fp_register): New function, created from
1941         do_fp_register_row().  Registers are now (also) printed as hex.
1942         Only one register is printed per row.
1943         (mips_print_register, do_fp_register_row): Print floating point
1944         registers with mips_print_fp_register().
1945
1946 2003-04-06  Andrew Cagney  <cagney@redhat.com>
1947
1948         * valprint.h (inspect_it): Add extern declaration.
1949         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
1950         (selectors_info, classes_info): Ditto.
1951         (find_objc_msgcall): Fix indentation.
1952         (objc_printstr): Delete extern declarations.
1953
1954         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
1955
1956 2003-04-06  Andrew Cagney  <cagney@redhat.com>
1957
1958         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
1959         Update comment.
1960         * frame.c (legacy_saved_regs_this_id): Update.
1961         (legacy_get_prev_frame): Update.
1962         * xstormy16-tdep.c: Update comment.
1963         * sparc-tdep.c (sparc_frame_chain): Update comment.
1964         * blockframe.c (legacy_frame_chain_valid): Update.
1965
1966 2003-04-06  Andrew Cagney  <cagney@redhat.com>
1967
1968         * valprint.c (val_print_type_code_int): Delete #ifdef
1969         PRINT_TYPELESS_INTEGER code.
1970
1971         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
1972         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
1973         multi-arch definition.
1974         * gdbarch.h: Re-generate.
1975
1976 2003-04-05  Andrew Cagney  <cagney@redhat.com>
1977
1978         Eliminate FRAME_FIND_SAVED_REGS.
1979         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
1980         Change FSR parameter to a pointer.
1981         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
1982         Assume FSR parameter is a pointer.
1983         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
1984         Make fsr a pointer.
1985         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
1986         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
1987         saved_regs a pointer.
1988         (hppa_frame_saved_pc): Ditto.
1989         (find_dummy_frame_regs): Make frame_saved_regs a pointer
1990         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
1991         pointer.
1992         (restore_pc_queue): Make fsr a pointer.
1993         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
1994         (hppa_frame_chain): Make saved_regs a pointer, call
1995         hppa_frame_init_saved_regs.
1996         * sparc-tdep.c: Include "gdb_assert.h".
1997         (sparc_frame_find_saved_regs): Replace internal_error with
1998         gdb_assert.
1999         * remote-vxsparc.c (vx_read_register): Delete reference to
2000         FRAME_FIND_SAVED_REGS.
2001         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
2002         * gdbarch.h: Regenerate.
2003         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
2004         (deprecated_get_frame_saved_regs): Delete declaration.
2005         (struct frame_saved_regs): Delete definition.
2006         * frame.c (deprecated_get_frame_saved_regs): Delete function.
2007         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
2008         (hppa_frame_find_saved_regs): Delete declaration.
2009         (FRAME_FIND_SAVED_REGS): Delete macro.
2010         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
2011         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
2012         FRAME_FIND_SAVED_REGS in comment.
2013
2014 2003-04-05  Andrew Cagney  <cagney@redhat.com>
2015
2016         * frame.c (frame_func_unwind, get_frame_func): New functions.
2017         * frame.h (get_frame_func, frame_func_unwind): Declare.
2018         (struct frame_info): Add field "prev_func" for caching the
2019         previous frame's function address.
2020         * arm-tdep.c (arm_frameless_function_invocation): Combine
2021         get_pc_function_start and get_frame_pc into get_frame_func.
2022         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
2023         (sh64_nofp_frame_init_saved_regs): Ditto.
2024         * s390-tdep.c (s390_function_start): Ditto.
2025         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
2026         (rs6000_frameless_function_invocation): Ditto.
2027         (rs6000_frame_saved_pc): Ditto.
2028         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
2029         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
2030         * i386-tdep.c (i386_frameless_signal_p): Ditto.
2031         (i386_frame_init_saved_regs): Ditto.
2032         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
2033         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
2034         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
2035         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2036         * blockframe.c (frameless_look_for_prologue): Ditto.
2037
2038 2003-04-05  Andrew Cagney  <cagney@redhat.com>
2039
2040         * frame.c (legacy_get_prev_frame): Link prev to next at the
2041         function start.  Update comments.
2042
2043 2003-04-05  Andrew Cagney  <cagney@redhat.com>
2044
2045         * frame.c (get_frame_id): Update comment.
2046         (legacy_get_prev_frame): Update comment.
2047         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
2048         * gdbarch.h: Regenerate.
2049         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
2050         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
2051
2052 2003-04-05  Andrew Cagney  <cagney@redhat.com>
2053
2054         * stack.c (print_frame_info): Use get_frame_pc.
2055
2056 2003-04-04  Andrew Cagney  <cagney@redhat.com>
2057
2058         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
2059         the frame's type from the unwinder.
2060         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
2061         (create_new_frame, legacy_get_prev_frame): When the unwinder's
2062         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
2063         (get_frame_base_address): Use get_frame_type.
2064         (get_frame_locals_address, get_frame_args_address): Ditto.
2065         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
2066         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
2067         (struct frame_info): Add comment explaining why the frame contains
2068         a "type" field.
2069         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
2070         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
2071         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
2072         NORMAL_FRAME.
2073         * frame-unwind.h: Include "frame.h".
2074         (struct frame_unwind): Add "type" field.
2075         * Makefile.in (frame_unwind_h): Add $(frame_h).
2076         
2077 2003-04-04  Andrew Cagney  <cagney@redhat.com>
2078
2079         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
2080         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
2081         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
2082         get_frame_base.
2083         (d10v_unwind_dummy_id): Use frame_id_build.
2084         * frame.c (find_frame_sal): Use get_frame_pc.
2085         (create_new_frame): Use deprecated_update_frame_pc_hack and
2086         deprecated_update_frame_base_hack.
2087         (create_sentinel_frame): Add comment about ->pc going away.
2088         (get_prev_frame): Add comment about ->pc going away.
2089         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
2090         frame_id_build, deprecated_update_frame_pc_hack and
2091         deprecated_update_frame_base_hack.
2092         (select_frame): Use get_frame_pc.
2093         (legacy_saved_regs_this_id): Use frame_id_build.
2094
2095 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
2096
2097         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
2098         signed integer case.
2099         (classify_argument): Handle enumerations and references.
2100
2101 2003-04-04  Andrew Cagney  <cagney@redhat.com>
2102
2103         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
2104         ID to NULL.
2105
2106 2003-04-01  Adam Fedor  <fedor@gnu.org>
2107
2108         * gdb/objc-lang.c (selectors_info): Replace calls to
2109         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
2110         SYMBOL_NATURAL_NAME.
2111         (classes_info, find_methods): Likewise.
2112
2113 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
2114
2115         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
2116         ``mach'' to the value determined by bfd_default_set_arch_mach().
2117
2118 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
2119
2120         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
2121         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
2122         (mi-cmd-file.o): Update dependencies.
2123
2124 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
2125
2126         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2127         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
2128
2129 2003-04-01  Adam Fedor  <fedor@gnu.org>
2130
2131         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
2132         * language.h (struct language_defn): Add la_demangle.
2133         (language_demangle): Declare.
2134         * language.c (language_demangle): New function.
2135         (unk_lang_demangle): Likewise.
2136         (unknown_language_defn, auto_language_defn, local_language_defn):
2137         Add ukn_lang_demangle.
2138         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
2139         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
2140         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
2141         (cplus_language_defn): Add cplus_demangle for la_demangle element.
2142         * jv-lang.c (java_demangle): New function
2143         (java_language_defn): Use it for la_demangle element.
2144         * objc-lang.c (objc_demangle): Add options argument
2145         (objc_language_defn): Use objc_demangle for la_demangle element.
2146         * maint.c (maintenance_demangle): Replace switch with
2147         call to language_demangle.
2148         * utils.c (fprintf_symbol_filtered): Likewise.
2149
2150 2003-04-01  Andrew Cagney  <cagney@redhat.com>
2151
2152         * printcmd.c (print_frame_nameless_args): Delete #ifdef
2153         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
2154         PRINT_TYPELESS_INTEGER.
2155         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
2156         PUSH_RETURN_ADDRESS.
2157
2158 2003-04-01  Andrew Cagney  <cagney@redhat.com>
2159
2160         * Makefile.in (d10v-tdep.o): Update dependencies.
2161         * d10v-tdep.c: Include "frame-base.h".
2162         (d10v_frame_unwind): Make constant.
2163         (d10v_frame_base_address): New function.
2164         (d10v_frame_base): New variable.
2165         (d10v_gdbarch_init): Set frame_base default.
2166         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
2167         comment for base.
2168         (d10v_frame_unwind_cache): Set and use "prev_sp".
2169         (d10v_frame_this_id): Use the previous frame's inner most stack
2170         address and this frame's func address for the frame ID.  Use
2171         frame_id_build.  Don't analyze beyond the current instruction.
2172         
2173 2003-04-01  Andrew Cagney  <cagney@redhat.com>
2174
2175         * frame.h (get_frame_locals_address, get_frame_args_address):
2176         Refer to the base address, instead of the address of the first
2177         local or parameter.
2178         
2179 2003-04-01  Andrew Cagney  <cagney@redhat.com>
2180
2181         Add frame debug info addresses:
2182         * frame-base.c: New file.
2183         * frame-base.h: New file.
2184         * frame.h (struct frame_base): Add opaque declaration.
2185         (get_frame_base): Update comment.
2186         (get_frame_base_address): Declare.
2187         (get_frame_locals_address): Declare.
2188         (get_frame_args_address): Declare.
2189         (struct frame_info): Add "base" and "base_cache".  Update
2190         comments on the unwinder.
2191         * frame.c: Include "frame-base.h".
2192         (get_frame_locals_address): New function.
2193         (get_frame_base_address): New function.
2194         (get_frame_args_address): New function.
2195         * findvar.c (read_var_value): Use get_frame_locals_address and
2196         get_frame_args_address.
2197         * stack.c (frame_info): Use get_frame_locals_address and
2198         get_frame_args_address.
2199         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
2200         moved to "frame-base.c".
2201         * printcmd.c (print_frame_nameless_args): Ditto.
2202         * symtab.h (address_class): Update comments.
2203         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
2204         get_frame_base_address.
2205         * dwarf2expr.c (execute_stack_op): Ditto.
2206         * Makefile.in (frame_base_h): Define.
2207         (frame.o): Update dependencies.
2208         (frame-base.o): Add dependencies.
2209         (SFILES): Add frame-base.c.
2210         (COMMON_OBS): Add frame-base.o.
2211
2212 2003-04-01  Andrew Cagney  <cagney@redhat.com>
2213
2214         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
2215         CALL_DUMMY_LENGTH): Ditto.
2216         * gdbarch.c: Re-generate.
2217         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
2218         (CALL_DUMMY_LENGTH): Delete macro.
2219         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
2220         * arm-tdep.c (arm_gdbarch_init): Ditto.
2221         * avr-tdep.c (avr_gdbarch_init): Ditto.
2222         * cris-tdep.c (cris_gdbarch_init): Ditto.
2223         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2224         * frv-tdep.c (frv_gdbarch_init): Ditto.
2225         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2226         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2227         * i386-tdep.c (i386_gdbarch_init): Ditto.
2228         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2229         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2230         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2231         * mips-tdep.c (mips_gdbarch_init): Ditto.
2232         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2233         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2234         * s390-tdep.c (s390_gdbarch_init): Ditto.
2235         * sh-tdep.c (sh_gdbarch_init): Ditto.
2236         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2237         * v850-tdep.c (v850_gdbarch_init): Ditto.
2238         * vax-tdep.c (vax_gdbarch_init): Ditto.
2239         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2240
2241 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
2242
2243         * frame.c (get_prev_frame): Disable call to inside_entry_file().
2244
2245 2003-04-01  Andrew Cagney  <cagney@redhat.com>
2246
2247         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
2248         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2249         * gdbarch.h, gdbarch.c: Re-generate.
2250         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2251         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2252         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2253         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2254         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2255         * infcmd.c (run_stack_dummy): Simplify assuming
2256         CALL_DUMMY_BREAKPOINT_OFFSET_P.
2257         * infrun.c (handle_inferior_event): Ditto.
2258         * alpha-tdep.c (alpha_gdbarch_init): Do not set
2259         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
2260         * arm-tdep.c (arm_gdbarch_init): Ditto.
2261         * avr-tdep.c (avr_gdbarch_init): Ditto.
2262         * cris-tdep.c (cris_gdbarch_init): Ditto.
2263         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2264         * frv-tdep.c (frv_gdbarch_init): Ditto.
2265         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2266         * i386-tdep.c (i386_gdbarch_init): Ditto.
2267         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2268         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2269         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2270         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2271         * mips-tdep.c (mips_gdbarch_init): Ditto.
2272         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2273         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2274         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2275         * s390-tdep.c (s390_gdbarch_init): Ditto.
2276         * sh-tdep.c (sh_gdbarch_init): Ditto.
2277         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2278         * v850-tdep.c (v850_gdbarch_init): Ditto.
2279         * vax-tdep.c (vax_gdbarch_init): Ditto.
2280         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2281
2282 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
2283
2284         * symfile.c (symfile_relocate_debug_section): Update call to
2285         bfd_simple_get_relocated_section_contents.
2286
2287 2003-03-31  Andrew Cagney  <cagney@redhat.com>
2288
2289         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
2290         * gdbarch.h, gdbarch.c: Regenerate.
2291         * inferior.h (FIX_CALL_DUMMY): Delete macro.
2292         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
2293         available.
2294         * frame.h (generic_fix_call_dummy): Delete declaration.
2295         * dummy-frame.h: Update comment.
2296         * dummy-frame.c (generic_fix_call_dummy): Delete function.
2297         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2298         fix_call_dummy.
2299         * sh-tdep.c (sh_gdbarch_init): Ditto.
2300         * s390-tdep.c (s390_gdbarch_init): Ditto.
2301         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2302         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2303         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2304         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2305         * i386-tdep.c (i386_gdbarch_init): Ditto.
2306         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2307         * frv-tdep.c (frv_gdbarch_init): Ditto.
2308         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2309         * cris-tdep.c (cris_gdbarch_init): Ditto.
2310         * avr-tdep.c (avr_gdbarch_init): Ditto.
2311         * arm-tdep.c (arm_gdbarch_init): Ditto.
2312
2313 2003-03-31  J. Brobecker  <brobecker@gnat.com>
2314
2315         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
2316         (INIT_FRAME_AP): Likewise.
2317         (EXTRA_FRAME_INFO): Likewise.
2318
2319 2003-03-31  Andrew Cagney  <cagney@redhat.com>
2320
2321         * gdbarch.sh: Include "symfile.h".
2322         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
2323         * gdbarch.h, gdbarch.c: Re-generate.
2324         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
2325         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2326         call_dummy_address, the default is at entry_point_address.
2327         * v850-tdep.c (v850_gdbarch_init): Ditto.
2328         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2329         * sh-tdep.c (sh_gdbarch_init): Ditto.
2330         * s390-tdep.c (s390_gdbarch_init): Ditto.
2331         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2332         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2333         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2334         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2335         * i386-tdep.c (i386_gdbarch_init): Ditto.
2336         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2337         * frv-tdep.c (frv_gdbarch_init): Ditto.
2338         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2339         * cris-tdep.c (cris_gdbarch_init): Ditto.
2340         * arm-tdep.c (arm_gdbarch_init): Ditto.
2341
2342 2003-03-31  Andrew Cagney  <cagney@redhat.com>
2343
2344         * gdbarch.sh (CALL_DUMMY_P): Delete.
2345         * gdbarch.h, gdbarch.c: Re-generate.
2346         * inferior.h (CALL_DUMMY_P): Delete macro.
2347         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2348         * vax-tdep.c (vax_gdbarch_init): Update.
2349         * v850-tdep.c (v850_gdbarch_init): Update.
2350         * sparc-tdep.c (sparc_gdbarch_init): Update.
2351         * sh-tdep.c (sh_gdbarch_init): Update.
2352         * s390-tdep.c (s390_gdbarch_init): Update.
2353         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2354         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2355         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2356         * mips-tdep.c (mips_gdbarch_init): Update.
2357         * mcore-tdep.c (mcore_gdbarch_init): Update.
2358         * m68k-tdep.c (m68k_gdbarch_init): Update.
2359         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2360         * ia64-tdep.c (ia64_gdbarch_init): Update.
2361         * i386-tdep.c (i386_gdbarch_init): Update.
2362         * h8300-tdep.c (h8300_gdbarch_init): Update.
2363         * frv-tdep.c (frv_gdbarch_init): Update.
2364         * d10v-tdep.c (d10v_gdbarch_init): Update.
2365         * cris-tdep.c (cris_gdbarch_init): Update.
2366         * breakpoint.c (deprecated_frame_in_dummy): Update.
2367         * avr-tdep.c (avr_gdbarch_init): Update.
2368         * alpha-tdep.c (alpha_gdbarch_init): Update.
2369         * arm-tdep.c (arm_gdbarch_init): Update.
2370         * dummy-frame.c (dummy_frame_this_id): Update comments.
2371         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
2372         * frame.c (legacy_get_prev_frame): Ditto.
2373         * valops.c (call_function_by_hand): Delete function.
2374         (hand_function_call): Rename to call_function_by_hand
2375
2376 2003-03-30  Andrew Cagney  <cagney@redhat.com>
2377
2378         2002-11-10 Klee Dienes <kdienes@apple.com>
2379         * value.h (struct value): Update comment.
2380
2381 2003-03-30  Andrew Cagney  <cagney@redhat.com>
2382
2383         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
2384         D10V_FP_REGNUM.
2385         (d10v_gdbarch_init): Do not set fp_regnum.
2386
2387         * frame.c (get_frame_base): Force ID initialization.
2388         (get_prev_frame): Move computation of the frame ID from here ...
2389         (get_frame_id): ... to here.
2390         (legacy_get_prev_frame): Mark the frame ID as valid.
2391         * frame.h (struct frame_info): Add field "id_p".
2392
2393 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
2394
2395         * i386-tdep.c (i386_store_struct_return): Removed.
2396         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
2397
2398 2003-03-30  Andrew Cagney  <cagney@redhat.com>
2399
2400         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
2401         * gdbarch.h, gdbarch.c: Regenerate.
2402         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
2403         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2404         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2405         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2406         * i386-tdep.c (i386_gdbarch_init): Ditto.
2407         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2408         * cris-tdep.c (cris_gdbarch_init): Ditto.
2409         * vax-tdep.c (vax_gdbarch_init): Ditto.
2410         * s390-tdep.c (s390_gdbarch_init): Ditto.
2411         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2412         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2413         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2414         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
2415         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2416         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
2417         * sparc-tdep.c (sparc_gdbarch_init): Update.
2418         * sh-tdep.c (sh_gdbarch_init): Update.
2419         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2420         * mips-tdep.c (mips_gdbarch_init): Update.
2421         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2422         * ia64-tdep.c (ia64_gdbarch_init): Update.
2423         * frv-tdep.c (frv_gdbarch_init): Update.
2424         * avr-tdep.c (avr_gdbarch_init): Update.
2425         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
2426         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
2427         instead of when push_dummy_call is not available.
2428         
2429 2003-03-30  Andrew Cagney  <cagney@redhat.com>
2430
2431         * infttrace.c: Include "gdbthread.h".
2432         (parent_attach_all): Fix function signature.
2433         (call_ptrace): Update call.
2434         * Makefile.in (infttrace.o): Update dependencies.
2435
2436 2003-03-30  Andrew Cagney  <cagney@redhat.com>
2437
2438         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
2439         PUSH_RETURN_ADDRESS.
2440         * gdbarch.h, gdbarch.c: Regenerate.
2441         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2442         * x86-64-tdep.c (x86_64_init_abi): Update.
2443         * v850-tdep.c (v850_gdbarch_init): Update.
2444         * sparc-tdep.c (sparc_gdbarch_init): Update.
2445         * sh-tdep.c (sh_gdbarch_init): Update.
2446         * s390-tdep.c (s390_gdbarch_init): Update.
2447         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2448         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2449         * mips-tdep.c (mips_gdbarch_init): Update.
2450         * mcore-tdep.c (mcore_gdbarch_init): Update.
2451         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2452         * ia64-tdep.c (ia64_gdbarch_init): Update.
2453         * i386-tdep.c (i386_gdbarch_init): Update.
2454         * h8300-tdep.c (h8300_gdbarch_init): Update.
2455         * frv-tdep.c (frv_gdbarch_init): Update.
2456         * cris-tdep.c (cris_gdbarch_init): Update.
2457         * avr-tdep.c (avr_gdbarch_init): Update.
2458         * arm-tdep.c (arm_gdbarch_init): Update.
2459         * valops.c (hand_function_call): Update.
2460
2461 2003-03-29  Andrew Cagney  <cagney@redhat.com>
2462
2463         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
2464         sizeof_call_dummy_words.
2465         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
2466         define.
2467         * gdbarch.h: Regenerate.
2468         
2469 2003-03-29  Andrew Cagney  <cagney@redhat.com>
2470
2471         * infttrace.h: New file.
2472         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
2473         (hpread_get_textlow): Detect an uninitialized dn_bufp.
2474         (hpread_read_doc_function_type): Detect an initialized type1.
2475         (hpread_quick_traverse): Initialize mod_name_string.
2476         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
2477         (som_solib_get_solib_by_pc): Declare.
2478         (so_lib_thread_start_addr): Declare.
2479         (no_shared_libraries): Declare.
2480         * somread.c (init_import_symbols): Make static.  Add forward
2481         declaration.
2482         * config/pa/nm-hppah.h: Include "infttrace.h" for
2483         parent_attach_all.
2484         (hppa_insert_hw_watchpoint): Declare.
2485         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
2486         * hppah-nat.c: Include "gdb_string.h".
2487         (parent_attach_all): Delete extern declaration, moved to
2488         "infttrace.h".
2489         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
2490         int.
2491         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
2492         * Makefile.in (infttrace_h): Define.
2493         (hpread.o): Update dependencies.
2494         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
2495         * hppa-hpux-tdep.c: Include "gdb_string.h".
2496         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
2497         * infrun.c (handle_inferior_event): Always initialize
2498         stepped_after_stopped_by_watchpoint.  Add default and remove
2499         fallthrough in switch statement.
2500         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
2501         parameter to int.
2502         (hppa_remove_hw_watchpoint): Ditto.
2503
2504 2003-03-29  Andrew Cagney  <cagney@redhat.com>
2505
2506         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
2507         offset.
2508
2509 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
2510
2511         * arm-tdep.c (arm_push_arguments): Delete.
2512         (struct stack_item): New type.
2513         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
2514         (arm_store_struct_return): Delte.
2515         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
2516         arm_push_arguments or arm_store_struct_return.
2517
2518 2003-03-28  Andrew Cagney  <cagney@redhat.com>
2519
2520         * Makefile.in (d10v-tdep.o): Update dependencies.
2521         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
2522         * d10v-tdep.c: Include "remote.h".
2523         (target_resume_hook): Delete extern declaration.
2524         (target_wait_loop_hook): Ditto.
2525         (tdisassemble_command): Eliminate assignment in "if" conditional.
2526         (d10v_ts2_register_sim_regno): Eliminate call to
2527         legacy_register_sim_regno.
2528         (d10v_ts3_register_sim_regno): Ditto.
2529
2530 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
2531
2532         * thread.c: Reindented.
2533         * lin-lwp.c: Ditto.
2534         * linux-proc.c: Ditto.
2535
2536 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
2537
2538         * MAINTAINERS (write after approval): Add myself.
2539
2540 2003-03-27  Theodore A. Roth  <troth@openavr.org>
2541
2542         * objc-exp.y: Add missing semi-colons.
2543
2544 2003-03-27  Andrew Cagney  <cagney@redhat.com>
2545
2546         * regcache.c (write_sp): Delete function and references.
2547         * inferior.h (write_sp): Delete declaration.
2548         * valops.c (hand_function_call): Replace write_sp with
2549         TARGET_WRITE_SP.
2550         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
2551         (sparc_pop_frame): Ditto.
2552         
2553 2003-03-27  Andrew Cagney  <cagney@redhat.com>
2554
2555         * NEWS: Mention removal of support for hppa*-*-bsd* and
2556         hppa*-*-osf* natives, and hppa*-*-pro* target.
2557         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
2558         * config/pa/xm-pa.h: Obsolete file.
2559         * config/pa/xm-hppab.h: Obsolete file.
2560         * config/pa/nm-hppab.h: Obsolete file.
2561         * config/pa/tm-hppab.h: Obsolete file.
2562         * config/pa/tm-hppao.h: Obsolete file.
2563         * config/pa/nm-hppao.h: Obsolete file.
2564         * config/pa/tm-pro.h: Obsolete file.
2565         * config/pa/hppaosf.mt: Obsolete file.
2566         * config/pa/hppaosf.mh: Obsolete file.
2567         * config/pa/hppapro.mt: Obsolete file.
2568         * config/pa/hppabsd.mt: Obsolete file.
2569         * config/pa/hppabsd.mh: Obsolete file.
2570         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
2571         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
2572         hppa*-*-osf*.
2573
2574 2003-03-27  Andrew Cagney  <cagney@redhat.com>
2575
2576         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
2577         push_arguments.  Don't set push_return_address or write_sp.
2578         (d10v_push_dummy_call): Replace d10v_push_arguments.
2579         (d10v_push_return_address, d10v_write_sp): Delete function,
2580         handled by push_dummy_call.
2581
2582 2003-03-26  Andrew Cagney  <cagney@redhat.com>
2583
2584         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
2585         (push_dummy_call): New pure multi-arch replacement with gdbarch,
2586         regcache and dummy_addr parameters.
2587         * gdbarch.h, gdbarch.c: Re-generate.
2588         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
2589         available; assume it will handle stack alignment and return
2590         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
2591         legacy_push_arguments.
2592         (legacy_push_arguments): Rename default_push_arguments.
2593         * value.h (legacy_push_arguments): Rename default_push_arguments.
2594         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
2595         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2596         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2597         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2598         * config/i386/tm-symmetry.h: Update.
2599         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2600         * x86-64-tdep.c (x86_64_init_abi): Update.
2601         * v850-tdep.c (v850_gdbarch_init): Update.
2602         * sparc-tdep.c (sparc_gdbarch_init): Update.
2603         * sh-tdep.c (sh_gdbarch_init): Update.
2604         * s390-tdep.c (s390_gdbarch_init): Update.
2605         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2606         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2607         * mips-tdep.c (mips_gdbarch_init): Update.
2608         * mcore-tdep.c (mcore_gdbarch_init): Update.
2609         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2610         * ia64-tdep.c (ia64_gdbarch_init): Update.
2611         * i386-tdep.c (i386_gdbarch_init): Update.
2612         * hppa-tdep.c (hppa_gdbarch_init): Update.
2613         * h8300-tdep.c (h8300_gdbarch_init): Update.
2614         * frv-tdep.c (frv_gdbarch_init): Update.
2615         * d10v-tdep.c (d10v_gdbarch_init): Update.
2616         * cris-tdep.c (cris_gdbarch_init): Update.
2617         * avr-tdep.c (avr_gdbarch_init): Update.
2618         * arm-tdep.c (arm_gdbarch_init): Update.
2619         * arm-linux-tdep.c (arm_linux_init_abi): Update.
2620         * alpha-tdep.c (alpha_gdbarch_init): Update.
2621
2622 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
2623
2624         * signals/signals.c (do_target_signal_to_host): Correct realtime
2625         signal range test.
2626
2627 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
2628
2629         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
2630         (struct sal_chain, map_catch_names): Remove.
2631         (catch_exception_command_1): Don't call
2632         handle_gnu_4_16_catch_command.
2633
2634 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
2635
2636         From Mark Dettinger <dettinge@de.ibm.com>:
2637         * dwarf2cfi.c (read_2u): Increment pointer by two.
2638
2639 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
2640
2641         * signals/signals.c: Fix typos in last change.
2642
2643 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
2644
2645         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
2646         not already defined.  Use __SIGRTMIN if available.
2647         (target_signal_from_host): Remove SIGRTMIN block.
2648         (do_target_signal_to_host): Remove SIGRTMIN block; check that
2649         the signal is within the realtime range.
2650
2651 2003-03-25  Adam Fedor  <fedor@gnu.org>
2652
2653         * Makefile.in (infrun.o): Add $(language_h)
2654         * infrun.c (handle_inferior_event): Use skip_language_trampoline
2655         for language specific trampolines.
2656         * language.h (struct language_defn): Add skip_trampoline.
2657         (skip_language_trampoline): Declare.
2658         * language.c (unk_lang_trampoline, skip_language_trampoline):
2659         New functions.
2660         (unknown_language_defn, auto_language_defn, local_language_defn):
2661         Add ukn_lang_trampoline.
2662         * ada-lang.c (ada_language_defn): Add NULL for language
2663         specific skip_trampoline.
2664         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
2665         scm-lang.c: Likewise.
2666         * objc-lang.c (objc_skip_trampoline): New function.
2667         (objc_language_defn): Add objc_skip_trampoline.
2668
2669 2003-03-25  Andrew Cagney  <cagney@redhat.com>
2670
2671         * frame.c (get_prev_frame): Delay validating a frame's ID -
2672         non-NULL, didn't go backwards - until an attempt to unwind it to
2673         the previous frame.
2674
2675 2003-03-25  Andrew Cagney  <cagney@redhat.com>
2676
2677         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
2678         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
2679         * gdbarch.h, gdbarch.c: Re-generate.
2680         * config/sparc/tm-sparc.h
2681         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
2682         * sparc-tdep.c (sparc_gdbarch_init): Set
2683         deprecated_extra_stack_alignment_needed.
2684         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
2685         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
2686         extra_stack_alignment_needed.
2687         * v850-tdep.c (v850_gdbarch_init): Ditto.
2688         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2689         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2690         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2691         * cris-tdep.c (cris_gdbarch_init): Ditto.
2692         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2693         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2694         
2695 2003-03-25  Andrew Cagney  <cagney@redhat.com>
2696
2697         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
2698         STORE_STRUCT_RETURN.
2699         * gdbarch.h, gdbarch.c: Regenerate.
2700         * d10v-tdep.c (d10v_store_struct_return): Delete function.
2701         (d10v_push_arguments): Set the struct return register.
2702         (d10v_gdbarch_init): Update.
2703         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2704         * x86-64-tdep.c (x86_64_init_abi): Update.
2705         * vax-tdep.c (vax_gdbarch_init): Update.
2706         * v850-tdep.c (v850_gdbarch_init): Update.
2707         * sparc-tdep.c (sparc_gdbarch_init): Update.
2708         * sh-tdep.c (sh_gdbarch_init): Update.
2709         * s390-tdep.c (s390_gdbarch_init): Update.
2710         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2711         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2712         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2713         * mips-tdep.c (mips_gdbarch_init): Update.
2714         * mcore-tdep.c (mcore_gdbarch_init): Update.
2715         * m68k-tdep.c (m68k_gdbarch_init): Update.
2716         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2717         * ia64-tdep.c (ia64_gdbarch_init): Update.
2718         * i386-tdep.c (i386_gdbarch_init): Update.
2719         * hppa-tdep.c (hppa_gdbarch_init): Update.
2720         * h8300-tdep.c (h8300_gdbarch_init): Update.
2721         * frv-tdep.c (frv_gdbarch_init): Update.
2722         * cris-tdep.c (cris_gdbarch_init): Update.
2723         * avr-tdep.c (avr_gdbarch_init): Update.
2724         * arm-tdep.c (arm_gdbarch_init): Update.
2725         * alpha-tdep.c (alpha_gdbarch_init): Update.
2726         
2727 2003-03-25  Andrew Cagney  <cagney@redhat.com>
2728
2729         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
2730         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
2731         CALL_DUMMY_STACK_ADJUST with a predicate variable.
2732         * gdbarch.h, gdbarch.c: Regenerate.
2733         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2734         call_dummy_stack_adjust_p.
2735         * vax-tdep.c (vax_gdbarch_init): Ditto.
2736         * v850-tdep.c (v850_gdbarch_init): Ditto.
2737         * sh-tdep.c (sh_gdbarch_init): Ditto.
2738         * s390-tdep.c (s390_gdbarch_init): Ditto.
2739         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2740         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2741         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2742         * mips-tdep.c (mips_gdbarch_init): Ditto.
2743         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2744         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2745         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2746         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2747         * i386-tdep.c (i386_gdbarch_init): Ditto.
2748         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2749         * frv-tdep.c (frv_gdbarch_init): Ditto.
2750         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2751         * cris-tdep.c (cris_gdbarch_init): Ditto.
2752         * avr-tdep.c (avr_gdbarch_init): Ditto.
2753         * arm-tdep.c (arm_gdbarch_init): Ditto.
2754         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2755         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
2756         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
2757         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
2758         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
2759         call_dummy_stack_adjust_p.
2760         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
2761         (CALL_DUMMY_STACK_ADJUST): Delete macro.
2762         * sparc-tdep.c (sparc32_push_arguments): Update.
2763         * valops.c (hand_function_call): Update.
2764
2765 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
2766
2767         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
2768         set_gdbarch_char_signed.
2769
2770 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
2771
2772         PR cli/548
2773         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
2774
2775 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
2776
2777         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
2778         (_initialize_arm_tdep): Don't set tm_print_insn.
2779
2780 2003-03-24  Adam Fedor  <fedor@gnu.org>
2781
2782         * Makefile.in (YYOBJ): Add objc-exp.tab.o
2783         * objc-lang.h: Add multiple inclusion protection.
2784         (start_msglist, add_msglist, end_msglist): Additional declarations.
2785
2786 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
2787
2788         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
2789         value was renamed to ARM_FLOAT_SOFT_FPA.
2790
2791 2003-03-23  Andrew Cagney  <cagney@redhat.com>
2792
2793         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
2794         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
2795         * gdbarch.h, gdbarch.c: Regenerate.
2796         * valops.c (hand_function_call): Update.
2797         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
2798         * frame.c (legacy_saved_regs_this_id): Update.
2799         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
2800         * dummy-frame.h: Update.
2801         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
2802         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
2803         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
2804         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
2805         * config/m68k/tm-sun3.h: Update.
2806         * blockframe.c (inside_main_func, frame_chain_valid): Update.
2807         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2808         * x86-64-tdep.c (x86_64_init_abi): Update.
2809         * vax-tdep.c (vax_gdbarch_init): Update.
2810         * v850-tdep.c (v850_gdbarch_init): Update.
2811         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
2812         * sh-tdep.c (sh_gdbarch_init): Update.
2813         * s390-tdep.c (s390_gdbarch_init): Update.
2814         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2815         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
2816         (frame_get_saved_regs): Update.
2817         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2818         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2819         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2820         * mips-tdep.c (mips_gdbarch_init): Update.
2821         * mcore-tdep.c (mcore_gdbarch_init): Update.
2822         * m68k-tdep.c (m68k_gdbarch_init): Update.
2823         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2824         * ia64-tdep.c (ia64_gdbarch_init): Update.
2825         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
2826         * i386-interix-tdep.c (i386_interix_init_abi): Update.
2827         (i386_interix_back_one_frame): Update.
2828         * hppa-tdep.c (hppa_gdbarch_init): Update.
2829         (hppa_init_extra_frame_info): Update.
2830         * h8300-tdep.c (h8300_gdbarch_init): Update.
2831         * frv-tdep.c (frv_gdbarch_init): Update.
2832         * cris-tdep.c (cris_gdbarch_init): Update.
2833         * avr-tdep.c (avr_gdbarch_init): Update.
2834         * arm-tdep.c (arm_gdbarch_init): Update.
2835         * alpha-tdep.c (alpha_gdbarch_init): Update.
2836
2837 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
2838
2839         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
2840         (arm_get_fp_model): Declare.
2841         * arm-tdep.c (fp_model_strings): New string array.
2842         (arm_fp_model, current_fp_model): New variables.
2843         (arm_get_fp_model): New function.
2844         (arm_set_fp): New function.
2845         (set_fp_model_sfunc): New function.
2846         (show_fp_model): New function.
2847         (_initialize_arm_tdep): Add new command to set/show the FPU.
2848         (arm_extract_return_value): Use arm_get_fp_model.
2849         (arm_store_return_value): Likewise.
2850         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
2851         to initialize the floating-point data types.
2852         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
2853         model is FPA.
2854
2855 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
2856
2857         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
2858         the current setting of each value.
2859         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
2860         new_set and new_show.  Use add_setshow_cmd_full and 
2861         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
2862         commands and add new version as subcommands of "set/show arm".
2863
2864 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
2865
2866         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
2867         (set_arm_command, show_arm_command): New functions.
2868         (_initialize_arm_tdep): Add them.
2869         (num_disassembly_options): Renamed from num_flavor_options.
2870         (valid_disassembly_styles): Renamed from valid_flavors.
2871         (disassembly_style): Renamed from disassembly_flavor.
2872         (set_disassembly_style_sfunc): Renamed from 
2873         set_disassembly_flavor_sfunc.
2874         (set_disassembly_style): Renamed from set_disassembly_flavor.
2875         (arm_othernames): Updated.
2876         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
2877         command.  Add "set/show arm disassembly" commands.  Deprecate
2878         "othernames" command.
2879
2880 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
2881
2882         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
2883         (arm-tdep.o): Depend on elf_arm_h.
2884
2885 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
2886
2887         * Makefile.in (coff_internal_h): Define.
2888         (arm-tdep.o): Update dependencies.
2889
2890 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
2891
2892         * arm-tdep.c (prologue_cache): Delete.
2893         (check_prologue_cache, save_prologue_cache): Delete.
2894         (arm_scan_prologue): Don't check or update the prologue_cache.
2895         (arm_gdb_arch_init): Don't initialize it.
2896         (_initialize_arm_tdep): Likewise.
2897
2898 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
2899
2900         * MAINTAINERS (tui): Maintainer of tui code.
2901
2902 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
2903
2904         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
2905         (i386-cygwin-tdep.o): Add dependencies.
2906         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
2907         * i386-cygwin-tdep.c: New file.
2908         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
2909         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
2910
2911 2003-03-20  Andrew Cagney  <cagney@redhat.com>
2912
2913         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
2914         (handle_inferior_event): Remove code calling
2915         DYNAMIC_TRAMPOLINE_NEXTPC.
2916
2917         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
2918         already has a full path.
2919
2920         * main.c (gdb_main): Return 1.
2921         (captured_main): Call error to report an invalid interpreter.
2922
2923         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2924         * alpha-osf1-tdep.c: Include "gdb_string.h".
2925
2926 2003-03-19  J. Brobecker  <brobecker@gnat.com>
2927
2928         Continuing work to convert the hppa targets to multiarch partial.
2929
2930         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
2931         method, now that hppa_push_dummy_frame has a conformant prototype.
2932         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
2933         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
2934         for the switch to multiarch partial.
2935
2936 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
2937
2938         * mdebugread.c (parse_symbol): For stEnd, we're done counting
2939         when iss is issNull.
2940
2941 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
2942
2943         * mips-tdep.c (mips_register_name): Fix fencepost error involving
2944         NUM_REGS bounds check.
2945
2946 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
2947
2948         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
2949         * mips-tdep.c (gdb_assert.h): Include.
2950         (mips_generic_reg_names, mips_processor_reg_names): Make static.
2951         (mips_register_name): Handle integer registers explicitly.  Add
2952         bounds checking.
2953         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
2954         (mips_lsi33k_reg_names): Don't list integer registers; they're
2955         handled by mips_register_name() now.
2956         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
2957         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
2958         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
2959         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
2960         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
2961
2962 2003-03-18  Andrew Cagney  <cagney@redhat.com>
2963
2964         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
2965         a void pointer.
2966         * gdbtypes.h (print_scalar_formatted): Update declaration.
2967         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
2968
2969 2003-03-18  J. Brobecker  <brobecker@gnat.com>
2970
2971         * infrun.c (observer.h): Add #include.
2972         (normal_stop): Add call to observer_notify_normal_stop.
2973         * Makefile.in (infrun.o): Add dependency on observer.h.
2974
2975 2003-03-18  J. Brobecker  <brobecker@gnat.com>
2976
2977         Continuing work to convert the hppa targets to multiarch partial.
2978         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
2979         parameter. Reformat comment.
2980         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
2981         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
2982         to match new profile.
2983
2984 2003-03-18  J. Brobecker  <brobecker@gnat.com>
2985
2986         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
2987         appear to be working in any case.
2988
2989 2003-03-18  J. Brobecker  <brobecker@gnat.com>
2990
2991         * observer.c (observer_test_first_observer): New static variable.
2992         (observer_test_second_observer): Likewise.
2993         (observer_test_third_observer): Likewise.
2994         (observer_test_first_notification_function): New static function.
2995         (observer_test_second_notification_function): Likewise.
2996         (observer_test_third_notification_function): Likewise.
2997
2998 2003-03-17  J. Brobecker  <brobecker@gnat.com>
2999
3000         * hppa-tdep.c (gdb_assert.h): Add missing #include.
3001         * somsolib.c (gdb_assert.h): Likewise.
3002         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
3003         (somsolib.o): Likewise.
3004
3005 2003-03-17  Andrew Cagney  <cagney@redhat.com>
3006
3007         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
3008         BFD.  Simplify setting of di.endian.
3009
3010 2003-03-17  Andrew Cagney  <cagney@redhat.com>
3011
3012         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
3013         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
3014
3015         From Elena Zannoni  <ezannoni@redhat.com>
3016         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
3017         vector and floating-point parameters.
3018         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
3019         convention.
3020         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
3021
3022 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
3023
3024         * MAINTAINERS: Remove my name from several maintainership roles.
3025
3026 2003-03-17  Andrew Cagney  <cagney@redhat.com>
3027
3028         Fix frame off-by-one bug.
3029         * frame-unwind.h (frame_this_id_ftype): Replace
3030         frame_unwind_id_ftype.
3031         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
3032         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
3033         with "prev_register".
3034         * frame-unwind.c (frame_unwind_find_by_pc): Return
3035         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
3036         comment.
3037         * dummy-frame.c (cached_find_dummy_frame): Delete function.
3038         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
3039         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
3040         (dummy_frame_unwind): Update.
3041         * sentinel-frame.c (sentinel_frame_prev_register): Replace
3042         sentinel_frame_register_unwind.
3043         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
3044         (sentinel_frame_unwinder): Update.
3045         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
3046         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
3047         * frame.c (create_sentinel_frame): Update. Initialize
3048         "prologue_cache" instead of "unwind_cache".
3049         (frame_register_unwind): Call this frame's prev_register with the
3050         next frame and this frame's prologue cache.
3051         (get_prev_frame): Simplify.  Always call prev frame's this_id with
3052         this frame and prev frame's prologue cache.  Document that this
3053         call is shifted one to the left when compared to the
3054         frame_register_unwind call.
3055         (legacy_saved_regs_prev_register): Replace
3056         frame_saved_regs_register_unwind.
3057         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
3058         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
3059         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
3060         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
3061         (d10v_frame_unwind): Update.
3062         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
3063         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
3064         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
3065         "saved_regs" with "this_saved_regs".
3066
3067 2003-03-16  Andrew Cagney  <cagney@redhat.com>
3068
3069         * frame.c (frame_pop): Don't call target_store_registers.  Fix
3070         problem reported by Mark Kettenis.
3071
3072 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
3073
3074         * i386-tdep.c (i386_register_type): Renamed from
3075         i386_register_virtual_type.  Adjust function signature.
3076         (i386_gdbarch_init): Set register_type instead of
3077         deprecated_max_register_raw_size,
3078         deprecated_max_register_virtual_size and register_virtual_type.
3079
3080 2003-03-14  Andrew Cagney  <cagney@redhat.com>
3081
3082         * frame.c (get_prev_frame): When a legacy frame, always call
3083         legacy_get_prev_frame.  Simplify unwind code using assumption that
3084         the unwinder is new.
3085         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
3086         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
3087         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
3088
3089 2003-03-14  Andrew Cagney  <cagney@redhat.com>
3090
3091         * frame.c (get_saved_register): Delete function.
3092         * frame.h (get_saved_register): Delete declaration.
3093         * xstormy16-tdep.c: Update comment.
3094         * regcache.h: Update comments.
3095         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
3096         get_saved_register and extract_address, use
3097         frame_read_unsigned_register.
3098         (sparc_frame_saved_pc): Ditto.
3099         (sparc_get_saved_register): Instead of get_saved_register, use
3100         frame_register.
3101         (sparc_pop_frame): Ditto.
3102         * findvar.c: Update comments.
3103         (value_of_register): Call frame_register instead of
3104         get_saved_register.
3105         (value_from_register): Ditto.
3106         * config/sparc/tm-sparc.h: Update comment.
3107         * breakpoint.c: Update comment.
3108
3109 2003-03-14  Andrew Cagney  <cagney@redhat.com>
3110
3111         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
3112         GET_SAVED_REGISTER.
3113         * gdbarch.h, gdbarch.c: Re-generate.
3114         * frame.h: Update comments.
3115         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3116         * x86-64-tdep.c (x86_64_init_abi): Update.
3117         * sparc-tdep.c (sparc_gdbarch_init): Update.
3118         * sh-tdep.c (sh_gdbarch_init): Update.
3119         * mips-tdep.c (mips_gdbarch_init): Update.
3120         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3121         * cris-tdep.c (cris_gdbarch_init): Update.
3122         * ia64-tdep.c (ia64_gdbarch_init): Update.
3123         * frame.c (frame_register): Update.
3124         (get_saved_register): Update.
3125         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
3126         
3127 2003-03-13  Andrew Cagney  <cagney@redhat.com>
3128
3129         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
3130         * gdbarch.h, gdbarch.c: Regenerate.
3131         * valops.c (hand_function_call): Update comment.
3132         * stack.c (return_command): Update comment.
3133         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
3134         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
3135         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3136         * x86-64-tdep.c (x86_64_init_abi): Update.
3137         * vax-tdep.c (vax_gdbarch_init): Update.
3138         * v850-tdep.c (v850_gdbarch_init): Update.
3139         * sparc-tdep.c (sparc_gdbarch_init): Update.
3140         * sh-tdep.c (sh_gdbarch_init): Update.
3141         * s390-tdep.c (s390_gdbarch_init): Update.
3142         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3143         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3144         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3145         * mips-tdep.c (mips_gdbarch_init): Update.
3146         * mcore-tdep.c (mcore_gdbarch_init): Update.
3147         * m68k-tdep.c (m68k_gdbarch_init): Update.
3148         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3149         * ia64-tdep.c (ia64_gdbarch_init): Update.
3150         * i386-tdep.c (i386_gdbarch_init): Update.
3151         * hppa-tdep.c (hppa_gdbarch_init): Update.
3152         * h8300-tdep.c (h8300_gdbarch_init): Update.
3153         * frv-tdep.c (frv_gdbarch_init): Update.
3154         * cris-tdep.c (cris_gdbarch_init): Update.
3155         * avr-tdep.c (avr_gdbarch_init): Update.
3156         * arm-tdep.c (arm_gdbarch_init): Update.
3157         * alpha-tdep.c (alpha_gdbarch_init): Update.
3158
3159 2003-03-13  Andrew Cagney  <cagney@redhat.com>
3160
3161         * frame.c (legacy_frame_p): New function.
3162         (get_prev_frame): Use legacy_frame_p.
3163         * frame.h (legacy_frame_p): Declare.
3164
3165 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
3166
3167         * MAINTAINERS (write after approval): Alphabetically
3168         listing corrected.
3169
3170 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
3171
3172         * MAINTAINERS (write after approval): Add myself.
3173
3174 2003-03-12  Andrew Cagney  <cagney@redhat.com>
3175
3176         * frame.c (get_prev_frame): Rename the frame parameter to
3177         "this_frame".
3178         (get_next_frame, legacy_get_prev_frame): Ditto.
3179
3180 2003-03-12  Andrew Cagney  <cagney@redhat.com>
3181
3182         * frame.c (get_current_frame): Check target_has_registers before
3183         checking target_has_stack.
3184         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
3185         instead of deprecated_selected_frame.
3186         * findvar.c (value_of_register): Pass "frame", not
3187         deprecated_selected_frame, to value_of_builtin_reg.
3188
3189 2003-03-12  Andrew Cagney  <cagney@redhat.com>
3190
3191         * regcache.c (regcache_cooked_write_signed): New function.
3192         (regcache_cooked_write_unsigned): New function.
3193         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
3194         (regcache_cooked_read_signed): Fix regnum in range assertion.
3195         * regcache.h (regcache_cooked_write_signed): Declare.
3196         (regcache_cooked_write_unsigned): Declare.
3197
3198 2003-03-12  Andrew Cagney  <cagney@redhat.com>
3199
3200         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
3201         * gdbarch.h, gdbarch.c: Re-generate.
3202         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3203         * x86-64-tdep.h: Update.
3204         * x86-64-tdep.c (x86_64_init_abi): Update.
3205         * v850-tdep.c (v850_gdbarch_init): Update.
3206         * sparc-tdep.c (sparc_gdbarch_init): Update.
3207         * sh-tdep.c (sh_gdbarch_init): Update.
3208         * s390-tdep.c (s390_gdbarch_init): Update.
3209         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3210         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3211         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3212         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3213         * mips-tdep.c (mips_gdbarch_init): Update.
3214         * mcore-tdep.c (mcore_gdbarch_init): Update.
3215         * m68k-tdep.c (m68k_gdbarch_init): Update.
3216         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3217         * ia64-tdep.c (ia64_gdbarch_init): Update.
3218         * i386-tdep.c (i386_gdbarch_init): Update.
3219         * i386-interix-tdep.c (i386_interix_init_abi): Update.
3220         * hppa-tdep.c (hppa_gdbarch_init): Update.
3221         * h8300-tdep.c (h8300_gdbarch_init): Update.
3222         * frv-tdep.c (frv_gdbarch_init): Update.
3223         * cris-tdep.c (cris_gdbarch_init): Update.
3224         * avr-tdep.c (avr_gdbarch_init): Update.
3225         * arm-tdep.c (arm_gdbarch_init): Update.
3226         * alpha-tdep.c (alpha_gdbarch_init): Update.
3227         * sh-tdep.c (sh_init_extra_frame_info): Update.
3228         (sh64_init_extra_frame_info): Update.
3229         * ns32knbsd-nat.c (frame_num_args): Update.
3230         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
3231         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
3232         (xstormy16_frame_chain_valid): Update.
3233         * vax-tdep.c (vax_saved_pc_after_call): Update.
3234         * v850-tdep.c (v850_frame_chain): Update.
3235         (v850_pop_frame): Update.
3236         (v850_init_extra_frame_info): Update.
3237         * sparc-tdep.c (setup_arbitrary_frame): Update.
3238         * ns32k-tdep.c (umax_frame_num_args): Update.
3239         * s390-tdep.c (s390_pop_frame_regular): Update.
3240         * mn10300-tdep.c (mn10300_frame_chain): Update.
3241         (mn10300_pop_frame_regular): Update.
3242         (mn10300_init_extra_frame_info): Update.
3243         * mips-tdep.c (mips_init_frame_pc_first): Update.
3244         (mips_frame_chain): Update.
3245         (mips_pop_frame): Update.
3246         * mcore-tdep.c (mcore_frame_chain): Update.
3247         (mcore_pop_frame): Update.
3248         (mcore_init_extra_frame_info): Update.
3249         * arch-utils.c (init_frame_pc_default): Update.
3250         * m68k-tdep.c (isi_frame_num_args): Update.
3251         (delta68_frame_num_args): Update.
3252         (news_frame_num_args): Update.
3253         * ia64-tdep.c (ia64_pop_frame_regular): Update.
3254         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
3255         (alpha_frame_chain): Update.
3256         (alpha_pop_frame): Update.
3257         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
3258         (hppa_init_extra_frame_info): Update.
3259         (hppa_frame_chain): Update.
3260         (hppa_frame_chain_valid): Update.
3261         * cris-tdep.c (cris_init_extra_frame_info): Update.
3262         * avr-tdep.c (avr_init_extra_frame_info): Update.
3263         * arm-tdep.c (arm_frame_chain_valid): Update.
3264         (arm_init_extra_frame_info): Update.
3265         (arm_pop_frame): Update.
3266         * frame.c (frame_pc_unwind): Update.
3267         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
3268         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3269         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3270         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
3271         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
3272         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
3273         
3274 2003-03-12  Andrew Cagney  <cagney@redhat.com>
3275
3276         Eliminate the need for POP_FRAME.
3277         * frame.c (do_frame_unwind_register): New function.
3278         (frame_pop): When no POP_FRAME, pop the frame using register
3279         unwind and a scratch regcache.
3280         (frame_saved_regs_pop): Delete function.
3281         (trad_frame_unwinder): Update.
3282         * d10v-tdep.c (d10v_frame_pop): Delete function.
3283         (d10v_frame_unwind): Update.
3284         * sentinel-frame.c (sentinel_frame_pop): Delete function.
3285         (sentinel_frame_unwinder): Update.
3286         * dummy-frame.c (dummy_frame_pop): Delete function.
3287         (dummy_frame_unwind): Update.
3288         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
3289         (struct frame_unwind): Update.
3290
3291 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
3292
3293         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
3294         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
3295         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
3296         Do range checks on register number obtained from debugging info.
3297         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
3298         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
3299         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
3300         mapping function.
3301         (do_fp_register_row): Fix typo which caused double type to be
3302         used when attempting to unpack a float.
3303
3304 2003-03-11  J. Brobecker  <brobecker@gnat.com>
3305
3306         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
3307
3308 2003-03-11  Andrew Cagney  <cagney@redhat.com>
3309
3310         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
3311         frame.  Problem found by Corinna Vinschen.
3312
3313 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
3314
3315         * doublest.c (floatformat_from_length): Accept also
3316         the real size of 'long double' type.
3317
3318 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
3319
3320         From Klee Dienes <kdienes@apple.com>:
3321         * breakpoint.c (bpstat_copy): Copy the command lines as well
3322         as the old value, to match what is freed in bpstat_clear.
3323
3324 2003-03-10  David Carlton  <carlton@math.stanford.edu>
3325
3326         * minsyms.c (add_minsym_to_hash_table): Replace
3327         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3328         (compare_minimal_symbols, compact_minimal_symbols)
3329         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
3330         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
3331         of DEPRECATED_SYMBOL_MATCHES_NAME.
3332         (lookup_minimal_symbol_solib_trampoline): Ditto.
3333
3334 2003-03-10  Andrew Cagney  <cagney@redhat.com>
3335
3336         * regcache.h (regcache_cooked_read_ftype): Define.
3337         (regcache_save, regcache_restore): Add a cooked_read parameter.
3338         * regcache.c (regcache_save, regcache_restore): Update.
3339         (do_cooked_read): New function.
3340         (regcache_cpy): Pass do_cooked_read to regcache_save and
3341         regcache_restore.
3342
3343 2003-03-10  Andrew Cagney  <cagney@redhat.com>
3344
3345         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
3346         * gdbarch.h, gdbarch.c: Re-generate.
3347         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3348         * x86-64-tdep.h: Update.
3349         * x86-64-tdep.c (x86_64_init_abi): Update.
3350         * v850-tdep.c (v850_gdbarch_init): Update.
3351         * sparc-tdep.c (sparc_gdbarch_init): Update.
3352         * sh-tdep.c (sh_gdbarch_init): Update.
3353         * s390-tdep.c (s390_gdbarch_init): Update.
3354         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3355         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3356         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3357         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3358         * mips-tdep.c (mips_gdbarch_init): Update.
3359         * mcore-tdep.c (mcore_gdbarch_init): Update.
3360         * m68k-tdep.c (m68k_gdbarch_init): Update.
3361         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3362         * ia64-tdep.c (ia64_gdbarch_init): Update.
3363         * i386-tdep.c (i386_gdbarch_init): Update.
3364         * i386-interix-tdep.c (i386_interix_init_abi): Update.
3365         * hppa-tdep.c (hppa_gdbarch_init): Update.
3366         * h8300-tdep.c (h8300_gdbarch_init): Update.
3367         * frv-tdep.c (frv_gdbarch_init): Update.
3368         * cris-tdep.c (cris_gdbarch_init): Update.
3369         * avr-tdep.c (avr_gdbarch_init): Update.
3370         * arm-tdep.c (arm_gdbarch_init): Update.
3371         * alpha-tdep.c (alpha_gdbarch_init): Update.
3372         * sh-tdep.c (sh_init_extra_frame_info): Update.
3373         (sh64_init_extra_frame_info): Update.
3374         * ns32knbsd-nat.c (frame_num_args): Update.
3375         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
3376         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
3377         (xstormy16_frame_chain_valid): Update.
3378         * vax-tdep.c (vax_saved_pc_after_call): Update.
3379         * v850-tdep.c (v850_frame_chain): Update.
3380         (v850_pop_frame): Update.
3381         (v850_init_extra_frame_info): Update.
3382         * sparc-tdep.c (setup_arbitrary_frame): Update.
3383         * ns32k-tdep.c (umax_frame_num_args): Update.
3384         * s390-tdep.c (s390_pop_frame_regular): Update.
3385         * mn10300-tdep.c (mn10300_frame_chain): Update.
3386         (mn10300_pop_frame_regular): Update.
3387         (mn10300_init_extra_frame_info): Update.
3388         * mips-tdep.c (mips_init_frame_pc_first): Update.
3389         (mips_frame_chain): Update.
3390         (mips_pop_frame): Update.
3391         * mcore-tdep.c (mcore_frame_chain): Update.
3392         (mcore_pop_frame): Update.
3393         (mcore_init_extra_frame_info): Update.
3394         * arch-utils.c (init_frame_pc_default): Update.
3395         * m68k-tdep.c (isi_frame_num_args): Update.
3396         (delta68_frame_num_args): Update.
3397         (news_frame_num_args): Update.
3398         * ia64-tdep.c (ia64_pop_frame_regular): Update.
3399         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
3400         (alpha_frame_chain): Update.
3401         (alpha_pop_frame): Update.
3402         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
3403         (hppa_init_extra_frame_info): Update.
3404         (hppa_frame_chain): Update.
3405         (hppa_frame_chain_valid): Update.
3406         * cris-tdep.c (cris_init_extra_frame_info): Update.
3407         * avr-tdep.c (avr_init_extra_frame_info): Update.
3408         * arm-tdep.c (arm_frame_chain_valid): Update.
3409         (arm_init_extra_frame_info): Update.
3410         (arm_pop_frame): Update.
3411         * frame.c (frame_pc_unwind): Update.
3412         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
3413         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3414         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3415         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
3416         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
3417         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
3418         
3419 2003-03-10  Andrew Cagney  <cagney@redhat.com>
3420
3421         * gdbarch.sh (gdbarch_unwind_pc): New method.
3422         * gdbarch.h, gdbarch.c: Regenerate.
3423         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
3424         but use read_pc and FRAME_SAVED_PC as fall backs.
3425         (frame_saved_regs_pc_unwind): Delete function.
3426         (trad_frame_unwinder): Update.
3427         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
3428         (struct frame_unwind): Update.
3429         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
3430         (dummy_frame_unwind): Update.
3431         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
3432         (sentinel_frame_unwinder): Update.
3433         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
3434         (d10v_frame_unwind): Update.
3435         (d10v_unwind_pc): New function.
3436         (d10v_gdbarch_init): Set unwind_pc.
3437
3438 2003-03-10  Andrew Cagney  <cagney@redhat.com>
3439
3440         * gdbarch.h: Re-generate.
3441
3442         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
3443         PC.
3444         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
3445         the PC register.
3446
3447 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
3448
3449         * gdbarch.sh (save_dummy_frame_tos): Add comment.
3450
3451 2003-03-08  Andrew Cagney  <cagney@redhat.com>
3452
3453         * cli-out.c: Update copyright.
3454         (cli_out_data): Define typedef.  Use instead of ui_out_data.
3455
3456 2003-03-08  Andrew Cagney  <cagney@redhat.com>
3457
3458         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
3459         the result.
3460
3461 2003-03-07  Andrew Cagney  <cagney@redhat.com>
3462
3463         * gdbarch.sh: Don't generate two macro definitions when an
3464         undefined macro taking no arguments.
3465         * gdbarch.h: Regenerate.
3466         
3467 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
3468
3469         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
3470         (x86_64_unwind_dummy_id): New functions.
3471         (x86_64_init_abi): Register these two new functions.
3472
3473 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
3474
3475         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
3476         (x86_64_skip_prologue): Move prologue detection to 
3477         separate function.
3478         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
3479
3480 2003-03-05  Andrew Cagney  <cagney@redhat.com>
3481
3482         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
3483         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
3484         * frame.c (get_prev_frame): Restructure the frame ID unwind code
3485         to use unwind_dummy_id when a dummy frame.
3486         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
3487         predicate.
3488         * gdbarch.h, gdbarch.c: Regneerate.
3489         
3490 2003-03-05  Andrew Cagney  <cagney@redhat.com>
3491
3492         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
3493         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
3494         Do not use d10v_read_sp or d10v_read_fp when obtaining register
3495         values.
3496
3497 2003-03-05  Andrew Cagney  <cagney@redhat.com>
3498
3499         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
3500         (struct d10v_unwind_cache): Delete field "frameless".  Replace
3501         "next_addr" with "sp_offset".  Add "r11_offset".
3502         (d10v_frame_unwind_cache): Update.
3503         (prologue_find_regs): Update.  When "mv r11, sp", save the
3504         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
3505         RN was saved in r11_offset.
3506
3507 2003-03-05  Andrew Cagney  <cagney@redhat.com>
3508
3509         * frame.c (deprecated_update_frame_pc_hack): Also update the the
3510         cached PC value in the next frame.
3511
3512 2003-03-05  Andrew Cagney  <cagney@redhat.com>
3513
3514         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
3515         "id_unwind_cache" with "id".
3516         (frame_id_unwind): Delete declaration.
3517         * frame.c (frame_id_unwind): Delete function.
3518         (get_prev_frame): Call the frame id unwind method directly.  Store
3519         the returned next frame's ID value in NEXT_FRAME.  Note that there
3520         is a problem with the wrong unwind ID being called with the wrong
3521         unwind cache.
3522
3523 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
3524
3525         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
3526
3527 2003-03-05  James Ingham <jingham@apple.com>
3528             Daniel Jacobowitz  <drow@mvista.com>
3529
3530         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
3531         (auto_cp_abi): New variable.
3532         (current_cp_abi, num_cp_abis): Make static.
3533         (CP_ABI_MAX): Define.
3534         (cp_abis): Turn into an array.
3535         (value_virtual_fn_field): Fix formatting.
3536         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
3537         takes a pointer.
3538         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
3539         (list_cp_abis, _initialize_cp_abi): New functions.
3540         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
3541         declarations for cp_abis, num_cp_abis, current_cp_abi, and
3542         switch_to_cp_abi.  Update prototype for register_cp_abi.
3543         * Makefile.in (cp-abi.o): Update dependencies.
3544         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
3545         instead of switch_to_cp_abi.
3546         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
3547         register_cp_abi.
3548         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
3549         register_cp_abi.
3550         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
3551
3552 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
3553
3554         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
3555         * dwarf2loc.c: Include "regcache.h".
3556         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
3557         register_size.
3558         * Makefile.in (dwarf2loc.o): Update dependencies.
3559
3560 2003-03-04  Theodore A. Roth  <troth@openavr.org>
3561
3562         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
3563         number of io registers reported by remote target is not a multiple of
3564         step.
3565
3566 2003-03-04  David Carlton  <carlton@math.stanford.edu>
3567
3568         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
3569         (lookup_symbol_aux_psymtabs): Update call to
3570         lookup_partial_symbol.
3571         (lookup_transparent_type, find_main_psymtab)
3572         (make_symbol_overload_list): Ditto.
3573
3574 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
3575
3576         * MAINTAINERS (Write after approval): Update my email address.
3577
3578 2003-03-03  Andrew Cagney  <cagney@redhat.com>
3579
3580         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
3581         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
3582         predicate.  Replace MAX_REGISTER_RAW_SIZE.
3583         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
3584         MAX_REGISTER_VIRTUAL_SIZE.
3585         * regcache.c (legacy_max_register_raw_size): New function.
3586         (legacy_max_register_virtual_size): New function.
3587         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
3588         (MAX_REGISTER_RAW_SIZE): Define.
3589         (legacy_max_register_raw_size): Declare.
3590         (legacy_max_register_virtual_size): Declare.
3591         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3592         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
3593         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3594         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
3595         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3596         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
3597         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3598         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3599         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3600         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3601         * vax-tdep.c (vax_gdbarch_init): Update.
3602         * v850-tdep.c (v850_gdbarch_init): Update.
3603         * sparc-tdep.c (sparc_gdbarch_init): Update.
3604         * sh-tdep.c (sh_gdbarch_init): Update.
3605         * s390-tdep.c (s390_gdbarch_init): Update.
3606         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3607         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3608         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3609         * mips-tdep.c (mips_gdbarch_init): Update.
3610         * mcore-tdep.c (mcore_gdbarch_init): Update.
3611         * m68k-tdep.c (m68k_gdbarch_init): Update.
3612         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3613         * ia64-tdep.c (ia64_gdbarch_init): Update.
3614         * i386-tdep.c (i386_gdbarch_init): Update.
3615         * hppa-tdep.c (hppa_gdbarch_init): Update.
3616         * h8300-tdep.c (h8300_gdbarch_init): Update.
3617         * frv-tdep.c (frv_gdbarch_init): Update.
3618         * cris-tdep.c (cris_gdbarch_init): Update.
3619         * avr-tdep.c (avr_gdbarch_init): Update.
3620         * arm-tdep.c (arm_gdbarch_init): Update.
3621         * alpha-tdep.c (alpha_gdbarch_init): Update.
3622         * d10v-tdep.c (d10v_gdbarch_init): Do not set
3623         max_register_raw_size or max_register_virtual_size.
3624
3625 2003-03-03  David Carlton  <carlton@math.stanford.edu>
3626
3627         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
3628         SYMBOL_MATCHES_NAME, add comment.
3629         (SYMBOL_MATCHES_NATURAL_NAME): New.
3630         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
3631         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
3632         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
3633         * symtab.c (lookup_partial_symbol): Use
3634         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
3635         unhelpful comment.
3636         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
3637         SYMBOL_MATCHES_NAME.
3638         Fix for PR c++/33.
3639
3640 2003-03-03  David Carlton  <carlton@math.stanford.edu>
3641
3642         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
3643         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
3644         by regexp matching against SYMBOL_NATURAL_NAME.
3645
3646 2003-03-03  David Carlton  <carlton@math.stanford.edu>
3647
3648         * linespec.c (find_method): Extract code into collect_methods.
3649         (collect_methods): New.
3650
3651 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
3652
3653         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
3654         get_frame_base.
3655
3656         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
3657         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3658
3659 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
3660
3661         * arch-utils.c (generic_register_byte): Fix to use the loop index 
3662         and not regnum when summing the size of all registers up to regnum.
3663
3664 2003-03-01  Andrew Cagney  <cagney@redhat.com>
3665
3666         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
3667         FRAME_INIT_SAVED_REGS.
3668         * gdbarch.h, gdbarch.c: Regenerate.
3669         * stack.c (frame_info): Update.
3670         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
3671         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
3672         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
3673         * ns32k-tdep.c (ns32k_pop_frame): Update.
3674         * mips-tdep.c (mips_pop_frame): Update.
3675         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
3676         * ia64-tdep.c (ia64_frame_chain): Update.
3677         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
3678         (ia64_frameless_function_invocation): Update.
3679         (ia64_init_extra_frame_info): Update.
3680         (ia64_pop_frame_regular): Update.
3681         * frame.h (struct frame_info): Update comment.
3682         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
3683         * frame.c (frame_saved_regs_register_unwind): Update.
3684         (frame_saved_regs_register_unwind): Update.
3685         (deprecated_generic_get_saved_register): Update.
3686         * cris-tdep.c: Update comment.
3687         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
3688         Rename macro.
3689         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3690         * x86-64-tdep.c (x86_64_init_abi): Update.
3691         * vax-tdep.c (vax_gdbarch_init): Update.
3692         * v850-tdep.c (v850_gdbarch_init): Update.
3693         * sparc-tdep.c (sparc_gdbarch_init): Update.
3694         * sh-tdep.c (sh_gdbarch_init): Update.
3695         * s390-tdep.c (s390_gdbarch_init): Update.
3696         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3697         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3698         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3699         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3700         * mips-tdep.c (mips_gdbarch_init): Update.
3701         * mcore-tdep.c (mcore_gdbarch_init): Update.
3702         * m68k-tdep.c (m68k_gdbarch_init): Update.
3703         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3704         * ia64-tdep.c (ia64_gdbarch_init): Update.
3705         * i386-tdep.c (i386_gdbarch_init): Update.
3706         * frv-tdep.c (frv_gdbarch_init): Update.
3707         * avr-tdep.c (avr_gdbarch_init): Update.
3708         * arm-tdep.c (arm_gdbarch_init): Update.
3709         * alpha-tdep.c (alpha_gdbarch_init): Update.
3710         
3711 2003-03-01  Andrew Cagney  <cagney@redhat.com>
3712
3713         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
3714         option enum and switch.  When no windows, set the interpreter to
3715         INTERP_CONSOLE.
3716         
3717 2003-03-01  Andrew Cagney  <cagney@redhat.com>
3718
3719         * main.c (captured_main): Replace magic option characters with an
3720         enum.
3721
3722 2003-03-01  Andrew Cagney  <cagney@redhat.com>
3723
3724         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
3725         INIT_EXTRA_FRAME_INFO.
3726         * gdbarch.h, gdbarch.c: Regenerate.
3727         * arm-tdep.c: Update comments.
3728         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
3729         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
3730         * frame.h, avr-tdep.c: Ditto.
3731         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
3732         (create_new_frame, legacy_get_prev_frame): Ditto.
3733         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
3734         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
3735         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
3736         deprecated_init_extra_frame_info instead of init_extra_frame_info.
3737         * x86-64-tdep.c (x86_64_init_abi): Ditto.
3738         * v850-tdep.c (v850_gdbarch_init): Ditto.
3739         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3740         * sh-tdep.c (sh_gdbarch_init): Ditto.
3741         * s390-tdep.c (s390_gdbarch_init): Ditto.
3742         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
3743         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3744         * mips-tdep.c (mips_gdbarch_init): Ditto.
3745         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3746         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3747         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3748         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3749         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3750         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3751         * frv-tdep.c (frv_gdbarch_init): Ditto.
3752         * cris-tdep.c (cris_gdbarch_init): Ditto.
3753         * avr-tdep.c (avr_gdbarch_init): Ditto.
3754         * arm-tdep.c (arm_gdbarch_init): Ditto.
3755         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3756         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3757
3758 2003-03-01  Andrew Cagney  <cagney@redhat.com>
3759
3760         * gdbarch.sh (register_type): New function with predicate.
3761         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
3762         * gdbarch.h, gdbarch.c: Re-generate.
3763         * arch-utils.c (generic_register_byte): Use generic_register_size.
3764         (generic_register_size): When available, use
3765         gdbarch_register_type.
3766         * regcache.c (init_regcache_descr): When available, initialize the
3767         register type array using gdbarch_register_type.  If the
3768         architecture supplies gdbarch_register_type, do not use the legacy
3769         regcache layout.
3770         * d10v-tdep.c (d10v_register_type): Replace
3771         d10v_register_virtual_type.
3772         (d10v_gdbarch_init): Set register_type instead of
3773         register_virtual_type.
3774
3775 2003-03-01  Andrew Cagney  <cagney@redhat.com>
3776
3777         * Makefile.in (ax-gdb.o): Update dependencies.
3778         * ax-gdb.c: Include "regcache.h".
3779         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
3780         * findvar.c (value_of_register): Ditto.
3781         * infcmd.c (default_print_registers_info): Ditto.
3782
3783 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
3784
3785         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
3786         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3787
3788 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
3789
3790         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
3791         of STREQ.
3792
3793 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
3794
3795         * Makefile.in (dwarf2loc.o): Update dependencies.
3796         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
3797         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
3798         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
3799         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
3800         (locexpr_tracepoint_var_ref): New function.
3801         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
3802
3803 2003-02-28  Andrew Cagney  <cagney@redhat.com>
3804
3805         * regcache.c (register_size): New function.
3806         * regcache.h (register_size): Declare
3807         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
3808         max_register_size instead of MAX_REGISTER_RAW_SIZE.
3809
3810 2003-02-28  David Carlton  <carlton@math.stanford.edu>
3811
3812         * linespec.c (decode_compound): Extract code into find_method.
3813         (find_method): New.
3814
3815 2003-02-28  J. Brobecker  <brobecker@gnat.com>
3816
3817         * Makefile.in: Add rules to build and link in observer.o.
3818
3819 2003-02-27  J. Brobecker  <brobecker@gnat.com>
3820
3821         * observer.c: Minor comments edits.
3822
3823 2003-02-27  J. Brobecker  <brobecker@gnat.com>
3824
3825         * observer.h, observer.c: New file.
3826
3827 2003-02-27  Andrew Cagney  <cagney@redhat.com>
3828
3829         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
3830
3831 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
3832
3833         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
3834         (M6812_OP_STS_EXT): Likewise.
3835         (m6811_prologue): Use the above to recognize prologue.
3836         (m6812_prologue): Likewise.
3837
3838 2003-02-27  David Carlton  <carlton@math.stanford.edu>
3839
3840         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
3841         SYMBOL_PRINT_NAME.
3842         (compare_psymbols): Ditto.
3843         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
3844
3845 2003-02-27  Michael Snyder  <msnyder@redhat.com>
3846
3847         * f-lang.c (build_fortran_types): New function.
3848         (_initialize_f_language): Gdbarch-register built-in fortran types.
3849         * doublest.c (extract_floating): Fix warning text.
3850
3851 2003-02-27  Andrew Cagney  <cagney@redhat.com>
3852
3853         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
3854         predicate.  Replaces PUSH_DUMMY_FRAME.
3855         * gdbarch.h, gdbarch.c: Regnerate.
3856         * valops.c (hand_function_call): Update.  Call
3857         generic_push_dummy_frame directly.
3858         * vax-tdep.c (vax_gdbarch_init): Update.
3859         * sparc-tdep.c (sparc_gdbarch_init): Update.
3860         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3861         * m68k-tdep.c (m68k_gdbarch_init): Update.
3862         * hppa-tdep.c (hppa_gdbarch_init): Update.
3863         * alpha-tdep.c (alpha_gdbarch_init): Update.
3864         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
3865         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
3866         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
3867         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
3868         push_dummy_frame to generic_push_dummy_frame.
3869         * v850-tdep.c (v850_gdbarch_init): Ditto.
3870         * sh-tdep.c (sh_gdbarch_init): Ditto.
3871         * s390-tdep.c (s390_gdbarch_init): Ditto.
3872         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3873         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3874         * mips-tdep.c (mips_gdbarch_init): Ditto.
3875         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3876         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3877         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3878         * i386-tdep.c (i386_gdbarch_init): Ditto.
3879         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3880         * frv-tdep.c (frv_gdbarch_init): Ditto.
3881         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3882         * cris-tdep.c (cris_gdbarch_init): Ditto.
3883         * avr-tdep.c (avr_gdbarch_init): Ditto.
3884         * arm-tdep.c (arm_gdbarch_init): Ditto.
3885         
3886 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
3887
3888         * mips-tdep.c (show_mips_abi): New function.
3889         (_initialize_mips_tdep): Use show_mips_abi() to implement the
3890         command ``show mips abi''.
3891
3892 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
3893  
3894         From Elena Zannoni  <ezannoni@redhat.com>
3895         * dbxread.c (process_one_symbol): Only record line 0 if one or 
3896         more sline entries have been seen for the function.
3897
3898 2003-02-26  Michael Chastain  <mec@shout.net>
3899
3900         * configure: Regenerate with autoconf 000227.
3901
3902 2003-02-26  Michael Chastain  <mec@shout.net>
3903
3904         Close PR build/660.
3905         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
3906         for old libc5/glibc.
3907         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
3908
3909 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
3910
3911         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
3912         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
3913
3914 2003-02-26  Michael Chastain  <mec@shout.net>
3915
3916         * configure.in: New variable HAVE_UINTPTR_T.
3917         * configure, config.in: Regenerated.
3918
3919 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
3920
3921         Fix PR build/1097.
3922         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
3923
3924 2003-02-25  Andrew Cagney  <cagney@redhat.com>
3925
3926         * frame.c (get_prev_frame): Add comment on check for
3927         inside_entry_func. Only check for inside_entry_file when not a
3928         dummy and not a sentinel.  Check that the new frame is not inner
3929         to the old frame.
3930
3931 2003-02-25  Andrew Cagney  <cagney@redhat.com>
3932
3933         * frame.c (frame_debug): New variable.
3934         (_initialize_frame): Add "set/show debug frame" command.
3935         (get_prev_frame): When frame_debug, print reason why unwind
3936         failed.
3937
3938 2003-02-25  Michael Chastain  <mec@shout.net>
3939
3940         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
3941         to avoid uintptr_t definition problems.
3942
3943 2003-02-25  David Carlton  <carlton@math.stanford.edu>
3944
3945         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
3946         (SYMBOL_LINKAGE_NAME): Ditto.
3947         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
3948         SYMBOL_LINKAGE_NAME.
3949         (struct general_symbol_info): Expand comment.
3950         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
3951         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
3952         (SYMBOL_MATCHES_REGEXP): Ditto.
3953         * symtab.c (symbol_natural_name): New function.
3954         * objfiles.h: Replace all uses of SYMBOL_NAME by
3955         DEPRECATED_SYMBOL_NAME.
3956         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
3957         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
3958         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
3959         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
3960         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
3961         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
3962         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
3963         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
3964         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
3965         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
3966         * ada-exp.y: Ditto.
3967         * ada-exp.y: Update copyright.
3968         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
3969         * cp-valprint.c: Ditto.
3970
3971 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
3972
3973         * infptrace.c (detach): Do not flag error if ptrace detach fails
3974         and errno is set to ESRCH.
3975
3976 2003-02-24  Andrew Cagney  <cagney@redhat.com>
3977
3978         * infptrace.c (udot_info): Change type of udot_off to long.  Use
3979         paddr when printing udot_off's value.
3980
3981 2003-02-24  David Carlton  <carlton@math.stanford.edu>
3982
3983         * symtab.c (make_symbol_overload_list): Only read in partial
3984         symtabs containing a matching partial symbol.
3985
3986 2003-02-24  David Carlton  <carlton@math.stanford.edu>
3987
3988         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
3989         do the comparison, not strcmp.
3990         * symfile.c (compare_psymbols): Ditto.
3991         * defs.h: Declare strcmp_iw_ordered.
3992         * utils.c (strcmp_iw_ordered): New function.
3993
3994 2003-02-24  Jim Blandy  <jimb@redhat.com>
3995
3996         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
3997         support, shared libs): Remove my name from here, to better reflect
3998         reality.
3999
4000 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
4001
4002         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
4003         (target_ops): Add to_have_continuable_watchpoint.
4004         * target.c (update_current_target): Add INHERIT line for
4005         to_have_continuable_watchpoint.
4006         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
4007         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
4008         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
4009         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
4010
4011 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
4012
4013         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
4014         maintainership.
4015
4016 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
4017
4018         * solib.c (solib_open): Call target defined search function after
4019         failing with solib-search-path.
4020         * solist.h (target_so_ops): Add find_and_open_solib function hook and
4021         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
4022
4023 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
4024
4025         * MAINTAINERS: Add myself to Write After section.
4026
4027 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
4028
4029         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
4030
4031 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
4032
4033         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
4034         (m68hc11_add_reggroups): New function.
4035         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
4036         (m68hc11_gdbarch_init): Install the reggroups.
4037         (_initialize_m68hc11_tdep): Initialize them.
4038
4039 2003-02-21  James E Wilson  <wilson@tuliptree.org>
4040
4041         * MAINTAINERS: Update my email address.
4042
4043 2003-02-21  David Carlton  <carlton@math.stanford.edu>
4044
4045         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
4046
4047 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
4048
4049         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
4050         * symtab.h: Add opaque declarations of struct axs_value and
4051         struct agent_expr.
4052         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
4053         (struct location_funcs): New type.
4054         (struct symbol): Add "loc" to aux_value.
4055         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
4056         * dwarf2read.c: Include "dwarf2expr.h".
4057         (dwarf2_symbol_mark_computed): New function.
4058         (read_func_scope): Use it.
4059         (var_decode_location): New function.
4060         (new_symbol): Use it.
4061         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
4062
4063         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
4064         (dwarf2expr_h, dwarf2loc_h): New variables.
4065         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
4066         (dwarf2expr.o, dwarf2loc.o): New rules.
4067         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
4068         * buildsym.c (finish_block): Handle LOC_COMPUTED and
4069         LOC_COMPUTED_ARG.
4070         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4071         * m2-exp.y (yylex): Likewise.
4072         * printcmd.c (address_info, print_frame_args): Likewise.
4073         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
4074         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4075         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
4076         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
4077         * symtab.c (lookup_block_symbol): Likewise.
4078
4079 2003-02-20  Adam Fedor  <fedor@gnu.org>
4080
4081         * symtab.h: Remove objc_specific struct
4082         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
4083         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
4084         Have language_objc use cplus_specific struct.
4085
4086 2003-02-20  Tom Tromey  <tromey@redhat.com>
4087
4088         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
4089         TYPE_NAME, when printing a String value.  PR java/1075.
4090
4091 2003-02-20  Adam Fedor  <fedor@gnu.org>
4092
4093         * objc-lang.h (find_methods): Remove declaration.
4094         * objc-lang.c (find_methods): Make static.
4095
4096 2003-02-20  Christopher Faylor  <cgf@redhat.com>
4097
4098         * win32-nat.c (get_image_name): Check return value from
4099         ReadProcessMemory.
4100         (child_xfer_memory): Ditto.
4101
4102 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
4103
4104         * configure.in (TARGET_SYSTEM_ROOT): Set default to
4105         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
4106         '${exec_prefix}' (in addition to the expansion thereof) as
4107         relocatable.
4108         * configure: Rebuilt.
4109
4110 2003-02-20  David Carlton  <carlton@math.stanford.edu>
4111
4112         * symtab.c (search_symbols): Revert the search_symbols part of my
4113         2002-12-23 patch.  Add comment.
4114
4115 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
4116
4117         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
4118         * dbxread.c (elfstab_build_psymtabs): Don't call
4119         install_minimal_symbols.
4120         (stabsect_build_psymtabs): Likewise.
4121         * elfread.c (elf_symfile_read): Call install_minimal_symbols
4122         earlier.
4123         * somread.c (som_symfile_read): Call install_minimal_symbols
4124         and do_cleanups earlier.
4125         * nlmread.c (nlm_symfile_read): Likewise.
4126         * mdebugread.c (elfmdebug_build_psymtabs): Call
4127         install_minimal_symbols and make appropriate cleanups.
4128
4129 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
4130
4131         * solib.c (reload_shared_libraries): New function.
4132         (_initialize_solib): Add callbacks for ``set solib-search-path''
4133         and ``set solib-absolute-prefix''.
4134
4135 2003-02-20  David Carlton  <carlton@math.stanford.edu>
4136
4137         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
4138         expand comment.
4139         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
4140         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
4141         * ada-typeprint.c (ada_typedef_print): Ditto.
4142         * ax-gdb.c (gen_var_ref): Ditto.
4143         * breakpoint.c (print_one_breakpoint): Ditto.
4144         * buildsym.c (finish_block): Ditto.
4145         * c-valprint.c (c_val_print): Ditto.
4146         * expprint.c (print_subexp): Ditto.
4147         * findvar.c (locate_var_value): Ditto.
4148         * infcmd.c (jump_command): Ditto. 
4149         * linespec.c (decode_line_2, decode_compound): Ditto. 
4150         * maint.c (maintenance_translate_address): Ditto. 
4151         * objc-lang.c (compare_selectors, compare_classes): Ditto. 
4152         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
4153         Ditto.
4154         * p-valprint.c (pascal_val_print): Ditto. 
4155         * stabsread.c (define_symbol): Ditto. 
4156         * stack.c (print_frame, frame_info, print_block_frame_locals)
4157         (print_frame_arg_vars, return_command): Ditto. 
4158         * symfile.c (compare_symbols, compare_psymbols): Ditto. 
4159         * symmisc.c (print_symbol): Ditto. 
4160         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
4161         (compare_search_syms, print_symbol_info, print_msymbol_info)
4162         (rbreak_command): Ditto. 
4163         * tracepoint.c (tracepoints_info): Ditto. 
4164         * typeprint.c (typedef_print): Ditto. 
4165         * valops.c (value_of_variable, hand_function_call): Ditto. 
4166         * cli/cli-cmds.c (edit_command, list_command): Ditto.
4167         * ada-typeprint.c: Update Copyright.
4168         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
4169         * tracepoint.c, cli/cli-cmds.c: Ditto.
4170
4171 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
4172
4173         * frame.c (generic_unwind_get_saved_register): Make non-static.
4174         * frame.h (generic_unwind_get_saved_register): Declare.
4175         * mips-tdep.c (read_next_frame_reg): Fetch register from
4176         current regcache when frame is NULL.
4177         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
4178         that must be NULL.
4179         (mips_get_saved_register): Call generic_unwind_get_saved_register()
4180         instead of frame_register_unwind().
4181
4182 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
4183
4184         * remote-sim.c (gdbsim_insert_breakpoint)
4185         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
4186         code.
4187
4188 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
4189
4190         * remote.c (_initialize_remote): Add commands "set/show remote
4191         hardware-watchpoint-limit" and "set/show remote
4192         hardware-breakpoint-limit".
4193         (remote_hw_watchpoint_limit): Initialize to -1.
4194         (remote_hw_breakpoint_limit): Ditto.
4195         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
4196
4197 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
4198
4199         * coff-pe-read.c: New file - support reading of minimal symbols from a
4200         portable executable using the export table.
4201         * coff-pe-read.h: New file.
4202         * coffread.c: Include coff-pe-read.h.
4203         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
4204         debugging symbols found.
4205         * Makefile.in (SFILES): Add coff-pe-read.o.
4206         (coff_pe_read_h): Define.
4207         (COMMON_OBS): Add coff-pe-read.o.
4208         (coffread.o): Add coff_pe_read_h dependency.
4209         (coff-pe-read.o): New target.
4210
4211 2003-02-19  David Carlton  <carlton@math.stanford.edu>
4212
4213         * Makefile.in (SFILES): Add block.c.
4214         (block_h): New.
4215         (COMMON_OBS): Add block.o.
4216         (block.o): New.
4217         (x86-64-tdep.o): Add $(block_h).
4218         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
4219         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
4220         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
4221         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
4222         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
4223         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
4224         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
4225         * value.h: Add opaque declaration for struct block.
4226         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
4227         * ada-lang.h: Ditto.
4228         * x86-64-tdep.c: #include "block.h"
4229         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
4230         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
4231         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
4232         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
4233         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
4234         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
4235         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
4236         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
4237         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
4238         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
4239         * symtab.c (block_function): Ditto.
4240         (contained_in): Ditto.
4241         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
4242         block.h.  Add opaque declaration for struct block.
4243         * symtab.h: Move block_function and contained_in declarations to
4244         block.h.  Add opaque declarations for struct block, struct
4245         blockvector.
4246         (struct block): Move to block.h.
4247         (struct blockvector): Ditto.
4248         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
4249         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
4250         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
4251         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
4252         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
4253         Ditto.
4254         * block.c: New file.
4255         * block.h: New file.
4256
4257 2003-02-19  Theodore A. Roth  <troth@openavr.org>
4258
4259         * avr-tdep.c (avr_extract_return_value): Remove function.
4260         (avr_store_return_value): Remove function.
4261         (avr_extract_struct_value_address): Remove function.
4262         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
4263
4264 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
4265
4266         * rs6000-tdep.c: Include "gdb_assert.h".
4267         (registers_e500): Add "acc" and "spefscr".
4268         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
4269         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
4270         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
4271         really is "r0".
4272         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
4273
4274 2003-02-18  Keith Seitz  <keiths@redhat.com>
4275
4276         * Makefile.in: Add gdbtk-interps.c.
4277
4278 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
4279
4280         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
4281         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
4282
4283 2003-02-18  Andrew Cagney  <cagney@redhat.com>
4284
4285         * symtab.h (struct objfile): Add opaque declaration.
4286
4287 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
4288
4289         From Jim Ingham   <jingham@apple.com>:
4290         * dbxread.c (process_one_symbol): Use last_function_start rather
4291         than function_start_offset to find the real beginning of the
4292         current function.  The latter is just the text section offset on
4293         some systems, the former is always the real function start.
4294
4295 2003-02-17  Andrew Cagney  <cagney@redhat.com>
4296
4297         * configure.in: Revert ${target} != ${host}.
4298
4299 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
4300
4301         * configure.in (Makefile): Use the test ${target} != ${host},
4302         instead of the absence of the "nm.h" file, to determine of the
4303         configuration non-native.
4304         * configure: Regenerate.
4305         
4306 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
4307
4308         From Brian Ford  <ford@vss.fsi.com>
4309
4310         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
4311         conditionalize tui_active test.
4312         (lookup_cmd_1): Ditto.
4313
4314 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
4315
4316         * configure.in: Add check for _etext.
4317         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
4318         available.
4319         * config.in, configure: regenerated.
4320
4321 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
4322
4323         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
4324
4325 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
4326
4327         * main.c (tui_version): Delete variable.
4328         (captured_main): When --tui, set interpreter_p to "tui" instead of
4329         enabling tui_version.
4330         * printcmd.c (display_command) [TUI]: Test tui_active instead of
4331         tui_version.
4332         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
4333         * cli/cli-cmds.c (disassemble_command): Ditto.
4334         * defs.h (tui_version): Delete declaration.
4335         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
4336         (tui-interp.o): Add rules.
4337         (SUBDIR_TUI_OBS): Add "tui-interp.o".
4338
4339 2003-02-14  Christopher Faylor  <cgf@redhat.com>
4340
4341         * win32-nat.c (register_loaded_dll): Correctly set address range for
4342         just-loaded dll.
4343
4344 2003-02-12  Jason Molenda  (jmolenda@apple.com)
4345
4346         * symmisc.c (print_objfile_statistics): Include information about
4347         the number of psymtabs and symtabs in each object file.
4348
4349 2003-02-13  Keith R Seitz  <keiths@redhat.com>
4350
4351         * main.h (struct captured_main_args): Add interpreter_p.
4352         * main.c (captured_main): Initialize interpreter_p from context.
4353         * gdb.c (main): Set interpreter_p argument.
4354         * Makefile.in (gdb.o): Add dependency for interps.h.
4355
4356 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
4357
4358         * event-top.c (cli_command_loop): Delete declaration.
4359         (_initialize_event_loop): Delete function setting event_loop_hook.
4360         * event-top.h (cli_command_loop): Declare.  Update copyright.
4361         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
4362         * interps.c (current_interp_command_loop): When event_loop_p, call
4363         cli_command_loop.
4364
4365 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
4366
4367         * interps.h (interp_command_loop_ftype): Change return type to
4368         void.
4369
4370 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
4371
4372         * x86-64-tdep.c (x86_64_extract_return_value)
4373         (x86_64_store_return_value): Use regcache instead of regbuf.
4374         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
4375         * x86-64-linux-nat.c (fill_gregset): Use regcache.
4376
4377 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
4378
4379         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
4380         * aclocal.m4: Regenerate.
4381         * configure: Regenerate.
4382
4383         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
4384         TCL_LD_SEARCH_FLAGS.
4385
4386 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
4387
4388         * dwarf2cfi.c: Reindented.
4389
4390 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
4391
4392         * interps.c (clear_interpreter_hooks): Convert function definition
4393         to ISO C.
4394
4395 2003-02-07  David Carlton  <carlton@math.stanford.edu>
4396
4397         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
4398
4399 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
4400
4401         * gdbtypes.h (struct main_type): Move ``length'' field from here...
4402         (struct type): ...to here.
4403         (TYPE_LENGTH): Adjust to reflect different location of ``length''
4404         field.
4405         * gdbtypes.c (make_qualified_type): Set length on newly created type.
4406         (replace_type): Set length on all type variants for a given type.
4407
4408 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
4409
4410         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
4411         <sys/stat.h>.
4412         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
4413         
4414 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
4415
4416         * Makefile.in (symm-nat.o): Update dependencies.
4417         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
4418         (lynx-nat.o, ia64-linux-nat.): Ditto.
4419         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
4420         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
4421         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
4422
4423         * Makefile.in (inflow_h): Define.
4424         (procfs.o, inflow.o, procfs.o): Update dependencies.
4425         * inftarg.c (child_stop): Delete extern declaration of
4426         inferior_process_group.  Include "inflow.h".
4427         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
4428         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
4429         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
4430         (our_process_group, inferior_process_group): Extern declarations.
4431
4432         * procfs.c: Include "gdb_assert.h".
4433
4434         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
4435         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
4436         * jv-typeprint.c (java_type_print_base): Ditto.
4437         * typeprint.c (typedef_print): Eliminate STREQ.
4438         * cli/cli-script.c (define_command, define_command): Ditto.
4439         * main.c (captured_main): Ditto.
4440         * values.c (lookup_internalvar): Ditto.
4441         * utils.c (safe_strerror, parse_escape): Eliminate assignment
4442         within `if' conditional.
4443         * linespec.c (decode_line_2): Ditto.
4444         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
4445         (bfd_openw_with_cleanup): Ditto.
4446
4447 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
4448
4449         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
4450         legacy_extract_return_value and store_return_value to
4451         legacy_return_value.
4452
4453 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
4454
4455         * win32-nat.c (get_relocated_section_addrs): New function.  Find
4456         section load addresses for symbol handling in relocated DLLs.
4457         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
4458
4459 2003-02-05  Fred Fish  <fnf@intrinsity.com>
4460
4461         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
4462         '=' and '!='.
4463         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
4464         with '&' and '=='.
4465         (angel_RDI_info): Ditto.
4466         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
4467         with '&' and '!='.
4468         (threads_continue_all_with_signals): Ditto.
4469   
4470 2003-02-05  Jim Ingham <jingham@apple.com>
4471             Keith Seitz  <keiths@redhat.com>
4472             Elena Zannoni  <ezannoni@redhat.com>
4473             Andrew Cagney  <ac131313@redhat.com>
4474
4475         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
4476         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
4477         (SUBDIR_MI_OBS): Add "mi-interp.o".
4478         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
4479         (SFILES): Add "interps.c".
4480         (COMMON_OBS): Add "interps.o".
4481         (interps_h, mi_main_h): Define.
4482         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
4483         (mi-main.o, main.o, event-top.o): Update dependencies.
4484         * cli/cli-interp.c: New file.
4485         * interps.h, interps.c: New files.
4486         * top.c: (gdb_init): Don't install the default interpreter, handed
4487         by captured_main.
4488         * main.c: Include "interps.h".
4489         (interpreter_p): Note that it should malloc'ed.
4490         (captured_command_loop): Call current_interp_command_loop.
4491         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
4492         xfree and xstrdup when updating interpreter_p.  Install the
4493         default interpreter.  Add hack to stop mi1's copyright notice
4494         being encoded.
4495         * event-top.h (gdb_setup_readline): Declare.
4496         (gdb_disable_readline): Declare.
4497         * event-top.c: Include "interps.h".
4498         (display_gdb_prompt): Call current_interp_display_prompt_p.
4499         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
4500         gdb_stdlog, and gdb_stdtarg.
4501         (_initialize_event_loop): Don't call gdb_setup_readline.
4502         * cli-out.c (cli_out_set_stream): New function.
4503         * cli-out.h (cli_out_set_stream): Declare.
4504
4505 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
4506
4507         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
4508         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
4509         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
4510         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
4511         config/i386/i386v42mp.mt: Removed.
4512
4513 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
4514
4515         * configure.tgt (*-*-solaris*): Set gdb_osabi to
4516         GDB_OSABI_SOLARIS.
4517
4518 2003-02-05  Michael Chastain  <mec@shout.net>
4519
4520         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
4521         2.12.1 and earlier versions.
4522
4523 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
4524
4525         Remove orphaned hosts, targets and files.
4526         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
4527         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
4528         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
4529         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
4530         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
4531         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
4532         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
4533         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
4534         * config/sparc/tm-sp64sim.h: Delete.
4535         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
4536         hosts.
4537         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
4538         mips*-dec-mach3* targets.
4539
4540 2003-02-04  Michael Chastain  <mec@shout.net>
4541
4542         * NEWS: Fix typo: sepcifying -> specifying.
4543
4544 2003-02-04  Michael Chastain  <mec@shout.net>
4545
4546         * dwarfread.c: Add documentation on the state of dwarf-1,
4547         looking towards obsoletion.
4548
4549 2003-02-03  Michael Chastain  <mec@shout.net>
4550
4551         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
4552         gdb/testsuite/gdb.c++/pr-1023.exp.
4553
4554 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
4555
4556         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
4557         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
4558
4559         * utils.c (init_page_info): Delete reference to MPW in comments.
4560         * main.c (captured_main): Delete #ifdef MPW.
4561
4562 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
4563
4564         * NEWS: Note that the m32r-*-elf* is obsolete. 
4565         * monitor.c (monitor_expect): Obsolete reference to m32r.
4566         * configure.tgt: Mark m32r-*-elf* as obsolete.
4567         * MAINTAINERS: Mark m32k as obsolete.
4568         * m32r-rom.c: Obsolete file.
4569         * config/m32r/m32r.mt: Obsolete file.
4570         * config/m32r/tm-m32r.h: Obsolete file.
4571         * m32r-stub.c: Obsolete file.
4572         * m32r-tdep.c: Obsolete file.
4573
4574 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
4575
4576         * NEWS: Mention that the z8k-zilog-none is obsolete.
4577         * MAINTAINERS: Mark z8k as obsolete.
4578         * configure.tgt: Obsolete the z8k-*-coff* target.
4579         * config/z8k/z8k.mt: Obsolete file.
4580         * config/z8k/tm-z8k.h: Obsolete file.
4581         * z8k-tdep.c: Obsolete file.
4582
4583 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
4584
4585         * NEWS: Mention that the mn10200-elf is obsolete.
4586         * configure.tgt: Obsolete mn10200-*-* target.
4587         * breakpoint.c (update_breakpoints_after_exec): Update comment to
4588         mention that the mn10200 is obsolete.
4589         * breakpoint.h: Ditto.
4590         * MAINTAINERS: Mark the mn10200-elf as obsolete.
4591         * config/mn10200/mn10200.mt: Obsolete file.
4592         * config/mn10200/tm-mn10200.h: Obsolete file.
4593         * mn10200-tdep.c: Obsolete file.
4594
4595 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
4596
4597         * MAINTAINERS: Mark h8500 as obsolete.
4598         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
4599         * findvar.c (value_from_register): Ditto.
4600         * h8500-tdep.c: Mark file as obsolete.
4601         * config/h8500/h8500.mt: Ditto.
4602         * config/h8500/tm-h8500.h: Ditto.
4603         * NEWS: Mention that h8500 is obsolete.
4604
4605 2003-02-04  David Carlton  <carlton@math.stanford.edu>
4606
4607         * objfiles.c (allocate_objfile): Always set name.  Add comment at
4608         start of function.
4609         * jv-lang.c (get_dynamics_objfile): Add comment.
4610
4611 2003-02-04  David Carlton  <carlton@math.stanford.edu>
4612
4613         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
4614         * printcmd.c (build_address_symbolic): Replace uses of
4615         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
4616         SYMBOL_NAME, and asm_demangle.
4617         Update copyright.
4618
4619 2003-02-04  David Carlton  <carlton@math.stanford.edu>
4620
4621         * linespec.c (decode_compound): Extract code into
4622         lookup_prefix_sym.
4623         (lookup_prefix_sym): New function.
4624
4625 2003-02-04  David Carlton  <carlton@math.stanford.edu>
4626
4627         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
4628         FLOAT_COERCION_BADNESS.
4629         * gdbtypes.c (rank_one_type): Replace all uses of
4630         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
4631
4632 2003-02-04  Jim Blandy  <jimb@redhat.com>
4633
4634         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
4635         section, let dwarf_macinfo_section point to it, not
4636         dwarf_loc_section.
4637
4638 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
4639
4640         Pointed out by Anton Blanchard <anton@samba.org>.
4641         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
4642         (ppc_linux_at_sigtramp_return_path): Use it.
4643
4644 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
4645
4646         * defs.h (streq): Add prototype.
4647         * utils.c (streq): New function.
4648
4649         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
4650         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
4651         * mdebugread.c (new_symbol): Likewise.
4652         * stabsread.c (define_symbol): Likewise.
4653         * coffread.c (process_coff_symbol): Likewise.
4654         * dwarfread.c (new_symbol): Likewise.
4655
4656         * minsyms.c (prim_record_minimal_symbol_and_info): Use
4657         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
4658         here.
4659         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
4660         SYMBOL_INIT_DEMANGLED_NAME.
4661         * objfiles.c: Include "hashtab.h".
4662         (allocate_objfile): Call htab_set_functions_ex for the
4663         demangled_names_hash.
4664         (free_objfile): Call htab_delete for the demangled_names_hash.
4665         * objfiles.h (struct htab): Add declaration.
4666         (struct objfile): Add demangled_names_hash.
4667         * symfile.c: Include "hashtab.h".
4668         (reread_symbols): Call htab_delete for the demangled_names_hash.
4669         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
4670         SYMBOL_NAME in the bcache.
4671         * symtab.c: Include "hashtab.h".  Update comments.
4672         (create_demangled_names_hash, symbol_set_names): New functions.
4673         (symbol_find_demangled_name): New function, broken out from
4674         symbol_init_demangled_names.
4675         (symbol_init_demangled_names): Use it.
4676         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
4677         (SYMBOL_SET_NAMES): New macro.
4678         (symbol_set_names): Add prototype.
4679
4680 2003-02-03  Jim Blandy  <jimb@redhat.com>
4681
4682         Use a single, consistent representation for an empty minimal
4683         symbol table in an objfile.
4684         * objfiles.c (terminate_minimal_symbol_table): New function.
4685         (allocate_objfile): Call it.
4686         * objfiles.h (terminate_minimal_symbol_table): New declaration.
4687         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
4688         non-NULL. 
4689         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
4690         objfile has minimal symbols, compare minimal_symbol_count to zero,
4691         instead of comparing msymbols with NULL.
4692         * objfiles.c (have_minimal_symbols): Same.
4693         * solib-sunos.c (solib_add_common_symbols): Call
4694         terminate_minimal_symbol_table.
4695         * symfile.c (reread_symbols): Same.
4696         
4697 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
4698
4699         * s390-tdep.c (s390_address_class_type_flags)
4700         (s390_address_class_type_flags_to_name)
4701         (s390_address_class_name_to_type_flags): New functions.
4702         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
4703         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
4704
4705 2003-02-03  Michael Snyder  <msnyder@redhat.com>
4706
4707         * arm-tdep.c: Fix spell-o in comment.
4708
4709 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
4710
4711         * dwarf2cfi.c (pointer_encoding): Added new parameter.
4712         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
4713         error messages to contain BFD filename. 
4714
4715 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
4716
4717         Fix PR gdb/742 gdb/743 gdb/877
4718         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
4719         (do_mixed_source_and_assembly): Use
4720         make_cleanup_ui_out_tuple_begin_end and
4721         make_cleanup_ui_out_tuple_begin_end.
4722         (do_mixed_source_and_assembly): Ditto.
4723         * thread.c (do_captured_list_thread_ids): Ditto.
4724         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
4725         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
4726         ui_out_tuple_end): Delete prototypes.
4727         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
4728         ui_out_list_end, ui_out_tuple_end): Delete.
4729
4730         From Kevin Buettner  <kevinb@redhat.com>:
4731         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
4732         * ui-out.c (make_cleanup_ui_out_table_begin_end)
4733         (do_cleanup_table_end):  New functions.
4734         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
4735         Use cleanups to invoke_ui_out_tuple_end().
4736         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
4737         * cli/cli-setshow.c (cmd_show_list): Use
4738         make_cleanup_ui_out_tuple_begin_end.
4739         
4740 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
4741
4742         * frame.c (frame_unwind_register): New function.
4743         (frame_unwind_unsigned_register): Use.
4744         (frame_unwind_signed_register): Use.
4745         (frame_read_register): New function.
4746         * frame.h (frame_unwind_register): Declare.
4747         (frame_read_register): Declare.
4748
4749         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
4750         and frame_unwind_register instead of read_memory, write_register
4751         and deprecated_write_register_bytes.
4752
4753 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
4754
4755         * frame.h: Note that namelen can be negative.
4756         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
4757         NAME's length.
4758
4759         * NEWS: Mention that the d10v's `regs' command is deprecated.
4760         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
4761         (d10v_print_registers_info): New function.
4762         (show_regs): Call d10v_print_registers_info.
4763         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
4764
4765 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
4766
4767         * stack.c (print_frame_info): Restore call to annotate_frame_begin
4768         lost in the previous patch.
4769
4770 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
4771
4772         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
4773         * stack.c (print_frame_info_base): Output complete FRAME tuple
4774         for synthesized frames.
4775
4776 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
4777
4778         * mips-nat.c (zerobuf): Delete.
4779         (fetch_inferior_registers): Alloc local zerobuf.
4780         (fetch_core_registers): Alloc local zerobuf.
4781         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
4782         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
4783         * thread-db.c (thread_db_store_registers): Ditto.
4784         * sh-tdep.c (sh_do_register): Ditto.
4785         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4786         * remote-sim.c (gdbsim_store_register): Ditto.
4787         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4788         * remote-e7000.c (fetch_regs_from_dump): Ditto.
4789         * monitor.c (monitor_supply_register): Ditto.
4790         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
4791         * mips-nat.c (fetch_inferior_registers): Ditto.
4792         * m68klinux-nat.c (fetch_register): Ditto.
4793         * lynx-nat.c (fetch_inferior_registers): Ditto.
4794         (fetch_inferior_registers): Ditto.
4795         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
4796         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4797         (hpux_thread_store_registers): Ditto.
4798         * hppah-nat.c (fetch_register): Ditto.
4799         * hppab-nat.c (fetch_register): Ditto.
4800         * hppa-tdep.c (pa_register_look_aside): Ditto.
4801         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
4802         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
4803
4804 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
4805
4806         * gdbarch.sh: Explictly specify all method levels.  When a
4807         variable with an empty level, provide a non-multi-arch default.
4808         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
4809         * gdbarch.h: Re-generate.
4810         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
4811         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
4812
4813 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
4814
4815         * defs.h (host_pointer_to_address): Delete declaration.
4816         (address_to_host_pointer): Delete declaration.
4817         * utils.c (host_pointer_to_address): Delete function.
4818         (address_to_host_pointer): Delete function.
4819         * procfs.c (procfs_address_to_host_pointer): New function.
4820         * procfs.c (proc_set_watchpoint): Use.
4821         (procfs_can_use_hw_breakpoint): Update comments.
4822         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
4823         (som_solib_add): Use.
4824         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
4825         * hppa-tdep.c (unwind_command): Use.
4826         
4827 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
4828
4829         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
4830         strlen d_name.
4831
4832         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
4833         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
4834         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
4835         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
4836         (define_symbol): Update.
4837         * symfile.c (generic_load): Remove references to nindy.
4838         * symtab.c: Remove references to nindy.
4839
4840 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
4841
4842         * infcmd.c (print_float_info): Delete code conditional on
4843         FLOAT_INFO.
4844         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
4845         * config/m68k/nm-apollo68b.h: Ditto.
4846         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
4847         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
4848         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
4849
4850 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
4851
4852         * config/i386/tm-i386os9k.h: Removed.
4853
4854         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
4855         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
4856         they're identical to i[3456]86-*-sysv* now.
4857         * config/i386/i386v32.mh: Removed.
4858         * config/i386/xm-i386v32.h: Removed.
4859         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
4860
4861         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
4862
4863         * config/i386/i386dgux.mh: Removed.
4864         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
4865
4866         * configure.in: Fix typo.
4867         * configure: Regenerated.
4868
4869 2003-01-31  David Carlton  <carlton@math.stanford.edu>
4870
4871         * dwarf2read.c (dwarf2_locate_sections): Set
4872         dwarf_ranges_section.
4873
4874 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
4875
4876         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
4877         * utils.c: Update comments documenting legitimate uses of PTR.
4878         
4879         * utils.c: Re-indent.
4880
4881         * config/djgpp/fnchange.lst: Delete nindy files.
4882         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
4883         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
4884         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
4885         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
4886         * nindy-share/README, nindy-share/Onindy.c: Delete files.
4887         * nindy-tdep.c, nindy-share/Makefile: Delete files.
4888         * Makefile.in (init.c): Remove nindy references.
4889         (saber_gdb): Delete rule.
4890         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
4891         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
4892         and a68v-nat.c.
4893         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
4894         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
4895         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
4896         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
4897         nindy-share/stop.h.
4898         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
4899         * saber.suppress: Delete file.
4900
4901 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
4902
4903         * dbxread.c (stabs_data): New static variable.
4904         (fill_symbuf): Support an in-memory buffer for stabs data.
4905         (stabs_seek): New function.
4906         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
4907         (read_ofile_symtab): Use stabs_seek.
4908         (elfstab_build_psymtabs): Take an asection* instead of
4909         an offset and size.  Relocate the stabs data if necessary.
4910         Save the section* for dbx_psymtab_to_symtab.
4911         * dwarf2read.c: Add section variables for each debug section.
4912         (dwarf2_locate_sections): Fill them in.
4913         (dwarf2_read_section): Take an asection* argument.
4914         Relocate the section contents if necessary.
4915         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
4916         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
4917         it to dwarf2_read_section.
4918         (dwarf2_build_frame_info): Update callers.
4919         * elfread.c (elf_symfile_read): Update call to
4920         elfstab_build_psymtabs.
4921         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
4922         (DBX_STAB_SECTION): New macro.
4923         * stabsread.h (elfstab_build_psymtabs): Update prototype. 
4924         * symfile.c (symfile_dummy_outputs): New function.
4925         (symfile_relocate_debug_section): New function.
4926         * symfile.h (symfile_relocate_debug_section): Add prototype.
4927
4928 2003-01-31  Richard Henderson  <rth@redhat.com>
4929
4930         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
4931         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
4932         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
4933         * alpha-tdep.c (alpha_register_name): Add "unique".
4934         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
4935         (ALPHA_UNIQUE_REGNUM): New.
4936         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
4937
4938 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
4939
4940         * README: Remove reference to Ericsson 1800 monitor.
4941         * Makefile.in (remote-es.o): Delete rule.
4942         (ALLDEPFILES): Delete remote-es.c.
4943         * remote-es.c: Delete file.
4944         * config/m68k/es1800.mt: Delete file.
4945         * config/djgpp/fnchange.lst: Update.
4946         * configure.tgt: Delete m68*-ericsson-* target.
4947
4948 2003-01-31  Adam Fedor  <fedor@gnu.org>
4949
4950         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
4951         Remove duplicate/shadowing variable of same name.
4952
4953 2003-01-30  Jim Blandy  <jimb@redhat.com>
4954
4955         * symfile.c (find_separate_debug_file): Assert that the objfile's
4956         directory name we compute ends with a slash, and then assume that
4957         that's so everywhere we use it.
4958
4959 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
4960
4961         * valops.c (value_assign): Flush frame cache after stores to memory
4962         also.
4963
4964 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
4965
4966         * Makefile.in (mon960-rom.o): Delete rule.
4967         * mon960-rom.c: Delete file.
4968
4969 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
4970
4971         * d10v-tdep.c: Include "frame-unwind.h".
4972         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
4973         list.
4974         (next_addr, uses_frame): Delete.
4975         (struct d10v_unwind_cache): Define.
4976         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
4977         Use info instead of next_addr and uses_frame globals.
4978         (d10v_frame_init_saved_regs): Delete function.
4979         (d10v_init_extra_frame_info): Delete function.
4980         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
4981         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
4982         init_frame_pc or frame_saved_pc.
4983         (d10v_pop_frame): Delete function.
4984         (do_d10v_pop_frame): Delete function.
4985         (d10v_frame_chain): Delete function.
4986         (d10v_frame_chain_valid): Delete function.
4987         (d10v_frame_pc_unwind): New function.
4988         (d10v_frame_id_unwind): New function.
4989         (saved_regs_unwinder): New function.
4990         (d10v_frame_register_unwind): New function.
4991         (d10v_frame_pop): New function.
4992         (d10v_frame_unwind): New variable.
4993         (d10v_frame_p): New function.
4994         (d10v_frame_saved_pc): Delete function.
4995         * Makefile.in (d10v-tdep.o): Update dependencies.
4996
4997 2003-01-30  J. Brobecker  <brobecker@gnat.com>
4998
4999         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
5000         causing some regressions due to a change in the default value
5001         for this macro.
5002
5003 2003-01-29  Richard Henderson  <rth@redhat.com>
5004             Elena Zannoni  <ezannoni@redhat.com>
5005             Daniel Jacobowitz  <drow@mvista.com>
5006
5007         Fix PR gdb/961.
5008         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
5009         variables.
5010         (RANGES_SECTION): New.
5011         (dwarf_ranges_buffer): New variable.
5012         (struct comp_unit_head): Add member "die".
5013         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
5014         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
5015         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
5016         (dwarf2_locate_sections): Likewise.
5017         (dwarf2_build_psymtabs): Read .debug_ranges.
5018         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
5019         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
5020         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
5021         Look for DW_AT_ranges and return the bounding box.
5022
5023 2003-01-29  Brian Ford <ford@vss.fsi.com>
5024
5025         * win32-nat.c (cygwin_pid): Removed as unused.
5026         (child_attach): Try fall back to Cygwin pid.
5027
5028 2003-01-29  Jim Blandy  <jimb@redhat.com>
5029
5030         * objfiles.h (struct objfile): Doc fix.
5031
5032 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
5033
5034         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
5035         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
5036         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
5037         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
5038         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
5039         (FRAME_SAVED_PC): Change to a function with predicate.
5040         * gdbarch.h, gdbarch.c: Re-generate.
5041
5042 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
5043
5044         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
5045
5046         * complaints.c (complain): Delete function.
5047         * complaints.h (struct deprecated_complaint): Delete definition.
5048         (complain): Delete declaration.
5049
5050 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
5051
5052         * mips-tdep.c (mips_init_extra_frame_info): Return early for
5053         dummy frames.
5054
5055 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
5056
5057         * sentinel-frame.h, sentinel-frame.c: New files.
5058         * Makefile.in (frame.o): Update dependencies.
5059         (SFILES): Add sentinel-frame.c.
5060         (sentinel_frame_h): Define.
5061         (COMMON_OBS): Add sentinel-frame.o.
5062         (sentinel-frame.o): Specify dependencies.
5063         * frame.c: Include "sentinel-frame.h".
5064         (frame_register_unwind): Rewrite assuming that there is always a a
5065         ->next frame.
5066         (frame_register, generic_unwind_get_saved_register): Ditto.
5067         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
5068         (create_sentinel_frame, unwind_to_current_frame): New functions.
5069         (get_current_frame): Rewrite using create_sentinel_frame and
5070         unwind_to_current_frame.  When possible, always create a frame.
5071         (create_new_frame): Set next to the sentinel frame.
5072         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
5073         (deprecated_update_frame_pc_hack): Update the next frame's PC and
5074         ID cache when necessary.
5075         (frame_saved_regs_id_unwind): Use frame_relative_level.
5076         (deprecated_generic_get_saved_register): Use frame_relative_level,
5077         get_frame_saved_regs, get_frame_pc, get_frame_base and
5078         get_next_frame.
5079         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
5080         frame_register.
5081
5082 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
5083
5084         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
5085
5086 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
5087
5088         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
5089         (maintenance_set_profile_cmd): Use error () instead of warning ().
5090
5091 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
5092
5093         * configure.in: Check that -pg works if using --enable-profiling.
5094         Check for monstartup and _mcleanup regardless of --enable-profiling.
5095         * maint.c: Check for monstartup and _mcleanup before using them.
5096         * config.in: Regenerated.
5097         * configure: Regenerated.
5098
5099 2003-01-24  Nick Clifton  <nickc@redhat.com>
5100
5101         * Add sh2e support:
5102
5103         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
5104
5105                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
5106                 (sh2e_show_regs): New.
5107                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
5108                 * config/sh/tm-sh.h: Added sh2e to comments.
5109
5110 2003-01-23  Jim Blandy  <jimb@redhat.com>
5111
5112         * symfile.c (syms_from_objfile): Don't print the "(no debugging
5113         symbols found)" message here; we haven't checked for a separate
5114         debug info file yet, so we don't know yet.
5115         (symbol_file_add_with_addrs_or_offsets): Print it here, after
5116         we've looked everywhere.  Also, there's no need to print a special
5117         message when we're loading the separate debug info file: the one
5118         symbol_file_add prints is fine.
5119
5120 2003-01-23  Alexander Larsson <alexl@redhat.com>
5121             Jim Blandy  <jimb@redhat.com>
5122
5123         Add support for executables whose debug info has been separated
5124         out into a separate file, leaving only a link behind.
5125         * objfiles.h (struct objfile): New fields: separate_debug_objfile
5126         and separate_debug_objfile_backlink.
5127         (put_objfile_before): New declaration.
5128         * symfile.c: #include "filenames.h".
5129         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
5130         debug info in a separate file, read that, too. Save the addrs
5131         argument, so we can use it again to read the separated debug info;
5132         syms_from_objfile modifies the table we pass it.
5133         (reread_symbols): After re-reading an objfile, call
5134         reread_separate_symbols to refresh its separate debug info
5135         objfile, if it has one.
5136         (reread_separate_symbols, find_separate_debug_file,
5137         get_debug_link_info, separate_debug_file_exists): New functions.
5138         (debug_file_directory): New global var.
5139         (_initialize_symfile): Initialize debug_file_directory, and
5140         provide the new `set debug-file-directory' command to let the user
5141         change it.
5142         * objfiles.c (free_objfile): If this objfile has its debug info in
5143         a separate objfile, free that one too.  If this is itself a
5144         separate debug info objfile, clear our parent's backlink.
5145         (put_objfile_before): New function.
5146         * utils.c (gnu_debuglink_crc32): New function.
5147         * defs.h (gnu_debuglink_crc32): New declaration.
5148         * Makefile.in (symfile.o): Note dependency on "filenames.h".
5149         * configure.in: Handle --with-separate-debug-dir config option.
5150         * acinclude.m4 (AC_DEFINE_DIR): New macro.
5151         * acconfig.h (DEBUGDIR): New macro.
5152         * configure, aclocal.m4, config.in: Regenerated.
5153
5154 2003-01-22  Jim Blandy  <jimb@redhat.com>
5155
5156         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
5157         like the old symbol_file_add, but taking new arguments: you can
5158         now pass in either a `struct section_addr_info' list to say where
5159         each section is loaded, or a `struct section_offsets' table.  Pass
5160         these new arguments through to syms_from_objfile as appropriate.
5161         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets, 
5162         with the appropriate quiescent values for the new arguments.
5163
5164         * symfile.c: #include "gdb_assert.h".
5165         (syms_from_objfile): Add the ability to pass in a section offset
5166         table directly, as an alternative to the section_addr_info table.
5167         Document arguments better.
5168         (symbol_file_add): Pass extra arguments to syms_from_objfile.
5169         * symfile.h (syms_from_objfile): Update declaration.
5170         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
5171         syms_from_objfile.
5172         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
5173
5174 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
5175
5176         Original patch by Tom Tromey <tromey@cygnus.com> and
5177         Jason Molenda <jmolenda@apple.com>.
5178         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
5179         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
5180         * NEWS: Mention profiling.
5181         * configure.in (--enable-gdbtk): Fix typo.
5182         (--enable-profiling): New.  Set PROFILE_CFLAGS.
5183         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
5184         Fill in function.
5185         (profiling_state): New variable.
5186         (mcleanup_wrapper): New function.
5187         (_initialize_maint): Remove NOTYET, fix call to
5188         add_setshow_boolean_cmd for "maint set profile".
5189         * configure: Regenerated.
5190
5191 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
5192
5193         * Makefile.in (install-gdbtk): Install PNG images too.
5194
5195 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
5196
5197         * exec.c (text_start): Delete global variable.
5198         (exec_file_attach): Make text_start local to the function.
5199         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
5200         * valops.c (hand_function_call): Delete code that handles
5201         BEFORE_TEXT_END and AFTER_TEXT_END.
5202         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
5203         of CALL_DUMMY_LOCATION.
5204         * gdbarch.c: Regenerate.
5205         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
5206         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
5207         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
5208         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
5209         (text_end): Delete extern declaration.
5210
5211 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
5212
5213         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
5214         * blockframe.c (backtrace_below_main): Move to "frame.c".
5215         (frame_chain_valid): Delete check for backtrace_below_main.
5216         (_initialize_blockframe): Delete initialization, move ``set
5217         backtrace-below-main'' command to "frame.c".
5218         (do_flush_frames_sfunc): Delete function.
5219         * frame.c: Include "command.h" and "gdbcmd.h".
5220         (frame_type_from_pc): New function.
5221         (create_new_frame): Use frame_type_from_pc.
5222         (legacy_get_prev_frame): New function.
5223         (get_prev_frame): Rewrite.  When an old style frame, call
5224         legacy_get_prev_frame.  Otherwize, unwind the PC first.
5225         (_initialize_frame): Add ``set backtrace-below-main'' command.
5226         * Makefile.in (frame.o): Update dependencies.
5227
5228 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
5229
5230         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
5231         DEPRECATED_REGISTERS_INFO.
5232
5233 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
5234
5235         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
5236         Maintainers'.  Update `Various Maintainers'.
5237
5238 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
5239
5240         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
5241         * gdbarch.sh (POP_FRAME): Change to function with predicate.
5242         Suppress actual parameters when `-'.
5243         * gdbarch.h, gdbarch.c: Regenerate.
5244
5245 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
5246
5247         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
5248         code handling dummy frames.
5249
5250 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
5251
5252         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
5253         (struct frame_unwind): Add field pop.
5254         * frame.h (frame_pop): Declare.
5255         * frame.c (frame_saved_regs_pop): New function.
5256         (trad_frame_unwinder): Add frame_saved_regs_pop.
5257         (frame_pop): New function.
5258         * dummy-frame.c (dummy_frame_pop): New function.
5259         (discard_innermost_dummy): New function.
5260         (generic_pop_dummy_frame): Use discard_innermost_dummy.
5261         (dummy_frame_unwind): Add dummy_frame_pop.
5262         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
5263         * valops.c (hand_function_call): Ditto.
5264         * stack.c (return_command): Ditto.
5265
5266 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
5267
5268         * cris-tdep.c: Fix function declaration indentation.
5269         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
5270         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
5271         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
5272         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
5273         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
5274         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
5275
5276 2003-01-18  Michael Chastain  <mec@shout.net>
5277
5278         * README (Unpacking and Installation -- quick overview):
5279         Warn against ".../gdb-5.3/gdb/configure".
5280
5281 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
5282
5283         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
5284         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
5285         (struct frame_unwind): Declare opaque.
5286         (dummy_frame_p): Declare function.
5287         * dummy-frame.c (dummy_frame_id_unwind): Make static.
5288         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
5289         * dummy-frame.c: Include "frame-unwind.h".
5290         (dummy_frame_p): New function.
5291         (dummy_frame_unwind): New variable.
5292         * frame.c: Include "frame-unwind.h".
5293         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
5294         to use the new unwind field.
5295         (set_unwind_by_pc): Delete function.
5296         (create_new_frame, get_prev_frame): Set unwind field using
5297         frame_unwind_find_by_pc.
5298         (trad_frame_unwind, trad_frame_unwinder): New variables.
5299         * frame.h (trad_frame_unwind): Declare variable.
5300         (frame_id_unwind_ftype): Delete declaration.
5301         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
5302         (struct frame_unwind): Declare opaque.
5303         (struct frame_info): Replace the fields id_unwind, pc_unwind and
5304         register_unwind with a single unwind pointer.
5305         * frame-unwind.h, frame-unwind.c: New files.
5306         * Makefile.in (SFILES): Add frame-unwind.c.
5307         (frame_unwind_h): Define.
5308         (COMMON_OBS): Add frame-unwind.o.
5309         (frame-unwind.o): Specify dependencies.
5310         (frame.o, dummy-frame.o): Update dependencies.
5311         
5312 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
5313
5314         * ada-valprint.c: Eliminate PTR.
5315         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
5316         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
5317         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
5318         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
5319         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
5320         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
5321         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
5322         
5323 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
5324
5325         * main.c (captured_main): Don't use PTR.
5326         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
5327         * gdbtypes.c (lookup_primitive_typename): Ditto.
5328         (lookup_struct_elt_type): Ditto.
5329         * f-valprint.c (info_common_command): Ditto.
5330         (list_all_visible_commons): Ditto.
5331         * jv-typeprint.c (java_type_print_base): Ditto.
5332
5333         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
5334         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
5335         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
5336         i386-interix-nat.c and i386-interix-tdep.c.  Rename
5337         m68klinux-nat.c and m68klinux-tdep.c.  Rename
5338         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
5339         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
5340         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
5341         * main.c (captured_main): Use xfree, not free.
5342
5343 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
5344
5345         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
5346         ID back using a parameter.
5347         * frame.c (frame_id_unwind): Update call.
5348         (frame_saved_regs_id_unwind): Update.
5349         * dummy-frame.c (dummy_frame_id_unwind): Update function.
5350         * dummy-frame.h (struct frame_id): Add opaque declaration.
5351         (dummy_frame_id_unwind): Update declaration.
5352
5353 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
5354
5355         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
5356
5357 2003-01-15  Stephen P. Smith <ischis2@cox.net>
5358
5359         * MAINTAINERS (Stephen P. Smith): Updated email address.
5360
5361 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
5362
5363         Fix PR gdb/898
5364         * breakpoint.c (until_break_command): Add new argument.  Use it to
5365         decide whether to stop only at the current frame or not.
5366         * breakpoint.h (until_break_command): Update prototype.
5367         * infcmd.c (until_command): Add new argument to until_break_command
5368         call.
5369         (advance_command): New function.
5370         (_initialize_infcmd): Update help string for 'until' command.
5371         Add new 'advance' command.
5372
5373 2003-01-14  David Carlton  <carlton@math.stanford.edu>
5374
5375         * linespec.c (decode_line_1): Normalize comments.
5376         (set_flags): Ditto.
5377         (locate_first_half): Ditto.
5378         (decode_compound): Ditto.
5379         (symtab_from_filename): Ditto.
5380         (decode_all_digits): Ditto.
5381         (decode_dollar): Ditto.
5382         (find_methods): Ditto.
5383         (find_toplevel_char): Ditto.
5384
5385 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
5386
5387         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
5388         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
5389         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
5390         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
5391         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
5392         * language.c, language.h, m32r-tdep.c: Update copyright.
5393         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
5394         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
5395         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
5396         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
5397         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
5398         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
5399
5400 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
5401
5402         * stabsread.h (process_later, resolve_cfront_continuation):
5403         Obsolete.
5404         Update copyright years.
5405         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
5406         Update copyright year.
5407         * dbxread.c(struct cont_elem): Obsolete.
5408         (process_later, process_now): Obsolete functions. 
5409         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
5410         Update copyright year.
5411         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
5412         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
5413         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
5414         (parse_partial_symbols): Obsolete cfront support.
5415         * stabsread.c
5416         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
5417         macros.
5418         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
5419         read_cfront_baseclasses, read_cfront_member_functions,
5420         resolve_cfront_continuation,read_cfront_static_fields,
5421         copy_cfront_struct_fields): Obsolete functions.
5422         (define_symbol, read_one_struct_field): Obsolete cfront support.
5423         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
5424         Update Copyright year.
5425
5426 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
5427
5428         * stack.c (print_frame_info, print_stack_frame_base_stub,
5429         print_stack_frame_base, show_and_print_stack_frame_stub,
5430         show_and_print_stack_frame, print_only_stack_frame_stub,
5431         print_only_stack_frame): Delete functions.
5432         (print_stack_frame_stub): Call print_frame_info instead of
5433         print_frame_info_base.
5434         (print_frame_info_base): Rename to print_frame_info.
5435         (backtrace_command_1): Call print_frame_info, instead of
5436         print_frame_info_base.
5437         (current_frame_command): Call print_stack_frame, instead of
5438         print_only_stack_frame.
5439         (frame_command): Call print_stack_frame, instead of
5440         show_and_print_stack_frame.
5441         (up_command): Ditto.
5442         (down_command): Ditto.
5443         * frame.h (print_only_stack_frame): Delete prototype.
5444         * infrun.c (normal_stop): Call print_stack_frame, instead of
5445         show_and_print_stack_frame.
5446         * thread.c (info_threads_command): Call print_stack_frame, instead
5447         of print_only_stack_frame.
5448
5449 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
5450
5451         * README (Graphical interface to GDB): Update URL.  Point at
5452         gdb/links/.
5453
5454         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
5455         version match.
5456
5457 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
5458
5459         * symtab.c (find_pc_sect_line): Don't consider end-of-function
5460         lines.
5461
5462 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
5463
5464         * thread-db.c (attach_thread): Prototype.
5465         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
5466         thread information (ti), and valid flags (th_valid, ti_valid).
5467         (attach_thread): Move target_pid_to_str call to after the thread
5468         is added to GDB's list.  Initialize the cache.
5469         (thread_get_info_callback, thread_db_map_id2thr)
5470         (thread_db_get_info): New functions.
5471         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
5472         (thread_db_store_registers, thread_db_thread_alive)
5473         (thread_db_get_thread_local_address): Use them.
5474         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
5475         of calling error() for threads in unknown state.
5476
5477         (clear_lwpid_callback): New function.
5478         (thread_db_resume): Use it to clear the cache.
5479
5480 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
5481
5482         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
5483         (resume_callback): Remove dead code.
5484
5485 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
5486
5487         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
5488         predicate.
5489         * gdbarch.h, gdbarch.c: Regenerate.
5490         * stack.c (frame_info): Only initialize the saved registers when
5491         FRAME_INIT_SAVED_REGS_P.
5492         * frame.c (frame_saved_regs_register_unwind): Assert
5493         FRAME_INIT_SAVED_REGS_P.
5494         (deprecated_generic_get_saved_register): Ditto.
5495
5496 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
5497
5498         * source.c (openp): Squelch warning about "filename".
5499
5500 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
5501
5502         * source.c (openp): If the file does not exist don't necessarily
5503         search the path.
5504
5505 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
5506
5507         Fix PR gdb/872.
5508         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
5509         (integer_types_same_name_p): New function.
5510         (rank_one_type): Use it.
5511         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
5512
5513 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
5514
5515         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
5516         variables.
5517         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
5518         * configure.in: Add --with-sysroot.
5519         * configure: Regenerated.
5520         * main.c (gdb_sysroot): New variable.
5521         (captured_main): Initialize gdb_sysroot.
5522         * defs.h (gdb_sysroot): New extern declaration.
5523         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
5524
5525 2003-01-12  Michael Chastain  <mec@shout.net>
5526
5527         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
5528
5529 2003-01-12  Michael Chastain  <mec@shout.net>
5530
5531         * top.c (print_gdb_version): Bump copyright year to 2003.
5532
5533 2003-01-12  David Carlton  <carlton@bactrian.org>
5534
5535         * linespec.c (symtab_from_filename): Rename variable 's' to
5536         'file_symtab'.
5537
5538 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
5539
5540         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
5541         dummy frame.
5542         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
5543
5544 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
5545
5546         * d10v-tdep.c: Include "gdb_assert.h".
5547         (d10v_store_return_value): Rewrite to match current interface.
5548         (d10v_extract_struct_value_address): Ditto.
5549         (d10v_extract_return_value): Ditto.
5550         (d10v_gdbarch_init): Set store_restore_value,
5551         extract_struct_value_address and extract_return_value.
5552
5553 2003-01-12  J. Brobecker  <brobecker@gnat.com>
5554
5555         * hpread.c (set_namestring): New procedure replacing the
5556         SET_NAMESTRING macro.
5557         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
5558         by calls to set_namestring.
5559
5560 2003-01-11  J. Brobecker  <brobecker@gnat.com>
5561
5562         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
5563         a compilation warning.
5564         (hpread_process_one_debug_symbol): Likewise.
5565
5566 2003-01-10  David Carlton  <carlton@math.stanford.edu>
5567
5568         * linespec.c (decode_line_1): Rename variable 's' to
5569         'file_symtab'.
5570         (decode_all_digits): Rename argument 's' to 'file_symtab'.
5571         (decode_dollar): Ditto.
5572         (decode_variable): Ditto.
5573         (symbol_found): Ditto.
5574
5575 2003-01-09  Michael Chastain  <mec@shout.net>
5576
5577         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
5578
5579 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
5580
5581         * win32-nat.c (set_process_privilege): New function.
5582         (child_attach): Call set_process_privilege() to enable the
5583         SE_DEBUG_NAME user privilege if available in process token.
5584
5585 2003-01-10  J. Brobecker  <brobecker@gnat.com>
5586
5587         * hpread.c (hpread_process_one_debug_symbol): Fix a small
5588         compilation error in the previous revision.
5589
5590 2003-01-09  David Carlton  <carlton@math.stanford.edu>
5591
5592         * linespec.c: Update copyright.
5593
5594 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
5595
5596         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
5597         than inferior_ptid.
5598         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
5599
5600 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
5601
5602         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
5603         Update comments.
5604         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
5605         (frame_saved_regs_zalloc): Update.
5606         (frame_saved_regs_register_unwind): Update.
5607         (create_new_frame): Update.
5608         (get_prev_frame): Update.
5609         (frame_extra_info_zalloc): Update.
5610         (deprecated_get_frame_saved_regs): Update.
5611         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
5612         * cris-tdep.c: Update comment.
5613
5614         * somsolib.h: Fix function indentation.
5615         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
5616         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
5617         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
5618         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
5619         * somsolib.c, inftarg.c: Remove assignment in if conditional.
5620
5621         * infrun.c (follow_fork): Use ISO C definition.
5622         * expprint.c (print_subexp): Use xfree instead of free.
5623         * charset.c: Include "gdb_string.h" instead of <string.h>.
5624         (register_iconv_charsets): Use ISO C definition.
5625         (host_charset, target_charset): Ditto.
5626         * Makefile.in (charset.o): Update dependencies.
5627         (mi-cmd-env.o): Update dependencies.
5628
5629 2003-01-08  Andrew Cagney  <cagney@redhat.com>
5630
5631         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
5632         get_frame_base.
5633
5634 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
5635
5636         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
5637         build directories.  Save edited gdb output in Mbuild.log.  If a
5638         build fails, remove any final GDB executable.
5639
5640 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
5641
5642         * gdb_mbuild.sh: Edit the output of `maint print architecture'
5643         replacing hex constants with function names and stripping leading
5644         file name directory prefixes.
5645
5646 2003-01-08  Andrew Cagney  <cagney@redhat.com>
5647
5648         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
5649         get_frame_base.
5650
5651 2003-01-08  David Carlton  <carlton@math.stanford.edu>
5652
5653         * linespec.c (decode_line_1): Move code into decode_variable.
5654         (decode_variable): New function.
5655
5656 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
5657
5658         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
5659
5660 2003-01-08  Andrew Cagney  <cagney@redhat.com>
5661
5662         * cris-tdep.c (cris_frame_init_saved_regs): Use
5663         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
5664         saved_regs buffer.
5665         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5666         (sh64_nofp_frame_init_saved_regs): Ditto.
5667         (sh_fp_frame_init_saved_regs): Ditto.
5668         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
5669         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
5670         * mcore-tdep.c (analyze_dummy_frame): Ditto.
5671         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5672
5673 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
5674
5675         * minsyms.c (lookup_minimal_symbol): Update comment.
5676         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
5677         (lookup_minimal_symbol_solib_trampoline): Likewise.
5678
5679 2003-01-08  Andrew Cagney  <cagney@redhat.com>
5680
5681         * d10v-tdep.c (d10v_init_extra_frame_info): Use
5682         frame_relative_level.
5683
5684         * alpha-tdep.c: Use get_frame_extra_info.
5685         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5686         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
5687         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
5688         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
5689
5690         * alpha-tdep.c: Use get_next_frame.
5691         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5692         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
5693         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
5694         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
5695         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
5696         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
5697         * xstormy16-tdep.c: Ditto.
5698         
5699 2003-01-07  Andrew Cagney  <cagney@redhat.com>
5700
5701         * alpha-tdep.c: Use get_frame_base.
5702         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5703         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
5704         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
5705         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
5706         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
5707         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
5708         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
5709         * config/sparc/tm-sparc.h: Ditto.
5710         
5711 2003-01-07  Andrew Cagney  <cagney@redhat.com>
5712
5713         * frame.c (deprecated_get_frame_context): New function.
5714         (deprecated_set_frame_context): New function.
5715         * frame.h (deprecated_get_frame_context): Declare.
5716         (deprecated_set_frame_context): Declare.
5717         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
5718         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
5719         
5720 2003-01-07  Andrew Cagney  <cagney@redhat.com>
5721
5722         * frame.c (deprecated_set_frame_next_hack): New function.
5723         (deprecated_set_frame_prev_hack): New function.
5724         * frame.h (deprecated_set_frame_next_hack): Declare.
5725         (deprecated_set_frame_prev_hack): Declare.
5726         * mcore-tdep.c (analyze_dummy_frame): Use
5727         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
5728         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5729
5730 2003-01-07  David Carlton  <carlton@math.stanford.edu>
5731
5732         * linespec.c (decode_line_1): Move code into decode_dollar.
5733         (decode_dollar): New function.
5734
5735 2003-01-07  Andrew Cagney  <cagney@redhat.com>
5736
5737         * arm-tdep.c (arm_init_extra_frame_info): Use
5738         deprecated_update_frame_base_hack.
5739         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
5740         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5741         (fix_frame_pointer): Ditto.
5742         (mn10300_analyze_prologue): Ditto.
5743
5744 2003-01-07  Andrew Cagney  <cagney@redhat.com>
5745
5746         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
5747         extra_info using frame_extra_info_zalloc.
5748         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5749         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
5750         (sh64_init_extra_frame_info): Ditto.
5751         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
5752         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
5753         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
5754         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
5755         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
5756         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
5757         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
5758         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
5759         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
5760         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
5761         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5762         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
5763
5764         * mn10300-tdep.c (analyze_dummy_frame): Use
5765         deprecated_set_frame_extra_info_hack.
5766         * mcore-tdep.c (analyze_dummy_frame): Ditto.
5767
5768 2003-01-07  J. Brobecker  <brobecker@gnat.com>
5769
5770         * mdebugread.c (parse_symbol): Skip stProc entries which storage
5771         class is not scText. These do not define "real" procedures.
5772         (parse_partial_symbols): Likewise.
5773
5774 2003-01-06  Michael Snyder  <msnyder@redhat.com>
5775
5776         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
5777
5778 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
5779
5780         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
5781         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
5782         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
5783         deprecated_frame_xmalloc_with_cleanup.
5784         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
5785         deprecated_frame_xmalloc.
5786         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
5787         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
5788
5789 2003-01-06  Andrew Cagney  <cagney@redhat.com>
5790
5791         * x86-64-linux-tdep.c: Include "osabi.h".
5792         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
5793
5794         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
5795
5796 2003-01-06  Andrew Cagney  <cagney@redhat.com>
5797
5798         * MAINTAINERS (Target Instruction Set Architectures): Update
5799         arm-elf.  Can be built with -Werror, has been multiarched.
5800
5801         * value.h (unpack_long): Make buffer parameter constant.
5802         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
5803         * scm-lang.h (scm_parse): Ditto.
5804         * defs.h (extract_typed_address, extract_address): Ditto.
5805         (extract_long_unsigned_integer): Ditto.
5806         * inferior.h (unsigned_pointer_to_address): Ditto.
5807         (signed_pointer_to_address): Ditto.
5808         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
5809         * gdbarch.h, gdbarch.c: Regenerate.
5810         * findvar.c (extract_long_unsigned_integer): Update.
5811         (extract_address): Update.
5812         (extract_typed_address): Update.
5813         (unsigned_pointer_to_address): Update.
5814         * values.c (unpack_long): Update.
5815         (unpack_double): Update.
5816         (unpack_pointer): Update.
5817         (unpack_field_as_long): Update.
5818         * d10v-tdep.c (d10v_pointer_to_address): Update.
5819         * avr-tdep.c (avr_pointer_to_address): Update.
5820         * scm-lang.c (scm_unpack): Update.
5821         * findvar.c (signed_pointer_to_address): Update.
5822
5823 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
5824
5825         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore 
5826         since it is in i386-tdep.c.
5827
5828 2003-01-06  J. Brobecker  <brobecker@gnat.com>
5829
5830         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
5831         failure introduced in the previous change.
5832
5833 2003-01-05  Michael Chastain  <mec@shout.net>
5834
5835         * README: Remove references to deleted remote-*.c files:
5836         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
5837         remote-nrom.c, remote-os9k.c, remote-udi.c.
5838
5839 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
5840
5841         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
5842         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
5843         i386_get_longjmp_target.
5844
5845 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
5846
5847         * arm-tdep.c (prologue_cache): Change to a pointer.
5848         (_initialize_arm_tdep): Allocate prologue_cache.
5849         (check_prologue_cache): Update.
5850         (save_prologue_cache): Update.
5851         (arm_gdbarch_init): Update.
5852
5853 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
5854
5855         * stabsread.c (update_method_name_from_physname): Call complaint()
5856         instead of error.
5857
5858 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
5859
5860         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
5861         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
5862         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
5863
5864         * blockframe.c: Include "gdbcmd.h" and "command.h".
5865         (backtrace_below_main): New variable.
5866         (file_frame_chain_valid, func_frame_chain_valid)
5867         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
5868         (generic_func_frame_chain_valid): Remove functions.
5869         (frame_chain_valid, do_flush_frames_sfunc): New functions.
5870         (_initialize_blockframe): New function.
5871         * Makefile.in (blockframe.o): Update dependencies.
5872         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
5873         comment.  Call frame_chain_valid ().
5874         * frame.h: Remove old prototypes.  Add prototype for
5875         frame_chain_valid and update comments to match.
5876         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
5877         Remove old comment.
5878         * gdbarch.h: Regenerated.
5879         * gdbarch.c: Regenerated.
5880
5881         * alpha-tdep.c (alpha_gdbarch_init): Don't call
5882         set_gdbarch_frame_chain_valid.
5883         * avr-tdep.c (avr_gdbarch_init): Likewise.
5884         * cris-tdep.c (cris_gdbarch_init): Likewise.
5885         * frv-tdep.c (frv_gdbarch_init): Likewise.
5886         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
5887         * i386-tdep.c (i386_svr4_init_abi): Likewise.
5888         (i386_nw_init_abi): Likewise.
5889         (i386_gdbarch_init): Likewise.
5890         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
5891         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5892         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
5893         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
5894         * mips-tdep.c (mips_gdbarch_init): Likewise.
5895         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5896         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
5897         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5898         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5899         * s390-tdep.c (s390_gdbarch_init): Likewise.
5900         * sh-tdep.c (sh_gdbarch_init): Likewise.
5901         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
5902         * v850-tdep.c (v850_gdbarch_init): Likewise.
5903         * vax-tdep.c (vax_gdbarch_init): Likewise.
5904         * x86-64-tdep.c (x86_64_init_abi): Likewise.
5905
5906         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
5907         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
5908         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
5909         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
5910         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
5911         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
5912         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
5913         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
5914
5915 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
5916
5917         * Makefile.in (acconfig_h): Remove incorrect macro.
5918         (config_h): Define.
5919         (osabi.o): Update dependencies.
5920         * configure.tgt: Set gdb_osabi based on target triplet.
5921         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
5922         * configure: Regenerated.
5923         * config.in: Regenerated.
5924         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
5925         (GDB_OSABI_DEFAULT): Define if not already defined.
5926         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
5927         (set_osabi_string): New variables.
5928         (gdbarch_register_osabi): Add new OS ABI to
5929         gdb_osabi_available_names.
5930         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
5931         (set_osabi, show_osabi): New functions.
5932         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
5933
5934 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
5935
5936         * arch-utils.c (gdbarch_info_init): Set osabi to
5937         GDB_OSABI_UNINITIALIZED.
5938         * gdbarch.sh: Add osabi to struct gdbarch and to struct
5939         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
5940         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
5941         * gdbarch.c: Regenerated.
5942         * gdbarch.h: Regenerated.
5943         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
5944         there's no BFD.
5945         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
5946         * osabi.h (enum gdb_osabi): Move to defs.h.
5947         (gdbarch_init_osabi): Update prototype.
5948         * defs.h (enum gdb_osabi): Moved here.
5949         * Makefile.in: Update dependencies.
5950
5951         * alpha-tdep.h: Don't include "osabi.h".
5952         (struct gdbarch_tdep): Remove osabi member.
5953         * alpha-tdep.c: Include "osabi.h".
5954         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
5955         iterate over arches.  Update call to gdbarch_init_osabi.
5956         (alpha_dump_tdep): Don't dump osabi.
5957         * alpha-linux-tdep.c: Include "osabi.h".
5958         * alpha-osf1-tdep.c: Include "osabi.h".
5959         * alphafbsd-tdep.c: Include "osabi.h".
5960         * alphanbsd-tdep.c: Include "osabi.h".
5961
5962         * arm-tdep.h: Don't include "osabi.h".
5963         (struct gdbarch_tdep): Remove osabi member.
5964         * arm-tdep.c: Include "osabi.h".
5965         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
5966         iterate over arches.  Update call to gdbarch_init_osabi.
5967         (arm_dump_tdep): Don't dump osabi.
5968         * arm-linux-tdep.c: Include "osabi.h".
5969         * armnbsd-tdep.c: Include "osabi.h".
5970
5971         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
5972         Update call to gdbarch_init_osabi.
5973
5974         * i386-tdep.h: Don't include "osabi.h".
5975         (struct gdbarch_tdep): Remove osabi member.
5976         * i386-tdep.c: Include "osabi.h".
5977         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
5978         iterate over arches.  Update call to gdbarch_init_osabi.
5979         (i386_dump_tdep): Don't dump osabi.
5980         * i386-linux-tdep.c: Include "osabi.h".
5981         * i386-sol2-tdep.c: Include "osabi.h".
5982         * i386bsd-tdep.c: Include "osabi.h".
5983         * i386gnu-tdep.c: Include "osabi.h".
5984         * i386ly-tdep.c: Include "osabi.h".
5985         * i386nbsd-tdep.c: Include "osabi.h".
5986         * i386obsd-tdep.c: Include "osabi.h".
5987
5988         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
5989         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
5990         check osabi when iterating over arches.  Update call to
5991         gdbarch_init_osabi.
5992         (mips_dump_tdep): Don't dump osabi.
5993
5994         * ns32k-tdep.h: Don't include "osabi.h".
5995         (struct gdbarch_tdep): Remove.
5996         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
5997         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
5998         allocate tdep.  Update call to gdbarch_init_osabi.
5999         (ns32k_dump_tdep): Remove.
6000         (_initialize_ns32k_tdep): Update call to gdbarch_register.
6001         * ns32knbsd-tdep.c: Include "osabi.h".
6002
6003         * ppc-tdep.h: Don't include "osabi.h".
6004         (struct gdbarch_tdep): Remove osabi member.
6005         * rs6000-tdep.c: Include "osabi.h".
6006         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
6007         osabi when iterating over arches.  Update call to
6008         gdbarch_init_osabi.
6009         (rs6000_dump_tdep): Don't dump osabi.
6010         * ppc-linux-tdep.c: Include "osabi.h".
6011         * ppcnbsd-tdep.c: Include "osabi.h".
6012
6013         * sh-tdep.h: Don't include "osabi.h".
6014         (struct gdbarch_tdep): Remove osabi member.
6015         * sh-tdep.c: Include "osabi.h".
6016         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
6017         iterate over arches.  Update call to gdbarch_init_osabi.
6018         (sh_dump_tdep): Don't dump osabi.
6019         * shnbsd-tdep.c: Include "osabi.h".
6020
6021         * sparc-tdep.c: Include "osabi.h".
6022         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
6023         iterate over arches.  Update call to gdbarch_init_osabi.
6024         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
6025         tdep structure.
6026
6027         * vax-tdep.h: Don't include "osabi.h".
6028         (struct gdbarch_tdep): Remove.
6029         * vax-tdep.c: Include "osabi.h".
6030         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
6031         iterate over arches.  Don't allocate tdep.  Update call
6032         to gdbarch_init_osabi.
6033         (vax_dump_tdep): Remove.
6034         (_initialize_vax_tdep): Update call to gdbarch_register.
6035
6036 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
6037
6038         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
6039         entirely.
6040         (breakpoint_re_set_one): Don't fetch the value for a disabled
6041         watchpoint.
6042
6043 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
6044
6045         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
6046         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
6047         (COERCE_FLOAT_TO_DOUBLE): Remove.
6048         * gdbarch.c: Regenerate.
6049         * gdbarch.h: Regenerate.
6050         * Makefile.in: Remove value_h from gdbarch_h.
6051         * valops.c (coerce_float_to_double): New variable.
6052         (default_coerce_float_to_double): Remove.
6053         (standard_coerce_float_to_double): Remove.
6054         (value_arg_coerce): Use coerce_float_to_double.
6055         (_initialize_valops): Add "set coerce-float-to-double".
6056         * value.h (default_coerce_float_to_double): Remove prototype.
6057         (standard_coerce_float_to_double): Remove prototype.
6058
6059         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
6060         prototyped.
6061         * mdebugread.c (parse_symbol): Likewise.
6062         * stabsread.c (define_symbol): Mark all functions as prototyped.
6063
6064         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
6065         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
6066         set_gdbarch_coerce_float_to_double.
6067         * arm-tdep.c (arm_gdbarch_init): Likewise.
6068         * frv-tdep.c (frv_gdbarch_init): Likewise.
6069         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
6070         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
6071         * mips-tdep.c (mips_gdbarch_init): Likewise.
6072         (mips_coerce_float_to_double): Remove.
6073         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6074         (rs6000_coerce_float_to_double): Remove.
6075         * s390-tdep.c (s390_gdbarch_init): Likewise.
6076         * sh-tdep.c (sh_gdbarch_init): Likewise.
6077         (sh_coerce_float_to_double): Remove.
6078         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
6079         (sparc_coerce_float_to_double): Remove.
6080         * v850-tdep.c (v850_gdbarch_init): Likewise.
6081         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6082         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6083         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
6084         (hppa_coerce_float_to_double): Remove prototype.
6085         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6086
6087 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
6088
6089         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
6090
6091 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
6092
6093         Suggested by Stewart Brown <sb24@avaya.com>:
6094         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
6095         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
6096         (c_type_print_varspec_suffix): Likewise.
6097
6098 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
6099
6100         * configure.in: Don't set and AC_SUBST SUBDIRS.
6101         * configure: Regenerated.
6102
6103         * configure.in: Remove code dealing with shared libraries.
6104         * Makefile.in: Remove HLDFLAGS and HLDENV.
6105         * configure: Regenerated.
6106
6107 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
6108
6109         * frame.c (deprecated_frame_xmalloc): New function.
6110         (deprecated_set_frame_saved_regs_hack): New function.
6111         (deprecated_set_frame_extra_info_hack): New function.
6112         * frame.h (deprecated_frame_xmalloc): Declare.
6113         (deprecated_set_frame_saved_regs_hack): Declare.
6114         (deprecated_set_frame_extra_info_hack): Declare.
6115
6116 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
6117
6118         * configure.in: Move code that provides the --enable-gdbtk option
6119         right after the code that handles the --enable-tui option, and
6120         polish it somewhat.
6121         * configure: Regenerated.
6122
6123         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
6124         AC_CHECK_FUNCS and remove the old check for pread64.
6125         * acinclude.m4 (AC_GNU_SOURCE): New macro.
6126         * acconfig.h (_GNU_SOURCE): Add.
6127         (HAVE_PREAD64): Remove.
6128         * configure, aclocal.m4, config.in: Regenerated.
6129
6130 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
6131
6132         * alpha-tdep.c: Use get_frame_saved_regs.
6133         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6134         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
6135         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
6136         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
6137         * vax-tdep.c, xstormy16-tdep.c: Ditto.
6138
6139 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
6140
6141         * configure.in: Remove all use of the SUBDIRS variable; add
6142         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
6143         code providing the --enable-multi-ice option, and move it right in
6144         front of the code that checks whether gdbserver is supported.
6145         Polish that too.
6146         * configure: Regenerated.
6147         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
6148         @SUBDIRS@.
6149
6150 2003-01-03  Andrew Cagney  <cagney@redhat.com>
6151
6152         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
6153         * avr-tdep.c, cris-tdep.c: Ditto.
6154         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
6155         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
6156         
6157 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
6158
6159         * configure.in: Remove --enable-netrom option.
6160         * configure: Regenerated.
6161
6162 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
6163
6164         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
6165         declaration for `struct re_pattern_buffer' instead.
6166         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
6167
6168 2003-01-03  J. Brobecker  <brobecker@gnat.com>
6169
6170         * mdebugread.c (parse_symbol): Count until the stEnd matching
6171         the structure name.
6172
6173 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
6174
6175         * configure.in: Remove --with-cpu option.
6176         subscripts.  Remove evil changequotes here.
6177         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
6178         * config.in, configure: Regenerated.
6179         
6180         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
6181         * configure.in: Cleanup section that sources GDB and BFD configure
6182         subscripts.  Remove evil changequotes here.
6183         * config.in, configure: Regenerated.
6184
6185 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
6186
6187         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
6188         frame accessor methods.
6189         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6190         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
6191         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
6192         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
6193         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
6194         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
6195         * z8k-tdep.c: Ditto.
6196         
6197 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
6198
6199         * configure.in: Remove UI_OUT configuration code.
6200         * ada-lang.c: Update assuming UI_OUT is always true.
6201         * Makefile.in (UIOUT_CFLAGS): Remove.
6202         * configure: Regenerated.
6203         * TODO: Remove blurb about elimination of -DUI_OUT.
6204
6205         * configure.in: Move code that provides the --enable-gdbcli,
6206         --enable-gdbmi options right before the code that handles the
6207         --enable-tui option.  Polish a bit.
6208         * configure: Regenerated.
6209
6210         * configure.in: Rewrite check for GNU regex and the
6211         --without-included regex option, and move it into the "Checks for
6212         library functions" section.  This makes us use the system regex
6213         again by default on systems with version 2 of the GNU C library.
6214         This was apparently broken.
6215         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
6216         * acconfig.h (USE_INCLUDED_REGEX): Remove.
6217         * config.in, configure: Regenerated.
6218
6219         * configure.in: Move code that provides the --enable-tui option
6220         before the "Checks for libraries" section.  Polish the code
6221         somewhat and set need_curses to yes if we build the TUI.  Rewrite
6222         code that looks for a library providing termcap functionality to
6223         match more closely what's done in the Readline library, and move
6224         it into to the "Checks for libraries" section.
6225         * configure: Regenerated.
6226         * Makefile.in (TERMCAP): Remove variable.
6227         * config/i386/go32.mh (TERMCAP): Remove variable.
6228
6229 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
6230
6231         * MAINTAINERS: Mention gdb_mbuild.sh.
6232         * gdb_mbuild.sh: Rewrite.
6233
6234 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
6235
6236         * configure.in: Fix typo in last change.
6237         * config.in, configure: Regenerated.
6238
6239 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
6240
6241         * valarith.c (value_binop): Delete obsolete code and comments.
6242         * configure.host: Ditto.
6243         * buildsym.h (make_blockvector): Ditto.
6244         * buildsym.c (make_blockvector): Ditto.
6245         * defs.h (enum language): Ditto.
6246         (chill_demangle): Ditto.
6247         * elfread.c (elf_symtab_read): Ditto.
6248         * dwarfread.c (CHILL_PRODUCER): Ditto.
6249         (set_cu_language): Ditto.
6250         (handle_producer): Ditto.
6251         * expprint.c (print_subexp): Ditto.
6252         * gdbtypes.c (chill_varying_type): Ditto.
6253         * gdbtypes.h (builtin_type_chill_bool): Ditto.
6254         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
6255         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
6256         (chill_varying_type): Ditto.
6257         * language.h (_LANG_chill): Ditto.
6258         * language.c (binop_result_type, integral_type): Ditto.
6259         (character_type, string_type, structured_type): Ditto.
6260         (lang_bool_type, binop_type_check): Ditto.
6261         * stabsread.h (os9k_stabs): Ditto.
6262         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
6263         (define_symbol, read_type, read_struct_fields): Ditto.
6264         (read_array_type, read_enum_type, read_huge_number): Ditto.
6265         (read_range_type, start_stabs): Ditto.
6266         * symfile.c (init_filename_language_table): Ditto.
6267         (add_psymbol_with_dem_name_to_list): Ditto.
6268         * symtab.c (symbol_init_language_specific): Ditto.
6269         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
6270         * symtab.h (struct general_symbol_info): Ditto.
6271         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6272         * typeprint.c (typedef_print): Ditto.
6273         * utils.c (fprintf_symbol_filtered): Ditto.
6274         * valops.c (value_cast, search_struct_field, value_slice): Delete
6275         obsolete code.
6276         (varying_to_slice): Delete function.
6277         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
6278         (varying_to_slice): Delete declaration.
6279         * MAINTAINERS: Update.
6280
6281 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
6282
6283         * configure.in: Reorganize "Checks for library functions section"
6284         a bit.  Remove check for `btowc' and `isascii' functions.
6285         * configure: Regenerated.
6286
6287         * acconfig.h (_MSE_INT_H): Remove.
6288         * configure.in: Create "Checks for header files" section, and move
6289         appropriate tests there.  Don't check for objlist.h, wchar.h,
6290         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
6291         misdetection fix.  Also add "Checks for types", "Checks for
6292         compiler characteristics" and "Checks for library functions"
6293         sections.
6294         * config.in, configure: Regenerated.
6295
6296         * configure.in: Create "Checks for programs" section, and move
6297         appropriate tests there.
6298
6299 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
6300
6301         * configure.in: Create "Checks for libraries" section, and move
6302         appropriate tests there.  Cleanup check for wctype in libw.  Use
6303         AC_SEARCH_LIBS to see whether we need libsocket.
6304         * configure: Regenerated.
6305
6306 For older changes see ChangeLog-2002
6307 \f
6308 Local Variables:
6309 mode: change-log
6310 left-margin: 8
6311 fill-column: 74
6312 version-control: never
6313 End: