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