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