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