1 2001-09-27 J. Brobecker <brobecker@gnat.com>
3 * infttrace.c (kill_inferior): Issue a TT_PROC_EXIT request rather
4 than a TT_PROC_STOP request to kill the inferior and its child
5 processes. Otherwise, the inferior is not killed on HPUX 11.0.
6 Removed the code that detaches the child processes since we just
9 2001-09-26 Andrew Cagney <ac131313@redhat.com>
11 * serial.c (serial_set_cmdlist, serial_show_cmdlist): New
13 (serial_set_cmd, serial_show_cmd): New functions.
14 (_initialize_serial): Add "set/show serial" command.
16 2001-09-26 Andrew Cagney <ac131313@redhat.com>
20 2001-09-26 Kevin Buettner <kevinb@redhat.com>
22 * solib-svr4.h (set_solib_svr4_fetch_link_map_offsets): Add
24 * solib-svr4.c (SVR4_FETCH_LINK_MAP_OFFSETS): Change default value.
25 (default_svr4_fetch_link_map_offsets): Rename to
26 legacy_fetch_link_map_offsets().
27 (svr4_fetch_link_map_offsets): New function.
28 (fetch_link_map_offsets, fetch_link_map_offsets_init): Deleted.
29 (fetch_link_map_offsets_gdbarch_data): New static global.
30 (set_solib_svr4_fetch_link_map_offsets): Add argument ``gdbarch''.
31 Revise to invoke set_gdbarch_data().
32 (init_fetch_link_map_offsets): Change return type and add an
33 argument so that it may be used as a gdbarch_data initializer.
34 (_initialize_svr4_solib): Eliminate use of gdbarch swap mechanism.
35 Use gdbarch data mechanism instead.
37 2001-09-25 Jiri Smid <smid@suse.cz>
39 * x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
40 (x86_64_linux_sigcontext_addr): Replace `sizeof (struct siginfo)'
41 by LINUX_SIGINFO_SIZE.
43 2001-09-24 Andrew Cagney <ac131313@redhat.com>
45 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
47 (maintenance_set_profile_cmd): New function.
48 (maintenance_show_cmd, maintenance_set_cmd): New functions.
49 (_initialize_maint_cmds): Add "maintenance set" and "maintenance
50 show" and, commented out, "maintenance set/show profile" commands.
52 2001-09-24 Andrew Cagney <ac131313@redhat.com>
54 * findvar.c (read_var_value): For LOC_INDIRECT and LOC_REF_ARG
55 convert the pointer into a CORE_ADDRs.
57 2001-09-24 Andrew Cagney <ac131313@redhat.com>
59 * doublest.h (store_floating, extract_floating): Add comment
60 indicating these functions are deprecated.
61 (extract_typed_floating, store_typed_floating): Declare.
62 * doublest.c: Include "gdbtypes.h".
63 (extract_typed_floating, store_typed_floating): Define.
65 * stabsread.c (define_symbol): Use store_typed_floating.
66 * valarith.c (value_binop): Ditto.
67 * values.c (unpack_long): Use extract_typed_floating.
68 (unpack_double): Ditto.
70 2001-09-24 Orjan Friberg <orjanf@axis.com>
72 * cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
73 from correct register.
75 2001-09-22 Mark Kettenis <kettenis@gnu.org>
77 * x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.
79 2001-09-21 Jiri Smid <smid@suse.cz>
81 * config/i386/x86-64linux.mh: New file.
82 * config/i386/x86-64linux.mt: New file.
83 * config/i386/nm-x86_64.h: New file.
84 * x86-64-linux-tdep.c: New file.
85 * x86-64-linux-nat.c: New file.
86 * x86-64-tdep.c: New file.
87 * x86-64-tdep.h: New file.
88 * i386-tdep.h: New file.
89 * i387-nat.c: Include i386-tdep.h when multiarch.
91 * config/djgpp/fnchange.lst: Add entries for x86_64-linux-tdep.c
92 and x86_64-linux-nat.c
93 * Makefile.in: Add x86_64-linux-tdep.o, x86_64-tdep.o,
94 x86_64-linux-tdep.o, x86_64-nat.o, update dependencies.
96 2001-09-21 Jiri Smid <smid@suse.cz>
98 * MAINTAINERS: Add myself to the write-after-approval list.
99 * i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
100 (i386_length_and_rw_bits, i386_handle_nonaligned_watchpoint,
101 i386_insert_watchpoint, i386_remove_watchpoint): Add support for
102 8-byte wide watchpoints.
103 (i386_show_dr): Debug message format string change.
105 2001-09-21 Michael Snyder <msnyder@redhat.com>
107 * c-exp.y (typebase): Accept (signed long long) as a type expr.
109 2001-09-20 Kevin Buettner <kevinb@redhat.com>
111 * solib-svr4.c (fetch_link_map_offsets): Add comment.
112 (fetch_link_map_offsets_init): New static global.
113 (set_solib_svr4_fetch_link_map_offsets, init_fetch_link_map_offsets):
114 Revise implementation to use ``fetch_link_map_offsets_init''
115 instead of ``fetch_link_map_offsets''.
117 2001-09-20 Alan Modra <amodra@bigpond.net.au>
119 * coffread.c: Replace all occurrences of bfd_read with bfd_bread.
120 * dbxread.c: Likewise.
121 * dwarf2read.c: Likewise.
122 * dwarfread.c: Likewise.
123 * somread.c: Likewise.
124 * ultra3-nat.c: Likewise.
125 * xcoffread.c: Likewise.
127 2001-09-19 Andrew Cagney <ac131313@redhat.com>
129 * cris-tdep.c (cris_get_signed_offset): Change return type to an
130 explicitly signed char.
132 * config/mcore/tm-mcore.h (mcore_virtual_frame_pointer): Update
133 function signature to match recent tracepoint.c:encode_actions
135 * mcore-tdep.c (mcore_virtual_frame_pointer): Ditto.
137 2001-09-18 Andrew Cagney <ac131313@redhat.com>
139 * thread.c (do_captured_thread_select): Add uiout parameter.
140 (do_captured_list_thread_ids): Ditto.
141 * breakpoint.c (do_captured_breakpoint_query): Ditto.
143 * breakpoint.c (gdb_breakpoint_query): Update. Use
145 * thread.c (gdb_list_thread_ids): Ditto.
146 (gdb_thread_select): Ditto.
147 (thread_command): Pass uiout to gdb_thread_select.
149 * gdb.h (gdb_breakpoint_query): Add parameter ui_out.
150 (gdb_thread_select, gdb_list_thread_ids): Ditto.
152 2001-09-13 Kevin Buettner <kevinb@redhat.com>
154 From Ilya Golubev <gin@mo.msk.ru>:
155 * solib.c (clear_solib): Call `remove_target_sections' to fix
156 stale pointers in `struct target_ops'.
157 * irix5-nat.c (clear_solib): Likewise.
158 * osfsolib.c (clear_solib): Likewise.
160 2001-09-13 Jim Blandy <jimb@redhat.com>
162 * monitor.c (monitor_load): Don't delete symtab users, or reset
165 * monitor.c (monitor_load): Fix indentation.
167 2001-09-11 Jim Blandy <jimb@redhat.com>
169 * printcmd.c (print_scalar_formatted): Compare the length of the
170 value against the lengths of the target's floating-point types,
171 not the host's. Add support for `long double'.
173 * printcmd.c (print_scalar_formatted): Fix indentation.
175 2001-09-10 Jim Blandy <jimb@redhat.com>
177 * rom68k-rom.c (init_rom68k_cmds): Set the flag indicating that
178 programs running on the board can produce output.
180 2001-09-10 Jason Molenda (jmolenda@apple.com)
182 * NEWS: "ANS/ISO C" -> "ISO C".
183 * MAINTAINERS (write-after-approval): Update my entry.
185 2001-09-08 Mark Kettenis <kettenis@gnu.org>
187 * config/xm-aix4.h (MEM_FNS_DECLARED): Removed.
189 * config/arm/xm-linux.h, config/ia64/xm-linux.h,
190 config/m68k/xm-linux.h, config/mips/xm-linux.h,
191 config/powerpc/xm-linux.h, config/sparc/xm-linux.h: Remove
192 redundant inclusion of <unistd.h>.
194 * gdbtypes.h (struct block): Add forward declaration.
196 2001-09-07 Andrew Cagney <ac131313@redhat.com>
198 * defs.h (enum return_reason): Renumber so that all values are
200 (RETURN_MASK): Negate reason.
201 (catch_exception_ftype): Declare.
202 (catch_exceptions): Declare.
203 * top.c (catcher): New function, based on catch_errors. Add in
204 parameter func_uiout and out parameters func_val, func_caught and
205 func_cleanup. Change type of func to catch_exceptions_ftype.
207 (struct catch_errors_args): Define.
208 (do_catch_errors): New function.
209 (catch_errors): Rewrite, use do_catch_errors and catcher.
210 (catch_exceptions): New function, use catcher.
212 2001-09-07 Jim Blandy <jimb@redhat.com>
214 Correctly parse register values provided by the monitor.
215 * rom68k-rom.c: #include "value.h".
216 (is_hex_digit, hex_digit_value, is_whitespace,
217 rom68k_supply_one_register): New static functions.
218 (rom68k_supply_register): Call rom68k_supply_one_register, instead
219 of monitor_supply_register; the latter was incorrectly parsing
221 * Makefile.in (rom68k-rom.o): Note that this now #includes value.h.
223 2001-09-07 Mark Kettenis <kettenis@gnu.org>
225 * config/rs6000/xm-rs6000.h (setpgrp): Remove macro. GDB defaults
226 to using setpgid if available now.
228 2001-09-06 Keith Seitz <keiths@redhat.com>
230 From Ian Roxborough <irox@redhat.com>
231 * configure.in: Use ITCL_LIB_FULL_PATH and
232 ITK_LIB_FULL_PATH to set Itcl and Itk dependancies
234 * configure: Regenerated.
236 2001-09-06 Kevin Buettner <kevinb@redhat.com>
238 * dbxread.c (process_one_symbol): Don't use error result from
239 find_stab_function_addr().
240 * partial-stab.h (case 'F'): Likewise.
242 * partial-stab.h (case 'f'): Make SOFUN_ADDRESS_MAYBE_MISSING
243 code match that used for case 'F'. This fixes the divergence
244 that was introduced by my 1999-09-14 changes to partial-stab.h.
246 2001-09-05 Elena Zannoni <ezannoni@redhat.com>
248 * gdbarch.sh: Move include of dis-asm.h so it is generated earlier
250 (TARGET_PRINT_INSN): Multiarch.
251 * gdbarch.h: Regenerate.
252 * gdbarch.c: Regenerate.
254 * arch-utils.c (legacy_print_insn): New function.
255 * arch-utils.h (legacy_print_insn): Export.
257 * cris-tdep.c (cris_delayed_get_disassembler): Use
258 TARGET_PRINT_INSN, instead of tm_print_insn.
259 * d10v-tdep.c (print_insn): Ditto.
260 * d30v-tdep.c (print_insn): Ditto.
261 * m32r-tdep.c (dump_insn): Ditto.
262 * v850-tdep.c (v850_scan_prologue): Ditto.
263 * mcore-tdep.c (mcore_dump_insn): Ditto.
264 * sh-tdep.c (sh_gdbarch_init): Set print_insn gdbarch field.
266 2001-09-05 Jim Blandy <jimb@redhat.com>
268 * gdbtypes.h (struct type): Doc fix.
270 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
272 From Daniel Jacobowitz <drow@mvista.com>
273 * dbxread.c (free_header_files): Make global.
274 (init_header_files): Likewise.
275 * stabsread.h (free_header_files): Add prototype.
276 (init_header_files): Likewise.
277 * mdebugread.c (mdebug_build_psymtabs): Initialize
278 properly before using the stabs debug reader.
280 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
282 From Daniel Jacobowitz <drow@mvista.com>
283 * dbxread.c (dbx_symfile_read): Only reinitialize
284 the psymbol list if mainline or if both static
285 and global lists are empty.
286 * dwarf2read.c (dwarf2_build_psymtabs): Likewise.
287 * dwarfread.c (dwarf_build_psymtabs): Likewise.
288 * xcoffread.c (xcoff_initial_scan): Likewise.
289 * os9kread.c (os9k_symfile_read): Likewise.
291 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
293 From Daniel Jacobowitz <drow@mvista.com>
294 * mdebugread.c (psymtab_to_symtab_1): Handle N_SO stabs without
297 2001-09-01 Mark Kettenis <kettenis@gnu.org>
299 Make GDB use libiberty regex implementation.
300 * gdb_regex.h: Normalize protection against multiple inclusion.
301 Include "xregex.h" instead of "gnu-regex.h".
302 * cli/cli-cmds.c: Include "gdb_regex.h" instead of "gnu-regex.h".
303 * cli/cli-decode.c: Likewise.
304 * Makefile.in (REGEX): Remove.
305 (GDB_CFLAGS): Remove reference to gnu-regex.h in comment.
306 (ADD_FILES, ADD_DEPS): Remove $(REGEX).
308 (TAGFILES_NO_SRCDIR): Remove $(POSSLIBS).
309 (irix5-nat.o, solib.o, solib-svr4.o, source.o, symtab.o,
310 xcoffsolib.o, cli-decode.o, cli-cmd.o): Replace gnu-regex.h with
311 gdb_regex.h in list of dependencies.
312 (gnu-regex.o): Remove rule.
313 * gnu-regex.c, gnu-regex.h: Remove files.
315 2001-08-31 Jason Molenda (jmolenda@apple.com)
317 * c-valprint.c (c_val_print): Second call to check_typedef ()
318 is no longer necessary.
320 2001-08-31 Kevin Buettner <kevinb@redhat.com>
322 * ia64-tdep.c (examine_prologue): Don't let a branch unit nop
323 terminate the prologue scan.
325 2001-08-30 Jim Blandy <jimb@redhat.com>
327 * symfile.c (sections_overlap): New function.
328 (map_overlay_command): Call sections_overlap, instead of using
329 incorrect logic to recognize overlapping sections.
331 * symfile.c (load_command): Invalidate the overlay cache.
333 2001-08-30 Mark Kettenis <kettenis@gnu.org>
335 * config/i386/xm-i386.h (HOST_BYTE_ORDER): Removed.
337 2001-08-29 Kevin Buettner <kevinb@redhat.com>
339 From 2001-08-07 Daniel Jacobowitz <drow@mvista.com>:
340 * solib-svr4.c (enable_break): Check the inferior link map
341 before assuming the inferior PC is at the start of the dynamic
344 2001-08-28 Andrew Cagney <cagney@toribio.toronto.redhat.com>
346 * frame.h (struct frame_info): Fix documentation on fields
347 saved_regs, next and prev.
349 2001-08-23 Mark Kettenis <kettenis@gnu.org>
351 * event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: Some
352 gratuitious whitespace changes.
353 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined.
354 * top.c: Remove redundant logic to define HAVE_SIGSETMASK.
355 (sigsetmask) Don't define macro.
356 (stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from
357 async_stop_sig from event-top.c.
358 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is
360 * configure.in (AC_CHECK_FUNCS): Put functions in alphabetical
361 order. Add sigsetmask.
362 (AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in
364 * config/xm-aix4.h, config/alpha/xm-alphalinux.h,
365 config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h
366 (HAVE_SIGSETMASK): Remove.
367 * aclocal.m4, config.in, configure: Regenerated.
369 2001-08-26 Andrew Cagney <ac131313@redhat.com>
371 From 2001-06-29 Andrew Cagney <ac131313@redhat.com>:
372 * config/powerpc/nbsd.mh (XM_FILE): Delete.
374 2001-08-21 Andrew Cagney <ac131313@redhat.com>
376 * doublest.h (HOST_FLOAT_FORMAT): Delete macro.
377 (HOST_DOUBLE_FORMAT): Delete macro.
379 2001-08-24 Mark Kettenis <kettenis@gnu.org>
381 * config/xm-lynx.h, config/xm-nbsd.h, config/xm-sysv4.h,
382 config/i386/xm-i386aix.h, config/m68k/xm-dpx2.h: Remove redundant
383 inclusion of <limits.h>.
385 2001-08-24 Andrew Cagney <ac131313@redhat.com>
387 * regcache.c (read_register_bytes): When REGISTER_NAME indicates
388 that a register should be ignored, supply a value for the register
389 from the raw registers[] buffer.
391 2001-08-24 Andrew Cagney <ac131313@redhat.com>
393 * go32-nat.c (go32_create_inferior): Use xfree instead of free.
394 * config/djgpp/fnchange.lst: Add entries for i386bsd-tdep.c and
397 2001-08-21 Andrew Cagney <ac131313@redhat.com>
399 * gdbtypes.h (builtin_type_ieee_single_big)
400 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
401 (builtin_type_ieee_double_little)
402 (builtin_type_ieee_double_littlebyte_bigword)
403 (builtin_type_i387_ext, builtin_type_m68881_ext)
404 (builtin_type_i960_ext, builtin_type_m88110_ext)
405 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
406 (builtin_type_arm_ext_littlebyte_bigword)
407 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
408 (builtin_type_ia64_quad_big)
409 (builtin_type_ia64_quad_little): Declare.
410 * gdbtypes.c (builtin_type_ieee_single_big)
411 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
412 (builtin_type_ieee_double_little)
413 (builtin_type_ieee_double_littlebyte_bigword)
414 (builtin_type_i387_ext, builtin_type_m68881_ext)
415 (builtin_type_i960_ext, builtin_type_m88110_ext)
416 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
417 (builtin_type_arm_ext_littlebyte_bigword)
418 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
419 (builtin_type_ia64_quad_big)
420 (builtin_type_ia64_quad_little): Define.
421 (_initialize_gdbtypes): Initialize builtin floatformat types.
423 2001-08-23 Mark Kettenis <kettenis@gnu.org>
425 * tracepoint.c (read_actions): Add FIXME for code depending on
428 2001-08-23 Martin M. Hunt <hunt@redhat.com>
430 * remote-mips.c (pmon_load_fast): Add ui_load_progress_hook
432 (mips_load_srec): Ditto.
434 2001-08-22 Andrew Cagney <ac131313@redhat.com>
436 * gdbtypes.c (build_gdbtypes): Initialize TYPE_FLOATFORMAT field
437 of builtin_type_float, builtin_type_double and
438 builtin_type_long_double.
439 (recursive_dump_type): Print the floatformat name.
440 * gdbtypes.h (struct type): Add type_specific field floatformat.
441 (TYPE_FLOATFORMAT): Define
443 2001-08-21 Keith Seitz <keiths@redhat.com>
445 * printcmd.c (print_insn): Use the given stream for
448 2001-07-24 Andrew Cagney <ac131313@redhat.com>
450 * arm-tdep.c (convert_from_extended, convert_to_extended): Delete
451 assembler version of function.
452 (convert_from_extended, convert_to_extended): Rewrite. Use
453 floatformat_to_doublest, floatformat_from_doublest,
454 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword.
455 (arm_push_arguments): Use extract_floating and store_floating to
456 perform floating point conversions.
457 (SWAP_TARGET_AND_HOST): Delete macro.
458 * arm-linux-tdep.c (arm_linux_push_arguments): Use
459 extract_floating and store_floating to perform floating point
462 2001-08-20 Andrew Cagney <ac131313@redhat.com>
464 * gdbtypes.h (struct type): Clarify meaning of field ``length''.
466 2001-08-17 Keith Seitz <keiths@redhat.com>
468 * varobj.c (varobj_update): Change first parameter to
469 pointer to struct varobj*. This function can delete
470 varobjs, so we need to give callers the new varobj
472 (value_of_root): Update "var", too, if "var_handle"
474 * varobj.h (varobj_update): Likewise.
476 2001-08-17 Keith Seitz <keiths@redhat.com>
478 * Makefile.in (varobj_h): Define.
479 (mi-cmd-var.o): Depends on varobj_h.
480 (gdbtk-varobj.o): Change varobj.h to $(varobj_h).
482 2001-08-16 Keith Seitz <keiths@redhat.com>
484 * configure.in (GDBTK_SRC_DIR): We must have autoconf
485 give us the absolute path to the source directory.
486 * configure: Regenerated.
487 * Makefile.in (GDBTK_SRC_DIR): Add variable so that
488 autoconf can substitue it in for us.
489 (gdbtk.o): Pass in GDBTK_SRC_DIR instead of srcdir. We
490 really do need an absolute pathname.
492 2001-08-15 Keith Seitz <keiths@redhat.com>
494 * Makefile.in (GDBTK_VERSION): Set a version number.
495 (GDBTK_LIBRARY): New variable to point to location where
496 gdbtk will install its tcl library. Changed all refereneces
497 to $(datadir)/insight1.0 to $(GDBTK_LIBRARY).
498 (SUBDIR_GDBTK_ALL): Remove "all-gdbtk". No longer needed.
499 (SUBDIR_GDBTK_CLEAN): Remove "clean-gdbtk". No longer needed.
501 (install-gdbtk): Remove.
502 (gdbtk.o): Pass srcdir to file when compiling.
504 2001-08-15 Ian Roxborough <irox@redhat.com>
506 * Makefile.in: Changed all references to the install directory
507 "gdbtcl" to read "insight1.0".
509 2001-08-15 Corinna Vinschen <vinschen@redhat.com>
511 * arch-utils.c (generic_skip_trampoline_code): New function.
512 * arch-utils.h (generic_skip_trampoline_code): Declare external.
513 * gdbarch.c: Regeberated from gdbarch.sh.
515 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Multi-arch.
516 * infrun.c: Remove default setting of SKIP_TRAMPOLINE_CODE macro.
518 2001-08-14 Daniel Jacobowitz <drow@mvista.com>
519 H.J. Lu (hjl@gnu.org)
521 * partial-stab.h: valu should be a CORE_ADDR.
523 2001-08-14 H.J. Lu (hjl@gnu.org)
525 * dbxread.c (SWAP_SYMBOL): Removed.
526 (INTERNALIZE_SYMBOL): Check sign extended vma.
528 2001-08-13 Christopher Faylor <cgf@cygnus.com>
530 * top.c (SIGSETJMP): Protect env argument with parentheses.
531 (SIGLONGJMP): Protect env argument with parentheses.
533 2001-08-11 Andrew Cagney <ac131313@redhat.com>
535 * config/mn10300/mn10300.mt (TM_FILE): Delete.
536 * configure.tgt: Add mn10300 to list of mulit-arch targets.
537 * config/mn10300/tm-mn10300.h: Delete file. Move contents ...
538 * mn10300-tdep.c: To here.
540 2001-08-11 Andrew Cagney <ac131313@redhat.com>
542 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_VIRTUAL): Make
543 val a DOUBLEST. Use floatformat_to_doublest.
544 (REGISTER_CONVERT_TO_RAW): Ditto. Use foatformat_from_doublest.
545 * config/m88k/tm-m88k.h (REGISTER_CONVERT_TO_VIRTUAL): Ditto.
546 (REGISTER_CONVERT_TO_RAW): Ditto.
548 2001-08-11 Andrew Cagney <ac131313@redhat.com>
550 * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
551 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and
554 2001-08-11 Andrew Cagney <ac131313@redhat.com>
556 * doublest.c (convert_doublest_to_floatformat): Rename
557 floatformat_from_doublest. Make static.
558 (convert_floatformat_to_doublest): Rename floatformat_to_doublest.
560 (floatformat_to_doublest): New function.
561 (floatformat_from_doublest): New function.
562 (host_float_format, host_double_format, host_long_double_format):
563 New static variables.
564 (store_floating, extract_floating): Always use
565 floatformat_to_doublest and floatformat_from_doublest.
566 * doublest.h (HOST_LONG_DOUBLE_FORMAT): Delete macro.
568 2001-08-11 Andrew Cagney <ac131313@redhat.com>
570 * config/mn10300/tm-mn10300.h (INIT_FRAME_PC): Delete.
571 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize init_frame_pc.
573 2001-08-07 Andrew Cagney <ac131313@redhat.com>
575 * target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.
576 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Add.
577 * gdbarch.h, gdbarch.c: Regenerate.
579 * arch-utils.h (legacy_virtual_frame_pointer): Declare.
580 * arch-utils.c: Include "gdb_assert.h".
581 (legacy_virtual_frame_pointer): Define.
582 * Makefile.in (arch-utils.o): Depends on gdb_assert.h.
584 * tracepoint.c (encode_actions): Make frame_reg an int. Make
585 frame_offset a LONGEST.
586 * ax-gdb.c (gen_frame_args_address): Ditto.
587 (gen_frame_locals_address): Ditto.
588 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize
589 virtual_frame_pointer.
590 (mn10300_virtual_frame_pointer): Make static. Update parameter
591 list to match function signature.
592 * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER): Delete.
594 2001-08-10 Keith Seitz <keiths@redhat.com>
596 * gdb-events.sh: Add architecture_changed event.
597 * gdbarch.sh: Include gdb-event.h.
598 (gdbarch_update_p): Notify UIs when architecture changes.
599 * gdb-events.h: Regenerated.
600 * gdb-events.c: Regenerated.
601 * gdbarch.c: Regenerated.
603 2001-08-10 Michael Snyder <msnyder@redhat.com>
605 * regcache.c (legacy_write_register_gen): Don't 'optimize out'
606 a write_register to a pseudo-reg. Target_store_pseudo_register
607 needs to get called, because these regs may be computed and may
610 2001-08-10 Keith Seitz <keiths@redhat.com>
612 * gdb-events.sh: Deal with event notifications with no
615 2001-08-10 Orjan Friberg <orjanf@axis.com>
617 * remote.c (read_frame): Correct off-by-one error in condition.
619 2001-08-08 Don Howard <dhoward@redhat.com>
621 * stabsread.c (read_type): Add support for const and volatile
624 2001-08-02 Daniel Jacobowitz <drow@mvista.com>
626 * core-regset.c (fetch_core_registers): Remove HAVE_GREGSET_T
627 and HAVE_FPREGSET_T checks. Use gdb_gregset_t and gdb_fpregset_t.
629 2001-08-02 Keith Seitz <keiths@redhat.com>
631 * defs.h (SLASH_STRING): If not defined, set
632 to "/", regardless of _WIN32, __CYGWIN__, or
635 2001-08-02 Mark Kettenis <kettenis@gnu.org>
637 * cli/cli-decode.h: Include "gdb_regex.h" instead of
642 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
644 * config/i386/xm-go32.h: Include xm-i386.h.
645 (HOST_BYTE_ORDER, HOST_LONG_DOUBLE_FORMAT): Remove definitions.
647 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
649 The following changes avoid polluting global namespace with the
650 `enable' and `disable' identifiers, because some platforms define
651 in their system headers symbols with global scope that go by those
654 * breakpoint.h (enum enable_state): Rename from `enum enable'.
655 Also rename all the enum members to have the "bp_" prefix.
656 (struct breakpoint): Rename the `enable' member to `enable_state'.
657 (enum bpdisp): Rename all members to have the "disp_" prefix.
659 * breakpoint.c: All users of `enum enable' and `enum bpdisp'
661 (args_for_catchpoint_enable): Rename the `enable' member to
662 `enable_p'. All users changed.
664 * tracepoint.h (enum enable): Remove.
665 (struct tracepoint): The member `enabled' is now `int enabled_p'.
667 * tracepoint.c: All users of the `enabled' member changed.
669 * printcmd.c (struct display): The `status' member is now an int.
671 * memattr.h (struct mem_region): Rename the `status' member to
673 (enum enable): Remove.
675 * memattr.c: Change all users of the `status' member of struct
676 mem_region to use `enabled_p' instead.
678 * infcmd.c (run_stack_dummy): Use disp_del instead of del.
680 * go32-nat.c: Remove the kludgey work-around for conflicts between
681 <dos.h> and "breakpoint.h".
683 2001-08-02 Corinna Vinschen <vinschen@redhat.com>
685 * MAINTAINERS: Add myself to the write-after-approval list.
686 * ser-tcp.c (tcp_open): Use `localhost' as default host if no
689 2001-08-01 Andrew Cagney <ac131313@redhat.com>
691 * doublest.h (store_floating, floatformat_to_doublest): Make IN
692 paramter a const void pointer.
693 (floatformat_from_doublest): Make IN const, Make OUT a void
695 * doublest.c (floatformat_to_doublest): Update.
696 (floatformat_from_doublest): Update.
697 (extract_floating): Update.
699 2001-07-31 Andrew Cagney <ac131313@redhat.com>
701 * defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
702 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
703 (HOST_LONG_DOUBLE_FORMAT, DOUBLEST)
704 (floatformat_to_doublest, floatformat_from_doublest)
705 (floatformat_is_negative, floatformat_is_nan)
706 (floatformat_mantissa, store_floating)
707 (extract_floating): Move declaration from here.
708 * doublest.h: To here. New file.
709 * utils.c (get_field, floatformat_to_doublest, put_field)
710 (ldfrexp, floatformat_from_doublest, floatformat_is_negative)
711 (floatformat_is_nan, floatformat_mantissa)
712 (FLOATFORMAT_CHAR_BIT): Move from here.
713 * doublest.c: To here. New file.
714 * findvar.c (store_floating, extract_floating): Move from here.
715 * doublest.c: To here.
716 * Makefile.in (SFILES): Add doublest.c.
717 (COMMON_OBS): Add doublest.o.
718 (doublest.o): Specify dependencies.
719 (doublest_h): Define.
721 * config/m88k/tm-m88k.h: Include "doublest.h".
722 * config/i960/tm-i960.h: Ditto.
723 * config/i386/tm-symmetry.h: Ditto.
724 * rs6000-tdep.c, valarith.c: Ditto.
725 * valprint.c, stabsread.c, sh-tdep.c: Ditto.
726 * ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto.
727 * values.c, arm-tdep.c, arm-linux-tdep.c: Ditto.
728 * alpha-tdep.c, ax.h, expression.h: Ditto.
729 * sh-tdep.c, parse.c, top.c, value.h: Ditto.
731 * Makefile.in (arm-tdep.o): Add $(doublest_h).
732 (i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto.
733 (rs6000-tdep.o, stabsread.o, valarith.o): Ditto.
734 (values.o, valprint.o, arm-linux-tdep.o): Ditto.
735 (alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto.
736 (parser_defs_h): Ditto.
737 (expression_h): Add $(doublest_h) and $(symtab_h).
739 2001-08-01 Andrew Cagney <ac131313@redhat.com>
741 * Makefile.in: Sort header definitions.
742 (parser_defs_h, dis_asm_h, annotate_h, gdbthread_h): Define.
743 Replace parser-defs.h with $(parser_defs_h). Replace $(dis-asm_h)
744 and $(dis-asm.h) with $(dis_asm_h). Replace annotate.h with
745 $(annotate_h). Replace target.h with $(target_h). Replace
746 gdbthread.h with $(gdb_thread_h). Replace symfile.h with $(symfile_h).
748 2001-07-31 Mark Kettenis <kettenis@gnu.org>
750 * config/i386/xm-i386.h: New file.
751 * config/i386/xm-fbsd.h: Removed.
752 * config/i386/xm-linux.h: Removed.
753 * config/i386/fbsd.mh: Reorganize a bit.
754 (XM_FILE): Set to xm-i386.h instead of xm-fbsd.h.
755 * config/i386/linux.mh (XM_FILE): Set to xm-i386.h insread of
758 2001-07-30 Jim Blandy <jimb@redhat.com>
760 * dwarf2read.c (dwarf2_build_psymtabs_hard): Doc fix.
762 2001-07-27 Daniel Jacobowitz <drow@mvista.com>
764 * configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
765 Check for SETPGRP_VOID separately if cross-compiling and ISO C
766 headers are available.
768 2001-07-30 Mark Kettenis <kettenis@gnu.org>
770 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
771 i386_dwarf_reg_to_regnum.
773 * i386-tdep.c (i386_register_convert_to_virtual): Replace
774 assertion with a warning if we're asked to convert towards a
775 non-floating-point type. Zero out the the buffer where the data
776 is supposed to be stored in that case.
778 2001-07-29 Eli Zaretskii <eliz@is.elta.co.il>
780 * config/djgpp/djconfig.sh: Unset CDPATH.
782 * go32-nat.c (get_cr3): Temporary disable support for page tables
783 in UMBs, as it is incomplete.
785 Support for stepping through longjmp in DJGPP programs:
787 * config/i386/tm-go32.h (JB_ELEMENT_SIZE, JB_PC): New macros.
788 (GET_LONGJMP_TARGET): Define to call get_longjmp_target.
789 (get_longjmp_target): Add prototype.
791 2001-07-28 Andrew Cagney <ac131313@redhat.com>
793 Fix some PID/TPID fallout for HP/UX.
794 From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>:
795 * infttrace.c (ptrace_wait): Match external declaration,
796 and match target_post_wait declaration.
798 2001-07-28 Andrew Cagney <ac131313@redhat.com>
800 * MAINTAINERS: Add Orjan Friberg as cris target maintainer.
801 (cris): Set --enable-gdb-build-warnings flag to -w.
803 2001-07-28 Andrew Cagney <ac131313@redhat.com>
805 From 2001-07-23 Andreas Schwab <schwab@suse.de>:
806 * config/m68k/tm-m68k.h (TARGET_LONG_DOUBLE_FORMAT): Define.
807 (TARGET_LONG_DOUBLE_BIT): Define.
808 (REGISTER_VIRTUAL_SIZE): Return 12 for floating point registers.
809 (MAX_REGISTER_VIRTUAL_SIZE): Increase to 12.
810 (REGISTER_VIRTUAL_TYPE): Return builtin_type_long_double for
811 floating point registers.
812 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL)
813 (REGISTER_CONVERT_TO_RAW): Remove.
814 * config/m68k/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define.
816 2001-07-26 Andrew Cagney <ac131313@redhat.com>
818 * thread.c, breakpoint.c: Include "gdb.h".
819 * Makefile.in (gdb_h): Define.
820 (HFILES_NO_SRCDIR): Add gdb.h.
821 (mi-cmd-break.o, mi-main.o, thread.o)
822 (breakpoint.o): Add dependency on $(gdb_h).
824 * defs.h (enum gdb_rc, gdb_breakpoint_query)
825 (gdb_breakpoint, gdb_thread_select)
826 (gdb_list_thread_ids): Move declaration from here ...
827 * gdb.h: To here. New file.
829 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
831 * Makefile.in (SUBDIR_TUI_OBS): Add tui-out.o, tui-hooks.o.
832 (SUBDIR_TUI_SRCS): Add tui-out.c tui-hooks.c
834 (tui-out.o): Define dependencies.
835 (tui-hooks.o): Likewise.
837 2001-07-28 Andrew Cagney <ac131313@redhat.com>
839 * MAINTAINERS: Update e-mail address of active @cygnus.com
840 maintainers to @redhat.com.
842 2001-07-28 Andrew Cagney <ac131313@redhat.com>
844 * README (Known bugs): Delete section.
845 (Kernel debugging): Delete section.
846 (Languages other than C): Delete section.
847 (Host/target specific installation notes) New section.
849 2001-07-28 Mark Kettenis <kettenis@gnu.org>
851 * config/i386/tm-i386.h (STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
852 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): New defines.
853 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New
855 * config/i386/tm-fbsd.h, config/i386/tm-i386gnu.h,
856 config/i386/tm-linux.h (STAB_REG_TO_REGNUM): Redefine to call
857 i386_dwarf_reg_to_regnum.
858 * i386-tdep.c (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum):
861 * i386-tdep.c: Include "gdb_assert.h"
862 (i386_register_convert_to_virtual): Fix such that it can handle
863 conversion to any floating-point type. Assert that we are dealing
864 with a floating-point first.
865 (i386_register_convert_to_raw): Assert that TYPE is a
866 floating-point type with length 12.
868 2001-07-27 John R. Moore <jmoore@redhat.com>
870 * configure.in: Added dependency of gdb on tcl/tk libraries.
871 * Makefile.in: Likewise.
872 * configure: Regenerated with the above using autoconf.
874 2001-07-26 Elena Zannoni <ezannoni@redhat.com>
876 * sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of
878 (SH_DEFAULT_NUM_REGS): Define.
880 2001-07-26 Eli Zaretskii <eliz@is.elta.co.il>
882 * go32-nat.c (read_memory_region): Make sure the segment limit was
883 indeed set, to work around a Windows 2000 bug.
885 2001-07-25 Daniel Jacobowitz <drow@mvista.com>
887 * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.
888 * infttrace.c (child_xfer_memory): Likewise.
889 * symm-nat.c (child_xfer_memory): Likewise.
890 * gdbserver/low-hppabsd.c (read_inferior_memory): Likewise.
891 (write_inferior_memory): Likewise.
892 * gdbserver/low-linux.c (read_inferior_memory): Likewise.
893 (write_inferior_memory): Likewise.
894 * gdbserver/low-lynx.c (read_inferior_memory): Likewise.
895 (write_inferior_memory): Likewise.
896 * gdbserver/low-nbsd.c (read_inferior_memory): Likewise.
897 (write_inferior_memory): Likewise.
898 * gdbserver/low-sparc.c (read_inferior_memory): Likewise.
899 (write_inferior_memory): Likewise.
900 * gdbserver/low-sun3.c (read_inferior_memory): Likewise.
901 (write_inferior_memory): Likewise.
903 2001-07-25 Eli Zaretskii <eliz@is.elta.co.il>
905 * README: Mention how to make gdb.pdf.
909 2001-07-24 Stephen P. Smith <ischis2@home.com>
911 * MAINTAINERS (Stephen P. Smith): Added to write after approval
914 2001-07-23 Andrew Cagney <ac131313@redhat.com>
916 * mips-tdep.c (mips_push_arguments): Add comment explaining
917 problem with LE o32 GCC.
919 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
921 * config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
922 doesn't understand them.
924 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
926 * memattr.c (mem_info_command): Reformat output to look more like
928 (_initialize_mem): Improve help.
930 2001-07-23 Mark Kettenis <kettenis@gnu.org>
932 * configure.in (AC_CHECK_FUNCS): Add setpggrp.
933 (AC_FUNC_SETPGRP): Add.
934 * aclocal.m4, configure, config.in: Regenerated.
935 * inflow.c (gdb_setpgid): Get rid of NEED_POSIX_SETPGID and
936 SETPGRP_ARGS. Always use setpgid if it is available, fall back on
937 setpgrp if it isn't. Use SETPGRP_VOID (defined by autoconf) to
938 distinguish between the two setpgrp flavours.
939 * config/xm-sysv4.h, config/arm/xm-linux.h,
940 config/i386/xm-i386aix.h, config/i386/xm-sco.h,
941 config/i386/xm-linux.h, config/i386/xm-ptx.h,
942 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
943 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h,
944 config/ia64/xm-linux.h (NEED_POSIX_SETPGID): Remove.
945 * config/rs6000/xm-rs6000.h (SETPGRP_ARGS): Remove.
947 2001-07-23 Eli Zaretskii <eliz@is.elta.co.il>
949 * go32-nat.c (read_memory_region): Set the granularity bit of the
950 allocated segment according to its size, and adjust the limit to
951 be page-aligned if the segment is page-granular.
953 * (get_cr3, get_pde, get_pte, display_ptable_entry, go32_pde)
954 (display_page_table, go32_pte, go32_pte_for_address): New functions.
955 (_initialize_go32_nat): Initialize and document them.
957 2001-07-22 Mark Kettenis <kettenis@gnu.org>
959 * i386gnu-nat.c: Include "i387-nat.h".
960 (struct env387): Removed.
961 (reg_offset): Fix comment.
962 (fetch_fpregs): Use FCTRL_REGNUM and FOP_REGNUM instead of
963 FIRST_FPU_CONTROL_REGNUM and LAST_FPU_CONTROL_REGNUM. Rewrite to
964 use i387_supply_fsave.
965 (gnu_fetch_registers): Remove spurious whitespace.
966 (convert_to_env387): Remove.
967 (store_fpregs): Add argument regno. Use i387_fill_fsave instead
968 of convert_to_env387.
969 (gnu_store_registers): Remove spurious whitespace. Pass REGNO to
971 * config/i386/i386gnu.mt (TDEPFILES): Add i387-tdep.o.
972 * config/i386/i386gnu.mh (XDEPFILES): Remove i387-tdep.o.
973 (NATDEPFILES): Add i387-nat.o.
975 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
977 * Makefile.in (ALLDEPFILES): Add m68hc11-tdep.c.
978 (m68hc11-tdep.o): Define dependencies.
980 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
982 * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
984 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
986 * utils.c (init_page_info): Use tui_get_command_dimension.
987 * printcmd.c (disassemble_command): Simplify tui specific code,
988 use tui_is_window_visible, tui_show_assembly.
990 2001-07-21 Mark Kettenis <kettenis@gnu.org>
992 * i386bsd-nat.c: Do not include <sys/sysctl.h>.
993 (_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific
995 * i386fbsd-nat.c: ... here. New file.
996 * config/i386/fbsd.mh (NATDEPFILES): Add i386-fbsd.o.
997 * config/i386/nm-fbsd.h (CHILD_RESUME): Define.
998 * Makefile.in (ALLDEPFILES): Add i386fbsd-nat.c.
999 (i386fbsd-nat.o): Add dependencies.
1001 2001-07-19 Daniel Jacobowitz <drow@mvista.com>
1003 * signals.c: New file.
1004 * Makefile.in: Add signals.o.
1005 * target.c (struct signals, target_signal_to_name)
1006 (target_signal_from_name, target_signal_from_host)
1007 (do_target_signal_to_host, target_signal_to_host_p)
1008 (target_signal_to_host, target_signal_from_command): Move to
1010 (initialize_targets): Move check of struct signals to...
1011 * signals.c (_initialize_signals): Here.
1013 2001-07-19 Andrew Cagney <ac131313@redhat.com>
1015 * MAINTAINERS: Add Michael Chastain as C++ testsuite maintainer.
1017 2001-07-19 Andrew Cagney <ac131313@redhat.com>
1020 * configure.tgt (i*86-*-pe*): New target.
1022 2001-07-19 Andrew Cagney <ac131313@redhat.com>
1024 From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:
1025 * infttrace.c (child_thread_alive): Fix gdb_tid typo.
1026 * somsolib.c (no_shared_libraries): Provide stub.
1027 * xcoffsolib.c (no_shared_libraries): Provide stub.
1029 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1031 * Makefile.in (COMMON_OBS): Remove tui-file.o.
1032 (SUBDIR_TUI_OBS): Add it here.
1033 (SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
1034 (main.o): Remove dependency with tui-file.h.
1036 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
1038 * Makefile.in (tui-file.o): Update dependencies.
1040 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
1042 * top.c (catch_errors): Convert PTR to void * in parameters list.
1043 (quit_cover): Ditto.
1045 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1047 * source.c (find_source_lines): Remove tui test, must be replaced
1048 by appropriate warning hook.
1049 (print_source_lines): Remove tui hacks, must be replaced by cli.
1050 (forward_search_command): Remove tui hacks, can be replaced by
1051 appropriate calls to identify_source_line when tui scrolls.
1052 (reverse_search_command): Likewise.
1054 2001-07-16 Nick Duffek <nsd@redhat.com>
1056 * remote.c (init_remote_ops, init_remote_cisco_ops,
1057 init_remote_async_ops): Set to_pid_to_str and
1058 to_extra_thread_info correctly and in the same order as declared
1061 2001-07-16 Andrew Cagney <ac131313@redhat.com>
1063 * remote.c: Revert below. Included more than intended.
1065 2001-07-16 Nick Duffek <nsd@redhat.com>
1067 * remote.c (init_remote_ops, init_remote_cisco_ops,
1068 init_remote_async_ops): Set to_pid_to_str and
1069 to_extra_thread_info correctly and in the same order as declared
1072 2001-07-16 Nick Duffek <nsd@redhat.com>
1074 * findvar.c (read_var_value): Apply value_as_pointer() to
1075 addresses retrieved from the target for LOC_BASEREG and
1076 LOC_BASEREG_ARG variables.
1078 2001-07-16 Orjan Friberg <orjanf@axis.com>
1080 * NEWS: New target CRIS.
1082 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
1084 * top.c (show_commands): Remove extern decl of history_get, it's
1085 already in readline/history.h.
1087 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
1089 * top.c (is_complete_command, init_cmd_lists, init_cli_cmds,
1090 execute_user_command, do_setshow_command, get_prompt, init_proc,
1091 serial_log_command): Remove extern declarations. Include
1092 cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h.
1093 * gdbcmd.h (execute_user_command): Remove declaration, it's already
1094 in cli/cli-script.h.
1095 * command.h (do_setshow_command): Remove declaration, it's already
1096 in cli/cli-setshow.h.
1097 * infrun.c: Include "cli/cli-script.h" for execute_user_command.
1098 * Makefile.in (infrun.o): Update dependencies.
1100 * cli/cli-setshow.h: Add comment for do_setshow_command.
1102 2001-07-16 Eli Zaretskii <eliz@is.elta.co.il>
1104 * cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
1105 call to chdir on this symbol rather than on __DJGPP__.
1106 (CANT_FORK) [__MSDOS__]: Move from here...
1107 * defs.h (CANT_FORK) [__MSDOS__]: ...to here.
1108 (GLOBAL_CURDIR) [__MSDOS__]: Define.
1110 2001-07-16 Orjan Friberg <orjanf@axis.com>
1112 * configure.tgt: Recognise the CRIS architecture.
1113 * config/cris/cris.mt: New file for CRIS target.
1114 * cris-tdep.c: New file for CRIS target.
1116 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
1118 * top.c (quit_cover, float_handler): Move definition up before use.
1119 (gdb_init): Move to end of file, to avoid calls to not yet defined
1123 2001-07-14 Andrew Cagney <ac131313@redhat.com>
1125 * serial.h (SERIAL_ASYNC): Delete.
1126 (DEPRECATED_SERIAL_FD): Delete.
1127 (SERIAL_DEBUG): Delete.
1128 (SERIAL_DEBUG_P): Delete.
1129 (SERIAL_DRAIN_OUTPUT): Delete.
1130 (SERIAL_FLUSH_OUTPUT): Delete.
1131 (SERIAL_FLUSH_INPUT): Delete.
1132 (SERIAL_SEND_BREAK): Delete.
1133 (SERIAL_RAW): Delete.
1134 (SERIAL_GET_TTY_STATE): Delete.
1135 (SERIAL_SET_TTY_STATE): Delete.
1136 (SERIAL_PRINT_TTY_STATE): Delete.
1137 (SERIAL_NOFLUSH_SET_TTY_STATE): Delete.
1138 (SERIAL_SETBAUDRATE): Delete.
1139 (SERIAL_SETSTOPBITS): Delete.
1140 (SERIAL_CAN_ASYNC_P): Delete.
1141 (SERIAL_IS_ASYNC_P): Delete.
1142 (SERIAL_UN_FDOPEN): Delete.
1143 (SERIAL_READCHAR): Delete.
1144 (SERIAL_CLOSE): Delete.
1145 (SERIAL_FDOPEN): Delete.
1146 (SERIAL_OPEN): Delete.
1147 * ser-unix.c: Update.
1148 * sparclet-rom.c: Update.
1149 * remote-bug.c: Update.
1152 * nindy-share/ttyflush.c: Update.
1153 * nindy-share/Onindy.c: Update.
1156 * remote-nindy.c: Update.
1158 * sparcl-tdep.c: Update.
1159 * sh3-rom.c: Update.
1161 * remote-utils.c: Update.
1162 * remote-st.c: Update.
1163 * remote-sds.c: Update.
1164 * remote-rdp.c: Update.
1165 * remote-os9k.c: Update.
1166 * remote-nrom.c: Update.
1167 * remote-mips.c: Update.
1168 * remote-es.c: Update.
1169 * remote-e7000.c: Update.
1170 * remote-array.c: Update.
1172 * nindy-share/nindy.c: Update.
1173 * monitor.c: Update.
1175 2001-07-14 Andrew Cagney <ac131313@redhat.com>
1177 * mn10200-tdep.c: Replace value_ptr with ``struct value *''.
1178 * mcore-tdep.c: Ditto.
1179 * sparc-tdep.c: Ditto.
1181 * rs6000-tdep.c: Ditto.
1182 * ppc-linux-tdep.c: Ditto.
1183 * m68hc11-tdep.c: Ditto.
1184 * ia64-tdep.c: Ditto.
1185 * i386-tdep.c: Ditto.
1186 * arm-linux-tdep.c: Ditto.
1187 * hppa-tdep.c: Ditto.
1188 * h8500-tdep.c: Ditto.
1189 * fr30-tdep.c: Ditto.
1190 * arm-tdep.c: Ditto.
1191 * alpha-tdep.c: Ditto.
1192 * d30v-tdep.c: Ditto.
1193 * d10v-tdep.c: Ditto.
1194 * m32r-tdep.c: Ditto.
1195 * mips-tdep.c: Ditto.
1196 * v850-tdep.c: Ditto.
1198 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
1200 * top.c (readline_line_completion_function, noop_completer): Move
1202 * completer.c (readline_line_completion_function, noop_completer):
1204 * gdbcmd.h (readline_line_completion_function, noop_completer):
1205 Move declarations from here...
1206 * completer.h (readline_line_completion_function, noop_completer):
1208 * corefile.c: Include completer.h.
1211 * Makefile.in: Update dependencies.
1213 2001-07-15 Eli Zaretskii <eliz@is.elta.co.il>
1215 * go32-nat.c (go32_create_inferior): Support command lines longer
1216 than 126 characters.
1218 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1220 * NEWS: New target 68HC11/68HC12.
1222 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1224 * utils.c (query): Remove tui hacks; tui must use the query_hook.
1225 * top.c (command_loop): Remove tui insert_mode hacks; don't call
1226 tuiCleanUp because this must be made with atexit by tui.
1227 * symfile.c (symbol_file_command): Remove call to TUIDO
1228 * stack.c (show_and_print_stack_frame_stub): Remove tui check;
1229 not necessary when using the selected frame hooks.
1230 (print_stack_frame_stub): Likewise.
1231 (print_frame_info_base): Likewise.
1232 (print_frame_info): Likewise.
1233 (up_silently_command): Likewise.
1234 (down_silently_command): Likewise.
1235 (show_stack_frame): Likewise for TUIDO.
1236 (select_frame): Likewise.
1237 (select_and_print_frame): Likewise.
1238 (stack_publish_stopped_with_no_frame): Remove.
1239 (select_and_maybe_print_frame): Remove.
1240 * main.c (captured_main): Remove tui_fileopen and tuiInit; tui
1241 must use the initialize ui hook.
1242 * infrun.c (normal_stop): Remove call to TUIDO; tui must use the
1243 selected frame hooks.
1244 * event-top.c (command_handler): Remove tui insert_mode hack.
1245 * defs.h: Remove TUIDO; Only include tui.h.
1246 * breakpoint.c (mention): Remove calls to TUIDO.
1247 (delete_breakpoint): Remove tui hacks; tui must install
1248 the breakpoint hooks.
1250 2001-07-14 Mark Kettenis <kettenis@gnu.org>
1252 * config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
1253 * config/i386/nm-linux.h: ...to here. Change comments about user
1256 * config/i386/xm-linux.h (HAVE_TERMIOS): Really remove.
1258 * Makefile.in (ALLDEPFILES): Add i386bsd-nat.c and i386bsd-tdep.c
1259 (i386bsd-tdep.o, i386bsd-nat.o): New targets.
1261 2001-07-13 Elena Zannoni <ezannoni@redhat.com>
1263 * remote-e7000.c (fetch_regs_from_dump): If register set is null,
1264 generate an internal error.
1265 (e7000_fetch_registers): Initialize variable 'wanted'.
1266 (e7000_wait): Initialize variable 'wanted_nopc'.
1267 (e7000_store_register): Fix sprintf compiler warnings.
1268 (sub2_from_pc): Ditto.
1269 (e7000_open): Close the descriptor, not the name.
1270 (e7000_load): Fix compiler warnings.
1271 (sub2_from_pc): Ditto.
1272 * Makefile.in (remote-e7000.o): Can now compile with -Werror.
1274 2001-07-13 Mark Kettenis <kettenis@gnu.org>
1276 * i386bsd-nat.c: Include <signal.h>, <stddef.h> and
1278 (store_inferior_registers): Wrap long line.
1279 (i386bsd_dr_get_status): Fix typo in comment.
1280 (_initialize_i386bsd_nat): New function. * i386bsd-tdep.c: New
1281 file. * config/i386/tm-fbsd.h (IN_SIGTRAMP): New define.
1282 (i386bsd_in_sigtramp): New prototype.
1283 (SIGTRAMP_START, SIGTRAMP_END): Redefine in terms...
1284 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): ...these new
1285 (external) variables.
1286 (SIGCONTEXT_PC_OFFSET): Removed.
1287 (FRAME_SAVED_PC): New define.
1288 (i386bsd_frame_saved_pc): New function. * config/i386/fbsd.mt
1289 (TDEPFILES): Add i386bsd-tdep.o.
1291 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
1293 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Use ISO C
1296 2001-07-13 Mark Kettenis <kettenis@gnu.org>
1298 * lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
1299 are no registered LWPs yet.
1301 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
1303 * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
1305 (CANNOT_STORE_REGISTER): Likewise.
1307 2001-07-12 Keith Seitz <keiths@redhat.com>
1309 * remote-rdp.c: Include "serial.h"
1311 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
1313 * gdbserver/remote-utils.c (remote_open): Set VMIN to 1
1314 in HAVE_TERMIO/HAVE_TERMIOS cases.
1316 2001-07-12 Mark Kettenis <kettenis@gnu.org>
1318 * lin-lwp.c (stop_wait_callback): Add support for flushing
1319 signals. Use that in favour of the old code to get rid of
1320 superfluous SIGINTs.
1321 (lin_lwp_wait): Use the new support in stop_wait_callback to
1322 flush all but one SIGINT.
1324 * i386-tdep.c (i386_extract_return_value): Undo 2001-07-11 changes
1326 (i386_store_return_value): Improve comments about storing
1327 floating-point return values.
1329 * config/arm/xm-linux.h, config/i386/xm-linux.h,
1330 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
1331 config/sparc/xm-linux.h, config/ia64/xm-linux.h (HAVE_TERMIOS):
1332 Removed. Taken care of by autoconf and terminal.h.
1334 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
1336 * mips-tdep.c (mips_type_needs_double_align): New function.
1337 (mips_push_arguments): Align o32 structs to even argument
1338 registers if necessary.
1340 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
1342 * config/djgpp/fnchange.lst: Add entries for
1343 mips-linux-nat.c and mips-linux-tdep.c.
1345 2001-07-12 Mark Kettenis <kettenis@gnu.org>
1347 * config/powerpc/xm-linux.h: Fix corrupted file.
1349 * configure.in: Add check for sigsetjmp.
1350 * config/m68k/xm-linux.h (HAVE_SIGSETJMP): Removed.
1351 * config/xm-sysv4.h (HAVE_SIGSETJMP): Removed.
1352 * configure, config.in: Regenerated.
1354 2001-07-11 Elena Zannoni <ezannoni@redhat.com>
1356 * config/sh/tm-sh.h (struct gdbarch_tdep): Add
1357 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
1360 * sh-tdep.c (sh_skip_prologue_hard_way): Rename from
1361 skip_prologue_hard_way().
1362 (skip_prologue_hard_way): Make it a function pointer.
1363 (sh_print_register): Use function pointer do_pseudo_register,
1364 instead of sh_do_pseudo_register.
1365 (sh_do_registers_info): Ditto.
1366 (sh_gdbarch_init): Initialize do_pseudo_register.
1367 (IS_MOV_TO_R14): Rename from IS_MOV_R14.
1368 (skip_prologue_hard_way): Update.
1369 (sh_gdbarch_init): Move setting of frame_chain,
1370 get_saved_register, init_extra_frame_info, push_arguments,
1371 extract_return_value, pop_frame, store_struct_return,
1372 extract_struct_value_address, use_struct_convention,
1373 init_extra_frame_info to before target specific settings.
1374 (sh_gdbarch_init): Initialize new tdep fields
1375 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
1377 (sh_push_arguments): Use new gdbarch_tdep fields
1378 {ARG0,ARGLAST}_REGNUM.
1379 (sh_saved_pc_after_call, sh_nofp_frame_init_saved_regs,
1380 sh_init_extra_frame_info, sh_push_return_address,
1381 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
1382 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update to use
1383 gdbarch_tdep->PR_REGNUM.
1384 (dr_reg_base_num, fv_reg_base_num): Move to earlier in the file.
1386 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
1388 * config/mips/tm-linux.h: Include "tm-linux.h" instead of copying
1389 from it. Move definitions of REALTIME_LO and REALTIME_HI above
1392 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
1394 * MAINTAINERS: List myself for MIPS/Linux
1397 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
1399 * gdbserver/remote-utils.c (remote_open): Only
1400 check for F_SETOWN if we had F_SETFL and FASYNC.
1402 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
1404 From Michael Fedrowitz <michael.fedrowitz@informatik.uni-ulm.de>:
1406 * config/m68k/linux.mh: Remove core-regset.o.
1407 * m68klinux-nat.c: Fix comment.
1408 (supply_gregset): Change argument to elf_gregset_t *.
1409 (supply_fpregset): Change argument to elf_fpregset_t *.
1410 (fetch_core_registers): New function.
1411 (linux_elf_core_fns): Define.
1412 (_initialize_m68k_linux_nat): New function.
1414 2001-07-11 Andrew Cagney <ac131313@redhat.com>
1416 * configure.tgt: Mark d10v as pure multi-arch.
1417 * config/d10v/tm-d10v.h: Delete file.
1418 * config/d10v/d10v.mt (TM_FILE): Delete.
1420 2001-07-10 Andrew Cagney <ac131313@redhat.com>
1422 * serial.h (typedef serial_t): Delete. Replace all references to
1423 serial_t with `struct serial *'.
1425 * nindy-share/ttyflush.c: Update.
1426 * nindy-share/ttyflush.c: Update.
1427 * nindy-share/Onindy.c: Update.
1428 * nindy-share/nindy.c: Update.
1429 * remote-rdp.c: Update.
1430 * remote-sds.c: Update.
1431 * remote-st.c: Update.
1432 * remote-nindy.c: Update.
1433 * remote-mips.c: Update.
1434 * remote-e7000.c: Update.
1435 * remote-os9k.c: Update.
1436 * remote-nrom.c: Update.
1437 * remote-es.c: Update.
1438 * remote-array.c: Update.
1440 * mon960-rom.c: Update.
1443 * ser-e7kpc.c: Update.
1444 * sparclet-rom.c: Update.
1446 * ser-tcp.c: Update.
1447 * ser-go32.c: Update.
1448 * sparcl-tdep.c: Update.
1449 * w89k-rom.c: Update.
1451 * sh3-rom.c: Update.
1453 * ser-pipe.c: Update.
1454 * ser-unix.c: Update.
1455 * ser-unix.h: Update.
1459 2001-07-11 J.T. Conklin <jtc@redback.com>
1461 From Greg McGary <greg@mcgary.org>:
1462 * gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
1464 (input_interrupt): Don't block on read, in case we got redundant
1465 SIGIO. Don't gripe about redundant SIGIO.
1466 * gdbserver/low-hppabsd.c (mywait): Use waitpid(). Enable SIGIO
1467 handler while waiting.
1468 * gdbserver/low-linux.c (mywait): Likewise.
1469 * gdbserver/low-nbsd.c (mywait): Likewise.
1470 * gdbserver/low-sparc.c (mywait): Likewise.
1472 2001-07-11 Keith Seitz <keiths@redhat.com>
1474 * infrun.c (print_stop_reason): Add missing uiout field
1475 "reason" for SIGNAL_RECEIVED case.
1477 2001-07-11 Mark Kettenis <kettenis@gnu.org>
1479 * config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
1480 Remove unused macro's.
1482 * config/powerpc/nm-linux.h (NO_SYS_REG_H): Remove, it's no longer
1485 2001-07-11 Eli Zaretskii <eliz@is.elta.co.il>
1487 * go32-nat.c (info_dos_cmdlist): New variable.
1488 (go32_info_dos_command): New function.
1489 (_initialize_go32_nat): Convert all DOS-specific commands into
1490 subcommands of "info dos". Suggested by Andrew Cagney
1491 <ac131313@redhat.com>.
1493 2001-07-11 Mark Kettenis <kettenis@gnu.org>
1495 * config/nm-linux.h: Fix comments.
1497 * thread-db.c (enable_thread_event_reporting): Correct warning
1498 message about getting thread death breakpoint.
1499 Reported by John S Kallal <jskallal@home.com>.
1501 * i386-tdep.c (i386_extract_return_value): "Fix" comment.
1502 (i386_store_return_value): Frob FPU status and tag word to make
1503 sure the return value is the only value on the FPU stack.
1505 * config/tm-linux.h: Do not include <signal.h>. Instead provide
1506 reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
1508 * config/nm-linux.h: Include <signal.h>.
1509 [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
1510 (__SIGRTMAX + 1) respectively.
1512 2001-07-10 Andrew Cagney <ac131313@redhat.com>
1514 * mcore-rom.c: Include "serial.h".
1515 * Makefile.in (mcore-rom.o): Depends on "serial.h".
1517 2001-07-10 Andrew Cagney <ac131313@redhat.com>
1519 * Makefile.in (remote-bug.o): Depends on serial.h.
1520 * remote-bug.c: Include "serial.h".
1521 * MAINTAINERS: Mark m88k target as buildable.
1524 2001-07-10 Jim Blandy <jimb@redhat.com>
1526 Clean up the D10V port so that GDB and the target program no
1527 longer disagree on how big pointers are.
1528 * findvar.c (value_from_register): Remove special case code for D10V.
1529 * printcmd.c (print_frame_args): Same.
1530 * valops.c (value_at, value_fetch_lazy): Same.
1531 * values.c (unpack_long): Same.
1532 * gdbarch.sh: Changes to effect the following:
1533 * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
1534 gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
1535 set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
1536 gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
1537 set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
1538 gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
1539 set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
1540 gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
1541 set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
1542 gdbarch_d10v_convert_daddr_to_raw_ftype,
1543 gdbarch_d10v_convert_daddr_to_raw,
1544 set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
1545 gdbarch_d10v_convert_iaddr_to_raw_ftype,
1546 gdbarch_d10v_convert_iaddr_to_raw,
1547 set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
1548 * gdbarch.c: Delete the corresponding definitions.
1549 (struct gdbarch): Delete members d10v_make_daddr,
1550 d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
1551 d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
1552 (startup_gdbarch): Remove initializers for the above.
1553 (verify_gdbarch, gdbarch_dump): Don't verify or dump them any
1555 * d10v-tdep.c (d10v_register_virtual_type): Rather that
1556 claiming the stack pointer and PC are 32 bits long (which they
1557 aren't), say that the stack pointer is an int16_t, and the
1558 program counter is a function pointer. This allows the rest
1559 of GDB to make the appropriate conversions between the code
1560 pointer format and real addresses.
1561 (d10v_register_convertible, d10v_register_convert_to_virtual,
1562 d10v_register_convert_to_raw): Delete function; no registers
1563 are convertible now, so we use
1564 generic_register_convertible_not instead.
1565 (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
1567 (d10v_push_arguments, d10v_extract_return_value): Remove special
1568 cases for code and data pointers.
1569 (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
1570 the target agree on how large pointers are. Say that addresses
1571 are 32 bits long. Register the address_to_pointer and
1572 pointer_to_address conversion functions. Since no registers are
1573 convertible now, register generic_register_convertible_not as the
1574 gdbarch_register_convertible method instead of
1575 d10v_register_convertible. Remove registrations for
1576 d10v_register_convert_to_virtual,
1577 d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
1578 gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
1579 gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
1580 gdbarch_d10v_convert_iaddr_to_raw.
1582 * printcmd.c (print_scalar_formatted): If we are printing an
1583 address, remember that TARGET_ADDR_BIT is not always equal to
1586 * valops.c (value_cast): When casting a pointer to an integer,
1587 don't convert it to an address.
1589 2001-07-10 Andrew Cagney <ac131313@redhat.com>
1591 * remote-utils.h (struct serial): Declare as opaque. Remove
1592 include of "serial.h".
1593 * Makefile.in (remote_utils_h): Update.
1595 * monitor.h (struct serial): Declare as opaque. Remove include of
1597 (struct monitor_ops): Replace serial_t with `struct serial *'.
1598 * monitor.c (monitor_desc): Ditto.
1600 2001-07-10 Daniel Jacobowitz <drow@mvista.com>
1602 * mips-linux-tdep.c: New file.
1603 * mips-linux-nat.c: New file.
1604 * config/mips/linux.mh: New file.
1605 * config/mips/linux.mt: New file.
1606 * config/mips/xm-linux.h: New file.
1607 * config/mips/nm-linux.h: New file.
1608 * config/mips/tm-linux.h: New file.
1609 * configure.host: Recognize mips*-*-linux*.
1610 * configure.tgt: Likewise.
1611 * NEWS: Mention mips*-*-linux* port.
1613 2001-07-09 Andrew Cagney <ac131313@redhat.com>
1615 * serial.h (struct serial): Rename `struct _serial_t'.
1616 * serial.c (XMALLOC): Define.
1617 (serial_open): Update. Use XMALLOC.
1618 (serial_fdopen): Ditto.
1620 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1622 * gdbtypes.h (builtin_type_void_data_ptr): Rename
1624 * gdbtypes.c (builtin_type_void_data_ptr): Update.
1625 (build_gdbtypes): Update.
1626 (_initialize_gdbtypes): Update.
1627 * values.c (value_as_pointer): Update.
1628 * utils.c (host_pointer_to_address): Update.
1629 (address_to_host_pointer): Update.
1631 2001-07-08 Andrew Cagney <ac131313@redhat.com>
1633 * remote-udi.c (udi_wait): Make type, instead of name, of first
1636 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1638 * ser-mac.c: Make obsolete.
1639 * Makefile.in (ser-mac.o): Ditto.
1641 2001-07-08 Eli Zaretskii <eliz@is.elta.co.il>
1643 * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
1644 (read_memory_region, get_descriptor, display_descriptor)
1645 (go32_sldt, go32_sgdt, go32_sidt): New functions.
1646 (top-level): Include ctype.h, utsname.h, dos.h, and go32.h. Ifdef
1647 away `disable' from dos.h, since breakpoint.h defines an enum
1648 member of the same name, and GCC 2.7.2 barfs.
1649 (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
1650 dos-gdt, and dos-idt, all of them in the "info" class
1652 2001-07-07 Kevin Buettner <kevinb@redhat.com>
1654 * procfs.c (create_procinfo): Allocate space for saved_entryset
1656 (destroy_one_procinfo): Free space allocated to saved_entryset
1659 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1661 * TODO (5.1): Update.
1663 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1665 * symtab.c (main_name): New function.
1666 (set_main_name): New function.
1667 * symtab.h: Declare.
1670 From 2000-03-05 Anthony Green <green@redhat.com>:
1671 * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
1673 * blockframe.c (inside_main_func): Use main_name instead of
1675 * symtab.c (find_main_psymtab): Ditto.
1676 * source.c (select_source_symtab): Ditto.
1677 * nlmread.c (nlm_symfile_read): Ditto.
1678 * rs6000-tdep.c (skip_prologue): Ditto.
1680 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1682 * TODO: Convert most items into PRs.
1684 2001-07-07 Mark Kettenis <kettenis@gnu.org>
1686 * lin-lwp.c (status_to_str): New function.
1687 (lin_lwp_wait): Use it to print debug messages where appropriate.
1689 2001-07-06 Michael Chastain <chastain@redhat.com>
1691 * i387-tdep.c (print_i387_value): Fix pointer glitch.
1693 2001-07-07 Mark Kettenis <kettenis@gnu.org>
1695 * lin-lwp.c (count_events_callback): Fix formatting. Turn check
1696 commented with "paranoia" into gdb_assert.
1697 (select_event_lwp_callback): Likewise.
1698 (cancel_breakpoints_callback): Bail out early if LP is the event
1699 LWP. Add comment about backup up breakpoints. Fix formatting and
1701 (select_event_lwp): Make solely repsonsible for switching event
1702 LWP. Fix formatting and remove bogus "ERROR" debug message.
1703 Don't backup breakpoints from here.
1704 (lin_lwp_wait): Don't touch LP->status, let select_event_lwp
1705 handle that. Only call select_event_lwp if we're not waiting for
1706 a specific LWP, i.e. when PID == -1. Backup breakpoints from here.
1708 2001-07-06 Michael Snyder <msnyder@redhat.com>
1710 * procfs.c (procfs_resume): Silence noisy warning.
1712 2001-06-12 Michael Snyder <msnyder@redhat.com>
1714 * lin-lwp.c: Prevent thread starvation by using a monte carlo
1715 method to choose which of several event threads to handle next.
1717 (stop_wait_callback): Defer pushback of breakpoint events until
1718 later; add SIGTRAP events to the queue of unhandled events.
1719 Keep calling waitpid until SIGSTOP retrieved. If more than one
1720 non-SIGSTOP event is retrieved, push them back onto the process
1722 (count_events_callback, select_singlestep_lwp_callback,
1723 select_event_lwp_callback, cancel_breakpoints_callback,
1724 select_event_lwp): New functions. Implement monte carlo method
1725 for selecting which of several SIGTRAP threads to handle next.
1726 Push back the breakpoint event for all threads other than the
1728 (lin_lwp_wait): Call select_event_lwp to decide which of several
1729 sigtrapped lwps to handle next.
1730 (resume_callback): Disable code that attempts to handle
1731 step_resume breakpoints. Let core gdb handle this.
1733 2001-07-06 Jim Blandy <jimb@redhat.com>
1735 * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
1736 * gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
1737 (build_gdbtypes): Initialize it.
1738 (_initialize_gdbtypes): Swap it.
1740 2001-07-04 Daniel Jacobowitz <drow@mvista.com>
1742 * mips-tdep.c (mips32_op): Correct offset.
1743 (itype_op): Likewise.
1744 (itype_rs): Fix formatting.
1745 (itype_immediate): Fix formatting.
1746 (jtype_op): Correct offset.
1747 (jtype_target): Fix formatting.
1748 (rtype_op): Correct offset.
1749 (rtype_rs): Fix formatting.
1750 (rtype_rt): Likewise.
1751 (rtype_rd): Likewise.
1752 (rtype_shamt): Likewise.
1753 (rtype_funct): Likewise.
1755 (mips32_next_pc): Fix formatting and comments. Recognize
1756 coprocessor 1 branches. Check the correct field for BLT family
1757 branches. Use itype_rt instead of itype_rs for the second register
1758 of a BNE or BNEL branch. Move (unreachable) default case.
1760 2001-07-04 Andrew Cagney <ac131313@redhat.com>
1762 * ui-out.h (struct ui_out_impl): Add field is_mi_like_p.
1763 (ui_out_is_mi_like_p): Declare.
1764 * ui-out.c (ui_out_is_mi_like_p): Define.
1765 (default_ui_out_impl): Initialize is_mi_like_p to zero.
1766 * cli-out.c (cli_ui_out_impl): Ditto.
1767 * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p.
1768 (watchpoint_check, print_one_breakpoint, mention): Ditto.
1769 * infrun.c (print_stop_reason, normal_stop): Ditto.
1771 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
1773 * mips-tdep.c (mips_software_single_step): New function.
1774 * config/mips/tm-mips.h: Add prototype for
1775 mips_software_single_step.
1777 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
1779 * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
1781 (fill_gregset): Likewise.
1783 2001-07-05 Andrew Cagney <ac131313@redhat.com>
1785 * objfiles.c (open_mapped_file): Use lbasename instead of
1788 2001-07-05 Jim Blandy <jimb@redhat.com>
1790 * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
1791 show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
1792 d10v_write_sp, d10v_write_fp, d10v_read_fp,
1793 d10v_push_return_address): Call the functions d10v_make_daddr,
1794 d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
1795 d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
1796 D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
1797 D10V_CONVERT_DADDR_TO_RAW.
1799 * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
1801 2001-07-05 Mark Kettenis <kettenis@gnu.org>
1803 * config/i386/xm-go32.h (HOST_I386): Removed.
1804 * config/i386/xm-linux.h (HOST_I386): Removed.
1806 2001-07-04 Mark Kettenis <kettenis@gnu.org>
1808 * i387-tdep.c (print_i387_value): Add extra space after final full
1811 2001-07-04 Andrew Cagney <ac131313@redhat.com>
1813 * TODO (5.1): Update. Doco changes committed.
1815 2001-06-29 Andrew Cagney <ac131313@redhat.com>
1817 * config/arm/tm-arm.h: Include "floatformat.h".
1819 2001-06-29 Andrew Cagney <ac131313@redhat.com>
1821 * i387-tdep.c: Include "gdb_assert.h".
1822 (print_i387_value): Use extract_floating to extract the FP value
1823 from a zero padded local buffer.
1825 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1827 * TODO: Delete all thread items. The thread code was overhauled.
1829 2001-07-04 Elena Zannoni <ezannoni@redhat.com>
1831 * memattr.c (create_mem_region): Move n to next memory region,
1832 to avoid infinite loop.
1834 * memattr.h: Add copyright statement.
1837 2001-07-04 Jim Blandy <jimb@redhat.com>
1839 * dwarf2read.c (struct partial_die_info): New member: has_pc_info.
1840 (read_partial_die): Delete fourth argument; we return this info in
1841 the struct partial_die_info object itself now.
1842 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
1843 has_pc_info field of the partial die struct, rather than passing a
1844 variable by reference to read_partial_die.
1846 * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
1847 code in loop condition.
1849 2001-07-03 Michael Snyder <msnyder@redhat.com>
1851 * thread_db (find_new_threads_callback, thread_db_thread_alive,
1852 attach_thread): Update comments.
1854 2001-06-29 Ken Whaley <ken@believe.com>
1856 * thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
1857 to TD_THR_UNKNOWN when looking for defunct zombie threads.
1858 (thread_db_thread_alive): Ditto.
1859 (find_new_threads_callback): Ditto.
1861 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
1863 * MAINTAINERS: Add myself to the write-after-approval list.
1865 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
1867 * solib-svr4.c: Include "elf/mips.h".
1868 (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
1870 2001-07-02 Jim Blandy <jimb@redhat.com>
1872 * dwarf2read.c (read_comp_unit, sibling_die, dump_die,
1873 dump_die_list, store_in_ref_table, follow_die_ref): Make these
1874 static; they're private functions.
1876 2001-07-01 Mark Elbrecht <snowball@bigfoot.com>
1878 * coffread.c (coff_symfile_read): Parse DWARF2 info if present.
1880 2001-06-28 Elena Zannoni <ezannoni@redhat.com>
1882 * TODO: Add import of readline 4.2 as a gdb 5.2 task.
1884 2001-06-29 Andrew Cagney <ac131313@redhat.com>
1886 * config/djgpp/fnchange.lst: Sort.
1888 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1890 * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
1891 mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
1893 2001-06-29 Andreas Jaeger <aj@suse.de>
1895 * MAINTAINERS: Add myself to the write-after-approval list.
1897 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1899 * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro.
1900 (get_hex_word): Don't use HOST_BYTE_ORDER.
1901 (array_fetch_registers): Add variable ``reg''. Use
1902 store_unsigned_integer to byte-swap the register. Delete unused
1905 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1907 * MAINTAINERS: Add Per Bothner to Java maintainers.
1909 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1911 * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
1912 * rdi-share/hostchan.h (__unix): Hack, provide a default value.
1913 * rdi-share/host.h (__unix): Hack, define when __NetBSD__.
1915 * MAINTAINERS: Update. arm-elf builds.
1917 2001-06-28 Jim Blandy <jimb@redhat.com>
1919 * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.
1921 * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention,
1922 d10v_breakpoint_from_pc, d10v_register_byte,
1923 d10v_register_raw_size, d10v_register_virtual_size,
1924 d10v_register_virtual_type, d10v_register_convertible,
1925 d10v_register_convert_to_virtual, d10v_register_convert_to_raw,
1926 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
1927 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
1928 d10v_store_struct_return, d10v_store_return_value,
1929 d10v_extract_struct_value_address, d10v_frame_saved_pc,
1930 d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue,
1931 d10v_frame_chain, d10v_frame_init_saved_regs,
1932 d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc,
1933 d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp,
1934 d10v_push_return_address, d10v_push_arguments,
1935 d10v_extract_return_value): Make these functions static.
1937 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1939 From Fernando Nasser:
1940 * infrun.c (handle_inferior_event): Handle "nexti" inside function
1943 2001-06-28 Michael Snyder <msnyder@redhat.com>
1945 * infrun.c (handle_inferior_event): Replace prev_pc test in all
1946 calls to bpstat_stop_status (removed in 1999-09-24). This test
1947 helps distinguish stepping over a breakpoint trap from stepping
1948 thru a jump to the instruction after a breakpoint trap.
1949 (handle_inferior_event): Don't bother writing the PC if
1950 DECR_PC_AFTER_BREAK is zero (optimization).
1951 * breakpoint.c (bpstat_stop_status): Add comment explaining the
1952 purpose and usage of the "not_a_breakpoint" argument in computing
1953 the breakpoint address.
1955 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1957 From 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
1958 * monitor.c (setmem_resp_delim_pattern): New regexp pattern.
1959 (setreg_resp_delim_pattern): Likewise.
1960 (setmem_resp_delim_fastmap): New buffer.
1961 (setreg_resp_delim_fastmap): Likewise.
1962 (monitor_open): Initialize above regexp if they are defined.
1963 (monitor_write_memory): Use regexp to check the result of write.
1964 (monitor_store_register): Likewise to check result of register set.
1966 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1968 From 2000-06-14 John Marshall <john_w_marshall@palm.com>:
1969 * coff-solib.c: Include symfile.h and objfiles.h to make
1970 OBJF_SHARED visible.
1972 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1974 * configure.in (--enable-gdbmi): Enable by default.
1975 * configure: Regenerate.
1979 2001-06-28 Joel Brobecker <brobecker@act-europe.fr>
1981 * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment
1982 explaining the consequences of always returning zero. No code
1985 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1987 From 2001-06-08 Daniel Jacobowitz <djacobowitz@mvista.com>:
1988 * defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65
1989 to TARGET_SIGNAL_REALTIME_127.
1990 * target.c (struct signals): Add SIG63 to SIG127.
1991 (target_signal_from_host): Handle up to 127 signals.
1992 (do_target_signal_to_host): Likewise.
1994 2001-06-27 Andrew Cagney <ac131313@redhat.com>
1996 * remote-sds.c (sds_start_remote): Change type of ``c'' to int
1997 from possibly unsigned char.
1999 2001-06-27 Andrew Cagney <ac131313@redhat.com>
2001 * ser-ocd.c: Delete file.
2002 * Makefile.in (ALLDEPFILES): Remove ser-ocd.c
2003 (ser-ocd.o): Delete target.
2007 2001-06-27 Andrew Cagney <ac131313@redhat.com>
2009 * MAINTAINERS (Write After Approval): Sort.
2010 (Past Maintainers): Daniel Berlin stepped down as C++ maintainer.
2012 2001-06-26 Andrew Cagney <ac131313@redhat.com>
2014 * breakpoint.c (breakpoint_1): Always output the breakpoint
2015 headings. Leave it to ui-out to decide which
2017 2001-06-25 Andrew Cagney <ac131313@redhat.com>
2019 * stack.c (print_frame): For ui_out, output a list of arguments.
2021 2001-06-25 Kevin Buettner <kevinb@redhat.com>
2023 * MAINTAINERS (paper trail): Update.
2025 2001-06-25 Michael Snyder <msnyder@redhat.com>
2027 * infrun.c: Eliminate the "thread_step_needed" state variable,
2028 and replace it with a relatively simple test in resume.
2029 (resume): Replace thread_step_needed logic with a test for
2030 stepping, breakpoint_here_p and breakpoints_inserted.
2031 Move CANNOT_STEP_BREAKPOINT logic to after thread_step logic.
2032 (proceed): Discard thread_step_needed logic.
2033 (wait_for_inferior, fetch_inferior_event, handle_inferior_event):
2034 Discard thread_step_needed logic.
2036 2001-06-24 Fernando Nasser <fnasser@redhat.com>
2038 * remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
2039 * rdi-share/host.h: Add missing parenthesis in conditional.
2041 2001-06-22 J.T. Conklin <jtc@redback.com>
2043 * configure.in: include nlist.h when checking for member som_addr
2045 * configure: regenerate.
2047 2001-06-21 Keith Seitz <keiths@redhat.com>
2049 * cli-out.c (cli_out_new): Initialize new structure member
2052 2001-06-20 Andrew Cagney <ac131313@redhat.com>
2054 * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
2055 (table_header_ftype): Ditto.
2056 * cli-out.c (cli_table_header): Update.
2057 * ui-out.c (ui_out_table_header): Update.
2058 (uo_table_header): Update.
2059 (default_table_header): Update.
2060 (append_header_to_list): Update.
2061 (struct ui_out_header): Add field ``col_name''.
2062 (append_header_to_list): Use xstrdup. Initialize col_name.
2063 * breakpoint.c (breakpoint_1): Pass COL_NAME to
2064 ui_out_table_header.
2066 2001-06-19 Andrew Cagney <ac131313@redhat.com>
2068 * cli-out.c: Include "gdb_assert.h'.
2069 (struct ui_out_data): Add field ``suppress_output.
2070 (cli_table_begin): When NR_ROWS is zero, suppress_output.
2071 (cli_table_end): Clear suppress_output.
2072 (cli_table_body): Check suppress_output.
2073 (cli_table_header, cli_begin): Ditto.
2074 (cli_end, cli_field_int, cli_field_skip): Ditto.
2075 (cli_field_string, cli_field_fmt, cli_spaces): Ditto.
2076 (cli_text, cli_message, cli_wrap_hint): Ditto.
2077 * breakpoint.c (breakpoint_1): Close the ui_out table before
2078 printing the breakpoint not found message.
2080 2001-06-18 Andrew Cagney <ac131313@redhat.com>
2082 * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
2083 (default_table_begin): Ditto.
2084 (uo_table_begin): Ditto.
2085 * cli-out.c (cli_table_begin): Ditto.
2086 * ui-out.h (ui_out_table_begin): Update
2087 (table_begin_ftype): Update.
2088 * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
2091 2001-06-16 Andrew Cagney <ac131313@redhat.com>
2093 * breakpoint.c (breakpoint_1): Restructure. Compute the
2094 nr_printable_breakpoints. Move the header output to before the
2095 main print breakpoints loop.
2096 (user_settable_breakpoint): New function.
2098 2001-06-18 Andrew Cagney <ac131313@redhat.com>
2100 * infrun.c, breakpoint.c: Use strncmp as the "mi" test. Allow,
2101 "mi", "mi0" and "mi1".
2103 2001-06-17 Andrew Cagney <ac131313@redhat.com>
2105 * gdbarch.sh: Generate an error when conflicting macro
2106 definitions. Generate an error when both pure multi-arch and
2108 * gdbarch.h, gdbarch.c: Regenerate.
2109 * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
2111 2001-06-17 Andrew Cagney <ac131313@redhat.com>
2113 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
2114 GDB_MULTI_ARCH_PARTIAL from two.
2116 2001-06-17 Fernando Nasser <fnasser@redhat.com>
2118 From 2001-06-15 Eirik Fuller <eirik@hackrat.com>
2119 * cli/cli-script.c (free_command_lines): Reset list pointer.
2121 2001-06-16 Andrew Cagney <ac131313@redhat.com>
2123 * arch-utils.c (init_frame_pc_default): New function
2124 * arch-utils.h (init_frame_pc_default): Declare.
2125 * gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
2126 not init_frame_pc_noop.
2127 * gdbarch.h, gdbarch.c: Re-generate.
2128 * blockframe.c (INIT_FRAME_PC): Delete macro definition.
2129 * mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
2132 2001-06-16 Andrew Cagney <ac131313@redhat.com>
2134 * gdbarch.c: Regenerate. Out-of-sync with gdbarch.sh.
2136 2001-06-15 Andrew Cagney <ac131313@redhat.com>
2138 * gdbarch.sh (CANNOT_FETCH_REGISTER): Multi-arch.
2139 (CANNOT_STORE_REGISTER): Ditto.
2140 * infptrace.c (CANNOT_FETCH_REGISTER): Delete definition.
2141 (CANNOT_STORE_REGISTER): Ditto.
2142 * regcache.c (CANNOT_STORE_REGISTER): Ditto.
2143 * lynx-nat.c (CANNOT_STORE_REGISTER): Ditto.
2144 * arch-utils.h (cannot_register_not): Define.
2145 * arch-utils.c (cannot_register_not): Declare.
2147 2001-06-15 Andrew Cagney <ac131313@redhat.com>
2149 * gdbarch.sh: Clarify pre/post default
2150 (INIT_FRAME_PC_FIRST, INIT_FRAME_PC): Multiarch.
2151 * blockframe.c (get_prev_frame): Remove #ifdef from around
2152 INIT_FRAME_PC_FIRST call.
2153 * arch-utils.c (init_frame_pc_noop): Define.
2154 * arch-utils.h (init_frame_pc_noop): Declare.
2155 * config/mips/tm-mips.h (INIT_FRAME_PC_FIRST): Delete.
2156 (INIT_FRAME_PC, mips_init_frame_pc_first): Ditto.
2157 * mips-tdep.c (mips_init_frame_pc_first): Make static.
2158 (mips_gdbarch_init): Initialize init_frame_pc_first.
2159 (mips_dump_tdep): Update.
2161 2001-06-15 Michael Snyder <msnyder@redhat.com>
2163 * infrun.c (context_switch): New function. Abstract the operation
2164 of saving and restoring infrun's state when switching threads.
2165 (handle_inferior_event): Normalize the handling of the 'thread hop'
2166 event (when the wrong thread hits a thread-specific breakpoint,
2167 and we need to solo-step that thread past the breakpoint).
2168 Call keep_going, instead of target_resume. Handle the subsequent
2169 singlestep-trap as a normal event instead of just resuming.
2171 2001-06-15 Andrew Cagney <ac131313@redhat.com>
2173 * arch-utils.c (core_addr_identity): New function. Rename
2174 default_convert_from_func_ptr_addr.
2175 * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Update.
2176 (ADDR_BITS_REMOVE): Define. Default to core_addr_identity.
2177 * defs.h (ADDR_BITS_REMOVE): Delete macro definition.
2178 * config/mips/tm-mips.h (ADDR_BITS_REMOVE): Delete definition.
2179 * mips-tdep.c (mips_addr_bits_remove): Make static.
2180 (mips_gdbarch_init): Initialize addr_bits_remove.
2182 2001-06-15 Andrew Cagney <ac131313@redhat.com>
2184 From 2001-02-26 D.J. Barrow <djbarrow@de.ibm.com>:
2185 * configure.tgt: Add S/390 31 & 64 bit target configuration.
2186 * configure.host: Ditto for host.
2188 2001-06-15 Andrew Cagney <ac131313@redhat.com>
2190 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
2191 (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
2193 * gdbarch.h, gdbarch.c: Regenerate.
2194 * values.c (value_being_returned): Change the reference to
2195 EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
2197 2001-06-15 Joel Brobecker <brobecker@act-europe.fr>
2199 * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
2200 Write After Approval list.
2202 2001-06-14 Michael Snyder <msnyder@redhat.com>
2204 * remote.c (show_remote_protocol_qSymbol_packet_cmd,
2205 set_remote_protocol_qSymbol_packet_cmd): New functions.
2206 (init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
2207 (remote_check_symbols): New function. Implement qSymbol packet,
2208 allowing target to request symbol lookup service from gdb.
2209 (remote_open_1, remote_async_open_1): Call remote_check_symbols,
2210 allowing symbol lookup from exec_bfd on connection to target.
2211 (remote_new_objfile): New function. Catch new objfile notifications
2212 from shared library module, and call remote_check_symbols.
2213 (_initialize_remote): Hook remote_new_objfile into the shared
2214 library notification chain. Add "set remote symbol-lookup" command.
2216 2001-06-14 Keith Seitz <keiths@redhat.com>
2218 * tracepoint.c (trace_command): We now have tracepoint
2219 events. Get rid of those ugly hooks.
2220 (tracepoint_operation): Likewise.
2221 (trace_pass_command): Likewise.
2223 2001-06-13 Michael Snyder <msnyder@redhat.com>
2225 * gdbthread.h (struct thread_info): Add new fields:
2226 current_line, current_symtab, step_sp, for saved infrun state.
2227 * thread.c (save_infrun_state, load_infrun_state): Save and
2228 restore current_line, current_symtab, and step_sp.
2229 (add_thread): Rather than adding assignments to initialize
2230 the new fields, just use memset (tp, 0, sizeof (*tp).
2231 This way future new fields will not be overlooked.
2232 * infrun.c (handle_inferior_event): Save and restore save_sp,
2233 current_line, and current_symtab when switching threads.
2235 2001-06-13 Elena Zannoni <ezannoni@redhat.com>
2237 * MAINTAINERS: Add Andrew Cagney as co-maintainer of
2240 2001-06-11 Andrew Cagney <ac131313@redhat.com>
2242 * symtab.c (lookup_symtab_1): Replace basename with lbasename.
2243 (lookup_partial_symtab, file_matches): Ditto.
2244 (make_source_files_completion_list): Ditto.
2245 (make_file_symbol_completion_list): Ditto. Make local char*
2246 variable ``tail'' constant.
2247 (make_source_files_completion_list): Ditto with ``base_name''.
2248 * source.c (open_source_file): Use lbasename. Make ``p'' const
2251 2001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
2253 * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
2254 (SLASH_STRING): Remove unused definitions.
2255 * config/i386/xm-cygwin.h: Likewise.
2257 2001-06-12 Andrew Cagney <ac131313@redhat.com>
2259 * ui-out.c (ui_out_list_begin): Add parameter ``id''.
2260 (make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
2261 * ui-out.h: Update declarations.
2263 Mon Jun 11 17:26:43 2001 Andrew Cagney <cagney@b1.cygnus.com>
2265 * source.c (openp): Make parameters ``path'' and ``string''
2267 (openp): Use alloca to safely duplicate ``string''. Make local
2268 variables ``p'' and ``p1'' constant. Delete char* casts.
2271 * symtab.c (lookup_symtab_1): Make parameter ``name'' constant.
2272 (lookup_symtab, lookup_partial_symtab): Ditto.
2273 * symtab.h (lookup_symtab, lookup_partial_symtab): Update.
2275 2001-06-11 Andrew Cagney <ac131313@redhat.com>
2277 * ui-out.h (ui_out_table_begin): Make char* parameters constant.
2278 (ui_out_table_header, ui_out_field_int): Ditto.
2279 (ui_out_field_core_addr, ui_out_field_string): Ditto.
2280 (ui_out_field_stream, ui_out_field_fmt): Ditto.
2281 (ui_out_field_skip, ui_out_text, ui_out_message): Ditto.
2282 * ui-out.c (ui_out_table_begin, ui_out_table_header): Update.
2283 (ui_out_field_core_addr, ui_out_field_stream): Update.
2284 (ui_out_field_string, ui_out_field_fmt): Update.
2285 (ui_out_text, ui_out_message): Update.
2286 (append_header_to_list): Make char* parameters constant.
2287 (uo_table_header, uo_table_begin): Ditto.
2288 (uo_field_int, uo_field_skip): Ditto.
2289 (uo_field_string, uo_field_fmt): Ditto.
2290 (uo_text, uo_message): Ditto.
2292 2001-06-11 Eli Zaretskii <eliz@is.elta.co.il>
2294 * completer.c (gdb_completer_loc_break_characters): New variable.
2295 (line_completion_function): If we are completing on locations,
2296 back up the start of word pointer past all characters which can
2297 appear in a location spec.
2298 (location_completer): New function.
2300 * completer.h: Add prototype for location_completer.
2302 * symtab.c (make_source_files_completion_list)
2303 (add_filename_to_list, not_interesting_fname): New functions.
2304 (filename_seen): New function, body extracted from
2305 output_source_filename.
2306 (output_source_filename): Call filename_seen to check if the file
2307 was already printed.
2308 (make_symbol_completion_list): If TEXT includes a
2309 double-quoted string, return an empty list, not NULL.
2310 (make_file_symbol_completion_list): New function, similar to
2311 make_symbol_completion_list but with an additional argument
2314 * symtab.h (make_file_symbol_completion_list)
2315 (make_source_files_completion_list): Add prototypes.
2317 * breakpoint.c (_initialize_breakpoint): Make location_completer
2318 be the completion function for all commands which set breakpoints
2320 (top-level): #include "completer.h".
2322 * tracepoint.c (_initialize_tracepoint): Make location_completer
2323 be the completion function for the "trace" command.
2324 (top-level): #include "completer.h".
2326 * printcmd.c (_initialize_printcmd): Make location_completer be
2327 the completion function for the "print", "inspect", "call", and
2328 "disassemble" commands.
2329 (top-level): #include "completer.h".
2331 * infcmd.c (_initialize_infcmd): Make location_completer be the
2332 completion function for the "go", "jump", and "until" commands.
2333 (top-level): #include "completer.h".
2335 2001-06-10 Christopher Faylor <cgf@redhat.com>
2337 * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
2338 * utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
2339 * values.c (unpack_double): Remove obsolete check for _MSC_VER.
2341 * m32r-rom.c: Ditto.
2343 * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for
2345 (get_ds_base): Remove _MSC_VER version of this function.
2346 * nindy-share/ttyflush.c: Ditto.
2347 * rdi-share/host.h: Ditto.
2348 * ser-go32.c (dos_readchar): Remove call to obsolete function.
2349 * remote-sim.c (gdb_os_poll_quit): Ditto.
2350 * remote-e7000.c (expect): Remove obsolete #if 0'ed code.
2352 * main.c (captured_main): Eliminate special Cygwin checks.
2353 * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
2355 2001-06-09 Andrew Cagney <ac131313@redhat.com>
2357 * Makefile.in (gdbcmd_h): Add ui_out_h.
2358 (breakpoint.o, infcmd.o, main.o, printcmd.o, stack.o): Ditto.
2359 (thread.o, top.o): Ditto.
2361 * ui-out.h (table_begin_ftype): Make string parameters constant.
2362 (table_header_ftype): Ditto.
2363 (field_int_ftype): Ditto.
2364 (field_skip_ftype): Ditto.
2365 (field_string_ftype): Ditto.
2366 (field_fmt_ftype): Ditto.
2367 (text_ftype): Ditto.
2368 (message_ftype): Ditto.
2369 * cli-out.c (cli_table_begin): Ditto.
2370 (cli_table_header): Ditto.
2371 (cli_field_int): Ditto.
2372 (cli_field_skip): Ditto.
2373 (cli_field_string): Ditto.
2374 (cli_field_fmt): Ditto.
2376 (cli_message): Ditto.
2377 (out_field_fmt): Ditto.
2378 * ui-out.c (default_table_begin): Ditto.
2379 (default_table_header): Ditto.
2380 (default_field_int): Ditto.
2381 (default_field_skip): Ditto.
2382 (default_field_string): Ditto.
2383 (default_field_fmt): Ditto.
2384 (default_text): Ditto.
2385 (default_message): Ditto.
2387 2001-06-08 Michael Snyder <msnyder@redhat.com>
2389 * breakpoint.c (delete_breakpoint): Pass mark_inserted to
2390 remove_breakpoint, so that the subsequent test for
2391 bpt->inserted will succeed, and duplicates will be fixed up.
2393 2001-06-08 Per Bothner <per@bothner.com>
2395 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java.
2397 2001-06-07 Keith Seitz <keiths@redhat.com>
2399 * tracepoint.c (tracepoint_opertation): Add ui event
2401 (trace_pass_command): Ditto.
2403 2001-06-07 Andrew Cagney <ac131313@redhat.com>
2405 * MAINTAINERS (Write After Approval): Note the entry criteria.
2406 (HP/PA): Jeff Law stepped down
2408 2001-06-07 Jim Blandy <jimb@redhat.com>
2410 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
2411 variable values as operators.
2413 2001-06-07 Keith Seitz <keiths@redhat.com>
2415 * gdb-events.sh: Fix quote escaping which was obsoleted
2418 2001-06-07 Keith Seitz <keiths@redhat.com>
2420 * gdb-events.sh: Make if statements and tests
2421 a little more portable.
2422 Don't use shell's echo command to put strings containing
2423 escaped characeters into a file -- different flavors of /bin/sh
2424 require differnt levels of escaping. Use cat <<EOF instead.
2425 Our internal field separator is a colon. Change all
2426 commands which assume it is a space.
2428 2001-06-06 Mark Kettenis <kettenis@gnu.org>
2430 * lin-lwp.c (struct lwp_info): Add member `resumed'.
2431 (iterate_over_lwps): Make sure we can handle CALLBACK deleting the
2432 LWP it's called for.
2433 (lin_lwp_attach): Mark LWP as resumed to make sure the fake
2434 SIGSTOP is reported.
2435 (resume_clear_callback): New function.
2436 (resume_set_callback): New function.
2437 (lin_lwp_resume): Mark all LWP's that we're going to resume as
2438 resumed, and unmark all others.
2439 (status_callback): Only report a pending wait status if we pretend
2440 that LP has been resumed.
2441 (resumed_callback): New function.
2442 (lin_lwp_wait): Add assertions to check that LWP's are properly
2443 marked as resumed. Partially revert 2001-05-25 patch by Michael
2444 Snyder: do not resume all threads. Add comment explaining the
2445 problems associated with this bit of code.
2447 2001-06-07 Keith Seitz <keiths@redhat.com>
2449 * MAINTAINTERS: Syd Polk is stepping down from
2450 maintaining libgui. I am replacing him.
2452 2001-06-07 Eli Zaretskii <elis@is.elta.co.il>
2454 * config/mips/tm-irix6.h: New file.
2456 * config/mips/irix6.mh: New file.
2458 * config/mips/irix6.mt: New file.
2460 * config/mips/xm-irix6.h: New file.
2462 * config/mips/nm-irix6.h: New file.
2464 * mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
2465 disassembler info in tm_print_insn_info as appropriate for the N32
2466 ABI. Force N32 ABI to be the default if the CPU is R8000 or
2469 * configure.tgt (mips*-sgi-irix6*): Map to irix6.
2471 * configure.host (mips*-sgi-irix6*): Ditto.
2473 2001-06-07 Andrew Cagney <ac131313@redhat.com>
2475 * gnu-v3-abi.c: Include "gdb_assert.h".
2476 (build_gdb_vtable_type): Replace abort() with gdb_assert().
2478 2001-06-06 Jim Blandy <jimb@redhat.com>
2480 * cp-abi.h: Rearrange code to put documentation comments above the
2481 functions we export. The actual function table itself simply
2482 refers to those functions. Minor doc fixes.
2484 * gdbarch.sh: Changes to effect the following:
2485 * gdbarch.c (initialize_non_multiarch): New function.
2486 * gdbarch.h (initialize_non_multiarch): New declaration.
2487 * arch-utils.c (initialize_current_architecture): For
2488 non-multiarch configurations, call initialize_non_multiarch.
2490 2001-06-06 Andrew Cagney <ac131313@redhat.com>
2492 * symfile.c (compare_psymbols): Replace PTR with void*. Delete
2494 (compare_symbols): Ditto.
2496 2001-06-06 Jonathan Larmour <jlarmour@redhat.com>
2498 * arch-utils.c (generic_prepare_to_proceed): Allow for having
2499 stopped due to a Ctrl-C as well as breakpoints.
2501 * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
2502 support thread switches after Ctrl-C.
2503 * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
2504 * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
2505 * m3-nat.c (mach3_prepare_to_proceed): Ditto.
2507 2001-06-06 Jim Blandy <jimb@redhat.com>
2509 * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
2510 per-architecture data should be registered at initialization time,
2511 before any gdbarch objects get used, so the generality is
2514 2001-06-06 Keith Seitz <keiths@redhat.com>
2516 * gdb-events.sh (function_list): Add tracepoint_create,
2517 tracepoint_delete, and tracepoint_modify events.
2518 * gdb-events.c: Regenerated.
2519 * gdb-events.h: Regenerated.
2521 2001-06-06 Keith Seitz <keiths@redhat.com>
2523 * gdb-events.sh: Update copyrights.
2524 Change free to xfree.
2525 * gdb-events.c: Regenerated.
2526 * gdb-events.h: Regenerated.
2528 2001-06-06 Eli Zaretskii <eliz@is.elta.co.il>
2530 * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
2531 instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
2532 * completer.c: Ditto.
2533 * cli/cli-cmds.c (cd_command): Ditto.
2535 2001-06-04 Eli Zaretskii <eliz@is.elta.co.il>
2537 * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
2538 (mips_set_processor_type_command): Remove unused variable j.
2539 (mips_breakpoint_from_pc): Declare breakpoint instruction
2540 sequences as unsigned char, to avoid compiler warnings.
2542 * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
2543 instead of system-specific define's like _WIN32 and __MSDOS__.
2544 Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
2546 (top-level): #include "filenames.h".
2548 * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
2549 instead of SLASH_CHAR, ROOTED_P and SLASH_P.
2550 (top-level): #include "filenames.h".
2552 * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
2553 (SLASH_STRING): Define only for _WIN32.
2555 * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
2558 * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
2559 IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P. Replace
2560 system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
2561 (top-level): #include "filenames.h".
2563 * go32-nat.c (go32_wait): Change the return value to ptid_t.
2565 * config/djgpp/fnchange.lst: Add two new files in the
2566 gdb/testsuite/gdb.c++/ directory to the remapped names.
2568 * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
2570 2001-06-01 Jim Blandy <jimb@redhat.com>
2572 Expand the gdbarch per-architecture data vector as needed, rather
2573 than requiring that all per-architecture data be registered before
2574 the first gdbarch object is allocated.
2575 * gdbarch.sh: Changes to effect the following:
2576 * gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
2577 declarations and definitions.
2578 (check_gdbarch_data): New function, and declaration.
2579 (gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
2580 zero is good enough.
2581 (free_gdbarch_data): Tolerate a null data pointer. Free only
2582 those data items gdbarch->data actually has allocated.
2583 (set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
2584 (gdbarch_update_p): No need to call init_gdbarch_data.
2586 2001-06-01 Kevin Buettner <kevinb@redhat.com>
2588 * ia64-tdep.c (is_float_or_hfa_type_recurse): Call check_typedef()
2589 on types that we wish to recurse on.
2590 (slot_alignment_is_next_even): New function.
2591 (ia64_push_arguments): Call slot_alignment_is_next_even() to
2592 examine the type in order to decide if it's necessary to skip
2595 2001-06-01 Michael Snyder <msnyder@redhat.com>
2597 * thread.c (delete_step_resume_breakpoint): New function.
2598 Maintain internal consistency of the thread list while deleting
2599 a step_resume_breakpoint.
2600 * gdbthread.h (delete_step_resume_breakpoint): Export.
2601 * breakpoint.c (bpstat_find_step_resume_breakpoint):
2602 Make thread-aware: don't return a step_resume_breakpoint
2603 for the wrong thread.
2604 * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
2605 instead of delete_breakpoint_current_contents.
2606 (fetch_inferior_event): Ditto.
2607 (handle_inferior_event): Call delete_step_resume_breakpoint
2608 instead of delete_breakpoint.
2609 * infrun.c (handle_inferior_event): After singlestepping over a
2610 thread-specific breakpoint, use currently_stepping() to decide
2611 whether to step or continue.
2613 2001-06-01 Jim Blandy <jimb@redhat.com>
2615 * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
2616 these static --- there's no reason other files should use these.
2618 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
2621 * partial-stab.h: New complaint: function_outside_compilation_unit.
2622 (case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
2623 complain, and don't try to set pst's start address.
2625 2001-05-31 Kevin Buettner <kevinb@redhat.com>
2627 * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
2628 match the location at which the kernel is placing the sigcontext
2631 * ia64-tdep.c (max_skip_non_prologue_insns): New static global.
2632 (refine_prologue_limit): New function.
2633 (examine_prologue): Further limit number of instructions
2634 scanned by calling refine_prologue_limit(). Revise way in
2635 which the end of prologue address is computed for frameless
2638 2001-05-29 Christopher Faylor <cgf@redhat.com>
2640 * partial-stab.h: Revert previous patch.
2642 2001-05-29 Christopher Faylor <cgf@redhat.com>
2644 * partial-stab.h: Consistently guard against pst being NULL.
2646 2001-05-29 Alexandre Oliva <aoliva@redhat.com>
2648 * symfile.c (compare_psymbols, compare_symbols): Declare using
2649 PTR, as in the definition.
2650 * minsyms.c (compare_minimal_symbols): Likewise.
2651 * coffread.c (find_targ_sec): Likewise.
2652 * elfread.c (free_elfinfo, elf_locate_sections): Likewise.
2653 * mipsread.c (alphacoff_locate_sections): Likewise.
2654 * mdebugread.c (compare_blocks): Likewise.
2656 2001-05-25 Nick Duffek <nsd@redhat.com>
2658 * solib.c (update_solib_list): Move target_resize_to_sections()
2659 into solib_map_sections() loop.
2660 (info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
2661 bfd_get_arch_size() fails.
2663 2001-05-25 Nick Duffek <nsd@redhat.com>
2665 * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
2667 * config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
2668 with solib-osf.o and solib.o.
2669 * config/alpha/alpha-osf2.mh: Likewise.
2670 * config/alpha/alpha-osf3.mh: Likewise.
2671 * solib-osf.c: New file, renamed and largely rewritten from
2674 2001-05-25 Michael Snyder <msnyder@redhat.com>
2676 * lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
2677 to consume the SIGSTOP generated by PTRACE_ATTACH.
2678 (stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
2679 try again to get the SIGSTOP event.
2680 (lin_lwp_wait): Resume all threads when ignoring a signal.
2681 This will insure that newly attached threads get resumed.
2682 * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
2683 * remote.c (remote_write_bytes): Update 'p' packet pointer.
2685 2001-05-25 Jim Blandy <jimb@redhat.com>
2687 * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
2688 VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
2689 useful value, then we should fix that instead.
2691 2001-05-24 Nick Duffek <nsd@redhat.com>
2693 * solist.h (struct so_list): Document the requirement that
2694 current_sos initialize some fields to 0.
2696 2001-05-24 Mark Kettenis <kettenis@gnu.org>
2698 * gnu-nat.c: Include <ctype.h>.
2699 (gnu_pid_to_exec_file): Add PID parameter.
2700 (set_sig_thread_cmd): Use PIDGET on return value from
2702 (proc_string): Use MERGEPID to construct argument to
2705 2001-05-22 Kevin Buettner <kevinb@redhat.com>
2707 * breakpoint.c (breakpoint_address_is_meaningful): New function.
2708 (check_duplicates): Don't compare non-meaningful addresses.
2710 2001-05-22 Michael Snyder <msnyder@redhat.com>
2712 * thread-db.c: Allow for defunct zombie threads.
2713 (attach_thread): Do not attempt to attach zombie thread.
2714 (thread_db_thread_alive): Return false for defunct zombie thread.
2715 (find_new_threads_callback): Don't add defunct zombie thread to list.
2717 2001-05-22 Jim Blandy <jimb@redhat.com>
2719 Add support for the GNU V3 C++ ABI.
2720 (Includes changes by Dan Berlin.)
2722 * gnu-v3-abi.c: New file.
2723 * minsyms.c: #include "value.h" and "cp-abi.h".
2724 (install_minimal_symbols): Check the minimal symbol table for
2725 symbols that look mangled in the V3 style, and select the V3 ABI
2727 * Makefile.in (SFILES): Add gnu-v3-abi.c.
2728 (COMMON_OBS): Add gnu-v3-abi.o.
2729 (gnu-v3-abi.o): Add new rule.
2730 (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
2732 2001-05-21 Jim Blandy <jimb@redhat.com>
2734 * values.c (value_primitive_field): If we're extracting a base
2735 class, then the type of the result should be the base class being
2736 extracted, not the type of which it is a base class.
2738 * value.h (struct value): Doc fix, and rearrange members to place
2739 them near their explanations.
2741 2001-05-21 Michael Snyder <msnyder@redhat.com>
2743 * remote.c (remote_async_wait): Added new variable fieldsize.
2744 Add fieldsize (return value of hex2bin) to string pointer p.
2746 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2748 * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
2749 (m68hc11_analyze_instruction): Update the pc correctly.
2750 (m68hc11_guess_from_prologue): Take into account the stack correction
2751 for the saving address.
2753 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
2755 Changes by Jim Ingham:
2757 * values.c (value_change_enclosing_type): New function. If the
2758 new enclosing type is larger than the old one, we need to allocate
2760 * value.h: Add value_change_enclosing_type prototype.
2761 * valops.c (value_cast): Use it.
2762 (value_assign): Use it.
2763 (value_addr): Use it.
2764 (value_ind): Use it.
2765 (value_full_object): Use it.
2767 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
2769 * values.c (value_static_field): Handle static fields that have a
2772 2001-05-17 Michael Snyder <msnyder@redhat.com>
2774 * blockframe.c (create_new_frame): Zero all the fields via memset,
2775 rather than zeroing them one by one.
2777 2001-05-17 Eli Zaretskii <eliz@is.elta.co.il>
2779 * top.c (user_args): Remove unused declaration.
2781 2001-05-16 Michael Snyder <msnyder@redhat.com>
2783 * infcmd.c (do_registers_info): Move alloca outside of loop.
2785 2001-05-15 John S Kallal <jskallal@home.com>
2787 * remote.c (remote_wait): Added new variable fieldsize.
2788 Add fieldsize (return value of hex2bin) to string pointer p.
2790 2001-05-15 Mark Kettenis <kettenis@gnu.org>
2792 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
2795 2001-05-14 Kevin Buettner <kevinb@redhat.com>
2797 * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
2798 Adjust format strings for printing LWPs to account for the fact
2799 that the type returned by GET_LWP() is now a long instead of an
2802 2001-05-14 Kevin Buettner <kevinb@redhat.com>
2804 * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
2805 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
2806 (ptid_get_tid, ptid_equal): New function declarations.
2807 * infrun.c (null_ptid, minus_one_ptid): New variables.
2808 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
2809 (ptid_get_tid, ptid_equal): New functions.
2810 (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
2811 inferior_ptid, and target_last_wait_ptid.
2813 * defs.h (ptid_t): Redefine to be a struct rather than an int.
2814 (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
2815 (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
2816 new ptid accessors and constructor.
2818 * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
2819 MKLID, MKTID, ISTID): Provide new definitions for these macros.
2820 The old macros are retained, but disabled via #if 0 in order
2821 to aid in future restructuring. See FIXME.
2823 * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
2824 * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
2825 * infptrace.c (PIDGET, TIDGET): Likewise.
2826 * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
2827 * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
2828 * proc-service.c (MERGEPID): Likewise.
2829 * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
2830 * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
2831 * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
2832 * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
2834 * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
2837 * lin-lwp.c (THREAD_FLAG): Delete macro definition.
2838 (GET_LWP): Redefine in terms of ptid_get_lwp().
2839 (GET_PID): Redefine in terms of ptid_get_pid().
2840 (is_lwp): Redefine without the need for THREAD_FLAG.
2841 (BUILD_LWP): Redefine in terms of ptid_build().
2842 * lin-thread.c (THREAD_FLAG): Delete macro definition.
2843 (GET_LWP): Redefine in terms of ptid_get_lwp().
2844 (GET_PID): Redefine in terms of ptid_get_pid().
2845 (GET_THREAD): Redefine in terms of ptid_get_tid().
2846 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
2847 (is_lwp, is_thread): Redefine.
2848 (linux_child_wait, check_all_signal_numbers)
2849 (linuxthreads_discard_global_state, attach_thread): Declare these
2850 functions to squash warnings about missing declarations.
2851 * sol-thread.c (THREAD_FLAG): Delete macro definition.
2852 (GET_PID): Redefine in terms of ptid_get_pid().
2853 (GET_LWP): Redefine in terms of ptid_get_lwp().
2854 (GET_THREAD): Redefine in terms of ptid_get_tid().
2855 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
2856 (is_lwp, is_thread): Redefine.
2857 * thread-db.c (THREAD_FLAG): Delete macro definition.
2858 (GET_PID): Redefine in terms of ptid_get_pid().
2859 (GET_LWP): Redefine in terms of ptid_get_lwp().
2860 (GET_THREAD): Redefine in terms of ptid_get_tid().
2861 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
2862 (is_lwp, is_thread): Redefine.
2864 * corelow.c (add_to_thread_list, get_core_register_section):
2865 Eliminate hacks needed to prevent regressions when inferior_ptid
2866 wasn't wide enough to hold the core file thread id in the pid
2867 component of inferior_ptid.
2869 2001-05-14 Michael Snyder <msnyder@redhat.com>
2871 * remote.c (hex2bin): Make first argument const.
2872 Require explicit count, don't accept null-terminated str.
2873 (remote_resume, remote_async_resume): White space fix-up.
2874 (remote_write_bytes): Set nr_bytes to return value of bin2hex.
2876 2001-05-13 Mark Kettenis <kettenis@gnu.org>
2878 * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
2879 basename (NAME). The FreeBSD basename returns a pointer to a
2880 static buffer, even if it's simply returning a string identical to
2882 (lookup_partial_symtab): Likewise.
2884 2001-05-14 Michael Snyder <msnyder@redhat.com>
2886 * solib.c, solib.h: Add comment for function no_shared_libraries.
2888 2001-05-14 Kevin Buettner <kevinb@redhat.com>
2890 * solib.h (no_shared_libraries): Make declaration match definition
2893 2001-05-14 Andrew Cagney <ac131313@redhat.com>
2895 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
2896 * solib.h (no_shared_libraries): Declare.
2898 2001-05-12 Andrew Cagney <ac131313@redhat.com>
2900 * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
2901 (gdbarch_update_p): Rewrite logic filling in INFO struct. Use
2902 user specified values when available.
2903 * rs6000-tdep.c (rs6000_gdbarch_init): Update. Get the
2904 architecture from info.bfd_arch_info.
2905 * gdbarch.c, gdbarch.h: Regenerate.
2907 2001-05-12 Fernando Nasser <fnasser@redhat.com>
2909 * remote-e7000.c (e7000_open): Check for bad baud rate.
2910 * remote-st.c (st2000_open): Ditto.
2912 2001-05-11 Jim Blandy <jimb@redhat.com>
2914 * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
2915 and ui_out_tuple_end instead of ui_out_list_begin and
2918 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
2919 dependencies. Reorder dependencies to match #includes in file,
2920 for easier verification.
2922 Fri May 11 13:32:50 2001 Andrew Cagney <cagney@b1.cygnus.com>
2924 * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
2925 make_cleanup_ui_out_list_end with ui_out_tuple_begin,
2926 ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
2927 * cli/cli-setshow.c: Ditto.
2928 * printcmd.c: Ditto.
2931 * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
2932 * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
2933 (ui_out_tuple_begin): New function.
2934 (ui_out_tuple_end): New function.
2935 (ui_out_tuple_begin_end): New function.
2936 (make_cleanup_ui_out_list_begin_end): Replace
2937 make_cleanup_ui_out_list_end function.
2938 * ui-out.h (ui_out_list_begin): Update declaration.
2939 (make_cleanup_ui_out_list_begin_end): Replace
2940 make_cleanup_ui_out_list_end declaration.
2941 (ui_out_tuple_begin, ui_out_tuple_end): Declare.
2942 (ui_out_tuple_begin_end): Declare.
2944 2001-05-11 Jim Blandy <jimb@redhat.com>
2946 * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it.
2948 2001-05-11 Andrew Cagney <ac131313@redhat.com>
2950 From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
2951 * config/pa/tm-hppa.h: Remove trigraph.
2952 * hp-symtab-read.c (hpread_type_translate): Provide return value.
2953 (hpread_read_struct_type): Remove trigraph. Add parameter in
2955 (hpread_read_array_type): Provide return value.
2956 (hpread_type_lookup): Avoid ambiguous `else'. Provide return
2958 * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
2961 2001-05-11 Jim Blandy <jimb@redhat.com>
2963 * mips-tdep.c (mips_store_return_value,
2964 mips_extract_return_value): Pass arguments to
2965 return_value_location in the proper order.
2967 2001-05-11 Andrew Cagney <ac131313@redhat.com>
2969 * Makefile.in (VERSION): Delete. Moved to file ``version.in''.
2970 (version.c): Depends on file ``version.in''. Extract version
2971 number from ``version.in'' file.
2972 (clean mostlyclean): Update.
2973 * version.in: New file.
2976 2001-05-11 Kevin Buettner <kevinb@redhat.com>
2978 * breakpoint.c (set_raw_breakpoint): Add new parameter
2979 representing the breakpoint's type. Adjust all callers.
2980 (create_longjmp_breakpoint, create_temp_exception_breakpoint)
2981 (create_thread_event_breakpoint): Don't test for zero return
2982 value from set_raw_breakpoint(). It can never be zero.
2983 (create_exception_catchpoint, watch_command_1): Move logic
2984 which calculates the breakpoint type prior to the call to
2985 set_raw_breakpoint().
2987 2001-05-11 Fernando Nasser <fnasser@redhat.com>
2989 * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
2990 (hardwire_setbaudrate): Set errno to EINVAL and return with error
2991 if the conversion of the baud rate to code fails.
2993 2001-05-10 Andrew Cagney <ac131313@redhat.com>
2995 * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
2996 * ui-out.c (struct ui_out_end_cleanup_data): Define.
2997 (do_cleanup_end): New function. Replace do_list_end.
2998 (make_cleanup_ui_out_end): New function.
2999 (make_cleanup_ui_out_begin_end): New function.
3000 (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
3002 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
3004 * MAINTAINERS: Declare xcoffread.c open to all maintainers,
3005 and make Kevin Buettner (kevinb@redhat.com) the reference person.
3007 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
3009 * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
3011 2001-05-10 Fernando Nasser <fnasser@redhat.com>
3013 * MAINTAINERS: Add testsuite subdirectory co-maintainers.
3015 Thu May 10 16:26:47 2001 Andrew Cagney <cagney@b1.cygnus.com>
3017 * Makefile.in (mi-main.o): Compile with -Werror.
3019 2001-05-10 Michael Snyder <msnyder@redhat.com>
3021 * remote.c (remote_open_1): Call no_shared_libraries, so that
3022 symbols for shared libraries can be reloaded per session.
3023 (remote_async_open_1): Ditto.
3024 * remote.c (bin2hex, hex2bin): New functions. Factor out these
3025 two conversions which are coded for repeatedly in this module.
3026 (remote_threads_extra_info, remote_wait, remote_async_wait,
3027 store_register_using_P, remote_store_registers, remote_write_bytes,
3028 remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
3029 of coding the conversions inline.
3030 (fromhex): Not exported, change from extern to static.
3032 2001-05-10 Andrew Cagney <ac131313@redhat.com>
3034 * arch-utils.c (initialize_current_architecture): Delete obsolete
3035 ``info architecture'' command.
3036 (info_architecture): Delete function.
3038 2001-05-10 Andrew Cagney <ac131313@redhat.com>
3040 * TODO (5.1, 5.2): Update.
3042 2001-05-09 Andrew Cagney <ac131313@redhat.com>
3044 * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
3047 2001-05-10 Keith Seitz <keiths@cygnus.com>
3049 * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
3051 (SUBDIR_GDBTK_SRCS): Ditto for the sources.
3052 (gdbtk-bp.o): New rule.
3053 (gdbtk-register.o): New rule.
3054 (gdbtk-stack.o): New rule.
3055 (gdbtk-cmds.o): Update dependencies.
3057 (gdbtk-hooks.o): Ditto.
3058 (gdbtk-varobj.o): Ditto.
3060 2001-05-10 Fernando Nasser <fnasser@redhat.com>
3062 * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
3063 variables, not just unregister them.
3065 2001-05-10 Fernando Nasser <fnasser@redhat.com>
3067 * varobj.c (c_number_of_children): Check for target type of void*,
3068 not the target type name. Allow dereferencing char*.
3070 2001-05-10 Fernando Nasser <fnasser@redhat.com>
3072 * symfile.c (symbol_file_add_main_1): New static function.
3073 Passes the flags arguments to symbol_file_add() and takes care
3074 of any necessary reinitializations.
3075 (symbol_file_command): Call symbol_file_add_main_1() instead of
3077 (symbol_file_add_main): Ditto.
3079 2001-05-09 Kevin Buettner <kevinb@redhat.com>
3081 * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
3082 string change in 2001-05-03 changes.
3083 (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
3086 2001-05-09 Kevin Buettner <kevinb@redhat.com>
3088 * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
3089 component from inferior_ptid.
3090 (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
3093 2001-05-09 Elena Zannoni <ezannoni@redhat.com>
3095 * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
3096 conditional for help with connections through parallel ports,
3097 given that the actual code for downloading through a parallel port
3098 is not conditionalized.
3100 * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
3101 unmaintaned, and probably on its way to obsolescence.
3103 2001-05-09 Mark Kettenis <kettenis@gnu.org>
3105 * i386-tdep.c (i386_frame_saved_pc): New function.
3106 * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
3107 i386_frame_saved_pc.
3108 (i386_frame_saved_pc): New prototype.
3110 * i386-tdep.c (i386_register_virtual_type): New function.
3111 (i386_register_convertible): New function.
3112 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
3113 of i386_register_virtual_type.
3114 (REGISTER_CONVERTIBLE): Redefine in terms of
3115 i386_register_convertible.
3116 (i386_register_virtual_type, i386_register_convertible): New
3119 2001-05-08 Jim Blandy <jimb@redhat.com>
3121 * Makefile.in (mn10300-tdep.o): New rule.
3123 * Makefile.in (gdb_string_h): Define. Use it throughout.
3124 Some rules were already using this, even though it isn't defined.
3126 * Makefile.in (obstack_h, target_h): Define; these are already
3127 used elsewhere, but have been expanding to the empty string.
3128 (memattr_h): Define; needed by target_h.
3130 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
3131 static. (This was accidentally omitted from the earlier patch.)
3133 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
3134 (mn10300_gdbarch_init): Register it as the architecture's
3135 dwarf2_reg_to_regnum method.
3137 Correct and expand handling of `movm' instruction, and register
3139 * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
3140 MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
3141 (enum movm_register_bits): New enum.
3142 * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
3143 bits, not hex literals. Handle the `other', `exreg0', and
3144 `exother' bits. Correct handling of `exreg1': it saves r4, r5,
3145 r6, and r7, not r2, r3, r4, and r5.
3146 (saved_regs_size): New function.
3147 (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
3148 of computing the same thing inline, incorrectly.
3150 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
3151 dummy_breakpoint_offset; it's zero.
3153 * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
3154 stuff out into mn10300_pop_frame_regular, and use
3155 generic_pop_current_frame. This lets us share code, and also
3156 makes this function's prototype match that expected by gdbarch.
3157 Make this function static.
3158 (mn10300_pop_frame_regular): New function.
3159 (mn10300_gdbarch_init): Register mn10300_pop_frame as the
3160 gdbarch's pop_frame method.
3161 * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
3162 (mn10300_pop_frame): Delete declaration.
3164 * mn10300-tdep.c (mn10300_saved_pc_after_call,
3165 mn10300_extract_return_value,
3166 mn10300_extract_struct_value_address, mn10300_store_return_value,
3167 mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
3168 mn10300_frame_chain, mn10300_skip_prologue,
3169 mn10300_push_arguments, mn10300_push_return_address,
3170 mn10300_store_struct_return, mn10300_frame_saved_pc,
3171 mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
3172 Make these functions static; they should only be visible to the
3173 outside world as gdbarch methods.
3175 * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
3178 * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
3179 in some rational order.
3181 * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
3182 generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
3184 Use gdbarch for most target parameters for the MN10300, rather
3185 than the tm-*.h file.
3186 * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
3187 REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
3188 FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
3189 SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
3190 FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
3191 EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
3192 STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
3193 FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3194 FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
3195 CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3196 CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
3197 TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3198 SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
3199 REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
3200 Delete definitions. We register gdbarch methods for these now.
3201 (struct frame_info, struct type, struct value): Delete forward
3202 declarations of these types; they're no longer necessary, since we
3203 don't have function declarations here any more.
3204 * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
3205 some default gdbarch methods.
3206 (mn10300_store_struct_return): Return void, as expected by
3208 (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
3209 as expected by gdbarch.
3210 (mn10300_frame_init_saved_regs): Provide dummy definition for
3211 this, as required by gdbarch.
3212 (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
3213 by gdbarch. Register gdbarch methods or values for all the stuff
3214 removed from tm-10300.h, listed above.
3216 2001-05-08 Andrew Cagney <ac131313@redhat.com>
3218 * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
3220 (cli_ui_out_impl): Update.
3222 * ui-out.c (default_begin, default_end): Replace
3223 default_list_begin and default_list_end.
3224 (default_ui_out_impl): Update.
3225 (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
3226 (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
3228 (ui_out_list_begin, ui_out_list_end): New. Compatibility
3230 (struct ui_out_level): Add field type.
3231 (push_level, pop_level): Update. Add type parameter.
3233 * ui-out.h (enum ui_out_type): Declare.
3234 (ui_out_begin, ui_out_end): Declare.
3235 (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
3237 (struct ui_out_impl): Update.
3239 2001-05-07 Andrew Cagney <ac131313@redhat.com>
3241 * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
3242 ``list_flag'' to ``depth''.
3243 * ui-out.c (default_list_begin, default_list_end): Update.
3244 (uo_list_begin, uo_list_end): Update.
3245 (MAX_UI_OUT_LEVELS): Define.
3246 (struct ui_out_level): Define.
3247 (top-level): Include "gdb_assert.h".
3248 (struct ui_out): Add fields ``level'' and ``levels''. Delete
3249 fields ``list_flag'' and ``field_count''.
3250 (ui_out_new): Update.
3251 (verify_field_proper_position): Update.
3252 (current_level, push_level, pop_level): New functions.
3253 (ui_out_list_begin): Use push_level.
3254 (ui_out_list_end): Use pop_level.
3255 (ui_out_field_int): Use current_level.
3256 (ui_out_field_skip): Ditto.
3257 (ui_out_field_fmt): Ditto.
3259 2001-05-08 Michael Snyder <msnyder@redhat.com>
3261 * language.c (longest_local_hex_string_custom): Strlen test is
3262 inverted -- reverse the sense of the test.
3264 2001-05-08 Mark Kettenis <kettenis@gnu.org>
3266 * config/i386/tm-i386v.h (struct frame_info, struct
3267 frame_saved_regs): Remove declarations.
3268 (i386_frame_num_args): Remove prototype.
3270 2001-05-07 Andrew Cagney <ac131313@redhat.com>
3272 * MAINTAINERS: I'm no longer actively maintaining the mn10300
3275 2001-05-04 Andrew Cagney <ac131313@redhat.com>
3277 * main.c (captured_main): Delete #ifndef _WIN32 conditional for
3280 2001-05-06 Kevin Buettner <kevinb@redhat.com>
3282 * inferior.h (save_inferior_ptid): Declare.
3283 * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
3285 * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
3286 Delete these functions.
3287 * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
3288 * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
3289 * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
3291 * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
3293 * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
3294 * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
3296 * somsolib.c (reset_inferior_ptid): Delete.
3297 (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
3298 build the cleanup struct.
3300 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3301 a cleanup to save/restore inferior_ptid.
3303 2001-05-06 Mark Kettenis <kettenis@gnu.org>
3305 Implement attach/detach for multi-threaded programs on Linux.
3306 * thread-db.c (keep_thread_db): Adjust comment.
3307 (deactivate_target): Removed.
3308 (thread_db_new_objfile): Don't call deactivate_target. Implement
3309 guts of deactivate_target inline instead.
3310 (attach_thread): Call ATTACH_LWP unconditionally if defined.
3311 (thread_db_attach): New function.
3312 (thread_db_detach): Don't call deactivate_target. Do necessary
3313 cleanup inline instead. Set inferior_ptid to LWP corresponding to
3314 the current user-level thread.
3315 (thread_db_kill): Set inferior_ptid to LWP corresponding to the
3316 current user-level thread.
3317 (thread_db_create_inferior): Deactivate target vector if
3318 KEEP_THREAD_DB is zero.
3319 (thread_db_mourn_inferior): Don't call deactivate_target. Do
3320 necessary cleanup inline instead.
3321 (init_thread_db_ops): Initialize to_attach field to
3323 * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
3324 (stop_wait_callback): Add prototype.
3325 (init_lwp_list): Add comment about when to re-initialize the LWP
3327 (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
3328 Avoid adding publicates to the LWP list. Only mark an LWP as
3329 signalled if it doesn't correspond to a cloned process.
3330 (lin_lwp_attach): Add initial process to the LWP list. Make sure
3331 it's stopped and fake a SIGSTOP.
3332 (detach_callback): New function.
3333 (lin_lwp_detach): Implement.
3334 (lin_lwp_create_inferior): Don't re-initialize LWP list here.
3335 Call child_ops.to_create_inferior directly instead of via
3336 target_beneath local.
3337 (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
3338 directly instead of via target_beneath local.
3340 2001-05-06 Eli Zaretskii <eliz@is.elta.co.il>
3342 * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
3343 instead of non-portable search for `/'. Use FILENAME_CMP instead
3344 of STREQ, to account for case-insensitive filesystems.
3345 (top-level): #include "filenames.h".
3347 2001-05-05 Jim Blandy <jimb@redhat.com>
3349 * breakpoint.c (check_duplicates): Use the breakpoint's type, not
3350 its address, to decide whether it's a watchpoint or not. Zero
3351 is a valid code address.
3352 (update_breakpoints_after_exec): Admonishing comments.
3353 * breakpoint.h (struct breakpoint): Doc fixes.
3355 * breakpoint.c (check_duplicates): Take a breakpoint object as an
3356 argument, rather than an address and section. All callers changed.
3358 2001-05-03 Kevin Buettner <kevinb@redhat.com>
3360 * defs.h (ptid_t): New typedef.
3361 (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
3363 * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
3364 blockframe.c, breakpoint.c, breakpoint.h,
3365 config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
3366 config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
3367 config/mips/nm-irix4.h, config/mips/nm-irix5.h,
3368 config/pa/nm-hppah.h, config/pa/tm-hppa.h,
3369 config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
3370 corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
3371 dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
3372 hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
3373 hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
3374 i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
3375 infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
3376 inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
3377 linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
3378 m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
3379 mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
3380 ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
3381 regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
3382 remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
3383 remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
3384 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
3385 remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
3386 solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
3387 standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
3388 target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
3389 uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
3390 (inferior_pid): Rename to inferior_ptid everywhere - even in
3391 comments and obsolete ports. In cases where this variable
3392 really is supposed to be used as a process id, use PIDGET() to
3393 extract the process id component from inferior_ptid. The
3394 other cases, either involving other variables whose types had
3395 to be changed or functions whose signatures had to changed
3396 are listed separately below.
3398 * arm-linux-nat.c (get_thread_id): Change type of argument
3399 representing a combined process/thread id from ``int'' to
3400 ``ptid_t''. Also change parameter name to ptid.
3401 * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
3402 * corelow.c (core_file_thread_alive): Likewise.
3403 * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
3404 * defs.h (*target_wait_hook): Likewise.
3405 * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
3406 (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
3407 * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
3408 (gnu_resume): Likewise.
3409 * go32-nat.c (go32_wait, go32_resume): Likewise.
3410 * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
3411 * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
3412 * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
3413 (hppa_pid_or_tid_to_str, child_post_startup_inferior)
3414 (child_thread_alive): Likewise.
3415 * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
3416 (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
3417 * i386-linux-nat.c (child_resume): Likewise.
3418 * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
3419 (store_debug_register, fetch_debug_register_pair)
3420 (store_debug_register_pair, ia64_linux_insert_watchpoint)
3421 (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
3423 * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
3424 * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
3425 (generic_target_write_pc, ptrace_wait, child_resume)
3426 (get_last_target_status): Likewise.
3427 * infptrace.c (ptrace_wait, child_resume): Likewise.
3428 * inftarg.c (child_wait, child_post_wait, child_thread_live)
3429 (child_pid_to_str): Likewise.
3430 * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
3431 (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
3432 * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
3433 (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
3434 (lin_lwp_pid_to_str): Likewise.
3435 * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
3436 (thread_db_resume, thread_db_wait): Likewise.
3437 * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
3438 (linuxthreads_resume, linuxthreads_wait): Likewise.
3439 * lynx-nat.c (child_wait, child_thread_alive, child_resume)
3440 (child_pid_to_str): Likewise.
3441 * m3-nat.c (mach_really_wait, m3_resume): Likewise.
3442 * mac-nat.c (child_wait, child_resume): Likewise.
3443 * mips-tdep.c (mips_read_pc): Likewise.
3444 * monitor.c (monitor_wait, monitor_resume): Likewise.
3445 * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
3446 * ppc-bdm.c (bdm_ppc_wait): Likewise.
3447 * procfs.c (do_attach, procfs_wait, procfs_resume)
3448 (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
3449 (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
3450 (procfs_find_LDT_entry): Likewise.
3451 * regcache.c (read_register_pid, read_signed_register_pid)
3452 (write_register_pid, generic_target_read_pc, read_pc_pid)
3453 (generic_target_write_pc, write_pc_pid): Likewise.
3454 * regcache.h (read_register_pid, read_signed_register_pid)
3455 (write_register_pid): Likewise.
3456 * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
3457 * remote-array.c (array_wait, array_resume): Likewise.
3458 * remote-bug.c (bug_wait, bug_resume): Likewise.
3459 * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
3460 * remote-eb.c (eb_wait, eb_resume): Likewise.
3461 * remote-es.c (es1800_wait, es1800_resume): Likewise.
3462 * remote-mips.c (mips_wait, mips_resume): Likewise.
3463 * remote-mm.c (mm_wait, mm_resume): Likewise.
3464 * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
3465 * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
3466 * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
3467 * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
3468 * remote-sds.c (sds_wait, sds_resume): Likewise.
3469 * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
3470 * remote-st.c (st2000_wait, st2000_resume): Likewise.
3471 * remote-udi.c (udi_wait, udi_resume): Likewise.
3472 * remote-vx.c (vx_wait, vx_resume): Likewise.
3473 * remote.c (remote_current_thread, remote_resume, remote_wait)
3474 (remote_async_resume, remote_async_wait, remote_cisco_wait)
3475 (remote_thread_alive): Likewise.
3476 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
3477 (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
3478 (solaris_pid_to_str): Likewise.
3479 * symm-nat.c (child_wait, child_resume): Likewise.
3480 * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
3481 (debug_to_notice_signals, debug_to_thread_alive)
3482 (normal_target_post_startup_inferior, normal_pid_to_str)
3483 (debug_to_post_startup_inferior): Likewise.
3484 * target.h (to_resume, to_wait, to_post_wait)
3485 (to_post_startup_inferior, to_notice_signals, to_thread_alive)
3486 (to_pid_to_str [all in struct target_ops]): Likewise.
3487 (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
3488 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
3489 (attach_thread, detach_thread, thread_db_resume, check_event)
3490 (thread_db_post_startup_inferior, thread_db_thread_alive)
3491 (thread_db_pid_to_str): Likewise.
3492 * thread.c (add_thread, delete_thread, find_thread_pid)
3493 (pid_to_thread_id, in_thread_list, load_infrun_state)
3494 (save_infrun_state, switch_to_thread, restore_current_thread)
3495 (make_cleanup_restore_current_thread): Likewise.
3496 * top.c (target_wait_hook): Likewise.
3497 * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
3498 (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
3499 (uw_thread_pid_to_str): Likewise.
3500 * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
3501 * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
3502 (cywin_pid_to_str): Likewise.
3503 * wince.c (child_wait, child_resume, win32_child_thread_alive):
3505 * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
3506 * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
3507 * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
3508 * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
3509 * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
3510 * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
3511 (procfs_set_watchpoint): Likewise.
3512 * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
3513 * config/i386/nm-ptx4.h (child_wait): Likewise.
3514 * config/i386/nm-symmetry.h (child_wait): Likewise.
3515 * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
3516 * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
3517 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
3518 (lin_lwp_attach_lwp): Likewise.
3519 * config/mips/nm-irix4.h, config/mips/nm-irix5.h
3520 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
3521 * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
3522 (hppa_pid_or_tid_to_str): Likewise.
3523 * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
3524 * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
3525 * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
3526 (procfs_set_watchpoint): Likewise.
3528 * gdbthread.h (thread_id_to_pid): Change return type which
3529 represents a combined process/thread id from ``int'' to
3531 * gnu-nat.c (gnu_wait): Likewise.
3532 * go32-nat.c (go32_wait): Likewise.
3533 * hpux-thread.c (hpux_thread_wait): Likewise.
3534 * inferior.h (procfs_first_available): Likewise.
3535 * inftarg.c (child_wait): Likewise.
3536 * infttrace.c (ptrace_wait): Likewise.
3537 * lin-lwp.c (lin_lwp_wait): Likewise.
3538 * lin-thread.c (thread_db_wait): Likewise.
3539 * linux-thread.c (linuxthreads_wait): Likewise.
3540 * lynx-nat.c (child_wait): Likewise.
3541 * m3-nat.c (mach_really_wait): Likewise.
3542 * mac-nat.c (child_wait): Likewise.
3543 * monitor.c (monitor_wait): Likewise.
3544 * ppc-bdm.c (bdm_ppc_wait): Likewise.
3545 * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
3546 * remote-adapt.c (adapt_wait): Likewise.
3547 * remote-array.c (array_wait): Likewise.
3548 * remote-bug.c (bug_wait): Likewise.
3549 * remote-e7000.c (e7000_wait): Likewise.
3550 * remote-eb.c (eb_wait): Likewise.
3551 * remote-es.c (es1800_wait): Likewise.
3552 * remote-mips.c (mips_wait): Likewise.
3553 * remote-mm.c (mm_wait): Likewise.
3554 * remote-nindy.c (nindy_wait): Likewise.
3555 * remote-os9k (rombug_wait): Likewise.
3556 * remote-rdi.c (arm_rdi_wait): Likewise.
3557 * remote-rdp.c (remote_rdp_wait): Likewise.
3558 * remote-sds.c (sds_wait): Likewise.
3559 * remote-sim.c (gdbsim_wait): Likewise.
3560 * remote-st.c (st2000_wait): Likewise.
3561 * remote-udi.c (udi_wait): Likewise.
3562 * remote-vx.c (vx_wait): Likewise.
3563 * remote.c (remote_wait, remote_async_wait, remote_current_thread)
3564 (remote_cisco_wait): Likewise.
3565 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
3567 * symm-nat.c (child_wait): Likewise.
3568 * target.c (debug_to_wait): Likewise.
3569 * target.h (to_wait [in struct target_ops]): Likewise.
3570 * thread.c (thread_id_to_pid): Likewise.
3571 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
3573 * top.c (*target_wait_hook): Likewise.
3574 * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
3575 * v850ice.c (v850ice_wait): Likewise.
3576 * win32-nat.c (child_wait): Likewise.
3577 * wince.c (child_wait): Likewise.
3578 * config/nm-lynx.h (child_wait): Likewise.
3579 * config/i386/nm-ptx4.h (child_wait): Likewise.
3580 * config/i386/nm-symmetry.h (child_wait): Likewise.
3582 * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
3583 to wait_ptid and change its type from ``int'' to ``ptid_t''.
3584 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
3585 but rename saved_inferior_pid to saved_inferior_ptid.
3586 * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
3587 save_pid to save_ptid.
3588 * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
3589 * hppah-nat.c (child_pid_to_exec): Likewise, but rename
3590 saved_inferior_pid to saved_inferior_ptid.
3591 * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
3592 * infrun.c (previous_inferior_pid [static global]): Likewise,
3593 but rename to previous_inferior_ptid.
3594 (resume): Likewise, but rename resume_pid to resume_ptid.
3595 (struct execution_control_state): Likewise, but rename
3596 pid to ptid, saved_inferior_pid to saved_inferior_ptid,
3597 and waiton_pid to waiton_ptid.
3598 (target_last_wait_pid): Likewise, but rename to
3599 target_last_wait_ptid.
3600 * infttrace.c (saved_real_pid): Likewise, but rename to
3602 (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
3603 to saved_inferior_ptid.
3604 * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
3605 (trap_ptid): Likewise, but renamed from trap_pid.
3606 * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
3608 * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
3609 (thread_db_wait): Likewise, but rename ret_pid to retptid.
3610 * procfs.c (procfs_wait): Likewise, for retval whose name
3611 doesn't change. Also, ``temp'' becomes two separate variables,
3612 one named temp_tid (an int) and the other temp_ptid.
3613 (procfs_notice_thread): Likewise (type change) for gdb_threadid
3614 whose name does not change.
3615 * regcache.c (registers_ptid): Likewise, but renamed from
3617 (read_register_pid, read_signed_register_pid, write_register_pid):
3618 Likewise, but rename save_pid to save_ptid.
3619 (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
3620 to saved_inferior_ptid.
3621 * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
3622 * sol-thread.c (struct ps_prochandle): Likewise.
3623 (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
3624 (sol_thread_wait): Likewise, for rtnval whose name does not
3625 change, and for save_pid which becomes save_ptid.
3626 (solaris_pid_to_str): Likewise for lwp whose name does not change.
3627 (sol_find_new_threads_callback): Likewise, for pid which becomes
3629 * target.h (target_resume, target_wait, target_post_wait)
3630 (target_post_startup_inferior, target_notice_signals)
3631 (target_thread_alive): Likewise.
3632 * thread.c (info_threads_command): Likewise, but rename
3633 current_pid to current_ptid.
3634 (struct current_thread_cleanup): Likewise, but rename field
3635 inferior_pid to inferior_ptid.
3636 * thread-db.c (find_new_threads_callback): Likewise, but rename
3638 * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
3640 (lwp_to_tr): Likewise fo tid whose name remains unchanged.
3641 (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
3642 but rename pid to ptid.
3643 * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
3644 * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
3645 * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
3646 * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
3647 * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
3648 * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
3650 * arch-utils.c (generic_prepare_to_proceed): Test for the
3651 "zero" ptid by using ptid_equal() to test to see if variable
3652 in question is the same as null_ptid. This replaces a direct
3654 * cxux-nat.c (add_shared_symbol_files): Likewise.
3655 * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
3656 * infcmd.c (run_command): Likewise.
3657 * inflow.c (kill_command): Likewise.
3658 * infttrace.c (call_ttrace): Likewise.
3659 * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
3660 * lin-thread.c (thread_db_kill): Likewise.
3661 * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
3662 * remote-es.c (es1800_kill): Likewise.
3663 * sol-thread.c (sol_thread_create_inferior): Likewise.
3664 * solib.c (locate_base): Likewise.
3665 * target.c (nosupport_runtime): Likewise.
3666 * thread-db.c (thread_db_wait): Likewise.
3667 * top.c (quit_confirm, quit_force): Likewise.
3668 * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
3670 * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
3671 Use ptid_equal to compare value of process/thread ids instead of
3672 ``=='' and ``!='' operators.
3673 lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
3674 (stop_wait_callback, lin_lwp_wait): Likewise.
3675 * procfs.c (procfs_wait): Likewise.
3676 * regcache.c (read_register_bytes, read_register_gen)
3677 (write_register_gen, read_register, read_register_pid)
3678 (read_signed_register, read_signed_register_pid, write_register)
3679 (write_register_pid, supply_register): Likewise.
3680 * remote-vx.c (vx_resume): Likewise.
3681 * sol-thread.c (sol_thread_wait): Likewise.
3682 * symm-nat.c (kill_inferior): Likewise.
3683 * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
3684 (in_thread_list, info_threads_command, switch_to_thread)
3685 (restore_current_thread): Likewise.
3686 * uw-thread (libtread_stub): Likewise.
3688 * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
3690 * corelow.c (add_to_thread_list): Convert argument in add_thread()
3692 * gnu-nat.c (inf_validate_procs): Likewise.
3693 * linux-thread.c (stop_thread, update_stop_threads): Likewise.
3694 * remote.c (record_currthread, remote_threads_info): Likewise.
3695 * win32-nat.c (child_add_thread): Likewise.
3697 * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
3698 respectively, to save_inferior_ptid() and restore_inferior_ptid().
3699 Adjust implementations to operate on ``ptid_t'' instead of ``int''.
3700 * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
3701 * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
3702 * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
3703 * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
3704 * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
3705 * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
3707 * infrun.c (RESUME_ALL): New macro representing the -1 ptid
3708 to be passed to target_resume() when all threads should resume.
3709 (resume): Set resume_ptid to RESUME_ALL rather than -1.
3710 (handle_inferior_event): Invoke target_resume() with RESUME_ALL
3712 * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
3713 a ptid_t in target_resume() call.
3714 * osfsolib.c (solib_create_inferior_hook): Likewise.
3715 * solib-svr4.c (solib_create_inferior_hook): Likewise.
3717 * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
3718 PIDGET0. Define new PIDGET macro which uses PIDGET0, the only
3719 difference being that the 0xffff pattern will be interpreted
3721 * lin-thread.c (PIDGET, PIDGET0): Likewise.
3722 * thread-db.c (PIDGET, PIDGET0): Likewise.
3723 * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
3724 * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
3725 * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
3726 * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
3728 * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
3729 mach_really_wait rather than mach_really__wait.
3730 * lin-thread.c (check_for_thread_event): Fix warning; make function
3731 actually return a value.
3733 * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
3734 ``pid'' arguments from ``int'' to ``ptid_t''. Also renamed
3736 * gdbarch.h, gdbarch.c: Regenerated.
3738 2001-05-03 Jonathan Larmour <jlarmour@redhat.com>
3740 * rdi-share/devsw.c: Include <time.h> for struct tm
3742 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
3744 * config/djgpp/fnchange.lst: Add mappings for the new
3745 opcodes/openrisc-* files.
3747 2001-05-01 Michael Snyder <msnyder@redhat.com>
3749 * lin-lwp.c: Change printf to fprintf_unfiltered.
3750 * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
3752 2001-05-01 Nicholas Duffek <nsd@redhat.com>
3754 * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
3755 (rs6000_in_solib_return_trampoline): Declare.
3756 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
3758 (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
3759 * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
3760 check after the CSECT check rather than before it. Allocate
3761 separate symtabs for CSECTs whose names begin with '@'.
3762 (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
3763 Activate the misc_func_recorded mechanism for whose names begin
3766 2001-04-30 J.T. Conklin <jtc@redback.com>
3768 * ppcnbsd-nat.c (fetch_inferior_registers)
3769 (store_inferior_registers, fetch_core_registers): Changed to use
3770 fpreg[] instead of r_regs[] to access floating point registers.
3772 2001-04-30 Elena Zannoni <ezannoni@redhat.com>
3774 * sh-tdep.c: Get rid of the function prototypes.
3775 (sh_sh4_build_float_register_type): Move earlier in file.
3776 (fv_reg_base_num): Ditto.
3777 (dr_reg_base_num): Ditto.
3779 2001-04-30 Michael Snyder <msnyder@redhat.com>
3781 * thread-db.c: Revert 2001-04-26 change for debugging output.
3783 * lin-lwp.c: Add set/show debug lin-lwp command. Use this
3784 command to turn extra debugging output on / off.
3786 2001-04-30 Eli Zaretskii <eliz@is.elta.co.il>
3788 * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
3789 (top-level): #include filenames.h.
3791 * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
3792 FILENAME_CMP, to DTRT on non-Posix platforms.
3793 (top-level): #include filenames.h.
3796 2001-04-27 Andrew Cagney <ac131313@redhat.com>
3798 * gdbtypes.c (check_stub_method): Always initialize ``p''.
3800 2001-04-27 Andrew Cagney <ac131313@redhat.com>
3802 * configure.host: Delete romp host.
3805 2001-04-27 Andrew Cagney <ac131313@redhat.com>
3807 * TODO: Updates to 5.1. No more targets to obsolete.
3809 2001-04-27 Don Howard <dhoward@redhat.com>
3811 (Changes from Kevin Buettner, with minor update by Don Howard.)
3813 * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
3814 typos in which hexadecimal constants were really intended to be
3816 (i387_tag): Swap logic regarding zero vs non-zero exponents.
3817 * MAINTAINERS (Misc): Added myself to the write-after-approval
3820 2001-04-26 Jim Blandy <jimb@redhat.com>
3822 (Changes from Daniel Berlin, with revisions by Jim Blandy.)
3824 Abstract out operations specific to particular C++ ABI's, and
3825 invoke them through a function table. This removes the C++ ABI
3826 dependencies scattered throughout the code, and allows us to
3827 cleanly add support for new C++ ABI's.
3828 * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
3829 * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
3830 jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
3831 #include "cp-abi.h". These files all use functions now declared
3833 * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
3834 Deleted. These services are now provided by functions declared in
3836 * value.h (value_rtti_type, value_virtual_fn_field): Same.
3837 * values.c (value_virtual_fn_field): Same, for this definition.
3838 * valops.c (value_rtti_type): Same.
3839 * c-typeprint.c (c_type_print_base): Use the functions from
3840 "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
3842 * dbxread.c (record_minimal_symbol): Same.
3843 * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
3844 virtual_base_index_skip_primaries): Same.
3845 * jv-typeprint.c (java_type_print_base): Same.
3846 * linespec.c (find_methods, decode_line_1): Same.
3847 * symtab.c (gdb_mangle_name): Same.
3848 * Makefile.in (SFILES): Add the new .c files mentioned above.
3849 (cp_abi_h): New variable.
3850 (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
3851 (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
3852 (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
3853 jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
3854 dependency on $(cp_abi_h).
3856 2001-04-26 Michael Snyder <msnyder@redhat.com>
3858 * thread-db.c (_initialize_thread_db): Add set/show command
3859 "debug-linux-threads" for debugging output.
3860 * lin-lwp.c (various): Use global "debug_linux_threads to
3861 turn on extra debugging output.
3862 * lin-lwp.c: Minor cleanups in comments.
3863 * target.c (normal_pid_to_str): Get rid of an ancient hack.
3864 * remote.c (remote_pid_to_str): New function for remote target.
3866 2001-04-24 Jim Blandy <jimb@redhat.com>
3868 * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
3869 qualifier on C++ references; all references are innately const.
3871 2001-04-20 Mark Kettenis <kettenis@gnu.org>
3873 * event-top.h: Fix formatting.
3875 2001-04-17 Andrew Cagney <ac131313@redhat.com>
3877 * source.c (openp): Obsolete #ifdef MPW code.
3878 (open_source_file): Ditto.
3879 * event-top.c (display_gdb_prompt): Ditto.
3880 * utils.c (query): Ditto.
3881 (init_page_info): Ditto.
3882 (init_page_info): Delete #ifndef MPW.
3883 * top.c (gdb_readline): Ditto.
3884 * mac-xdep.c: Obsolete.
3885 * mac-gdb.r: Obsolete.
3886 * config/powerpc/xm-mpw.h: Obsolete.
3887 * config/xm-mpw.h: Obsolete.
3888 * mpw-make.sed: Obsolete.
3889 * mpw-config.in: Obsolete.
3893 2001-04-19 Mark Kettenis <kettenis@gnu.org>
3895 * i386-tdep.c (i386_frameless_function_invocation): New function.
3896 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
3897 in terms of i386_frameless_function_invocation. Adjust comment.
3898 (i386_frameless_function_invocation): New prototype.
3900 2001-04-18 Martin M. Hunt <hunt@redhat.com>
3902 * top.c (gdb_init): Don't call cli_out_new() to
3903 create global uiout if init_ui_hook is set. uiout will
3904 have to be initialized there.
3906 2001-04-18 Andrew Cagney <ac131313@redhat.com>
3908 * arch-utils.c: Include "regcache.h".
3910 2001-04-18 Mark Kettenis <kettenis@gnu.org>
3912 * i386-tdep.c (i386_saved_pc_after_call): New function.
3913 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
3914 of i386_saved_pc_after_call.
3915 (i386_saved_pc_after_call): New prototype.
3917 2001-04-17 Michael Snyder <msnyder@redhat.com>
3919 * i386-nat.c: Fix typo in comment.
3920 * solib.c (no_shared_libraries): New function. Discard all symbols
3921 from shared libraries.
3922 (_initialize_solib): Add command "nosharedlibrary" as complement
3923 to the command "sharedlibrary". Unloads symbols for all solibs.
3925 2001-04-16 Andrew Cagney <ac131313@redhat.com>
3927 * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
3928 * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
3929 (m68*-est-*, m68*-sony-*, m68*-isi-*):
3930 * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
3931 * config/m68k/xm-news.h: Obsolete.
3932 * config/m68k/tm-news.h:
3933 * config/m68k/xm-news1000.h: Obsolete.
3934 * config/m68k/news.mh: Obsolete.
3935 * config/m68k/news.mt: Obsolete.
3936 * config/m68k/nm-news.h: Obsolete.
3937 * config/m68k/news1000.mh: Obsolete.
3938 * news-xdep.c: Obsolete.
3939 * Makefile.in (isi-xdep.o): Obsolete.
3940 (ALLDEPFILES): Delete isi-xdep.c.
3941 (tm-isi.h): Obsolete.
3942 * m68k-tdep.c (altos_skip_prologue): Update comments.
3943 (isi_skip_prologue): Obsolete.
3944 * isi-xdep.c: Obsolete.
3945 * config/m68k/xm-isi.h: Obsolete.
3946 * config/m68k/isi.mh: Obsolete.
3947 * config/m68k/tm-isi.h: Obsolete.
3948 * config/m68k/isi.mt: Obsolete.
3953 2001-04-17 Michael Snyder <msnyder@redhat.com>
3955 * remote.c (remote_open_1): On opening the remote target, activate
3956 the solib_create_inferior_hook, so that it can detect when the
3957 target loads shared libraries.
3958 (remote_async_open_1): Ditto.
3960 2001-04-17 Michael Snyder <msnyder@redhat.com>
3962 * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
3963 * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
3964 * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
3965 * testsuite/gdb.trace/infotrace.exp: Ditto.
3966 * testsuite/gdb.trace/passcount.exp: Ditto.
3967 * testsuite/gdb.trace/while-stepping.exp: Ditto.
3969 2001-04-17 Michael Snyder <msnyder@redhat.com>
3971 * thread-db.c (check_thread_signals): When looping over all
3972 signals, ignore signal zero.
3973 (disable_thread_signals): Ditto.
3975 2001-04-17 Eirik Fuller <eirik@netapp.com>
3977 * thread.c (do_captured_thread_select): Allow the argument to the
3978 thread command to be an expression rather than a literal integer.
3980 2001-04-17 Mark Kettenis <kettenis@gnu.org>
3982 * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
3983 read_memory_unsigned_integer instead of read_memory_integer.
3985 2001-04-16 Kevin Buettner <kevinb@redhat.com>
3987 * solib-aix5.c (map_index_vs_section_name_okay): New function.
3988 (aix5_relocate_main_executable): Don't use file offsets for
3989 determining corresponding sections and map file entries. Call
3990 map_index_vs_section_name_okay() to do this instead.
3992 2001-04-16 Kevin Buettner <kevinb@redhat.com>
3994 * procfs.c (open_with_retry): New function.
3995 (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
3996 (proc_get_LDT_entry): Call open_with_retry() instead of open().
3998 2001-04-16 Kevin Buettner <kevinb@redhat.com>
4000 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
4001 comparison against TRAP_HWBKPT constant yet again to account
4002 for the various values used by different kernel versions.
4004 2001-04-16 Daniel Berlin <dan@cgsoftware.com>
4006 * demangle.c (_initialize_demangler): Use xcalloc on the
4007 demangling_style_names, and make it a null terminated array of
4008 names, to avoid a crash.
4010 2001-04-16 Mark Kettenis <kettenis@gnu.org>
4012 * i386-tdep.c (i386_frame_chain): New function.
4013 * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
4015 (i386_frame_chain): New prototype.
4017 2001-04-14 J.T. Conklin <jtc@redback.com>
4019 * target.h (target_ops): Removed to_core_file_to_sym_file vector
4021 * corelow.c (core_ops): Updated for above change.
4022 * gnu-nat.c (core_ops): Likewise.
4023 * inftarg.c (child_ops): Likewise.
4024 * monitor.c (monitor_ops): Likewise.
4025 * ppc-bdm.c (bdm_ppc_ops): Likewise.
4026 * remote-adapt.c (adapt_ops): Likewise.
4027 * remote-bug.c (bug_ops): Likewise.
4028 * remote-e7000.c (e7000_ops): Likewise.
4029 * remote-eb.c (eb_ops): Likewise.
4030 * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
4031 * remote-mm.c (mm_ops): Likewise.
4032 * remote-nindy.c (nindy_ops): Likewise.
4033 * remote-nrom.c (nrom_ops): Likewise.
4034 * remote-os9k.c (rombug_ops): Likewise.
4035 * remote-rdp.c (remote_rdp_ops): Likewise.
4036 * remote-sim.c (gdbsim_ops): Likewise.
4037 * remote-st.c (st2000_ops): Likewise.
4038 * v850ice.c (v850ice_ops): Likewise.
4039 * target.c (cleanup_target): Likewise
4040 (update_current_target): Likewise.
4041 (setup_target_debug): Likewise
4042 (debug_to_core_file_to_sym_file): Removed.
4044 * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
4045 sets symbol file from information obtained from the core file.
4046 * corelow.c (core_file_to_sym_file): Removed.
4048 2001-04-13 Fernando Nasser <fnasser@redhat.com>
4050 From Adam Mirowski <Adam.Mirowski@Sun.COM>
4051 Fixed Insight on Solaris. It was not possible to debug a process
4052 because of EINTR "errors".
4053 * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
4054 with EINTR, retry the call.
4056 2001-04-12 Kevin Buettner <kevinb@redhat.com>
4058 * solib-aix5.c (enum maptype): Delete.
4059 (struct lm_info): Add new member ``nmappings''. Make ``mapping''
4060 member a pointer instead of a statically sized array.
4061 (build_so_list_from_mapfile): Dynamically allocate ``mapping''
4063 (aix5_relocate_main_executable, aix5_relocate_section_addresses,
4064 aix5_find_global_pointer): Search for correct mapping to use
4065 based on file offset instead of knowledge of whether the section
4066 is read-only or read/write.
4067 (aix5_find_gate_addresses): Use the first mapping instead of
4068 the (now defunct) MT_READONLY mapping.
4070 2001-04-12 Nicholas Duffek <nsd@redhat.com>
4072 * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
4075 2001-04-12 Kevin Buettner <kevinb@redhat.com>
4077 * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
4079 2001-04-09 Andrew Cagney <ac131313@redhat.com>
4081 Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
4082 * config/i386/sun386.mh: Obsolete.
4083 * config/i386/sun386.mt: Obsolete.
4084 * config/i386/xm-sun386.h: Obsolete.
4085 * config/i386/tm-sun386.h: Obsolete.
4086 * config/i386/nm-sun386.h: Obsolete.
4087 * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
4088 (sun386-nat.o): Target is obsolete.
4089 * sun386-nat.c: Obsolete.
4090 * configure.tgt (i[3456]86-*-sunos*): Obsolete.
4091 * configure.host (i[3456]86-*-sunos*): Obsolete.
4095 2001-04-10 J.T. Conklin <jtc@redback.com>
4097 * maint.c: Fix typo in comment.
4099 2001-04-09 Keith Seitz <keiths@cygnus.com>
4101 * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
4103 2001-04-08 Kevin Buettner <kevinb@redhat.com>
4105 * fork-child.c (fork_inferior, clone_and_follow_inferior):
4106 Document fact that apparent call to vfork() might actually be
4107 a call to fork() instead.
4108 * ser-pipe.c (pipe_open): Likewise.
4110 2001-04-08 Kevin Buettner <kevinb@redhat.com>
4112 * printcmd.c (print_frame_args): Use a cleanup to invoke
4113 ui_out_list_end() so that the list count nesting flag will
4114 be decremented properly when an error occurs.
4115 * stack.c (print_frame): Likewise.
4117 2001-04-06 J.T. Conklin <jtc@redback.com>
4119 * dcache.c (dcache_write_line): Fixed bugs where cache line was
4120 not written to target correctly.
4122 * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
4124 * gdbserver/low-nbsd.c: Likewise.
4125 * gdbserver/low-sparc.c: Likewise.
4126 * gdbserver/low-sun3.c: Likewise.
4128 2001-04-06 Geoffrey Keating <geoffk@redhat.com>
4130 * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
4131 (PTRACE_DETACH): Don't define.
4133 2001-04-06 David Smith <dsmith@redhat.com>
4135 * arch-utils.c (default_prepare_to_proceed)
4136 (generic_prepare_to_proceed): Added new functions.
4137 * arch-utils.h: New function declarations for
4138 default_prepare_to_proceed() and generic_prepare_to_proceed().
4139 * gdbarch.sh: Added PREPARE_TO_PROCEED.
4140 * gdbarch.c: Regenerated.
4141 * gdbarch.h: Regenerated.
4142 * inferior.h: Added get_last_target_status() declaration.
4143 * infrun.c (get_last_target_status): Added new function.
4144 (handle_inferior_event): Saves last pid and waitstatus, which will
4145 get returned by get_last_target_status().
4147 * hppa-tdep.c (prepare_to_proceed): Added comment stating that
4148 prepare_to_proceed() is potentially redundant since
4149 default_prepare_to_proceed() has been added.
4150 * linux-thread.c (prepare_to_proceed): Ditto.
4151 * lin-lwp.c (prepare_to_proceed): Ditto.
4152 * m3-nat.c (prepare_to_proceed): Ditto.
4154 2001-04-05 Andrew Cagney <ac131313@redhat.com>
4156 Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
4157 and powerpc-*-netware* target.
4158 * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
4160 * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
4161 (powerpcle-*-solaris*): Obsolete.
4162 * config/powerpc/tm-cygwin.h: Obsolete.
4163 * config/powerpc/cygwin.mt: Obsolete.
4164 * config/powerpc/xm-cygwin.h: Obsolete.
4165 * config/powerpc/cygwin.mh: Obsolete.
4166 * config/powerpc/nm-solaris.h: Obsolete.
4167 * config/powerpc/xm-solaris.h: Obsolete.
4168 * config/powerpc/tm-solaris.h: Obsolete.
4169 * config/powerpc/solaris.mt: Obsolete.
4170 * config/powerpc/tm-ppc-nw.h: Obsolete.
4171 * config/powerpc/ppc-nw.mt: Obsolete.
4175 2001-04-06 Fernando Nasser <fnasser@redhat.com>
4177 * buildsym.c (record_line): Turn off unused addr bits.
4179 2001-04-06 Fernando Nasser <fnasser@redhat.com>
4181 From David Deephanphongs <deephan@telocity.com>
4182 * inferior.h: Fix declarations of get_inferior_args and
4183 set_inferior_args, which were missing the trailing 's'.
4185 2001-04-05 Jeff Holcomb <jeffh@redhat.com>
4187 * monitor.c (monitor_supply_register): Only report an error if we
4188 don't get a valid value.
4190 2001-04-05 Eli Zaretskii <eliz@is.elta.co.il>
4192 * README: Don't mention gdba.el.
4194 2001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4196 From Jimmy Guo <guo@cup.hp.com>
4197 * top.c (init_main): set prompt if annotation_level>1,
4198 this is necessary when annotation_level is set to 2 via
4199 --annotate=2 command line option.
4201 2001-04-04 Andrew Cagney <ac131313@redhat.com>
4203 Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
4204 * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
4205 * configure.host (a29k-*-*): Obsolete.
4206 * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
4208 (ultra3-nat.o, ultra3-xdep.o): Obsolete.
4209 * config/a29k/tm-ultra3.h: Obsolete.
4210 * config/a29k/ultra3.mt: Obsolete.
4211 * config/a29k/ultra3.mh: Obsolete.
4212 * config/a29k/nm-ultra3.h: Obsolete.
4213 * config/a29k/xm-ultra3.h: Obsolete.
4214 * ultra3-xdep.c: Obsolete.
4215 * ultra3-nat.c: Obsolete.
4216 * config/a29k/a29k-kern.mt: Obsolete.
4220 Wed Apr 4 21:48:42 2001 Christopher Faylor <cgf@cygnus.com>
4222 * main.c: Remove windows.h use.
4223 (gdbtk_test): Use PATH_MAX for home var calculation.
4224 * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
4225 Win32 in colon test.
4226 * ser-tcp.c: Use modern __CYGWIN__ conditional.
4227 * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
4229 * symfile.c (symfile_bfd_open): Ditto.
4231 2001-04-04 Martin M. Hunt <hunt@redhat.com>
4233 * main.c (captured_main): For GDBtk, don't use tui_fileopen().
4234 Handle all stream setup in gdbtk_init
4236 2001-04-04 Mark Kettenis <kettenis@gnu.org>
4238 * i386-tdep.c (i386_extract_return_value): Don't return the return
4239 value of a void function.
4240 (i386_store_return_value): Likewise.
4242 2001-04-03 Andrew Cagney <ac131313@redhat.com>
4244 Obsolete w65-*-* target.
4245 * configure.tgt (w65-*-*): Obsolete.
4246 * config/w65/w65.mt: Obsolete.
4247 * config/w65/tm-w65.h: Obsolete.
4248 * w65-tdep.c: Obsolete.
4249 * NEWS: Update. Fix TiC80 description.
4252 2001-04-03 Andrew Cagney <ac131313@redhat.com>
4254 Obsolete tic80-*-* target.
4255 * configure.tgt (tic80-*-*): Obsolete.
4256 * config/tic80/tic80.mt: Obsolete.
4257 * config/tic80/tm-tic80.h: Obsolete.
4258 * tic80-tdep.c: Obsolete.
4262 2001-04-02 J.T. Conklin <jtc@redback.com>
4264 * remote-mips.c (S_IROTH): Moved definition from here.
4265 * gdb_stat.h (S_IROTH): to here.
4267 * remote.c (remote_protocol_e, remote_protocol_E): Define.
4268 (set_remote_protocol_e_packet_cmd)
4269 (set_remote_protocol_E_packet_cmd)
4270 (show_remote_protocol_e_packet_command)
4271 (show_remote_protocol_E_packet_command): New functions.
4272 (init_all_packet_configs): Initialize remote_protocol_e and
4274 (remote_resume, remote_async_resume): Support e/E command
4276 (show_remote_cmd): Show state of remote_protocol_e and
4278 (_initialize_remote): Add "set remote step-over-range-packet"
4279 and "set remote step-over-range-w-signal-packet" to CLI.
4281 2001-04-01 Andrew Cagney <ac131313@redhat.com>
4283 Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
4285 * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
4286 (umax-xdep.o, ns32km3-nat.o): Obsolete.
4287 * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
4289 * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
4291 * config/ns32k/merlin.mh: Obsolete.
4292 * config/ns32k/merlin.mt: Obsolete.
4293 * config/ns32k/xm-merlin.h: Obsolete.
4294 * config/ns32k/tm-merlin.h: Obsolete.
4295 * config/ns32k/nm-umax.h: Obsolete.
4296 * config/ns32k/umax.mh: Obsolete.
4297 * config/ns32k/umax.mt: Obsolete.
4298 * config/ns32k/xm-umax.h: Obsolete.
4299 * umax-xdep.c: Obsolete.
4300 * config/ns32k/ns32km3.mh: Obsolete.
4301 * config/ns32k/ns32km3.mt: Obsolete.
4302 * config/ns32k/tm-ns32km3.h: Obsolete.
4303 * config/ns32k/xm-ns32km3.h: Obsolete.
4304 * ns32km3-nat.c: Obsolete.
4305 * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
4306 (merlin_frame_num_args): Ditto.
4310 2001-04-02 Eli Zaretskii <eliz@is.elta.co.il>
4312 * config/djgpp/fnchange.lst: Tweak due to
4313 expect/example/chesslib.c.
4315 2001-04-02 Kevin Buettner <kevinb@redhat.com>
4317 * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
4318 unsigned int to unsigned long. Also, fix format string.
4319 (pop_frame): Fix PC_IN_CALL_DUMMY() call so that it doesn't
4320 use an undeclared variable. Also, delete declaration and
4321 initialization of ``fp'' because it is otherwise unused.
4322 * remote-bug.c (sleep): Delete declaration.
4323 (bug_store_register, bug_write_memory, bug_read_memory)
4324 (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
4325 format statements and cast certain sprintf() arguments to
4327 (bug_load): Likewise for call to printf_filtered().
4328 * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
4329 assignment to ``pc''. The necessary assignment is done in
4330 hand_function_call() after the invocation of FIX_CALL_DUMMY().
4332 2001-03-20 Daniel Berlin <dberlin@redhat.com>
4334 * symtab.c (completion_list_add_name): Remove duplicate string checks,
4335 readline already does this, and it's much faster at it, too.
4337 2001-04-01 Eli Zaretskii <eliz@is.elta.co.il>
4339 * go32-nat.c: Minor tweaks, to pacify the ari script.
4341 2001-04-01 Mark Kettenis <kettenis@gnu.org>
4343 * i386-tdep.c (i386_extract_struct_value_address): New function.
4344 * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
4345 in terms of i386_extract_struct_value_address.
4346 (i386_extract_struct_value_address): New prototype.
4348 * i386-linux-nat.c (i386_linux_dr_get): Change type of return
4349 value to `unsigned long'. Change type of `value' to `unsigned
4351 (i386_linux_dr_set): Change type of second argument to `unsigned
4353 (i386_linux_dr_set_control): Change type of first argument to
4355 (i386_linux_dr_get_status): Change type of return value to
4357 * config/i386/nm-linux.h (i386_linux_dr_set_control,
4358 i386_linux_dr_get_status): Adjust prototypes accordingly.
4360 2001-03-31 Kevin Buettner <kevinb@redhat.com>
4362 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
4363 TRAP_HWBKPT constant to match that in the kernel headers for
4366 2001-03-31 Mark Kettenis <kettenis@gnu.org>
4368 * i386bsd-nat.c: Include "gdb_assert.h".
4369 [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
4371 [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
4372 i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
4373 i386bsd_dr_get_status): New functions.
4374 * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
4375 (I386_USE_GENERIC_WATCHPOINTS): Define.
4376 Include "i386/nm-i386.h".
4377 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
4378 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
4379 (i386bsd_dr_set_control, i386bsd_dr_set_addr,
4380 i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
4381 * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
4382 * configure.in: Cleanup a few comments. Check for PT_GETDBREGS
4384 * config.in, configure: Regenerate.
4386 * i386-nat.c (i386_insert_aligned_watchpoint): Set address
4387 register before enabling it by setting the control register.
4388 (i386_remove_aligned_watchpoint): Reset address register after
4389 disabling it by setting the control register.
4391 * i386-tdep.c (i386_extract_return_value): If the type of the
4392 return value is TYPE_STRUCT and the number of fields is one, call
4393 ourselves with TYPE set tp the type of the first field.
4394 (i386_store_return_value): Likewise.
4395 This fixes a problem with returning structs consisting of a single
4396 `float' or `double' on *BSD.
4398 2001-03-30 Mark Kettenis <kettenis@gnu.org>
4400 * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
4401 we're absolutely sure we're going to resume it.
4403 * thread-db.c (check_event): Don't report an error if we encounter
4404 a thread creation event for a thread that's already in the thread
4405 list, since that may legitemately happen. Instead only call
4406 attach_thread if it's not already in the thread list.
4408 2001-03-28 Andrew Cagney <ac131313@redhat.com>
4410 * config/pa/xm-hppah.h (malloc): Really delete declaration
4411 (MALLOC_INCOMPATIBLE): Really delete macro.
4412 * cli/cli-cmds.c (apropos_command): Use xcalloc.
4414 2001-03-28 Andrew Cagney <ac131313@redhat.com>
4416 * configure.in (build_warnings): Add -Wuninitialized.
4417 * configure: Regenerate.
4419 * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
4420 * sparc-tdep.c (sparc64_push_arguments): Add default case to
4422 * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
4423 expression with if statement.
4424 * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
4426 * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
4427 (mips_dump_tdep): Fix setting of ef_mips_arch.
4428 * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
4429 * dsrec.c (make_srec): Always initialize ``binbuf''.
4430 * monitor.c (monitor_read_memory_single): Do not pass an
4431 uninitialized buffer to monitor_error. Make ``i'' more local.
4433 2001-03-28 Andrew Cagney <ac131313@redhat.com>
4435 * MAINTAINERS: Change ns32k target to ,-Werror.
4437 * ns32k-tdep.c: Include "gdbcore.h"
4438 (flip_bytes): Change first argument to void*. Add forward
4440 (sign_extend): Add declaration.
4441 (merlin_frame_num_args): Add final else clause to if-else chain.
4442 (umax_frame_num_args): Ditto.
4443 * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
4444 (flip_bytes): Ditto.
4446 2001-03-28 Mark Kettenis <kettenis@gnu.org>
4448 * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
4449 config/i386/nm-linux.h (including comment).
4450 (i386_linux_frame_chain): New function implementing guts of the
4451 former FRAME_CHAIN macro, but using read_memory_unsigned_integer
4452 instead of read_memory_integer.
4453 (i386_linux_frame_saved_pc): Removed doc pointing to
4454 i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
4455 now lives in this file.
4456 * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
4457 i386-linux-tdep.c (including comment).
4458 (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
4459 (i386_linux_frame_chain): New prototype.
4461 * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
4463 (NUM_FREGS): Redefine to 0.
4464 (NUM_REGS): Redefine as NUM_GREGS.
4465 (i386_register_byte, i386_register_raw_size): Update from
4466 i386-tdep.c. Add comment about their origin.
4467 (regmap, register_u_addr): Take these from i386-linux-nat.c.
4468 (i386_register_u_addr): Removed.
4470 * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
4471 fails instead of calling perror_with_name. This should fix
4472 debugging remote i386 targets with a native Linux/x86 GDB. Add
4473 FIXME for this hack.
4475 2001-03-19 J.T. Conklin <jtc@redback.com>
4477 * arch-utils.c (#include "gdbthread.h"): Removed.
4478 (#include "symfile.h"): Removed.
4479 (XMALLOC): Removed unused macro.
4480 * breakpoint.c (tbreak_command): Removed local declaration.
4481 (awatch_command, do_enable_breakpoint, set_breakpoint_count):
4482 Remove duplicate declarations.
4483 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
4484 (remove_solib_event_breakpoints): Fix indentation botch.
4485 * c-typeprint.c (#include "command.h"): Removed.
4486 (#include "gdbcmd.h"): Removed.
4487 * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
4488 (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
4489 Removed duplicate declarations.
4490 * ch-typeprint.c (#include "command.h"): Removed.
4491 (#include "gdbcmd.h"): Removed.
4492 * corefile.c (#include "frame.h"): Removed
4493 (#include "symfile.h"): Removed.
4494 (#include "language.h"): Removed.
4495 * dbxread.c (#include "command.h"): Removed.
4496 * environ.c (#include "gdbcore.h"): Removed.
4497 * event-loop.c (#include "top.h"): Removed.
4498 * f-typeprint.c (#include "command.h"): Removed.
4499 (#include "gdbcmd.h"): Removed.
4500 (#include "language.h"): Removed.
4501 (#include "typeprint.h"): Removed.
4502 (#include "frame.h"): Removed.
4503 * gdbtypes.h (print_type_scalar): Removed declaration.
4504 * infcmd.c (#include "completer.h"): Removed.
4505 * language.c (#include "frame.h"): Removed.
4506 * m2-typeprint.c (#include "command.h"): Removed.
4507 (#include "gdbcmd.h"): Removed.
4508 (#include "language.h"): Removed.
4509 * m2-valprint.c (#include "valprint.h"): Removed.
4510 * p-typeprint.c (#include "command.h"): Removed.
4511 (#include "gdbcmd.h"): Removed.
4512 * p-valprint.c (#include "typeprint.h"): Removed.
4513 * parse.c (#include "linespec.h"): Removed.
4514 * regcache.c (#include "frame.h"): Removed.
4515 * remote.c (#include "frame.h"): Removed.
4516 (getpkt_sane): Make static.
4517 * source.c (#include "completer.h"): Removed.
4518 * stack.c (#include "symfile.h"): Removed.
4519 (#include "objfiles.h"): Removed.
4520 * symfile.c (#include "completer.h"): Removed.
4521 * tracepoint.c (#include "completer.h"): Removed.
4522 * values.c (#include "frame.h"): Removed.
4523 * varobj.c (#include "valprint.h"): Removed.
4524 * wrapper.c (#include "frame.h"): Removed.
4526 * memattr.c (create_mem_region): Removed unused variable.
4527 * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
4529 2001-03-27 Nick Clifton <nickc@redhat.com>
4531 * remote-rdp.c (rdp_set_command_line): Add missing double quote.
4533 2001-03-27 Kevin Buettner <kevinb@redhat.com>
4535 * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
4538 2001-03-27 Eli Zaretskii <eliz@is.elta.co.il>
4540 * TODO (Cleanups): Remove the item about converting docs to GFDL.
4542 2001-03-26 Kevin Buettner <kevinb@redhat.com>
4544 * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
4545 type of ``bundle'' from unsigned char * to char *.
4546 (ia64_get_saved_register): Use alloca() to allocate register
4549 * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
4551 2001-03-26 Kevin Buettner <kevinb@redhat.com>
4553 * proc-utils.h (procfs_ctl_t): New typedef.
4554 * proc-api.c (write_with_trace): Change type of ``opcode'' from
4555 long to procfs_ctl_t. Don't assume that the target has defined
4556 BREAKPOINT. Handle case in which PCRESET is the same as PCUNSET.
4557 * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
4558 * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
4559 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
4560 (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
4561 Conditionally define as appropriate for AIX/non-AIX systems. Use
4562 these defines/typedefs as appropriate elsewhere in file.
4563 (struct procinfo): Change type of saved_sigset and saved_sighold
4564 from sigset_t to gdb_sigset_t. Make saved_exitset and
4565 saved_entryset pointer variables. Add two new fields, num_syscalls
4567 (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
4568 (sysset_t_size, sysset_t_alloc): New functions.
4569 (load_syscalls, free_syscalls, find_syscall): New functions for
4570 platforms which define DYNAMIC_SYSCALLS.
4571 (create_procinfo): Call load_syscalls.
4572 (destroy_one_procinfo): Call free_syscalls.
4573 (GDBRESET): Don't define twice.
4574 (proc_modify_flag): Change type of operation code array `arg'
4575 from long to procfs_ctl_t.
4576 (proc_stop_process, proc_wait_for_stop, proc_run_process)
4577 (proc_set_traced_signals, proc_set_traced_faults)
4578 (proc_set_traced_sysentry, proc_set_traced_sysexit)
4579 (proc_set_held_signals, proc_clear_current_fault)
4580 (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
4581 (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
4582 (proc_set_traced_sysentry): Dynamically allocate variable sized
4583 struct gdb_proc_ctl_pcsentry. Also, free it at function exit.
4584 (proc_set_traced_sysexit): Dynamically allocate variable
4585 sized struct gdb_proc_ctl_pcsexit. Also, free it at
4587 (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
4588 for reading the sysset_t struct on AIX5.
4589 (procfs_debug_inferior): Don't assume that SYS_exit will be
4590 defined. Add new code for finding certain syscalls on AIX5.
4591 (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
4592 (syscall_is_lwp_create): New functions.
4593 (procfs_wait): Restructured code which checks for certain
4594 system calls to use the new syscall_is_... functions.
4595 (procfs_notice_signals): Account for the fact that saved_entryset
4596 and saved_exitset in struct procinfo are now pointers.
4598 2001-03-26 Kevin Buettner <kevinb@redhat.com>
4600 * symtab.c (find_pc_sect_line): Revise method used for finding
4603 2001-03-26 Mark Kettenis <kettenis@gnu.org>
4605 * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
4606 i386_linux_sigtramp_saved_sp): Make static.
4607 (i386_linux_frame_saved_pc): New function based on the old
4608 FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
4609 of read_memory_integer.
4610 * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
4611 (i386_linux_sigtramp_saved_pc): Remove prototype.
4612 (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
4613 (i386_linux_frame_saved_pc): New prototype.
4615 2001-03-26 Andrew Cagney <ac131313@redhat.com>
4617 * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
4618 * TODO (GDB 5.1 - Cleanups): Update.
4620 2001-03-26 Andrew Cagney <ac131313@redhat.com>
4622 * fork-child.c (clone_and_follow_inferior): Delete #ifdef
4625 2001-03-26 Mark Kettenis <kettenis@gnu.org>
4627 * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
4629 * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
4631 * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
4632 (STORE_STRUCT_RETURN): Redefine in terms of
4633 i386_store_struct_return.
4634 (i386_push_arguments, i386_store_struct_return): New prototypes.
4635 * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove. It's
4636 definition was identical to the definition in "i386/tm-i386.h" so
4637 the new definition should suffice too.
4639 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4641 * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
4642 definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
4644 * config/djgpp/djconfig.sh: Add copyright notice.
4646 * ser-go32.c (rawclock): Remove prototype; include time.h instead.
4647 (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
4648 (top level) <string.h>: Include gdb_string.h instead.
4649 (dos_noop, dos_raw, dos_noflush_set_tty_state)
4650 (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
4652 * go32-nat.c (go32_create_inferior): Move the declaration of
4653 `environ' to here from the top level.
4654 (top level) <_initialize_go32_nat>: Remove redundant prototype.
4655 <gdb_string.h>: Include it instead of string.h.
4656 (store_register): Call register_buffer instead of accessing
4657 registers[] directly.
4658 (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger)
4659 (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
4660 the function names at the start of the line.
4661 (go32_set_dr): Throw internal_error if the argument is not a valid
4662 debug register number.
4663 (go32_open, go32_close, go32_attach, go32_detach, go32_resume)
4664 (go32_wait, go32_xfer_memory, go32_files_info)
4665 (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
4667 2001-03-25 Jim Blandy <jimb@redhat.com>
4669 * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
4671 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4673 From Andrew Cagney <ac131313@redhat.com>
4675 * coffread.c: Include "gdb_assert.h".
4676 (coff_symtab_read): Cast the integer s_sclass to a long before
4677 casting it to a pointer.
4679 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4681 From Andrew Cagney <ac131313@redhat.com>
4683 * coffread.c (coff_symtab_read): Initialize
4684 ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds
4686 * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
4688 2001-03-23 Andrew Cagney <ac131313@redhat.com>
4690 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
4691 GDB_MULTI_ARCH_PARTIAL from two. SOFTWARE_SINGLE_STEP is not
4694 * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
4695 * gdbarch.h, gdbarch.c: Re-generate.
4697 * target.h (SOFTWARE_SINGLE_STEP_P)
4698 (SOFTWARE_SINGLE_STEP): Delete macro definitions.
4700 2001-03-23 Andrew Cagney <ac131313@redhat.com>
4702 * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
4703 * gdbarch.h, gdbarch.c: Regenerate.
4705 * regcache.h (regcache_read, regcache_write): Declare.
4706 (registers, register_valid, register_buffer): Add note that these
4707 interfaces are deprecated.
4709 * regcache.c: Include "gdb_assert.h".
4710 (legacy_write_register_gen): Rename write_register_gen.
4711 (legacy_read_register_gen): Rename read_register_gen.
4712 (regcache_read, regcache_write): New function.
4713 (read_register_gen, write_register_gen): New function.
4714 (write_register): Simplify. Use write_register_gen.
4715 (read_register): Ditto using read_register_gen.
4716 (read_signed_register): Ditto.
4717 (read_register_bytes): Ditto!!!!
4718 (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
4719 replaced by gdbarch_register_read.
4721 * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
4724 2001-03-23 Jim Blandy <jimb@redhat.com>
4726 Fix from Dan Berlin:
4728 * stabsread.c (read_cpp_abbrev): Properly construct the names of
4729 virtual function table pointer fields.
4731 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4733 * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
4734 xmrealloc): Move existing declarations to the one place and
4735 re-order to be consistent.
4736 (xmcalloc, xmfree): Declare.
4737 (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
4740 * utils.c (size_t): Delete #ifdef defining size_t.
4741 (mmalloc, mrealloc, mcalloc, mfree): Re-order.
4742 (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
4743 corresponding malloc, realloc, calloc.
4744 (mfree): Call free directly.
4745 (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
4746 (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
4747 function bodies to here.
4748 (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
4750 2001-03-23 Andrew Cagney <ac131313@redhat.com>
4752 * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
4753 ``shell_file'' static locals.
4755 * jv-lang.c (java_link_class_type): Initialize ``field'' and
4758 * jv-valprint.c (java_value_print): Initialize ``next_element''.
4760 2001-03-23 Mark Kettenis <kettenis@gnu.org>
4762 * config/i386/nm-i386.h: Fix formatting and change reference to
4763 i386-tdep.c to i386-nat.c.
4765 2001-03-23 David Smith <dsmith@redhat.com>
4767 * configure.in: Corrected spelling errors.
4768 * configure: Regenerated.
4770 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4772 * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
4774 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4776 * Makefile.in (NTSSTART): Delete.
4778 (kdb): Delete target.
4779 * kdb-start.c, stuff.c: Mark as obsolete.
4782 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4784 * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
4785 compiles using an ISO-C compiler.
4786 (MALLOC_INCOMPATIBLE): Ditto.
4787 * linespec.c (decode_line_1): Delete hack to work around
4790 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4792 * exec.c (xfer_memory): Always initialize section.
4793 * infrun.c (normal_stop): Always initialize source_flag.
4795 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4797 * TODO (Remote Protocol Support): Review. Add notes about ``!'',
4798 non-use of a continue address and typical use of ``q'' packet.
4800 2001-03-22 Eli Zaretskii <eliz@is.elta.co.il>
4802 Make DJGPP use the new unified support for hardware
4803 breakpoints and watchpoints on x86 targets:
4805 * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
4806 include nm-i386.h instead.
4807 (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
4808 (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
4809 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
4810 (target_stopped_data_address, target_insert_watchpoint)
4811 (target_remove_watchpoint, target_insert_hw_breakpoint)
4812 (target_remove_hw_breakpoint): Don't define.
4813 (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
4814 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
4815 (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
4816 functions from go32-nat.c.
4818 * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
4820 * go32-nat.c <top level>: Remove prototypes for watchpoint-
4821 related functions. Remove definitions of watchpoint-related
4823 (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
4824 private cleanup_dregs function.
4825 (cleanup_dregs, go32_insert_watchpoint)
4826 (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
4827 (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
4828 (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
4829 (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
4830 (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
4832 2001-03-21 Kevin Buettner <kevinb@redhat.com>
4834 * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
4835 than two instead of generating an error.
4837 2001-03-21 Jim Blandy <jimb@redhat.com>
4839 * cp-valprint.c: Reformat to bring into line with GNU coding
4842 2001-03-21 Mark Kettenis <kettenis@gnu.org>
4844 Make Linux use the new unified support for hardware breakpoints
4845 and watchpoints on x86 targets.
4846 * i386-linux-nat.c: Doc fixes. Include "gdb_assert.h".
4847 [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
4848 (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
4849 appropriate value if not already defined.
4850 (register_u_addr): New function.
4851 (kernel_u_size): New function.
4852 (i386_linux_dr_get, i386_linux_dr_set): New functions.
4853 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
4854 i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
4855 * config/i386/nm-linux.h: Don't include "nm-i386v.h".
4856 (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
4857 (TARGET_HAS_HARDWARE_WATCHPOINTS,
4858 TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
4859 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
4860 target_remove_watchpoint): Remove macros.
4861 (i386_stopped_by_watchpoint, i386_insert_watchpoint,
4862 i386_remove_watchpoint): Remove prototypes.
4863 (register_u_addr): New prototype.
4864 (REGISTER_U_ADDR): Define in terms of register_u_addr.
4865 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
4866 i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
4867 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
4868 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
4869 * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
4872 2001-03-21 Jim Blandy <jimb@redhat.com>
4874 Fix from Dan Berlin:
4876 * linespec.c (find_methods): Whitespace differences aren't
4877 significant in *un*mangled method names. Use strcmp_iw to compare
4880 2001-03-21 Andrew Cagney <ac131313@redhat.com>
4882 * gdbarch.sh: Allow a non- multi-arch target to override a
4884 * gdbarch.h: Regenerate.
4886 2001-03-21 Andrew Cagney <ac131313@redhat.com>
4888 * gdbarch.sh: Avoid use of ``!''.
4890 2001-03-20 Andrew Cagney <ac131313@redhat.com>
4892 * target.h (enum target_signal): Move definition from here.
4893 * defs.h (enum target_signal): To here.
4895 * config/arc/tm-arc.h (arc_software_single_step): Change type of
4896 first parameter to enum target_signal.
4897 * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
4898 * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
4899 * rs6000-tdep.c (rs6000_software_single_step): Update.
4901 2001-03-20 Andrew Cagney <ac131313@redhat.com>
4903 * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
4906 From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
4907 * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
4908 or a reference ('a') can be in a pseudo register.
4909 * infcmd.c (do_registers_info): Must take into account the pseudo
4910 registers to print their value.
4911 (registers_info): Likewise.
4912 * stack.c (frame_info): Likewise.
4913 * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
4915 2001-03-21 Eli Zaretskii <eliz@is.elta.co.il>
4917 Unified support for hardware breakpoints and watchpoints on
4920 * config/i386/nm-i386.h: New file.
4922 * config/i386/nm-i386.h: (i386_cleanup_dregs)
4923 (i386_insert_watchpoint, i386_remove_watchpoint)
4924 (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
4925 (i386_stopped_data_address, i386_insert_hw_breakpoint)
4926 (i386_remove_hw_breakpoint): Declare prototypes.
4927 [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4928 Define if not already defined.
4929 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
4930 (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
4931 (target_insert_watchpoint, target_remove_watchpoint)
4932 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
4933 to call the appropriate i386_* functions.
4935 * i386-nat.c: New file.
4937 * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
4938 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4939 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
4940 (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
4941 (maint_show_dr): New variables.
4942 (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
4943 (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
4944 (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
4945 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
4946 (i386_stopped_data_address, i386_stopped_by_hwbp)
4947 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
4949 (_initialize_i386_nat): New function.
4950 [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
4951 `show-debug-regs', sets maint_show_dr to non-zero value and
4952 activates debugging print-outs in functions which insert, remove,
4953 and test watchpoints and hardware breakpoints.
4955 * Makefile.in (i386-nat.o): New target.
4956 (ALLDEPFILES): Add i386-nat.o.
4958 2001-03-21 Mark Kettenis <kettenis@gnu.org>
4960 * i386-tdep.c: Add back _initialize_i386_tdep prototype with
4961 appropriate comment.
4963 2001-03-20 Kevin Buettner <kevinb@redhat.com>
4965 * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
4966 thread-db.o, and lin-lwp.o for thread support instead of
4967 linux-thread.o and lin-thread.o.
4968 * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
4969 (ATTACH_LWP): Define to use the following lin-lwp.c functions...
4970 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
4971 (lin_lwp_attach_lwp): Declare.
4973 2001-03-20 Jim Blandy <jimb@redhat.com>
4975 Fix from Dan Berlin:
4977 * Makefile.in: Clean up dependencies on ../include/demangle.h.
4978 (demangle_h): New variable.
4979 (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
4981 2001-03-20 Andrew Cagney <ac131313@redhat.com>
4983 * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
4984 * breakpoint.c (bpstat_stop_status): Update.
4985 * infrun.c (handle_inferior_event): Ditto.
4986 * mips-tdep.c (mips_dump_tdep): Ditto.
4987 * infrun.c (resume): Ditto.
4988 * infptrace.c (child_resume): Ditto.
4989 * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4990 * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4991 * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4992 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4993 * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4994 * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4995 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4997 2001-03-20 Andrew Cagney <ac131313@redhat.com>
4999 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
5000 with internal_error.
5002 2001-03-20 Jim Blandy <jimb@redhat.com>
5004 Fix from Dan Berlin:
5006 * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
5007 than asking for sym_class's type; that's circuitous. Remove
5008 sym_class, since the last use of it is gone.
5010 2001-03-20 Eli Zaretskii <eliz@is.elta.co.il>
5012 * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
5013 Correct the order of calls to ui_out_field_string and
5014 ui_out_list_begin when bs->old_val is NULL.
5016 2001-03-19 Kevin Buettner <kevinb@redhat.com>
5018 * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
5019 * configure: Regenerate.
5020 * config.in: Regenerate.
5021 * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
5023 2001-03-19 Kevin Buettner <kevinb@redhat.com>
5025 * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
5026 same line to avoid problems with Unixware 7's make when building
5029 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5031 * defs.h (malloc): Move declaration from here.
5032 * utils.c (malloc): To here.
5033 * config/pa/xm-hppah.h (malloc): Delete declaration.
5035 * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
5036 * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
5037 (hpread_quick_traverse): Ditto.
5038 * infttrace.c (create_thread_info): Ditto.
5039 (kill_inferior): Ditto.
5040 * gnu-nat.c (make_inf): Ditto, and don't check return value.
5041 * procfs.c (proc_update_threads): Ditto.
5042 * valprint.c (print_decimal_chars): Ditto.
5043 * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
5045 * remote-rdp.c (rdp_set_command_line): Ditto.
5047 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5049 * defs.h (realloc): Move declaration from here.
5050 * utils.c (realloc): To here.
5051 * config/pa/xm-hppah.h (realloc): Delete declaration.
5052 * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
5053 * symfile.c (add_filename_language): Ditto.
5054 * event-loop.c (create_file_handler): Ditto.
5056 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5058 * defs.h (free): Move declaration from here.
5059 * utils.c (free): To here.
5060 (xfree): Document as the only call to free().
5061 * config/pa/xm-hppah.h (free): Delete declaration.
5063 2001-03-19 Kevin Buettner <kevinb@redhat.com>
5065 * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
5068 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5070 * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
5071 * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
5072 * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
5074 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5076 * TODO: List known problems with TUI.
5078 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5080 * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
5083 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5085 * remote.c (remote_cisco_section_offsets): Do not cast result from
5086 bfd_get_section_name.
5087 (compare_sections_command): Ditto.
5088 (remote_cisco_section_offsets): Make ``p'' a const pointer.
5089 (compare_sections_command): Ditto for ``sectname''.
5091 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5093 From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
5094 * valops.c (hand_function_call): Simplify computation of the
5095 address of the pushed argument.
5097 2001-03-17 Andrew Cagney <ac131313@redhat.com>
5099 * p-exp.y (parse_number): Avoid shift overflow when ``long''.
5100 Code copied from c-exp.y.
5102 2001-03-18 Kevin Buettner <kevinb@redhat.com>
5104 * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
5105 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
5106 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
5107 * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
5108 of the Solaris procfs testing section. Instead, group with...
5109 (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
5110 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
5111 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
5112 * configure: Regenerate.
5113 * config.in: Regenerate.
5115 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
5116 new configure macros to choose which (if any) code to
5117 compile in. Added code to explicitly handle *BSD systems;
5118 these systems were previously handled only through macro
5119 redefinition. Also, due to the way the autoconf tests are set
5120 up, this function will no longer return a non-zero value when
5121 GDB is configured as a cross debugger. I.e, cross debuggers
5122 will no longer be able to "accidentally" get the host system's
5125 2001-03-18 Kevin Buettner <kevinb@redhat.com>
5127 * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
5128 line to avoid build problem on NetBSD 1.4.
5130 2001-03-17 Michael Chastain <chastain@redhat.com>
5132 * win32-nat.c (child_attach): check args for NULL before passing
5133 to strtoul. This fixes PR gdb/43.
5135 2001-03-17 Mark Kettenis <kettenis@gnu.org>
5137 * i387-nat.h: Doc Fix.
5139 * i386-tdep.c: Fix formatting.
5140 (i386_get_frame_setup, i386_follow_jump, codestream_read,
5141 codestream_seek, codestream_fill, skip_trampoline_code,
5142 gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
5145 2001-03-17 Mark Kettenis <kettenis@gnu.org>
5147 * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
5148 no longer used. Also remove associated FIXME.
5150 2001-03-16 Andrew Cagney <ac131313@redhat.com>
5152 * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch. Do
5153 not generate macro wrappers for multi-arch functions or
5155 (class_is_info_p, class_is_predicate_p): Update.
5156 (class_is_function_p, class_is_variable_p): Ditto.
5157 (class_is_multiarch_p): New class function.
5159 2001-03-16 J.T. Conklin <jtc@redback.com>
5161 * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
5162 h8300_frame_args_address from frame_args_address.
5163 (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
5164 from frame_locals_address.
5165 (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
5166 from print_register_hook.
5167 (h8300_frame_args_address): Declare.
5168 (h8300_frame_find_saved_regs): Declare.
5169 (h8300_frame_locals_address): Declare.
5170 (h8300_frame_saved_pc): Declare.
5171 (h8300_pop_frame): Declare.
5172 (h8300_print_register_hook): Declare.
5173 * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
5174 (h8300_frame_args_address): Renamed from frame_args_address.
5175 (h8300_frame_locals_address): Renamed from frame_locals_address.
5176 (h8300_pop_frame): Renamed from pop_frame.
5177 (h8300_print_register_hook): Renamed from print_register_hook.
5179 2001-03-16 Kevin Buettner <kevinb@redhat.com>
5181 * solib-svr4.c (bfd_lookup_symbol): Change type of
5182 ``storage_needed'' from unsigned int to long in order to
5183 match return type of bfd_get_symtab_upper_bound() and
5184 bfd_get_dynamic_symtab_upper_bound().
5185 * solib-aix5.c (bfd_lookup_symbol): Likewise. Also, eliminate
5186 REASONABLE_LIMIT hack which had been added to work around this
5189 2001-03-15 Kevin Buettner <kevinb@redhat.com>
5191 * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
5192 (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
5193 to free() with calls to xfree().
5194 (bfd_lookup_symbol): Eliminate use of PTR.
5195 (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
5197 2001-03-15 Martin Hunt <hunt@redhat.com>
5199 * linespec.c (decode_line_1): Remove trailing quote
5200 when parsing double quotes.
5202 2001-03-15 Kevin Buettner <kevinb@redhat.com>
5204 * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
5205 (libthread_stub, libthread_init): Pass NULL for the mem_attrib
5206 argument in the to_xfer_memory calls.
5208 2001-03-15 Andrew Cagney <ac131313@redhat.com>
5210 * MAINTAINERS: Fix typo - w65 not w64. Still doesn't build.
5211 * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
5213 2001-03-15 Andrew Cagney <ac131313@redhat.com>
5215 * wince.c (child_xfer_memory): Add attrib parameter.
5216 * symm-nat.c (child_xfer_memory): Ditto.
5217 * mac-nat.c (child_xfer_memory): Ditto.
5218 * infttrace.c (child_xfer_memory): Ditto.
5219 * procfs.c (procfs_xfer_memory): Ditto.
5220 * lin-thread.c (thread_db_xfer_memory): Ditto.
5221 * gnu-nat.c (gnu_xfer_memory): Ditto.
5223 2001-03-14 Andrew Cagney <ac131313@redhat.com>
5225 * NEWS: Mention that Harris/CXUX m88k is obsolete.
5227 2001-03-13 Andrew Cagney <ac131313@redhat.com>
5229 * config/mips/tm-mips.h: Include "regcache.h" for macros refering
5230 to regcache functions.
5231 * config/m68k/tm-m68k.h: Ditto.
5232 * config/i386/tm-i386v.h: Ditto.
5233 * config/mcore/tm-mcore.h: Ditto.
5234 * config/m88k/tm-m88k.h: Ditto.
5235 * config/m68k/tm-news.h: Ditto.
5236 * config/m68k/tm-linux.h: Ditto.
5237 * config/m68k/tm-delta68.h: Ditto.
5238 * config/m68k/nm-sun3.h: Ditto.
5239 * config/m32r/tm-m32r.h: Ditto.
5240 * config/i386/tm-symmetry.h: Ditto.
5241 * config/i386/tm-sun386.h: Ditto.
5242 * config/i386/tm-i386.h: Ditto.
5243 * config/i386/nm-symmetry.h: Ditto.
5244 * config/i386/nm-sun386.h: Ditto.
5245 * config/i386/nm-ptx4.h: Ditto.
5246 * config/i386/nm-i386mach.h: Ditto.
5247 * config/h8500/tm-h8500.h: Ditto.
5248 * config/h8300/tm-h8300.h: Ditto.
5249 * config/fr30/tm-fr30.h: Ditto.
5250 * config/d30v/tm-d30v.h: Ditto.
5251 * config/arm/tm-arm.h: Ditto.
5252 * config/arc/tm-arc.h: Ditto.
5253 * config/alpha/tm-alpha.h: Ditto.
5254 * config/a29k/tm-vx29k.h: Ditto.
5255 * config/a29k/tm-a29k.h: Ditto.
5256 * config/w65/tm-w65.h: Ditto.
5257 * config/vax/tm-vax.h: Ditto.
5258 * config/v850/tm-v850.h: Ditto.
5259 * config/tic80/tm-tic80.h: Ditto.
5260 * config/sparc/tm-sparclite.h: Ditto.
5261 * config/sparc/tm-sparclet.h: Ditto.
5262 * config/sparc/tm-sparc.h: Ditto.
5263 * config/sparc/nm-sun4sol2.h: Ditto.
5264 * config/sparc/nm-sun4os4.h: Ditto.
5265 * config/sparc/nm-nbsd.h: Ditto.
5266 * config/powerpc/nm-solaris.h: Ditto.
5267 * config/pa/tm-hppao.h: Ditto.
5268 * config/pa/tm-hppa.h: Ditto.
5269 * config/pa/nm-hppab.h: Ditto.
5270 * config/ns32k/tm-umax.h: Ditto.
5271 * config/ns32k/tm-merlin.h: Ditto.
5272 * config/nm-m3.h: Ditto.
5273 * config/nm-gnu.h: Ditto.
5275 2001-03-14 Andrew Cagney <ac131313@redhat.com>
5277 * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
5278 broken. Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
5279 Specify an m88k target. Include sample GAWK script to generate
5280 target list. Delete non-existant romp target.
5281 * TODO (GDB 5.1 - Cleanups): Update.
5283 2001-03-14 Keith Seitz <keiths@cygnus.com>
5285 * linespec.c (decode_line_1): Skip argptr over a leading
5286 double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
5288 2001-03-14 Kevin Buettner <kevinb@redhat.com>
5290 * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
5292 2001-03-13 Andrew Cagney <ac131313@redhat.com>
5294 * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
5297 * printcmd.c (printf_command): Ditto.
5298 * ch-exp.c (match_integer_literal): Ditto.
5299 * scm-tags.h: Ditto.
5300 * ser-go32.c: Ditto.
5301 * hppa-tdep.c (unwind_command): Ditto.
5302 * defs.h (volatile): Delete macro definition. Assume __STDC__.
5303 * remote-adapt.c (volatile): Ditto.
5304 * remote-eb.c (volatile): Ditto.
5305 * remote-mm.c (volatile): Ditto.
5306 * defs.h (alloca): Assume __STDC__, declare returning void *.
5308 2001-03-08 Andrew Cagney <ac131313@redhat.com>
5310 * inferior.h (ARCH_NUM_REGS): Delete definition.
5311 * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
5312 * regcache.c (registers_changed): Ditto.
5313 (registers_fetched): Ditto.
5314 * infptrace.c (fetch_inferior_registers): Ditto.
5315 (store_inferior_registers): Ditto.
5316 * infcmd.c (do_registers_info): Ditto.
5317 (registers_info): Ditto.
5318 * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
5319 (old_store_inferior_registers): Ditto.
5320 * gdbserver/low-linux.c (register_addr): Ditto.
5321 * gdbserver/low-hppabsd.c (register_addr): Ditto.
5322 * core-aout.c: Don't include "inferior.h".
5323 (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
5324 (register_addr): Ditto.
5326 2001-03-13 Fernando Nasser <fnasser@redhat.com>
5328 From Steven Johnson <sjohnson@neurizon.net>
5329 * cli/cli-script.c (define_command): Fix setting of post hooks.
5331 2001-03-13 Mark Kettenis <kettenis@gnu.org>
5333 * i386-linux-tdep.c: Fix formatting and clarify comments.
5334 (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
5337 2001-03-12 Andrew Cagney <ac131313@redhat.com>
5339 * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
5340 (proc_update_sc): Use gdb_assert instead of assert.
5341 (proc_abort): Ditto.
5342 (inf_set_step_thread): Ditto.
5344 (S_exception_raise_request): Ditto.
5345 (gnu_terminal_init_inferior): Ditto.
5347 2001-03-09 Kevin Buettner <kevinb@redhat.com>
5349 * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
5350 (solib-legacy.o): New makefile target.
5351 * solib-legacy.c: New file.
5352 * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5353 (default_svr4_fetch_link_map_offsets): Delete.
5354 (set_solib_svr4_fetch_link_map_offsets): Declare.
5355 (legacy_svr4_fetch_link_map_offsets_hook): Declare.
5356 * solib-svr4.c (elf/common.h): Include.
5357 (link.h): Only include for SunOS shared library support.
5358 (_SYSCALL32): Don't define.
5359 (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
5360 (default_svr4_fetch_link_map_offsets): Made static; added forward
5362 (fetch_link_map_offsets): New static global.
5363 (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
5364 (default_svr4_fetch_link_map_offsets): Rewritten. The guts
5365 of what used to be in this function now reside in
5366 legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
5367 (open_symbol_file_object): Fix declaration in SunOS section
5369 (set_solib_svr4_fetch_link_map_offsets): New extern function.
5370 (init_fetch_link_map_offsets): New static function.
5371 (_initialize_svr4_solib): Put static global fetch_link_map_offsets
5372 under multiarch control.
5374 * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
5376 * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
5377 * config/arm/linux.mt (TDEPFILES): Likewise.
5378 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5379 * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
5380 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5381 * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
5382 * config/i386/i386sol2.mt (TDEPFILES): Likewise.
5383 * config/i386/i386v4.mh (NATDEPFILES): Likewise.
5384 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5385 * config/i386/linux.mt (TDEPFILES): Likewise.
5386 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5387 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5388 * config/i386/ncr3000.mt (TDEPFILES): Likewise.
5389 * config/i386/ptx4.mh (XDEPFILES): Likewise.
5390 * config/i386/sun386.mt (TDEPFILES): Likewise.
5391 * config/ia64/linux.mt (TDEPFILES): Likewise.
5392 * config/m68k/linux.mt (TDEPFILES): Likewise.
5393 * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
5394 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5395 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
5396 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
5397 * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
5398 * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
5399 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5400 * config/powerpc/linux.mt (TDEPFILES): Likewise.
5401 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5402 * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
5403 * config/sh/linux.mt (TDEPFILES): Likewise.
5404 * config/sparc/linux.mt (TDEPFILES): Likewise.
5405 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5406 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5407 * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
5408 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
5409 * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
5411 2001-03-09 Kevin Buettner <kevinb@redhat.com>
5413 * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
5415 2001-03-09 Andrew Cagney <ac131313@redhat.com>
5417 * MAINTAINERS (Write After Approval): Update Philip Blundell.
5419 2001-03-09 Keith Seitz <keiths@cygnus.com>
5421 * MAINTAINERS: Add myself to write after approval list.
5423 2001-03-09 Mark Kettenis <kettenis@gnu.org>
5425 * i387-tdep.c (print_i387_status_word): Fix printing of Stack
5426 fault flag. It is bit 6 of the x87 FPU status word, not bit 7.
5428 2001-03-08 Andrew Cagney <ac131313@redhat.com>
5430 * configure.host (m88*-harris-cxux*): Mark as obsolete.
5431 * configure.tgt: Ditto.
5432 * config/m88k/xm-cxux.h: Ditto.
5433 * config/m88k/tm-cxux.h: Ditto.
5434 * config/m88k/nm-cxux.h: Ditto.
5435 * config/m88k/cxux.mt: Ditto.
5436 * config/m88k/cxux.mh: Ditto.
5438 2001-03-08 Andrew Cagney <ac131313@redhat.com>
5440 * Makefile.in: Delete rules for obsolete files.
5442 Thu Mar 8 15:43:40 2001 David Taylor <taylor@redhat.com>
5444 * stack.c (parse_frame_specification): For one argument case,
5445 handle the situation where the argument is an integer, not an
5446 address -- arguably the most common case. This matters on
5447 targets where pointers and addresses are different.
5449 2001-03-08 Andrew Cagney <ac131313@redhat.com>
5451 * TODO: Revise 5.1 list. Delete PARAMS task. Add coding standard
5452 review. Clarify GNU/LINUX/sparc. Move other tasks to 5.2 or
5455 2001-03-07 Andrew Cagney <ac131313@redhat.com>
5457 * TODO (GDB 5.1 Known Problems): Document problem of building GDB
5458 with SID on Solaris 8.
5460 2001-03-07 Mark Kettenis <kettenis@gnu.org>
5462 * defs.h: Provide prototypes for floatformat_is_negative,
5463 floatformat_is_nan and floatformat_mantissa.
5464 * utils.c: Include "gdb_assert.h".
5465 (floatformat_is_negative): New function.
5466 (floatformat_is_nan): New function.
5467 (floatformat_mantissa): New function.
5468 * valprint.c: Include "floatformat.h".
5469 (print_floating): Get rid of the Linux-specific
5470 TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
5471 help these new functions. Print NaN's in a format conforming to
5474 2001-03-07 Eli Zaretskii <eliz@is.elta.co.il>
5476 * top.c (init_main): Make `set history file name' complete on file
5479 2001-03-06 J.T. Conklin <jtc@redback.com>
5481 * Makefile.in (LINTFLAGS): Update to contain all of the macros
5482 which define include paths used when compiling.
5484 * util.c (savestring, msavestring): Change type of length argument.
5485 * defs.h (savestring, msavestring): Update to match.
5487 * symtab.h (decode_line_1): Removed declaration.
5489 * symfile.c (#include <assert.h>): Removed.
5491 * arch-utils.c (#include <ctype.h>): Removed.
5492 * c-typeprint.c: Likewise.
5493 * dbxread.c: Likewise.
5494 * gdbtypes.c: Likewise.
5495 * target.c: Likewise.
5496 * os9kread.c: Likewise.
5498 * c-valprint.c (#include "demangle.h"): Removed.
5499 * ch-typeprint.c: Likewise.
5501 * f-typeprint.c: Likewise.
5502 * f-valprint.c: Likewise.
5503 * m2-typeprint.c: Likewise.
5504 * typeprint.c: Likewise.
5505 * p-typeprint.c: Likewise.
5506 * valarith.c: Likewise.
5507 * valprint.c: Likewise.
5509 * m2-typeprint.c (#include "gdb_string.h"): Removed.
5510 * nlmread.c: Likewise.
5512 * mdebugread.c (#include "gdb-stabs.h"): Removed.
5513 * minsyms.c: Likewise.
5514 * mipsread.c: Likewise.
5515 * nlmread.c: Likewise.
5517 * m2-typeprint.c (#include "obstack.h"): Removed.
5518 * m2-valprint.c: Likewise.
5520 * event-loop.c (#include <setjmp.h>): Removed.
5522 2001-03-06 Stan Shebs <shebs@apple.com>
5524 * MAINTAINERS: Remove self from specific maintenance domains
5525 (macos, gdbserver, documentation, testsuite).
5527 2001-03-06 Kevin Buettner <kevinb@redhat.com>
5529 * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
5530 a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
5531 annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
5532 arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
5533 ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
5534 breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
5535 c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
5536 ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
5537 cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
5538 cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
5539 cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
5540 coff-solib.h, coffread.c, command.h, complaints.c,
5541 complaints.h, completer.c, completer.h,
5542 config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
5543 config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
5544 config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
5545 config/alpha/nm-linux.h, config/alpha/nm-osf.h,
5546 config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
5547 config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
5548 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
5549 config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
5550 config/arm/nm-linux.h, config/arm/tm-arm.h,
5551 config/arm/tm-embed.h, config/d10v/tm-d10v.h,
5552 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5553 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5554 config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
5555 config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
5556 config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
5557 config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
5558 config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
5559 config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
5560 config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
5561 config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
5562 config/i386/tm-fbsd.h, config/i386/tm-i386.h,
5563 config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
5564 config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
5565 config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
5566 config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
5567 config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
5568 config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
5569 config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
5570 config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
5571 config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
5572 config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
5573 config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
5574 config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
5575 config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
5576 config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
5577 config/i386/xm-linux.h, config/i386/xm-nbsd.h,
5578 config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
5579 config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
5580 config/i960/tm-i960.h, config/i960/tm-mon960.h,
5581 config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
5582 config/ia64/nm-aix.h, config/ia64/nm-linux.h,
5583 config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
5584 config/ia64/tm-linux.h, config/ia64/xm-aix.h,
5585 config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
5586 config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
5587 config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
5588 config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
5589 config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
5590 config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
5591 config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
5592 config/m68k/tm-isi.h, config/m68k/tm-linux.h,
5593 config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
5594 config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
5595 config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
5596 config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
5597 config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
5598 config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
5599 config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
5600 config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
5601 config/m68k/xm-mpw.h, config/m68k/xm-news.h,
5602 config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
5603 config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
5604 config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
5605 config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
5606 config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
5607 config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
5608 config/mips/nm-irix3.h, config/mips/nm-irix4.h,
5609 config/mips/nm-irix5.h, config/mips/nm-mips.h,
5610 config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
5611 config/mips/tm-embed.h, config/mips/tm-embed64.h,
5612 config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
5613 config/mips/tm-irix3.h, config/mips/tm-irix5.h,
5614 config/mips/tm-mips.h, config/mips/tm-mips64.h,
5615 config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
5616 config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
5617 config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
5618 config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
5619 config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
5620 config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
5621 config/mips/xm-irix4.h, config/mips/xm-irix5.h,
5622 config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
5623 config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
5624 config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
5625 config/mn10300/tm-mn10300.h, config/nm-gnu.h,
5626 config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
5627 config/nm-sysv4.h, config/none/nm-none.h,
5628 config/none/tm-none.h, config/none/xm-none.h,
5629 config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
5630 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
5631 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
5632 config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
5633 config/pa/nm-hppab.h, config/pa/nm-hppah.h,
5634 config/pa/nm-hppao.h, config/pa/tm-hppa.h,
5635 config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
5636 config/pa/xm-hppab.h, config/pa/xm-hppah.h,
5637 config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
5638 config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
5639 config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
5640 config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
5641 config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
5642 config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
5643 config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
5644 config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
5645 config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
5646 config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
5647 config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
5648 config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
5649 config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
5650 config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
5651 config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
5652 config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
5653 config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
5654 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
5655 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
5656 config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
5657 config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
5658 config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
5659 config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
5660 config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
5661 config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
5662 core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
5663 cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
5664 dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
5665 delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
5666 dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
5667 elfread.c, environ.c, environ.h, eval.c, event-loop.c,
5668 event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
5669 f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
5670 fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
5671 gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
5672 gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
5673 gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
5674 gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
5675 gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
5676 gdbserver/low-sim.c, gdbserver/low-sparc.c,
5677 gdbserver/low-sun3.c, gdbserver/remote-utils.c,
5678 gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
5679 gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
5680 gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
5681 hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
5682 hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
5683 hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
5684 i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
5685 i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
5686 i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
5687 inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
5688 irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
5689 jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
5690 kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
5691 linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
5692 m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
5693 m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
5694 m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
5695 mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
5696 mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
5697 mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
5698 mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
5699 monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
5700 nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
5701 ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
5702 op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
5703 pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
5704 ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
5705 ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
5706 proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
5707 rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
5708 regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
5709 remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
5710 remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
5711 remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5712 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
5713 remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
5714 remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
5715 rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
5716 scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
5717 ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
5718 sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
5719 solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
5720 source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
5721 sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
5722 standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
5723 symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
5724 symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
5725 tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
5726 typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
5727 ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
5728 valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
5729 vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
5730 vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
5731 vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
5732 wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
5733 xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
5736 2001-03-05 Kevin Buettner <kevinb@redhat.com>
5738 * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
5739 HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
5741 * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
5742 pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
5743 (sys/fault.h, sys/select.h): Test for presence of these
5745 (ia64-*-aix*): Define NEW_PROC_API for this host.
5746 * configure: Regenerate.
5747 * config.in: Regenerate.
5749 * configure.host (ia64-*-aix*): New host.
5750 * configure.tgt (ia64-*-aix*): New target.
5752 2001-03-05 Andrew Cagney <ac131313@redhat.com>
5754 * TODO (GDB 5.1 Known Problems): Document z8k as broken.
5756 Mon Mar 5 11:56:09 2001 Christopher Faylor <cgf@cygnus.com>
5758 * wince.c: Change realloc to xrealloc throughout.
5759 (handle_load_dll): Use void * rather than PTR in argument.
5761 2001-03-04 Andrew Cagney <ac131313@redhat.com>
5763 * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
5764 * ocd.c (ocd_xfer_memory): Ditto.
5765 * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
5766 * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
5767 buildable with ,-Werror.
5769 * Makefile.in (symfile_h): Define.
5770 (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
5771 * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
5772 * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
5775 * dsrec.c (make_srec): Fix internal_error fmt arg.
5776 * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
5778 2001-03-03 Kevin Buettner <kevinb@redhat.com>
5780 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
5783 2001-03-02 Andrew Cagney <ac131313@redhat.com>
5785 * MAINTAINERS (paper trail): Update.
5787 * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
5789 2001-03-02 Andrew Cagney <ac131313@redhat.com>
5791 From 2001-03-01 Tom Rix <trix@redhat.com>:
5792 * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
5793 parameter to mn10200_analyze_prologue.
5795 * config/mn10200/tm-mn10200.h: Include "regcache.h".
5796 * MAINTAINERS: Document that mn10200-elf target is buildable.
5798 2001-03-02 Kevin Buettner <kevinb@redhat.com>
5800 * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
5802 * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
5803 (MONTEREY): Don't define.
5806 2001-03-02 Matt Hiller <hiller@redhat.com>
5808 * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
5810 2001-03-02 Kevin Buettner <kevinb@redhat.com>
5812 * sparc-nat.c (sparc-nat.c): Don't include self.
5814 2001-03-01 J.T. Conklin <jtc@redback.com>
5816 * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
5817 if __CYGWIN32__ is set from here.
5818 * config/i386/xm-cygwin.h: To here.
5819 * config/powerpc/xm-cygwin.h: To here.
5821 * i386-stub.c (handle_exception): Use 'T' response packet.
5823 2001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
5825 * m32r-tdep.c: Fix cut and paste error in comment.
5827 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
5829 * symtab.c (print_msymbol_info): Print addresses by portable method
5830 longest_local_hex_string_custom. Allow for 64-bit addresses.
5832 2001-03-01 J.T. Conklin <jtc@redback.com>
5834 * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
5835 (MAX_OF_TYPE): Wrap macro definition in parenthesis.
5836 (MIN_OF_TYPE): Likewise.
5838 * memattr.h (mem_access_mode): Removed extraneous trailing comma.
5840 2001-03-01 Andrew Cagney <ac131313@redhat.com>
5842 * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
5843 * os9kread.c (os9k_process_one_symbol): Add assert to detect
5844 ``loses if sizeof (char *) > sizeof (int)''.
5846 2001-03-01 Andrew Cagney <ac131313@redhat.com>
5848 * gdb_assert.h: Document pragmatics behind gdb_assert's case.
5850 2001-03-01 Andrew Cagney <ac131313@redhat.com>
5852 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
5856 2001-03-01 Andrew Cagney <ac131313@redhat.com>
5858 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
5861 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
5863 * printcmd.c (print_address_numeric): Update comments to refer
5864 to sizeof addr, not sizeof pointer.
5865 (x_command): Remove needless whitespace (shorten long line).
5867 * breakpoint.c (print_one_breakpoint): Formatting clean-up.
5868 (read_memory_nobpt): Ditto.
5869 (ep_is_catchpoint): Ditto.
5870 (ep_is_shlib_catchpoint): Ditto.
5871 (ep_is_exception_catchpoint): Ditto.
5872 (describe_other_breakpoints): Ditto.
5874 Wed Feb 28 20:37:36 2001 Andrew Cagney <ac131313@redhat.com>
5876 * regcache.h (register_valid): Fix comment documenting valid
5879 Tue Feb 27 23:56:23 2001 Andrew Cagney <ac131313@redhat.com>
5881 From Steven Johnson:
5882 * regcache.h: New file.
5884 * value.h (read_register_bytes, read_register_gen)
5885 (write_register_gen, write_register_bytes)
5886 (read_register, read_register_pid)
5887 (read_signed_register, read_signed_register_pid)
5888 (write_register, write_register_pid)
5889 (register_cached, set_register_cached)
5890 (register_changed, register_buffer)
5891 (registers_changed, supply_register): Move declaration from here.
5892 * regcache.h: To here.
5893 * gdbcore.h (registers_fetched): Ditto.
5894 * inferior.h (registers, registers_valid): Ditto.
5896 * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
5897 generic_target_write_pc, write_pc_pid, write_pc,
5898 generic_target_read_sp, read_sp, generic_target_write_sp,
5899 write_sp, generic_target_read_fp, read_fp,
5900 generic_target_write_fp, write_fp): Add note that these functions
5901 will be moved from this file.
5903 * a29k-tdep.c: Include "regcache.h".
5904 * a68v-nat.c: Ditto.
5905 * abug-rom.c: Ditto.
5906 * alpha-nat.c: Ditto.
5907 * alpha-tdep.c: Ditto.
5908 * alphabsd-nat.c: Ditto.
5909 * arc-tdep.c: Ditto.
5910 * arm-linux-nat.c: Ditto.
5911 * arm-linux-tdep.c: Ditto.
5912 * arm-tdep.c: Ditto.
5913 * blockframe.c: Ditto.
5914 * core-aout.c: Ditto.
5915 * core-sol2.c: Ditto.
5917 * cpu32bug-rom.c: Ditto.
5918 * cxux-nat.c: Ditto.
5919 * d10v-tdep.c: Ditto.
5920 * d30v-tdep.c: Ditto.
5921 * dbug-rom.c: Ditto.
5922 * dink32-rom.c: Ditto.
5923 * dve3900-rom.c: Ditto.
5925 * fr30-tdep.c: Ditto.
5927 * go32-nat.c: Ditto.
5928 * h8300-tdep.c: Ditto.
5929 * h8500-tdep.c: Ditto.
5930 * hp300ux-nat.c: Ditto.
5931 * hppa-tdep.c: Ditto.
5932 * hppab-nat.c: Ditto.
5933 * hppah-nat.c: Ditto.
5934 * hppam3-nat.c: Ditto.
5935 * hpux-thread.c: Ditto.
5936 * i386-linux-nat.c: Ditto.
5937 * i386-linux-tdep.c: Ditto.
5938 * i386-tdep.c: Ditto.
5939 * i386aix-nat.c: Ditto.
5940 * i386b-nat.c: Ditto.
5941 * i386bsd-nat.c: Ditto.
5942 * i386gnu-nat.c: Ditto.
5943 * i386ly-tdep.c: Ditto.
5944 * i386m3-nat.c: Ditto.
5945 * i386mach-nat.c: Ditto.
5946 * i386nbsd-nat.c: Ditto.
5947 * i386v4-nat.c: Ditto.
5948 * i387-nat.c: Ditto.
5949 * i387-tdep.c: Ditto.
5950 * i960-tdep.c: Ditto.
5951 * ia64-aix-nat.c: Ditto.
5952 * ia64-linux-nat.c: Ditto.
5953 * ia64-tdep.c: Ditto.
5954 * infptrace.c: Ditto.
5956 * irix4-nat.c: Ditto.
5957 * irix5-nat.c: Ditto.
5959 * lin-thread.c: Ditto.
5960 * lynx-nat.c: Ditto.
5962 * m32r-rom.c: Ditto.
5963 * m32r-tdep.c: Ditto.
5964 * m68hc11-tdep.c: Ditto.
5965 * m68k-tdep.c: Ditto.
5966 * m68klinux-nat.c: Ditto.
5967 * m68knbsd-nat.c: Ditto.
5968 * m68knbsd-tdep.c: Ditto.
5969 * m88k-nat.c: Ditto.
5970 * m88k-tdep.c: Ditto.
5972 * mcore-rom.c: Ditto.
5973 * mcore-tdep.c: Ditto.
5974 * mi/mi-main.c: Ditto.
5975 * mips-nat.c: Ditto.
5976 * mips-tdep.c: Ditto.
5977 * mipsm3-nat.c: Ditto.
5978 * mipsv4-nat.c: Ditto.
5979 * mn10200-tdep.c: Ditto.
5980 * mn10300-tdep.c: Ditto.
5982 * ns32km3-nat.c: Ditto.
5983 * ns32knbsd-nat.c: Ditto.
5985 * pa64solib.c: Ditto.
5987 * ppc-linux-nat.c: Ditto.
5988 * ppc-linux-tdep.c: Ditto.
5989 * ppcbug-rom.c: Ditto.
5990 * ppcnbsd-nat.c: Ditto.
5991 * ptx4-nat.c: Ditto.
5992 * regcache.c: Ditto.
5993 * remote-adapt.c: Ditto.
5994 * remote-array.c: Ditto.
5995 * remote-bug.c: Ditto.
5996 * remote-e7000.c: Ditto.
5997 * remote-eb.c: Ditto.
5998 * remote-es.c: Ditto.
5999 * remote-est.c: Ditto.
6000 * remote-hms.c: Ditto.
6001 * remote-mips.c: Ditto.
6002 * remote-mm.c: Ditto.
6003 * remote-nindy.c: Ditto.
6004 * remote-os9k.c: Ditto.
6005 * remote-rdi.c: Ditto.
6006 * remote-rdp.c: Ditto.
6007 * remote-sds.c: Ditto.
6008 * remote-sim.c: Ditto.
6009 * remote-st.c: Ditto.
6010 * remote-udi.c: Ditto.
6011 * remote-utils.c: Ditto.
6012 * remote-vx.c: Ditto.
6013 * remote-vx29k.c: Ditto.
6014 * remote-vx68.c: Ditto.
6015 * remote-vx960.c: Ditto.
6016 * remote-vxmips.c: Ditto.
6017 * remote-vxsparc.c: Ditto.
6019 * rom68k-rom.c: Ditto.
6020 * rs6000-nat.c: Ditto.
6021 * rs6000-tdep.c: Ditto.
6024 * sol-thread.c: Ditto.
6025 * solib-svr4.c: Ditto.
6026 * somsolib.c: Ditto.
6027 * sparc-nat.c: Ditto.
6028 * sparc-tdep.c: Ditto.
6029 * sparcl-tdep.c: Ditto.
6030 * sparclet-rom.c: Ditto.
6031 * sun3-nat.c: Ditto.
6032 * sun386-nat.c: Ditto.
6033 * symm-nat.c: Ditto.
6035 * thread-db.c: Ditto.
6037 * tic80-tdep.c: Ditto.
6038 * tracepoint.c: Ditto.
6039 * ultra3-nat.c: Ditto.
6040 * umax-xdep.c: Ditto.
6041 * uw-thread.c: Ditto.
6042 * v850-tdep.c: Ditto.
6045 * w65-tdep.c: Ditto.
6046 * w89k-rom.c: Ditto.
6047 * win32-nat.c: Ditto.
6049 * z8k-tdep.c: Ditto.
6051 2001-02-28 Matt Hiller <hiller@redhat.com>
6053 * MAINTAINERS: Add Matt Hiller to Write After Approval list.
6055 2001-02-27 Matt Hiller <hiller@redhat.com>
6057 * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
6058 (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
6059 mn10300_stab_reg_to_regnum.
6061 Tue Feb 27 16:56:13 2001 David Taylor <taylor@redhat.com>
6063 * symtab.c (search_symbols): Fix off by one error in test for
6066 2001-02-23 Andrew Cagney <ac131313@redhat.com>
6068 * config/sparc/sp64linux.mt: New file.
6069 * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
6070 * configure.host: Recognize sparc64-*-linux* as a linux host.
6072 From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
6073 * config/sparc/tm-sp64linux.h: New file.
6075 2001-02-24 Kevin Buettner <kevinb@redhat.com>
6077 * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
6078 with call to internal_error().
6079 * dbxread.c (process_one_symbol): Likewise.
6080 * exec.c (build_section_table, xfer_memory): Likewise.
6081 * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
6083 * hpread.c (hpread_type_translate, hpread_read_array_type)
6084 (hpread_type_lookup): Likewise.
6085 * i386-tdep.c (gdb_print_insn_i386): Likewise.
6086 * i960-tdep.c (mem): Likewise
6087 * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
6088 * infptrace.c (child_resume): Likewise.
6089 * infttrace.c (_initialize_infttrace): Likewise.
6090 * language.c (binop_result_type, add_language): Likewise.
6091 * lynx-nat.c (store_inferior_registers): Likewise.
6092 * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
6093 * mdebugread.c (parse_partial_symbols): Likewise.
6094 * monitor.c (monitor_printf_noecho, monitor_printf)
6095 (monitor_dump_regs): Likewise.
6096 * ocd.c (stu_put_packet): Likewise.
6097 * printcmd.c (decode_format, print_scalar_formatted): Likewise.
6098 * remote-bug.c (bug_open): Likewise.
6099 * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
6100 * remote-es.c (es1800_read_bytes): Likewise.
6101 * remote-mips.c (common_breakpoint): Likewise.
6102 * remote-rdp.c (send_rdp): Likewise.
6103 * remote-sds.c (putmessage): Likewise.
6104 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
6106 * sparcl-tdep.c (sparclite_download): Likewise.
6107 * symtab.c (lookup_partial_symbol): Likewise.
6108 * target.c (push_target, pop_target, initialize_targets): Likewise.
6109 * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
6111 * valprint.c (print_decimal, print_longest, print_longest)
6112 (strcat_longest): Likewise.
6113 * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
6114 * xmodem.c (xmodem_send_packet): Likewise.
6115 * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
6116 * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
6117 * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
6118 (STORE_RETURN_VALUE): Likewise.
6119 * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
6120 * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
6121 * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
6124 2001-02-23 Andrew Cagney <ac131313@redhat.com>
6126 * CONTRIBUTE: Document how to cite a problem report.
6127 * TODO: Note need to replace CONTRIBUTE with generated file.
6129 * CONTRIBUTE: Mention that patches do not need to include the
6130 generated files gdbarch.h and gdbarch.c.
6132 2001-02-21 Andrew Cagney <ac131313@redhat.com>
6134 * value.h (get_saved_register): Move from here.
6137 2001-02-21 Kevin Buettner <kevinb@redhat.com>
6139 * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
6140 (in_solib_dynsym_resolve_code): Add declaration.
6141 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
6142 in_solib_dynsym_resolve_code() rather than
6143 in_svr4_dynsym_resolve_code(). Also, removed the ifdefs
6144 which caused this macro to only be defined when
6145 SVR4_SHARED_LIBS is defined.
6146 * solib.c (in_solib_dynsym_resolve_code): New function.
6147 * solist.h (struct target_so_ops): Add new member
6148 in_dynsym_resolve_code.
6149 * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
6150 in_svr4_dynsym_resolve_code. Also, made static.
6151 (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
6152 member in aix5_so_ops.
6153 * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
6154 in_svr4_dynsym_resolve_code. Also, added second version
6155 of this function which will be used when SVR4_SHARED_LIBS
6157 (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
6158 member in svr4_so_ops.
6160 * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
6161 config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
6162 config/ia64/xm-aix.h: New files.
6163 * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
6164 (ia64_aix_sigcontext_register_address): New declaration.
6165 (ia64_gdbarch_init): Provide for initialization of
6166 sigcontext_register_address member of struct tdep when
6167 on target is detected to be running AIX.
6168 * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
6171 2001-02-20 Kevin Buettner <kevinb@redhat.com>
6173 * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
6174 * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
6175 for thread support instead of linux-thread.o and lin-thread.o.
6176 * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
6177 ATTACH_LWP): Define to use the following lin-lwp.c functions...
6178 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
6179 lin_lwp_attach_lwp): Declare.
6181 2001-02-20 Andrew Cagney <ac131313@redhat.com>
6183 * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
6186 2001-02-20 Kevin Buettner <kevinb@redhat.com>
6188 * solib-aix5.c (solib-svr4.h): Remove include.
6189 (solib_break_names): Delete names which aren't actually
6191 (bkpt_names): Remove.
6192 (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
6193 to STREQ() with equivalent calls to strcmp().
6194 (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
6195 aix5_solib_create_inferior_hook): Revise comments.
6196 (enable_break): Remove old ``bkpt_names'' code.
6198 2001-02-19 Andrew Cagney <ac131313@redhat.com>
6200 * Makefile.in (SFILES): Add frame.c .
6201 (COMMON_OBS): Add frame.o .
6202 (frame.o): New target.
6204 * frame.c (find_saved_register):
6205 (default_get_saved_register):
6206 (get_saved_register):
6207 (read_relative_register_raw_bytes_for_frame):
6208 (read_relative_register_raw_bytes): Moved to here.
6209 * regcache.c: From here.
6211 2001-02-20 Kevin Buettner <kevinb@redhat.com>
6213 * solib-aix5.c: New file.
6215 2001-02-20 Martin M. Hunt <hunt@redhat.com>
6217 * solib.c (info_sharedlibrary_command): Don't assume pointers
6218 are the same size of long, call longest_local_hex_string_custom().
6220 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
6221 extract_signed_integer() should be called instead of
6224 2001-02-20 Martin M. Hunt <hunt@redhat.com>
6226 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
6228 2001-02-19 Andrew Cagney <ac131313@redhat.com>
6230 Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
6231 * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
6232 then floating point registers are 8 bytes.
6234 2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
6236 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
6237 accomodate 64-bit addresses.
6239 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6241 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
6242 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
6243 lookup_symbol, when trying to find a symbol with a mangled name,
6244 to avoid infinite recursion.
6246 2001-02-18 Andrew Cagney <ac131313@redhat.com>
6248 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
6250 2001-02-19 Jonathan Larmour <jlarmour@redhat.com>
6252 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
6253 (save_prologue_cache): Ditto.
6255 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6257 From: innadadadavida@yahoo.com:
6258 * partial-stab.h (switch): Check that pst is not null
6259 before dereferencing it.
6261 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6263 From Andrew Cagney <cagney@b1.cygnus.com>:
6264 * symfile.c (add_symbol_file_command): Always initialize
6265 my_cleanup using a NULL cleanup.
6267 2001-02-19 Eli Zaretskii <eliz@is.elta.co.il>
6269 * demangle.c (demangling_style_names): New variable.
6270 (_initialize_demangler): Fill demangling_style_names with the
6271 names of known demangling styles from libiberty_demanglers[]. Use
6272 add_set_enum_cmd instead of add_set_cmd, to get completion on
6273 demangling style names.
6275 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
6276 file-name completion.
6278 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
6280 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
6281 `solib-absolute-prefix'.
6283 * tracepoint.c (_initialize_tracepoint): Ditto for
6286 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
6288 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
6289 file-name completion.
6291 * infcmd.c (_initialize_infcmd): Make the following commands use
6292 the file-name completer: `tty', `args', `path', `paths', and
6295 2001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
6297 * go32-nat.c: Include i387-nat.h.
6298 (fetch_register): New function, uses some of the guts of
6299 go32_fetch_registers and calls i387_supply_register.
6300 (go32_fetch_registers): Most of the code moved into
6301 fetch_register. Use i387_supply_fsave.
6302 (store_register): Use i387_fill_fsave instead of custom code.
6303 (go32_store_registers): Use i387_fill_fsave.
6305 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
6307 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
6309 * completer.c (gdb_completer_file_name_break_characters): Remove
6310 slash from file-name break characters.
6311 [__MSDOS__]: Special definition for DOS/Windows file names.
6312 (line_completion_function): When completing on file names, bump
6313 `p' to the first file-name constituent character of `word', before
6314 invoking the completer.
6316 2001-02-17 Mark Kettenis <kettenis@gnu.org>
6318 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
6319 consistently for parameter names. Fix comments accordingly.
6320 (i387_supply_register): New function.
6321 (i387_supply_fsave): Implement using i387_supply_register.
6322 * i387-nat.h: Use regnum instead of regno consistently for
6323 parameter names. Fix comments accordingly.
6324 (i387_supply_register): New prototype.
6326 2001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
6328 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
6329 instead of TARGET_PTR_BIT (to support Harvard architectures).
6331 2001-02-16 Andrew Cagney <ac131313@redhat.com>
6333 From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
6334 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
6335 argument to parameter list and to call in order to conform to
6336 to_xfer_memory field of struct target_ops.
6338 2001-02-12 Michael Chastain <chastain@redhat.com>
6340 * somsolib.c (som_solib_add_solib_objfile): Do not use
6341 section relocation feature of syms_from_objfile. Do my own
6342 section relocation, offsetting each section of the som by
6343 either text_addr - text_link_addr or data_start.
6345 2001-02-16 Andrew Cagney <ac131313@redhat.com>
6347 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
6349 2001-02-16 Andrew Cagney <ac131313@redhat.com>
6351 * MAINTAINERS (paper trail): Update.
6353 2001-02-16 Mark Kettenis <kettenis@gnu.org>
6355 * target.h (target_fetch_registers): Fix comment.
6357 2001-02-15 Andrew Cagney <ac131313@redhat.com>
6359 * f-exp.y: Include <ctype.h>.
6360 (parse_number): Ensure that ``i'' is always initialized.
6362 2001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
6364 * MAINTAINERS: Add myself to paper trail section.
6366 2001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6368 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
6369 * configure, config.in: Regenerate.
6370 * corelow.c: Include <sys/file.h> if present.
6372 2001-02-14 Andrew Cagney <ac131313@redhat.com>
6374 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
6375 declare when have SIGTTOU.
6377 2001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
6379 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
6381 2001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
6383 * MAINTAINERS: Update my email address.
6385 2001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6387 * NEWS: Document that "info symbol" works with COFF debug info and
6390 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
6391 symbols whose SYMBOL_BFD_SECTION is NULL.
6393 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6395 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
6396 * xcoffsolib.c (xcoff_solib_address): Renamed from
6397 pc_load_segment_name. Return NULL if address is not in a shared
6398 library. Cleanup shared library name construction, using xasprintf.
6399 Format shared library member names consistent with format in exec.c.
6400 (solib_info): Format shared library member names consistent with
6402 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
6403 using xcoff_solib_address for PC_SOLIB definition.
6404 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
6407 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6409 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
6410 with xmalloc calls and cleanups.
6412 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6414 * rs6000-nat.c (child_xfer_memory): Add missing parameter
6415 'struct mem_attrib *' required by 2001-01-23 change.
6417 2001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
6419 Updates to "make TAGS":
6420 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
6421 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
6423 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
6425 2001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
6427 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
6429 Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
6431 From Dean Luick <luick@cray.com>:
6432 * defs.h (continuation): Remove unused global variable.
6434 Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
6436 * configure.tgt: Remove references to convex, pyramid, altos and
6438 * configure.host: Ditto.
6439 * MAINTAINERS: Ditto.
6442 * tahoe-tdep.c: Delete obsolete file.
6443 * pyr-xdep.c: Ditto.
6444 * pyr-tdep.c: Ditto.
6445 * convex-tdep.c: Ditto.
6446 * convex-xdep.c: Ditto.
6447 * config/tahoe/xm-tahoe.h: Ditto.
6448 * config/tahoe/tm-tahoe.h: Ditto.
6449 * config/tahoe/tahoe.mt: Ditto.
6450 * config/tahoe/tahoe.mh: Ditto.
6451 * config/pyr/xm-pyr.h: Ditto.
6452 * config/pyr/tm-pyr.h: Ditto.
6453 * config/pyr/pyramid.mt: Ditto.
6454 * config/pyr/pyramid.mh: Ditto.
6455 * config/m68k/xm-altos.h: Ditto.
6456 * config/m68k/tm-altos.h: Ditto.
6457 * config/m68k/altos.mt: Ditto.
6458 * config/m68k/altos.mh: Ditto.
6459 * config/convex/xm-convex.h: Ditto.
6460 * config/convex/tm-convex.h: Ditto.
6461 * config/convex/convex.mt: Ditto.
6462 * config/convex/convex.mh: Ditto.
6463 * config/convex/Convex.notes: Ditto.
6464 * config/arm/xm-arm.h: Ditto.
6465 * config/arm/nm-arm.h: Ditto.
6466 * config/arm/arm.mt: Ditto.
6467 * config/arm/arm.mh: Ditto.
6468 * arm-convert.s: Ditto.
6469 * arm-xdep.c: Ditto.
6470 * altos-xdep.c: Ditto.
6472 Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
6474 * defs.h (internal_error, internal_verror): Add __FILE__ and
6476 * utils.c (internal_error, internal_verror): Update.
6478 * v850-tdep.c: Update calls to internal_error.
6484 * symm-nat.c: Ditto.
6485 * sparc-tdep.c: Ditto.
6488 * rs6000-tdep.c: Ditto.
6489 * rs6000-nat.c: Ditto.
6491 * remote-vx.c: Ditto.
6492 * remote-sim.c: Ditto.
6493 * remote-mips.c: Ditto.
6494 * regcache.c: Ditto.
6495 * objfiles.h: Ditto.
6496 * objfiles.c: Ditto.
6497 * mn10300-tdep.c: Ditto.
6498 * mips-tdep.c: Ditto.
6500 * m68k-tdep.c: Ditto.
6502 * language.c: Ditto.
6503 * infptrace.c: Ditto.
6504 * inferior.h: Ditto.
6506 * ia64-tdep.c: Ditto.
6507 * i386-tdep.c: Ditto.
6508 * i386-linux-nat.c: Ditto.
6509 * hppah-nat.c: Ditto.
6510 * go32-nat.c: Ditto.
6514 * event-loop.c: Ditto.
6515 * dwarf2read.c: Ditto.
6517 * d30v-tdep.c: Ditto.
6518 * d10v-tdep.c: Ditto.
6519 * cli/cli-setshow.c: Ditto.
6520 * cli/cli-script.c: Ditto.
6522 * breakpoint.c: Ditto.
6524 * arch-utils.c: Ditto.
6525 * a29k-tdep.c: Ditto.
6526 * gdb_assert.h: Ditto.
6527 * gdbarch.sh: Ditto.
6528 * gdbarch.h, gdbarch.c: Re-generate.
6530 2001-02-07 Andrew Cagney <ac131313@redhat.com>
6532 From Mark Kettenis <kettenis@gnu.org>:
6533 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
6535 2001-02-07 Andrew Cagney <ac131313@redhat.com>
6537 * remote-sim.c (dump_mem): Cleanup printf format argument.
6538 * MAINTAINERS: Update, mn10300-elf now builds.
6540 2001-02-07 Mark Kettenis <kettenis@gnu.org>
6542 * event-top.c: Remove duplicate #include <signal.h>.
6544 2001-02-06 Andrew Cagney <ac131313@redhat.com>
6546 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
6548 (save_inferior_pid): Restore the PID from that tempoary
6549 buffer. Delete the buffer.
6550 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
6552 2001-02-06 Andrew Cagney <ac131313@redhat.com>
6554 * MAINTAINERS: Add ``The Obvious Fix Rule''.
6556 2001-02-06 Andrew Cagney <ac131313@redhat.com>
6558 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
6560 2001-02-06 Andrew Cagney <ac131313@cygnus.com>
6562 * gdbarch.sh: Include "gdb_assert.h".
6563 (struct gdbarch): Change ``nr_data'' to unsigned.
6564 (alloc_gdbarch_data, free_gdbarch_data): New functions.
6565 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
6566 architecture vector.
6567 (struct gdbarch_data, struct gdbarch_data_registration): Move init
6568 method to gdbarch_data. Add free method, make index unsigned.
6569 (struct gdbarch_data_registry): Make nr unsigned.
6570 (register_gdbarch_data): Add free parameter. Store in
6572 (init_gdbarch_data): Use set_gdbarch_data.
6573 (set_gdbarch_data): New function.
6575 * gdbarch.h, gdbarch.c: Re-generate.
6577 2001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6579 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
6580 fprintf_filtered with correct arguments.
6582 2001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
6583 Submitted by Paul Hilfinger (hilfingr@gnat.com)
6584 and Andrei Petrov (and@genesyslab.com).
6585 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
6586 must be allocated dynamically, since these are no longer constants.
6588 * regcache.c: Ditto.
6590 * sol-thread.c: Ditto.
6592 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
6593 work-around for a missing Sun header file in solaris for sparc64.
6595 2001-02-04 Philip Blundell <philb@gnu.org>
6597 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
6598 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
6599 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
6600 GET_THREAD_SIGNALS): Define.
6601 * arm-linux-nat.c (fill_gregset): Correct type of argument.
6602 (supply_gregset): Likewise.
6603 (fill_fpregset): Likewise.
6604 (supply_fpregset): Likewise.
6606 Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
6608 * valops.c (value_cast): If casting a scalar to a pointer, do not
6609 issue a message about truncation unless it exceeds the length of
6610 an address, not the length of a pointer. This is because what the
6611 user gives us is an address, not a pointer, and we will ultimately
6612 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
6613 to a pointer. This allows things like "print *(int *)0x01000234"
6614 to work without generating a misleading message on a target having
6615 two byte pointers and four byte addresses.
6617 2001-02-05 Christopher Faylor <cgf@cygnus.com>
6619 * win32-nat.c: Change PTR to void * throughout.
6621 2001-02-05 J.T. Conklin <jtc@redback.com>
6623 * signals.h: Removed.
6624 * event-top.c (#include <signal.h>): Changed from signals.h.
6625 * inflow.c: Likewise.
6626 * mac-xdep.c: Likewise.
6627 * ser-pipe.c: Likewise.
6628 * ser-tcp.c: Likewise.
6629 * standalone.c: Likewise.
6631 * utils.c: Likewise.
6632 * Makefile.in: Removed signals.h from dependencies.
6634 2001-02-05 Christopher Faylor <cgf@cygnus.com>
6636 Change suggested by Dean Luick <luick@cray.com>
6637 * inferior.h (step_over_calls_kind): Remove trailing comma from
6639 (step_over_calls): Declare as extern rather than global.
6641 2001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6643 * sh-tdep.c: Update copyright.
6644 (sh_extract_return_value): Rewrite.
6645 (sh3e_sh4_extract_return_value): New function.
6646 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
6647 version of the function for sh3e and sh4 CPUs.
6649 2001-02-05 Michael Chastain <chastain@redhat.com>
6651 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
6652 to conform with interface change.
6654 2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
6656 * config/djgpp/fnchange.lst: Tweak to make consistent with the
6659 * config/djgpp/djconfig.sh: Use explicit absolute file name when
6662 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
6663 UART_FIFO_WORKS is defined. Otherwise use outportb.
6664 From Francisco Pastor <fpastor.etra-id@etra.es>
6666 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
6667 with target.h's `to_xfer_memory' member.
6669 2001-02-02 J.T. Conklin <jtc@redback.com>
6671 * ppc-bdm.c (#include <signal.h>): Removed.
6672 * remote-array.c: Likewise.
6673 * remote-bug.c: Likewise.
6674 * remote-e7000.c: Likewise.
6675 * remote-mips.c: Likewise.
6676 * remote-os9k.c: Likewise.
6677 * remote-st.c: Likewise.
6678 * remote-udi.c: Likewise.
6679 * remote-vx29k.c: Likewise.
6680 * remote-vx68.c: Likewise.
6681 * remote-vx960.c: Likewise.
6682 * remote-vxmips.c: Likewise.
6683 * remote-vxsparc.c: Likewise.
6685 2001-02-02 John Moore <jmoore@redhat.com>
6687 * remote-utils.h (sr_set_device): Changed free() to xfree() where
6688 appropriate. Also changed Copyright to include 2001.
6689 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
6690 * value.h (value_free): Likewise.
6691 * gdbarch.sh (gdbarch_free): Likewise.
6692 * gdbarch.c, gdbarch.h: Regenerated.
6694 2001-02-02 John Moore <jmoore@redhat.com>
6696 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
6697 xfree(). Also changed Copyright to include 2001.
6699 2001-02-02 J.T. Conklin <jtc@redback.com>
6701 * monitor.c (#include "gdb_wait.h"): Removed.
6703 * ppc-bdm.c: Likewise.
6704 * remote-adapt.c: Likewise.
6705 * remote-array.c: Likewise.
6706 * remote-bug.c: Likewise.
6707 * remote-e7000.c: Likewise.
6708 * remote-eb.c: Likewise.
6709 * remote-es.c: Likewise.
6710 * remote-mips.c: Likewise.
6711 * remote-mm.c: Likewise.
6712 * remote-nindy.c: Likewise.
6713 * remote-os9k.c: Likewise.
6714 * remote-rdi.c: Likewise.
6715 * remote-rdp.c: Likewise.
6716 * remote-sds.c: Likewise.
6717 * remote-sim.c: Likewise.
6718 * remote-st.c: Likewise.
6719 * remote-udi.c: Likewise.
6720 * remote-vx.c: Likewise.
6721 * remote-vx29k.c: Likewise.
6722 * remote-vx68.c: Likewise.
6723 * remote-vx960.c: Likewise.
6724 * remote-vxmips.c: Likewise.
6725 * remote-vxsparc.c: Likewise.
6726 * remote.c: Likewise.
6727 * ser-pipe.c: Likewise.
6728 * ser-unix.c: Likewise.
6729 * Makefile.in: Updated dependencies.
6731 2001-01-31 David Smith <dsmith@redhat.com>
6733 * event-loop.c: Change inclusion of string.h to gdb_string.h and
6734 updated the copyright notice.
6735 * ser-pipe.c: Ditto.
6736 * mi/mi-cmds.c: Ditto.
6737 * mi/mi-console.c: Ditto.
6738 * mi/mi-getopt.c: Ditto.
6739 * mi/mi-parse.c: Ditto.
6741 2001-01-31 David Smith <dsmith@redhat.com>
6743 * MAINTAINERS: Add David Smith to Write After Approval list.
6745 Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
6747 * cli/cli-utils.c (putchar_filtered): Move function from here.
6748 * utils.c (putchar_filtered): To here.
6749 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
6750 * defs.h (putchar_filtered): To here.
6752 Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
6754 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
6755 AC_FUNC_VFORK macro.
6756 * config.in, configure: Re-generate.
6758 * gdb_vfork.h: New file.
6759 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
6760 * fork-child.c (fork_inferior): Ditto.
6762 Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
6764 * defs.h (strsave): Delete declaration.
6765 * utils.c (strsave): Delete definition.
6766 * TODO (strsave): Update
6768 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
6769 * sparcl-tdep.c (sparclite_open): Ditto.
6770 * mips-tdep.c (mips_set_processor_type_command): Ditto.
6771 (_initialize_mips_tdep): Ditto.
6772 * solib.c (solib_open): Ditto.
6773 * symfile.c (add_filename_language): Ditto.
6774 (set_ext_lang_command): Ditto.
6775 * source.c (init_source_path): Ditto.
6777 * sh3-rom.c (sh3_open): Ditto.
6779 * serial.c (serial_open): Ditto.
6780 * remote-mips.c (common_open): Ditto.
6781 * monitor.c (monitor_open): Ditto.
6782 * m32r-rom.c (m32r_upload_command): Ditto.
6783 * infcmd.c (path_command): Ditto.
6784 * f-exp.y (parse_number): Ditto.
6785 * breakpoint.c (create_longjmp_breakpoint): Ditto.
6786 (create_thread_event_breakpoint): Ditto.
6787 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
6788 (_initialize_arc_tdep): Ditto.
6790 Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
6792 * cli/cli-script.c (define_command): Check for a bad hook value in
6795 2001-01-30 J.T. Conklin <jtc@redback.com>
6797 * configure/sh/embed.mt: New file.
6798 * configure/sh/linux.mt: New file.
6799 * configure/sh/sh.mt: Removed.
6800 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
6803 2001-01-29 Michael Chastain <chastain@redhat.com>
6805 * symtab.c (lookup_block_symbol): Use 'namespace' parameter in
6806 symbol comparisons in binary search.
6808 2001-01-27 Christopher Faylor <cgf@cygnus.com>
6810 * win32-nat.c (child_xfer_memory): Add missing argument required by
6813 2001-01-27 Mark Kettenis <kettenis@gnu.org>
6815 * ui-out.c (do_list_end): New function.
6816 (make_cleanup_ui_out_list_end): New function.
6817 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
6818 * stack.c (print_frame) [UI_OUT]: Call
6819 make_cleanup_ui_out_list_end to make sure we mark the end of the
6820 list if we do a non-local exit. At the end of the function,
6821 instead of calling ui_out_list_end directly, let do_cleanups
6824 2001-01-26 Fernando Nasser <fnasser@redhat.com>
6826 Fix double parsing of filenames passed as command line arguments
6827 to GDB (causes weird handling of escape characters).
6828 Also, remove dependencies on the CLI from libgdb.
6829 * call-cmds.h: Remove declaration of exec_file_command().
6830 * gdbcore.h: Remove declaration of exec_file_command().
6831 Add declarations for exec_open() and exec_file_clear().
6832 * symfile.h: Add declarations for symbol_file_add_main() and
6833 symbol_file_clear().
6834 * exec.c (exec_open): New function. Implements to_open for exec
6836 (exec_file_clear): New function. Makes GDB forget about a previously
6837 specified executable file.
6838 (exec_file_attach): Move parsing of arguments from here ...
6839 (exec_file_command): ... to here.
6840 (init_exec_ops): Use exec_open(), not exec_file_command() to
6841 implement to_open for exec targets.
6842 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
6843 with default values. Used when the file name has already been parsed.
6844 (symbol_file_clear): New function. Makes GDB forget about previously
6846 (symbol_file_command): Call the above function instead of inline code.
6847 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
6849 (captured_main): Call exec_file_attach() and symbol_file_add_main()
6850 instead of exec_file_command() and symbol_file_command().
6851 (captured_main): Add comment.
6852 * corefile.c: Include "symfile.h".
6853 (core_file_command): Call symbol_file_add_main() instead of
6854 symbol_file_command().
6855 (reopen_exec_file): Call exec_open() instead of exec_file_command().
6856 * infcmd.c: Include "symfile.h".
6857 (attach_command): Call symbol_file_add_main() instead of
6858 symbol_file_command().
6859 * infrun.c: Remove comment about the inclusion of "symfile.h",
6860 not any longer appropriate.
6861 (follow_exec): Call symbol_file_add_main() instead of
6862 symbol_file_command().
6863 * remote-es.c: Include "symfile.h".
6864 (es1800_load): Call symbol_file_add_main() instead of
6865 symbol_file_command().
6866 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
6867 not any longer appropriate.
6868 (vx-wait): Call symbol_file_add_main() instead of
6869 symbol_file_command().
6870 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
6871 instead of symbol_file_command().
6872 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
6873 symbol_file_add_main() instead of exec_file_command() and
6874 symbol_file_command().
6875 * Makefile.in: Update dependencies.
6877 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
6879 * remote-udi.c (udi_open): Change strdup to xstrdup.
6880 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
6881 Update copyright message.
6882 * varobj.c (delete_variable_1): Likewise.
6884 * gdb_string.h: Remove declaration of strdup. Update copyright
6886 * config/xm-mpw.h: Likewise.
6887 * config/i386/xm-i386mach.h: Likewise.
6888 * config/m68k/xm-apollo68b.h: Likewise.
6889 * config/m68k/xm-hp300bsd.h: Likewise.
6890 * config/rs6000/xm-rs6000.h: Likewise.
6891 * config/vax/xm-vaxult.h: Remove declaration of strdup.
6892 * config/vax/xm-vaxult2.h: Likewise.
6894 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
6896 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
6898 2001-01-25 J.T. Conklin <jtc@redback.com>
6900 * target.c (target_xfer_memory_partial): Return -1 on failure due
6901 to invalid access mode attribute.
6903 2001-01-25 Christopher Faylor <cgf@cygnus.com>
6905 * win32-nat.c (_initialize_core_win32): Prototype correctly.
6907 2001-01-25 Mark Kettenis <kettenis@gnu.org>
6909 * config/alpha/tm-fbsd.h: Update copyright.
6910 (USE_STRUCT_CONVENTION): Define in terms of
6911 alphabsd_use_struct_convention.
6912 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
6913 * alphafbsd-tdep.c: New file.
6915 2001-01-24 Fernando Nasser <fnasser@redhat.com>
6917 * top.c (print_gdb_version): Update Copyright year.
6919 2001-01-24 J.T. Conklin <jtc@redback.com>
6921 * dcache.c (dcache_write_line): Fix typo.
6923 * memattr.c (delete_mem_region): Replace free() with xfree().
6924 (mem_number): Add explicit type.
6926 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
6927 (rw_common): Likewise.
6929 2001-01-24 Fernando Nasser <fnasser@redhat.com>
6931 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
6932 for the inferior program arguments.
6933 (run_command, run_no_args_command, init_infcmd)): Use accessor
6934 functions to set the inferior program arguments.
6935 * inferior.h: Add definitions to the accessor functions above.
6937 2001-01-23 Jim Blandy <jimb@redhat.com>
6939 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
6940 Implement these correctly, using make_cv_type.
6942 2001-01-23 J.T. Conklin <jtc@redback.com>
6944 * exec.c (xfer_memory): Add attrib argument.
6945 * infptrace.c (child_xfer_memory): Likewise.
6946 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
6947 * monitor.c (monitor_xfer_memory): Likewise.
6948 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
6949 * remote-array.c (array_xfer_memory): Likewise.
6950 * remote-bug.c (bug_xfer_memory): Likewise.
6951 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
6952 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
6953 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
6954 * remote-mips.c (mips_xfer_memory): Likewise.
6955 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
6956 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
6957 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
6958 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
6959 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
6960 * remote-sds.c (sds_xfer_memory): Likewise.
6961 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
6962 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
6963 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
6964 * remote-vx.c (vx_xfer_memory): Likewise.
6965 * remote.c (remote_xfer_memory): Likewise.
6966 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
6967 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
6968 * thread-db.c (thread_db_xfer_memory): Likewise.
6970 * target.h (#include "memattr.h"): Added.
6971 (target_ops.to_xfer_memory): Add attrib argument.
6973 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
6974 * dcache.h (set_dcache_state): Removed declaration.
6975 * dcache.c (set_dcache_state): Removed definition
6977 * dcache.c: Update module comment, as dcache is now enabled and
6978 disabled with memory region attributes instead of by the global
6979 variable "remotecache". Add comment describing the interaction
6980 between dcache and memory region attributes.
6981 (dcache_xfer_memory): Add comment describing benefits of moving
6982 cache writeback to a higher level.
6983 (dcache_struct): Removed cache_has_stuff field. This was used to
6984 record whether the cache had been accessed in order to invalidate
6985 it when it was disabled. However, this is not needed because the
6986 cache is write through and the code that enables, disables, and
6987 deletes memory regions invalidate the cache. Add comment which
6988 suggests that we could be more selective and only invalidate those
6989 cache lines containing data from those memory regions.
6990 (dcache_invalidate): Updated.
6991 (dcache_xfer_memory): Updated.
6993 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
6994 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
6995 perform a uncached transfer if dcache_enabled_p was clear. This
6996 function is now only called if caching is enabled for the memory
6998 (dcache_info): Always print cache info.
7000 * target.c (do_xfer_memory): Add attrib argument.
7001 (target_xfer_memory, target_xfer_memory_partial): Break transfer
7002 into chunks defined by memory regions, pass region attributes to
7004 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
7006 * Makefile.in (SFILES): Add memattr.c.
7007 (COMMON_OBS): Add memattr.o.
7008 (dcache.o): Add target.h to dependencies.
7009 * memattr.c: New file.
7010 * memattr.h: Likewise.
7012 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
7013 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
7014 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
7015 * gdbserver/low-sim.c (#include "defs.h"): Removed.
7016 (mygeneric_load): Rename from generic_load.
7018 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
7019 (#include "defs.h"): Removed.
7020 (inferior_pid, perror_with_name): Remove declarations.
7021 * gdbserver/low-linux.c: Likewise.
7022 * gdbserver/low-nbsd.c: Likewise.
7023 * gdbserver/low-sparc.c: Likewise.
7024 * gdbserver/low-sun3.c: Likewise.
7026 * i386-stub.c: Re-indent.
7027 * m68k-stub.c: Re-indent.
7029 2001-01-22 Nicholas Duffek <nsd@redhat.com>
7031 * gdbarch.sh (PARM_BOUNDARY): Define.
7032 * gdbarch.c: Regenerate.
7033 * gdbarch.h: Regenerate.
7035 2001-01-22 J.T. Conklin <jtc@redback.com>
7037 * ns32k-tdep.c: #include "frame.h"
7038 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
7039 appears to have been inadvertantly removed sometime in May 1999.
7041 * Revert 2000-11-09 changes where shared library objects were
7042 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
7043 we'd like to be able to debug dynamically linked executables,
7044 this makes it impossible to build a cross debugger on a many
7047 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
7048 * config/i386/nbsdelf.mt: Likewise.
7049 * config/m68k/nbsd.mt: Likewise.
7050 * config/ns32k/nbsd.mt: Likewise.
7051 * config/powerpc/nbsd.mt: Likewise.
7052 * config/sparc/nbsd.mt: Likewise.
7053 * config/sparc/nbsdelf.mt: Likewise.
7054 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
7055 * config/i386/nbsdelf.mh: Likewise.
7056 * config/m68k/nbsd.mh: Likewise.
7057 * config/ns32k/nbsd.mh: Likewise.
7058 * config/powerpc/nbsd.mh: Likewise.
7059 * config/sparc/nbsd.mh: Likewise.
7061 2001-01-19 Jason Merrill <jason@redhat.com>
7063 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
7064 (process_one_symbol): Likewise.
7065 * dwarfread.c (handle_producer): Likewise.
7067 Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
7069 * configure.in (build_warnings): Disable -Wuninitialized until GDB
7070 compiles with -Wuninitialized,-Werror.
7071 * configure: Regenerate.
7073 * MAINTAINERS: Add list of buildable targets.
7075 Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
7077 * defs.h (STRCMP): Delete macro.
7079 * objfiles.c (objfile_relocate): Replace STRCMP with call to
7081 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7082 * symfile.c (compare_symbols): Ditto.
7083 * standalone.c (open): Ditto.
7084 * remote-es.c (verify_break): Ditto.
7085 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
7087 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
7089 Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
7091 * varobj.c (FREEIF): Delete macro.
7092 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
7095 2001-01-18 Nick Clifton <nickc@redhat.com>
7097 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
7098 (arc_print_insn): No bfd available, so pass NULL to
7099 arc_get_disassembler.
7101 2001-01-09 James Ingham <jingham@inghji.apple.com>
7103 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
7104 a mangled symbol rather than recursing into lookup_symbol, since
7105 this will just re-unmangle the name & call lookup_symbol_aux -
7106 leading to an infinite recursion.
7108 2001-01-18 Mark Kettenis <kettenis@gnu.org>
7110 * infcmd.c (print_return_value): Restore another space lost by
7111 switch to UIOUT. ``$NN='' should be ``$NN =''.
7113 Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
7115 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
7116 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
7117 definition in parenthesis.
7119 Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
7121 From 2000-10-27 Mark Salter <msalter@redhat.com>:
7122 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
7124 (remote_insert_hw_breakpoint): Ditto.
7126 2001-01-17 J.T. Conklin <jtc@redback.com>
7128 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
7129 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
7130 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
7131 * m68knbsd-tdep.c: New file.
7133 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
7135 * m68knbsd-nat.c: #include gdbcore.h.
7137 Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
7139 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
7141 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
7143 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
7144 goes away -- just return false (ie. not stopped by watchpoint).
7145 * source.c (openp): Fix typo in comment.
7147 2001-01-12 Nicholas Duffek <nsd@redhat.com>
7149 * blockframe.c (generic_get_saved_register): Spelling fix.
7150 * frame.h (FRAME_FP): Spelling fix.
7152 Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
7154 * infcmd.c (print_return_value): Restore space lost by switch to
7155 UIOUT. ``$NN='' should be ``$NN =''.
7157 2001-01-08 Nicholas Duffek <nsd@redhat.com>
7159 * regcache.c (set_register_cached, register_buffer,
7160 real_register, pseudo_register fetch_register, store_register):
7162 (register_changed, read_relative_register_raw_bytes_for_frame,
7163 registers_changed, registers_fetched, read_register_bytes,
7164 read_register_gen, write_register_gen, read_register,
7165 read_signed_register, write_register, supply_register): Replace
7166 register_valid[] with register_cached() and
7167 set_register_cached().
7168 (read_register_bytes, read_register_gen, write_register_gen,
7169 read_register, read_signed_register, write_register,
7170 supply_register): Replace registers[] with register_buffer().
7171 (read_register_bytes, read_register_gen, read_register,
7172 read_signed_register): Call fetch_register().
7173 (write_register_gen, write_register): Call real_register() and
7175 (write_register_bytes): Call store_register().
7176 * value.h (set_register_cached, register_buffer): Prototype.
7177 * remote.c (remote_fetch_registers): Allocate regs[] with a
7178 run-time size. Replace register_valid[] with
7179 set_register_cached().
7180 (store_register_using_P, remote_store_registers): Replace
7181 registers[] with register_buffer().
7183 2001-01-08 Nicholas Duffek <nsd@redhat.com>
7185 * regcache.c: Change "write-back" comment to "write-through".
7186 Change "regno" to "regnum".
7187 (read_register, read_signed_register): Remove "raw" from return
7189 (supply_register): Spelling fix.
7190 * value.h: Change "regno" to "regnum".
7192 2001-01-08 Fernando Nasser <fnasser@redhat.com>
7194 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
7197 2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7199 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
7201 2001-01-04 Nicholas Duffek <nsd@redhat.com>
7203 * valops.c (VALUE_SUBSTRING_START): Delete.
7205 2001-01-04 Nicholas Duffek <nsd@redhat.com>
7207 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
7208 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
7209 (cli_utils_h): New variable.
7210 (cli/cli-utils.o): New rule.
7211 * cli/cli-utils.c: New file.
7212 * cli/cli-utils.h: New file.
7214 2001-01-04 Nicholas Duffek <nsd@redhat.com>
7216 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
7217 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
7219 2001-01-03 J.T. Conklin <jtc@redback.com>
7221 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
7224 2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
7226 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
7227 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
7229 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
7230 Update copyright notice.
7232 For older changes see ChangeLog-2000
7238 version-control: never