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