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