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