2003-01-10 David Carlton <carlton@math.stanford.edu>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-01-10  David Carlton  <carlton@math.stanford.edu>
2
3         * linespec.c (decode_line_1): Rename variable 's' to
4         'file_symtab'.
5         (decode_all_digits): Rename argument 's' to 'file_symtab'.
6         (decode_dollar): Ditto.
7         (decode_variable): Ditto.
8         (symbol_found): Ditto.
9
10 2003-01-09  Michael Chastain  <mec@shout.net>
11
12         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13
14 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
15
16         * win32-nat.c (set_process_privilege): New function.
17         (child_attach): Call set_process_privilege() to enable the
18         SE_DEBUG_NAME user privilege if available in process token.
19
20 2003-01-10  J. Brobecker  <brobecker@gnat.com>
21
22         * hpread.c (hpread_process_one_debug_symbol): Fix a small
23         compilation error in the previous revision.
24
25 2003-01-09  David Carlton  <carlton@math.stanford.edu>
26
27         * linespec.c: Update copyright.
28
29 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
30
31         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
32         than inferior_ptid.
33         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
34
35 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
36
37         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
38         Update comments.
39         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
40         (frame_saved_regs_zalloc): Update.
41         (frame_saved_regs_register_unwind): Update.
42         (create_new_frame): Update.
43         (get_prev_frame): Update.
44         (frame_extra_info_zalloc): Update.
45         (deprecated_get_frame_saved_regs): Update.
46         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
47         * cris-tdep.c: Update comment.
48
49         * somsolib.h: Fix function indentation.
50         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
51         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
52         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
53         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
54         * somsolib.c, inftarg.c: Remove assignment in if conditional.
55
56         * infrun.c (follow_fork): Use ISO C definition.
57         * expprint.c (print_subexp): Use xfree instead of free.
58         * charset.c: Include "gdb_string.h" instead of <string.h>.
59         (register_iconv_charsets): Use ISO C definition.
60         (host_charset, target_charset): Ditto.
61         * Makefile.in (charset.o): Update dependencies.
62         (mi-cmd-env.o): Update dependencies.
63
64 2003-01-08  Andrew Cagney  <cagney@redhat.com>
65
66         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
67         get_frame_base.
68
69 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
70
71         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
72         build directories.  Save edited gdb output in Mbuild.log.  If a
73         build fails, remove any final GDB executable.
74
75 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
76
77         * gdb_mbuild.sh: Edit the output of `maint print architecture'
78         replacing hex constants with function names and stripping leading
79         file name directory prefixes.
80
81 2003-01-08  Andrew Cagney  <cagney@redhat.com>
82
83         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
84         get_frame_base.
85
86 2003-01-08  David Carlton  <carlton@math.stanford.edu>
87
88         * linespec.c (decode_line_1): Move code into decode_variable.
89         (decode_variable): New function.
90
91 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
92
93         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
94
95 2003-01-08  Andrew Cagney  <cagney@redhat.com>
96
97         * cris-tdep.c (cris_frame_init_saved_regs): Use
98         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
99         saved_regs buffer.
100         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
101         (sh64_nofp_frame_init_saved_regs): Ditto.
102         (sh_fp_frame_init_saved_regs): Ditto.
103         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
104         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
105         * mcore-tdep.c (analyze_dummy_frame): Ditto.
106         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
107
108 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
109
110         * minsyms.c (lookup_minimal_symbol): Update comment.
111         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
112         (lookup_minimal_symbol_solib_trampoline): Likewise.
113
114 2003-01-08  Andrew Cagney  <cagney@redhat.com>
115
116         * d10v-tdep.c (d10v_init_extra_frame_info): Use
117         frame_relative_level.
118
119         * alpha-tdep.c: Use get_frame_extra_info.
120         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
121         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
122         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
123         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
124
125         * alpha-tdep.c: Use get_next_frame.
126         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
127         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
128         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
129         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
130         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
131         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
132         * xstormy16-tdep.c: Ditto.
133         
134 2003-01-07  Andrew Cagney  <cagney@redhat.com>
135
136         * alpha-tdep.c: Use get_frame_base.
137         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
138         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
139         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
140         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
141         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
142         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
143         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
144         * config/sparc/tm-sparc.h: Ditto.
145         
146 2003-01-07  Andrew Cagney  <cagney@redhat.com>
147
148         * frame.c (deprecated_get_frame_context): New function.
149         (deprecated_set_frame_context): New function.
150         * frame.h (deprecated_get_frame_context): Declare.
151         (deprecated_set_frame_context): Declare.
152         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
153         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
154         
155 2003-01-07  Andrew Cagney  <cagney@redhat.com>
156
157         * frame.c (deprecated_set_frame_next_hack): New function.
158         (deprecated_set_frame_prev_hack): New function.
159         * frame.h (deprecated_set_frame_next_hack): Declare.
160         (deprecated_set_frame_prev_hack): Declare.
161         * mcore-tdep.c (analyze_dummy_frame): Use
162         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
163         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
164
165 2003-01-07  David Carlton  <carlton@math.stanford.edu>
166
167         * linespec.c (decode_line_1): Move code into decode_dollar.
168         (decode_dollar): New function.
169
170 2003-01-07  Andrew Cagney  <cagney@redhat.com>
171
172         * arm-tdep.c (arm_init_extra_frame_info): Use
173         deprecated_update_frame_base_hack.
174         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
175         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
176         (fix_frame_pointer): Ditto.
177         (mn10300_analyze_prologue): Ditto.
178
179 2003-01-07  Andrew Cagney  <cagney@redhat.com>
180
181         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
182         extra_info using frame_extra_info_zalloc.
183         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
184         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
185         (sh64_init_extra_frame_info): Ditto.
186         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
187         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
188         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
189         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
190         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
191         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
192         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
193         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
194         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
195         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
196         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
197         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
198
199         * mn10300-tdep.c (analyze_dummy_frame): Use
200         deprecated_set_frame_extra_info_hack.
201         * mcore-tdep.c (analyze_dummy_frame): Ditto.
202
203 2003-01-07  J. Brobecker  <brobecker@gnat.com>
204
205         * mdebugread.c (parse_symbol): Skip stProc entries which storage
206         class is not scText. These do not define "real" procedures.
207         (parse_partial_symbols): Likewise.
208
209 2003-01-06  Michael Snyder  <msnyder@redhat.com>
210
211         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
212
213 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
214
215         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
216         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
217         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
218         deprecated_frame_xmalloc_with_cleanup.
219         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
220         deprecated_frame_xmalloc.
221         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
222         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
223
224 2003-01-06  Andrew Cagney  <cagney@redhat.com>
225
226         * x86-64-linux-tdep.c: Include "osabi.h".
227         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
228
229         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
230
231 2003-01-06  Andrew Cagney  <cagney@redhat.com>
232
233         * MAINTAINERS (Target Instruction Set Architectures): Update
234         arm-elf.  Can be built with -Werror, has been multiarched.
235
236         * value.h (unpack_long): Make buffer parameter constant.
237         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
238         * scm-lang.h (scm_parse): Ditto.
239         * defs.h (extract_typed_address, extract_address): Ditto.
240         (extract_long_unsigned_integer): Ditto.
241         * inferior.h (unsigned_pointer_to_address): Ditto.
242         (signed_pointer_to_address): Ditto.
243         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
244         * gdbarch.h, gdbarch.c: Regenerate.
245         * findvar.c (extract_long_unsigned_integer): Update.
246         (extract_address): Update.
247         (extract_typed_address): Update.
248         (unsigned_pointer_to_address): Update.
249         * values.c (unpack_long): Update.
250         (unpack_double): Update.
251         (unpack_pointer): Update.
252         (unpack_field_as_long): Update.
253         * d10v-tdep.c (d10v_pointer_to_address): Update.
254         * avr-tdep.c (avr_pointer_to_address): Update.
255         * scm-lang.c (scm_unpack): Update.
256         * findvar.c (signed_pointer_to_address): Update.
257
258 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
259
260         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore 
261         since it is in i386-tdep.c.
262
263 2003-01-06  J. Brobecker  <brobecker@gnat.com>
264
265         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
266         failure introduced in the previous change.
267
268 2003-01-05  Michael Chastain  <mec@shout.net>
269
270         * README: Remove references to deleted remote-*.c files:
271         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
272         remote-nrom.c, remote-os9k.c, remote-udi.c.
273
274 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
275
276         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
277         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
278         i386_get_longjmp_target.
279
280 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
281
282         * arm-tdep.c (prologue_cache): Change to a pointer.
283         (_initialize_arm_tdep): Allocate prologue_cache.
284         (check_prologue_cache): Update.
285         (save_prologue_cache): Update.
286         (arm_gdbarch_init): Update.
287
288 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
289
290         * stabsread.c (update_method_name_from_physname): Call complaint()
291         instead of error.
292
293 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
294
295         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
296         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
297         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
298
299         * blockframe.c: Include "gdbcmd.h" and "command.h".
300         (backtrace_below_main): New variable.
301         (file_frame_chain_valid, func_frame_chain_valid)
302         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
303         (generic_func_frame_chain_valid): Remove functions.
304         (frame_chain_valid, do_flush_frames_sfunc): New functions.
305         (_initialize_blockframe): New function.
306         * Makefile.in (blockframe.o): Update dependencies.
307         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
308         comment.  Call frame_chain_valid ().
309         * frame.h: Remove old prototypes.  Add prototype for
310         frame_chain_valid and update comments to match.
311         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
312         Remove old comment.
313         * gdbarch.h: Regenerated.
314         * gdbarch.c: Regenerated.
315
316         * alpha-tdep.c (alpha_gdbarch_init): Don't call
317         set_gdbarch_frame_chain_valid.
318         * avr-tdep.c (avr_gdbarch_init): Likewise.
319         * cris-tdep.c (cris_gdbarch_init): Likewise.
320         * frv-tdep.c (frv_gdbarch_init): Likewise.
321         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
322         * i386-tdep.c (i386_svr4_init_abi): Likewise.
323         (i386_nw_init_abi): Likewise.
324         (i386_gdbarch_init): Likewise.
325         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
326         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
327         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
328         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
329         * mips-tdep.c (mips_gdbarch_init): Likewise.
330         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
331         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
332         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
333         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
334         * s390-tdep.c (s390_gdbarch_init): Likewise.
335         * sh-tdep.c (sh_gdbarch_init): Likewise.
336         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
337         * v850-tdep.c (v850_gdbarch_init): Likewise.
338         * vax-tdep.c (vax_gdbarch_init): Likewise.
339         * x86-64-tdep.c (x86_64_init_abi): Likewise.
340
341         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
342         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
343         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
344         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
345         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
346         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
347         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
348         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
349
350 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
351
352         * Makefile.in (acconfig_h): Remove incorrect macro.
353         (config_h): Define.
354         (osabi.o): Update dependencies.
355         * configure.tgt: Set gdb_osabi based on target triplet.
356         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
357         * configure: Regenerated.
358         * config.in: Regenerated.
359         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
360         (GDB_OSABI_DEFAULT): Define if not already defined.
361         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
362         (set_osabi_string): New variables.
363         (gdbarch_register_osabi): Add new OS ABI to
364         gdb_osabi_available_names.
365         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
366         (set_osabi, show_osabi): New functions.
367         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
368
369 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
370
371         * arch-utils.c (gdbarch_info_init): Set osabi to
372         GDB_OSABI_UNINITIALIZED.
373         * gdbarch.sh: Add osabi to struct gdbarch and to struct
374         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
375         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
376         * gdbarch.c: Regenerated.
377         * gdbarch.h: Regenerated.
378         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
379         there's no BFD.
380         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
381         * osabi.h (enum gdb_osabi): Move to defs.h.
382         (gdbarch_init_osabi): Update prototype.
383         * defs.h (enum gdb_osabi): Moved here.
384         * Makefile.in: Update dependencies.
385
386         * alpha-tdep.h: Don't include "osabi.h".
387         (struct gdbarch_tdep): Remove osabi member.
388         * alpha-tdep.c: Include "osabi.h".
389         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
390         iterate over arches.  Update call to gdbarch_init_osabi.
391         (alpha_dump_tdep): Don't dump osabi.
392         * alpha-linux-tdep.c: Include "osabi.h".
393         * alpha-osf1-tdep.c: Include "osabi.h".
394         * alphafbsd-tdep.c: Include "osabi.h".
395         * alphanbsd-tdep.c: Include "osabi.h".
396
397         * arm-tdep.h: Don't include "osabi.h".
398         (struct gdbarch_tdep): Remove osabi member.
399         * arm-tdep.c: Include "osabi.h".
400         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
401         iterate over arches.  Update call to gdbarch_init_osabi.
402         (arm_dump_tdep): Don't dump osabi.
403         * arm-linux-tdep.c: Include "osabi.h".
404         * armnbsd-tdep.c: Include "osabi.h".
405
406         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
407         Update call to gdbarch_init_osabi.
408
409         * i386-tdep.h: Don't include "osabi.h".
410         (struct gdbarch_tdep): Remove osabi member.
411         * i386-tdep.c: Include "osabi.h".
412         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
413         iterate over arches.  Update call to gdbarch_init_osabi.
414         (i386_dump_tdep): Don't dump osabi.
415         * i386-linux-tdep.c: Include "osabi.h".
416         * i386-sol2-tdep.c: Include "osabi.h".
417         * i386bsd-tdep.c: Include "osabi.h".
418         * i386gnu-tdep.c: Include "osabi.h".
419         * i386ly-tdep.c: Include "osabi.h".
420         * i386nbsd-tdep.c: Include "osabi.h".
421         * i386obsd-tdep.c: Include "osabi.h".
422
423         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
424         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
425         check osabi when iterating over arches.  Update call to
426         gdbarch_init_osabi.
427         (mips_dump_tdep): Don't dump osabi.
428
429         * ns32k-tdep.h: Don't include "osabi.h".
430         (struct gdbarch_tdep): Remove.
431         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
432         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
433         allocate tdep.  Update call to gdbarch_init_osabi.
434         (ns32k_dump_tdep): Remove.
435         (_initialize_ns32k_tdep): Update call to gdbarch_register.
436         * ns32knbsd-tdep.c: Include "osabi.h".
437
438         * ppc-tdep.h: Don't include "osabi.h".
439         (struct gdbarch_tdep): Remove osabi member.
440         * rs6000-tdep.c: Include "osabi.h".
441         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
442         osabi when iterating over arches.  Update call to
443         gdbarch_init_osabi.
444         (rs6000_dump_tdep): Don't dump osabi.
445         * ppc-linux-tdep.c: Include "osabi.h".
446         * ppcnbsd-tdep.c: Include "osabi.h".
447
448         * sh-tdep.h: Don't include "osabi.h".
449         (struct gdbarch_tdep): Remove osabi member.
450         * sh-tdep.c: Include "osabi.h".
451         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
452         iterate over arches.  Update call to gdbarch_init_osabi.
453         (sh_dump_tdep): Don't dump osabi.
454         * shnbsd-tdep.c: Include "osabi.h".
455
456         * sparc-tdep.c: Include "osabi.h".
457         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
458         iterate over arches.  Update call to gdbarch_init_osabi.
459         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
460         tdep structure.
461
462         * vax-tdep.h: Don't include "osabi.h".
463         (struct gdbarch_tdep): Remove.
464         * vax-tdep.c: Include "osabi.h".
465         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
466         iterate over arches.  Don't allocate tdep.  Update call
467         to gdbarch_init_osabi.
468         (vax_dump_tdep): Remove.
469         (_initialize_vax_tdep): Update call to gdbarch_register.
470
471 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
472
473         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
474         entirely.
475         (breakpoint_re_set_one): Don't fetch the value for a disabled
476         watchpoint.
477
478 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
479
480         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
481         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
482         (COERCE_FLOAT_TO_DOUBLE): Remove.
483         * gdbarch.c: Regenerate.
484         * gdbarch.h: Regenerate.
485         * Makefile.in: Remove value_h from gdbarch_h.
486         * valops.c (coerce_float_to_double): New variable.
487         (default_coerce_float_to_double): Remove.
488         (standard_coerce_float_to_double): Remove.
489         (value_arg_coerce): Use coerce_float_to_double.
490         (_initialize_valops): Add "set coerce-float-to-double".
491         * value.h (default_coerce_float_to_double): Remove prototype.
492         (standard_coerce_float_to_double): Remove prototype.
493
494         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
495         prototyped.
496         * mdebugread.c (parse_symbol): Likewise.
497         * stabsread.c (define_symbol): Mark all functions as prototyped.
498
499         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
500         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
501         set_gdbarch_coerce_float_to_double.
502         * arm-tdep.c (arm_gdbarch_init): Likewise.
503         * frv-tdep.c (frv_gdbarch_init): Likewise.
504         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
505         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
506         * mips-tdep.c (mips_gdbarch_init): Likewise.
507         (mips_coerce_float_to_double): Remove.
508         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
509         (rs6000_coerce_float_to_double): Remove.
510         * s390-tdep.c (s390_gdbarch_init): Likewise.
511         * sh-tdep.c (sh_gdbarch_init): Likewise.
512         (sh_coerce_float_to_double): Remove.
513         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
514         (sparc_coerce_float_to_double): Remove.
515         * v850-tdep.c (v850_gdbarch_init): Likewise.
516         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
517         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
518         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
519         (hppa_coerce_float_to_double): Remove prototype.
520         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
521
522 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
523
524         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
525
526 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
527
528         Suggested by Stewart Brown <sb24@avaya.com>:
529         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
530         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
531         (c_type_print_varspec_suffix): Likewise.
532
533 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
534
535         * configure.in: Don't set and AC_SUBST SUBDIRS.
536         * configure: Regenerated.
537
538         * configure.in: Remove code dealing with shared libraries.
539         * Makefile.in: Remove HLDFLAGS and HLDENV.
540         * configure: Regenerated.
541
542 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
543
544         * frame.c (deprecated_frame_xmalloc): New function.
545         (deprecated_set_frame_saved_regs_hack): New function.
546         (deprecated_set_frame_extra_info_hack): New function.
547         * frame.h (deprecated_frame_xmalloc): Declare.
548         (deprecated_set_frame_saved_regs_hack): Declare.
549         (deprecated_set_frame_extra_info_hack): Declare.
550
551 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
552
553         * configure.in: Move code that provides the --enable-gdbtk option
554         right after the code that handles the --enable-tui option, and
555         polish it somewhat.
556         * configure: Regenerated.
557
558         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
559         AC_CHECK_FUNCS and remove the old check for pread64.
560         * acinclude.m4 (AC_GNU_SOURCE): New macro.
561         * acconfig.h (_GNU_SOURCE): Add.
562         (HAVE_PREAD64): Remove.
563         * configure, aclocal.m4, config.in: Regenerated.
564
565 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
566
567         * alpha-tdep.c: Use get_frame_saved_regs.
568         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
569         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
570         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
571         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
572         * vax-tdep.c, xstormy16-tdep.c: Ditto.
573
574 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
575
576         * configure.in: Remove all use of the SUBDIRS variable; add
577         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
578         code providing the --enable-multi-ice option, and move it right in
579         front of the code that checks whether gdbserver is supported.
580         Polish that too.
581         * configure: Regenerated.
582         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
583         @SUBDIRS@.
584
585 2003-01-03  Andrew Cagney  <cagney@redhat.com>
586
587         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
588         * avr-tdep.c, cris-tdep.c: Ditto.
589         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
590         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
591         
592 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
593
594         * configure.in: Remove --enable-netrom option.
595         * configure: Regenerated.
596
597 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
598
599         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
600         declaration for `struct re_pattern_buffer' instead.
601         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
602
603 2003-01-03  J. Brobecker  <brobecker@gnat.com>
604
605         * mdebugread.c (parse_symbol): Count until the stEnd matching
606         the structure name.
607
608 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
609
610         * configure.in: Remove --with-cpu option.
611         subscripts.  Remove evil changequotes here.
612         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
613         * config.in, configure: Regenerated.
614         
615         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
616         * configure.in: Cleanup section that sources GDB and BFD configure
617         subscripts.  Remove evil changequotes here.
618         * config.in, configure: Regenerated.
619
620 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
621
622         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
623         frame accessor methods.
624         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
625         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
626         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
627         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
628         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
629         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
630         * z8k-tdep.c: Ditto.
631         
632 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
633
634         * configure.in: Remove UI_OUT configuration code.
635         * ada-lang.c: Update assuming UI_OUT is always true.
636         * Makefile.in (UIOUT_CFLAGS): Remove.
637         * configure: Regenerated.
638         * TODO: Remove blurb about elimination of -DUI_OUT.
639
640         * configure.in: Move code that provides the --enable-gdbcli,
641         --enable-gdbmi options right before the code that handles the
642         --enable-tui option.  Polish a bit.
643         * configure: Regenerated.
644
645         * configure.in: Rewrite check for GNU regex and the
646         --without-included regex option, and move it into the "Checks for
647         library functions" section.  This makes us use the system regex
648         again by default on systems with version 2 of the GNU C library.
649         This was apparently broken.
650         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
651         * acconfig.h (USE_INCLUDED_REGEX): Remove.
652         * config.in, configure: Regenerated.
653
654         * configure.in: Move code that provides the --enable-tui option
655         before the "Checks for libraries" section.  Polish the code
656         somewhat and set need_curses to yes if we build the TUI.  Rewrite
657         code that looks for a library providing termcap functionality to
658         match more closely what's done in the Readline library, and move
659         it into to the "Checks for libraries" section.
660         * configure: Regenerated.
661         * Makefile.in (TERMCAP): Remove variable.
662         * config/i386/go32.mh (TERMCAP): Remove variable.
663
664 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
665
666         * MAINTAINERS: Mention gdb_mbuild.sh.
667         * gdb_mbuild.sh: Rewrite.
668
669 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
670
671         * configure.in: Fix typo in last change.
672         * config.in, configure: Regenerated.
673
674 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
675
676         * valarith.c (value_binop): Delete obsolete code and comments.
677         * configure.host: Ditto.
678         * buildsym.h (make_blockvector): Ditto.
679         * buildsym.c (make_blockvector): Ditto.
680         * defs.h (enum language): Ditto.
681         (chill_demangle): Ditto.
682         * elfread.c (elf_symtab_read): Ditto.
683         * dwarfread.c (CHILL_PRODUCER): Ditto.
684         (set_cu_language): Ditto.
685         (handle_producer): Ditto.
686         * expprint.c (print_subexp): Ditto.
687         * gdbtypes.c (chill_varying_type): Ditto.
688         * gdbtypes.h (builtin_type_chill_bool): Ditto.
689         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
690         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
691         (chill_varying_type): Ditto.
692         * language.h (_LANG_chill): Ditto.
693         * language.c (binop_result_type, integral_type): Ditto.
694         (character_type, string_type, structured_type): Ditto.
695         (lang_bool_type, binop_type_check): Ditto.
696         * stabsread.h (os9k_stabs): Ditto.
697         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
698         (define_symbol, read_type, read_struct_fields): Ditto.
699         (read_array_type, read_enum_type, read_huge_number): Ditto.
700         (read_range_type, start_stabs): Ditto.
701         * symfile.c (init_filename_language_table): Ditto.
702         (add_psymbol_with_dem_name_to_list): Ditto.
703         * symtab.c (symbol_init_language_specific): Ditto.
704         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
705         * symtab.h (struct general_symbol_info): Ditto.
706         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
707         * typeprint.c (typedef_print): Ditto.
708         * utils.c (fprintf_symbol_filtered): Ditto.
709         * valops.c (value_cast, search_struct_field, value_slice): Delete
710         obsolete code.
711         (varying_to_slice): Delete function.
712         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
713         (varying_to_slice): Delete declaration.
714         * MAINTAINERS: Update.
715
716 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
717
718         * configure.in: Reorganize "Checks for library functions section"
719         a bit.  Remove check for `btowc' and `isascii' functions.
720         * configure: Regenerated.
721
722         * acconfig.h (_MSE_INT_H): Remove.
723         * configure.in: Create "Checks for header files" section, and move
724         appropriate tests there.  Don't check for objlist.h, wchar.h,
725         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
726         misdetection fix.  Also add "Checks for types", "Checks for
727         compiler characteristics" and "Checks for library functions"
728         sections.
729         * config.in, configure: Regenerated.
730
731         * configure.in: Create "Checks for programs" section, and move
732         appropriate tests there.
733
734 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
735
736         * configure.in: Create "Checks for libraries" section, and move
737         appropriate tests there.  Cleanup check for wctype in libw.  Use
738         AC_SEARCH_LIBS to see whether we need libsocket.
739         * configure: Regenerated.
740
741 For older changes see ChangeLog-2002
742 \f
743 Local Variables:
744 mode: change-log
745 left-margin: 8
746 fill-column: 74
747 version-control: never
748 End: