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