* mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
[external/binutils.git] / gdb / ChangeLog
1 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
2
3         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
4         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
5
6 2003-04-01  Adam Fedor  <fedor@gnu.org>
7
8         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9         * language.h (struct language_defn): Add la_demangle.
10         (language_demangle): Declare.
11         * language.c (language_demangle): New function.
12         (unk_lang_demangle): Likewise.
13         (unknown_language_defn, auto_language_defn, local_language_defn):
14         Add ukn_lang_demangle.
15         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
16         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
17         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
18         (cplus_language_defn): Add cplus_demangle for la_demangle element.
19         * jv-lang.c (java_demangle): New function
20         (java_language_defn): Use it for la_demangle element.
21         * objc-lang.c (objc_demangle): Add options argument
22         (objc_language_defn): Use objc_demangle for la_demangle element.
23         * maint.c (maintenance_demangle): Replace switch with
24         call to language_demangle.
25         * utils.c (fprintf_symbol_filtered): Likewise.
26
27 2003-04-01  Andrew Cagney  <cagney@redhat.com>
28
29         * printcmd.c (print_frame_nameless_args): Delete #ifdef
30         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
31         PRINT_TYPELESS_INTEGER.
32         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
33         PUSH_RETURN_ADDRESS.
34
35 2003-04-01  Andrew Cagney  <cagney@redhat.com>
36
37         * Makefile.in (d10v-tdep.o): Update dependencies.
38         * d10v-tdep.c: Include "frame-base.h".
39         (d10v_frame_unwind): Make constant.
40         (d10v_frame_base_address): New function.
41         (d10v_frame_base): New variable.
42         (d10v_gdbarch_init): Set frame_base default.
43         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
44         comment for base.
45         (d10v_frame_unwind_cache): Set and use "prev_sp".
46         (d10v_frame_this_id): Use the previous frame's inner most stack
47         address and this frame's func address for the frame ID.  Use
48         frame_id_build.  Don't analyze beyond the current instruction.
49         
50 2003-04-01  Andrew Cagney  <cagney@redhat.com>
51
52         * frame.h (get_frame_locals_address, get_frame_args_address):
53         Refer to the base address, instead of the address of the first
54         local or parameter.
55         
56 2003-04-01  Andrew Cagney  <cagney@redhat.com>
57
58         Add frame debug info addresses:
59         * frame-base.c: New file.
60         * frame-base.h: New file.
61         * frame.h (struct frame_base): Add opaque declaration.
62         (get_frame_base): Update comment.
63         (get_frame_base_address): Declare.
64         (get_frame_locals_address): Declare.
65         (get_frame_args_address): Declare.
66         (struct frame_info): Add "base" and "base_cache".  Update
67         comments on the unwinder.
68         * frame.c: Include "frame-base.h".
69         (get_frame_locals_address): New function.
70         (get_frame_base_address): New function.
71         (get_frame_args_address): New function.
72         * findvar.c (read_var_value): Use get_frame_locals_address and
73         get_frame_args_address.
74         * stack.c (frame_info): Use get_frame_locals_address and
75         get_frame_args_address.
76         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
77         moved to "frame-base.c".
78         * printcmd.c (print_frame_nameless_args): Ditto.
79         * symtab.h (address_class): Update comments.
80         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
81         get_frame_base_address.
82         * dwarf2expr.c (execute_stack_op): Ditto.
83         * Makefile.in (frame_base_h): Define.
84         (frame.o): Update dependencies.
85         (frame-base.o): Add dependencies.
86         (SFILES): Add frame-base.c.
87         (COMMON_OBS): Add frame-base.o.
88
89 2003-04-01  Andrew Cagney  <cagney@redhat.com>
90
91         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
92         CALL_DUMMY_LENGTH): Ditto.
93         * gdbarch.c: Re-generate.
94         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
95         (CALL_DUMMY_LENGTH): Delete macro.
96         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
97         * arm-tdep.c (arm_gdbarch_init): Ditto.
98         * avr-tdep.c (avr_gdbarch_init): Ditto.
99         * cris-tdep.c (cris_gdbarch_init): Ditto.
100         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
101         * frv-tdep.c (frv_gdbarch_init): Ditto.
102         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
103         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
104         * i386-tdep.c (i386_gdbarch_init): Ditto.
105         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
106         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
107         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
108         * mips-tdep.c (mips_gdbarch_init): Ditto.
109         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
110         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
111         * s390-tdep.c (s390_gdbarch_init): Ditto.
112         * sh-tdep.c (sh_gdbarch_init): Ditto.
113         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
114         * v850-tdep.c (v850_gdbarch_init): Ditto.
115         * vax-tdep.c (vax_gdbarch_init): Ditto.
116         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
117
118 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
119
120         * frame.c (get_prev_frame): Disable call to inside_entry_file().
121
122 2003-04-01  Andrew Cagney  <cagney@redhat.com>
123
124         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
125         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
126         * gdbarch.h, gdbarch.c: Re-generate.
127         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
128         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
129         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
130         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
131         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
132         * infcmd.c (run_stack_dummy): Simplify assuming
133         CALL_DUMMY_BREAKPOINT_OFFSET_P.
134         * infrun.c (handle_inferior_event): Ditto.
135         * alpha-tdep.c (alpha_gdbarch_init): Do not set
136         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
137         * arm-tdep.c (arm_gdbarch_init): Ditto.
138         * avr-tdep.c (avr_gdbarch_init): Ditto.
139         * cris-tdep.c (cris_gdbarch_init): Ditto.
140         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
141         * frv-tdep.c (frv_gdbarch_init): Ditto.
142         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
143         * i386-tdep.c (i386_gdbarch_init): Ditto.
144         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
145         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
146         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
147         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
148         * mips-tdep.c (mips_gdbarch_init): Ditto.
149         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
150         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
151         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
152         * s390-tdep.c (s390_gdbarch_init): Ditto.
153         * sh-tdep.c (sh_gdbarch_init): Ditto.
154         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
155         * v850-tdep.c (v850_gdbarch_init): Ditto.
156         * vax-tdep.c (vax_gdbarch_init): Ditto.
157         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
158
159 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
160
161         * symfile.c (symfile_relocate_debug_section): Update call to
162         bfd_simple_get_relocated_section_contents.
163
164 2003-03-31  Andrew Cagney  <cagney@redhat.com>
165
166         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
167         * gdbarch.h, gdbarch.c: Regenerate.
168         * inferior.h (FIX_CALL_DUMMY): Delete macro.
169         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
170         available.
171         * frame.h (generic_fix_call_dummy): Delete declaration.
172         * dummy-frame.h: Update comment.
173         * dummy-frame.c (generic_fix_call_dummy): Delete function.
174         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
175         fix_call_dummy.
176         * sh-tdep.c (sh_gdbarch_init): Ditto.
177         * s390-tdep.c (s390_gdbarch_init): Ditto.
178         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
179         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
180         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
181         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
182         * i386-tdep.c (i386_gdbarch_init): Ditto.
183         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
184         * frv-tdep.c (frv_gdbarch_init): Ditto.
185         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
186         * cris-tdep.c (cris_gdbarch_init): Ditto.
187         * avr-tdep.c (avr_gdbarch_init): Ditto.
188         * arm-tdep.c (arm_gdbarch_init): Ditto.
189
190 2003-03-31  J. Brobecker  <brobecker@gnat.com>
191
192         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
193         (INIT_FRAME_AP): Likewise.
194         (EXTRA_FRAME_INFO): Likewise.
195
196 2003-03-31  Andrew Cagney  <cagney@redhat.com>
197
198         * gdbarch.sh: Include "symfile.h".
199         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
200         * gdbarch.h, gdbarch.c: Re-generate.
201         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
202         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
203         call_dummy_address, the default is at entry_point_address.
204         * v850-tdep.c (v850_gdbarch_init): Ditto.
205         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
206         * sh-tdep.c (sh_gdbarch_init): Ditto.
207         * s390-tdep.c (s390_gdbarch_init): Ditto.
208         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
209         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
210         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
211         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
212         * i386-tdep.c (i386_gdbarch_init): Ditto.
213         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
214         * frv-tdep.c (frv_gdbarch_init): Ditto.
215         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
216         * cris-tdep.c (cris_gdbarch_init): Ditto.
217         * arm-tdep.c (arm_gdbarch_init): Ditto.
218
219 2003-03-31  Andrew Cagney  <cagney@redhat.com>
220
221         * gdbarch.sh (CALL_DUMMY_P): Delete.
222         * gdbarch.h, gdbarch.c: Re-generate.
223         * inferior.h (CALL_DUMMY_P): Delete macro.
224         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
225         * vax-tdep.c (vax_gdbarch_init): Update.
226         * v850-tdep.c (v850_gdbarch_init): Update.
227         * sparc-tdep.c (sparc_gdbarch_init): Update.
228         * sh-tdep.c (sh_gdbarch_init): Update.
229         * s390-tdep.c (s390_gdbarch_init): Update.
230         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
231         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
232         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
233         * mips-tdep.c (mips_gdbarch_init): Update.
234         * mcore-tdep.c (mcore_gdbarch_init): Update.
235         * m68k-tdep.c (m68k_gdbarch_init): Update.
236         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
237         * ia64-tdep.c (ia64_gdbarch_init): Update.
238         * i386-tdep.c (i386_gdbarch_init): Update.
239         * h8300-tdep.c (h8300_gdbarch_init): Update.
240         * frv-tdep.c (frv_gdbarch_init): Update.
241         * d10v-tdep.c (d10v_gdbarch_init): Update.
242         * cris-tdep.c (cris_gdbarch_init): Update.
243         * breakpoint.c (deprecated_frame_in_dummy): Update.
244         * avr-tdep.c (avr_gdbarch_init): Update.
245         * alpha-tdep.c (alpha_gdbarch_init): Update.
246         * arm-tdep.c (arm_gdbarch_init): Update.
247         * dummy-frame.c (dummy_frame_this_id): Update comments.
248         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
249         * frame.c (legacy_get_prev_frame): Ditto.
250         * valops.c (call_function_by_hand): Delete function.
251         (hand_function_call): Rename to call_function_by_hand
252
253 2003-03-30  Andrew Cagney  <cagney@redhat.com>
254
255         2002-11-10 Klee Dienes <kdienes@apple.com>
256         * value.h (struct value): Update comment.
257
258 2003-03-30  Andrew Cagney  <cagney@redhat.com>
259
260         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
261         D10V_FP_REGNUM.
262         (d10v_gdbarch_init): Do not set fp_regnum.
263
264         * frame.c (get_frame_base): Force ID initialization.
265         (get_prev_frame): Move computation of the frame ID from here ...
266         (get_frame_id): ... to here.
267         (legacy_get_prev_frame): Mark the frame ID as valid.
268         * frame.h (struct frame_info): Add field "id_p".
269
270 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
271
272         * i386-tdep.c (i386_store_struct_return): Removed.
273         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
274
275 2003-03-30  Andrew Cagney  <cagney@redhat.com>
276
277         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
278         * gdbarch.h, gdbarch.c: Regenerate.
279         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
280         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
281         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
282         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
283         * i386-tdep.c (i386_gdbarch_init): Ditto.
284         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
285         * cris-tdep.c (cris_gdbarch_init): Ditto.
286         * vax-tdep.c (vax_gdbarch_init): Ditto.
287         * s390-tdep.c (s390_gdbarch_init): Ditto.
288         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
289         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
290         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
291         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
292         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
293         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
294         * sparc-tdep.c (sparc_gdbarch_init): Update.
295         * sh-tdep.c (sh_gdbarch_init): Update.
296         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
297         * mips-tdep.c (mips_gdbarch_init): Update.
298         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
299         * ia64-tdep.c (ia64_gdbarch_init): Update.
300         * frv-tdep.c (frv_gdbarch_init): Update.
301         * avr-tdep.c (avr_gdbarch_init): Update.
302         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
303         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
304         instead of when push_dummy_call is not available.
305         
306 2003-03-30  Andrew Cagney  <cagney@redhat.com>
307
308         * infttrace.c: Include "gdbthread.h".
309         (parent_attach_all): Fix function signature.
310         (call_ptrace): Update call.
311         * Makefile.in (infttrace.o): Update dependencies.
312
313 2003-03-30  Andrew Cagney  <cagney@redhat.com>
314
315         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
316         PUSH_RETURN_ADDRESS.
317         * gdbarch.h, gdbarch.c: Regenerate.
318         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
319         * x86-64-tdep.c (x86_64_init_abi): Update.
320         * v850-tdep.c (v850_gdbarch_init): Update.
321         * sparc-tdep.c (sparc_gdbarch_init): Update.
322         * sh-tdep.c (sh_gdbarch_init): Update.
323         * s390-tdep.c (s390_gdbarch_init): Update.
324         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
325         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
326         * mips-tdep.c (mips_gdbarch_init): Update.
327         * mcore-tdep.c (mcore_gdbarch_init): Update.
328         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
329         * ia64-tdep.c (ia64_gdbarch_init): Update.
330         * i386-tdep.c (i386_gdbarch_init): Update.
331         * h8300-tdep.c (h8300_gdbarch_init): Update.
332         * frv-tdep.c (frv_gdbarch_init): Update.
333         * cris-tdep.c (cris_gdbarch_init): Update.
334         * avr-tdep.c (avr_gdbarch_init): Update.
335         * arm-tdep.c (arm_gdbarch_init): Update.
336         * valops.c (hand_function_call): Update.
337
338 2003-03-29  Andrew Cagney  <cagney@redhat.com>
339
340         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
341         sizeof_call_dummy_words.
342         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
343         define.
344         * gdbarch.h: Regenerate.
345         
346 2003-03-29  Andrew Cagney  <cagney@redhat.com>
347
348         * infttrace.h: New file.
349         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
350         (hpread_get_textlow): Detect an uninitialized dn_bufp.
351         (hpread_read_doc_function_type): Detect an initialized type1.
352         (hpread_quick_traverse): Initialize mod_name_string.
353         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
354         (som_solib_get_solib_by_pc): Declare.
355         (so_lib_thread_start_addr): Declare.
356         (no_shared_libraries): Declare.
357         * somread.c (init_import_symbols): Make static.  Add forward
358         declaration.
359         * config/pa/nm-hppah.h: Include "infttrace.h" for
360         parent_attach_all.
361         (hppa_insert_hw_watchpoint): Declare.
362         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
363         * hppah-nat.c: Include "gdb_string.h".
364         (parent_attach_all): Delete extern declaration, moved to
365         "infttrace.h".
366         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
367         int.
368         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
369         * Makefile.in (infttrace_h): Define.
370         (hpread.o): Update dependencies.
371         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
372         * hppa-hpux-tdep.c: Include "gdb_string.h".
373         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
374         * infrun.c (handle_inferior_event): Always initialize
375         stepped_after_stopped_by_watchpoint.  Add default and remove
376         fallthrough in switch statement.
377         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
378         parameter to int.
379         (hppa_remove_hw_watchpoint): Ditto.
380
381 2003-03-29  Andrew Cagney  <cagney@redhat.com>
382
383         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
384         offset.
385
386 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
387
388         * arm-tdep.c (arm_push_arguments): Delete.
389         (struct stack_item): New type.
390         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
391         (arm_store_struct_return): Delte.
392         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
393         arm_push_arguments or arm_store_struct_return.
394
395 2003-03-28  Andrew Cagney  <cagney@redhat.com>
396
397         * Makefile.in (d10v-tdep.o): Update dependencies.
398         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
399         * d10v-tdep.c: Include "remote.h".
400         (target_resume_hook): Delete extern declaration.
401         (target_wait_loop_hook): Ditto.
402         (tdisassemble_command): Eliminate assignment in "if" conditional.
403         (d10v_ts2_register_sim_regno): Eliminate call to
404         legacy_register_sim_regno.
405         (d10v_ts3_register_sim_regno): Ditto.
406
407 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
408
409         * thread.c: Reindented.
410         * lin-lwp.c: Ditto.
411         * linux-proc.c: Ditto.
412
413 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
414
415         * MAINTAINERS (write after approval): Add myself.
416
417 2003-03-27  Theodore A. Roth  <troth@openavr.org>
418
419         * objc-exp.y: Add missing semi-colons.
420
421 2003-03-27  Andrew Cagney  <cagney@redhat.com>
422
423         * regcache.c (write_sp): Delete function and references.
424         * inferior.h (write_sp): Delete declaration.
425         * valops.c (hand_function_call): Replace write_sp with
426         TARGET_WRITE_SP.
427         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
428         (sparc_pop_frame): Ditto.
429         
430 2003-03-27  Andrew Cagney  <cagney@redhat.com>
431
432         * NEWS: Mention removal of support for hppa*-*-bsd* and
433         hppa*-*-osf* natives, and hppa*-*-pro* target.
434         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
435         * config/pa/xm-pa.h: Obsolete file.
436         * config/pa/xm-hppab.h: Obsolete file.
437         * config/pa/nm-hppab.h: Obsolete file.
438         * config/pa/tm-hppab.h: Obsolete file.
439         * config/pa/tm-hppao.h: Obsolete file.
440         * config/pa/nm-hppao.h: Obsolete file.
441         * config/pa/tm-pro.h: Obsolete file.
442         * config/pa/hppaosf.mt: Obsolete file.
443         * config/pa/hppaosf.mh: Obsolete file.
444         * config/pa/hppapro.mt: Obsolete file.
445         * config/pa/hppabsd.mt: Obsolete file.
446         * config/pa/hppabsd.mh: Obsolete file.
447         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
448         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
449         hppa*-*-osf*.
450
451 2003-03-27  Andrew Cagney  <cagney@redhat.com>
452
453         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
454         push_arguments.  Don't set push_return_address or write_sp.
455         (d10v_push_dummy_call): Replace d10v_push_arguments.
456         (d10v_push_return_address, d10v_write_sp): Delete function,
457         handled by push_dummy_call.
458
459 2003-03-26  Andrew Cagney  <cagney@redhat.com>
460
461         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
462         (push_dummy_call): New pure multi-arch replacement with gdbarch,
463         regcache and dummy_addr parameters.
464         * gdbarch.h, gdbarch.c: Re-generate.
465         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
466         available; assume it will handle stack alignment and return
467         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
468         legacy_push_arguments.
469         (legacy_push_arguments): Rename default_push_arguments.
470         * value.h (legacy_push_arguments): Rename default_push_arguments.
471         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
472         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
473         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
474         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
475         * config/i386/tm-symmetry.h: Update.
476         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
477         * x86-64-tdep.c (x86_64_init_abi): Update.
478         * v850-tdep.c (v850_gdbarch_init): Update.
479         * sparc-tdep.c (sparc_gdbarch_init): Update.
480         * sh-tdep.c (sh_gdbarch_init): Update.
481         * s390-tdep.c (s390_gdbarch_init): Update.
482         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
483         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
484         * mips-tdep.c (mips_gdbarch_init): Update.
485         * mcore-tdep.c (mcore_gdbarch_init): Update.
486         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
487         * ia64-tdep.c (ia64_gdbarch_init): Update.
488         * i386-tdep.c (i386_gdbarch_init): Update.
489         * hppa-tdep.c (hppa_gdbarch_init): Update.
490         * h8300-tdep.c (h8300_gdbarch_init): Update.
491         * frv-tdep.c (frv_gdbarch_init): Update.
492         * d10v-tdep.c (d10v_gdbarch_init): Update.
493         * cris-tdep.c (cris_gdbarch_init): Update.
494         * avr-tdep.c (avr_gdbarch_init): Update.
495         * arm-tdep.c (arm_gdbarch_init): Update.
496         * arm-linux-tdep.c (arm_linux_init_abi): Update.
497         * alpha-tdep.c (alpha_gdbarch_init): Update.
498
499 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
500
501         * signals/signals.c (do_target_signal_to_host): Correct realtime
502         signal range test.
503
504 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
505
506         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
507         (struct sal_chain, map_catch_names): Remove.
508         (catch_exception_command_1): Don't call
509         handle_gnu_4_16_catch_command.
510
511 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
512
513         From Mark Dettinger <dettinge@de.ibm.com>:
514         * dwarf2cfi.c (read_2u): Increment pointer by two.
515
516 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
517
518         * signals/signals.c: Fix typos in last change.
519
520 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
521
522         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
523         not already defined.  Use __SIGRTMIN if available.
524         (target_signal_from_host): Remove SIGRTMIN block.
525         (do_target_signal_to_host): Remove SIGRTMIN block; check that
526         the signal is within the realtime range.
527
528 2003-03-25  Adam Fedor  <fedor@gnu.org>
529
530         * Makefile.in (infrun.o): Add $(language_h)
531         * infrun.c (handle_inferior_event): Use skip_language_trampoline
532         for language specific trampolines.
533         * language.h (struct language_defn): Add skip_trampoline.
534         (skip_language_trampoline): Declare.
535         * language.c (unk_lang_trampoline, skip_language_trampoline):
536         New functions.
537         (unknown_language_defn, auto_language_defn, local_language_defn):
538         Add ukn_lang_trampoline.
539         * ada-lang.c (ada_language_defn): Add NULL for language
540         specific skip_trampoline.
541         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
542         scm-lang.c: Likewise.
543         * objc-lang.c (objc_skip_trampoline): New function.
544         (objc_language_defn): Add objc_skip_trampoline.
545
546 2003-03-25  Andrew Cagney  <cagney@redhat.com>
547
548         * frame.c (get_prev_frame): Delay validating a frame's ID -
549         non-NULL, didn't go backwards - until an attempt to unwind it to
550         the previous frame.
551
552 2003-03-25  Andrew Cagney  <cagney@redhat.com>
553
554         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
555         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
556         * gdbarch.h, gdbarch.c: Re-generate.
557         * config/sparc/tm-sparc.h
558         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
559         * sparc-tdep.c (sparc_gdbarch_init): Set
560         deprecated_extra_stack_alignment_needed.
561         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
562         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
563         extra_stack_alignment_needed.
564         * v850-tdep.c (v850_gdbarch_init): Ditto.
565         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
566         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
567         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
568         * cris-tdep.c (cris_gdbarch_init): Ditto.
569         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
570         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
571         
572 2003-03-25  Andrew Cagney  <cagney@redhat.com>
573
574         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
575         STORE_STRUCT_RETURN.
576         * gdbarch.h, gdbarch.c: Regenerate.
577         * d10v-tdep.c (d10v_store_struct_return): Delete function.
578         (d10v_push_arguments): Set the struct return register.
579         (d10v_gdbarch_init): Update.
580         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
581         * x86-64-tdep.c (x86_64_init_abi): Update.
582         * vax-tdep.c (vax_gdbarch_init): Update.
583         * v850-tdep.c (v850_gdbarch_init): Update.
584         * sparc-tdep.c (sparc_gdbarch_init): Update.
585         * sh-tdep.c (sh_gdbarch_init): Update.
586         * s390-tdep.c (s390_gdbarch_init): Update.
587         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
588         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
589         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
590         * mips-tdep.c (mips_gdbarch_init): Update.
591         * mcore-tdep.c (mcore_gdbarch_init): Update.
592         * m68k-tdep.c (m68k_gdbarch_init): Update.
593         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
594         * ia64-tdep.c (ia64_gdbarch_init): Update.
595         * i386-tdep.c (i386_gdbarch_init): Update.
596         * hppa-tdep.c (hppa_gdbarch_init): Update.
597         * h8300-tdep.c (h8300_gdbarch_init): Update.
598         * frv-tdep.c (frv_gdbarch_init): Update.
599         * cris-tdep.c (cris_gdbarch_init): Update.
600         * avr-tdep.c (avr_gdbarch_init): Update.
601         * arm-tdep.c (arm_gdbarch_init): Update.
602         * alpha-tdep.c (alpha_gdbarch_init): Update.
603         
604 2003-03-25  Andrew Cagney  <cagney@redhat.com>
605
606         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
607         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
608         CALL_DUMMY_STACK_ADJUST with a predicate variable.
609         * gdbarch.h, gdbarch.c: Regenerate.
610         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
611         call_dummy_stack_adjust_p.
612         * vax-tdep.c (vax_gdbarch_init): Ditto.
613         * v850-tdep.c (v850_gdbarch_init): Ditto.
614         * sh-tdep.c (sh_gdbarch_init): Ditto.
615         * s390-tdep.c (s390_gdbarch_init): Ditto.
616         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
617         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
618         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
619         * mips-tdep.c (mips_gdbarch_init): Ditto.
620         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
621         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
622         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
623         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
624         * i386-tdep.c (i386_gdbarch_init): Ditto.
625         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
626         * frv-tdep.c (frv_gdbarch_init): Ditto.
627         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
628         * cris-tdep.c (cris_gdbarch_init): Ditto.
629         * avr-tdep.c (avr_gdbarch_init): Ditto.
630         * arm-tdep.c (arm_gdbarch_init): Ditto.
631         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
632         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
633         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
634         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
635         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
636         call_dummy_stack_adjust_p.
637         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
638         (CALL_DUMMY_STACK_ADJUST): Delete macro.
639         * sparc-tdep.c (sparc32_push_arguments): Update.
640         * valops.c (hand_function_call): Update.
641
642 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
643
644         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
645         set_gdbarch_char_signed.
646
647 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
648
649         PR cli/548
650         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
651
652 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
653
654         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
655         (_initialize_arm_tdep): Don't set tm_print_insn.
656
657 2003-03-24  Adam Fedor  <fedor@gnu.org>
658
659         * Makefile.in (YYOBJ): Add objc-exp.tab.o
660         * objc-lang.h: Add multiple inclusion protection.
661         (start_msglist, add_msglist, end_msglist): Additional declarations.
662
663 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
664
665         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
666         value was renamed to ARM_FLOAT_SOFT_FPA.
667
668 2003-03-23  Andrew Cagney  <cagney@redhat.com>
669
670         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
671         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
672         * gdbarch.h, gdbarch.c: Regenerate.
673         * valops.c (hand_function_call): Update.
674         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
675         * frame.c (legacy_saved_regs_this_id): Update.
676         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
677         * dummy-frame.h: Update.
678         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
679         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
680         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
681         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
682         * config/m68k/tm-sun3.h: Update.
683         * blockframe.c (inside_main_func, frame_chain_valid): Update.
684         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
685         * x86-64-tdep.c (x86_64_init_abi): Update.
686         * vax-tdep.c (vax_gdbarch_init): Update.
687         * v850-tdep.c (v850_gdbarch_init): Update.
688         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
689         * sh-tdep.c (sh_gdbarch_init): Update.
690         * s390-tdep.c (s390_gdbarch_init): Update.
691         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
692         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
693         (frame_get_saved_regs): Update.
694         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
695         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
696         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
697         * mips-tdep.c (mips_gdbarch_init): Update.
698         * mcore-tdep.c (mcore_gdbarch_init): Update.
699         * m68k-tdep.c (m68k_gdbarch_init): Update.
700         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
701         * ia64-tdep.c (ia64_gdbarch_init): Update.
702         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
703         * i386-interix-tdep.c (i386_interix_init_abi): Update.
704         (i386_interix_back_one_frame): Update.
705         * hppa-tdep.c (hppa_gdbarch_init): Update.
706         (hppa_init_extra_frame_info): Update.
707         * h8300-tdep.c (h8300_gdbarch_init): Update.
708         * frv-tdep.c (frv_gdbarch_init): Update.
709         * cris-tdep.c (cris_gdbarch_init): Update.
710         * avr-tdep.c (avr_gdbarch_init): Update.
711         * arm-tdep.c (arm_gdbarch_init): Update.
712         * alpha-tdep.c (alpha_gdbarch_init): Update.
713
714 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
715
716         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
717         (arm_get_fp_model): Declare.
718         * arm-tdep.c (fp_model_strings): New string array.
719         (arm_fp_model, current_fp_model): New variables.
720         (arm_get_fp_model): New function.
721         (arm_set_fp): New function.
722         (set_fp_model_sfunc): New function.
723         (show_fp_model): New function.
724         (_initialize_arm_tdep): Add new command to set/show the FPU.
725         (arm_extract_return_value): Use arm_get_fp_model.
726         (arm_store_return_value): Likewise.
727         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
728         to initialize the floating-point data types.
729         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
730         model is FPA.
731
732 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
733
734         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
735         the current setting of each value.
736         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
737         new_set and new_show.  Use add_setshow_cmd_full and 
738         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
739         commands and add new version as subcommands of "set/show arm".
740
741 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
742
743         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
744         (set_arm_command, show_arm_command): New functions.
745         (_initialize_arm_tdep): Add them.
746         (num_disassembly_options): Renamed from num_flavor_options.
747         (valid_disassembly_styles): Renamed from valid_flavors.
748         (disassembly_style): Renamed from disassembly_flavor.
749         (set_disassembly_style_sfunc): Renamed from 
750         set_disassembly_flavor_sfunc.
751         (set_disassembly_style): Renamed from set_disassembly_flavor.
752         (arm_othernames): Updated.
753         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
754         command.  Add "set/show arm disassembly" commands.  Deprecate
755         "othernames" command.
756
757 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
758
759         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
760         (arm-tdep.o): Depend on elf_arm_h.
761
762 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
763
764         * Makefile.in (coff_internal_h): Define.
765         (arm-tdep.o): Update dependencies.
766
767 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
768
769         * arm-tdep.c (prologue_cache): Delete.
770         (check_prologue_cache, save_prologue_cache): Delete.
771         (arm_scan_prologue): Don't check or update the prologue_cache.
772         (arm_gdb_arch_init): Don't initialize it.
773         (_initialize_arm_tdep): Likewise.
774
775 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
776
777         * MAINTAINERS (tui): Maintainer of tui code.
778
779 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
780
781         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
782         (i386-cygwin-tdep.o): Add dependencies.
783         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
784         * i386-cygwin-tdep.c: New file.
785         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
786         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
787
788 2003-03-20  Andrew Cagney  <cagney@redhat.com>
789
790         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
791         (handle_inferior_event): Remove code calling
792         DYNAMIC_TRAMPOLINE_NEXTPC.
793
794         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
795         already has a full path.
796
797         * main.c (gdb_main): Return 1.
798         (captured_main): Call error to report an invalid interpreter.
799
800         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
801         * alpha-osf1-tdep.c: Include "gdb_string.h".
802
803 2003-03-19  J. Brobecker  <brobecker@gnat.com>
804
805         Continuing work to convert the hppa targets to multiarch partial.
806
807         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
808         method, now that hppa_push_dummy_frame has a conformant prototype.
809         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
810         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
811         for the switch to multiarch partial.
812
813 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
814
815         * mdebugread.c (parse_symbol): For stEnd, we're done counting
816         when iss is issNull.
817
818 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
819
820         * mips-tdep.c (mips_register_name): Fix fencepost error involving
821         NUM_REGS bounds check.
822
823 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
824
825         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
826         * mips-tdep.c (gdb_assert.h): Include.
827         (mips_generic_reg_names, mips_processor_reg_names): Make static.
828         (mips_register_name): Handle integer registers explicitly.  Add
829         bounds checking.
830         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
831         (mips_lsi33k_reg_names): Don't list integer registers; they're
832         handled by mips_register_name() now.
833         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
834         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
835         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
836         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
837         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
838
839 2003-03-18  Andrew Cagney  <cagney@redhat.com>
840
841         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
842         a void pointer.
843         * gdbtypes.h (print_scalar_formatted): Update declaration.
844         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
845
846 2003-03-18  J. Brobecker  <brobecker@gnat.com>
847
848         * infrun.c (observer.h): Add #include.
849         (normal_stop): Add call to observer_notify_normal_stop.
850         * Makefile.in (infrun.o): Add dependency on observer.h.
851
852 2003-03-18  J. Brobecker  <brobecker@gnat.com>
853
854         Continuing work to convert the hppa targets to multiarch partial.
855         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
856         parameter. Reformat comment.
857         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
858         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
859         to match new profile.
860
861 2003-03-18  J. Brobecker  <brobecker@gnat.com>
862
863         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
864         appear to be working in any case.
865
866 2003-03-18  J. Brobecker  <brobecker@gnat.com>
867
868         * observer.c (observer_test_first_observer): New static variable.
869         (observer_test_second_observer): Likewise.
870         (observer_test_third_observer): Likewise.
871         (observer_test_first_notification_function): New static function.
872         (observer_test_second_notification_function): Likewise.
873         (observer_test_third_notification_function): Likewise.
874
875 2003-03-17  J. Brobecker  <brobecker@gnat.com>
876
877         * hppa-tdep.c (gdb_assert.h): Add missing #include.
878         * somsolib.c (gdb_assert.h): Likewise.
879         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
880         (somsolib.o): Likewise.
881
882 2003-03-17  Andrew Cagney  <cagney@redhat.com>
883
884         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
885         BFD.  Simplify setting of di.endian.
886
887 2003-03-17  Andrew Cagney  <cagney@redhat.com>
888
889         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
890         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
891
892         From Elena Zannoni  <ezannoni@redhat.com>
893         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
894         vector and floating-point parameters.
895         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
896         convention.
897         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
898
899 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
900
901         * MAINTAINERS: Remove my name from several maintainership roles.
902
903 2003-03-17  Andrew Cagney  <cagney@redhat.com>
904
905         Fix frame off-by-one bug.
906         * frame-unwind.h (frame_this_id_ftype): Replace
907         frame_unwind_id_ftype.
908         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
909         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
910         with "prev_register".
911         * frame-unwind.c (frame_unwind_find_by_pc): Return
912         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
913         comment.
914         * dummy-frame.c (cached_find_dummy_frame): Delete function.
915         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
916         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
917         (dummy_frame_unwind): Update.
918         * sentinel-frame.c (sentinel_frame_prev_register): Replace
919         sentinel_frame_register_unwind.
920         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
921         (sentinel_frame_unwinder): Update.
922         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
923         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
924         * frame.c (create_sentinel_frame): Update. Initialize
925         "prologue_cache" instead of "unwind_cache".
926         (frame_register_unwind): Call this frame's prev_register with the
927         next frame and this frame's prologue cache.
928         (get_prev_frame): Simplify.  Always call prev frame's this_id with
929         this frame and prev frame's prologue cache.  Document that this
930         call is shifted one to the left when compared to the
931         frame_register_unwind call.
932         (legacy_saved_regs_prev_register): Replace
933         frame_saved_regs_register_unwind.
934         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
935         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
936         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
937         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
938         (d10v_frame_unwind): Update.
939         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
940         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
941         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
942         "saved_regs" with "this_saved_regs".
943
944 2003-03-16  Andrew Cagney  <cagney@redhat.com>
945
946         * frame.c (frame_pop): Don't call target_store_registers.  Fix
947         problem reported by Mark Kettenis.
948
949 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
950
951         * i386-tdep.c (i386_register_type): Renamed from
952         i386_register_virtual_type.  Adjust function signature.
953         (i386_gdbarch_init): Set register_type instead of
954         deprecated_max_register_raw_size,
955         deprecated_max_register_virtual_size and register_virtual_type.
956
957 2003-03-14  Andrew Cagney  <cagney@redhat.com>
958
959         * frame.c (get_prev_frame): When a legacy frame, always call
960         legacy_get_prev_frame.  Simplify unwind code using assumption that
961         the unwinder is new.
962         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
963         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
964         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
965
966 2003-03-14  Andrew Cagney  <cagney@redhat.com>
967
968         * frame.c (get_saved_register): Delete function.
969         * frame.h (get_saved_register): Delete declaration.
970         * xstormy16-tdep.c: Update comment.
971         * regcache.h: Update comments.
972         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
973         get_saved_register and extract_address, use
974         frame_read_unsigned_register.
975         (sparc_frame_saved_pc): Ditto.
976         (sparc_get_saved_register): Instead of get_saved_register, use
977         frame_register.
978         (sparc_pop_frame): Ditto.
979         * findvar.c: Update comments.
980         (value_of_register): Call frame_register instead of
981         get_saved_register.
982         (value_from_register): Ditto.
983         * config/sparc/tm-sparc.h: Update comment.
984         * breakpoint.c: Update comment.
985
986 2003-03-14  Andrew Cagney  <cagney@redhat.com>
987
988         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
989         GET_SAVED_REGISTER.
990         * gdbarch.h, gdbarch.c: Re-generate.
991         * frame.h: Update comments.
992         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
993         * x86-64-tdep.c (x86_64_init_abi): Update.
994         * sparc-tdep.c (sparc_gdbarch_init): Update.
995         * sh-tdep.c (sh_gdbarch_init): Update.
996         * mips-tdep.c (mips_gdbarch_init): Update.
997         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
998         * cris-tdep.c (cris_gdbarch_init): Update.
999         * ia64-tdep.c (ia64_gdbarch_init): Update.
1000         * frame.c (frame_register): Update.
1001         (get_saved_register): Update.
1002         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
1003         
1004 2003-03-13  Andrew Cagney  <cagney@redhat.com>
1005
1006         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
1007         * gdbarch.h, gdbarch.c: Regenerate.
1008         * valops.c (hand_function_call): Update comment.
1009         * stack.c (return_command): Update comment.
1010         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
1011         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
1012         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1013         * x86-64-tdep.c (x86_64_init_abi): Update.
1014         * vax-tdep.c (vax_gdbarch_init): Update.
1015         * v850-tdep.c (v850_gdbarch_init): Update.
1016         * sparc-tdep.c (sparc_gdbarch_init): Update.
1017         * sh-tdep.c (sh_gdbarch_init): Update.
1018         * s390-tdep.c (s390_gdbarch_init): Update.
1019         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1020         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1021         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1022         * mips-tdep.c (mips_gdbarch_init): Update.
1023         * mcore-tdep.c (mcore_gdbarch_init): Update.
1024         * m68k-tdep.c (m68k_gdbarch_init): Update.
1025         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1026         * ia64-tdep.c (ia64_gdbarch_init): Update.
1027         * i386-tdep.c (i386_gdbarch_init): Update.
1028         * hppa-tdep.c (hppa_gdbarch_init): Update.
1029         * h8300-tdep.c (h8300_gdbarch_init): Update.
1030         * frv-tdep.c (frv_gdbarch_init): Update.
1031         * cris-tdep.c (cris_gdbarch_init): Update.
1032         * avr-tdep.c (avr_gdbarch_init): Update.
1033         * arm-tdep.c (arm_gdbarch_init): Update.
1034         * alpha-tdep.c (alpha_gdbarch_init): Update.
1035
1036 2003-03-13  Andrew Cagney  <cagney@redhat.com>
1037
1038         * frame.c (legacy_frame_p): New function.
1039         (get_prev_frame): Use legacy_frame_p.
1040         * frame.h (legacy_frame_p): Declare.
1041
1042 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1043
1044         * MAINTAINERS (write after approval): Alphabetically
1045         listing corrected.
1046
1047 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
1048
1049         * MAINTAINERS (write after approval): Add myself.
1050
1051 2003-03-12  Andrew Cagney  <cagney@redhat.com>
1052
1053         * frame.c (get_prev_frame): Rename the frame parameter to
1054         "this_frame".
1055         (get_next_frame, legacy_get_prev_frame): Ditto.
1056
1057 2003-03-12  Andrew Cagney  <cagney@redhat.com>
1058
1059         * frame.c (get_current_frame): Check target_has_registers before
1060         checking target_has_stack.
1061         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
1062         instead of deprecated_selected_frame.
1063         * findvar.c (value_of_register): Pass "frame", not
1064         deprecated_selected_frame, to value_of_builtin_reg.
1065
1066 2003-03-12  Andrew Cagney  <cagney@redhat.com>
1067
1068         * regcache.c (regcache_cooked_write_signed): New function.
1069         (regcache_cooked_write_unsigned): New function.
1070         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
1071         (regcache_cooked_read_signed): Fix regnum in range assertion.
1072         * regcache.h (regcache_cooked_write_signed): Declare.
1073         (regcache_cooked_write_unsigned): Declare.
1074
1075 2003-03-12  Andrew Cagney  <cagney@redhat.com>
1076
1077         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1078         * gdbarch.h, gdbarch.c: Re-generate.
1079         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1080         * x86-64-tdep.h: Update.
1081         * x86-64-tdep.c (x86_64_init_abi): Update.
1082         * v850-tdep.c (v850_gdbarch_init): Update.
1083         * sparc-tdep.c (sparc_gdbarch_init): Update.
1084         * sh-tdep.c (sh_gdbarch_init): Update.
1085         * s390-tdep.c (s390_gdbarch_init): Update.
1086         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1087         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1088         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1089         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1090         * mips-tdep.c (mips_gdbarch_init): Update.
1091         * mcore-tdep.c (mcore_gdbarch_init): Update.
1092         * m68k-tdep.c (m68k_gdbarch_init): Update.
1093         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1094         * ia64-tdep.c (ia64_gdbarch_init): Update.
1095         * i386-tdep.c (i386_gdbarch_init): Update.
1096         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1097         * hppa-tdep.c (hppa_gdbarch_init): Update.
1098         * h8300-tdep.c (h8300_gdbarch_init): Update.
1099         * frv-tdep.c (frv_gdbarch_init): Update.
1100         * cris-tdep.c (cris_gdbarch_init): Update.
1101         * avr-tdep.c (avr_gdbarch_init): Update.
1102         * arm-tdep.c (arm_gdbarch_init): Update.
1103         * alpha-tdep.c (alpha_gdbarch_init): Update.
1104         * sh-tdep.c (sh_init_extra_frame_info): Update.
1105         (sh64_init_extra_frame_info): Update.
1106         * ns32knbsd-nat.c (frame_num_args): Update.
1107         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1108         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1109         (xstormy16_frame_chain_valid): Update.
1110         * vax-tdep.c (vax_saved_pc_after_call): Update.
1111         * v850-tdep.c (v850_frame_chain): Update.
1112         (v850_pop_frame): Update.
1113         (v850_init_extra_frame_info): Update.
1114         * sparc-tdep.c (setup_arbitrary_frame): Update.
1115         * ns32k-tdep.c (umax_frame_num_args): Update.
1116         * s390-tdep.c (s390_pop_frame_regular): Update.
1117         * mn10300-tdep.c (mn10300_frame_chain): Update.
1118         (mn10300_pop_frame_regular): Update.
1119         (mn10300_init_extra_frame_info): Update.
1120         * mips-tdep.c (mips_init_frame_pc_first): Update.
1121         (mips_frame_chain): Update.
1122         (mips_pop_frame): Update.
1123         * mcore-tdep.c (mcore_frame_chain): Update.
1124         (mcore_pop_frame): Update.
1125         (mcore_init_extra_frame_info): Update.
1126         * arch-utils.c (init_frame_pc_default): Update.
1127         * m68k-tdep.c (isi_frame_num_args): Update.
1128         (delta68_frame_num_args): Update.
1129         (news_frame_num_args): Update.
1130         * ia64-tdep.c (ia64_pop_frame_regular): Update.
1131         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1132         (alpha_frame_chain): Update.
1133         (alpha_pop_frame): Update.
1134         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1135         (hppa_init_extra_frame_info): Update.
1136         (hppa_frame_chain): Update.
1137         (hppa_frame_chain_valid): Update.
1138         * cris-tdep.c (cris_init_extra_frame_info): Update.
1139         * avr-tdep.c (avr_init_extra_frame_info): Update.
1140         * arm-tdep.c (arm_frame_chain_valid): Update.
1141         (arm_init_extra_frame_info): Update.
1142         (arm_pop_frame): Update.
1143         * frame.c (frame_pc_unwind): Update.
1144         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1145         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1146         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1147         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1148         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1149         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1150         
1151 2003-03-12  Andrew Cagney  <cagney@redhat.com>
1152
1153         Eliminate the need for POP_FRAME.
1154         * frame.c (do_frame_unwind_register): New function.
1155         (frame_pop): When no POP_FRAME, pop the frame using register
1156         unwind and a scratch regcache.
1157         (frame_saved_regs_pop): Delete function.
1158         (trad_frame_unwinder): Update.
1159         * d10v-tdep.c (d10v_frame_pop): Delete function.
1160         (d10v_frame_unwind): Update.
1161         * sentinel-frame.c (sentinel_frame_pop): Delete function.
1162         (sentinel_frame_unwinder): Update.
1163         * dummy-frame.c (dummy_frame_pop): Delete function.
1164         (dummy_frame_unwind): Update.
1165         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
1166         (struct frame_unwind): Update.
1167
1168 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
1169
1170         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
1171         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
1172         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
1173         Do range checks on register number obtained from debugging info.
1174         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
1175         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
1176         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
1177         mapping function.
1178         (do_fp_register_row): Fix typo which caused double type to be
1179         used when attempting to unpack a float.
1180
1181 2003-03-11  J. Brobecker  <brobecker@gnat.com>
1182
1183         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
1184
1185 2003-03-11  Andrew Cagney  <cagney@redhat.com>
1186
1187         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
1188         frame.  Problem found by Corinna Vinschen.
1189
1190 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
1191
1192         * doublest.c (floatformat_from_length): Accept also
1193         the real size of 'long double' type.
1194
1195 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
1196
1197         From Klee Dienes <kdienes@apple.com>:
1198         * breakpoint.c (bpstat_copy): Copy the command lines as well
1199         as the old value, to match what is freed in bpstat_clear.
1200
1201 2003-03-10  David Carlton  <carlton@math.stanford.edu>
1202
1203         * minsyms.c (add_minsym_to_hash_table): Replace
1204         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1205         (compare_minimal_symbols, compact_minimal_symbols)
1206         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
1207         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
1208         of DEPRECATED_SYMBOL_MATCHES_NAME.
1209         (lookup_minimal_symbol_solib_trampoline): Ditto.
1210
1211 2003-03-10  Andrew Cagney  <cagney@redhat.com>
1212
1213         * regcache.h (regcache_cooked_read_ftype): Define.
1214         (regcache_save, regcache_restore): Add a cooked_read parameter.
1215         * regcache.c (regcache_save, regcache_restore): Update.
1216         (do_cooked_read): New function.
1217         (regcache_cpy): Pass do_cooked_read to regcache_save and
1218         regcache_restore.
1219
1220 2003-03-10  Andrew Cagney  <cagney@redhat.com>
1221
1222         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1223         * gdbarch.h, gdbarch.c: Re-generate.
1224         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1225         * x86-64-tdep.h: Update.
1226         * x86-64-tdep.c (x86_64_init_abi): Update.
1227         * v850-tdep.c (v850_gdbarch_init): Update.
1228         * sparc-tdep.c (sparc_gdbarch_init): Update.
1229         * sh-tdep.c (sh_gdbarch_init): Update.
1230         * s390-tdep.c (s390_gdbarch_init): Update.
1231         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1232         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1233         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1234         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1235         * mips-tdep.c (mips_gdbarch_init): Update.
1236         * mcore-tdep.c (mcore_gdbarch_init): Update.
1237         * m68k-tdep.c (m68k_gdbarch_init): Update.
1238         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1239         * ia64-tdep.c (ia64_gdbarch_init): Update.
1240         * i386-tdep.c (i386_gdbarch_init): Update.
1241         * i386-interix-tdep.c (i386_interix_init_abi): Update.
1242         * hppa-tdep.c (hppa_gdbarch_init): Update.
1243         * h8300-tdep.c (h8300_gdbarch_init): Update.
1244         * frv-tdep.c (frv_gdbarch_init): Update.
1245         * cris-tdep.c (cris_gdbarch_init): Update.
1246         * avr-tdep.c (avr_gdbarch_init): Update.
1247         * arm-tdep.c (arm_gdbarch_init): Update.
1248         * alpha-tdep.c (alpha_gdbarch_init): Update.
1249         * sh-tdep.c (sh_init_extra_frame_info): Update.
1250         (sh64_init_extra_frame_info): Update.
1251         * ns32knbsd-nat.c (frame_num_args): Update.
1252         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1253         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1254         (xstormy16_frame_chain_valid): Update.
1255         * vax-tdep.c (vax_saved_pc_after_call): Update.
1256         * v850-tdep.c (v850_frame_chain): Update.
1257         (v850_pop_frame): Update.
1258         (v850_init_extra_frame_info): Update.
1259         * sparc-tdep.c (setup_arbitrary_frame): Update.
1260         * ns32k-tdep.c (umax_frame_num_args): Update.
1261         * s390-tdep.c (s390_pop_frame_regular): Update.
1262         * mn10300-tdep.c (mn10300_frame_chain): Update.
1263         (mn10300_pop_frame_regular): Update.
1264         (mn10300_init_extra_frame_info): Update.
1265         * mips-tdep.c (mips_init_frame_pc_first): Update.
1266         (mips_frame_chain): Update.
1267         (mips_pop_frame): Update.
1268         * mcore-tdep.c (mcore_frame_chain): Update.
1269         (mcore_pop_frame): Update.
1270         (mcore_init_extra_frame_info): Update.
1271         * arch-utils.c (init_frame_pc_default): Update.
1272         * m68k-tdep.c (isi_frame_num_args): Update.
1273         (delta68_frame_num_args): Update.
1274         (news_frame_num_args): Update.
1275         * ia64-tdep.c (ia64_pop_frame_regular): Update.
1276         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1277         (alpha_frame_chain): Update.
1278         (alpha_pop_frame): Update.
1279         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1280         (hppa_init_extra_frame_info): Update.
1281         (hppa_frame_chain): Update.
1282         (hppa_frame_chain_valid): Update.
1283         * cris-tdep.c (cris_init_extra_frame_info): Update.
1284         * avr-tdep.c (avr_init_extra_frame_info): Update.
1285         * arm-tdep.c (arm_frame_chain_valid): Update.
1286         (arm_init_extra_frame_info): Update.
1287         (arm_pop_frame): Update.
1288         * frame.c (frame_pc_unwind): Update.
1289         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1290         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1291         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1292         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1293         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1294         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1295         
1296 2003-03-10  Andrew Cagney  <cagney@redhat.com>
1297
1298         * gdbarch.sh (gdbarch_unwind_pc): New method.
1299         * gdbarch.h, gdbarch.c: Regenerate.
1300         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
1301         but use read_pc and FRAME_SAVED_PC as fall backs.
1302         (frame_saved_regs_pc_unwind): Delete function.
1303         (trad_frame_unwinder): Update.
1304         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
1305         (struct frame_unwind): Update.
1306         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
1307         (dummy_frame_unwind): Update.
1308         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
1309         (sentinel_frame_unwinder): Update.
1310         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
1311         (d10v_frame_unwind): Update.
1312         (d10v_unwind_pc): New function.
1313         (d10v_gdbarch_init): Set unwind_pc.
1314
1315 2003-03-10  Andrew Cagney  <cagney@redhat.com>
1316
1317         * gdbarch.h: Re-generate.
1318
1319         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
1320         PC.
1321         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
1322         the PC register.
1323
1324 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
1325
1326         * gdbarch.sh (save_dummy_frame_tos): Add comment.
1327
1328 2003-03-08  Andrew Cagney  <cagney@redhat.com>
1329
1330         * cli-out.c: Update copyright.
1331         (cli_out_data): Define typedef.  Use instead of ui_out_data.
1332
1333 2003-03-08  Andrew Cagney  <cagney@redhat.com>
1334
1335         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
1336         the result.
1337
1338 2003-03-07  Andrew Cagney  <cagney@redhat.com>
1339
1340         * gdbarch.sh: Don't generate two macro definitions when an
1341         undefined macro taking no arguments.
1342         * gdbarch.h: Regenerate.
1343         
1344 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
1345
1346         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
1347         (x86_64_unwind_dummy_id): New functions.
1348         (x86_64_init_abi): Register these two new functions.
1349
1350 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
1351
1352         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
1353         (x86_64_skip_prologue): Move prologue detection to 
1354         separate function.
1355         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
1356
1357 2003-03-05  Andrew Cagney  <cagney@redhat.com>
1358
1359         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
1360         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
1361         * frame.c (get_prev_frame): Restructure the frame ID unwind code
1362         to use unwind_dummy_id when a dummy frame.
1363         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
1364         predicate.
1365         * gdbarch.h, gdbarch.c: Regneerate.
1366         
1367 2003-03-05  Andrew Cagney  <cagney@redhat.com>
1368
1369         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
1370         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
1371         Do not use d10v_read_sp or d10v_read_fp when obtaining register
1372         values.
1373
1374 2003-03-05  Andrew Cagney  <cagney@redhat.com>
1375
1376         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
1377         (struct d10v_unwind_cache): Delete field "frameless".  Replace
1378         "next_addr" with "sp_offset".  Add "r11_offset".
1379         (d10v_frame_unwind_cache): Update.
1380         (prologue_find_regs): Update.  When "mv r11, sp", save the
1381         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
1382         RN was saved in r11_offset.
1383
1384 2003-03-05  Andrew Cagney  <cagney@redhat.com>
1385
1386         * frame.c (deprecated_update_frame_pc_hack): Also update the the
1387         cached PC value in the next frame.
1388
1389 2003-03-05  Andrew Cagney  <cagney@redhat.com>
1390
1391         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
1392         "id_unwind_cache" with "id".
1393         (frame_id_unwind): Delete declaration.
1394         * frame.c (frame_id_unwind): Delete function.
1395         (get_prev_frame): Call the frame id unwind method directly.  Store
1396         the returned next frame's ID value in NEXT_FRAME.  Note that there
1397         is a problem with the wrong unwind ID being called with the wrong
1398         unwind cache.
1399
1400 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
1401
1402         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
1403
1404 2003-03-05  James Ingham <jingham@apple.com>
1405             Daniel Jacobowitz  <drow@mvista.com>
1406
1407         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
1408         (auto_cp_abi): New variable.
1409         (current_cp_abi, num_cp_abis): Make static.
1410         (CP_ABI_MAX): Define.
1411         (cp_abis): Turn into an array.
1412         (value_virtual_fn_field): Fix formatting.
1413         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
1414         takes a pointer.
1415         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
1416         (list_cp_abis, _initialize_cp_abi): New functions.
1417         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
1418         declarations for cp_abis, num_cp_abis, current_cp_abi, and
1419         switch_to_cp_abi.  Update prototype for register_cp_abi.
1420         * Makefile.in (cp-abi.o): Update dependencies.
1421         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
1422         instead of switch_to_cp_abi.
1423         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
1424         register_cp_abi.
1425         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
1426         register_cp_abi.
1427         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
1428
1429 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
1430
1431         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
1432         * dwarf2loc.c: Include "regcache.h".
1433         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
1434         register_size.
1435         * Makefile.in (dwarf2loc.o): Update dependencies.
1436
1437 2003-03-04  Theodore A. Roth  <troth@openavr.org>
1438
1439         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
1440         number of io registers reported by remote target is not a multiple of
1441         step.
1442
1443 2003-03-04  David Carlton  <carlton@math.stanford.edu>
1444
1445         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
1446         (lookup_symbol_aux_psymtabs): Update call to
1447         lookup_partial_symbol.
1448         (lookup_transparent_type, find_main_psymtab)
1449         (make_symbol_overload_list): Ditto.
1450
1451 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
1452
1453         * MAINTAINERS (Write after approval): Update my email address.
1454
1455 2003-03-03  Andrew Cagney  <cagney@redhat.com>
1456
1457         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
1458         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
1459         predicate.  Replace MAX_REGISTER_RAW_SIZE.
1460         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
1461         MAX_REGISTER_VIRTUAL_SIZE.
1462         * regcache.c (legacy_max_register_raw_size): New function.
1463         (legacy_max_register_virtual_size): New function.
1464         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
1465         (MAX_REGISTER_RAW_SIZE): Define.
1466         (legacy_max_register_raw_size): Declare.
1467         (legacy_max_register_virtual_size): Declare.
1468         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1469         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
1470         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1471         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1472         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1473         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1474         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1475         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1476         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1477         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1478         * vax-tdep.c (vax_gdbarch_init): Update.
1479         * v850-tdep.c (v850_gdbarch_init): Update.
1480         * sparc-tdep.c (sparc_gdbarch_init): Update.
1481         * sh-tdep.c (sh_gdbarch_init): Update.
1482         * s390-tdep.c (s390_gdbarch_init): Update.
1483         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1484         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1485         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1486         * mips-tdep.c (mips_gdbarch_init): Update.
1487         * mcore-tdep.c (mcore_gdbarch_init): Update.
1488         * m68k-tdep.c (m68k_gdbarch_init): Update.
1489         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1490         * ia64-tdep.c (ia64_gdbarch_init): Update.
1491         * i386-tdep.c (i386_gdbarch_init): Update.
1492         * hppa-tdep.c (hppa_gdbarch_init): Update.
1493         * h8300-tdep.c (h8300_gdbarch_init): Update.
1494         * frv-tdep.c (frv_gdbarch_init): Update.
1495         * cris-tdep.c (cris_gdbarch_init): Update.
1496         * avr-tdep.c (avr_gdbarch_init): Update.
1497         * arm-tdep.c (arm_gdbarch_init): Update.
1498         * alpha-tdep.c (alpha_gdbarch_init): Update.
1499         * d10v-tdep.c (d10v_gdbarch_init): Do not set
1500         max_register_raw_size or max_register_virtual_size.
1501
1502 2003-03-03  David Carlton  <carlton@math.stanford.edu>
1503
1504         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
1505         SYMBOL_MATCHES_NAME, add comment.
1506         (SYMBOL_MATCHES_NATURAL_NAME): New.
1507         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
1508         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
1509         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
1510         * symtab.c (lookup_partial_symbol): Use
1511         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
1512         unhelpful comment.
1513         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
1514         SYMBOL_MATCHES_NAME.
1515         Fix for PR c++/33.
1516
1517 2003-03-03  David Carlton  <carlton@math.stanford.edu>
1518
1519         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
1520         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
1521         by regexp matching against SYMBOL_NATURAL_NAME.
1522
1523 2003-03-03  David Carlton  <carlton@math.stanford.edu>
1524
1525         * linespec.c (find_method): Extract code into collect_methods.
1526         (collect_methods): New.
1527
1528 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
1529
1530         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
1531         get_frame_base.
1532
1533         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
1534         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1535
1536 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
1537
1538         * arch-utils.c (generic_register_byte): Fix to use the loop index 
1539         and not regnum when summing the size of all registers up to regnum.
1540
1541 2003-03-01  Andrew Cagney  <cagney@redhat.com>
1542
1543         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
1544         FRAME_INIT_SAVED_REGS.
1545         * gdbarch.h, gdbarch.c: Regenerate.
1546         * stack.c (frame_info): Update.
1547         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
1548         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
1549         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
1550         * ns32k-tdep.c (ns32k_pop_frame): Update.
1551         * mips-tdep.c (mips_pop_frame): Update.
1552         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
1553         * ia64-tdep.c (ia64_frame_chain): Update.
1554         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
1555         (ia64_frameless_function_invocation): Update.
1556         (ia64_init_extra_frame_info): Update.
1557         (ia64_pop_frame_regular): Update.
1558         * frame.h (struct frame_info): Update comment.
1559         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
1560         * frame.c (frame_saved_regs_register_unwind): Update.
1561         (frame_saved_regs_register_unwind): Update.
1562         (deprecated_generic_get_saved_register): Update.
1563         * cris-tdep.c: Update comment.
1564         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
1565         Rename macro.
1566         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1567         * x86-64-tdep.c (x86_64_init_abi): Update.
1568         * vax-tdep.c (vax_gdbarch_init): Update.
1569         * v850-tdep.c (v850_gdbarch_init): Update.
1570         * sparc-tdep.c (sparc_gdbarch_init): Update.
1571         * sh-tdep.c (sh_gdbarch_init): Update.
1572         * s390-tdep.c (s390_gdbarch_init): Update.
1573         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1574         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1575         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1576         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1577         * mips-tdep.c (mips_gdbarch_init): Update.
1578         * mcore-tdep.c (mcore_gdbarch_init): Update.
1579         * m68k-tdep.c (m68k_gdbarch_init): Update.
1580         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1581         * ia64-tdep.c (ia64_gdbarch_init): Update.
1582         * i386-tdep.c (i386_gdbarch_init): Update.
1583         * frv-tdep.c (frv_gdbarch_init): Update.
1584         * avr-tdep.c (avr_gdbarch_init): Update.
1585         * arm-tdep.c (arm_gdbarch_init): Update.
1586         * alpha-tdep.c (alpha_gdbarch_init): Update.
1587         
1588 2003-03-01  Andrew Cagney  <cagney@redhat.com>
1589
1590         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
1591         option enum and switch.  When no windows, set the interpreter to
1592         INTERP_CONSOLE.
1593         
1594 2003-03-01  Andrew Cagney  <cagney@redhat.com>
1595
1596         * main.c (captured_main): Replace magic option characters with an
1597         enum.
1598
1599 2003-03-01  Andrew Cagney  <cagney@redhat.com>
1600
1601         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
1602         INIT_EXTRA_FRAME_INFO.
1603         * gdbarch.h, gdbarch.c: Regenerate.
1604         * arm-tdep.c: Update comments.
1605         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
1606         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
1607         * frame.h, avr-tdep.c: Ditto.
1608         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
1609         (create_new_frame, legacy_get_prev_frame): Ditto.
1610         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1611         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1612         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
1613         deprecated_init_extra_frame_info instead of init_extra_frame_info.
1614         * x86-64-tdep.c (x86_64_init_abi): Ditto.
1615         * v850-tdep.c (v850_gdbarch_init): Ditto.
1616         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1617         * sh-tdep.c (sh_gdbarch_init): Ditto.
1618         * s390-tdep.c (s390_gdbarch_init): Ditto.
1619         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1620         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1621         * mips-tdep.c (mips_gdbarch_init): Ditto.
1622         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1623         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1624         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1625         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1626         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1627         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1628         * frv-tdep.c (frv_gdbarch_init): Ditto.
1629         * cris-tdep.c (cris_gdbarch_init): Ditto.
1630         * avr-tdep.c (avr_gdbarch_init): Ditto.
1631         * arm-tdep.c (arm_gdbarch_init): Ditto.
1632         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1633         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1634
1635 2003-03-01  Andrew Cagney  <cagney@redhat.com>
1636
1637         * gdbarch.sh (register_type): New function with predicate.
1638         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
1639         * gdbarch.h, gdbarch.c: Re-generate.
1640         * arch-utils.c (generic_register_byte): Use generic_register_size.
1641         (generic_register_size): When available, use
1642         gdbarch_register_type.
1643         * regcache.c (init_regcache_descr): When available, initialize the
1644         register type array using gdbarch_register_type.  If the
1645         architecture supplies gdbarch_register_type, do not use the legacy
1646         regcache layout.
1647         * d10v-tdep.c (d10v_register_type): Replace
1648         d10v_register_virtual_type.
1649         (d10v_gdbarch_init): Set register_type instead of
1650         register_virtual_type.
1651
1652 2003-03-01  Andrew Cagney  <cagney@redhat.com>
1653
1654         * Makefile.in (ax-gdb.o): Update dependencies.
1655         * ax-gdb.c: Include "regcache.h".
1656         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
1657         * findvar.c (value_of_register): Ditto.
1658         * infcmd.c (default_print_registers_info): Ditto.
1659
1660 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
1661
1662         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
1663         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1664
1665 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
1666
1667         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
1668         of STREQ.
1669
1670 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
1671
1672         * Makefile.in (dwarf2loc.o): Update dependencies.
1673         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
1674         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
1675         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
1676         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
1677         (locexpr_tracepoint_var_ref): New function.
1678         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
1679
1680 2003-02-28  Andrew Cagney  <cagney@redhat.com>
1681
1682         * regcache.c (register_size): New function.
1683         * regcache.h (register_size): Declare
1684         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
1685         max_register_size instead of MAX_REGISTER_RAW_SIZE.
1686
1687 2003-02-28  David Carlton  <carlton@math.stanford.edu>
1688
1689         * linespec.c (decode_compound): Extract code into find_method.
1690         (find_method): New.
1691
1692 2003-02-28  J. Brobecker  <brobecker@gnat.com>
1693
1694         * Makefile.in: Add rules to build and link in observer.o.
1695
1696 2003-02-27  J. Brobecker  <brobecker@gnat.com>
1697
1698         * observer.c: Minor comments edits.
1699
1700 2003-02-27  J. Brobecker  <brobecker@gnat.com>
1701
1702         * observer.h, observer.c: New file.
1703
1704 2003-02-27  Andrew Cagney  <cagney@redhat.com>
1705
1706         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
1707
1708 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
1709
1710         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
1711         (M6812_OP_STS_EXT): Likewise.
1712         (m6811_prologue): Use the above to recognize prologue.
1713         (m6812_prologue): Likewise.
1714
1715 2003-02-27  David Carlton  <carlton@math.stanford.edu>
1716
1717         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
1718         SYMBOL_PRINT_NAME.
1719         (compare_psymbols): Ditto.
1720         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
1721
1722 2003-02-27  Michael Snyder  <msnyder@redhat.com>
1723
1724         * f-lang.c (build_fortran_types): New function.
1725         (_initialize_f_language): Gdbarch-register built-in fortran types.
1726         * doublest.c (extract_floating): Fix warning text.
1727
1728 2003-02-27  Andrew Cagney  <cagney@redhat.com>
1729
1730         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
1731         predicate.  Replaces PUSH_DUMMY_FRAME.
1732         * gdbarch.h, gdbarch.c: Regnerate.
1733         * valops.c (hand_function_call): Update.  Call
1734         generic_push_dummy_frame directly.
1735         * vax-tdep.c (vax_gdbarch_init): Update.
1736         * sparc-tdep.c (sparc_gdbarch_init): Update.
1737         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1738         * m68k-tdep.c (m68k_gdbarch_init): Update.
1739         * hppa-tdep.c (hppa_gdbarch_init): Update.
1740         * alpha-tdep.c (alpha_gdbarch_init): Update.
1741         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
1742         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
1743         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
1744         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
1745         push_dummy_frame to generic_push_dummy_frame.
1746         * v850-tdep.c (v850_gdbarch_init): Ditto.
1747         * sh-tdep.c (sh_gdbarch_init): Ditto.
1748         * s390-tdep.c (s390_gdbarch_init): Ditto.
1749         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1750         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1751         * mips-tdep.c (mips_gdbarch_init): Ditto.
1752         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1753         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1754         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1755         * i386-tdep.c (i386_gdbarch_init): Ditto.
1756         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1757         * frv-tdep.c (frv_gdbarch_init): Ditto.
1758         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1759         * cris-tdep.c (cris_gdbarch_init): Ditto.
1760         * avr-tdep.c (avr_gdbarch_init): Ditto.
1761         * arm-tdep.c (arm_gdbarch_init): Ditto.
1762         
1763 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
1764
1765         * mips-tdep.c (show_mips_abi): New function.
1766         (_initialize_mips_tdep): Use show_mips_abi() to implement the
1767         command ``show mips abi''.
1768
1769 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
1770  
1771         From Elena Zannoni  <ezannoni@redhat.com>
1772         * dbxread.c (process_one_symbol): Only record line 0 if one or 
1773         more sline entries have been seen for the function.
1774
1775 2003-02-26  Michael Chastain  <mec@shout.net>
1776
1777         * configure: Regenerate with autoconf 000227.
1778
1779 2003-02-26  Michael Chastain  <mec@shout.net>
1780
1781         Close PR build/660.
1782         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
1783         for old libc5/glibc.
1784         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
1785
1786 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
1787
1788         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
1789         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
1790
1791 2003-02-26  Michael Chastain  <mec@shout.net>
1792
1793         * configure.in: New variable HAVE_UINTPTR_T.
1794         * configure, config.in: Regenerated.
1795
1796 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
1797
1798         Fix PR build/1097.
1799         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
1800
1801 2003-02-25  Andrew Cagney  <cagney@redhat.com>
1802
1803         * frame.c (get_prev_frame): Add comment on check for
1804         inside_entry_func. Only check for inside_entry_file when not a
1805         dummy and not a sentinel.  Check that the new frame is not inner
1806         to the old frame.
1807
1808 2003-02-25  Andrew Cagney  <cagney@redhat.com>
1809
1810         * frame.c (frame_debug): New variable.
1811         (_initialize_frame): Add "set/show debug frame" command.
1812         (get_prev_frame): When frame_debug, print reason why unwind
1813         failed.
1814
1815 2003-02-25  Michael Chastain  <mec@shout.net>
1816
1817         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
1818         to avoid uintptr_t definition problems.
1819
1820 2003-02-25  David Carlton  <carlton@math.stanford.edu>
1821
1822         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
1823         (SYMBOL_LINKAGE_NAME): Ditto.
1824         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
1825         SYMBOL_LINKAGE_NAME.
1826         (struct general_symbol_info): Expand comment.
1827         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
1828         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
1829         (SYMBOL_MATCHES_REGEXP): Ditto.
1830         * symtab.c (symbol_natural_name): New function.
1831         * objfiles.h: Replace all uses of SYMBOL_NAME by
1832         DEPRECATED_SYMBOL_NAME.
1833         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
1834         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
1835         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
1836         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
1837         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
1838         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
1839         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
1840         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
1841         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
1842         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
1843         * ada-exp.y: Ditto.
1844         * ada-exp.y: Update copyright.
1845         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
1846         * cp-valprint.c: Ditto.
1847
1848 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
1849
1850         * infptrace.c (detach): Do not flag error if ptrace detach fails
1851         and errno is set to ESRCH.
1852
1853 2003-02-24  Andrew Cagney  <cagney@redhat.com>
1854
1855         * infptrace.c (udot_info): Change type of udot_off to long.  Use
1856         paddr when printing udot_off's value.
1857
1858 2003-02-24  David Carlton  <carlton@math.stanford.edu>
1859
1860         * symtab.c (make_symbol_overload_list): Only read in partial
1861         symtabs containing a matching partial symbol.
1862
1863 2003-02-24  David Carlton  <carlton@math.stanford.edu>
1864
1865         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
1866         do the comparison, not strcmp.
1867         * symfile.c (compare_psymbols): Ditto.
1868         * defs.h: Declare strcmp_iw_ordered.
1869         * utils.c (strcmp_iw_ordered): New function.
1870
1871 2003-02-24  Jim Blandy  <jimb@redhat.com>
1872
1873         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
1874         support, shared libs): Remove my name from here, to better reflect
1875         reality.
1876
1877 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
1878
1879         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
1880         (target_ops): Add to_have_continuable_watchpoint.
1881         * target.c (update_current_target): Add INHERIT line for
1882         to_have_continuable_watchpoint.
1883         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
1884         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
1885         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
1886         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
1887
1888 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
1889
1890         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
1891         maintainership.
1892
1893 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
1894
1895         * solib.c (solib_open): Call target defined search function after
1896         failing with solib-search-path.
1897         * solist.h (target_so_ops): Add find_and_open_solib function hook and
1898         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
1899
1900 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
1901
1902         * MAINTAINERS: Add myself to Write After section.
1903
1904 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
1905
1906         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
1907
1908 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
1909
1910         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
1911         (m68hc11_add_reggroups): New function.
1912         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
1913         (m68hc11_gdbarch_init): Install the reggroups.
1914         (_initialize_m68hc11_tdep): Initialize them.
1915
1916 2003-02-21  James E Wilson  <wilson@tuliptree.org>
1917
1918         * MAINTAINERS: Update my email address.
1919
1920 2003-02-21  David Carlton  <carlton@math.stanford.edu>
1921
1922         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
1923
1924 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
1925
1926         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
1927         * symtab.h: Add opaque declarations of struct axs_value and
1928         struct agent_expr.
1929         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
1930         (struct location_funcs): New type.
1931         (struct symbol): Add "loc" to aux_value.
1932         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
1933         * dwarf2read.c: Include "dwarf2expr.h".
1934         (dwarf2_symbol_mark_computed): New function.
1935         (read_func_scope): Use it.
1936         (var_decode_location): New function.
1937         (new_symbol): Use it.
1938         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
1939
1940         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
1941         (dwarf2expr_h, dwarf2loc_h): New variables.
1942         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
1943         (dwarf2expr.o, dwarf2loc.o): New rules.
1944         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
1945         * buildsym.c (finish_block): Handle LOC_COMPUTED and
1946         LOC_COMPUTED_ARG.
1947         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1948         * m2-exp.y (yylex): Likewise.
1949         * printcmd.c (address_info, print_frame_args): Likewise.
1950         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
1951         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1952         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
1953         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
1954         * symtab.c (lookup_block_symbol): Likewise.
1955
1956 2003-02-20  Adam Fedor  <fedor@gnu.org>
1957
1958         * symtab.h: Remove objc_specific struct
1959         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
1960         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
1961         Have language_objc use cplus_specific struct.
1962
1963 2003-02-20  Tom Tromey  <tromey@redhat.com>
1964
1965         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
1966         TYPE_NAME, when printing a String value.  PR java/1075.
1967
1968 2003-02-20  Adam Fedor  <fedor@gnu.org>
1969
1970         * objc-lang.h (find_methods): Remove declaration.
1971         * objc-lang.c (find_methods): Make static.
1972
1973 2003-02-20  Christopher Faylor  <cgf@redhat.com>
1974
1975         * win32-nat.c (get_image_name): Check return value from
1976         ReadProcessMemory.
1977         (child_xfer_memory): Ditto.
1978
1979 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
1980
1981         * configure.in (TARGET_SYSTEM_ROOT): Set default to
1982         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
1983         '${exec_prefix}' (in addition to the expansion thereof) as
1984         relocatable.
1985         * configure: Rebuilt.
1986
1987 2003-02-20  David Carlton  <carlton@math.stanford.edu>
1988
1989         * symtab.c (search_symbols): Revert the search_symbols part of my
1990         2002-12-23 patch.  Add comment.
1991
1992 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
1993
1994         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
1995         * dbxread.c (elfstab_build_psymtabs): Don't call
1996         install_minimal_symbols.
1997         (stabsect_build_psymtabs): Likewise.
1998         * elfread.c (elf_symfile_read): Call install_minimal_symbols
1999         earlier.
2000         * somread.c (som_symfile_read): Call install_minimal_symbols
2001         and do_cleanups earlier.
2002         * nlmread.c (nlm_symfile_read): Likewise.
2003         * mdebugread.c (elfmdebug_build_psymtabs): Call
2004         install_minimal_symbols and make appropriate cleanups.
2005
2006 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
2007
2008         * solib.c (reload_shared_libraries): New function.
2009         (_initialize_solib): Add callbacks for ``set solib-search-path''
2010         and ``set solib-absolute-prefix''.
2011
2012 2003-02-20  David Carlton  <carlton@math.stanford.edu>
2013
2014         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
2015         expand comment.
2016         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
2017         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
2018         * ada-typeprint.c (ada_typedef_print): Ditto.
2019         * ax-gdb.c (gen_var_ref): Ditto.
2020         * breakpoint.c (print_one_breakpoint): Ditto.
2021         * buildsym.c (finish_block): Ditto.
2022         * c-valprint.c (c_val_print): Ditto.
2023         * expprint.c (print_subexp): Ditto.
2024         * findvar.c (locate_var_value): Ditto.
2025         * infcmd.c (jump_command): Ditto. 
2026         * linespec.c (decode_line_2, decode_compound): Ditto. 
2027         * maint.c (maintenance_translate_address): Ditto. 
2028         * objc-lang.c (compare_selectors, compare_classes): Ditto. 
2029         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
2030         Ditto.
2031         * p-valprint.c (pascal_val_print): Ditto. 
2032         * stabsread.c (define_symbol): Ditto. 
2033         * stack.c (print_frame, frame_info, print_block_frame_locals)
2034         (print_frame_arg_vars, return_command): Ditto. 
2035         * symfile.c (compare_symbols, compare_psymbols): Ditto. 
2036         * symmisc.c (print_symbol): Ditto. 
2037         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
2038         (compare_search_syms, print_symbol_info, print_msymbol_info)
2039         (rbreak_command): Ditto. 
2040         * tracepoint.c (tracepoints_info): Ditto. 
2041         * typeprint.c (typedef_print): Ditto. 
2042         * valops.c (value_of_variable, hand_function_call): Ditto. 
2043         * cli/cli-cmds.c (edit_command, list_command): Ditto.
2044         * ada-typeprint.c: Update Copyright.
2045         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
2046         * tracepoint.c, cli/cli-cmds.c: Ditto.
2047
2048 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
2049
2050         * frame.c (generic_unwind_get_saved_register): Make non-static.
2051         * frame.h (generic_unwind_get_saved_register): Declare.
2052         * mips-tdep.c (read_next_frame_reg): Fetch register from
2053         current regcache when frame is NULL.
2054         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
2055         that must be NULL.
2056         (mips_get_saved_register): Call generic_unwind_get_saved_register()
2057         instead of frame_register_unwind().
2058
2059 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
2060
2061         * remote-sim.c (gdbsim_insert_breakpoint)
2062         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
2063         code.
2064
2065 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
2066
2067         * remote.c (_initialize_remote): Add commands "set/show remote
2068         hardware-watchpoint-limit" and "set/show remote
2069         hardware-breakpoint-limit".
2070         (remote_hw_watchpoint_limit): Initialize to -1.
2071         (remote_hw_breakpoint_limit): Ditto.
2072         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
2073
2074 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
2075
2076         * coff-pe-read.c: New file - support reading of minimal symbols from a
2077         portable executable using the export table.
2078         * coff-pe-read.h: New file.
2079         * coffread.c: Include coff-pe-read.h.
2080         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
2081         debugging symbols found.
2082         * Makefile.in (SFILES): Add coff-pe-read.o.
2083         (coff_pe_read_h): Define.
2084         (COMMON_OBS): Add coff-pe-read.o.
2085         (coffread.o): Add coff_pe_read_h dependency.
2086         (coff-pe-read.o): New target.
2087
2088 2003-02-19  David Carlton  <carlton@math.stanford.edu>
2089
2090         * Makefile.in (SFILES): Add block.c.
2091         (block_h): New.
2092         (COMMON_OBS): Add block.o.
2093         (block.o): New.
2094         (x86-64-tdep.o): Add $(block_h).
2095         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
2096         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
2097         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
2098         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
2099         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
2100         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
2101         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
2102         * value.h: Add opaque declaration for struct block.
2103         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
2104         * ada-lang.h: Ditto.
2105         * x86-64-tdep.c: #include "block.h"
2106         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
2107         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
2108         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
2109         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
2110         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
2111         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
2112         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
2113         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
2114         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
2115         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
2116         * symtab.c (block_function): Ditto.
2117         (contained_in): Ditto.
2118         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
2119         block.h.  Add opaque declaration for struct block.
2120         * symtab.h: Move block_function and contained_in declarations to
2121         block.h.  Add opaque declarations for struct block, struct
2122         blockvector.
2123         (struct block): Move to block.h.
2124         (struct blockvector): Ditto.
2125         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
2126         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
2127         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
2128         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
2129         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
2130         Ditto.
2131         * block.c: New file.
2132         * block.h: New file.
2133
2134 2003-02-19  Theodore A. Roth  <troth@openavr.org>
2135
2136         * avr-tdep.c (avr_extract_return_value): Remove function.
2137         (avr_store_return_value): Remove function.
2138         (avr_extract_struct_value_address): Remove function.
2139         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
2140
2141 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
2142
2143         * rs6000-tdep.c: Include "gdb_assert.h".
2144         (registers_e500): Add "acc" and "spefscr".
2145         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
2146         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
2147         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
2148         really is "r0".
2149         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
2150
2151 2003-02-18  Keith Seitz  <keiths@redhat.com>
2152
2153         * Makefile.in: Add gdbtk-interps.c.
2154
2155 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
2156
2157         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
2158         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
2159
2160 2003-02-18  Andrew Cagney  <cagney@redhat.com>
2161
2162         * symtab.h (struct objfile): Add opaque declaration.
2163
2164 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
2165
2166         From Jim Ingham   <jingham@apple.com>:
2167         * dbxread.c (process_one_symbol): Use last_function_start rather
2168         than function_start_offset to find the real beginning of the
2169         current function.  The latter is just the text section offset on
2170         some systems, the former is always the real function start.
2171
2172 2003-02-17  Andrew Cagney  <cagney@redhat.com>
2173
2174         * configure.in: Revert ${target} != ${host}.
2175
2176 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
2177
2178         * configure.in (Makefile): Use the test ${target} != ${host},
2179         instead of the absence of the "nm.h" file, to determine of the
2180         configuration non-native.
2181         * configure: Regenerate.
2182         
2183 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
2184
2185         From Brian Ford  <ford@vss.fsi.com>
2186
2187         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
2188         conditionalize tui_active test.
2189         (lookup_cmd_1): Ditto.
2190
2191 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
2192
2193         * configure.in: Add check for _etext.
2194         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
2195         available.
2196         * config.in, configure: regenerated.
2197
2198 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
2199
2200         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
2201
2202 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
2203
2204         * main.c (tui_version): Delete variable.
2205         (captured_main): When --tui, set interpreter_p to "tui" instead of
2206         enabling tui_version.
2207         * printcmd.c (display_command) [TUI]: Test tui_active instead of
2208         tui_version.
2209         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
2210         * cli/cli-cmds.c (disassemble_command): Ditto.
2211         * defs.h (tui_version): Delete declaration.
2212         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
2213         (tui-interp.o): Add rules.
2214         (SUBDIR_TUI_OBS): Add "tui-interp.o".
2215
2216 2003-02-14  Christopher Faylor  <cgf@redhat.com>
2217
2218         * win32-nat.c (register_loaded_dll): Correctly set address range for
2219         just-loaded dll.
2220
2221 2003-02-12  Jason Molenda  (jmolenda@apple.com)
2222
2223         * symmisc.c (print_objfile_statistics): Include information about
2224         the number of psymtabs and symtabs in each object file.
2225
2226 2003-02-13  Keith R Seitz  <keiths@redhat.com>
2227
2228         * main.h (struct captured_main_args): Add interpreter_p.
2229         * main.c (captured_main): Initialize interpreter_p from context.
2230         * gdb.c (main): Set interpreter_p argument.
2231         * Makefile.in (gdb.o): Add dependency for interps.h.
2232
2233 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
2234
2235         * event-top.c (cli_command_loop): Delete declaration.
2236         (_initialize_event_loop): Delete function setting event_loop_hook.
2237         * event-top.h (cli_command_loop): Declare.  Update copyright.
2238         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
2239         * interps.c (current_interp_command_loop): When event_loop_p, call
2240         cli_command_loop.
2241
2242 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
2243
2244         * interps.h (interp_command_loop_ftype): Change return type to
2245         void.
2246
2247 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
2248
2249         * x86-64-tdep.c (x86_64_extract_return_value)
2250         (x86_64_store_return_value): Use regcache instead of regbuf.
2251         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
2252         * x86-64-linux-nat.c (fill_gregset): Use regcache.
2253
2254 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
2255
2256         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
2257         * aclocal.m4: Regenerate.
2258         * configure: Regenerate.
2259
2260         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
2261         TCL_LD_SEARCH_FLAGS.
2262
2263 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
2264
2265         * dwarf2cfi.c: Reindented.
2266
2267 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
2268
2269         * interps.c (clear_interpreter_hooks): Convert function definition
2270         to ISO C.
2271
2272 2003-02-07  David Carlton  <carlton@math.stanford.edu>
2273
2274         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
2275
2276 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
2277
2278         * gdbtypes.h (struct main_type): Move ``length'' field from here...
2279         (struct type): ...to here.
2280         (TYPE_LENGTH): Adjust to reflect different location of ``length''
2281         field.
2282         * gdbtypes.c (make_qualified_type): Set length on newly created type.
2283         (replace_type): Set length on all type variants for a given type.
2284
2285 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
2286
2287         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
2288         <sys/stat.h>.
2289         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
2290         
2291 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
2292
2293         * Makefile.in (symm-nat.o): Update dependencies.
2294         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
2295         (lynx-nat.o, ia64-linux-nat.): Ditto.
2296         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
2297         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
2298         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
2299
2300         * Makefile.in (inflow_h): Define.
2301         (procfs.o, inflow.o, procfs.o): Update dependencies.
2302         * inftarg.c (child_stop): Delete extern declaration of
2303         inferior_process_group.  Include "inflow.h".
2304         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
2305         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
2306         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
2307         (our_process_group, inferior_process_group): Extern declarations.
2308
2309         * procfs.c: Include "gdb_assert.h".
2310
2311         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2312         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
2313         * jv-typeprint.c (java_type_print_base): Ditto.
2314         * typeprint.c (typedef_print): Eliminate STREQ.
2315         * cli/cli-script.c (define_command, define_command): Ditto.
2316         * main.c (captured_main): Ditto.
2317         * values.c (lookup_internalvar): Ditto.
2318         * utils.c (safe_strerror, parse_escape): Eliminate assignment
2319         within `if' conditional.
2320         * linespec.c (decode_line_2): Ditto.
2321         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
2322         (bfd_openw_with_cleanup): Ditto.
2323
2324 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
2325
2326         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
2327         legacy_extract_return_value and store_return_value to
2328         legacy_return_value.
2329
2330 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
2331
2332         * win32-nat.c (get_relocated_section_addrs): New function.  Find
2333         section load addresses for symbol handling in relocated DLLs.
2334         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
2335
2336 2003-02-05  Fred Fish  <fnf@intrinsity.com>
2337
2338         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
2339         '=' and '!='.
2340         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
2341         with '&' and '=='.
2342         (angel_RDI_info): Ditto.
2343         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
2344         with '&' and '!='.
2345         (threads_continue_all_with_signals): Ditto.
2346   
2347 2003-02-05  Jim Ingham <jingham@apple.com>
2348             Keith Seitz  <keiths@redhat.com>
2349             Elena Zannoni  <ezannoni@redhat.com>
2350             Andrew Cagney  <ac131313@redhat.com>
2351
2352         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
2353         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
2354         (SUBDIR_MI_OBS): Add "mi-interp.o".
2355         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
2356         (SFILES): Add "interps.c".
2357         (COMMON_OBS): Add "interps.o".
2358         (interps_h, mi_main_h): Define.
2359         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
2360         (mi-main.o, main.o, event-top.o): Update dependencies.
2361         * cli/cli-interp.c: New file.
2362         * interps.h, interps.c: New files.
2363         * top.c: (gdb_init): Don't install the default interpreter, handed
2364         by captured_main.
2365         * main.c: Include "interps.h".
2366         (interpreter_p): Note that it should malloc'ed.
2367         (captured_command_loop): Call current_interp_command_loop.
2368         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
2369         xfree and xstrdup when updating interpreter_p.  Install the
2370         default interpreter.  Add hack to stop mi1's copyright notice
2371         being encoded.
2372         * event-top.h (gdb_setup_readline): Declare.
2373         (gdb_disable_readline): Declare.
2374         * event-top.c: Include "interps.h".
2375         (display_gdb_prompt): Call current_interp_display_prompt_p.
2376         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
2377         gdb_stdlog, and gdb_stdtarg.
2378         (_initialize_event_loop): Don't call gdb_setup_readline.
2379         * cli-out.c (cli_out_set_stream): New function.
2380         * cli-out.h (cli_out_set_stream): Declare.
2381
2382 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
2383
2384         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
2385         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
2386         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
2387         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
2388         config/i386/i386v42mp.mt: Removed.
2389
2390 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
2391
2392         * configure.tgt (*-*-solaris*): Set gdb_osabi to
2393         GDB_OSABI_SOLARIS.
2394
2395 2003-02-05  Michael Chastain  <mec@shout.net>
2396
2397         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
2398         2.12.1 and earlier versions.
2399
2400 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
2401
2402         Remove orphaned hosts, targets and files.
2403         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
2404         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
2405         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
2406         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
2407         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
2408         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
2409         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
2410         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
2411         * config/sparc/tm-sp64sim.h: Delete.
2412         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
2413         hosts.
2414         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
2415         mips*-dec-mach3* targets.
2416
2417 2003-02-04  Michael Chastain  <mec@shout.net>
2418
2419         * NEWS: Fix typo: sepcifying -> specifying.
2420
2421 2003-02-04  Michael Chastain  <mec@shout.net>
2422
2423         * dwarfread.c: Add documentation on the state of dwarf-1,
2424         looking towards obsoletion.
2425
2426 2003-02-03  Michael Chastain  <mec@shout.net>
2427
2428         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
2429         gdb/testsuite/gdb.c++/pr-1023.exp.
2430
2431 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
2432
2433         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
2434         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
2435
2436         * utils.c (init_page_info): Delete reference to MPW in comments.
2437         * main.c (captured_main): Delete #ifdef MPW.
2438
2439 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
2440
2441         * NEWS: Note that the m32r-*-elf* is obsolete. 
2442         * monitor.c (monitor_expect): Obsolete reference to m32r.
2443         * configure.tgt: Mark m32r-*-elf* as obsolete.
2444         * MAINTAINERS: Mark m32k as obsolete.
2445         * m32r-rom.c: Obsolete file.
2446         * config/m32r/m32r.mt: Obsolete file.
2447         * config/m32r/tm-m32r.h: Obsolete file.
2448         * m32r-stub.c: Obsolete file.
2449         * m32r-tdep.c: Obsolete file.
2450
2451 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
2452
2453         * NEWS: Mention that the z8k-zilog-none is obsolete.
2454         * MAINTAINERS: Mark z8k as obsolete.
2455         * configure.tgt: Obsolete the z8k-*-coff* target.
2456         * config/z8k/z8k.mt: Obsolete file.
2457         * config/z8k/tm-z8k.h: Obsolete file.
2458         * z8k-tdep.c: Obsolete file.
2459
2460 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
2461
2462         * NEWS: Mention that the mn10200-elf is obsolete.
2463         * configure.tgt: Obsolete mn10200-*-* target.
2464         * breakpoint.c (update_breakpoints_after_exec): Update comment to
2465         mention that the mn10200 is obsolete.
2466         * breakpoint.h: Ditto.
2467         * MAINTAINERS: Mark the mn10200-elf as obsolete.
2468         * config/mn10200/mn10200.mt: Obsolete file.
2469         * config/mn10200/tm-mn10200.h: Obsolete file.
2470         * mn10200-tdep.c: Obsolete file.
2471
2472 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
2473
2474         * MAINTAINERS: Mark h8500 as obsolete.
2475         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
2476         * findvar.c (value_from_register): Ditto.
2477         * h8500-tdep.c: Mark file as obsolete.
2478         * config/h8500/h8500.mt: Ditto.
2479         * config/h8500/tm-h8500.h: Ditto.
2480         * NEWS: Mention that h8500 is obsolete.
2481
2482 2003-02-04  David Carlton  <carlton@math.stanford.edu>
2483
2484         * objfiles.c (allocate_objfile): Always set name.  Add comment at
2485         start of function.
2486         * jv-lang.c (get_dynamics_objfile): Add comment.
2487
2488 2003-02-04  David Carlton  <carlton@math.stanford.edu>
2489
2490         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
2491         * printcmd.c (build_address_symbolic): Replace uses of
2492         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
2493         SYMBOL_NAME, and asm_demangle.
2494         Update copyright.
2495
2496 2003-02-04  David Carlton  <carlton@math.stanford.edu>
2497
2498         * linespec.c (decode_compound): Extract code into
2499         lookup_prefix_sym.
2500         (lookup_prefix_sym): New function.
2501
2502 2003-02-04  David Carlton  <carlton@math.stanford.edu>
2503
2504         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
2505         FLOAT_COERCION_BADNESS.
2506         * gdbtypes.c (rank_one_type): Replace all uses of
2507         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
2508
2509 2003-02-04  Jim Blandy  <jimb@redhat.com>
2510
2511         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
2512         section, let dwarf_macinfo_section point to it, not
2513         dwarf_loc_section.
2514
2515 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
2516
2517         Pointed out by Anton Blanchard <anton@samba.org>.
2518         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
2519         (ppc_linux_at_sigtramp_return_path): Use it.
2520
2521 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
2522
2523         * defs.h (streq): Add prototype.
2524         * utils.c (streq): New function.
2525
2526         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
2527         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
2528         * mdebugread.c (new_symbol): Likewise.
2529         * stabsread.c (define_symbol): Likewise.
2530         * coffread.c (process_coff_symbol): Likewise.
2531         * dwarfread.c (new_symbol): Likewise.
2532
2533         * minsyms.c (prim_record_minimal_symbol_and_info): Use
2534         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
2535         here.
2536         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
2537         SYMBOL_INIT_DEMANGLED_NAME.
2538         * objfiles.c: Include "hashtab.h".
2539         (allocate_objfile): Call htab_set_functions_ex for the
2540         demangled_names_hash.
2541         (free_objfile): Call htab_delete for the demangled_names_hash.
2542         * objfiles.h (struct htab): Add declaration.
2543         (struct objfile): Add demangled_names_hash.
2544         * symfile.c: Include "hashtab.h".
2545         (reread_symbols): Call htab_delete for the demangled_names_hash.
2546         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
2547         SYMBOL_NAME in the bcache.
2548         * symtab.c: Include "hashtab.h".  Update comments.
2549         (create_demangled_names_hash, symbol_set_names): New functions.
2550         (symbol_find_demangled_name): New function, broken out from
2551         symbol_init_demangled_names.
2552         (symbol_init_demangled_names): Use it.
2553         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
2554         (SYMBOL_SET_NAMES): New macro.
2555         (symbol_set_names): Add prototype.
2556
2557 2003-02-03  Jim Blandy  <jimb@redhat.com>
2558
2559         Use a single, consistent representation for an empty minimal
2560         symbol table in an objfile.
2561         * objfiles.c (terminate_minimal_symbol_table): New function.
2562         (allocate_objfile): Call it.
2563         * objfiles.h (terminate_minimal_symbol_table): New declaration.
2564         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
2565         non-NULL. 
2566         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
2567         objfile has minimal symbols, compare minimal_symbol_count to zero,
2568         instead of comparing msymbols with NULL.
2569         * objfiles.c (have_minimal_symbols): Same.
2570         * solib-sunos.c (solib_add_common_symbols): Call
2571         terminate_minimal_symbol_table.
2572         * symfile.c (reread_symbols): Same.
2573         
2574 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
2575
2576         * s390-tdep.c (s390_address_class_type_flags)
2577         (s390_address_class_type_flags_to_name)
2578         (s390_address_class_name_to_type_flags): New functions.
2579         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
2580         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
2581
2582 2003-02-03  Michael Snyder  <msnyder@redhat.com>
2583
2584         * arm-tdep.c: Fix spell-o in comment.
2585
2586 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
2587
2588         * dwarf2cfi.c (pointer_encoding): Added new parameter.
2589         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
2590         error messages to contain BFD filename. 
2591
2592 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
2593
2594         Fix PR gdb/742 gdb/743 gdb/877
2595         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
2596         (do_mixed_source_and_assembly): Use
2597         make_cleanup_ui_out_tuple_begin_end and
2598         make_cleanup_ui_out_tuple_begin_end.
2599         (do_mixed_source_and_assembly): Ditto.
2600         * thread.c (do_captured_list_thread_ids): Ditto.
2601         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
2602         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
2603         ui_out_tuple_end): Delete prototypes.
2604         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
2605         ui_out_list_end, ui_out_tuple_end): Delete.
2606
2607         From Kevin Buettner  <kevinb@redhat.com>:
2608         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
2609         * ui-out.c (make_cleanup_ui_out_table_begin_end)
2610         (do_cleanup_table_end):  New functions.
2611         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
2612         Use cleanups to invoke_ui_out_tuple_end().
2613         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
2614         * cli/cli-setshow.c (cmd_show_list): Use
2615         make_cleanup_ui_out_tuple_begin_end.
2616         
2617 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
2618
2619         * frame.c (frame_unwind_register): New function.
2620         (frame_unwind_unsigned_register): Use.
2621         (frame_unwind_signed_register): Use.
2622         (frame_read_register): New function.
2623         * frame.h (frame_unwind_register): Declare.
2624         (frame_read_register): Declare.
2625
2626         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
2627         and frame_unwind_register instead of read_memory, write_register
2628         and deprecated_write_register_bytes.
2629
2630 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
2631
2632         * frame.h: Note that namelen can be negative.
2633         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
2634         NAME's length.
2635
2636         * NEWS: Mention that the d10v's `regs' command is deprecated.
2637         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
2638         (d10v_print_registers_info): New function.
2639         (show_regs): Call d10v_print_registers_info.
2640         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
2641
2642 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
2643
2644         * stack.c (print_frame_info): Restore call to annotate_frame_begin
2645         lost in the previous patch.
2646
2647 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
2648
2649         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
2650         * stack.c (print_frame_info_base): Output complete FRAME tuple
2651         for synthesized frames.
2652
2653 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
2654
2655         * mips-nat.c (zerobuf): Delete.
2656         (fetch_inferior_registers): Alloc local zerobuf.
2657         (fetch_core_registers): Alloc local zerobuf.
2658         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
2659         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
2660         * thread-db.c (thread_db_store_registers): Ditto.
2661         * sh-tdep.c (sh_do_register): Ditto.
2662         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2663         * remote-sim.c (gdbsim_store_register): Ditto.
2664         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2665         * remote-e7000.c (fetch_regs_from_dump): Ditto.
2666         * monitor.c (monitor_supply_register): Ditto.
2667         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
2668         * mips-nat.c (fetch_inferior_registers): Ditto.
2669         * m68klinux-nat.c (fetch_register): Ditto.
2670         * lynx-nat.c (fetch_inferior_registers): Ditto.
2671         (fetch_inferior_registers): Ditto.
2672         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
2673         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
2674         (hpux_thread_store_registers): Ditto.
2675         * hppah-nat.c (fetch_register): Ditto.
2676         * hppab-nat.c (fetch_register): Ditto.
2677         * hppa-tdep.c (pa_register_look_aside): Ditto.
2678         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
2679         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
2680
2681 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
2682
2683         * gdbarch.sh: Explictly specify all method levels.  When a
2684         variable with an empty level, provide a non-multi-arch default.
2685         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
2686         * gdbarch.h: Re-generate.
2687         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
2688         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
2689
2690 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
2691
2692         * defs.h (host_pointer_to_address): Delete declaration.
2693         (address_to_host_pointer): Delete declaration.
2694         * utils.c (host_pointer_to_address): Delete function.
2695         (address_to_host_pointer): Delete function.
2696         * procfs.c (procfs_address_to_host_pointer): New function.
2697         * procfs.c (proc_set_watchpoint): Use.
2698         (procfs_can_use_hw_breakpoint): Update comments.
2699         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
2700         (som_solib_add): Use.
2701         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
2702         * hppa-tdep.c (unwind_command): Use.
2703         
2704 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
2705
2706         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
2707         strlen d_name.
2708
2709         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
2710         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
2711         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
2712         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
2713         (define_symbol): Update.
2714         * symfile.c (generic_load): Remove references to nindy.
2715         * symtab.c: Remove references to nindy.
2716
2717 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
2718
2719         * infcmd.c (print_float_info): Delete code conditional on
2720         FLOAT_INFO.
2721         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
2722         * config/m68k/nm-apollo68b.h: Ditto.
2723         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
2724         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
2725         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
2726
2727 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
2728
2729         * config/i386/tm-i386os9k.h: Removed.
2730
2731         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
2732         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
2733         they're identical to i[3456]86-*-sysv* now.
2734         * config/i386/i386v32.mh: Removed.
2735         * config/i386/xm-i386v32.h: Removed.
2736         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
2737
2738         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
2739
2740         * config/i386/i386dgux.mh: Removed.
2741         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
2742
2743         * configure.in: Fix typo.
2744         * configure: Regenerated.
2745
2746 2003-01-31  David Carlton  <carlton@math.stanford.edu>
2747
2748         * dwarf2read.c (dwarf2_locate_sections): Set
2749         dwarf_ranges_section.
2750
2751 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
2752
2753         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
2754         * utils.c: Update comments documenting legitimate uses of PTR.
2755         
2756         * utils.c: Re-indent.
2757
2758         * config/djgpp/fnchange.lst: Delete nindy files.
2759         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
2760         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
2761         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
2762         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
2763         * nindy-share/README, nindy-share/Onindy.c: Delete files.
2764         * nindy-tdep.c, nindy-share/Makefile: Delete files.
2765         * Makefile.in (init.c): Remove nindy references.
2766         (saber_gdb): Delete rule.
2767         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
2768         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
2769         and a68v-nat.c.
2770         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
2771         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
2772         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
2773         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
2774         nindy-share/stop.h.
2775         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
2776         * saber.suppress: Delete file.
2777
2778 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
2779
2780         * dbxread.c (stabs_data): New static variable.
2781         (fill_symbuf): Support an in-memory buffer for stabs data.
2782         (stabs_seek): New function.
2783         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
2784         (read_ofile_symtab): Use stabs_seek.
2785         (elfstab_build_psymtabs): Take an asection* instead of
2786         an offset and size.  Relocate the stabs data if necessary.
2787         Save the section* for dbx_psymtab_to_symtab.
2788         * dwarf2read.c: Add section variables for each debug section.
2789         (dwarf2_locate_sections): Fill them in.
2790         (dwarf2_read_section): Take an asection* argument.
2791         Relocate the section contents if necessary.
2792         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
2793         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
2794         it to dwarf2_read_section.
2795         (dwarf2_build_frame_info): Update callers.
2796         * elfread.c (elf_symfile_read): Update call to
2797         elfstab_build_psymtabs.
2798         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
2799         (DBX_STAB_SECTION): New macro.
2800         * stabsread.h (elfstab_build_psymtabs): Update prototype. 
2801         * symfile.c (symfile_dummy_outputs): New function.
2802         (symfile_relocate_debug_section): New function.
2803         * symfile.h (symfile_relocate_debug_section): Add prototype.
2804
2805 2003-01-31  Richard Henderson  <rth@redhat.com>
2806
2807         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
2808         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
2809         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
2810         * alpha-tdep.c (alpha_register_name): Add "unique".
2811         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
2812         (ALPHA_UNIQUE_REGNUM): New.
2813         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
2814
2815 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
2816
2817         * README: Remove reference to Ericsson 1800 monitor.
2818         * Makefile.in (remote-es.o): Delete rule.
2819         (ALLDEPFILES): Delete remote-es.c.
2820         * remote-es.c: Delete file.
2821         * config/m68k/es1800.mt: Delete file.
2822         * config/djgpp/fnchange.lst: Update.
2823         * configure.tgt: Delete m68*-ericsson-* target.
2824
2825 2003-01-31  Adam Fedor  <fedor@gnu.org>
2826
2827         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
2828         Remove duplicate/shadowing variable of same name.
2829
2830 2003-01-30  Jim Blandy  <jimb@redhat.com>
2831
2832         * symfile.c (find_separate_debug_file): Assert that the objfile's
2833         directory name we compute ends with a slash, and then assume that
2834         that's so everywhere we use it.
2835
2836 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
2837
2838         * valops.c (value_assign): Flush frame cache after stores to memory
2839         also.
2840
2841 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
2842
2843         * Makefile.in (mon960-rom.o): Delete rule.
2844         * mon960-rom.c: Delete file.
2845
2846 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
2847
2848         * d10v-tdep.c: Include "frame-unwind.h".
2849         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
2850         list.
2851         (next_addr, uses_frame): Delete.
2852         (struct d10v_unwind_cache): Define.
2853         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
2854         Use info instead of next_addr and uses_frame globals.
2855         (d10v_frame_init_saved_regs): Delete function.
2856         (d10v_init_extra_frame_info): Delete function.
2857         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
2858         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
2859         init_frame_pc or frame_saved_pc.
2860         (d10v_pop_frame): Delete function.
2861         (do_d10v_pop_frame): Delete function.
2862         (d10v_frame_chain): Delete function.
2863         (d10v_frame_chain_valid): Delete function.
2864         (d10v_frame_pc_unwind): New function.
2865         (d10v_frame_id_unwind): New function.
2866         (saved_regs_unwinder): New function.
2867         (d10v_frame_register_unwind): New function.
2868         (d10v_frame_pop): New function.
2869         (d10v_frame_unwind): New variable.
2870         (d10v_frame_p): New function.
2871         (d10v_frame_saved_pc): Delete function.
2872         * Makefile.in (d10v-tdep.o): Update dependencies.
2873
2874 2003-01-30  J. Brobecker  <brobecker@gnat.com>
2875
2876         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
2877         causing some regressions due to a change in the default value
2878         for this macro.
2879
2880 2003-01-29  Richard Henderson  <rth@redhat.com>
2881             Elena Zannoni  <ezannoni@redhat.com>
2882             Daniel Jacobowitz  <drow@mvista.com>
2883
2884         Fix PR gdb/961.
2885         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
2886         variables.
2887         (RANGES_SECTION): New.
2888         (dwarf_ranges_buffer): New variable.
2889         (struct comp_unit_head): Add member "die".
2890         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
2891         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
2892         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
2893         (dwarf2_locate_sections): Likewise.
2894         (dwarf2_build_psymtabs): Read .debug_ranges.
2895         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
2896         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
2897         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
2898         Look for DW_AT_ranges and return the bounding box.
2899
2900 2003-01-29  Brian Ford <ford@vss.fsi.com>
2901
2902         * win32-nat.c (cygwin_pid): Removed as unused.
2903         (child_attach): Try fall back to Cygwin pid.
2904
2905 2003-01-29  Jim Blandy  <jimb@redhat.com>
2906
2907         * objfiles.h (struct objfile): Doc fix.
2908
2909 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
2910
2911         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
2912         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
2913         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
2914         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
2915         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
2916         (FRAME_SAVED_PC): Change to a function with predicate.
2917         * gdbarch.h, gdbarch.c: Re-generate.
2918
2919 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
2920
2921         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
2922
2923         * complaints.c (complain): Delete function.
2924         * complaints.h (struct deprecated_complaint): Delete definition.
2925         (complain): Delete declaration.
2926
2927 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
2928
2929         * mips-tdep.c (mips_init_extra_frame_info): Return early for
2930         dummy frames.
2931
2932 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
2933
2934         * sentinel-frame.h, sentinel-frame.c: New files.
2935         * Makefile.in (frame.o): Update dependencies.
2936         (SFILES): Add sentinel-frame.c.
2937         (sentinel_frame_h): Define.
2938         (COMMON_OBS): Add sentinel-frame.o.
2939         (sentinel-frame.o): Specify dependencies.
2940         * frame.c: Include "sentinel-frame.h".
2941         (frame_register_unwind): Rewrite assuming that there is always a a
2942         ->next frame.
2943         (frame_register, generic_unwind_get_saved_register): Ditto.
2944         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
2945         (create_sentinel_frame, unwind_to_current_frame): New functions.
2946         (get_current_frame): Rewrite using create_sentinel_frame and
2947         unwind_to_current_frame.  When possible, always create a frame.
2948         (create_new_frame): Set next to the sentinel frame.
2949         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
2950         (deprecated_update_frame_pc_hack): Update the next frame's PC and
2951         ID cache when necessary.
2952         (frame_saved_regs_id_unwind): Use frame_relative_level.
2953         (deprecated_generic_get_saved_register): Use frame_relative_level,
2954         get_frame_saved_regs, get_frame_pc, get_frame_base and
2955         get_next_frame.
2956         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
2957         frame_register.
2958
2959 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
2960
2961         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
2962
2963 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
2964
2965         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
2966         (maintenance_set_profile_cmd): Use error () instead of warning ().
2967
2968 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
2969
2970         * configure.in: Check that -pg works if using --enable-profiling.
2971         Check for monstartup and _mcleanup regardless of --enable-profiling.
2972         * maint.c: Check for monstartup and _mcleanup before using them.
2973         * config.in: Regenerated.
2974         * configure: Regenerated.
2975
2976 2003-01-24  Nick Clifton  <nickc@redhat.com>
2977
2978         * Add sh2e support:
2979
2980         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
2981
2982                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
2983                 (sh2e_show_regs): New.
2984                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
2985                 * config/sh/tm-sh.h: Added sh2e to comments.
2986
2987 2003-01-23  Jim Blandy  <jimb@redhat.com>
2988
2989         * symfile.c (syms_from_objfile): Don't print the "(no debugging
2990         symbols found)" message here; we haven't checked for a separate
2991         debug info file yet, so we don't know yet.
2992         (symbol_file_add_with_addrs_or_offsets): Print it here, after
2993         we've looked everywhere.  Also, there's no need to print a special
2994         message when we're loading the separate debug info file: the one
2995         symbol_file_add prints is fine.
2996
2997 2003-01-23  Alexander Larsson <alexl@redhat.com>
2998             Jim Blandy  <jimb@redhat.com>
2999
3000         Add support for executables whose debug info has been separated
3001         out into a separate file, leaving only a link behind.
3002         * objfiles.h (struct objfile): New fields: separate_debug_objfile
3003         and separate_debug_objfile_backlink.
3004         (put_objfile_before): New declaration.
3005         * symfile.c: #include "filenames.h".
3006         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
3007         debug info in a separate file, read that, too. Save the addrs
3008         argument, so we can use it again to read the separated debug info;
3009         syms_from_objfile modifies the table we pass it.
3010         (reread_symbols): After re-reading an objfile, call
3011         reread_separate_symbols to refresh its separate debug info
3012         objfile, if it has one.
3013         (reread_separate_symbols, find_separate_debug_file,
3014         get_debug_link_info, separate_debug_file_exists): New functions.
3015         (debug_file_directory): New global var.
3016         (_initialize_symfile): Initialize debug_file_directory, and
3017         provide the new `set debug-file-directory' command to let the user
3018         change it.
3019         * objfiles.c (free_objfile): If this objfile has its debug info in
3020         a separate objfile, free that one too.  If this is itself a
3021         separate debug info objfile, clear our parent's backlink.
3022         (put_objfile_before): New function.
3023         * utils.c (gnu_debuglink_crc32): New function.
3024         * defs.h (gnu_debuglink_crc32): New declaration.
3025         * Makefile.in (symfile.o): Note dependency on "filenames.h".
3026         * configure.in: Handle --with-separate-debug-dir config option.
3027         * acinclude.m4 (AC_DEFINE_DIR): New macro.
3028         * acconfig.h (DEBUGDIR): New macro.
3029         * configure, aclocal.m4, config.in: Regenerated.
3030
3031 2003-01-22  Jim Blandy  <jimb@redhat.com>
3032
3033         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
3034         like the old symbol_file_add, but taking new arguments: you can
3035         now pass in either a `struct section_addr_info' list to say where
3036         each section is loaded, or a `struct section_offsets' table.  Pass
3037         these new arguments through to syms_from_objfile as appropriate.
3038         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets, 
3039         with the appropriate quiescent values for the new arguments.
3040
3041         * symfile.c: #include "gdb_assert.h".
3042         (syms_from_objfile): Add the ability to pass in a section offset
3043         table directly, as an alternative to the section_addr_info table.
3044         Document arguments better.
3045         (symbol_file_add): Pass extra arguments to syms_from_objfile.
3046         * symfile.h (syms_from_objfile): Update declaration.
3047         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
3048         syms_from_objfile.
3049         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
3050
3051 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
3052
3053         Original patch by Tom Tromey <tromey@cygnus.com> and
3054         Jason Molenda <jmolenda@apple.com>.
3055         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
3056         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
3057         * NEWS: Mention profiling.
3058         * configure.in (--enable-gdbtk): Fix typo.
3059         (--enable-profiling): New.  Set PROFILE_CFLAGS.
3060         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
3061         Fill in function.
3062         (profiling_state): New variable.
3063         (mcleanup_wrapper): New function.
3064         (_initialize_maint): Remove NOTYET, fix call to
3065         add_setshow_boolean_cmd for "maint set profile".
3066         * configure: Regenerated.
3067
3068 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
3069
3070         * Makefile.in (install-gdbtk): Install PNG images too.
3071
3072 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
3073
3074         * exec.c (text_start): Delete global variable.
3075         (exec_file_attach): Make text_start local to the function.
3076         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
3077         * valops.c (hand_function_call): Delete code that handles
3078         BEFORE_TEXT_END and AFTER_TEXT_END.
3079         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
3080         of CALL_DUMMY_LOCATION.
3081         * gdbarch.c: Regenerate.
3082         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
3083         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
3084         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
3085         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
3086         (text_end): Delete extern declaration.
3087
3088 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
3089
3090         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
3091         * blockframe.c (backtrace_below_main): Move to "frame.c".
3092         (frame_chain_valid): Delete check for backtrace_below_main.
3093         (_initialize_blockframe): Delete initialization, move ``set
3094         backtrace-below-main'' command to "frame.c".
3095         (do_flush_frames_sfunc): Delete function.
3096         * frame.c: Include "command.h" and "gdbcmd.h".
3097         (frame_type_from_pc): New function.
3098         (create_new_frame): Use frame_type_from_pc.
3099         (legacy_get_prev_frame): New function.
3100         (get_prev_frame): Rewrite.  When an old style frame, call
3101         legacy_get_prev_frame.  Otherwize, unwind the PC first.
3102         (_initialize_frame): Add ``set backtrace-below-main'' command.
3103         * Makefile.in (frame.o): Update dependencies.
3104
3105 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
3106
3107         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
3108         DEPRECATED_REGISTERS_INFO.
3109
3110 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
3111
3112         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
3113         Maintainers'.  Update `Various Maintainers'.
3114
3115 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
3116
3117         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
3118         * gdbarch.sh (POP_FRAME): Change to function with predicate.
3119         Suppress actual parameters when `-'.
3120         * gdbarch.h, gdbarch.c: Regenerate.
3121
3122 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
3123
3124         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
3125         code handling dummy frames.
3126
3127 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
3128
3129         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
3130         (struct frame_unwind): Add field pop.
3131         * frame.h (frame_pop): Declare.
3132         * frame.c (frame_saved_regs_pop): New function.
3133         (trad_frame_unwinder): Add frame_saved_regs_pop.
3134         (frame_pop): New function.
3135         * dummy-frame.c (dummy_frame_pop): New function.
3136         (discard_innermost_dummy): New function.
3137         (generic_pop_dummy_frame): Use discard_innermost_dummy.
3138         (dummy_frame_unwind): Add dummy_frame_pop.
3139         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
3140         * valops.c (hand_function_call): Ditto.
3141         * stack.c (return_command): Ditto.
3142
3143 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
3144
3145         * cris-tdep.c: Fix function declaration indentation.
3146         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
3147         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
3148         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
3149         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
3150         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
3151         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
3152
3153 2003-01-18  Michael Chastain  <mec@shout.net>
3154
3155         * README (Unpacking and Installation -- quick overview):
3156         Warn against ".../gdb-5.3/gdb/configure".
3157
3158 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
3159
3160         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
3161         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3162         (struct frame_unwind): Declare opaque.
3163         (dummy_frame_p): Declare function.
3164         * dummy-frame.c (dummy_frame_id_unwind): Make static.
3165         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3166         * dummy-frame.c: Include "frame-unwind.h".
3167         (dummy_frame_p): New function.
3168         (dummy_frame_unwind): New variable.
3169         * frame.c: Include "frame-unwind.h".
3170         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
3171         to use the new unwind field.
3172         (set_unwind_by_pc): Delete function.
3173         (create_new_frame, get_prev_frame): Set unwind field using
3174         frame_unwind_find_by_pc.
3175         (trad_frame_unwind, trad_frame_unwinder): New variables.
3176         * frame.h (trad_frame_unwind): Declare variable.
3177         (frame_id_unwind_ftype): Delete declaration.
3178         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
3179         (struct frame_unwind): Declare opaque.
3180         (struct frame_info): Replace the fields id_unwind, pc_unwind and
3181         register_unwind with a single unwind pointer.
3182         * frame-unwind.h, frame-unwind.c: New files.
3183         * Makefile.in (SFILES): Add frame-unwind.c.
3184         (frame_unwind_h): Define.
3185         (COMMON_OBS): Add frame-unwind.o.
3186         (frame-unwind.o): Specify dependencies.
3187         (frame.o, dummy-frame.o): Update dependencies.
3188         
3189 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
3190
3191         * ada-valprint.c: Eliminate PTR.
3192         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
3193         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
3194         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
3195         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
3196         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
3197         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
3198         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
3199         
3200 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
3201
3202         * main.c (captured_main): Don't use PTR.
3203         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
3204         * gdbtypes.c (lookup_primitive_typename): Ditto.
3205         (lookup_struct_elt_type): Ditto.
3206         * f-valprint.c (info_common_command): Ditto.
3207         (list_all_visible_commons): Ditto.
3208         * jv-typeprint.c (java_type_print_base): Ditto.
3209
3210         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
3211         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
3212         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
3213         i386-interix-nat.c and i386-interix-tdep.c.  Rename
3214         m68klinux-nat.c and m68klinux-tdep.c.  Rename
3215         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
3216         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
3217         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
3218         * main.c (captured_main): Use xfree, not free.
3219
3220 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
3221
3222         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
3223         ID back using a parameter.
3224         * frame.c (frame_id_unwind): Update call.
3225         (frame_saved_regs_id_unwind): Update.
3226         * dummy-frame.c (dummy_frame_id_unwind): Update function.
3227         * dummy-frame.h (struct frame_id): Add opaque declaration.
3228         (dummy_frame_id_unwind): Update declaration.
3229
3230 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
3231
3232         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
3233
3234 2003-01-15  Stephen P. Smith <ischis2@cox.net>
3235
3236         * MAINTAINERS (Stephen P. Smith): Updated email address.
3237
3238 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
3239
3240         Fix PR gdb/898
3241         * breakpoint.c (until_break_command): Add new argument.  Use it to
3242         decide whether to stop only at the current frame or not.
3243         * breakpoint.h (until_break_command): Update prototype.
3244         * infcmd.c (until_command): Add new argument to until_break_command
3245         call.
3246         (advance_command): New function.
3247         (_initialize_infcmd): Update help string for 'until' command.
3248         Add new 'advance' command.
3249
3250 2003-01-14  David Carlton  <carlton@math.stanford.edu>
3251
3252         * linespec.c (decode_line_1): Normalize comments.
3253         (set_flags): Ditto.
3254         (locate_first_half): Ditto.
3255         (decode_compound): Ditto.
3256         (symtab_from_filename): Ditto.
3257         (decode_all_digits): Ditto.
3258         (decode_dollar): Ditto.
3259         (find_methods): Ditto.
3260         (find_toplevel_char): Ditto.
3261
3262 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
3263
3264         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
3265         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
3266         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
3267         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
3268         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
3269         * language.c, language.h, m32r-tdep.c: Update copyright.
3270         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
3271         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
3272         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
3273         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
3274         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
3275         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
3276
3277 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
3278
3279         * stabsread.h (process_later, resolve_cfront_continuation):
3280         Obsolete.
3281         Update copyright years.
3282         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
3283         Update copyright year.
3284         * dbxread.c(struct cont_elem): Obsolete.
3285         (process_later, process_now): Obsolete functions. 
3286         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
3287         Update copyright year.
3288         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
3289         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
3290         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
3291         (parse_partial_symbols): Obsolete cfront support.
3292         * stabsread.c
3293         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
3294         macros.
3295         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
3296         read_cfront_baseclasses, read_cfront_member_functions,
3297         resolve_cfront_continuation,read_cfront_static_fields,
3298         copy_cfront_struct_fields): Obsolete functions.
3299         (define_symbol, read_one_struct_field): Obsolete cfront support.
3300         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
3301         Update Copyright year.
3302
3303 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
3304
3305         * stack.c (print_frame_info, print_stack_frame_base_stub,
3306         print_stack_frame_base, show_and_print_stack_frame_stub,
3307         show_and_print_stack_frame, print_only_stack_frame_stub,
3308         print_only_stack_frame): Delete functions.
3309         (print_stack_frame_stub): Call print_frame_info instead of
3310         print_frame_info_base.
3311         (print_frame_info_base): Rename to print_frame_info.
3312         (backtrace_command_1): Call print_frame_info, instead of
3313         print_frame_info_base.
3314         (current_frame_command): Call print_stack_frame, instead of
3315         print_only_stack_frame.
3316         (frame_command): Call print_stack_frame, instead of
3317         show_and_print_stack_frame.
3318         (up_command): Ditto.
3319         (down_command): Ditto.
3320         * frame.h (print_only_stack_frame): Delete prototype.
3321         * infrun.c (normal_stop): Call print_stack_frame, instead of
3322         show_and_print_stack_frame.
3323         * thread.c (info_threads_command): Call print_stack_frame, instead
3324         of print_only_stack_frame.
3325
3326 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
3327
3328         * README (Graphical interface to GDB): Update URL.  Point at
3329         gdb/links/.
3330
3331         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
3332         version match.
3333
3334 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
3335
3336         * symtab.c (find_pc_sect_line): Don't consider end-of-function
3337         lines.
3338
3339 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
3340
3341         * thread-db.c (attach_thread): Prototype.
3342         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
3343         thread information (ti), and valid flags (th_valid, ti_valid).
3344         (attach_thread): Move target_pid_to_str call to after the thread
3345         is added to GDB's list.  Initialize the cache.
3346         (thread_get_info_callback, thread_db_map_id2thr)
3347         (thread_db_get_info): New functions.
3348         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
3349         (thread_db_store_registers, thread_db_thread_alive)
3350         (thread_db_get_thread_local_address): Use them.
3351         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
3352         of calling error() for threads in unknown state.
3353
3354         (clear_lwpid_callback): New function.
3355         (thread_db_resume): Use it to clear the cache.
3356
3357 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
3358
3359         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
3360         (resume_callback): Remove dead code.
3361
3362 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
3363
3364         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
3365         predicate.
3366         * gdbarch.h, gdbarch.c: Regenerate.
3367         * stack.c (frame_info): Only initialize the saved registers when
3368         FRAME_INIT_SAVED_REGS_P.
3369         * frame.c (frame_saved_regs_register_unwind): Assert
3370         FRAME_INIT_SAVED_REGS_P.
3371         (deprecated_generic_get_saved_register): Ditto.
3372
3373 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
3374
3375         * source.c (openp): Squelch warning about "filename".
3376
3377 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
3378
3379         * source.c (openp): If the file does not exist don't necessarily
3380         search the path.
3381
3382 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
3383
3384         Fix PR gdb/872.
3385         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
3386         (integer_types_same_name_p): New function.
3387         (rank_one_type): Use it.
3388         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
3389
3390 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
3391
3392         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
3393         variables.
3394         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
3395         * configure.in: Add --with-sysroot.
3396         * configure: Regenerated.
3397         * main.c (gdb_sysroot): New variable.
3398         (captured_main): Initialize gdb_sysroot.
3399         * defs.h (gdb_sysroot): New extern declaration.
3400         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
3401
3402 2003-01-12  Michael Chastain  <mec@shout.net>
3403
3404         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
3405
3406 2003-01-12  Michael Chastain  <mec@shout.net>
3407
3408         * top.c (print_gdb_version): Bump copyright year to 2003.
3409
3410 2003-01-12  David Carlton  <carlton@bactrian.org>
3411
3412         * linespec.c (symtab_from_filename): Rename variable 's' to
3413         'file_symtab'.
3414
3415 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
3416
3417         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
3418         dummy frame.
3419         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
3420
3421 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
3422
3423         * d10v-tdep.c: Include "gdb_assert.h".
3424         (d10v_store_return_value): Rewrite to match current interface.
3425         (d10v_extract_struct_value_address): Ditto.
3426         (d10v_extract_return_value): Ditto.
3427         (d10v_gdbarch_init): Set store_restore_value,
3428         extract_struct_value_address and extract_return_value.
3429
3430 2003-01-12  J. Brobecker  <brobecker@gnat.com>
3431
3432         * hpread.c (set_namestring): New procedure replacing the
3433         SET_NAMESTRING macro.
3434         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
3435         by calls to set_namestring.
3436
3437 2003-01-11  J. Brobecker  <brobecker@gnat.com>
3438
3439         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
3440         a compilation warning.
3441         (hpread_process_one_debug_symbol): Likewise.
3442
3443 2003-01-10  David Carlton  <carlton@math.stanford.edu>
3444
3445         * linespec.c (decode_line_1): Rename variable 's' to
3446         'file_symtab'.
3447         (decode_all_digits): Rename argument 's' to 'file_symtab'.
3448         (decode_dollar): Ditto.
3449         (decode_variable): Ditto.
3450         (symbol_found): Ditto.
3451
3452 2003-01-09  Michael Chastain  <mec@shout.net>
3453
3454         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
3455
3456 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
3457
3458         * win32-nat.c (set_process_privilege): New function.
3459         (child_attach): Call set_process_privilege() to enable the
3460         SE_DEBUG_NAME user privilege if available in process token.
3461
3462 2003-01-10  J. Brobecker  <brobecker@gnat.com>
3463
3464         * hpread.c (hpread_process_one_debug_symbol): Fix a small
3465         compilation error in the previous revision.
3466
3467 2003-01-09  David Carlton  <carlton@math.stanford.edu>
3468
3469         * linespec.c: Update copyright.
3470
3471 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
3472
3473         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
3474         than inferior_ptid.
3475         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
3476
3477 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
3478
3479         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
3480         Update comments.
3481         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
3482         (frame_saved_regs_zalloc): Update.
3483         (frame_saved_regs_register_unwind): Update.
3484         (create_new_frame): Update.
3485         (get_prev_frame): Update.
3486         (frame_extra_info_zalloc): Update.
3487         (deprecated_get_frame_saved_regs): Update.
3488         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
3489         * cris-tdep.c: Update comment.
3490
3491         * somsolib.h: Fix function indentation.
3492         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
3493         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
3494         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
3495         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
3496         * somsolib.c, inftarg.c: Remove assignment in if conditional.
3497
3498         * infrun.c (follow_fork): Use ISO C definition.
3499         * expprint.c (print_subexp): Use xfree instead of free.
3500         * charset.c: Include "gdb_string.h" instead of <string.h>.
3501         (register_iconv_charsets): Use ISO C definition.
3502         (host_charset, target_charset): Ditto.
3503         * Makefile.in (charset.o): Update dependencies.
3504         (mi-cmd-env.o): Update dependencies.
3505
3506 2003-01-08  Andrew Cagney  <cagney@redhat.com>
3507
3508         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
3509         get_frame_base.
3510
3511 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
3512
3513         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
3514         build directories.  Save edited gdb output in Mbuild.log.  If a
3515         build fails, remove any final GDB executable.
3516
3517 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
3518
3519         * gdb_mbuild.sh: Edit the output of `maint print architecture'
3520         replacing hex constants with function names and stripping leading
3521         file name directory prefixes.
3522
3523 2003-01-08  Andrew Cagney  <cagney@redhat.com>
3524
3525         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
3526         get_frame_base.
3527
3528 2003-01-08  David Carlton  <carlton@math.stanford.edu>
3529
3530         * linespec.c (decode_line_1): Move code into decode_variable.
3531         (decode_variable): New function.
3532
3533 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
3534
3535         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
3536
3537 2003-01-08  Andrew Cagney  <cagney@redhat.com>
3538
3539         * cris-tdep.c (cris_frame_init_saved_regs): Use
3540         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
3541         saved_regs buffer.
3542         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3543         (sh64_nofp_frame_init_saved_regs): Ditto.
3544         (sh_fp_frame_init_saved_regs): Ditto.
3545         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
3546         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3547         * mcore-tdep.c (analyze_dummy_frame): Ditto.
3548         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3549
3550 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
3551
3552         * minsyms.c (lookup_minimal_symbol): Update comment.
3553         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
3554         (lookup_minimal_symbol_solib_trampoline): Likewise.
3555
3556 2003-01-08  Andrew Cagney  <cagney@redhat.com>
3557
3558         * d10v-tdep.c (d10v_init_extra_frame_info): Use
3559         frame_relative_level.
3560
3561         * alpha-tdep.c: Use get_frame_extra_info.
3562         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3563         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
3564         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3565         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
3566
3567         * alpha-tdep.c: Use get_next_frame.
3568         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3569         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3570         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
3571         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
3572         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
3573         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
3574         * xstormy16-tdep.c: Ditto.
3575         
3576 2003-01-07  Andrew Cagney  <cagney@redhat.com>
3577
3578         * alpha-tdep.c: Use get_frame_base.
3579         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3580         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3581         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3582         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3583         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
3584         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3585         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
3586         * config/sparc/tm-sparc.h: Ditto.
3587         
3588 2003-01-07  Andrew Cagney  <cagney@redhat.com>
3589
3590         * frame.c (deprecated_get_frame_context): New function.
3591         (deprecated_set_frame_context): New function.
3592         * frame.h (deprecated_get_frame_context): Declare.
3593         (deprecated_set_frame_context): Declare.
3594         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
3595         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
3596         
3597 2003-01-07  Andrew Cagney  <cagney@redhat.com>
3598
3599         * frame.c (deprecated_set_frame_next_hack): New function.
3600         (deprecated_set_frame_prev_hack): New function.
3601         * frame.h (deprecated_set_frame_next_hack): Declare.
3602         (deprecated_set_frame_prev_hack): Declare.
3603         * mcore-tdep.c (analyze_dummy_frame): Use
3604         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
3605         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3606
3607 2003-01-07  David Carlton  <carlton@math.stanford.edu>
3608
3609         * linespec.c (decode_line_1): Move code into decode_dollar.
3610         (decode_dollar): New function.
3611
3612 2003-01-07  Andrew Cagney  <cagney@redhat.com>
3613
3614         * arm-tdep.c (arm_init_extra_frame_info): Use
3615         deprecated_update_frame_base_hack.
3616         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
3617         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3618         (fix_frame_pointer): Ditto.
3619         (mn10300_analyze_prologue): Ditto.
3620
3621 2003-01-07  Andrew Cagney  <cagney@redhat.com>
3622
3623         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
3624         extra_info using frame_extra_info_zalloc.
3625         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
3626         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
3627         (sh64_init_extra_frame_info): Ditto.
3628         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
3629         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
3630         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3631         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
3632         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
3633         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
3634         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
3635         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
3636         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
3637         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
3638         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
3639         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
3640
3641         * mn10300-tdep.c (analyze_dummy_frame): Use
3642         deprecated_set_frame_extra_info_hack.
3643         * mcore-tdep.c (analyze_dummy_frame): Ditto.
3644
3645 2003-01-07  J. Brobecker  <brobecker@gnat.com>
3646
3647         * mdebugread.c (parse_symbol): Skip stProc entries which storage
3648         class is not scText. These do not define "real" procedures.
3649         (parse_partial_symbols): Likewise.
3650
3651 2003-01-06  Michael Snyder  <msnyder@redhat.com>
3652
3653         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
3654
3655 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
3656
3657         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
3658         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
3659         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
3660         deprecated_frame_xmalloc_with_cleanup.
3661         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
3662         deprecated_frame_xmalloc.
3663         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
3664         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
3665
3666 2003-01-06  Andrew Cagney  <cagney@redhat.com>
3667
3668         * x86-64-linux-tdep.c: Include "osabi.h".
3669         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
3670
3671         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
3672
3673 2003-01-06  Andrew Cagney  <cagney@redhat.com>
3674
3675         * MAINTAINERS (Target Instruction Set Architectures): Update
3676         arm-elf.  Can be built with -Werror, has been multiarched.
3677
3678         * value.h (unpack_long): Make buffer parameter constant.
3679         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
3680         * scm-lang.h (scm_parse): Ditto.
3681         * defs.h (extract_typed_address, extract_address): Ditto.
3682         (extract_long_unsigned_integer): Ditto.
3683         * inferior.h (unsigned_pointer_to_address): Ditto.
3684         (signed_pointer_to_address): Ditto.
3685         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
3686         * gdbarch.h, gdbarch.c: Regenerate.
3687         * findvar.c (extract_long_unsigned_integer): Update.
3688         (extract_address): Update.
3689         (extract_typed_address): Update.
3690         (unsigned_pointer_to_address): Update.
3691         * values.c (unpack_long): Update.
3692         (unpack_double): Update.
3693         (unpack_pointer): Update.
3694         (unpack_field_as_long): Update.
3695         * d10v-tdep.c (d10v_pointer_to_address): Update.
3696         * avr-tdep.c (avr_pointer_to_address): Update.
3697         * scm-lang.c (scm_unpack): Update.
3698         * findvar.c (signed_pointer_to_address): Update.
3699
3700 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
3701
3702         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore 
3703         since it is in i386-tdep.c.
3704
3705 2003-01-06  J. Brobecker  <brobecker@gnat.com>
3706
3707         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
3708         failure introduced in the previous change.
3709
3710 2003-01-05  Michael Chastain  <mec@shout.net>
3711
3712         * README: Remove references to deleted remote-*.c files:
3713         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
3714         remote-nrom.c, remote-os9k.c, remote-udi.c.
3715
3716 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
3717
3718         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
3719         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
3720         i386_get_longjmp_target.
3721
3722 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
3723
3724         * arm-tdep.c (prologue_cache): Change to a pointer.
3725         (_initialize_arm_tdep): Allocate prologue_cache.
3726         (check_prologue_cache): Update.
3727         (save_prologue_cache): Update.
3728         (arm_gdbarch_init): Update.
3729
3730 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
3731
3732         * stabsread.c (update_method_name_from_physname): Call complaint()
3733         instead of error.
3734
3735 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
3736
3737         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
3738         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
3739         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
3740
3741         * blockframe.c: Include "gdbcmd.h" and "command.h".
3742         (backtrace_below_main): New variable.
3743         (file_frame_chain_valid, func_frame_chain_valid)
3744         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
3745         (generic_func_frame_chain_valid): Remove functions.
3746         (frame_chain_valid, do_flush_frames_sfunc): New functions.
3747         (_initialize_blockframe): New function.
3748         * Makefile.in (blockframe.o): Update dependencies.
3749         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
3750         comment.  Call frame_chain_valid ().
3751         * frame.h: Remove old prototypes.  Add prototype for
3752         frame_chain_valid and update comments to match.
3753         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
3754         Remove old comment.
3755         * gdbarch.h: Regenerated.
3756         * gdbarch.c: Regenerated.
3757
3758         * alpha-tdep.c (alpha_gdbarch_init): Don't call
3759         set_gdbarch_frame_chain_valid.
3760         * avr-tdep.c (avr_gdbarch_init): Likewise.
3761         * cris-tdep.c (cris_gdbarch_init): Likewise.
3762         * frv-tdep.c (frv_gdbarch_init): Likewise.
3763         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3764         * i386-tdep.c (i386_svr4_init_abi): Likewise.
3765         (i386_nw_init_abi): Likewise.
3766         (i386_gdbarch_init): Likewise.
3767         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3768         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3769         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3770         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3771         * mips-tdep.c (mips_gdbarch_init): Likewise.
3772         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3773         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
3774         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
3775         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3776         * s390-tdep.c (s390_gdbarch_init): Likewise.
3777         * sh-tdep.c (sh_gdbarch_init): Likewise.
3778         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3779         * v850-tdep.c (v850_gdbarch_init): Likewise.
3780         * vax-tdep.c (vax_gdbarch_init): Likewise.
3781         * x86-64-tdep.c (x86_64_init_abi): Likewise.
3782
3783         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
3784         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
3785         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
3786         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
3787         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
3788         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
3789         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
3790         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
3791
3792 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
3793
3794         * Makefile.in (acconfig_h): Remove incorrect macro.
3795         (config_h): Define.
3796         (osabi.o): Update dependencies.
3797         * configure.tgt: Set gdb_osabi based on target triplet.
3798         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
3799         * configure: Regenerated.
3800         * config.in: Regenerated.
3801         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
3802         (GDB_OSABI_DEFAULT): Define if not already defined.
3803         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
3804         (set_osabi_string): New variables.
3805         (gdbarch_register_osabi): Add new OS ABI to
3806         gdb_osabi_available_names.
3807         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
3808         (set_osabi, show_osabi): New functions.
3809         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
3810
3811 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
3812
3813         * arch-utils.c (gdbarch_info_init): Set osabi to
3814         GDB_OSABI_UNINITIALIZED.
3815         * gdbarch.sh: Add osabi to struct gdbarch and to struct
3816         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
3817         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
3818         * gdbarch.c: Regenerated.
3819         * gdbarch.h: Regenerated.
3820         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
3821         there's no BFD.
3822         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
3823         * osabi.h (enum gdb_osabi): Move to defs.h.
3824         (gdbarch_init_osabi): Update prototype.
3825         * defs.h (enum gdb_osabi): Moved here.
3826         * Makefile.in: Update dependencies.
3827
3828         * alpha-tdep.h: Don't include "osabi.h".
3829         (struct gdbarch_tdep): Remove osabi member.
3830         * alpha-tdep.c: Include "osabi.h".
3831         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
3832         iterate over arches.  Update call to gdbarch_init_osabi.
3833         (alpha_dump_tdep): Don't dump osabi.
3834         * alpha-linux-tdep.c: Include "osabi.h".
3835         * alpha-osf1-tdep.c: Include "osabi.h".
3836         * alphafbsd-tdep.c: Include "osabi.h".
3837         * alphanbsd-tdep.c: Include "osabi.h".
3838
3839         * arm-tdep.h: Don't include "osabi.h".
3840         (struct gdbarch_tdep): Remove osabi member.
3841         * arm-tdep.c: Include "osabi.h".
3842         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
3843         iterate over arches.  Update call to gdbarch_init_osabi.
3844         (arm_dump_tdep): Don't dump osabi.
3845         * arm-linux-tdep.c: Include "osabi.h".
3846         * armnbsd-tdep.c: Include "osabi.h".
3847
3848         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
3849         Update call to gdbarch_init_osabi.
3850
3851         * i386-tdep.h: Don't include "osabi.h".
3852         (struct gdbarch_tdep): Remove osabi member.
3853         * i386-tdep.c: Include "osabi.h".
3854         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
3855         iterate over arches.  Update call to gdbarch_init_osabi.
3856         (i386_dump_tdep): Don't dump osabi.
3857         * i386-linux-tdep.c: Include "osabi.h".
3858         * i386-sol2-tdep.c: Include "osabi.h".
3859         * i386bsd-tdep.c: Include "osabi.h".
3860         * i386gnu-tdep.c: Include "osabi.h".
3861         * i386ly-tdep.c: Include "osabi.h".
3862         * i386nbsd-tdep.c: Include "osabi.h".
3863         * i386obsd-tdep.c: Include "osabi.h".
3864
3865         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
3866         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
3867         check osabi when iterating over arches.  Update call to
3868         gdbarch_init_osabi.
3869         (mips_dump_tdep): Don't dump osabi.
3870
3871         * ns32k-tdep.h: Don't include "osabi.h".
3872         (struct gdbarch_tdep): Remove.
3873         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
3874         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
3875         allocate tdep.  Update call to gdbarch_init_osabi.
3876         (ns32k_dump_tdep): Remove.
3877         (_initialize_ns32k_tdep): Update call to gdbarch_register.
3878         * ns32knbsd-tdep.c: Include "osabi.h".
3879
3880         * ppc-tdep.h: Don't include "osabi.h".
3881         (struct gdbarch_tdep): Remove osabi member.
3882         * rs6000-tdep.c: Include "osabi.h".
3883         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
3884         osabi when iterating over arches.  Update call to
3885         gdbarch_init_osabi.
3886         (rs6000_dump_tdep): Don't dump osabi.
3887         * ppc-linux-tdep.c: Include "osabi.h".
3888         * ppcnbsd-tdep.c: Include "osabi.h".
3889
3890         * sh-tdep.h: Don't include "osabi.h".
3891         (struct gdbarch_tdep): Remove osabi member.
3892         * sh-tdep.c: Include "osabi.h".
3893         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
3894         iterate over arches.  Update call to gdbarch_init_osabi.
3895         (sh_dump_tdep): Don't dump osabi.
3896         * shnbsd-tdep.c: Include "osabi.h".
3897
3898         * sparc-tdep.c: Include "osabi.h".
3899         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
3900         iterate over arches.  Update call to gdbarch_init_osabi.
3901         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
3902         tdep structure.
3903
3904         * vax-tdep.h: Don't include "osabi.h".
3905         (struct gdbarch_tdep): Remove.
3906         * vax-tdep.c: Include "osabi.h".
3907         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
3908         iterate over arches.  Don't allocate tdep.  Update call
3909         to gdbarch_init_osabi.
3910         (vax_dump_tdep): Remove.
3911         (_initialize_vax_tdep): Update call to gdbarch_register.
3912
3913 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
3914
3915         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
3916         entirely.
3917         (breakpoint_re_set_one): Don't fetch the value for a disabled
3918         watchpoint.
3919
3920 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
3921
3922         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
3923         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
3924         (COERCE_FLOAT_TO_DOUBLE): Remove.
3925         * gdbarch.c: Regenerate.
3926         * gdbarch.h: Regenerate.
3927         * Makefile.in: Remove value_h from gdbarch_h.
3928         * valops.c (coerce_float_to_double): New variable.
3929         (default_coerce_float_to_double): Remove.
3930         (standard_coerce_float_to_double): Remove.
3931         (value_arg_coerce): Use coerce_float_to_double.
3932         (_initialize_valops): Add "set coerce-float-to-double".
3933         * value.h (default_coerce_float_to_double): Remove prototype.
3934         (standard_coerce_float_to_double): Remove prototype.
3935
3936         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
3937         prototyped.
3938         * mdebugread.c (parse_symbol): Likewise.
3939         * stabsread.c (define_symbol): Mark all functions as prototyped.
3940
3941         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
3942         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
3943         set_gdbarch_coerce_float_to_double.
3944         * arm-tdep.c (arm_gdbarch_init): Likewise.
3945         * frv-tdep.c (frv_gdbarch_init): Likewise.
3946         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
3947         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
3948         * mips-tdep.c (mips_gdbarch_init): Likewise.
3949         (mips_coerce_float_to_double): Remove.
3950         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3951         (rs6000_coerce_float_to_double): Remove.
3952         * s390-tdep.c (s390_gdbarch_init): Likewise.
3953         * sh-tdep.c (sh_gdbarch_init): Likewise.
3954         (sh_coerce_float_to_double): Remove.
3955         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3956         (sparc_coerce_float_to_double): Remove.
3957         * v850-tdep.c (v850_gdbarch_init): Likewise.
3958         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3959         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3960         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
3961         (hppa_coerce_float_to_double): Remove prototype.
3962         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3963
3964 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
3965
3966         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
3967
3968 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
3969
3970         Suggested by Stewart Brown <sb24@avaya.com>:
3971         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
3972         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
3973         (c_type_print_varspec_suffix): Likewise.
3974
3975 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
3976
3977         * configure.in: Don't set and AC_SUBST SUBDIRS.
3978         * configure: Regenerated.
3979
3980         * configure.in: Remove code dealing with shared libraries.
3981         * Makefile.in: Remove HLDFLAGS and HLDENV.
3982         * configure: Regenerated.
3983
3984 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
3985
3986         * frame.c (deprecated_frame_xmalloc): New function.
3987         (deprecated_set_frame_saved_regs_hack): New function.
3988         (deprecated_set_frame_extra_info_hack): New function.
3989         * frame.h (deprecated_frame_xmalloc): Declare.
3990         (deprecated_set_frame_saved_regs_hack): Declare.
3991         (deprecated_set_frame_extra_info_hack): Declare.
3992
3993 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
3994
3995         * configure.in: Move code that provides the --enable-gdbtk option
3996         right after the code that handles the --enable-tui option, and
3997         polish it somewhat.
3998         * configure: Regenerated.
3999
4000         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
4001         AC_CHECK_FUNCS and remove the old check for pread64.
4002         * acinclude.m4 (AC_GNU_SOURCE): New macro.
4003         * acconfig.h (_GNU_SOURCE): Add.
4004         (HAVE_PREAD64): Remove.
4005         * configure, aclocal.m4, config.in: Regenerated.
4006
4007 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
4008
4009         * alpha-tdep.c: Use get_frame_saved_regs.
4010         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4011         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
4012         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
4013         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
4014         * vax-tdep.c, xstormy16-tdep.c: Ditto.
4015
4016 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
4017
4018         * configure.in: Remove all use of the SUBDIRS variable; add
4019         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
4020         code providing the --enable-multi-ice option, and move it right in
4021         front of the code that checks whether gdbserver is supported.
4022         Polish that too.
4023         * configure: Regenerated.
4024         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
4025         @SUBDIRS@.
4026
4027 2003-01-03  Andrew Cagney  <cagney@redhat.com>
4028
4029         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
4030         * avr-tdep.c, cris-tdep.c: Ditto.
4031         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
4032         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4033         
4034 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
4035
4036         * configure.in: Remove --enable-netrom option.
4037         * configure: Regenerated.
4038
4039 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
4040
4041         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
4042         declaration for `struct re_pattern_buffer' instead.
4043         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
4044
4045 2003-01-03  J. Brobecker  <brobecker@gnat.com>
4046
4047         * mdebugread.c (parse_symbol): Count until the stEnd matching
4048         the structure name.
4049
4050 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
4051
4052         * configure.in: Remove --with-cpu option.
4053         subscripts.  Remove evil changequotes here.
4054         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
4055         * config.in, configure: Regenerated.
4056         
4057         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
4058         * configure.in: Cleanup section that sources GDB and BFD configure
4059         subscripts.  Remove evil changequotes here.
4060         * config.in, configure: Regenerated.
4061
4062 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
4063
4064         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
4065         frame accessor methods.
4066         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
4067         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
4068         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
4069         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
4070         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
4071         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
4072         * z8k-tdep.c: Ditto.
4073         
4074 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
4075
4076         * configure.in: Remove UI_OUT configuration code.
4077         * ada-lang.c: Update assuming UI_OUT is always true.
4078         * Makefile.in (UIOUT_CFLAGS): Remove.
4079         * configure: Regenerated.
4080         * TODO: Remove blurb about elimination of -DUI_OUT.
4081
4082         * configure.in: Move code that provides the --enable-gdbcli,
4083         --enable-gdbmi options right before the code that handles the
4084         --enable-tui option.  Polish a bit.
4085         * configure: Regenerated.
4086
4087         * configure.in: Rewrite check for GNU regex and the
4088         --without-included regex option, and move it into the "Checks for
4089         library functions" section.  This makes us use the system regex
4090         again by default on systems with version 2 of the GNU C library.
4091         This was apparently broken.
4092         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
4093         * acconfig.h (USE_INCLUDED_REGEX): Remove.
4094         * config.in, configure: Regenerated.
4095
4096         * configure.in: Move code that provides the --enable-tui option
4097         before the "Checks for libraries" section.  Polish the code
4098         somewhat and set need_curses to yes if we build the TUI.  Rewrite
4099         code that looks for a library providing termcap functionality to
4100         match more closely what's done in the Readline library, and move
4101         it into to the "Checks for libraries" section.
4102         * configure: Regenerated.
4103         * Makefile.in (TERMCAP): Remove variable.
4104         * config/i386/go32.mh (TERMCAP): Remove variable.
4105
4106 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
4107
4108         * MAINTAINERS: Mention gdb_mbuild.sh.
4109         * gdb_mbuild.sh: Rewrite.
4110
4111 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
4112
4113         * configure.in: Fix typo in last change.
4114         * config.in, configure: Regenerated.
4115
4116 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
4117
4118         * valarith.c (value_binop): Delete obsolete code and comments.
4119         * configure.host: Ditto.
4120         * buildsym.h (make_blockvector): Ditto.
4121         * buildsym.c (make_blockvector): Ditto.
4122         * defs.h (enum language): Ditto.
4123         (chill_demangle): Ditto.
4124         * elfread.c (elf_symtab_read): Ditto.
4125         * dwarfread.c (CHILL_PRODUCER): Ditto.
4126         (set_cu_language): Ditto.
4127         (handle_producer): Ditto.
4128         * expprint.c (print_subexp): Ditto.
4129         * gdbtypes.c (chill_varying_type): Ditto.
4130         * gdbtypes.h (builtin_type_chill_bool): Ditto.
4131         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
4132         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
4133         (chill_varying_type): Ditto.
4134         * language.h (_LANG_chill): Ditto.
4135         * language.c (binop_result_type, integral_type): Ditto.
4136         (character_type, string_type, structured_type): Ditto.
4137         (lang_bool_type, binop_type_check): Ditto.
4138         * stabsread.h (os9k_stabs): Ditto.
4139         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
4140         (define_symbol, read_type, read_struct_fields): Ditto.
4141         (read_array_type, read_enum_type, read_huge_number): Ditto.
4142         (read_range_type, start_stabs): Ditto.
4143         * symfile.c (init_filename_language_table): Ditto.
4144         (add_psymbol_with_dem_name_to_list): Ditto.
4145         * symtab.c (symbol_init_language_specific): Ditto.
4146         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
4147         * symtab.h (struct general_symbol_info): Ditto.
4148         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4149         * typeprint.c (typedef_print): Ditto.
4150         * utils.c (fprintf_symbol_filtered): Ditto.
4151         * valops.c (value_cast, search_struct_field, value_slice): Delete
4152         obsolete code.
4153         (varying_to_slice): Delete function.
4154         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
4155         (varying_to_slice): Delete declaration.
4156         * MAINTAINERS: Update.
4157
4158 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
4159
4160         * configure.in: Reorganize "Checks for library functions section"
4161         a bit.  Remove check for `btowc' and `isascii' functions.
4162         * configure: Regenerated.
4163
4164         * acconfig.h (_MSE_INT_H): Remove.
4165         * configure.in: Create "Checks for header files" section, and move
4166         appropriate tests there.  Don't check for objlist.h, wchar.h,
4167         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
4168         misdetection fix.  Also add "Checks for types", "Checks for
4169         compiler characteristics" and "Checks for library functions"
4170         sections.
4171         * config.in, configure: Regenerated.
4172
4173         * configure.in: Create "Checks for programs" section, and move
4174         appropriate tests there.
4175
4176 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
4177
4178         * configure.in: Create "Checks for libraries" section, and move
4179         appropriate tests there.  Cleanup check for wctype in libw.  Use
4180         AC_SEARCH_LIBS to see whether we need libsocket.
4181         * configure: Regenerated.
4182
4183 For older changes see ChangeLog-2002
4184 \f
4185 Local Variables:
4186 mode: change-log
4187 left-margin: 8
4188 fill-column: 74
4189 version-control: never
4190 End: