1 2001-10-12 Christopher Faylor <cgf@redhat.com>
3 * win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked
4 list pointer to beginning rather than one beyond beginning.
6 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
8 * symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.
10 * symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
11 (make_symbol_completion_list): Likewise.
12 (make_symbol_overload_list): Likewise.
13 * buildsym.c (finish_block): Likewise.
14 * breakpoint.c (get_catch_sals): Likewise.
15 * mdebugread.c (mylookup_symbol): Likewise.
16 * objfiles.c (objfile_relocate): Likewise.
17 * printcmd.c (print_frame_args): Likewise.
18 * stack.c (print_block_frame_locals): Likewise.
19 (print_block_frame_labels): Likewise.
20 (print_frame_arg_vars): Likewise.
21 * symmisc.c (dump_symtab): Likewise.
22 * tracepoint.c (add_local_symbols): Likewise.
23 (scope_info): Likewise.
25 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
27 * minsyms.c (msymbol_hash): Use better hash function.
28 (msymbol_hash_iw): Likewise. Terminate loop at '(' properly.
30 * objfiles.h: Increase MINIMAL_SYMBOL_HASH_SIZE to match modern
33 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
35 * printcmd.c (print_frame_args): Move symbol iteration explicitly
36 inside the func != NULL block.
38 2001-10-12 Fernando Nasser <fnasser@redhat.com>
40 * MAINTAINERS (Misc): Add Ian Roxborough as tcl/, tk/ and itcl/
43 2001-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
45 * config/i386/tm-cygwin.h: Include tm-i386.h instead of tm-i386v.h.
46 This fixes errors in "long long" handling for 'finish' and 'return'
49 2001-10-12 Christopher Faylor <cgf@redhat.com>
51 * win32-nat.c (safe_symbol_file_add_stub): Avoid adding a shared
52 library if it has already been loaded.
53 (safe_symbol_file_add_cleanup): Don't mess with stderr or we won't see
55 (safe_symbol_file_add): Ditto.
56 (solib_symbols_add): Make static. Accept 'from_tty' parameter. Pass
57 it to safe_symbol_file_add.
58 (core_dll_symbols_add): Accomodate extra solib_symbols_add parameter.
59 (child_solib_add): Ditto.
61 * win32-nat.c (handle_exception): Don't print "first chance"
63 (get_child_debug_event): Continue from exceptions if !handle_exception.
65 2001-10-11 Tom Tromey <tromey@redhat.com>
67 * symtab.c (lookup_symtab): Removed.
68 (lookup_symtab_1): Renamed to lookup_symtab.
70 2001-10-10 Christopher Faylor <cgf@redhat.com>
72 * win32-nat.c (get_child_debug_event): Close file handles created after
73 process creation and DLL load.
74 (child_create_inferior): Close unneeded process/thread handle after
77 2001-10-10 Jim Blandy <jimb@redhat.com>
79 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
81 2001-10-10 Keith Seitz <keiths@redhat.com>
83 * varobj.c (cplus_value_of_child): Deal with a failure
84 to dereference a pointer object.
86 2001-10-08 J. Brobecker <brobecker@gnat.com>
88 * hpux-thread.c: rewrite find_active_thread() and find_tcb()
89 to use ptid_t, instead of overloading the thread and the pid
90 into the same 32-bit value. Make associated necessary adaptations.
91 Also remove unused variable cached_active_thread.
93 2001-10-08 Nicholas Duffek <nsd@redhat.com>
95 * MAINTAINERS (powerpc, SCO/Unixware, Solaris/x86): Remove my
98 2001-10-06 Mark Kettenis <kettenis@beast.freebsd.org>
100 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.
102 2001-10-04 Tom Tromey <tromey@redhat.com>
104 * main.c (enable_external_editor): Don't declare.
105 (captured_main): Don't set enable_external_editor.
107 2001-10-02 Kevin Buettner <kevinb@redhat.com>
109 * Makefile.in (ALLDEPFILES): Add solib-svr4.c and solib-sunos.c
111 (solib-sunos.o): Add dependencies.
112 (solib-svr4.o): Revise dependencies.
113 * solib-svr4.c: Remove SunOS shared library support.
114 * solib-sunos.c: New file, created from solib-svr4.c, which still
115 contains SunOS shared library support, but no SVR4 support.
117 * config/i386/nbsd.mh (NATDEPFILES): Remove solib-svr4.o and
118 solib-legacy.o from this list. Add solib-sunos.o.
119 * config/i386/sun386.mt (TDEPFILES): Likewise.
120 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
121 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
122 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
123 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
124 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
125 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
127 2001-10-01 Elena Zannoni <ezannoni@redhat.com>
129 * Makefile.in (mipsread.o): Remove old dependency on partial-stab.h.
131 2001-10-01 Elena Zannoni <ezannoni@redhat.com>
133 * xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN,
134 N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV,
135 CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB,
136 SET_NAMESTRING): Delete definitions.
137 Don't include language.h any more.
138 Don't include partial-stab.h any more.
139 (scan_xcoff_symtab): Don't jump through hoops to reuse code in
140 partial-stab.h, include the code directly, instead.
142 * Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
144 2001-10-01 Andrew Cagney <ac131313@redhat.com>
146 * infcmd.c (do_registers_info): Delete code dumping large
147 registers. Handled by val_print.
149 2001-09-30 Andrew Cagney <ac131313@redhat.com>
151 * gdbarch.sh (gdbarch_alloc): Name the new architecture
152 ``current_gdbarch'' so that it, and not the identically named
153 global is refered to by macros.
154 * gdbarch.c: Regenerate.
156 2001-09-29 Andrew Cagney <ac131313@redhat.com>
158 * cli/cli-decode.c (add_set_boolean_cmd): Define.
159 * cli/cli-decode.h (add_set_boolean_cmd): Declare.
160 * command.h (add_set_boolean_cmd): Ditto.
161 * remote.c (_initialize_remote): Use add_set_boolean_cmd for "set
164 2001-09-29 Andrew Cagney <ac131313@redhat.com>
166 * gdbarch.sh (gdbarch_dump): Sort output.
167 * gdbarch.c: Regenerate.
169 2001-09-29 Andrew Cagney <ac131313@redhat.com>
171 * rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
172 architecture to infer the wordsize. Previous architecture may not
175 2001-09-27 J. Brobecker <brobecker@gnat.com>
177 * infttrace.c (kill_inferior): Issue a TT_PROC_EXIT request rather
178 than a TT_PROC_STOP request to kill the inferior and its child
179 processes. Otherwise, the inferior is not killed on HPUX 11.0.
180 Removed the code that detaches the child processes since we just
183 2001-09-26 Andrew Cagney <ac131313@redhat.com>
185 * serial.c (serial_set_cmdlist, serial_show_cmdlist): New
187 (serial_set_cmd, serial_show_cmd): New functions.
188 (_initialize_serial): Add "set/show serial" command.
190 2001-09-26 Andrew Cagney <ac131313@redhat.com>
192 * CONTRIBUTE: Update.
194 2001-09-26 Kevin Buettner <kevinb@redhat.com>
196 * solib-svr4.h (set_solib_svr4_fetch_link_map_offsets): Add
197 argument ``gdbarch''.
198 * solib-svr4.c (SVR4_FETCH_LINK_MAP_OFFSETS): Change default value.
199 (default_svr4_fetch_link_map_offsets): Rename to
200 legacy_fetch_link_map_offsets().
201 (svr4_fetch_link_map_offsets): New function.
202 (fetch_link_map_offsets, fetch_link_map_offsets_init): Deleted.
203 (fetch_link_map_offsets_gdbarch_data): New static global.
204 (set_solib_svr4_fetch_link_map_offsets): Add argument ``gdbarch''.
205 Revise to invoke set_gdbarch_data().
206 (init_fetch_link_map_offsets): Change return type and add an
207 argument so that it may be used as a gdbarch_data initializer.
208 (_initialize_svr4_solib): Eliminate use of gdbarch swap mechanism.
209 Use gdbarch data mechanism instead.
211 2001-09-25 Jiri Smid <smid@suse.cz>
213 * x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
214 (x86_64_linux_sigcontext_addr): Replace `sizeof (struct siginfo)'
215 by LINUX_SIGINFO_SIZE.
217 2001-09-24 Andrew Cagney <ac131313@redhat.com>
219 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
221 (maintenance_set_profile_cmd): New function.
222 (maintenance_show_cmd, maintenance_set_cmd): New functions.
223 (_initialize_maint_cmds): Add "maintenance set" and "maintenance
224 show" and, commented out, "maintenance set/show profile" commands.
226 2001-09-24 Andrew Cagney <ac131313@redhat.com>
228 * findvar.c (read_var_value): For LOC_INDIRECT and LOC_REF_ARG
229 convert the pointer into a CORE_ADDRs.
231 2001-09-24 Andrew Cagney <ac131313@redhat.com>
233 * doublest.h (store_floating, extract_floating): Add comment
234 indicating these functions are deprecated.
235 (extract_typed_floating, store_typed_floating): Declare.
236 * doublest.c: Include "gdbtypes.h".
237 (extract_typed_floating, store_typed_floating): Define.
239 * stabsread.c (define_symbol): Use store_typed_floating.
240 * valarith.c (value_binop): Ditto.
241 * values.c (unpack_long): Use extract_typed_floating.
242 (unpack_double): Ditto.
244 2001-09-24 Orjan Friberg <orjanf@axis.com>
246 * cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
247 from correct register.
249 2001-09-22 Mark Kettenis <kettenis@gnu.org>
251 * x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.
253 2001-09-21 Jiri Smid <smid@suse.cz>
255 * config/i386/x86-64linux.mh: New file.
256 * config/i386/x86-64linux.mt: New file.
257 * config/i386/nm-x86_64.h: New file.
258 * x86-64-linux-tdep.c: New file.
259 * x86-64-linux-nat.c: New file.
260 * x86-64-tdep.c: New file.
261 * x86-64-tdep.h: New file.
262 * i386-tdep.h: New file.
263 * i387-nat.c: Include i386-tdep.h when multiarch.
264 * i387-tdep.c: Ditto.
265 * config/djgpp/fnchange.lst: Add entries for x86_64-linux-tdep.c
266 and x86_64-linux-nat.c
267 * Makefile.in: Add x86_64-linux-tdep.o, x86_64-tdep.o,
268 x86_64-linux-tdep.o, x86_64-nat.o, update dependencies.
270 2001-09-21 Jiri Smid <smid@suse.cz>
272 * MAINTAINERS: Add myself to the write-after-approval list.
273 * i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
274 (i386_length_and_rw_bits, i386_handle_nonaligned_watchpoint,
275 i386_insert_watchpoint, i386_remove_watchpoint): Add support for
276 8-byte wide watchpoints.
277 (i386_show_dr): Debug message format string change.
279 2001-09-21 Michael Snyder <msnyder@redhat.com>
281 * c-exp.y (typebase): Accept (signed long long) as a type expr.
283 2001-09-20 Michael Snyder <msnyder@redhat.com>
284 Changes by Daniel Berlin <dan@cgsoftware.com>, to support
285 better parsing of const and volatile type expressions.
286 * c-exp.y (const_and_volatile, const_or_volatile_noopt,
287 const_or_volatile): New non-terminals.
288 (ptype): Use new rule for const_or_volatile.
289 (typebase): Use new rule for const_or_volatile_noopt.
290 * parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
291 * parse.c (follow_types): Handle tp_const and tp_volatile on the
292 type stack: call make_cv_type to create new const/volatile type.
294 2001-09-20 Kevin Buettner <kevinb@redhat.com>
296 * solib-svr4.c (fetch_link_map_offsets): Add comment.
297 (fetch_link_map_offsets_init): New static global.
298 (set_solib_svr4_fetch_link_map_offsets, init_fetch_link_map_offsets):
299 Revise implementation to use ``fetch_link_map_offsets_init''
300 instead of ``fetch_link_map_offsets''.
302 2001-09-20 Alan Modra <amodra@bigpond.net.au>
304 * coffread.c: Replace all occurrences of bfd_read with bfd_bread.
305 * dbxread.c: Likewise.
306 * dwarf2read.c: Likewise.
307 * dwarfread.c: Likewise.
308 * somread.c: Likewise.
309 * ultra3-nat.c: Likewise.
310 * xcoffread.c: Likewise.
312 2001-09-19 Andrew Cagney <ac131313@redhat.com>
314 * cris-tdep.c (cris_get_signed_offset): Change return type to an
315 explicitly signed char.
317 * config/mcore/tm-mcore.h (mcore_virtual_frame_pointer): Update
318 function signature to match recent tracepoint.c:encode_actions
320 * mcore-tdep.c (mcore_virtual_frame_pointer): Ditto.
322 2001-09-18 Andrew Cagney <ac131313@redhat.com>
324 * thread.c (do_captured_thread_select): Add uiout parameter.
325 (do_captured_list_thread_ids): Ditto.
326 * breakpoint.c (do_captured_breakpoint_query): Ditto.
328 * breakpoint.c (gdb_breakpoint_query): Update. Use
330 * thread.c (gdb_list_thread_ids): Ditto.
331 (gdb_thread_select): Ditto.
332 (thread_command): Pass uiout to gdb_thread_select.
334 * gdb.h (gdb_breakpoint_query): Add parameter ui_out.
335 (gdb_thread_select, gdb_list_thread_ids): Ditto.
337 2001-09-13 Kevin Buettner <kevinb@redhat.com>
339 From Ilya Golubev <gin@mo.msk.ru>:
340 * solib.c (clear_solib): Call `remove_target_sections' to fix
341 stale pointers in `struct target_ops'.
342 * irix5-nat.c (clear_solib): Likewise.
343 * osfsolib.c (clear_solib): Likewise.
345 2001-09-13 Jim Blandy <jimb@redhat.com>
347 * monitor.c (monitor_load): Don't delete symtab users, or reset
350 * monitor.c (monitor_load): Fix indentation.
352 2001-09-11 Jim Blandy <jimb@redhat.com>
354 * printcmd.c (print_scalar_formatted): Compare the length of the
355 value against the lengths of the target's floating-point types,
356 not the host's. Add support for `long double'.
358 * printcmd.c (print_scalar_formatted): Fix indentation.
360 2001-09-10 Jim Blandy <jimb@redhat.com>
362 * rom68k-rom.c (init_rom68k_cmds): Set the flag indicating that
363 programs running on the board can produce output.
365 2001-09-10 Jason Molenda (jmolenda@apple.com)
367 * NEWS: "ANS/ISO C" -> "ISO C".
368 * MAINTAINERS (write-after-approval): Update my entry.
370 2001-09-08 Mark Kettenis <kettenis@gnu.org>
372 * config/xm-aix4.h (MEM_FNS_DECLARED): Removed.
374 * config/arm/xm-linux.h, config/ia64/xm-linux.h,
375 config/m68k/xm-linux.h, config/mips/xm-linux.h,
376 config/powerpc/xm-linux.h, config/sparc/xm-linux.h: Remove
377 redundant inclusion of <unistd.h>.
379 * gdbtypes.h (struct block): Add forward declaration.
381 2001-09-07 Andrew Cagney <ac131313@redhat.com>
383 * defs.h (enum return_reason): Renumber so that all values are
385 (RETURN_MASK): Negate reason.
386 (catch_exception_ftype): Declare.
387 (catch_exceptions): Declare.
388 * top.c (catcher): New function, based on catch_errors. Add in
389 parameter func_uiout and out parameters func_val, func_caught and
390 func_cleanup. Change type of func to catch_exceptions_ftype.
392 (struct catch_errors_args): Define.
393 (do_catch_errors): New function.
394 (catch_errors): Rewrite, use do_catch_errors and catcher.
395 (catch_exceptions): New function, use catcher.
397 2001-09-07 Jim Blandy <jimb@redhat.com>
399 Correctly parse register values provided by the monitor.
400 * rom68k-rom.c: #include "value.h".
401 (is_hex_digit, hex_digit_value, is_whitespace,
402 rom68k_supply_one_register): New static functions.
403 (rom68k_supply_register): Call rom68k_supply_one_register, instead
404 of monitor_supply_register; the latter was incorrectly parsing
406 * Makefile.in (rom68k-rom.o): Note that this now #includes value.h.
408 2001-09-07 Mark Kettenis <kettenis@gnu.org>
410 * config/rs6000/xm-rs6000.h (setpgrp): Remove macro. GDB defaults
411 to using setpgid if available now.
413 2001-09-06 Keith Seitz <keiths@redhat.com>
415 From Ian Roxborough <irox@redhat.com>
416 * configure.in: Use ITCL_LIB_FULL_PATH and
417 ITK_LIB_FULL_PATH to set Itcl and Itk dependancies
419 * configure: Regenerated.
421 2001-09-06 Kevin Buettner <kevinb@redhat.com>
423 * dbxread.c (process_one_symbol): Don't use error result from
424 find_stab_function_addr().
425 * partial-stab.h (case 'F'): Likewise.
427 * partial-stab.h (case 'f'): Make SOFUN_ADDRESS_MAYBE_MISSING
428 code match that used for case 'F'. This fixes the divergence
429 that was introduced by my 1999-09-14 changes to partial-stab.h.
431 2001-09-05 Elena Zannoni <ezannoni@redhat.com>
433 * gdbarch.sh: Move include of dis-asm.h so it is generated earlier
435 (TARGET_PRINT_INSN): Multiarch.
436 * gdbarch.h: Regenerate.
437 * gdbarch.c: Regenerate.
439 * arch-utils.c (legacy_print_insn): New function.
440 * arch-utils.h (legacy_print_insn): Export.
442 * cris-tdep.c (cris_delayed_get_disassembler): Use
443 TARGET_PRINT_INSN, instead of tm_print_insn.
444 * d10v-tdep.c (print_insn): Ditto.
445 * d30v-tdep.c (print_insn): Ditto.
446 * m32r-tdep.c (dump_insn): Ditto.
447 * v850-tdep.c (v850_scan_prologue): Ditto.
448 * mcore-tdep.c (mcore_dump_insn): Ditto.
449 * sh-tdep.c (sh_gdbarch_init): Set print_insn gdbarch field.
451 2001-09-05 Jim Blandy <jimb@redhat.com>
453 * gdbtypes.h (struct type): Doc fix.
455 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
457 From Daniel Jacobowitz <drow@mvista.com>
458 * dbxread.c (free_header_files): Make global.
459 (init_header_files): Likewise.
460 * stabsread.h (free_header_files): Add prototype.
461 (init_header_files): Likewise.
462 * mdebugread.c (mdebug_build_psymtabs): Initialize
463 properly before using the stabs debug reader.
465 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
467 From Daniel Jacobowitz <drow@mvista.com>
468 * dbxread.c (dbx_symfile_read): Only reinitialize
469 the psymbol list if mainline or if both static
470 and global lists are empty.
471 * dwarf2read.c (dwarf2_build_psymtabs): Likewise.
472 * dwarfread.c (dwarf_build_psymtabs): Likewise.
473 * xcoffread.c (xcoff_initial_scan): Likewise.
474 * os9kread.c (os9k_symfile_read): Likewise.
476 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
478 From Daniel Jacobowitz <drow@mvista.com>
479 * mdebugread.c (psymtab_to_symtab_1): Handle N_SO stabs without
482 2001-09-01 Mark Kettenis <kettenis@gnu.org>
484 Make GDB use libiberty regex implementation.
485 * gdb_regex.h: Normalize protection against multiple inclusion.
486 Include "xregex.h" instead of "gnu-regex.h".
487 * cli/cli-cmds.c: Include "gdb_regex.h" instead of "gnu-regex.h".
488 * cli/cli-decode.c: Likewise.
489 * Makefile.in (REGEX): Remove.
490 (GDB_CFLAGS): Remove reference to gnu-regex.h in comment.
491 (ADD_FILES, ADD_DEPS): Remove $(REGEX).
493 (TAGFILES_NO_SRCDIR): Remove $(POSSLIBS).
494 (irix5-nat.o, solib.o, solib-svr4.o, source.o, symtab.o,
495 xcoffsolib.o, cli-decode.o, cli-cmd.o): Replace gnu-regex.h with
496 gdb_regex.h in list of dependencies.
497 (gnu-regex.o): Remove rule.
498 * gnu-regex.c, gnu-regex.h: Remove files.
500 2001-08-31 Jason Molenda (jmolenda@apple.com)
502 * c-valprint.c (c_val_print): Second call to check_typedef ()
503 is no longer necessary.
505 2001-08-31 Kevin Buettner <kevinb@redhat.com>
507 * ia64-tdep.c (examine_prologue): Don't let a branch unit nop
508 terminate the prologue scan.
510 2001-08-30 Jim Blandy <jimb@redhat.com>
512 * symfile.c (sections_overlap): New function.
513 (map_overlay_command): Call sections_overlap, instead of using
514 incorrect logic to recognize overlapping sections.
516 * symfile.c (load_command): Invalidate the overlay cache.
518 2001-08-30 Mark Kettenis <kettenis@gnu.org>
520 * config/i386/xm-i386.h (HOST_BYTE_ORDER): Removed.
522 2001-08-29 Kevin Buettner <kevinb@redhat.com>
524 From 2001-08-07 Daniel Jacobowitz <drow@mvista.com>:
525 * solib-svr4.c (enable_break): Check the inferior link map
526 before assuming the inferior PC is at the start of the dynamic
529 2001-08-28 Andrew Cagney <cagney@toribio.toronto.redhat.com>
531 * frame.h (struct frame_info): Fix documentation on fields
532 saved_regs, next and prev.
534 2001-08-23 Mark Kettenis <kettenis@gnu.org>
536 * event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: Some
537 gratuitious whitespace changes.
538 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined.
539 * top.c: Remove redundant logic to define HAVE_SIGSETMASK.
540 (sigsetmask) Don't define macro.
541 (stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from
542 async_stop_sig from event-top.c.
543 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is
545 * configure.in (AC_CHECK_FUNCS): Put functions in alphabetical
546 order. Add sigsetmask.
547 (AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in
549 * config/xm-aix4.h, config/alpha/xm-alphalinux.h,
550 config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h
551 (HAVE_SIGSETMASK): Remove.
552 * aclocal.m4, config.in, configure: Regenerated.
554 2001-08-26 Andrew Cagney <ac131313@redhat.com>
556 From 2001-06-29 Andrew Cagney <ac131313@redhat.com>:
557 * config/powerpc/nbsd.mh (XM_FILE): Delete.
559 2001-08-21 Andrew Cagney <ac131313@redhat.com>
561 * doublest.h (HOST_FLOAT_FORMAT): Delete macro.
562 (HOST_DOUBLE_FORMAT): Delete macro.
564 2001-08-24 Mark Kettenis <kettenis@gnu.org>
566 * config/xm-lynx.h, config/xm-nbsd.h, config/xm-sysv4.h,
567 config/i386/xm-i386aix.h, config/m68k/xm-dpx2.h: Remove redundant
568 inclusion of <limits.h>.
570 2001-08-24 Andrew Cagney <ac131313@redhat.com>
572 * regcache.c (read_register_bytes): When REGISTER_NAME indicates
573 that a register should be ignored, supply a value for the register
574 from the raw registers[] buffer.
576 2001-08-24 Andrew Cagney <ac131313@redhat.com>
578 * go32-nat.c (go32_create_inferior): Use xfree instead of free.
579 * config/djgpp/fnchange.lst: Add entries for i386bsd-tdep.c and
582 2001-08-21 Andrew Cagney <ac131313@redhat.com>
584 * gdbtypes.h (builtin_type_ieee_single_big)
585 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
586 (builtin_type_ieee_double_little)
587 (builtin_type_ieee_double_littlebyte_bigword)
588 (builtin_type_i387_ext, builtin_type_m68881_ext)
589 (builtin_type_i960_ext, builtin_type_m88110_ext)
590 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
591 (builtin_type_arm_ext_littlebyte_bigword)
592 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
593 (builtin_type_ia64_quad_big)
594 (builtin_type_ia64_quad_little): Declare.
595 * gdbtypes.c (builtin_type_ieee_single_big)
596 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
597 (builtin_type_ieee_double_little)
598 (builtin_type_ieee_double_littlebyte_bigword)
599 (builtin_type_i387_ext, builtin_type_m68881_ext)
600 (builtin_type_i960_ext, builtin_type_m88110_ext)
601 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
602 (builtin_type_arm_ext_littlebyte_bigword)
603 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
604 (builtin_type_ia64_quad_big)
605 (builtin_type_ia64_quad_little): Define.
606 (_initialize_gdbtypes): Initialize builtin floatformat types.
608 2001-08-23 Mark Kettenis <kettenis@gnu.org>
610 * tracepoint.c (read_actions): Add FIXME for code depending on
613 2001-08-23 Martin M. Hunt <hunt@redhat.com>
615 * remote-mips.c (pmon_load_fast): Add ui_load_progress_hook
617 (mips_load_srec): Ditto.
619 2001-08-22 Andrew Cagney <ac131313@redhat.com>
621 * gdbtypes.c (build_gdbtypes): Initialize TYPE_FLOATFORMAT field
622 of builtin_type_float, builtin_type_double and
623 builtin_type_long_double.
624 (recursive_dump_type): Print the floatformat name.
625 * gdbtypes.h (struct type): Add type_specific field floatformat.
626 (TYPE_FLOATFORMAT): Define
628 2001-08-21 Keith Seitz <keiths@redhat.com>
630 * printcmd.c (print_insn): Use the given stream for
633 2001-07-24 Andrew Cagney <ac131313@redhat.com>
635 * arm-tdep.c (convert_from_extended, convert_to_extended): Delete
636 assembler version of function.
637 (convert_from_extended, convert_to_extended): Rewrite. Use
638 floatformat_to_doublest, floatformat_from_doublest,
639 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword.
640 (arm_push_arguments): Use extract_floating and store_floating to
641 perform floating point conversions.
642 (SWAP_TARGET_AND_HOST): Delete macro.
643 * arm-linux-tdep.c (arm_linux_push_arguments): Use
644 extract_floating and store_floating to perform floating point
647 2001-08-20 Andrew Cagney <ac131313@redhat.com>
649 * gdbtypes.h (struct type): Clarify meaning of field ``length''.
651 2001-08-17 Keith Seitz <keiths@redhat.com>
653 * varobj.c (varobj_update): Change first parameter to
654 pointer to struct varobj*. This function can delete
655 varobjs, so we need to give callers the new varobj
657 (value_of_root): Update "var", too, if "var_handle"
659 * varobj.h (varobj_update): Likewise.
661 2001-08-17 Keith Seitz <keiths@redhat.com>
663 * Makefile.in (varobj_h): Define.
664 (mi-cmd-var.o): Depends on varobj_h.
665 (gdbtk-varobj.o): Change varobj.h to $(varobj_h).
667 2001-08-16 Keith Seitz <keiths@redhat.com>
669 * configure.in (GDBTK_SRC_DIR): We must have autoconf
670 give us the absolute path to the source directory.
671 * configure: Regenerated.
672 * Makefile.in (GDBTK_SRC_DIR): Add variable so that
673 autoconf can substitue it in for us.
674 (gdbtk.o): Pass in GDBTK_SRC_DIR instead of srcdir. We
675 really do need an absolute pathname.
677 2001-08-15 Keith Seitz <keiths@redhat.com>
679 * Makefile.in (GDBTK_VERSION): Set a version number.
680 (GDBTK_LIBRARY): New variable to point to location where
681 gdbtk will install its tcl library. Changed all refereneces
682 to $(datadir)/insight1.0 to $(GDBTK_LIBRARY).
683 (SUBDIR_GDBTK_ALL): Remove "all-gdbtk". No longer needed.
684 (SUBDIR_GDBTK_CLEAN): Remove "clean-gdbtk". No longer needed.
686 (install-gdbtk): Remove.
687 (gdbtk.o): Pass srcdir to file when compiling.
689 2001-08-15 Ian Roxborough <irox@redhat.com>
691 * Makefile.in: Changed all references to the install directory
692 "gdbtcl" to read "insight1.0".
694 2001-08-15 Corinna Vinschen <vinschen@redhat.com>
696 * arch-utils.c (generic_skip_trampoline_code): New function.
697 * arch-utils.h (generic_skip_trampoline_code): Declare external.
698 * gdbarch.c: Regeberated from gdbarch.sh.
700 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Multi-arch.
701 * infrun.c: Remove default setting of SKIP_TRAMPOLINE_CODE macro.
703 2001-08-14 Daniel Jacobowitz <drow@mvista.com>
704 H.J. Lu (hjl@gnu.org)
706 * partial-stab.h: valu should be a CORE_ADDR.
708 2001-08-14 H.J. Lu (hjl@gnu.org)
710 * dbxread.c (SWAP_SYMBOL): Removed.
711 (INTERNALIZE_SYMBOL): Check sign extended vma.
713 2001-08-13 Christopher Faylor <cgf@cygnus.com>
715 * top.c (SIGSETJMP): Protect env argument with parentheses.
716 (SIGLONGJMP): Protect env argument with parentheses.
718 2001-08-11 Andrew Cagney <ac131313@redhat.com>
720 * config/mn10300/mn10300.mt (TM_FILE): Delete.
721 * configure.tgt: Add mn10300 to list of mulit-arch targets.
722 * config/mn10300/tm-mn10300.h: Delete file. Move contents ...
723 * mn10300-tdep.c: To here.
725 2001-08-11 Andrew Cagney <ac131313@redhat.com>
727 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_VIRTUAL): Make
728 val a DOUBLEST. Use floatformat_to_doublest.
729 (REGISTER_CONVERT_TO_RAW): Ditto. Use foatformat_from_doublest.
730 * config/m88k/tm-m88k.h (REGISTER_CONVERT_TO_VIRTUAL): Ditto.
731 (REGISTER_CONVERT_TO_RAW): Ditto.
733 2001-08-11 Andrew Cagney <ac131313@redhat.com>
735 * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
736 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and
739 2001-08-11 Andrew Cagney <ac131313@redhat.com>
741 * doublest.c (convert_doublest_to_floatformat): Rename
742 floatformat_from_doublest. Make static.
743 (convert_floatformat_to_doublest): Rename floatformat_to_doublest.
745 (floatformat_to_doublest): New function.
746 (floatformat_from_doublest): New function.
747 (host_float_format, host_double_format, host_long_double_format):
748 New static variables.
749 (store_floating, extract_floating): Always use
750 floatformat_to_doublest and floatformat_from_doublest.
751 * doublest.h (HOST_LONG_DOUBLE_FORMAT): Delete macro.
753 2001-08-11 Andrew Cagney <ac131313@redhat.com>
755 * config/mn10300/tm-mn10300.h (INIT_FRAME_PC): Delete.
756 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize init_frame_pc.
758 2001-08-07 Andrew Cagney <ac131313@redhat.com>
760 * target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.
761 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Add.
762 * gdbarch.h, gdbarch.c: Regenerate.
764 * arch-utils.h (legacy_virtual_frame_pointer): Declare.
765 * arch-utils.c: Include "gdb_assert.h".
766 (legacy_virtual_frame_pointer): Define.
767 * Makefile.in (arch-utils.o): Depends on gdb_assert.h.
769 * tracepoint.c (encode_actions): Make frame_reg an int. Make
770 frame_offset a LONGEST.
771 * ax-gdb.c (gen_frame_args_address): Ditto.
772 (gen_frame_locals_address): Ditto.
773 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize
774 virtual_frame_pointer.
775 (mn10300_virtual_frame_pointer): Make static. Update parameter
776 list to match function signature.
777 * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER): Delete.
779 2001-08-10 Keith Seitz <keiths@redhat.com>
781 * gdb-events.sh: Add architecture_changed event.
782 * gdbarch.sh: Include gdb-event.h.
783 (gdbarch_update_p): Notify UIs when architecture changes.
784 * gdb-events.h: Regenerated.
785 * gdb-events.c: Regenerated.
786 * gdbarch.c: Regenerated.
788 2001-08-10 Michael Snyder <msnyder@redhat.com>
790 * regcache.c (legacy_write_register_gen): Don't 'optimize out'
791 a write_register to a pseudo-reg. Target_store_pseudo_register
792 needs to get called, because these regs may be computed and may
795 2001-08-10 Keith Seitz <keiths@redhat.com>
797 * gdb-events.sh: Deal with event notifications with no
800 2001-08-10 Orjan Friberg <orjanf@axis.com>
802 * remote.c (read_frame): Correct off-by-one error in condition.
804 2001-08-08 Don Howard <dhoward@redhat.com>
806 * stabsread.c (read_type): Add support for const and volatile
809 2001-08-02 Daniel Jacobowitz <drow@mvista.com>
811 * core-regset.c (fetch_core_registers): Remove HAVE_GREGSET_T
812 and HAVE_FPREGSET_T checks. Use gdb_gregset_t and gdb_fpregset_t.
814 2001-08-02 Keith Seitz <keiths@redhat.com>
816 * defs.h (SLASH_STRING): If not defined, set
817 to "/", regardless of _WIN32, __CYGWIN__, or
820 2001-08-02 Mark Kettenis <kettenis@gnu.org>
822 * cli/cli-decode.h: Include "gdb_regex.h" instead of
827 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
829 * config/i386/xm-go32.h: Include xm-i386.h.
830 (HOST_BYTE_ORDER, HOST_LONG_DOUBLE_FORMAT): Remove definitions.
832 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
834 The following changes avoid polluting global namespace with the
835 `enable' and `disable' identifiers, because some platforms define
836 in their system headers symbols with global scope that go by those
839 * breakpoint.h (enum enable_state): Rename from `enum enable'.
840 Also rename all the enum members to have the "bp_" prefix.
841 (struct breakpoint): Rename the `enable' member to `enable_state'.
842 (enum bpdisp): Rename all members to have the "disp_" prefix.
844 * breakpoint.c: All users of `enum enable' and `enum bpdisp'
846 (args_for_catchpoint_enable): Rename the `enable' member to
847 `enable_p'. All users changed.
849 * tracepoint.h (enum enable): Remove.
850 (struct tracepoint): The member `enabled' is now `int enabled_p'.
852 * tracepoint.c: All users of the `enabled' member changed.
854 * printcmd.c (struct display): The `status' member is now an int.
856 * memattr.h (struct mem_region): Rename the `status' member to
858 (enum enable): Remove.
860 * memattr.c: Change all users of the `status' member of struct
861 mem_region to use `enabled_p' instead.
863 * infcmd.c (run_stack_dummy): Use disp_del instead of del.
865 * go32-nat.c: Remove the kludgey work-around for conflicts between
866 <dos.h> and "breakpoint.h".
868 2001-08-02 Corinna Vinschen <vinschen@redhat.com>
870 * MAINTAINERS: Add myself to the write-after-approval list.
871 * ser-tcp.c (tcp_open): Use `localhost' as default host if no
874 2001-08-01 Andrew Cagney <ac131313@redhat.com>
876 * doublest.h (store_floating, floatformat_to_doublest): Make IN
877 paramter a const void pointer.
878 (floatformat_from_doublest): Make IN const, Make OUT a void
880 * doublest.c (floatformat_to_doublest): Update.
881 (floatformat_from_doublest): Update.
882 (extract_floating): Update.
884 2001-07-31 Andrew Cagney <ac131313@redhat.com>
886 * defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
887 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
888 (HOST_LONG_DOUBLE_FORMAT, DOUBLEST)
889 (floatformat_to_doublest, floatformat_from_doublest)
890 (floatformat_is_negative, floatformat_is_nan)
891 (floatformat_mantissa, store_floating)
892 (extract_floating): Move declaration from here.
893 * doublest.h: To here. New file.
894 * utils.c (get_field, floatformat_to_doublest, put_field)
895 (ldfrexp, floatformat_from_doublest, floatformat_is_negative)
896 (floatformat_is_nan, floatformat_mantissa)
897 (FLOATFORMAT_CHAR_BIT): Move from here.
898 * doublest.c: To here. New file.
899 * findvar.c (store_floating, extract_floating): Move from here.
900 * doublest.c: To here.
901 * Makefile.in (SFILES): Add doublest.c.
902 (COMMON_OBS): Add doublest.o.
903 (doublest.o): Specify dependencies.
904 (doublest_h): Define.
906 * config/m88k/tm-m88k.h: Include "doublest.h".
907 * config/i960/tm-i960.h: Ditto.
908 * config/i386/tm-symmetry.h: Ditto.
909 * rs6000-tdep.c, valarith.c: Ditto.
910 * valprint.c, stabsread.c, sh-tdep.c: Ditto.
911 * ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto.
912 * values.c, arm-tdep.c, arm-linux-tdep.c: Ditto.
913 * alpha-tdep.c, ax.h, expression.h: Ditto.
914 * sh-tdep.c, parse.c, top.c, value.h: Ditto.
916 * Makefile.in (arm-tdep.o): Add $(doublest_h).
917 (i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto.
918 (rs6000-tdep.o, stabsread.o, valarith.o): Ditto.
919 (values.o, valprint.o, arm-linux-tdep.o): Ditto.
920 (alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto.
921 (parser_defs_h): Ditto.
922 (expression_h): Add $(doublest_h) and $(symtab_h).
924 2001-08-01 Andrew Cagney <ac131313@redhat.com>
926 * Makefile.in: Sort header definitions.
927 (parser_defs_h, dis_asm_h, annotate_h, gdbthread_h): Define.
928 Replace parser-defs.h with $(parser_defs_h). Replace $(dis-asm_h)
929 and $(dis-asm.h) with $(dis_asm_h). Replace annotate.h with
930 $(annotate_h). Replace target.h with $(target_h). Replace
931 gdbthread.h with $(gdb_thread_h). Replace symfile.h with $(symfile_h).
933 2001-07-31 Mark Kettenis <kettenis@gnu.org>
935 * config/i386/xm-i386.h: New file.
936 * config/i386/xm-fbsd.h: Removed.
937 * config/i386/xm-linux.h: Removed.
938 * config/i386/fbsd.mh: Reorganize a bit.
939 (XM_FILE): Set to xm-i386.h instead of xm-fbsd.h.
940 * config/i386/linux.mh (XM_FILE): Set to xm-i386.h insread of
943 2001-07-30 Jim Blandy <jimb@redhat.com>
945 * dwarf2read.c (dwarf2_build_psymtabs_hard): Doc fix.
947 2001-07-27 Daniel Jacobowitz <drow@mvista.com>
949 * configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
950 Check for SETPGRP_VOID separately if cross-compiling and ISO C
951 headers are available.
953 2001-07-30 Mark Kettenis <kettenis@gnu.org>
955 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
956 i386_dwarf_reg_to_regnum.
958 * i386-tdep.c (i386_register_convert_to_virtual): Replace
959 assertion with a warning if we're asked to convert towards a
960 non-floating-point type. Zero out the the buffer where the data
961 is supposed to be stored in that case.
963 2001-07-29 Eli Zaretskii <eliz@is.elta.co.il>
965 * config/djgpp/djconfig.sh: Unset CDPATH.
967 * go32-nat.c (get_cr3): Temporary disable support for page tables
968 in UMBs, as it is incomplete.
970 Support for stepping through longjmp in DJGPP programs:
972 * config/i386/tm-go32.h (JB_ELEMENT_SIZE, JB_PC): New macros.
973 (GET_LONGJMP_TARGET): Define to call get_longjmp_target.
974 (get_longjmp_target): Add prototype.
976 2001-07-28 Andrew Cagney <ac131313@redhat.com>
978 Fix some PID/TPID fallout for HP/UX.
979 From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>:
980 * infttrace.c (ptrace_wait): Match external declaration,
981 and match target_post_wait declaration.
983 2001-07-28 Andrew Cagney <ac131313@redhat.com>
985 * MAINTAINERS: Add Orjan Friberg as cris target maintainer.
986 (cris): Set --enable-gdb-build-warnings flag to -w.
988 2001-07-28 Andrew Cagney <ac131313@redhat.com>
990 From 2001-07-23 Andreas Schwab <schwab@suse.de>:
991 * config/m68k/tm-m68k.h (TARGET_LONG_DOUBLE_FORMAT): Define.
992 (TARGET_LONG_DOUBLE_BIT): Define.
993 (REGISTER_VIRTUAL_SIZE): Return 12 for floating point registers.
994 (MAX_REGISTER_VIRTUAL_SIZE): Increase to 12.
995 (REGISTER_VIRTUAL_TYPE): Return builtin_type_long_double for
996 floating point registers.
997 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL)
998 (REGISTER_CONVERT_TO_RAW): Remove.
999 * config/m68k/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define.
1001 2001-07-26 Andrew Cagney <ac131313@redhat.com>
1003 * thread.c, breakpoint.c: Include "gdb.h".
1004 * Makefile.in (gdb_h): Define.
1005 (HFILES_NO_SRCDIR): Add gdb.h.
1006 (mi-cmd-break.o, mi-main.o, thread.o)
1007 (breakpoint.o): Add dependency on $(gdb_h).
1009 * defs.h (enum gdb_rc, gdb_breakpoint_query)
1010 (gdb_breakpoint, gdb_thread_select)
1011 (gdb_list_thread_ids): Move declaration from here ...
1012 * gdb.h: To here. New file.
1014 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1016 * Makefile.in (SUBDIR_TUI_OBS): Add tui-out.o, tui-hooks.o.
1017 (SUBDIR_TUI_SRCS): Add tui-out.c tui-hooks.c
1019 (tui-out.o): Define dependencies.
1020 (tui-hooks.o): Likewise.
1022 2001-07-28 Andrew Cagney <ac131313@redhat.com>
1024 * MAINTAINERS: Update e-mail address of active @cygnus.com
1025 maintainers to @redhat.com.
1027 2001-07-28 Andrew Cagney <ac131313@redhat.com>
1029 * README (Known bugs): Delete section.
1030 (Kernel debugging): Delete section.
1031 (Languages other than C): Delete section.
1032 (Host/target specific installation notes) New section.
1034 2001-07-28 Mark Kettenis <kettenis@gnu.org>
1036 * config/i386/tm-i386.h (STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
1037 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): New defines.
1038 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New
1040 * config/i386/tm-fbsd.h, config/i386/tm-i386gnu.h,
1041 config/i386/tm-linux.h (STAB_REG_TO_REGNUM): Redefine to call
1042 i386_dwarf_reg_to_regnum.
1043 * i386-tdep.c (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum):
1046 * i386-tdep.c: Include "gdb_assert.h"
1047 (i386_register_convert_to_virtual): Fix such that it can handle
1048 conversion to any floating-point type. Assert that we are dealing
1049 with a floating-point first.
1050 (i386_register_convert_to_raw): Assert that TYPE is a
1051 floating-point type with length 12.
1053 2001-07-27 John R. Moore <jmoore@redhat.com>
1055 * configure.in: Added dependency of gdb on tcl/tk libraries.
1056 * Makefile.in: Likewise.
1057 * configure: Regenerated with the above using autoconf.
1059 2001-07-26 Elena Zannoni <ezannoni@redhat.com>
1061 * sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of
1063 (SH_DEFAULT_NUM_REGS): Define.
1065 2001-07-26 Eli Zaretskii <eliz@is.elta.co.il>
1067 * go32-nat.c (read_memory_region): Make sure the segment limit was
1068 indeed set, to work around a Windows 2000 bug.
1070 2001-07-25 Daniel Jacobowitz <drow@mvista.com>
1072 * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.
1073 * infttrace.c (child_xfer_memory): Likewise.
1074 * symm-nat.c (child_xfer_memory): Likewise.
1075 * gdbserver/low-hppabsd.c (read_inferior_memory): Likewise.
1076 (write_inferior_memory): Likewise.
1077 * gdbserver/low-linux.c (read_inferior_memory): Likewise.
1078 (write_inferior_memory): Likewise.
1079 * gdbserver/low-lynx.c (read_inferior_memory): Likewise.
1080 (write_inferior_memory): Likewise.
1081 * gdbserver/low-nbsd.c (read_inferior_memory): Likewise.
1082 (write_inferior_memory): Likewise.
1083 * gdbserver/low-sparc.c (read_inferior_memory): Likewise.
1084 (write_inferior_memory): Likewise.
1085 * gdbserver/low-sun3.c (read_inferior_memory): Likewise.
1086 (write_inferior_memory): Likewise.
1088 2001-07-25 Eli Zaretskii <eliz@is.elta.co.il>
1090 * README: Mention how to make gdb.pdf.
1094 2001-07-24 Stephen P. Smith <ischis2@home.com>
1096 * MAINTAINERS (Stephen P. Smith): Added to write after approval
1099 2001-07-23 Andrew Cagney <ac131313@redhat.com>
1101 * mips-tdep.c (mips_push_arguments): Add comment explaining
1102 problem with LE o32 GCC.
1104 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
1106 * config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
1107 doesn't understand them.
1109 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
1111 * memattr.c (mem_info_command): Reformat output to look more like
1112 'info break' output.
1113 (_initialize_mem): Improve help.
1115 2001-07-23 Mark Kettenis <kettenis@gnu.org>
1117 * configure.in (AC_CHECK_FUNCS): Add setpggrp.
1118 (AC_FUNC_SETPGRP): Add.
1119 * aclocal.m4, configure, config.in: Regenerated.
1120 * inflow.c (gdb_setpgid): Get rid of NEED_POSIX_SETPGID and
1121 SETPGRP_ARGS. Always use setpgid if it is available, fall back on
1122 setpgrp if it isn't. Use SETPGRP_VOID (defined by autoconf) to
1123 distinguish between the two setpgrp flavours.
1124 * config/xm-sysv4.h, config/arm/xm-linux.h,
1125 config/i386/xm-i386aix.h, config/i386/xm-sco.h,
1126 config/i386/xm-linux.h, config/i386/xm-ptx.h,
1127 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
1128 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h,
1129 config/ia64/xm-linux.h (NEED_POSIX_SETPGID): Remove.
1130 * config/rs6000/xm-rs6000.h (SETPGRP_ARGS): Remove.
1132 2001-07-23 Eli Zaretskii <eliz@is.elta.co.il>
1134 * go32-nat.c (read_memory_region): Set the granularity bit of the
1135 allocated segment according to its size, and adjust the limit to
1136 be page-aligned if the segment is page-granular.
1138 * (get_cr3, get_pde, get_pte, display_ptable_entry, go32_pde)
1139 (display_page_table, go32_pte, go32_pte_for_address): New functions.
1140 (_initialize_go32_nat): Initialize and document them.
1142 2001-07-22 Mark Kettenis <kettenis@gnu.org>
1144 * i386gnu-nat.c: Include "i387-nat.h".
1145 (struct env387): Removed.
1146 (reg_offset): Fix comment.
1147 (fetch_fpregs): Use FCTRL_REGNUM and FOP_REGNUM instead of
1148 FIRST_FPU_CONTROL_REGNUM and LAST_FPU_CONTROL_REGNUM. Rewrite to
1149 use i387_supply_fsave.
1150 (gnu_fetch_registers): Remove spurious whitespace.
1151 (convert_to_env387): Remove.
1152 (store_fpregs): Add argument regno. Use i387_fill_fsave instead
1153 of convert_to_env387.
1154 (gnu_store_registers): Remove spurious whitespace. Pass REGNO to
1156 * config/i386/i386gnu.mt (TDEPFILES): Add i387-tdep.o.
1157 * config/i386/i386gnu.mh (XDEPFILES): Remove i387-tdep.o.
1158 (NATDEPFILES): Add i387-nat.o.
1160 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1162 * Makefile.in (ALLDEPFILES): Add m68hc11-tdep.c.
1163 (m68hc11-tdep.o): Define dependencies.
1165 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
1169 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1171 * utils.c (init_page_info): Use tui_get_command_dimension.
1172 * printcmd.c (disassemble_command): Simplify tui specific code,
1173 use tui_is_window_visible, tui_show_assembly.
1175 2001-07-21 Mark Kettenis <kettenis@gnu.org>
1177 * i386bsd-nat.c: Do not include <sys/sysctl.h>.
1178 (_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific
1180 * i386fbsd-nat.c: ... here. New file.
1181 * config/i386/fbsd.mh (NATDEPFILES): Add i386-fbsd.o.
1182 * config/i386/nm-fbsd.h (CHILD_RESUME): Define.
1183 * Makefile.in (ALLDEPFILES): Add i386fbsd-nat.c.
1184 (i386fbsd-nat.o): Add dependencies.
1186 2001-07-19 Daniel Jacobowitz <drow@mvista.com>
1188 * signals.c: New file.
1189 * Makefile.in: Add signals.o.
1190 * target.c (struct signals, target_signal_to_name)
1191 (target_signal_from_name, target_signal_from_host)
1192 (do_target_signal_to_host, target_signal_to_host_p)
1193 (target_signal_to_host, target_signal_from_command): Move to
1195 (initialize_targets): Move check of struct signals to...
1196 * signals.c (_initialize_signals): Here.
1198 2001-07-19 Andrew Cagney <ac131313@redhat.com>
1200 * MAINTAINERS: Add Michael Chastain as C++ testsuite maintainer.
1202 2001-07-19 Andrew Cagney <ac131313@redhat.com>
1205 * configure.tgt (i*86-*-pe*): New target.
1207 2001-07-19 Andrew Cagney <ac131313@redhat.com>
1209 From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:
1210 * infttrace.c (child_thread_alive): Fix gdb_tid typo.
1211 * somsolib.c (no_shared_libraries): Provide stub.
1212 * xcoffsolib.c (no_shared_libraries): Provide stub.
1214 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1216 * Makefile.in (COMMON_OBS): Remove tui-file.o.
1217 (SUBDIR_TUI_OBS): Add it here.
1218 (SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
1219 (main.o): Remove dependency with tui-file.h.
1221 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
1223 * Makefile.in (tui-file.o): Update dependencies.
1225 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
1227 * top.c (catch_errors): Convert PTR to void * in parameters list.
1228 (quit_cover): Ditto.
1230 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1232 * source.c (find_source_lines): Remove tui test, must be replaced
1233 by appropriate warning hook.
1234 (print_source_lines): Remove tui hacks, must be replaced by cli.
1235 (forward_search_command): Remove tui hacks, can be replaced by
1236 appropriate calls to identify_source_line when tui scrolls.
1237 (reverse_search_command): Likewise.
1239 2001-07-16 Nick Duffek <nsd@redhat.com>
1241 * remote.c (init_remote_ops, init_remote_cisco_ops,
1242 init_remote_async_ops): Set to_pid_to_str and
1243 to_extra_thread_info correctly and in the same order as declared
1246 2001-07-16 Andrew Cagney <ac131313@redhat.com>
1248 * remote.c: Revert below. Included more than intended.
1250 2001-07-16 Nick Duffek <nsd@redhat.com>
1252 * remote.c (init_remote_ops, init_remote_cisco_ops,
1253 init_remote_async_ops): Set to_pid_to_str and
1254 to_extra_thread_info correctly and in the same order as declared
1257 2001-07-16 Nick Duffek <nsd@redhat.com>
1259 * findvar.c (read_var_value): Apply value_as_pointer() to
1260 addresses retrieved from the target for LOC_BASEREG and
1261 LOC_BASEREG_ARG variables.
1263 2001-07-16 Orjan Friberg <orjanf@axis.com>
1265 * NEWS: New target CRIS.
1267 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
1269 * top.c (show_commands): Remove extern decl of history_get, it's
1270 already in readline/history.h.
1272 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
1274 * top.c (is_complete_command, init_cmd_lists, init_cli_cmds,
1275 execute_user_command, do_setshow_command, get_prompt, init_proc,
1276 serial_log_command): Remove extern declarations. Include
1277 cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h.
1278 * gdbcmd.h (execute_user_command): Remove declaration, it's already
1279 in cli/cli-script.h.
1280 * command.h (do_setshow_command): Remove declaration, it's already
1281 in cli/cli-setshow.h.
1282 * infrun.c: Include "cli/cli-script.h" for execute_user_command.
1283 * Makefile.in (infrun.o): Update dependencies.
1285 * cli/cli-setshow.h: Add comment for do_setshow_command.
1287 2001-07-16 Eli Zaretskii <eliz@is.elta.co.il>
1289 * cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
1290 call to chdir on this symbol rather than on __DJGPP__.
1291 (CANT_FORK) [__MSDOS__]: Move from here...
1292 * defs.h (CANT_FORK) [__MSDOS__]: ...to here.
1293 (GLOBAL_CURDIR) [__MSDOS__]: Define.
1295 2001-07-16 Orjan Friberg <orjanf@axis.com>
1297 * configure.tgt: Recognise the CRIS architecture.
1298 * config/cris/cris.mt: New file for CRIS target.
1299 * cris-tdep.c: New file for CRIS target.
1301 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
1303 * top.c (quit_cover, float_handler): Move definition up before use.
1304 (gdb_init): Move to end of file, to avoid calls to not yet defined
1308 2001-07-14 Andrew Cagney <ac131313@redhat.com>
1310 * serial.h (SERIAL_ASYNC): Delete.
1311 (DEPRECATED_SERIAL_FD): Delete.
1312 (SERIAL_DEBUG): Delete.
1313 (SERIAL_DEBUG_P): Delete.
1314 (SERIAL_DRAIN_OUTPUT): Delete.
1315 (SERIAL_FLUSH_OUTPUT): Delete.
1316 (SERIAL_FLUSH_INPUT): Delete.
1317 (SERIAL_SEND_BREAK): Delete.
1318 (SERIAL_RAW): Delete.
1319 (SERIAL_GET_TTY_STATE): Delete.
1320 (SERIAL_SET_TTY_STATE): Delete.
1321 (SERIAL_PRINT_TTY_STATE): Delete.
1322 (SERIAL_NOFLUSH_SET_TTY_STATE): Delete.
1323 (SERIAL_SETBAUDRATE): Delete.
1324 (SERIAL_SETSTOPBITS): Delete.
1325 (SERIAL_CAN_ASYNC_P): Delete.
1326 (SERIAL_IS_ASYNC_P): Delete.
1327 (SERIAL_UN_FDOPEN): Delete.
1328 (SERIAL_READCHAR): Delete.
1329 (SERIAL_CLOSE): Delete.
1330 (SERIAL_FDOPEN): Delete.
1331 (SERIAL_OPEN): Delete.
1332 * ser-unix.c: Update.
1333 * sparclet-rom.c: Update.
1334 * remote-bug.c: Update.
1337 * nindy-share/ttyflush.c: Update.
1338 * nindy-share/Onindy.c: Update.
1341 * remote-nindy.c: Update.
1343 * sparcl-tdep.c: Update.
1344 * sh3-rom.c: Update.
1346 * remote-utils.c: Update.
1347 * remote-st.c: Update.
1348 * remote-sds.c: Update.
1349 * remote-rdp.c: Update.
1350 * remote-os9k.c: Update.
1351 * remote-nrom.c: Update.
1352 * remote-mips.c: Update.
1353 * remote-es.c: Update.
1354 * remote-e7000.c: Update.
1355 * remote-array.c: Update.
1357 * nindy-share/nindy.c: Update.
1358 * monitor.c: Update.
1360 2001-07-14 Andrew Cagney <ac131313@redhat.com>
1362 * mn10200-tdep.c: Replace value_ptr with ``struct value *''.
1363 * mcore-tdep.c: Ditto.
1364 * sparc-tdep.c: Ditto.
1366 * rs6000-tdep.c: Ditto.
1367 * ppc-linux-tdep.c: Ditto.
1368 * m68hc11-tdep.c: Ditto.
1369 * ia64-tdep.c: Ditto.
1370 * i386-tdep.c: Ditto.
1371 * arm-linux-tdep.c: Ditto.
1372 * hppa-tdep.c: Ditto.
1373 * h8500-tdep.c: Ditto.
1374 * fr30-tdep.c: Ditto.
1375 * arm-tdep.c: Ditto.
1376 * alpha-tdep.c: Ditto.
1377 * d30v-tdep.c: Ditto.
1378 * d10v-tdep.c: Ditto.
1379 * m32r-tdep.c: Ditto.
1380 * mips-tdep.c: Ditto.
1381 * v850-tdep.c: Ditto.
1383 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
1385 * top.c (readline_line_completion_function, noop_completer): Move
1387 * completer.c (readline_line_completion_function, noop_completer):
1389 * gdbcmd.h (readline_line_completion_function, noop_completer):
1390 Move declarations from here...
1391 * completer.h (readline_line_completion_function, noop_completer):
1393 * corefile.c: Include completer.h.
1396 * Makefile.in: Update dependencies.
1398 2001-07-15 Eli Zaretskii <eliz@is.elta.co.il>
1400 * go32-nat.c (go32_create_inferior): Support command lines longer
1401 than 126 characters.
1403 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1405 * NEWS: New target 68HC11/68HC12.
1407 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1409 * utils.c (query): Remove tui hacks; tui must use the query_hook.
1410 * top.c (command_loop): Remove tui insert_mode hacks; don't call
1411 tuiCleanUp because this must be made with atexit by tui.
1412 * symfile.c (symbol_file_command): Remove call to TUIDO
1413 * stack.c (show_and_print_stack_frame_stub): Remove tui check;
1414 not necessary when using the selected frame hooks.
1415 (print_stack_frame_stub): Likewise.
1416 (print_frame_info_base): Likewise.
1417 (print_frame_info): Likewise.
1418 (up_silently_command): Likewise.
1419 (down_silently_command): Likewise.
1420 (show_stack_frame): Likewise for TUIDO.
1421 (select_frame): Likewise.
1422 (select_and_print_frame): Likewise.
1423 (stack_publish_stopped_with_no_frame): Remove.
1424 (select_and_maybe_print_frame): Remove.
1425 * main.c (captured_main): Remove tui_fileopen and tuiInit; tui
1426 must use the initialize ui hook.
1427 * infrun.c (normal_stop): Remove call to TUIDO; tui must use the
1428 selected frame hooks.
1429 * event-top.c (command_handler): Remove tui insert_mode hack.
1430 * defs.h: Remove TUIDO; Only include tui.h.
1431 * breakpoint.c (mention): Remove calls to TUIDO.
1432 (delete_breakpoint): Remove tui hacks; tui must install
1433 the breakpoint hooks.
1435 2001-07-14 Mark Kettenis <kettenis@gnu.org>
1437 * config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
1438 * config/i386/nm-linux.h: ...to here. Change comments about user
1441 * config/i386/xm-linux.h (HAVE_TERMIOS): Really remove.
1443 * Makefile.in (ALLDEPFILES): Add i386bsd-nat.c and i386bsd-tdep.c
1444 (i386bsd-tdep.o, i386bsd-nat.o): New targets.
1446 2001-07-13 Elena Zannoni <ezannoni@redhat.com>
1448 * remote-e7000.c (fetch_regs_from_dump): If register set is null,
1449 generate an internal error.
1450 (e7000_fetch_registers): Initialize variable 'wanted'.
1451 (e7000_wait): Initialize variable 'wanted_nopc'.
1452 (e7000_store_register): Fix sprintf compiler warnings.
1453 (sub2_from_pc): Ditto.
1454 (e7000_open): Close the descriptor, not the name.
1455 (e7000_load): Fix compiler warnings.
1456 (sub2_from_pc): Ditto.
1457 * Makefile.in (remote-e7000.o): Can now compile with -Werror.
1459 2001-07-13 Mark Kettenis <kettenis@gnu.org>
1461 * i386bsd-nat.c: Include <signal.h>, <stddef.h> and
1463 (store_inferior_registers): Wrap long line.
1464 (i386bsd_dr_get_status): Fix typo in comment.
1465 (_initialize_i386bsd_nat): New function. * i386bsd-tdep.c: New
1466 file. * config/i386/tm-fbsd.h (IN_SIGTRAMP): New define.
1467 (i386bsd_in_sigtramp): New prototype.
1468 (SIGTRAMP_START, SIGTRAMP_END): Redefine in terms...
1469 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): ...these new
1470 (external) variables.
1471 (SIGCONTEXT_PC_OFFSET): Removed.
1472 (FRAME_SAVED_PC): New define.
1473 (i386bsd_frame_saved_pc): New function. * config/i386/fbsd.mt
1474 (TDEPFILES): Add i386bsd-tdep.o.
1476 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
1478 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Use ISO C
1481 2001-07-13 Mark Kettenis <kettenis@gnu.org>
1483 * lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
1484 are no registered LWPs yet.
1486 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
1488 * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
1490 (CANNOT_STORE_REGISTER): Likewise.
1492 2001-07-12 Keith Seitz <keiths@redhat.com>
1494 * remote-rdp.c: Include "serial.h"
1496 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
1498 * gdbserver/remote-utils.c (remote_open): Set VMIN to 1
1499 in HAVE_TERMIO/HAVE_TERMIOS cases.
1501 2001-07-12 Mark Kettenis <kettenis@gnu.org>
1503 * lin-lwp.c (stop_wait_callback): Add support for flushing
1504 signals. Use that in favour of the old code to get rid of
1505 superfluous SIGINTs.
1506 (lin_lwp_wait): Use the new support in stop_wait_callback to
1507 flush all but one SIGINT.
1509 * i386-tdep.c (i386_extract_return_value): Undo 2001-07-11 changes
1511 (i386_store_return_value): Improve comments about storing
1512 floating-point return values.
1514 * config/arm/xm-linux.h, config/i386/xm-linux.h,
1515 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
1516 config/sparc/xm-linux.h, config/ia64/xm-linux.h (HAVE_TERMIOS):
1517 Removed. Taken care of by autoconf and terminal.h.
1519 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
1521 * mips-tdep.c (mips_type_needs_double_align): New function.
1522 (mips_push_arguments): Align o32 structs to even argument
1523 registers if necessary.
1525 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
1527 * config/djgpp/fnchange.lst: Add entries for
1528 mips-linux-nat.c and mips-linux-tdep.c.
1530 2001-07-12 Mark Kettenis <kettenis@gnu.org>
1532 * config/powerpc/xm-linux.h: Fix corrupted file.
1534 * configure.in: Add check for sigsetjmp.
1535 * config/m68k/xm-linux.h (HAVE_SIGSETJMP): Removed.
1536 * config/xm-sysv4.h (HAVE_SIGSETJMP): Removed.
1537 * configure, config.in: Regenerated.
1539 2001-07-11 Elena Zannoni <ezannoni@redhat.com>
1541 * config/sh/tm-sh.h (struct gdbarch_tdep): Add
1542 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
1545 * sh-tdep.c (sh_skip_prologue_hard_way): Rename from
1546 skip_prologue_hard_way().
1547 (skip_prologue_hard_way): Make it a function pointer.
1548 (sh_print_register): Use function pointer do_pseudo_register,
1549 instead of sh_do_pseudo_register.
1550 (sh_do_registers_info): Ditto.
1551 (sh_gdbarch_init): Initialize do_pseudo_register.
1552 (IS_MOV_TO_R14): Rename from IS_MOV_R14.
1553 (skip_prologue_hard_way): Update.
1554 (sh_gdbarch_init): Move setting of frame_chain,
1555 get_saved_register, init_extra_frame_info, push_arguments,
1556 extract_return_value, pop_frame, store_struct_return,
1557 extract_struct_value_address, use_struct_convention,
1558 init_extra_frame_info to before target specific settings.
1559 (sh_gdbarch_init): Initialize new tdep fields
1560 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
1562 (sh_push_arguments): Use new gdbarch_tdep fields
1563 {ARG0,ARGLAST}_REGNUM.
1564 (sh_saved_pc_after_call, sh_nofp_frame_init_saved_regs,
1565 sh_init_extra_frame_info, sh_push_return_address,
1566 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
1567 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update to use
1568 gdbarch_tdep->PR_REGNUM.
1569 (dr_reg_base_num, fv_reg_base_num): Move to earlier in the file.
1571 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
1573 * config/mips/tm-linux.h: Include "tm-linux.h" instead of copying
1574 from it. Move definitions of REALTIME_LO and REALTIME_HI above
1577 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
1579 * MAINTAINERS: List myself for MIPS/Linux
1582 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
1584 * gdbserver/remote-utils.c (remote_open): Only
1585 check for F_SETOWN if we had F_SETFL and FASYNC.
1587 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
1589 From Michael Fedrowitz <michael.fedrowitz@informatik.uni-ulm.de>:
1591 * config/m68k/linux.mh: Remove core-regset.o.
1592 * m68klinux-nat.c: Fix comment.
1593 (supply_gregset): Change argument to elf_gregset_t *.
1594 (supply_fpregset): Change argument to elf_fpregset_t *.
1595 (fetch_core_registers): New function.
1596 (linux_elf_core_fns): Define.
1597 (_initialize_m68k_linux_nat): New function.
1599 2001-07-11 Andrew Cagney <ac131313@redhat.com>
1601 * configure.tgt: Mark d10v as pure multi-arch.
1602 * config/d10v/tm-d10v.h: Delete file.
1603 * config/d10v/d10v.mt (TM_FILE): Delete.
1605 2001-07-10 Andrew Cagney <ac131313@redhat.com>
1607 * serial.h (typedef serial_t): Delete. Replace all references to
1608 serial_t with `struct serial *'.
1610 * nindy-share/ttyflush.c: Update.
1611 * nindy-share/ttyflush.c: Update.
1612 * nindy-share/Onindy.c: Update.
1613 * nindy-share/nindy.c: Update.
1614 * remote-rdp.c: Update.
1615 * remote-sds.c: Update.
1616 * remote-st.c: Update.
1617 * remote-nindy.c: Update.
1618 * remote-mips.c: Update.
1619 * remote-e7000.c: Update.
1620 * remote-os9k.c: Update.
1621 * remote-nrom.c: Update.
1622 * remote-es.c: Update.
1623 * remote-array.c: Update.
1625 * mon960-rom.c: Update.
1628 * ser-e7kpc.c: Update.
1629 * sparclet-rom.c: Update.
1631 * ser-tcp.c: Update.
1632 * ser-go32.c: Update.
1633 * sparcl-tdep.c: Update.
1634 * w89k-rom.c: Update.
1636 * sh3-rom.c: Update.
1638 * ser-pipe.c: Update.
1639 * ser-unix.c: Update.
1640 * ser-unix.h: Update.
1644 2001-07-11 J.T. Conklin <jtc@redback.com>
1646 From Greg McGary <greg@mcgary.org>:
1647 * gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
1649 (input_interrupt): Don't block on read, in case we got redundant
1650 SIGIO. Don't gripe about redundant SIGIO.
1651 * gdbserver/low-hppabsd.c (mywait): Use waitpid(). Enable SIGIO
1652 handler while waiting.
1653 * gdbserver/low-linux.c (mywait): Likewise.
1654 * gdbserver/low-nbsd.c (mywait): Likewise.
1655 * gdbserver/low-sparc.c (mywait): Likewise.
1657 2001-07-11 Keith Seitz <keiths@redhat.com>
1659 * infrun.c (print_stop_reason): Add missing uiout field
1660 "reason" for SIGNAL_RECEIVED case.
1662 2001-07-11 Mark Kettenis <kettenis@gnu.org>
1664 * config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
1665 Remove unused macro's.
1667 * config/powerpc/nm-linux.h (NO_SYS_REG_H): Remove, it's no longer
1670 2001-07-11 Eli Zaretskii <eliz@is.elta.co.il>
1672 * go32-nat.c (info_dos_cmdlist): New variable.
1673 (go32_info_dos_command): New function.
1674 (_initialize_go32_nat): Convert all DOS-specific commands into
1675 subcommands of "info dos". Suggested by Andrew Cagney
1676 <ac131313@redhat.com>.
1678 2001-07-11 Mark Kettenis <kettenis@gnu.org>
1680 * config/nm-linux.h: Fix comments.
1682 * thread-db.c (enable_thread_event_reporting): Correct warning
1683 message about getting thread death breakpoint.
1684 Reported by John S Kallal <jskallal@home.com>.
1686 * i386-tdep.c (i386_extract_return_value): "Fix" comment.
1687 (i386_store_return_value): Frob FPU status and tag word to make
1688 sure the return value is the only value on the FPU stack.
1690 * config/tm-linux.h: Do not include <signal.h>. Instead provide
1691 reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
1693 * config/nm-linux.h: Include <signal.h>.
1694 [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
1695 (__SIGRTMAX + 1) respectively.
1697 2001-07-10 Andrew Cagney <ac131313@redhat.com>
1699 * mcore-rom.c: Include "serial.h".
1700 * Makefile.in (mcore-rom.o): Depends on "serial.h".
1702 2001-07-10 Andrew Cagney <ac131313@redhat.com>
1704 * Makefile.in (remote-bug.o): Depends on serial.h.
1705 * remote-bug.c: Include "serial.h".
1706 * MAINTAINERS: Mark m88k target as buildable.
1709 2001-07-10 Jim Blandy <jimb@redhat.com>
1711 Clean up the D10V port so that GDB and the target program no
1712 longer disagree on how big pointers are.
1713 * findvar.c (value_from_register): Remove special case code for D10V.
1714 * printcmd.c (print_frame_args): Same.
1715 * valops.c (value_at, value_fetch_lazy): Same.
1716 * values.c (unpack_long): Same.
1717 * gdbarch.sh: Changes to effect the following:
1718 * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
1719 gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
1720 set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
1721 gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
1722 set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
1723 gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
1724 set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
1725 gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
1726 set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
1727 gdbarch_d10v_convert_daddr_to_raw_ftype,
1728 gdbarch_d10v_convert_daddr_to_raw,
1729 set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
1730 gdbarch_d10v_convert_iaddr_to_raw_ftype,
1731 gdbarch_d10v_convert_iaddr_to_raw,
1732 set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
1733 * gdbarch.c: Delete the corresponding definitions.
1734 (struct gdbarch): Delete members d10v_make_daddr,
1735 d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
1736 d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
1737 (startup_gdbarch): Remove initializers for the above.
1738 (verify_gdbarch, gdbarch_dump): Don't verify or dump them any
1740 * d10v-tdep.c (d10v_register_virtual_type): Rather that
1741 claiming the stack pointer and PC are 32 bits long (which they
1742 aren't), say that the stack pointer is an int16_t, and the
1743 program counter is a function pointer. This allows the rest
1744 of GDB to make the appropriate conversions between the code
1745 pointer format and real addresses.
1746 (d10v_register_convertible, d10v_register_convert_to_virtual,
1747 d10v_register_convert_to_raw): Delete function; no registers
1748 are convertible now, so we use
1749 generic_register_convertible_not instead.
1750 (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
1752 (d10v_push_arguments, d10v_extract_return_value): Remove special
1753 cases for code and data pointers.
1754 (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
1755 the target agree on how large pointers are. Say that addresses
1756 are 32 bits long. Register the address_to_pointer and
1757 pointer_to_address conversion functions. Since no registers are
1758 convertible now, register generic_register_convertible_not as the
1759 gdbarch_register_convertible method instead of
1760 d10v_register_convertible. Remove registrations for
1761 d10v_register_convert_to_virtual,
1762 d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
1763 gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
1764 gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
1765 gdbarch_d10v_convert_iaddr_to_raw.
1767 * printcmd.c (print_scalar_formatted): If we are printing an
1768 address, remember that TARGET_ADDR_BIT is not always equal to
1771 * valops.c (value_cast): When casting a pointer to an integer,
1772 don't convert it to an address.
1774 2001-07-10 Andrew Cagney <ac131313@redhat.com>
1776 * remote-utils.h (struct serial): Declare as opaque. Remove
1777 include of "serial.h".
1778 * Makefile.in (remote_utils_h): Update.
1780 * monitor.h (struct serial): Declare as opaque. Remove include of
1782 (struct monitor_ops): Replace serial_t with `struct serial *'.
1783 * monitor.c (monitor_desc): Ditto.
1785 2001-07-10 Daniel Jacobowitz <drow@mvista.com>
1787 * mips-linux-tdep.c: New file.
1788 * mips-linux-nat.c: New file.
1789 * config/mips/linux.mh: New file.
1790 * config/mips/linux.mt: New file.
1791 * config/mips/xm-linux.h: New file.
1792 * config/mips/nm-linux.h: New file.
1793 * config/mips/tm-linux.h: New file.
1794 * configure.host: Recognize mips*-*-linux*.
1795 * configure.tgt: Likewise.
1796 * NEWS: Mention mips*-*-linux* port.
1798 2001-07-09 Andrew Cagney <ac131313@redhat.com>
1800 * serial.h (struct serial): Rename `struct _serial_t'.
1801 * serial.c (XMALLOC): Define.
1802 (serial_open): Update. Use XMALLOC.
1803 (serial_fdopen): Ditto.
1805 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1807 * gdbtypes.h (builtin_type_void_data_ptr): Rename
1809 * gdbtypes.c (builtin_type_void_data_ptr): Update.
1810 (build_gdbtypes): Update.
1811 (_initialize_gdbtypes): Update.
1812 * values.c (value_as_pointer): Update.
1813 * utils.c (host_pointer_to_address): Update.
1814 (address_to_host_pointer): Update.
1816 2001-07-08 Andrew Cagney <ac131313@redhat.com>
1818 * remote-udi.c (udi_wait): Make type, instead of name, of first
1821 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1823 * ser-mac.c: Make obsolete.
1824 * Makefile.in (ser-mac.o): Ditto.
1826 2001-07-08 Eli Zaretskii <eliz@is.elta.co.il>
1828 * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
1829 (read_memory_region, get_descriptor, display_descriptor)
1830 (go32_sldt, go32_sgdt, go32_sidt): New functions.
1831 (top-level): Include ctype.h, utsname.h, dos.h, and go32.h. Ifdef
1832 away `disable' from dos.h, since breakpoint.h defines an enum
1833 member of the same name, and GCC 2.7.2 barfs.
1834 (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
1835 dos-gdt, and dos-idt, all of them in the "info" class
1837 2001-07-07 Kevin Buettner <kevinb@redhat.com>
1839 * procfs.c (create_procinfo): Allocate space for saved_entryset
1841 (destroy_one_procinfo): Free space allocated to saved_entryset
1844 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1846 * TODO (5.1): Update.
1848 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1850 * symtab.c (main_name): New function.
1851 (set_main_name): New function.
1852 * symtab.h: Declare.
1855 From 2000-03-05 Anthony Green <green@redhat.com>:
1856 * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
1858 * blockframe.c (inside_main_func): Use main_name instead of
1860 * symtab.c (find_main_psymtab): Ditto.
1861 * source.c (select_source_symtab): Ditto.
1862 * nlmread.c (nlm_symfile_read): Ditto.
1863 * rs6000-tdep.c (skip_prologue): Ditto.
1865 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1867 * TODO: Convert most items into PRs.
1869 2001-07-07 Mark Kettenis <kettenis@gnu.org>
1871 * lin-lwp.c (status_to_str): New function.
1872 (lin_lwp_wait): Use it to print debug messages where appropriate.
1874 2001-07-06 Michael Chastain <chastain@redhat.com>
1876 * i387-tdep.c (print_i387_value): Fix pointer glitch.
1878 2001-07-07 Mark Kettenis <kettenis@gnu.org>
1880 * lin-lwp.c (count_events_callback): Fix formatting. Turn check
1881 commented with "paranoia" into gdb_assert.
1882 (select_event_lwp_callback): Likewise.
1883 (cancel_breakpoints_callback): Bail out early if LP is the event
1884 LWP. Add comment about backup up breakpoints. Fix formatting and
1886 (select_event_lwp): Make solely repsonsible for switching event
1887 LWP. Fix formatting and remove bogus "ERROR" debug message.
1888 Don't backup breakpoints from here.
1889 (lin_lwp_wait): Don't touch LP->status, let select_event_lwp
1890 handle that. Only call select_event_lwp if we're not waiting for
1891 a specific LWP, i.e. when PID == -1. Backup breakpoints from here.
1893 2001-07-06 Michael Snyder <msnyder@redhat.com>
1895 * procfs.c (procfs_resume): Silence noisy warning.
1897 2001-06-12 Michael Snyder <msnyder@redhat.com>
1899 * lin-lwp.c: Prevent thread starvation by using a monte carlo
1900 method to choose which of several event threads to handle next.
1902 (stop_wait_callback): Defer pushback of breakpoint events until
1903 later; add SIGTRAP events to the queue of unhandled events.
1904 Keep calling waitpid until SIGSTOP retrieved. If more than one
1905 non-SIGSTOP event is retrieved, push them back onto the process
1907 (count_events_callback, select_singlestep_lwp_callback,
1908 select_event_lwp_callback, cancel_breakpoints_callback,
1909 select_event_lwp): New functions. Implement monte carlo method
1910 for selecting which of several SIGTRAP threads to handle next.
1911 Push back the breakpoint event for all threads other than the
1913 (lin_lwp_wait): Call select_event_lwp to decide which of several
1914 sigtrapped lwps to handle next.
1915 (resume_callback): Disable code that attempts to handle
1916 step_resume breakpoints. Let core gdb handle this.
1918 2001-07-06 Jim Blandy <jimb@redhat.com>
1920 * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
1921 * gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
1922 (build_gdbtypes): Initialize it.
1923 (_initialize_gdbtypes): Swap it.
1925 2001-07-04 Daniel Jacobowitz <drow@mvista.com>
1927 * mips-tdep.c (mips32_op): Correct offset.
1928 (itype_op): Likewise.
1929 (itype_rs): Fix formatting.
1930 (itype_immediate): Fix formatting.
1931 (jtype_op): Correct offset.
1932 (jtype_target): Fix formatting.
1933 (rtype_op): Correct offset.
1934 (rtype_rs): Fix formatting.
1935 (rtype_rt): Likewise.
1936 (rtype_rd): Likewise.
1937 (rtype_shamt): Likewise.
1938 (rtype_funct): Likewise.
1940 (mips32_next_pc): Fix formatting and comments. Recognize
1941 coprocessor 1 branches. Check the correct field for BLT family
1942 branches. Use itype_rt instead of itype_rs for the second register
1943 of a BNE or BNEL branch. Move (unreachable) default case.
1945 2001-07-04 Andrew Cagney <ac131313@redhat.com>
1947 * ui-out.h (struct ui_out_impl): Add field is_mi_like_p.
1948 (ui_out_is_mi_like_p): Declare.
1949 * ui-out.c (ui_out_is_mi_like_p): Define.
1950 (default_ui_out_impl): Initialize is_mi_like_p to zero.
1951 * cli-out.c (cli_ui_out_impl): Ditto.
1952 * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p.
1953 (watchpoint_check, print_one_breakpoint, mention): Ditto.
1954 * infrun.c (print_stop_reason, normal_stop): Ditto.
1956 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
1958 * mips-tdep.c (mips_software_single_step): New function.
1959 * config/mips/tm-mips.h: Add prototype for
1960 mips_software_single_step.
1962 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
1964 * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
1966 (fill_gregset): Likewise.
1968 2001-07-05 Andrew Cagney <ac131313@redhat.com>
1970 * objfiles.c (open_mapped_file): Use lbasename instead of
1973 2001-07-05 Jim Blandy <jimb@redhat.com>
1975 * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
1976 show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
1977 d10v_write_sp, d10v_write_fp, d10v_read_fp,
1978 d10v_push_return_address): Call the functions d10v_make_daddr,
1979 d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
1980 d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
1981 D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
1982 D10V_CONVERT_DADDR_TO_RAW.
1984 * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
1986 2001-07-05 Mark Kettenis <kettenis@gnu.org>
1988 * config/i386/xm-go32.h (HOST_I386): Removed.
1989 * config/i386/xm-linux.h (HOST_I386): Removed.
1991 2001-07-04 Mark Kettenis <kettenis@gnu.org>
1993 * i387-tdep.c (print_i387_value): Add extra space after final full
1996 2001-07-04 Andrew Cagney <ac131313@redhat.com>
1998 * TODO (5.1): Update. Doco changes committed.
2000 2001-06-29 Andrew Cagney <ac131313@redhat.com>
2002 * config/arm/tm-arm.h: Include "floatformat.h".
2004 2001-06-29 Andrew Cagney <ac131313@redhat.com>
2006 * i387-tdep.c: Include "gdb_assert.h".
2007 (print_i387_value): Use extract_floating to extract the FP value
2008 from a zero padded local buffer.
2010 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2012 * TODO: Delete all thread items. The thread code was overhauled.
2014 2001-07-04 Elena Zannoni <ezannoni@redhat.com>
2016 * memattr.c (create_mem_region): Move n to next memory region,
2017 to avoid infinite loop.
2019 * memattr.h: Add copyright statement.
2022 2001-07-04 Jim Blandy <jimb@redhat.com>
2024 * dwarf2read.c (struct partial_die_info): New member: has_pc_info.
2025 (read_partial_die): Delete fourth argument; we return this info in
2026 the struct partial_die_info object itself now.
2027 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
2028 has_pc_info field of the partial die struct, rather than passing a
2029 variable by reference to read_partial_die.
2031 * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
2032 code in loop condition.
2034 2001-07-03 Michael Snyder <msnyder@redhat.com>
2036 * thread_db (find_new_threads_callback, thread_db_thread_alive,
2037 attach_thread): Update comments.
2039 2001-06-29 Ken Whaley <ken@believe.com>
2041 * thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
2042 to TD_THR_UNKNOWN when looking for defunct zombie threads.
2043 (thread_db_thread_alive): Ditto.
2044 (find_new_threads_callback): Ditto.
2046 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
2048 * MAINTAINERS: Add myself to the write-after-approval list.
2050 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
2052 * solib-svr4.c: Include "elf/mips.h".
2053 (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
2055 2001-07-02 Jim Blandy <jimb@redhat.com>
2057 * dwarf2read.c (read_comp_unit, sibling_die, dump_die,
2058 dump_die_list, store_in_ref_table, follow_die_ref): Make these
2059 static; they're private functions.
2061 2001-07-01 Mark Elbrecht <snowball@bigfoot.com>
2063 * coffread.c (coff_symfile_read): Parse DWARF2 info if present.
2065 2001-06-28 Elena Zannoni <ezannoni@redhat.com>
2067 * TODO: Add import of readline 4.2 as a gdb 5.2 task.
2069 2001-06-29 Andrew Cagney <ac131313@redhat.com>
2071 * config/djgpp/fnchange.lst: Sort.
2073 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2075 * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
2076 mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
2078 2001-06-29 Andreas Jaeger <aj@suse.de>
2080 * MAINTAINERS: Add myself to the write-after-approval list.
2082 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2084 * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro.
2085 (get_hex_word): Don't use HOST_BYTE_ORDER.
2086 (array_fetch_registers): Add variable ``reg''. Use
2087 store_unsigned_integer to byte-swap the register. Delete unused
2090 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2092 * MAINTAINERS: Add Per Bothner to Java maintainers.
2094 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2096 * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
2097 * rdi-share/hostchan.h (__unix): Hack, provide a default value.
2098 * rdi-share/host.h (__unix): Hack, define when __NetBSD__.
2100 * MAINTAINERS: Update. arm-elf builds.
2102 2001-06-28 Jim Blandy <jimb@redhat.com>
2104 * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.
2106 * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention,
2107 d10v_breakpoint_from_pc, d10v_register_byte,
2108 d10v_register_raw_size, d10v_register_virtual_size,
2109 d10v_register_virtual_type, d10v_register_convertible,
2110 d10v_register_convert_to_virtual, d10v_register_convert_to_raw,
2111 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
2112 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
2113 d10v_store_struct_return, d10v_store_return_value,
2114 d10v_extract_struct_value_address, d10v_frame_saved_pc,
2115 d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue,
2116 d10v_frame_chain, d10v_frame_init_saved_regs,
2117 d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc,
2118 d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp,
2119 d10v_push_return_address, d10v_push_arguments,
2120 d10v_extract_return_value): Make these functions static.
2122 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2124 From Fernando Nasser:
2125 * infrun.c (handle_inferior_event): Handle "nexti" inside function
2128 2001-06-28 Michael Snyder <msnyder@redhat.com>
2130 * infrun.c (handle_inferior_event): Replace prev_pc test in all
2131 calls to bpstat_stop_status (removed in 1999-09-24). This test
2132 helps distinguish stepping over a breakpoint trap from stepping
2133 thru a jump to the instruction after a breakpoint trap.
2134 (handle_inferior_event): Don't bother writing the PC if
2135 DECR_PC_AFTER_BREAK is zero (optimization).
2136 * breakpoint.c (bpstat_stop_status): Add comment explaining the
2137 purpose and usage of the "not_a_breakpoint" argument in computing
2138 the breakpoint address.
2140 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2142 From 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2143 * monitor.c (setmem_resp_delim_pattern): New regexp pattern.
2144 (setreg_resp_delim_pattern): Likewise.
2145 (setmem_resp_delim_fastmap): New buffer.
2146 (setreg_resp_delim_fastmap): Likewise.
2147 (monitor_open): Initialize above regexp if they are defined.
2148 (monitor_write_memory): Use regexp to check the result of write.
2149 (monitor_store_register): Likewise to check result of register set.
2151 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2153 From 2000-06-14 John Marshall <john_w_marshall@palm.com>:
2154 * coff-solib.c: Include symfile.h and objfiles.h to make
2155 OBJF_SHARED visible.
2157 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2159 * configure.in (--enable-gdbmi): Enable by default.
2160 * configure: Regenerate.
2164 2001-06-28 Joel Brobecker <brobecker@act-europe.fr>
2166 * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment
2167 explaining the consequences of always returning zero. No code
2170 2001-06-28 Andrew Cagney <ac131313@redhat.com>
2172 From 2001-06-08 Daniel Jacobowitz <djacobowitz@mvista.com>:
2173 * defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65
2174 to TARGET_SIGNAL_REALTIME_127.
2175 * target.c (struct signals): Add SIG63 to SIG127.
2176 (target_signal_from_host): Handle up to 127 signals.
2177 (do_target_signal_to_host): Likewise.
2179 2001-06-27 Andrew Cagney <ac131313@redhat.com>
2181 * remote-sds.c (sds_start_remote): Change type of ``c'' to int
2182 from possibly unsigned char.
2184 2001-06-27 Andrew Cagney <ac131313@redhat.com>
2186 * ser-ocd.c: Delete file.
2187 * Makefile.in (ALLDEPFILES): Remove ser-ocd.c
2188 (ser-ocd.o): Delete target.
2192 2001-06-27 Andrew Cagney <ac131313@redhat.com>
2194 * MAINTAINERS (Write After Approval): Sort.
2195 (Past Maintainers): Daniel Berlin stepped down as C++ maintainer.
2197 2001-06-26 Andrew Cagney <ac131313@redhat.com>
2199 * breakpoint.c (breakpoint_1): Always output the breakpoint
2200 headings. Leave it to ui-out to decide which
2202 2001-06-25 Andrew Cagney <ac131313@redhat.com>
2204 * stack.c (print_frame): For ui_out, output a list of arguments.
2206 2001-06-25 Kevin Buettner <kevinb@redhat.com>
2208 * MAINTAINERS (paper trail): Update.
2210 2001-06-25 Michael Snyder <msnyder@redhat.com>
2212 * infrun.c: Eliminate the "thread_step_needed" state variable,
2213 and replace it with a relatively simple test in resume.
2214 (resume): Replace thread_step_needed logic with a test for
2215 stepping, breakpoint_here_p and breakpoints_inserted.
2216 Move CANNOT_STEP_BREAKPOINT logic to after thread_step logic.
2217 (proceed): Discard thread_step_needed logic.
2218 (wait_for_inferior, fetch_inferior_event, handle_inferior_event):
2219 Discard thread_step_needed logic.
2221 2001-06-24 Fernando Nasser <fnasser@redhat.com>
2223 * remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
2224 * rdi-share/host.h: Add missing parenthesis in conditional.
2226 2001-06-22 J.T. Conklin <jtc@redback.com>
2228 * configure.in: include nlist.h when checking for member som_addr
2230 * configure: regenerate.
2232 2001-06-21 Keith Seitz <keiths@redhat.com>
2234 * cli-out.c (cli_out_new): Initialize new structure member
2237 2001-06-20 Andrew Cagney <ac131313@redhat.com>
2239 * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
2240 (table_header_ftype): Ditto.
2241 * cli-out.c (cli_table_header): Update.
2242 * ui-out.c (ui_out_table_header): Update.
2243 (uo_table_header): Update.
2244 (default_table_header): Update.
2245 (append_header_to_list): Update.
2246 (struct ui_out_header): Add field ``col_name''.
2247 (append_header_to_list): Use xstrdup. Initialize col_name.
2248 * breakpoint.c (breakpoint_1): Pass COL_NAME to
2249 ui_out_table_header.
2251 2001-06-19 Andrew Cagney <ac131313@redhat.com>
2253 * cli-out.c: Include "gdb_assert.h'.
2254 (struct ui_out_data): Add field ``suppress_output.
2255 (cli_table_begin): When NR_ROWS is zero, suppress_output.
2256 (cli_table_end): Clear suppress_output.
2257 (cli_table_body): Check suppress_output.
2258 (cli_table_header, cli_begin): Ditto.
2259 (cli_end, cli_field_int, cli_field_skip): Ditto.
2260 (cli_field_string, cli_field_fmt, cli_spaces): Ditto.
2261 (cli_text, cli_message, cli_wrap_hint): Ditto.
2262 * breakpoint.c (breakpoint_1): Close the ui_out table before
2263 printing the breakpoint not found message.
2265 2001-06-18 Andrew Cagney <ac131313@redhat.com>
2267 * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
2268 (default_table_begin): Ditto.
2269 (uo_table_begin): Ditto.
2270 * cli-out.c (cli_table_begin): Ditto.
2271 * ui-out.h (ui_out_table_begin): Update
2272 (table_begin_ftype): Update.
2273 * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
2276 2001-06-16 Andrew Cagney <ac131313@redhat.com>
2278 * breakpoint.c (breakpoint_1): Restructure. Compute the
2279 nr_printable_breakpoints. Move the header output to before the
2280 main print breakpoints loop.
2281 (user_settable_breakpoint): New function.
2283 2001-06-18 Andrew Cagney <ac131313@redhat.com>
2285 * infrun.c, breakpoint.c: Use strncmp as the "mi" test. Allow,
2286 "mi", "mi0" and "mi1".
2288 2001-06-17 Andrew Cagney <ac131313@redhat.com>
2290 * gdbarch.sh: Generate an error when conflicting macro
2291 definitions. Generate an error when both pure multi-arch and
2293 * gdbarch.h, gdbarch.c: Regenerate.
2294 * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
2296 2001-06-17 Andrew Cagney <ac131313@redhat.com>
2298 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
2299 GDB_MULTI_ARCH_PARTIAL from two.
2301 2001-06-17 Fernando Nasser <fnasser@redhat.com>
2303 From 2001-06-15 Eirik Fuller <eirik@hackrat.com>
2304 * cli/cli-script.c (free_command_lines): Reset list pointer.
2306 2001-06-16 Andrew Cagney <ac131313@redhat.com>
2308 * arch-utils.c (init_frame_pc_default): New function
2309 * arch-utils.h (init_frame_pc_default): Declare.
2310 * gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
2311 not init_frame_pc_noop.
2312 * gdbarch.h, gdbarch.c: Re-generate.
2313 * blockframe.c (INIT_FRAME_PC): Delete macro definition.
2314 * mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
2317 2001-06-16 Andrew Cagney <ac131313@redhat.com>
2319 * gdbarch.c: Regenerate. Out-of-sync with gdbarch.sh.
2321 2001-06-15 Andrew Cagney <ac131313@redhat.com>
2323 * gdbarch.sh (CANNOT_FETCH_REGISTER): Multi-arch.
2324 (CANNOT_STORE_REGISTER): Ditto.
2325 * infptrace.c (CANNOT_FETCH_REGISTER): Delete definition.
2326 (CANNOT_STORE_REGISTER): Ditto.
2327 * regcache.c (CANNOT_STORE_REGISTER): Ditto.
2328 * lynx-nat.c (CANNOT_STORE_REGISTER): Ditto.
2329 * arch-utils.h (cannot_register_not): Define.
2330 * arch-utils.c (cannot_register_not): Declare.
2332 2001-06-15 Andrew Cagney <ac131313@redhat.com>
2334 * gdbarch.sh: Clarify pre/post default
2335 (INIT_FRAME_PC_FIRST, INIT_FRAME_PC): Multiarch.
2336 * blockframe.c (get_prev_frame): Remove #ifdef from around
2337 INIT_FRAME_PC_FIRST call.
2338 * arch-utils.c (init_frame_pc_noop): Define.
2339 * arch-utils.h (init_frame_pc_noop): Declare.
2340 * config/mips/tm-mips.h (INIT_FRAME_PC_FIRST): Delete.
2341 (INIT_FRAME_PC, mips_init_frame_pc_first): Ditto.
2342 * mips-tdep.c (mips_init_frame_pc_first): Make static.
2343 (mips_gdbarch_init): Initialize init_frame_pc_first.
2344 (mips_dump_tdep): Update.
2346 2001-06-15 Michael Snyder <msnyder@redhat.com>
2348 * infrun.c (context_switch): New function. Abstract the operation
2349 of saving and restoring infrun's state when switching threads.
2350 (handle_inferior_event): Normalize the handling of the 'thread hop'
2351 event (when the wrong thread hits a thread-specific breakpoint,
2352 and we need to solo-step that thread past the breakpoint).
2353 Call keep_going, instead of target_resume. Handle the subsequent
2354 singlestep-trap as a normal event instead of just resuming.
2356 2001-06-15 Andrew Cagney <ac131313@redhat.com>
2358 * arch-utils.c (core_addr_identity): New function. Rename
2359 default_convert_from_func_ptr_addr.
2360 * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Update.
2361 (ADDR_BITS_REMOVE): Define. Default to core_addr_identity.
2362 * defs.h (ADDR_BITS_REMOVE): Delete macro definition.
2363 * config/mips/tm-mips.h (ADDR_BITS_REMOVE): Delete definition.
2364 * mips-tdep.c (mips_addr_bits_remove): Make static.
2365 (mips_gdbarch_init): Initialize addr_bits_remove.
2367 2001-06-15 Andrew Cagney <ac131313@redhat.com>
2369 From 2001-02-26 D.J. Barrow <djbarrow@de.ibm.com>:
2370 * configure.tgt: Add S/390 31 & 64 bit target configuration.
2371 * configure.host: Ditto for host.
2373 2001-06-15 Andrew Cagney <ac131313@redhat.com>
2375 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
2376 (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
2378 * gdbarch.h, gdbarch.c: Regenerate.
2379 * values.c (value_being_returned): Change the reference to
2380 EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
2382 2001-06-15 Joel Brobecker <brobecker@act-europe.fr>
2384 * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
2385 Write After Approval list.
2387 2001-06-14 Michael Snyder <msnyder@redhat.com>
2389 * remote.c (show_remote_protocol_qSymbol_packet_cmd,
2390 set_remote_protocol_qSymbol_packet_cmd): New functions.
2391 (init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
2392 (remote_check_symbols): New function. Implement qSymbol packet,
2393 allowing target to request symbol lookup service from gdb.
2394 (remote_open_1, remote_async_open_1): Call remote_check_symbols,
2395 allowing symbol lookup from exec_bfd on connection to target.
2396 (remote_new_objfile): New function. Catch new objfile notifications
2397 from shared library module, and call remote_check_symbols.
2398 (_initialize_remote): Hook remote_new_objfile into the shared
2399 library notification chain. Add "set remote symbol-lookup" command.
2401 2001-06-14 Keith Seitz <keiths@redhat.com>
2403 * tracepoint.c (trace_command): We now have tracepoint
2404 events. Get rid of those ugly hooks.
2405 (tracepoint_operation): Likewise.
2406 (trace_pass_command): Likewise.
2408 2001-06-13 Michael Snyder <msnyder@redhat.com>
2410 * gdbthread.h (struct thread_info): Add new fields:
2411 current_line, current_symtab, step_sp, for saved infrun state.
2412 * thread.c (save_infrun_state, load_infrun_state): Save and
2413 restore current_line, current_symtab, and step_sp.
2414 (add_thread): Rather than adding assignments to initialize
2415 the new fields, just use memset (tp, 0, sizeof (*tp).
2416 This way future new fields will not be overlooked.
2417 * infrun.c (handle_inferior_event): Save and restore save_sp,
2418 current_line, and current_symtab when switching threads.
2420 2001-06-13 Elena Zannoni <ezannoni@redhat.com>
2422 * MAINTAINERS: Add Andrew Cagney as co-maintainer of
2425 2001-06-11 Andrew Cagney <ac131313@redhat.com>
2427 * symtab.c (lookup_symtab_1): Replace basename with lbasename.
2428 (lookup_partial_symtab, file_matches): Ditto.
2429 (make_source_files_completion_list): Ditto.
2430 (make_file_symbol_completion_list): Ditto. Make local char*
2431 variable ``tail'' constant.
2432 (make_source_files_completion_list): Ditto with ``base_name''.
2433 * source.c (open_source_file): Use lbasename. Make ``p'' const
2436 2001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
2438 * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
2439 (SLASH_STRING): Remove unused definitions.
2440 * config/i386/xm-cygwin.h: Likewise.
2442 2001-06-12 Andrew Cagney <ac131313@redhat.com>
2444 * ui-out.c (ui_out_list_begin): Add parameter ``id''.
2445 (make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
2446 * ui-out.h: Update declarations.
2448 Mon Jun 11 17:26:43 2001 Andrew Cagney <cagney@b1.cygnus.com>
2450 * source.c (openp): Make parameters ``path'' and ``string''
2452 (openp): Use alloca to safely duplicate ``string''. Make local
2453 variables ``p'' and ``p1'' constant. Delete char* casts.
2456 * symtab.c (lookup_symtab_1): Make parameter ``name'' constant.
2457 (lookup_symtab, lookup_partial_symtab): Ditto.
2458 * symtab.h (lookup_symtab, lookup_partial_symtab): Update.
2460 2001-06-11 Andrew Cagney <ac131313@redhat.com>
2462 * ui-out.h (ui_out_table_begin): Make char* parameters constant.
2463 (ui_out_table_header, ui_out_field_int): Ditto.
2464 (ui_out_field_core_addr, ui_out_field_string): Ditto.
2465 (ui_out_field_stream, ui_out_field_fmt): Ditto.
2466 (ui_out_field_skip, ui_out_text, ui_out_message): Ditto.
2467 * ui-out.c (ui_out_table_begin, ui_out_table_header): Update.
2468 (ui_out_field_core_addr, ui_out_field_stream): Update.
2469 (ui_out_field_string, ui_out_field_fmt): Update.
2470 (ui_out_text, ui_out_message): Update.
2471 (append_header_to_list): Make char* parameters constant.
2472 (uo_table_header, uo_table_begin): Ditto.
2473 (uo_field_int, uo_field_skip): Ditto.
2474 (uo_field_string, uo_field_fmt): Ditto.
2475 (uo_text, uo_message): Ditto.
2477 2001-06-11 Eli Zaretskii <eliz@is.elta.co.il>
2479 * completer.c (gdb_completer_loc_break_characters): New variable.
2480 (line_completion_function): If we are completing on locations,
2481 back up the start of word pointer past all characters which can
2482 appear in a location spec.
2483 (location_completer): New function.
2485 * completer.h: Add prototype for location_completer.
2487 * symtab.c (make_source_files_completion_list)
2488 (add_filename_to_list, not_interesting_fname): New functions.
2489 (filename_seen): New function, body extracted from
2490 output_source_filename.
2491 (output_source_filename): Call filename_seen to check if the file
2492 was already printed.
2493 (make_symbol_completion_list): If TEXT includes a
2494 double-quoted string, return an empty list, not NULL.
2495 (make_file_symbol_completion_list): New function, similar to
2496 make_symbol_completion_list but with an additional argument
2499 * symtab.h (make_file_symbol_completion_list)
2500 (make_source_files_completion_list): Add prototypes.
2502 * breakpoint.c (_initialize_breakpoint): Make location_completer
2503 be the completion function for all commands which set breakpoints
2505 (top-level): #include "completer.h".
2507 * tracepoint.c (_initialize_tracepoint): Make location_completer
2508 be the completion function for the "trace" command.
2509 (top-level): #include "completer.h".
2511 * printcmd.c (_initialize_printcmd): Make location_completer be
2512 the completion function for the "print", "inspect", "call", and
2513 "disassemble" commands.
2514 (top-level): #include "completer.h".
2516 * infcmd.c (_initialize_infcmd): Make location_completer be the
2517 completion function for the "go", "jump", and "until" commands.
2518 (top-level): #include "completer.h".
2520 2001-06-10 Christopher Faylor <cgf@redhat.com>
2522 * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
2523 * utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
2524 * values.c (unpack_double): Remove obsolete check for _MSC_VER.
2526 * m32r-rom.c: Ditto.
2528 * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for
2530 (get_ds_base): Remove _MSC_VER version of this function.
2531 * nindy-share/ttyflush.c: Ditto.
2532 * rdi-share/host.h: Ditto.
2533 * ser-go32.c (dos_readchar): Remove call to obsolete function.
2534 * remote-sim.c (gdb_os_poll_quit): Ditto.
2535 * remote-e7000.c (expect): Remove obsolete #if 0'ed code.
2537 * main.c (captured_main): Eliminate special Cygwin checks.
2538 * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
2540 2001-06-09 Andrew Cagney <ac131313@redhat.com>
2542 * Makefile.in (gdbcmd_h): Add ui_out_h.
2543 (breakpoint.o, infcmd.o, main.o, printcmd.o, stack.o): Ditto.
2544 (thread.o, top.o): Ditto.
2546 * ui-out.h (table_begin_ftype): Make string parameters constant.
2547 (table_header_ftype): Ditto.
2548 (field_int_ftype): Ditto.
2549 (field_skip_ftype): Ditto.
2550 (field_string_ftype): Ditto.
2551 (field_fmt_ftype): Ditto.
2552 (text_ftype): Ditto.
2553 (message_ftype): Ditto.
2554 * cli-out.c (cli_table_begin): Ditto.
2555 (cli_table_header): Ditto.
2556 (cli_field_int): Ditto.
2557 (cli_field_skip): Ditto.
2558 (cli_field_string): Ditto.
2559 (cli_field_fmt): Ditto.
2561 (cli_message): Ditto.
2562 (out_field_fmt): Ditto.
2563 * ui-out.c (default_table_begin): Ditto.
2564 (default_table_header): Ditto.
2565 (default_field_int): Ditto.
2566 (default_field_skip): Ditto.
2567 (default_field_string): Ditto.
2568 (default_field_fmt): Ditto.
2569 (default_text): Ditto.
2570 (default_message): Ditto.
2572 2001-06-08 Michael Snyder <msnyder@redhat.com>
2574 * breakpoint.c (delete_breakpoint): Pass mark_inserted to
2575 remove_breakpoint, so that the subsequent test for
2576 bpt->inserted will succeed, and duplicates will be fixed up.
2578 2001-06-08 Per Bothner <per@bothner.com>
2580 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java.
2582 2001-06-07 Keith Seitz <keiths@redhat.com>
2584 * tracepoint.c (tracepoint_opertation): Add ui event
2586 (trace_pass_command): Ditto.
2588 2001-06-07 Andrew Cagney <ac131313@redhat.com>
2590 * MAINTAINERS (Write After Approval): Note the entry criteria.
2591 (HP/PA): Jeff Law stepped down
2593 2001-06-07 Jim Blandy <jimb@redhat.com>
2595 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
2596 variable values as operators.
2598 2001-06-07 Keith Seitz <keiths@redhat.com>
2600 * gdb-events.sh: Fix quote escaping which was obsoleted
2603 2001-06-07 Keith Seitz <keiths@redhat.com>
2605 * gdb-events.sh: Make if statements and tests
2606 a little more portable.
2607 Don't use shell's echo command to put strings containing
2608 escaped characeters into a file -- different flavors of /bin/sh
2609 require differnt levels of escaping. Use cat <<EOF instead.
2610 Our internal field separator is a colon. Change all
2611 commands which assume it is a space.
2613 2001-06-06 Mark Kettenis <kettenis@gnu.org>
2615 * lin-lwp.c (struct lwp_info): Add member `resumed'.
2616 (iterate_over_lwps): Make sure we can handle CALLBACK deleting the
2617 LWP it's called for.
2618 (lin_lwp_attach): Mark LWP as resumed to make sure the fake
2619 SIGSTOP is reported.
2620 (resume_clear_callback): New function.
2621 (resume_set_callback): New function.
2622 (lin_lwp_resume): Mark all LWP's that we're going to resume as
2623 resumed, and unmark all others.
2624 (status_callback): Only report a pending wait status if we pretend
2625 that LP has been resumed.
2626 (resumed_callback): New function.
2627 (lin_lwp_wait): Add assertions to check that LWP's are properly
2628 marked as resumed. Partially revert 2001-05-25 patch by Michael
2629 Snyder: do not resume all threads. Add comment explaining the
2630 problems associated with this bit of code.
2632 2001-06-07 Keith Seitz <keiths@redhat.com>
2634 * MAINTAINTERS: Syd Polk is stepping down from
2635 maintaining libgui. I am replacing him.
2637 2001-06-07 Eli Zaretskii <elis@is.elta.co.il>
2639 * config/mips/tm-irix6.h: New file.
2641 * config/mips/irix6.mh: New file.
2643 * config/mips/irix6.mt: New file.
2645 * config/mips/xm-irix6.h: New file.
2647 * config/mips/nm-irix6.h: New file.
2649 * mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
2650 disassembler info in tm_print_insn_info as appropriate for the N32
2651 ABI. Force N32 ABI to be the default if the CPU is R8000 or
2654 * configure.tgt (mips*-sgi-irix6*): Map to irix6.
2656 * configure.host (mips*-sgi-irix6*): Ditto.
2658 2001-06-07 Andrew Cagney <ac131313@redhat.com>
2660 * gnu-v3-abi.c: Include "gdb_assert.h".
2661 (build_gdb_vtable_type): Replace abort() with gdb_assert().
2663 2001-06-06 Jim Blandy <jimb@redhat.com>
2665 * cp-abi.h: Rearrange code to put documentation comments above the
2666 functions we export. The actual function table itself simply
2667 refers to those functions. Minor doc fixes.
2669 * gdbarch.sh: Changes to effect the following:
2670 * gdbarch.c (initialize_non_multiarch): New function.
2671 * gdbarch.h (initialize_non_multiarch): New declaration.
2672 * arch-utils.c (initialize_current_architecture): For
2673 non-multiarch configurations, call initialize_non_multiarch.
2675 2001-06-06 Andrew Cagney <ac131313@redhat.com>
2677 * symfile.c (compare_psymbols): Replace PTR with void*. Delete
2679 (compare_symbols): Ditto.
2681 2001-06-06 Jonathan Larmour <jlarmour@redhat.com>
2683 * arch-utils.c (generic_prepare_to_proceed): Allow for having
2684 stopped due to a Ctrl-C as well as breakpoints.
2686 * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
2687 support thread switches after Ctrl-C.
2688 * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
2689 * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
2690 * m3-nat.c (mach3_prepare_to_proceed): Ditto.
2692 2001-06-06 Jim Blandy <jimb@redhat.com>
2694 * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
2695 per-architecture data should be registered at initialization time,
2696 before any gdbarch objects get used, so the generality is
2699 2001-06-06 Keith Seitz <keiths@redhat.com>
2701 * gdb-events.sh (function_list): Add tracepoint_create,
2702 tracepoint_delete, and tracepoint_modify events.
2703 * gdb-events.c: Regenerated.
2704 * gdb-events.h: Regenerated.
2706 2001-06-06 Keith Seitz <keiths@redhat.com>
2708 * gdb-events.sh: Update copyrights.
2709 Change free to xfree.
2710 * gdb-events.c: Regenerated.
2711 * gdb-events.h: Regenerated.
2713 2001-06-06 Eli Zaretskii <eliz@is.elta.co.il>
2715 * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
2716 instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
2717 * completer.c: Ditto.
2718 * cli/cli-cmds.c (cd_command): Ditto.
2720 2001-06-04 Eli Zaretskii <eliz@is.elta.co.il>
2722 * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
2723 (mips_set_processor_type_command): Remove unused variable j.
2724 (mips_breakpoint_from_pc): Declare breakpoint instruction
2725 sequences as unsigned char, to avoid compiler warnings.
2727 * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
2728 instead of system-specific define's like _WIN32 and __MSDOS__.
2729 Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
2731 (top-level): #include "filenames.h".
2733 * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
2734 instead of SLASH_CHAR, ROOTED_P and SLASH_P.
2735 (top-level): #include "filenames.h".
2737 * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
2738 (SLASH_STRING): Define only for _WIN32.
2740 * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
2743 * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
2744 IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P. Replace
2745 system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
2746 (top-level): #include "filenames.h".
2748 * go32-nat.c (go32_wait): Change the return value to ptid_t.
2750 * config/djgpp/fnchange.lst: Add two new files in the
2751 gdb/testsuite/gdb.c++/ directory to the remapped names.
2753 * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
2755 2001-06-01 Jim Blandy <jimb@redhat.com>
2757 Expand the gdbarch per-architecture data vector as needed, rather
2758 than requiring that all per-architecture data be registered before
2759 the first gdbarch object is allocated.
2760 * gdbarch.sh: Changes to effect the following:
2761 * gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
2762 declarations and definitions.
2763 (check_gdbarch_data): New function, and declaration.
2764 (gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
2765 zero is good enough.
2766 (free_gdbarch_data): Tolerate a null data pointer. Free only
2767 those data items gdbarch->data actually has allocated.
2768 (set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
2769 (gdbarch_update_p): No need to call init_gdbarch_data.
2771 2001-06-01 Kevin Buettner <kevinb@redhat.com>
2773 * ia64-tdep.c (is_float_or_hfa_type_recurse): Call check_typedef()
2774 on types that we wish to recurse on.
2775 (slot_alignment_is_next_even): New function.
2776 (ia64_push_arguments): Call slot_alignment_is_next_even() to
2777 examine the type in order to decide if it's necessary to skip
2780 2001-06-01 Michael Snyder <msnyder@redhat.com>
2782 * thread.c (delete_step_resume_breakpoint): New function.
2783 Maintain internal consistency of the thread list while deleting
2784 a step_resume_breakpoint.
2785 * gdbthread.h (delete_step_resume_breakpoint): Export.
2786 * breakpoint.c (bpstat_find_step_resume_breakpoint):
2787 Make thread-aware: don't return a step_resume_breakpoint
2788 for the wrong thread.
2789 * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
2790 instead of delete_breakpoint_current_contents.
2791 (fetch_inferior_event): Ditto.
2792 (handle_inferior_event): Call delete_step_resume_breakpoint
2793 instead of delete_breakpoint.
2794 * infrun.c (handle_inferior_event): After singlestepping over a
2795 thread-specific breakpoint, use currently_stepping() to decide
2796 whether to step or continue.
2798 2001-06-01 Jim Blandy <jimb@redhat.com>
2800 * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
2801 these static --- there's no reason other files should use these.
2803 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
2806 * partial-stab.h: New complaint: function_outside_compilation_unit.
2807 (case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
2808 complain, and don't try to set pst's start address.
2810 2001-05-31 Kevin Buettner <kevinb@redhat.com>
2812 * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
2813 match the location at which the kernel is placing the sigcontext
2816 * ia64-tdep.c (max_skip_non_prologue_insns): New static global.
2817 (refine_prologue_limit): New function.
2818 (examine_prologue): Further limit number of instructions
2819 scanned by calling refine_prologue_limit(). Revise way in
2820 which the end of prologue address is computed for frameless
2823 2001-05-29 Christopher Faylor <cgf@redhat.com>
2825 * partial-stab.h: Revert previous patch.
2827 2001-05-29 Christopher Faylor <cgf@redhat.com>
2829 * partial-stab.h: Consistently guard against pst being NULL.
2831 2001-05-29 Alexandre Oliva <aoliva@redhat.com>
2833 * symfile.c (compare_psymbols, compare_symbols): Declare using
2834 PTR, as in the definition.
2835 * minsyms.c (compare_minimal_symbols): Likewise.
2836 * coffread.c (find_targ_sec): Likewise.
2837 * elfread.c (free_elfinfo, elf_locate_sections): Likewise.
2838 * mipsread.c (alphacoff_locate_sections): Likewise.
2839 * mdebugread.c (compare_blocks): Likewise.
2841 2001-05-25 Nick Duffek <nsd@redhat.com>
2843 * solib.c (update_solib_list): Move target_resize_to_sections()
2844 into solib_map_sections() loop.
2845 (info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
2846 bfd_get_arch_size() fails.
2848 2001-05-25 Nick Duffek <nsd@redhat.com>
2850 * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
2852 * config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
2853 with solib-osf.o and solib.o.
2854 * config/alpha/alpha-osf2.mh: Likewise.
2855 * config/alpha/alpha-osf3.mh: Likewise.
2856 * solib-osf.c: New file, renamed and largely rewritten from
2859 2001-05-25 Michael Snyder <msnyder@redhat.com>
2861 * lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
2862 to consume the SIGSTOP generated by PTRACE_ATTACH.
2863 (stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
2864 try again to get the SIGSTOP event.
2865 (lin_lwp_wait): Resume all threads when ignoring a signal.
2866 This will insure that newly attached threads get resumed.
2867 * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
2868 * remote.c (remote_write_bytes): Update 'p' packet pointer.
2870 2001-05-25 Jim Blandy <jimb@redhat.com>
2872 * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
2873 VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
2874 useful value, then we should fix that instead.
2876 2001-05-24 Nick Duffek <nsd@redhat.com>
2878 * solist.h (struct so_list): Document the requirement that
2879 current_sos initialize some fields to 0.
2881 2001-05-24 Mark Kettenis <kettenis@gnu.org>
2883 * gnu-nat.c: Include <ctype.h>.
2884 (gnu_pid_to_exec_file): Add PID parameter.
2885 (set_sig_thread_cmd): Use PIDGET on return value from
2887 (proc_string): Use MERGEPID to construct argument to
2890 2001-05-22 Kevin Buettner <kevinb@redhat.com>
2892 * breakpoint.c (breakpoint_address_is_meaningful): New function.
2893 (check_duplicates): Don't compare non-meaningful addresses.
2895 2001-05-22 Michael Snyder <msnyder@redhat.com>
2897 * thread-db.c: Allow for defunct zombie threads.
2898 (attach_thread): Do not attempt to attach zombie thread.
2899 (thread_db_thread_alive): Return false for defunct zombie thread.
2900 (find_new_threads_callback): Don't add defunct zombie thread to list.
2902 2001-05-22 Jim Blandy <jimb@redhat.com>
2904 Add support for the GNU V3 C++ ABI.
2905 (Includes changes by Dan Berlin.)
2907 * gnu-v3-abi.c: New file.
2908 * minsyms.c: #include "value.h" and "cp-abi.h".
2909 (install_minimal_symbols): Check the minimal symbol table for
2910 symbols that look mangled in the V3 style, and select the V3 ABI
2912 * Makefile.in (SFILES): Add gnu-v3-abi.c.
2913 (COMMON_OBS): Add gnu-v3-abi.o.
2914 (gnu-v3-abi.o): Add new rule.
2915 (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
2917 2001-05-21 Jim Blandy <jimb@redhat.com>
2919 * values.c (value_primitive_field): If we're extracting a base
2920 class, then the type of the result should be the base class being
2921 extracted, not the type of which it is a base class.
2923 * value.h (struct value): Doc fix, and rearrange members to place
2924 them near their explanations.
2926 2001-05-21 Michael Snyder <msnyder@redhat.com>
2928 * remote.c (remote_async_wait): Added new variable fieldsize.
2929 Add fieldsize (return value of hex2bin) to string pointer p.
2931 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2933 * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
2934 (m68hc11_analyze_instruction): Update the pc correctly.
2935 (m68hc11_guess_from_prologue): Take into account the stack correction
2936 for the saving address.
2938 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
2940 Changes by Jim Ingham:
2942 * values.c (value_change_enclosing_type): New function. If the
2943 new enclosing type is larger than the old one, we need to allocate
2945 * value.h: Add value_change_enclosing_type prototype.
2946 * valops.c (value_cast): Use it.
2947 (value_assign): Use it.
2948 (value_addr): Use it.
2949 (value_ind): Use it.
2950 (value_full_object): Use it.
2952 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
2954 * values.c (value_static_field): Handle static fields that have a
2957 2001-05-17 Michael Snyder <msnyder@redhat.com>
2959 * blockframe.c (create_new_frame): Zero all the fields via memset,
2960 rather than zeroing them one by one.
2962 2001-05-17 Eli Zaretskii <eliz@is.elta.co.il>
2964 * top.c (user_args): Remove unused declaration.
2966 2001-05-16 Michael Snyder <msnyder@redhat.com>
2968 * infcmd.c (do_registers_info): Move alloca outside of loop.
2970 2001-05-15 John S Kallal <jskallal@home.com>
2972 * remote.c (remote_wait): Added new variable fieldsize.
2973 Add fieldsize (return value of hex2bin) to string pointer p.
2975 2001-05-15 Mark Kettenis <kettenis@gnu.org>
2977 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
2980 2001-05-14 Kevin Buettner <kevinb@redhat.com>
2982 * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
2983 Adjust format strings for printing LWPs to account for the fact
2984 that the type returned by GET_LWP() is now a long instead of an
2987 2001-05-14 Kevin Buettner <kevinb@redhat.com>
2989 * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
2990 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
2991 (ptid_get_tid, ptid_equal): New function declarations.
2992 * infrun.c (null_ptid, minus_one_ptid): New variables.
2993 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
2994 (ptid_get_tid, ptid_equal): New functions.
2995 (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
2996 inferior_ptid, and target_last_wait_ptid.
2998 * defs.h (ptid_t): Redefine to be a struct rather than an int.
2999 (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
3000 (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
3001 new ptid accessors and constructor.
3003 * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
3004 MKLID, MKTID, ISTID): Provide new definitions for these macros.
3005 The old macros are retained, but disabled via #if 0 in order
3006 to aid in future restructuring. See FIXME.
3008 * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
3009 * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
3010 * infptrace.c (PIDGET, TIDGET): Likewise.
3011 * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
3012 * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
3013 * proc-service.c (MERGEPID): Likewise.
3014 * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
3015 * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
3016 * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
3017 * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
3019 * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
3022 * lin-lwp.c (THREAD_FLAG): Delete macro definition.
3023 (GET_LWP): Redefine in terms of ptid_get_lwp().
3024 (GET_PID): Redefine in terms of ptid_get_pid().
3025 (is_lwp): Redefine without the need for THREAD_FLAG.
3026 (BUILD_LWP): Redefine in terms of ptid_build().
3027 * lin-thread.c (THREAD_FLAG): Delete macro definition.
3028 (GET_LWP): Redefine in terms of ptid_get_lwp().
3029 (GET_PID): Redefine in terms of ptid_get_pid().
3030 (GET_THREAD): Redefine in terms of ptid_get_tid().
3031 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
3032 (is_lwp, is_thread): Redefine.
3033 (linux_child_wait, check_all_signal_numbers)
3034 (linuxthreads_discard_global_state, attach_thread): Declare these
3035 functions to squash warnings about missing declarations.
3036 * sol-thread.c (THREAD_FLAG): Delete macro definition.
3037 (GET_PID): Redefine in terms of ptid_get_pid().
3038 (GET_LWP): Redefine in terms of ptid_get_lwp().
3039 (GET_THREAD): Redefine in terms of ptid_get_tid().
3040 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
3041 (is_lwp, is_thread): Redefine.
3042 * thread-db.c (THREAD_FLAG): Delete macro definition.
3043 (GET_PID): Redefine in terms of ptid_get_pid().
3044 (GET_LWP): Redefine in terms of ptid_get_lwp().
3045 (GET_THREAD): Redefine in terms of ptid_get_tid().
3046 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
3047 (is_lwp, is_thread): Redefine.
3049 * corelow.c (add_to_thread_list, get_core_register_section):
3050 Eliminate hacks needed to prevent regressions when inferior_ptid
3051 wasn't wide enough to hold the core file thread id in the pid
3052 component of inferior_ptid.
3054 2001-05-14 Michael Snyder <msnyder@redhat.com>
3056 * remote.c (hex2bin): Make first argument const.
3057 Require explicit count, don't accept null-terminated str.
3058 (remote_resume, remote_async_resume): White space fix-up.
3059 (remote_write_bytes): Set nr_bytes to return value of bin2hex.
3061 2001-05-13 Mark Kettenis <kettenis@gnu.org>
3063 * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
3064 basename (NAME). The FreeBSD basename returns a pointer to a
3065 static buffer, even if it's simply returning a string identical to
3067 (lookup_partial_symtab): Likewise.
3069 2001-05-14 Michael Snyder <msnyder@redhat.com>
3071 * solib.c, solib.h: Add comment for function no_shared_libraries.
3073 2001-05-14 Kevin Buettner <kevinb@redhat.com>
3075 * solib.h (no_shared_libraries): Make declaration match definition
3078 2001-05-14 Andrew Cagney <ac131313@redhat.com>
3080 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
3081 * solib.h (no_shared_libraries): Declare.
3083 2001-05-12 Andrew Cagney <ac131313@redhat.com>
3085 * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
3086 (gdbarch_update_p): Rewrite logic filling in INFO struct. Use
3087 user specified values when available.
3088 * rs6000-tdep.c (rs6000_gdbarch_init): Update. Get the
3089 architecture from info.bfd_arch_info.
3090 * gdbarch.c, gdbarch.h: Regenerate.
3092 2001-05-12 Fernando Nasser <fnasser@redhat.com>
3094 * remote-e7000.c (e7000_open): Check for bad baud rate.
3095 * remote-st.c (st2000_open): Ditto.
3097 2001-05-11 Jim Blandy <jimb@redhat.com>
3099 * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
3100 and ui_out_tuple_end instead of ui_out_list_begin and
3103 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
3104 dependencies. Reorder dependencies to match #includes in file,
3105 for easier verification.
3107 Fri May 11 13:32:50 2001 Andrew Cagney <cagney@b1.cygnus.com>
3109 * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
3110 make_cleanup_ui_out_list_end with ui_out_tuple_begin,
3111 ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
3112 * cli/cli-setshow.c: Ditto.
3113 * printcmd.c: Ditto.
3116 * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
3117 * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
3118 (ui_out_tuple_begin): New function.
3119 (ui_out_tuple_end): New function.
3120 (ui_out_tuple_begin_end): New function.
3121 (make_cleanup_ui_out_list_begin_end): Replace
3122 make_cleanup_ui_out_list_end function.
3123 * ui-out.h (ui_out_list_begin): Update declaration.
3124 (make_cleanup_ui_out_list_begin_end): Replace
3125 make_cleanup_ui_out_list_end declaration.
3126 (ui_out_tuple_begin, ui_out_tuple_end): Declare.
3127 (ui_out_tuple_begin_end): Declare.
3129 2001-05-11 Jim Blandy <jimb@redhat.com>
3131 * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it.
3133 2001-05-11 Andrew Cagney <ac131313@redhat.com>
3135 From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
3136 * config/pa/tm-hppa.h: Remove trigraph.
3137 * hp-symtab-read.c (hpread_type_translate): Provide return value.
3138 (hpread_read_struct_type): Remove trigraph. Add parameter in
3140 (hpread_read_array_type): Provide return value.
3141 (hpread_type_lookup): Avoid ambiguous `else'. Provide return
3143 * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
3146 2001-05-11 Jim Blandy <jimb@redhat.com>
3148 * mips-tdep.c (mips_store_return_value,
3149 mips_extract_return_value): Pass arguments to
3150 return_value_location in the proper order.
3152 2001-05-11 Andrew Cagney <ac131313@redhat.com>
3154 * Makefile.in (VERSION): Delete. Moved to file ``version.in''.
3155 (version.c): Depends on file ``version.in''. Extract version
3156 number from ``version.in'' file.
3157 (clean mostlyclean): Update.
3158 * version.in: New file.
3161 2001-05-11 Kevin Buettner <kevinb@redhat.com>
3163 * breakpoint.c (set_raw_breakpoint): Add new parameter
3164 representing the breakpoint's type. Adjust all callers.
3165 (create_longjmp_breakpoint, create_temp_exception_breakpoint)
3166 (create_thread_event_breakpoint): Don't test for zero return
3167 value from set_raw_breakpoint(). It can never be zero.
3168 (create_exception_catchpoint, watch_command_1): Move logic
3169 which calculates the breakpoint type prior to the call to
3170 set_raw_breakpoint().
3172 2001-05-11 Fernando Nasser <fnasser@redhat.com>
3174 * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
3175 (hardwire_setbaudrate): Set errno to EINVAL and return with error
3176 if the conversion of the baud rate to code fails.
3178 2001-05-10 Andrew Cagney <ac131313@redhat.com>
3180 * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
3181 * ui-out.c (struct ui_out_end_cleanup_data): Define.
3182 (do_cleanup_end): New function. Replace do_list_end.
3183 (make_cleanup_ui_out_end): New function.
3184 (make_cleanup_ui_out_begin_end): New function.
3185 (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
3187 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
3189 * MAINTAINERS: Declare xcoffread.c open to all maintainers,
3190 and make Kevin Buettner (kevinb@redhat.com) the reference person.
3192 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
3194 * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
3196 2001-05-10 Fernando Nasser <fnasser@redhat.com>
3198 * MAINTAINERS: Add testsuite subdirectory co-maintainers.
3200 Thu May 10 16:26:47 2001 Andrew Cagney <cagney@b1.cygnus.com>
3202 * Makefile.in (mi-main.o): Compile with -Werror.
3204 2001-05-10 Michael Snyder <msnyder@redhat.com>
3206 * remote.c (remote_open_1): Call no_shared_libraries, so that
3207 symbols for shared libraries can be reloaded per session.
3208 (remote_async_open_1): Ditto.
3209 * remote.c (bin2hex, hex2bin): New functions. Factor out these
3210 two conversions which are coded for repeatedly in this module.
3211 (remote_threads_extra_info, remote_wait, remote_async_wait,
3212 store_register_using_P, remote_store_registers, remote_write_bytes,
3213 remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
3214 of coding the conversions inline.
3215 (fromhex): Not exported, change from extern to static.
3217 2001-05-10 Andrew Cagney <ac131313@redhat.com>
3219 * arch-utils.c (initialize_current_architecture): Delete obsolete
3220 ``info architecture'' command.
3221 (info_architecture): Delete function.
3223 2001-05-10 Andrew Cagney <ac131313@redhat.com>
3225 * TODO (5.1, 5.2): Update.
3227 2001-05-09 Andrew Cagney <ac131313@redhat.com>
3229 * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
3232 2001-05-10 Keith Seitz <keiths@cygnus.com>
3234 * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
3236 (SUBDIR_GDBTK_SRCS): Ditto for the sources.
3237 (gdbtk-bp.o): New rule.
3238 (gdbtk-register.o): New rule.
3239 (gdbtk-stack.o): New rule.
3240 (gdbtk-cmds.o): Update dependencies.
3242 (gdbtk-hooks.o): Ditto.
3243 (gdbtk-varobj.o): Ditto.
3245 2001-05-10 Fernando Nasser <fnasser@redhat.com>
3247 * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
3248 variables, not just unregister them.
3250 2001-05-10 Fernando Nasser <fnasser@redhat.com>
3252 * varobj.c (c_number_of_children): Check for target type of void*,
3253 not the target type name. Allow dereferencing char*.
3255 2001-05-10 Fernando Nasser <fnasser@redhat.com>
3257 * symfile.c (symbol_file_add_main_1): New static function.
3258 Passes the flags arguments to symbol_file_add() and takes care
3259 of any necessary reinitializations.
3260 (symbol_file_command): Call symbol_file_add_main_1() instead of
3262 (symbol_file_add_main): Ditto.
3264 2001-05-09 Kevin Buettner <kevinb@redhat.com>
3266 * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
3267 string change in 2001-05-03 changes.
3268 (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
3271 2001-05-09 Kevin Buettner <kevinb@redhat.com>
3273 * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
3274 component from inferior_ptid.
3275 (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
3278 2001-05-09 Elena Zannoni <ezannoni@redhat.com>
3280 * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
3281 conditional for help with connections through parallel ports,
3282 given that the actual code for downloading through a parallel port
3283 is not conditionalized.
3285 * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
3286 unmaintaned, and probably on its way to obsolescence.
3288 2001-05-09 Mark Kettenis <kettenis@gnu.org>
3290 * i386-tdep.c (i386_frame_saved_pc): New function.
3291 * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
3292 i386_frame_saved_pc.
3293 (i386_frame_saved_pc): New prototype.
3295 * i386-tdep.c (i386_register_virtual_type): New function.
3296 (i386_register_convertible): New function.
3297 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
3298 of i386_register_virtual_type.
3299 (REGISTER_CONVERTIBLE): Redefine in terms of
3300 i386_register_convertible.
3301 (i386_register_virtual_type, i386_register_convertible): New
3304 2001-05-08 Jim Blandy <jimb@redhat.com>
3306 * Makefile.in (mn10300-tdep.o): New rule.
3308 * Makefile.in (gdb_string_h): Define. Use it throughout.
3309 Some rules were already using this, even though it isn't defined.
3311 * Makefile.in (obstack_h, target_h): Define; these are already
3312 used elsewhere, but have been expanding to the empty string.
3313 (memattr_h): Define; needed by target_h.
3315 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
3316 static. (This was accidentally omitted from the earlier patch.)
3318 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
3319 (mn10300_gdbarch_init): Register it as the architecture's
3320 dwarf2_reg_to_regnum method.
3322 Correct and expand handling of `movm' instruction, and register
3324 * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
3325 MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
3326 (enum movm_register_bits): New enum.
3327 * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
3328 bits, not hex literals. Handle the `other', `exreg0', and
3329 `exother' bits. Correct handling of `exreg1': it saves r4, r5,
3330 r6, and r7, not r2, r3, r4, and r5.
3331 (saved_regs_size): New function.
3332 (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
3333 of computing the same thing inline, incorrectly.
3335 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
3336 dummy_breakpoint_offset; it's zero.
3338 * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
3339 stuff out into mn10300_pop_frame_regular, and use
3340 generic_pop_current_frame. This lets us share code, and also
3341 makes this function's prototype match that expected by gdbarch.
3342 Make this function static.
3343 (mn10300_pop_frame_regular): New function.
3344 (mn10300_gdbarch_init): Register mn10300_pop_frame as the
3345 gdbarch's pop_frame method.
3346 * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
3347 (mn10300_pop_frame): Delete declaration.
3349 * mn10300-tdep.c (mn10300_saved_pc_after_call,
3350 mn10300_extract_return_value,
3351 mn10300_extract_struct_value_address, mn10300_store_return_value,
3352 mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
3353 mn10300_frame_chain, mn10300_skip_prologue,
3354 mn10300_push_arguments, mn10300_push_return_address,
3355 mn10300_store_struct_return, mn10300_frame_saved_pc,
3356 mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
3357 Make these functions static; they should only be visible to the
3358 outside world as gdbarch methods.
3360 * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
3363 * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
3364 in some rational order.
3366 * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
3367 generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
3369 Use gdbarch for most target parameters for the MN10300, rather
3370 than the tm-*.h file.
3371 * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
3372 REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
3373 FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
3374 SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
3375 FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
3376 EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
3377 STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
3378 FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3379 FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
3380 CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3381 CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
3382 TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3383 SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
3384 REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
3385 Delete definitions. We register gdbarch methods for these now.
3386 (struct frame_info, struct type, struct value): Delete forward
3387 declarations of these types; they're no longer necessary, since we
3388 don't have function declarations here any more.
3389 * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
3390 some default gdbarch methods.
3391 (mn10300_store_struct_return): Return void, as expected by
3393 (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
3394 as expected by gdbarch.
3395 (mn10300_frame_init_saved_regs): Provide dummy definition for
3396 this, as required by gdbarch.
3397 (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
3398 by gdbarch. Register gdbarch methods or values for all the stuff
3399 removed from tm-10300.h, listed above.
3401 2001-05-08 Andrew Cagney <ac131313@redhat.com>
3403 * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
3405 (cli_ui_out_impl): Update.
3407 * ui-out.c (default_begin, default_end): Replace
3408 default_list_begin and default_list_end.
3409 (default_ui_out_impl): Update.
3410 (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
3411 (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
3413 (ui_out_list_begin, ui_out_list_end): New. Compatibility
3415 (struct ui_out_level): Add field type.
3416 (push_level, pop_level): Update. Add type parameter.
3418 * ui-out.h (enum ui_out_type): Declare.
3419 (ui_out_begin, ui_out_end): Declare.
3420 (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
3422 (struct ui_out_impl): Update.
3424 2001-05-07 Andrew Cagney <ac131313@redhat.com>
3426 * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
3427 ``list_flag'' to ``depth''.
3428 * ui-out.c (default_list_begin, default_list_end): Update.
3429 (uo_list_begin, uo_list_end): Update.
3430 (MAX_UI_OUT_LEVELS): Define.
3431 (struct ui_out_level): Define.
3432 (top-level): Include "gdb_assert.h".
3433 (struct ui_out): Add fields ``level'' and ``levels''. Delete
3434 fields ``list_flag'' and ``field_count''.
3435 (ui_out_new): Update.
3436 (verify_field_proper_position): Update.
3437 (current_level, push_level, pop_level): New functions.
3438 (ui_out_list_begin): Use push_level.
3439 (ui_out_list_end): Use pop_level.
3440 (ui_out_field_int): Use current_level.
3441 (ui_out_field_skip): Ditto.
3442 (ui_out_field_fmt): Ditto.
3444 2001-05-08 Michael Snyder <msnyder@redhat.com>
3446 * language.c (longest_local_hex_string_custom): Strlen test is
3447 inverted -- reverse the sense of the test.
3449 2001-05-08 Mark Kettenis <kettenis@gnu.org>
3451 * config/i386/tm-i386v.h (struct frame_info, struct
3452 frame_saved_regs): Remove declarations.
3453 (i386_frame_num_args): Remove prototype.
3455 2001-05-07 Andrew Cagney <ac131313@redhat.com>
3457 * MAINTAINERS: I'm no longer actively maintaining the mn10300
3460 2001-05-04 Andrew Cagney <ac131313@redhat.com>
3462 * main.c (captured_main): Delete #ifndef _WIN32 conditional for
3465 2001-05-06 Kevin Buettner <kevinb@redhat.com>
3467 * inferior.h (save_inferior_ptid): Declare.
3468 * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
3470 * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
3471 Delete these functions.
3472 * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
3473 * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
3474 * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
3476 * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
3478 * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
3479 * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
3481 * somsolib.c (reset_inferior_ptid): Delete.
3482 (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
3483 build the cleanup struct.
3485 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3486 a cleanup to save/restore inferior_ptid.
3488 2001-05-06 Mark Kettenis <kettenis@gnu.org>
3490 Implement attach/detach for multi-threaded programs on Linux.
3491 * thread-db.c (keep_thread_db): Adjust comment.
3492 (deactivate_target): Removed.
3493 (thread_db_new_objfile): Don't call deactivate_target. Implement
3494 guts of deactivate_target inline instead.
3495 (attach_thread): Call ATTACH_LWP unconditionally if defined.
3496 (thread_db_attach): New function.
3497 (thread_db_detach): Don't call deactivate_target. Do necessary
3498 cleanup inline instead. Set inferior_ptid to LWP corresponding to
3499 the current user-level thread.
3500 (thread_db_kill): Set inferior_ptid to LWP corresponding to the
3501 current user-level thread.
3502 (thread_db_create_inferior): Deactivate target vector if
3503 KEEP_THREAD_DB is zero.
3504 (thread_db_mourn_inferior): Don't call deactivate_target. Do
3505 necessary cleanup inline instead.
3506 (init_thread_db_ops): Initialize to_attach field to
3508 * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
3509 (stop_wait_callback): Add prototype.
3510 (init_lwp_list): Add comment about when to re-initialize the LWP
3512 (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
3513 Avoid adding publicates to the LWP list. Only mark an LWP as
3514 signalled if it doesn't correspond to a cloned process.
3515 (lin_lwp_attach): Add initial process to the LWP list. Make sure
3516 it's stopped and fake a SIGSTOP.
3517 (detach_callback): New function.
3518 (lin_lwp_detach): Implement.
3519 (lin_lwp_create_inferior): Don't re-initialize LWP list here.
3520 Call child_ops.to_create_inferior directly instead of via
3521 target_beneath local.
3522 (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
3523 directly instead of via target_beneath local.
3525 2001-05-06 Eli Zaretskii <eliz@is.elta.co.il>
3527 * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
3528 instead of non-portable search for `/'. Use FILENAME_CMP instead
3529 of STREQ, to account for case-insensitive filesystems.
3530 (top-level): #include "filenames.h".
3532 2001-05-05 Jim Blandy <jimb@redhat.com>
3534 * breakpoint.c (check_duplicates): Use the breakpoint's type, not
3535 its address, to decide whether it's a watchpoint or not. Zero
3536 is a valid code address.
3537 (update_breakpoints_after_exec): Admonishing comments.
3538 * breakpoint.h (struct breakpoint): Doc fixes.
3540 * breakpoint.c (check_duplicates): Take a breakpoint object as an
3541 argument, rather than an address and section. All callers changed.
3543 2001-05-03 Kevin Buettner <kevinb@redhat.com>
3545 * defs.h (ptid_t): New typedef.
3546 (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
3548 * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
3549 blockframe.c, breakpoint.c, breakpoint.h,
3550 config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
3551 config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
3552 config/mips/nm-irix4.h, config/mips/nm-irix5.h,
3553 config/pa/nm-hppah.h, config/pa/tm-hppa.h,
3554 config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
3555 corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
3556 dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
3557 hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
3558 hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
3559 i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
3560 infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
3561 inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
3562 linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
3563 m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
3564 mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
3565 ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
3566 regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
3567 remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
3568 remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
3569 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
3570 remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
3571 solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
3572 standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
3573 target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
3574 uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
3575 (inferior_pid): Rename to inferior_ptid everywhere - even in
3576 comments and obsolete ports. In cases where this variable
3577 really is supposed to be used as a process id, use PIDGET() to
3578 extract the process id component from inferior_ptid. The
3579 other cases, either involving other variables whose types had
3580 to be changed or functions whose signatures had to changed
3581 are listed separately below.
3583 * arm-linux-nat.c (get_thread_id): Change type of argument
3584 representing a combined process/thread id from ``int'' to
3585 ``ptid_t''. Also change parameter name to ptid.
3586 * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
3587 * corelow.c (core_file_thread_alive): Likewise.
3588 * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
3589 * defs.h (*target_wait_hook): Likewise.
3590 * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
3591 (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
3592 * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
3593 (gnu_resume): Likewise.
3594 * go32-nat.c (go32_wait, go32_resume): Likewise.
3595 * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
3596 * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
3597 * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
3598 (hppa_pid_or_tid_to_str, child_post_startup_inferior)
3599 (child_thread_alive): Likewise.
3600 * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
3601 (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
3602 * i386-linux-nat.c (child_resume): Likewise.
3603 * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
3604 (store_debug_register, fetch_debug_register_pair)
3605 (store_debug_register_pair, ia64_linux_insert_watchpoint)
3606 (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
3608 * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
3609 * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
3610 (generic_target_write_pc, ptrace_wait, child_resume)
3611 (get_last_target_status): Likewise.
3612 * infptrace.c (ptrace_wait, child_resume): Likewise.
3613 * inftarg.c (child_wait, child_post_wait, child_thread_live)
3614 (child_pid_to_str): Likewise.
3615 * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
3616 (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
3617 * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
3618 (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
3619 (lin_lwp_pid_to_str): Likewise.
3620 * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
3621 (thread_db_resume, thread_db_wait): Likewise.
3622 * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
3623 (linuxthreads_resume, linuxthreads_wait): Likewise.
3624 * lynx-nat.c (child_wait, child_thread_alive, child_resume)
3625 (child_pid_to_str): Likewise.
3626 * m3-nat.c (mach_really_wait, m3_resume): Likewise.
3627 * mac-nat.c (child_wait, child_resume): Likewise.
3628 * mips-tdep.c (mips_read_pc): Likewise.
3629 * monitor.c (monitor_wait, monitor_resume): Likewise.
3630 * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
3631 * ppc-bdm.c (bdm_ppc_wait): Likewise.
3632 * procfs.c (do_attach, procfs_wait, procfs_resume)
3633 (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
3634 (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
3635 (procfs_find_LDT_entry): Likewise.
3636 * regcache.c (read_register_pid, read_signed_register_pid)
3637 (write_register_pid, generic_target_read_pc, read_pc_pid)
3638 (generic_target_write_pc, write_pc_pid): Likewise.
3639 * regcache.h (read_register_pid, read_signed_register_pid)
3640 (write_register_pid): Likewise.
3641 * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
3642 * remote-array.c (array_wait, array_resume): Likewise.
3643 * remote-bug.c (bug_wait, bug_resume): Likewise.
3644 * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
3645 * remote-eb.c (eb_wait, eb_resume): Likewise.
3646 * remote-es.c (es1800_wait, es1800_resume): Likewise.
3647 * remote-mips.c (mips_wait, mips_resume): Likewise.
3648 * remote-mm.c (mm_wait, mm_resume): Likewise.
3649 * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
3650 * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
3651 * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
3652 * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
3653 * remote-sds.c (sds_wait, sds_resume): Likewise.
3654 * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
3655 * remote-st.c (st2000_wait, st2000_resume): Likewise.
3656 * remote-udi.c (udi_wait, udi_resume): Likewise.
3657 * remote-vx.c (vx_wait, vx_resume): Likewise.
3658 * remote.c (remote_current_thread, remote_resume, remote_wait)
3659 (remote_async_resume, remote_async_wait, remote_cisco_wait)
3660 (remote_thread_alive): Likewise.
3661 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
3662 (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
3663 (solaris_pid_to_str): Likewise.
3664 * symm-nat.c (child_wait, child_resume): Likewise.
3665 * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
3666 (debug_to_notice_signals, debug_to_thread_alive)
3667 (normal_target_post_startup_inferior, normal_pid_to_str)
3668 (debug_to_post_startup_inferior): Likewise.
3669 * target.h (to_resume, to_wait, to_post_wait)
3670 (to_post_startup_inferior, to_notice_signals, to_thread_alive)
3671 (to_pid_to_str [all in struct target_ops]): Likewise.
3672 (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
3673 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
3674 (attach_thread, detach_thread, thread_db_resume, check_event)
3675 (thread_db_post_startup_inferior, thread_db_thread_alive)
3676 (thread_db_pid_to_str): Likewise.
3677 * thread.c (add_thread, delete_thread, find_thread_pid)
3678 (pid_to_thread_id, in_thread_list, load_infrun_state)
3679 (save_infrun_state, switch_to_thread, restore_current_thread)
3680 (make_cleanup_restore_current_thread): Likewise.
3681 * top.c (target_wait_hook): Likewise.
3682 * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
3683 (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
3684 (uw_thread_pid_to_str): Likewise.
3685 * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
3686 * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
3687 (cywin_pid_to_str): Likewise.
3688 * wince.c (child_wait, child_resume, win32_child_thread_alive):
3690 * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
3691 * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
3692 * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
3693 * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
3694 * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
3695 * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
3696 (procfs_set_watchpoint): Likewise.
3697 * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
3698 * config/i386/nm-ptx4.h (child_wait): Likewise.
3699 * config/i386/nm-symmetry.h (child_wait): Likewise.
3700 * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
3701 * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
3702 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
3703 (lin_lwp_attach_lwp): Likewise.
3704 * config/mips/nm-irix4.h, config/mips/nm-irix5.h
3705 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
3706 * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
3707 (hppa_pid_or_tid_to_str): Likewise.
3708 * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
3709 * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
3710 * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
3711 (procfs_set_watchpoint): Likewise.
3713 * gdbthread.h (thread_id_to_pid): Change return type which
3714 represents a combined process/thread id from ``int'' to
3716 * gnu-nat.c (gnu_wait): Likewise.
3717 * go32-nat.c (go32_wait): Likewise.
3718 * hpux-thread.c (hpux_thread_wait): Likewise.
3719 * inferior.h (procfs_first_available): Likewise.
3720 * inftarg.c (child_wait): Likewise.
3721 * infttrace.c (ptrace_wait): Likewise.
3722 * lin-lwp.c (lin_lwp_wait): Likewise.
3723 * lin-thread.c (thread_db_wait): Likewise.
3724 * linux-thread.c (linuxthreads_wait): Likewise.
3725 * lynx-nat.c (child_wait): Likewise.
3726 * m3-nat.c (mach_really_wait): Likewise.
3727 * mac-nat.c (child_wait): Likewise.
3728 * monitor.c (monitor_wait): Likewise.
3729 * ppc-bdm.c (bdm_ppc_wait): Likewise.
3730 * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
3731 * remote-adapt.c (adapt_wait): Likewise.
3732 * remote-array.c (array_wait): Likewise.
3733 * remote-bug.c (bug_wait): Likewise.
3734 * remote-e7000.c (e7000_wait): Likewise.
3735 * remote-eb.c (eb_wait): Likewise.
3736 * remote-es.c (es1800_wait): Likewise.
3737 * remote-mips.c (mips_wait): Likewise.
3738 * remote-mm.c (mm_wait): Likewise.
3739 * remote-nindy.c (nindy_wait): Likewise.
3740 * remote-os9k (rombug_wait): Likewise.
3741 * remote-rdi.c (arm_rdi_wait): Likewise.
3742 * remote-rdp.c (remote_rdp_wait): Likewise.
3743 * remote-sds.c (sds_wait): Likewise.
3744 * remote-sim.c (gdbsim_wait): Likewise.
3745 * remote-st.c (st2000_wait): Likewise.
3746 * remote-udi.c (udi_wait): Likewise.
3747 * remote-vx.c (vx_wait): Likewise.
3748 * remote.c (remote_wait, remote_async_wait, remote_current_thread)
3749 (remote_cisco_wait): Likewise.
3750 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
3752 * symm-nat.c (child_wait): Likewise.
3753 * target.c (debug_to_wait): Likewise.
3754 * target.h (to_wait [in struct target_ops]): Likewise.
3755 * thread.c (thread_id_to_pid): Likewise.
3756 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
3758 * top.c (*target_wait_hook): Likewise.
3759 * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
3760 * v850ice.c (v850ice_wait): Likewise.
3761 * win32-nat.c (child_wait): Likewise.
3762 * wince.c (child_wait): Likewise.
3763 * config/nm-lynx.h (child_wait): Likewise.
3764 * config/i386/nm-ptx4.h (child_wait): Likewise.
3765 * config/i386/nm-symmetry.h (child_wait): Likewise.
3767 * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
3768 to wait_ptid and change its type from ``int'' to ``ptid_t''.
3769 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
3770 but rename saved_inferior_pid to saved_inferior_ptid.
3771 * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
3772 save_pid to save_ptid.
3773 * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
3774 * hppah-nat.c (child_pid_to_exec): Likewise, but rename
3775 saved_inferior_pid to saved_inferior_ptid.
3776 * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
3777 * infrun.c (previous_inferior_pid [static global]): Likewise,
3778 but rename to previous_inferior_ptid.
3779 (resume): Likewise, but rename resume_pid to resume_ptid.
3780 (struct execution_control_state): Likewise, but rename
3781 pid to ptid, saved_inferior_pid to saved_inferior_ptid,
3782 and waiton_pid to waiton_ptid.
3783 (target_last_wait_pid): Likewise, but rename to
3784 target_last_wait_ptid.
3785 * infttrace.c (saved_real_pid): Likewise, but rename to
3787 (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
3788 to saved_inferior_ptid.
3789 * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
3790 (trap_ptid): Likewise, but renamed from trap_pid.
3791 * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
3793 * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
3794 (thread_db_wait): Likewise, but rename ret_pid to retptid.
3795 * procfs.c (procfs_wait): Likewise, for retval whose name
3796 doesn't change. Also, ``temp'' becomes two separate variables,
3797 one named temp_tid (an int) and the other temp_ptid.
3798 (procfs_notice_thread): Likewise (type change) for gdb_threadid
3799 whose name does not change.
3800 * regcache.c (registers_ptid): Likewise, but renamed from
3802 (read_register_pid, read_signed_register_pid, write_register_pid):
3803 Likewise, but rename save_pid to save_ptid.
3804 (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
3805 to saved_inferior_ptid.
3806 * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
3807 * sol-thread.c (struct ps_prochandle): Likewise.
3808 (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
3809 (sol_thread_wait): Likewise, for rtnval whose name does not
3810 change, and for save_pid which becomes save_ptid.
3811 (solaris_pid_to_str): Likewise for lwp whose name does not change.
3812 (sol_find_new_threads_callback): Likewise, for pid which becomes
3814 * target.h (target_resume, target_wait, target_post_wait)
3815 (target_post_startup_inferior, target_notice_signals)
3816 (target_thread_alive): Likewise.
3817 * thread.c (info_threads_command): Likewise, but rename
3818 current_pid to current_ptid.
3819 (struct current_thread_cleanup): Likewise, but rename field
3820 inferior_pid to inferior_ptid.
3821 * thread-db.c (find_new_threads_callback): Likewise, but rename
3823 * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
3825 (lwp_to_tr): Likewise fo tid whose name remains unchanged.
3826 (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
3827 but rename pid to ptid.
3828 * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
3829 * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
3830 * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
3831 * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
3832 * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
3833 * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
3835 * arch-utils.c (generic_prepare_to_proceed): Test for the
3836 "zero" ptid by using ptid_equal() to test to see if variable
3837 in question is the same as null_ptid. This replaces a direct
3839 * cxux-nat.c (add_shared_symbol_files): Likewise.
3840 * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
3841 * infcmd.c (run_command): Likewise.
3842 * inflow.c (kill_command): Likewise.
3843 * infttrace.c (call_ttrace): Likewise.
3844 * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
3845 * lin-thread.c (thread_db_kill): Likewise.
3846 * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
3847 * remote-es.c (es1800_kill): Likewise.
3848 * sol-thread.c (sol_thread_create_inferior): Likewise.
3849 * solib.c (locate_base): Likewise.
3850 * target.c (nosupport_runtime): Likewise.
3851 * thread-db.c (thread_db_wait): Likewise.
3852 * top.c (quit_confirm, quit_force): Likewise.
3853 * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
3855 * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
3856 Use ptid_equal to compare value of process/thread ids instead of
3857 ``=='' and ``!='' operators.
3858 lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
3859 (stop_wait_callback, lin_lwp_wait): Likewise.
3860 * procfs.c (procfs_wait): Likewise.
3861 * regcache.c (read_register_bytes, read_register_gen)
3862 (write_register_gen, read_register, read_register_pid)
3863 (read_signed_register, read_signed_register_pid, write_register)
3864 (write_register_pid, supply_register): Likewise.
3865 * remote-vx.c (vx_resume): Likewise.
3866 * sol-thread.c (sol_thread_wait): Likewise.
3867 * symm-nat.c (kill_inferior): Likewise.
3868 * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
3869 (in_thread_list, info_threads_command, switch_to_thread)
3870 (restore_current_thread): Likewise.
3871 * uw-thread (libtread_stub): Likewise.
3873 * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
3875 * corelow.c (add_to_thread_list): Convert argument in add_thread()
3877 * gnu-nat.c (inf_validate_procs): Likewise.
3878 * linux-thread.c (stop_thread, update_stop_threads): Likewise.
3879 * remote.c (record_currthread, remote_threads_info): Likewise.
3880 * win32-nat.c (child_add_thread): Likewise.
3882 * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
3883 respectively, to save_inferior_ptid() and restore_inferior_ptid().
3884 Adjust implementations to operate on ``ptid_t'' instead of ``int''.
3885 * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
3886 * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
3887 * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
3888 * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
3889 * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
3890 * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
3892 * infrun.c (RESUME_ALL): New macro representing the -1 ptid
3893 to be passed to target_resume() when all threads should resume.
3894 (resume): Set resume_ptid to RESUME_ALL rather than -1.
3895 (handle_inferior_event): Invoke target_resume() with RESUME_ALL
3897 * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
3898 a ptid_t in target_resume() call.
3899 * osfsolib.c (solib_create_inferior_hook): Likewise.
3900 * solib-svr4.c (solib_create_inferior_hook): Likewise.
3902 * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
3903 PIDGET0. Define new PIDGET macro which uses PIDGET0, the only
3904 difference being that the 0xffff pattern will be interpreted
3906 * lin-thread.c (PIDGET, PIDGET0): Likewise.
3907 * thread-db.c (PIDGET, PIDGET0): Likewise.
3908 * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
3909 * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
3910 * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
3911 * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
3913 * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
3914 mach_really_wait rather than mach_really__wait.
3915 * lin-thread.c (check_for_thread_event): Fix warning; make function
3916 actually return a value.
3918 * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
3919 ``pid'' arguments from ``int'' to ``ptid_t''. Also renamed
3921 * gdbarch.h, gdbarch.c: Regenerated.
3923 2001-05-03 Jonathan Larmour <jlarmour@redhat.com>
3925 * rdi-share/devsw.c: Include <time.h> for struct tm
3927 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
3929 * config/djgpp/fnchange.lst: Add mappings for the new
3930 opcodes/openrisc-* files.
3932 2001-05-01 Michael Snyder <msnyder@redhat.com>
3934 * lin-lwp.c: Change printf to fprintf_unfiltered.
3935 * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
3937 2001-05-01 Nicholas Duffek <nsd@redhat.com>
3939 * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
3940 (rs6000_in_solib_return_trampoline): Declare.
3941 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
3943 (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
3944 * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
3945 check after the CSECT check rather than before it. Allocate
3946 separate symtabs for CSECTs whose names begin with '@'.
3947 (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
3948 Activate the misc_func_recorded mechanism for whose names begin
3951 2001-04-30 J.T. Conklin <jtc@redback.com>
3953 * ppcnbsd-nat.c (fetch_inferior_registers)
3954 (store_inferior_registers, fetch_core_registers): Changed to use
3955 fpreg[] instead of r_regs[] to access floating point registers.
3957 2001-04-30 Elena Zannoni <ezannoni@redhat.com>
3959 * sh-tdep.c: Get rid of the function prototypes.
3960 (sh_sh4_build_float_register_type): Move earlier in file.
3961 (fv_reg_base_num): Ditto.
3962 (dr_reg_base_num): Ditto.
3964 2001-04-30 Michael Snyder <msnyder@redhat.com>
3966 * thread-db.c: Revert 2001-04-26 change for debugging output.
3968 * lin-lwp.c: Add set/show debug lin-lwp command. Use this
3969 command to turn extra debugging output on / off.
3971 2001-04-30 Eli Zaretskii <eliz@is.elta.co.il>
3973 * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
3974 (top-level): #include filenames.h.
3976 * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
3977 FILENAME_CMP, to DTRT on non-Posix platforms.
3978 (top-level): #include filenames.h.
3981 2001-04-27 Andrew Cagney <ac131313@redhat.com>
3983 * gdbtypes.c (check_stub_method): Always initialize ``p''.
3985 2001-04-27 Andrew Cagney <ac131313@redhat.com>
3987 * configure.host: Delete romp host.
3990 2001-04-27 Andrew Cagney <ac131313@redhat.com>
3992 * TODO: Updates to 5.1. No more targets to obsolete.
3994 2001-04-27 Don Howard <dhoward@redhat.com>
3996 (Changes from Kevin Buettner, with minor update by Don Howard.)
3998 * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
3999 typos in which hexadecimal constants were really intended to be
4001 (i387_tag): Swap logic regarding zero vs non-zero exponents.
4002 * MAINTAINERS (Misc): Added myself to the write-after-approval
4005 2001-04-26 Jim Blandy <jimb@redhat.com>
4007 (Changes from Daniel Berlin, with revisions by Jim Blandy.)
4009 Abstract out operations specific to particular C++ ABI's, and
4010 invoke them through a function table. This removes the C++ ABI
4011 dependencies scattered throughout the code, and allows us to
4012 cleanly add support for new C++ ABI's.
4013 * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
4014 * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
4015 jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
4016 #include "cp-abi.h". These files all use functions now declared
4018 * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
4019 Deleted. These services are now provided by functions declared in
4021 * value.h (value_rtti_type, value_virtual_fn_field): Same.
4022 * values.c (value_virtual_fn_field): Same, for this definition.
4023 * valops.c (value_rtti_type): Same.
4024 * c-typeprint.c (c_type_print_base): Use the functions from
4025 "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
4027 * dbxread.c (record_minimal_symbol): Same.
4028 * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
4029 virtual_base_index_skip_primaries): Same.
4030 * jv-typeprint.c (java_type_print_base): Same.
4031 * linespec.c (find_methods, decode_line_1): Same.
4032 * symtab.c (gdb_mangle_name): Same.
4033 * Makefile.in (SFILES): Add the new .c files mentioned above.
4034 (cp_abi_h): New variable.
4035 (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
4036 (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
4037 (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
4038 jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
4039 dependency on $(cp_abi_h).
4041 2001-04-26 Michael Snyder <msnyder@redhat.com>
4043 * thread-db.c (_initialize_thread_db): Add set/show command
4044 "debug-linux-threads" for debugging output.
4045 * lin-lwp.c (various): Use global "debug_linux_threads to
4046 turn on extra debugging output.
4047 * lin-lwp.c: Minor cleanups in comments.
4048 * target.c (normal_pid_to_str): Get rid of an ancient hack.
4049 * remote.c (remote_pid_to_str): New function for remote target.
4051 2001-04-24 Jim Blandy <jimb@redhat.com>
4053 * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
4054 qualifier on C++ references; all references are innately const.
4056 2001-04-20 Mark Kettenis <kettenis@gnu.org>
4058 * event-top.h: Fix formatting.
4060 2001-04-17 Andrew Cagney <ac131313@redhat.com>
4062 * source.c (openp): Obsolete #ifdef MPW code.
4063 (open_source_file): Ditto.
4064 * event-top.c (display_gdb_prompt): Ditto.
4065 * utils.c (query): Ditto.
4066 (init_page_info): Ditto.
4067 (init_page_info): Delete #ifndef MPW.
4068 * top.c (gdb_readline): Ditto.
4069 * mac-xdep.c: Obsolete.
4070 * mac-gdb.r: Obsolete.
4071 * config/powerpc/xm-mpw.h: Obsolete.
4072 * config/xm-mpw.h: Obsolete.
4073 * mpw-make.sed: Obsolete.
4074 * mpw-config.in: Obsolete.
4078 2001-04-19 Mark Kettenis <kettenis@gnu.org>
4080 * i386-tdep.c (i386_frameless_function_invocation): New function.
4081 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
4082 in terms of i386_frameless_function_invocation. Adjust comment.
4083 (i386_frameless_function_invocation): New prototype.
4085 2001-04-18 Martin M. Hunt <hunt@redhat.com>
4087 * top.c (gdb_init): Don't call cli_out_new() to
4088 create global uiout if init_ui_hook is set. uiout will
4089 have to be initialized there.
4091 2001-04-18 Andrew Cagney <ac131313@redhat.com>
4093 * arch-utils.c: Include "regcache.h".
4095 2001-04-18 Mark Kettenis <kettenis@gnu.org>
4097 * i386-tdep.c (i386_saved_pc_after_call): New function.
4098 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
4099 of i386_saved_pc_after_call.
4100 (i386_saved_pc_after_call): New prototype.
4102 2001-04-17 Michael Snyder <msnyder@redhat.com>
4104 * i386-nat.c: Fix typo in comment.
4105 * solib.c (no_shared_libraries): New function. Discard all symbols
4106 from shared libraries.
4107 (_initialize_solib): Add command "nosharedlibrary" as complement
4108 to the command "sharedlibrary". Unloads symbols for all solibs.
4110 2001-04-16 Andrew Cagney <ac131313@redhat.com>
4112 * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
4113 * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
4114 (m68*-est-*, m68*-sony-*, m68*-isi-*):
4115 * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
4116 * config/m68k/xm-news.h: Obsolete.
4117 * config/m68k/tm-news.h:
4118 * config/m68k/xm-news1000.h: Obsolete.
4119 * config/m68k/news.mh: Obsolete.
4120 * config/m68k/news.mt: Obsolete.
4121 * config/m68k/nm-news.h: Obsolete.
4122 * config/m68k/news1000.mh: Obsolete.
4123 * news-xdep.c: Obsolete.
4124 * Makefile.in (isi-xdep.o): Obsolete.
4125 (ALLDEPFILES): Delete isi-xdep.c.
4126 (tm-isi.h): Obsolete.
4127 * m68k-tdep.c (altos_skip_prologue): Update comments.
4128 (isi_skip_prologue): Obsolete.
4129 * isi-xdep.c: Obsolete.
4130 * config/m68k/xm-isi.h: Obsolete.
4131 * config/m68k/isi.mh: Obsolete.
4132 * config/m68k/tm-isi.h: Obsolete.
4133 * config/m68k/isi.mt: Obsolete.
4138 2001-04-17 Michael Snyder <msnyder@redhat.com>
4140 * remote.c (remote_open_1): On opening the remote target, activate
4141 the solib_create_inferior_hook, so that it can detect when the
4142 target loads shared libraries.
4143 (remote_async_open_1): Ditto.
4145 2001-04-17 Michael Snyder <msnyder@redhat.com>
4147 * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
4148 * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
4149 * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
4150 * testsuite/gdb.trace/infotrace.exp: Ditto.
4151 * testsuite/gdb.trace/passcount.exp: Ditto.
4152 * testsuite/gdb.trace/while-stepping.exp: Ditto.
4154 2001-04-17 Michael Snyder <msnyder@redhat.com>
4156 * thread-db.c (check_thread_signals): When looping over all
4157 signals, ignore signal zero.
4158 (disable_thread_signals): Ditto.
4160 2001-04-17 Eirik Fuller <eirik@netapp.com>
4162 * thread.c (do_captured_thread_select): Allow the argument to the
4163 thread command to be an expression rather than a literal integer.
4165 2001-04-17 Mark Kettenis <kettenis@gnu.org>
4167 * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
4168 read_memory_unsigned_integer instead of read_memory_integer.
4170 2001-04-16 Kevin Buettner <kevinb@redhat.com>
4172 * solib-aix5.c (map_index_vs_section_name_okay): New function.
4173 (aix5_relocate_main_executable): Don't use file offsets for
4174 determining corresponding sections and map file entries. Call
4175 map_index_vs_section_name_okay() to do this instead.
4177 2001-04-16 Kevin Buettner <kevinb@redhat.com>
4179 * procfs.c (open_with_retry): New function.
4180 (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
4181 (proc_get_LDT_entry): Call open_with_retry() instead of open().
4183 2001-04-16 Kevin Buettner <kevinb@redhat.com>
4185 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
4186 comparison against TRAP_HWBKPT constant yet again to account
4187 for the various values used by different kernel versions.
4189 2001-04-16 Daniel Berlin <dan@cgsoftware.com>
4191 * demangle.c (_initialize_demangler): Use xcalloc on the
4192 demangling_style_names, and make it a null terminated array of
4193 names, to avoid a crash.
4195 2001-04-16 Mark Kettenis <kettenis@gnu.org>
4197 * i386-tdep.c (i386_frame_chain): New function.
4198 * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
4200 (i386_frame_chain): New prototype.
4202 2001-04-14 J.T. Conklin <jtc@redback.com>
4204 * target.h (target_ops): Removed to_core_file_to_sym_file vector
4206 * corelow.c (core_ops): Updated for above change.
4207 * gnu-nat.c (core_ops): Likewise.
4208 * inftarg.c (child_ops): Likewise.
4209 * monitor.c (monitor_ops): Likewise.
4210 * ppc-bdm.c (bdm_ppc_ops): Likewise.
4211 * remote-adapt.c (adapt_ops): Likewise.
4212 * remote-bug.c (bug_ops): Likewise.
4213 * remote-e7000.c (e7000_ops): Likewise.
4214 * remote-eb.c (eb_ops): Likewise.
4215 * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
4216 * remote-mm.c (mm_ops): Likewise.
4217 * remote-nindy.c (nindy_ops): Likewise.
4218 * remote-nrom.c (nrom_ops): Likewise.
4219 * remote-os9k.c (rombug_ops): Likewise.
4220 * remote-rdp.c (remote_rdp_ops): Likewise.
4221 * remote-sim.c (gdbsim_ops): Likewise.
4222 * remote-st.c (st2000_ops): Likewise.
4223 * v850ice.c (v850ice_ops): Likewise.
4224 * target.c (cleanup_target): Likewise
4225 (update_current_target): Likewise.
4226 (setup_target_debug): Likewise
4227 (debug_to_core_file_to_sym_file): Removed.
4229 * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
4230 sets symbol file from information obtained from the core file.
4231 * corelow.c (core_file_to_sym_file): Removed.
4233 2001-04-13 Fernando Nasser <fnasser@redhat.com>
4235 From Adam Mirowski <Adam.Mirowski@Sun.COM>
4236 Fixed Insight on Solaris. It was not possible to debug a process
4237 because of EINTR "errors".
4238 * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
4239 with EINTR, retry the call.
4241 2001-04-12 Kevin Buettner <kevinb@redhat.com>
4243 * solib-aix5.c (enum maptype): Delete.
4244 (struct lm_info): Add new member ``nmappings''. Make ``mapping''
4245 member a pointer instead of a statically sized array.
4246 (build_so_list_from_mapfile): Dynamically allocate ``mapping''
4248 (aix5_relocate_main_executable, aix5_relocate_section_addresses,
4249 aix5_find_global_pointer): Search for correct mapping to use
4250 based on file offset instead of knowledge of whether the section
4251 is read-only or read/write.
4252 (aix5_find_gate_addresses): Use the first mapping instead of
4253 the (now defunct) MT_READONLY mapping.
4255 2001-04-12 Nicholas Duffek <nsd@redhat.com>
4257 * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
4260 2001-04-12 Kevin Buettner <kevinb@redhat.com>
4262 * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
4264 2001-04-09 Andrew Cagney <ac131313@redhat.com>
4266 Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
4267 * config/i386/sun386.mh: Obsolete.
4268 * config/i386/sun386.mt: Obsolete.
4269 * config/i386/xm-sun386.h: Obsolete.
4270 * config/i386/tm-sun386.h: Obsolete.
4271 * config/i386/nm-sun386.h: Obsolete.
4272 * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
4273 (sun386-nat.o): Target is obsolete.
4274 * sun386-nat.c: Obsolete.
4275 * configure.tgt (i[3456]86-*-sunos*): Obsolete.
4276 * configure.host (i[3456]86-*-sunos*): Obsolete.
4280 2001-04-10 J.T. Conklin <jtc@redback.com>
4282 * maint.c: Fix typo in comment.
4284 2001-04-09 Keith Seitz <keiths@cygnus.com>
4286 * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
4288 2001-04-08 Kevin Buettner <kevinb@redhat.com>
4290 * fork-child.c (fork_inferior, clone_and_follow_inferior):
4291 Document fact that apparent call to vfork() might actually be
4292 a call to fork() instead.
4293 * ser-pipe.c (pipe_open): Likewise.
4295 2001-04-08 Kevin Buettner <kevinb@redhat.com>
4297 * printcmd.c (print_frame_args): Use a cleanup to invoke
4298 ui_out_list_end() so that the list count nesting flag will
4299 be decremented properly when an error occurs.
4300 * stack.c (print_frame): Likewise.
4302 2001-04-06 J.T. Conklin <jtc@redback.com>
4304 * dcache.c (dcache_write_line): Fixed bugs where cache line was
4305 not written to target correctly.
4307 * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
4309 * gdbserver/low-nbsd.c: Likewise.
4310 * gdbserver/low-sparc.c: Likewise.
4311 * gdbserver/low-sun3.c: Likewise.
4313 2001-04-06 Geoffrey Keating <geoffk@redhat.com>
4315 * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
4316 (PTRACE_DETACH): Don't define.
4318 2001-04-06 David Smith <dsmith@redhat.com>
4320 * arch-utils.c (default_prepare_to_proceed)
4321 (generic_prepare_to_proceed): Added new functions.
4322 * arch-utils.h: New function declarations for
4323 default_prepare_to_proceed() and generic_prepare_to_proceed().
4324 * gdbarch.sh: Added PREPARE_TO_PROCEED.
4325 * gdbarch.c: Regenerated.
4326 * gdbarch.h: Regenerated.
4327 * inferior.h: Added get_last_target_status() declaration.
4328 * infrun.c (get_last_target_status): Added new function.
4329 (handle_inferior_event): Saves last pid and waitstatus, which will
4330 get returned by get_last_target_status().
4332 * hppa-tdep.c (prepare_to_proceed): Added comment stating that
4333 prepare_to_proceed() is potentially redundant since
4334 default_prepare_to_proceed() has been added.
4335 * linux-thread.c (prepare_to_proceed): Ditto.
4336 * lin-lwp.c (prepare_to_proceed): Ditto.
4337 * m3-nat.c (prepare_to_proceed): Ditto.
4339 2001-04-05 Andrew Cagney <ac131313@redhat.com>
4341 Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
4342 and powerpc-*-netware* target.
4343 * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
4345 * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
4346 (powerpcle-*-solaris*): Obsolete.
4347 * config/powerpc/tm-cygwin.h: Obsolete.
4348 * config/powerpc/cygwin.mt: Obsolete.
4349 * config/powerpc/xm-cygwin.h: Obsolete.
4350 * config/powerpc/cygwin.mh: Obsolete.
4351 * config/powerpc/nm-solaris.h: Obsolete.
4352 * config/powerpc/xm-solaris.h: Obsolete.
4353 * config/powerpc/tm-solaris.h: Obsolete.
4354 * config/powerpc/solaris.mt: Obsolete.
4355 * config/powerpc/tm-ppc-nw.h: Obsolete.
4356 * config/powerpc/ppc-nw.mt: Obsolete.
4360 2001-04-06 Fernando Nasser <fnasser@redhat.com>
4362 * buildsym.c (record_line): Turn off unused addr bits.
4364 2001-04-06 Fernando Nasser <fnasser@redhat.com>
4366 From David Deephanphongs <deephan@telocity.com>
4367 * inferior.h: Fix declarations of get_inferior_args and
4368 set_inferior_args, which were missing the trailing 's'.
4370 2001-04-05 Jeff Holcomb <jeffh@redhat.com>
4372 * monitor.c (monitor_supply_register): Only report an error if we
4373 don't get a valid value.
4375 2001-04-05 Eli Zaretskii <eliz@is.elta.co.il>
4377 * README: Don't mention gdba.el.
4379 2001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4381 From Jimmy Guo <guo@cup.hp.com>
4382 * top.c (init_main): set prompt if annotation_level>1,
4383 this is necessary when annotation_level is set to 2 via
4384 --annotate=2 command line option.
4386 2001-04-04 Andrew Cagney <ac131313@redhat.com>
4388 Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
4389 * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
4390 * configure.host (a29k-*-*): Obsolete.
4391 * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
4393 (ultra3-nat.o, ultra3-xdep.o): Obsolete.
4394 * config/a29k/tm-ultra3.h: Obsolete.
4395 * config/a29k/ultra3.mt: Obsolete.
4396 * config/a29k/ultra3.mh: Obsolete.
4397 * config/a29k/nm-ultra3.h: Obsolete.
4398 * config/a29k/xm-ultra3.h: Obsolete.
4399 * ultra3-xdep.c: Obsolete.
4400 * ultra3-nat.c: Obsolete.
4401 * config/a29k/a29k-kern.mt: Obsolete.
4405 Wed Apr 4 21:48:42 2001 Christopher Faylor <cgf@cygnus.com>
4407 * main.c: Remove windows.h use.
4408 (gdbtk_test): Use PATH_MAX for home var calculation.
4409 * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
4410 Win32 in colon test.
4411 * ser-tcp.c: Use modern __CYGWIN__ conditional.
4412 * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
4414 * symfile.c (symfile_bfd_open): Ditto.
4416 2001-04-04 Martin M. Hunt <hunt@redhat.com>
4418 * main.c (captured_main): For GDBtk, don't use tui_fileopen().
4419 Handle all stream setup in gdbtk_init
4421 2001-04-04 Mark Kettenis <kettenis@gnu.org>
4423 * i386-tdep.c (i386_extract_return_value): Don't return the return
4424 value of a void function.
4425 (i386_store_return_value): Likewise.
4427 2001-04-03 Andrew Cagney <ac131313@redhat.com>
4429 Obsolete w65-*-* target.
4430 * configure.tgt (w65-*-*): Obsolete.
4431 * config/w65/w65.mt: Obsolete.
4432 * config/w65/tm-w65.h: Obsolete.
4433 * w65-tdep.c: Obsolete.
4434 * NEWS: Update. Fix TiC80 description.
4437 2001-04-03 Andrew Cagney <ac131313@redhat.com>
4439 Obsolete tic80-*-* target.
4440 * configure.tgt (tic80-*-*): Obsolete.
4441 * config/tic80/tic80.mt: Obsolete.
4442 * config/tic80/tm-tic80.h: Obsolete.
4443 * tic80-tdep.c: Obsolete.
4447 2001-04-02 J.T. Conklin <jtc@redback.com>
4449 * remote-mips.c (S_IROTH): Moved definition from here.
4450 * gdb_stat.h (S_IROTH): to here.
4452 * remote.c (remote_protocol_e, remote_protocol_E): Define.
4453 (set_remote_protocol_e_packet_cmd)
4454 (set_remote_protocol_E_packet_cmd)
4455 (show_remote_protocol_e_packet_command)
4456 (show_remote_protocol_E_packet_command): New functions.
4457 (init_all_packet_configs): Initialize remote_protocol_e and
4459 (remote_resume, remote_async_resume): Support e/E command
4461 (show_remote_cmd): Show state of remote_protocol_e and
4463 (_initialize_remote): Add "set remote step-over-range-packet"
4464 and "set remote step-over-range-w-signal-packet" to CLI.
4466 2001-04-01 Andrew Cagney <ac131313@redhat.com>
4468 Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
4470 * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
4471 (umax-xdep.o, ns32km3-nat.o): Obsolete.
4472 * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
4474 * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
4476 * config/ns32k/merlin.mh: Obsolete.
4477 * config/ns32k/merlin.mt: Obsolete.
4478 * config/ns32k/xm-merlin.h: Obsolete.
4479 * config/ns32k/tm-merlin.h: Obsolete.
4480 * config/ns32k/nm-umax.h: Obsolete.
4481 * config/ns32k/umax.mh: Obsolete.
4482 * config/ns32k/umax.mt: Obsolete.
4483 * config/ns32k/xm-umax.h: Obsolete.
4484 * umax-xdep.c: Obsolete.
4485 * config/ns32k/ns32km3.mh: Obsolete.
4486 * config/ns32k/ns32km3.mt: Obsolete.
4487 * config/ns32k/tm-ns32km3.h: Obsolete.
4488 * config/ns32k/xm-ns32km3.h: Obsolete.
4489 * ns32km3-nat.c: Obsolete.
4490 * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
4491 (merlin_frame_num_args): Ditto.
4495 2001-04-02 Eli Zaretskii <eliz@is.elta.co.il>
4497 * config/djgpp/fnchange.lst: Tweak due to
4498 expect/example/chesslib.c.
4500 2001-04-02 Kevin Buettner <kevinb@redhat.com>
4502 * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
4503 unsigned int to unsigned long. Also, fix format string.
4504 (pop_frame): Fix PC_IN_CALL_DUMMY() call so that it doesn't
4505 use an undeclared variable. Also, delete declaration and
4506 initialization of ``fp'' because it is otherwise unused.
4507 * remote-bug.c (sleep): Delete declaration.
4508 (bug_store_register, bug_write_memory, bug_read_memory)
4509 (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
4510 format statements and cast certain sprintf() arguments to
4512 (bug_load): Likewise for call to printf_filtered().
4513 * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
4514 assignment to ``pc''. The necessary assignment is done in
4515 hand_function_call() after the invocation of FIX_CALL_DUMMY().
4517 2001-03-20 Daniel Berlin <dberlin@redhat.com>
4519 * symtab.c (completion_list_add_name): Remove duplicate string checks,
4520 readline already does this, and it's much faster at it, too.
4522 2001-04-01 Eli Zaretskii <eliz@is.elta.co.il>
4524 * go32-nat.c: Minor tweaks, to pacify the ari script.
4526 2001-04-01 Mark Kettenis <kettenis@gnu.org>
4528 * i386-tdep.c (i386_extract_struct_value_address): New function.
4529 * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
4530 in terms of i386_extract_struct_value_address.
4531 (i386_extract_struct_value_address): New prototype.
4533 * i386-linux-nat.c (i386_linux_dr_get): Change type of return
4534 value to `unsigned long'. Change type of `value' to `unsigned
4536 (i386_linux_dr_set): Change type of second argument to `unsigned
4538 (i386_linux_dr_set_control): Change type of first argument to
4540 (i386_linux_dr_get_status): Change type of return value to
4542 * config/i386/nm-linux.h (i386_linux_dr_set_control,
4543 i386_linux_dr_get_status): Adjust prototypes accordingly.
4545 2001-03-31 Kevin Buettner <kevinb@redhat.com>
4547 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
4548 TRAP_HWBKPT constant to match that in the kernel headers for
4551 2001-03-31 Mark Kettenis <kettenis@gnu.org>
4553 * i386bsd-nat.c: Include "gdb_assert.h".
4554 [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
4556 [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
4557 i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
4558 i386bsd_dr_get_status): New functions.
4559 * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
4560 (I386_USE_GENERIC_WATCHPOINTS): Define.
4561 Include "i386/nm-i386.h".
4562 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
4563 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
4564 (i386bsd_dr_set_control, i386bsd_dr_set_addr,
4565 i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
4566 * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
4567 * configure.in: Cleanup a few comments. Check for PT_GETDBREGS
4569 * config.in, configure: Regenerate.
4571 * i386-nat.c (i386_insert_aligned_watchpoint): Set address
4572 register before enabling it by setting the control register.
4573 (i386_remove_aligned_watchpoint): Reset address register after
4574 disabling it by setting the control register.
4576 * i386-tdep.c (i386_extract_return_value): If the type of the
4577 return value is TYPE_STRUCT and the number of fields is one, call
4578 ourselves with TYPE set tp the type of the first field.
4579 (i386_store_return_value): Likewise.
4580 This fixes a problem with returning structs consisting of a single
4581 `float' or `double' on *BSD.
4583 2001-03-30 Mark Kettenis <kettenis@gnu.org>
4585 * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
4586 we're absolutely sure we're going to resume it.
4588 * thread-db.c (check_event): Don't report an error if we encounter
4589 a thread creation event for a thread that's already in the thread
4590 list, since that may legitemately happen. Instead only call
4591 attach_thread if it's not already in the thread list.
4593 2001-03-28 Andrew Cagney <ac131313@redhat.com>
4595 * config/pa/xm-hppah.h (malloc): Really delete declaration
4596 (MALLOC_INCOMPATIBLE): Really delete macro.
4597 * cli/cli-cmds.c (apropos_command): Use xcalloc.
4599 2001-03-28 Andrew Cagney <ac131313@redhat.com>
4601 * configure.in (build_warnings): Add -Wuninitialized.
4602 * configure: Regenerate.
4604 * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
4605 * sparc-tdep.c (sparc64_push_arguments): Add default case to
4607 * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
4608 expression with if statement.
4609 * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
4611 * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
4612 (mips_dump_tdep): Fix setting of ef_mips_arch.
4613 * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
4614 * dsrec.c (make_srec): Always initialize ``binbuf''.
4615 * monitor.c (monitor_read_memory_single): Do not pass an
4616 uninitialized buffer to monitor_error. Make ``i'' more local.
4618 2001-03-28 Andrew Cagney <ac131313@redhat.com>
4620 * MAINTAINERS: Change ns32k target to ,-Werror.
4622 * ns32k-tdep.c: Include "gdbcore.h"
4623 (flip_bytes): Change first argument to void*. Add forward
4625 (sign_extend): Add declaration.
4626 (merlin_frame_num_args): Add final else clause to if-else chain.
4627 (umax_frame_num_args): Ditto.
4628 * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
4629 (flip_bytes): Ditto.
4631 2001-03-28 Mark Kettenis <kettenis@gnu.org>
4633 * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
4634 config/i386/nm-linux.h (including comment).
4635 (i386_linux_frame_chain): New function implementing guts of the
4636 former FRAME_CHAIN macro, but using read_memory_unsigned_integer
4637 instead of read_memory_integer.
4638 (i386_linux_frame_saved_pc): Removed doc pointing to
4639 i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
4640 now lives in this file.
4641 * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
4642 i386-linux-tdep.c (including comment).
4643 (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
4644 (i386_linux_frame_chain): New prototype.
4646 * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
4648 (NUM_FREGS): Redefine to 0.
4649 (NUM_REGS): Redefine as NUM_GREGS.
4650 (i386_register_byte, i386_register_raw_size): Update from
4651 i386-tdep.c. Add comment about their origin.
4652 (regmap, register_u_addr): Take these from i386-linux-nat.c.
4653 (i386_register_u_addr): Removed.
4655 * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
4656 fails instead of calling perror_with_name. This should fix
4657 debugging remote i386 targets with a native Linux/x86 GDB. Add
4658 FIXME for this hack.
4660 2001-03-19 J.T. Conklin <jtc@redback.com>
4662 * arch-utils.c (#include "gdbthread.h"): Removed.
4663 (#include "symfile.h"): Removed.
4664 (XMALLOC): Removed unused macro.
4665 * breakpoint.c (tbreak_command): Removed local declaration.
4666 (awatch_command, do_enable_breakpoint, set_breakpoint_count):
4667 Remove duplicate declarations.
4668 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
4669 (remove_solib_event_breakpoints): Fix indentation botch.
4670 * c-typeprint.c (#include "command.h"): Removed.
4671 (#include "gdbcmd.h"): Removed.
4672 * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
4673 (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
4674 Removed duplicate declarations.
4675 * ch-typeprint.c (#include "command.h"): Removed.
4676 (#include "gdbcmd.h"): Removed.
4677 * corefile.c (#include "frame.h"): Removed
4678 (#include "symfile.h"): Removed.
4679 (#include "language.h"): Removed.
4680 * dbxread.c (#include "command.h"): Removed.
4681 * environ.c (#include "gdbcore.h"): Removed.
4682 * event-loop.c (#include "top.h"): Removed.
4683 * f-typeprint.c (#include "command.h"): Removed.
4684 (#include "gdbcmd.h"): Removed.
4685 (#include "language.h"): Removed.
4686 (#include "typeprint.h"): Removed.
4687 (#include "frame.h"): Removed.
4688 * gdbtypes.h (print_type_scalar): Removed declaration.
4689 * infcmd.c (#include "completer.h"): Removed.
4690 * language.c (#include "frame.h"): Removed.
4691 * m2-typeprint.c (#include "command.h"): Removed.
4692 (#include "gdbcmd.h"): Removed.
4693 (#include "language.h"): Removed.
4694 * m2-valprint.c (#include "valprint.h"): Removed.
4695 * p-typeprint.c (#include "command.h"): Removed.
4696 (#include "gdbcmd.h"): Removed.
4697 * p-valprint.c (#include "typeprint.h"): Removed.
4698 * parse.c (#include "linespec.h"): Removed.
4699 * regcache.c (#include "frame.h"): Removed.
4700 * remote.c (#include "frame.h"): Removed.
4701 (getpkt_sane): Make static.
4702 * source.c (#include "completer.h"): Removed.
4703 * stack.c (#include "symfile.h"): Removed.
4704 (#include "objfiles.h"): Removed.
4705 * symfile.c (#include "completer.h"): Removed.
4706 * tracepoint.c (#include "completer.h"): Removed.
4707 * values.c (#include "frame.h"): Removed.
4708 * varobj.c (#include "valprint.h"): Removed.
4709 * wrapper.c (#include "frame.h"): Removed.
4711 * memattr.c (create_mem_region): Removed unused variable.
4712 * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
4714 2001-03-27 Nick Clifton <nickc@redhat.com>
4716 * remote-rdp.c (rdp_set_command_line): Add missing double quote.
4718 2001-03-27 Kevin Buettner <kevinb@redhat.com>
4720 * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
4723 2001-03-27 Eli Zaretskii <eliz@is.elta.co.il>
4725 * TODO (Cleanups): Remove the item about converting docs to GFDL.
4727 2001-03-26 Kevin Buettner <kevinb@redhat.com>
4729 * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
4730 type of ``bundle'' from unsigned char * to char *.
4731 (ia64_get_saved_register): Use alloca() to allocate register
4734 * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
4736 2001-03-26 Kevin Buettner <kevinb@redhat.com>
4738 * proc-utils.h (procfs_ctl_t): New typedef.
4739 * proc-api.c (write_with_trace): Change type of ``opcode'' from
4740 long to procfs_ctl_t. Don't assume that the target has defined
4741 BREAKPOINT. Handle case in which PCRESET is the same as PCUNSET.
4742 * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
4743 * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
4744 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
4745 (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
4746 Conditionally define as appropriate for AIX/non-AIX systems. Use
4747 these defines/typedefs as appropriate elsewhere in file.
4748 (struct procinfo): Change type of saved_sigset and saved_sighold
4749 from sigset_t to gdb_sigset_t. Make saved_exitset and
4750 saved_entryset pointer variables. Add two new fields, num_syscalls
4752 (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
4753 (sysset_t_size, sysset_t_alloc): New functions.
4754 (load_syscalls, free_syscalls, find_syscall): New functions for
4755 platforms which define DYNAMIC_SYSCALLS.
4756 (create_procinfo): Call load_syscalls.
4757 (destroy_one_procinfo): Call free_syscalls.
4758 (GDBRESET): Don't define twice.
4759 (proc_modify_flag): Change type of operation code array `arg'
4760 from long to procfs_ctl_t.
4761 (proc_stop_process, proc_wait_for_stop, proc_run_process)
4762 (proc_set_traced_signals, proc_set_traced_faults)
4763 (proc_set_traced_sysentry, proc_set_traced_sysexit)
4764 (proc_set_held_signals, proc_clear_current_fault)
4765 (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
4766 (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
4767 (proc_set_traced_sysentry): Dynamically allocate variable sized
4768 struct gdb_proc_ctl_pcsentry. Also, free it at function exit.
4769 (proc_set_traced_sysexit): Dynamically allocate variable
4770 sized struct gdb_proc_ctl_pcsexit. Also, free it at
4772 (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
4773 for reading the sysset_t struct on AIX5.
4774 (procfs_debug_inferior): Don't assume that SYS_exit will be
4775 defined. Add new code for finding certain syscalls on AIX5.
4776 (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
4777 (syscall_is_lwp_create): New functions.
4778 (procfs_wait): Restructured code which checks for certain
4779 system calls to use the new syscall_is_... functions.
4780 (procfs_notice_signals): Account for the fact that saved_entryset
4781 and saved_exitset in struct procinfo are now pointers.
4783 2001-03-26 Kevin Buettner <kevinb@redhat.com>
4785 * symtab.c (find_pc_sect_line): Revise method used for finding
4788 2001-03-26 Mark Kettenis <kettenis@gnu.org>
4790 * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
4791 i386_linux_sigtramp_saved_sp): Make static.
4792 (i386_linux_frame_saved_pc): New function based on the old
4793 FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
4794 of read_memory_integer.
4795 * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
4796 (i386_linux_sigtramp_saved_pc): Remove prototype.
4797 (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
4798 (i386_linux_frame_saved_pc): New prototype.
4800 2001-03-26 Andrew Cagney <ac131313@redhat.com>
4802 * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
4803 * TODO (GDB 5.1 - Cleanups): Update.
4805 2001-03-26 Andrew Cagney <ac131313@redhat.com>
4807 * fork-child.c (clone_and_follow_inferior): Delete #ifdef
4810 2001-03-26 Mark Kettenis <kettenis@gnu.org>
4812 * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
4814 * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
4816 * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
4817 (STORE_STRUCT_RETURN): Redefine in terms of
4818 i386_store_struct_return.
4819 (i386_push_arguments, i386_store_struct_return): New prototypes.
4820 * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove. It's
4821 definition was identical to the definition in "i386/tm-i386.h" so
4822 the new definition should suffice too.
4824 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4826 * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
4827 definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
4829 * config/djgpp/djconfig.sh: Add copyright notice.
4831 * ser-go32.c (rawclock): Remove prototype; include time.h instead.
4832 (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
4833 (top level) <string.h>: Include gdb_string.h instead.
4834 (dos_noop, dos_raw, dos_noflush_set_tty_state)
4835 (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
4837 * go32-nat.c (go32_create_inferior): Move the declaration of
4838 `environ' to here from the top level.
4839 (top level) <_initialize_go32_nat>: Remove redundant prototype.
4840 <gdb_string.h>: Include it instead of string.h.
4841 (store_register): Call register_buffer instead of accessing
4842 registers[] directly.
4843 (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger)
4844 (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
4845 the function names at the start of the line.
4846 (go32_set_dr): Throw internal_error if the argument is not a valid
4847 debug register number.
4848 (go32_open, go32_close, go32_attach, go32_detach, go32_resume)
4849 (go32_wait, go32_xfer_memory, go32_files_info)
4850 (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
4852 2001-03-25 Jim Blandy <jimb@redhat.com>
4854 * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
4856 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4858 From Andrew Cagney <ac131313@redhat.com>
4860 * coffread.c: Include "gdb_assert.h".
4861 (coff_symtab_read): Cast the integer s_sclass to a long before
4862 casting it to a pointer.
4864 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4866 From Andrew Cagney <ac131313@redhat.com>
4868 * coffread.c (coff_symtab_read): Initialize
4869 ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds
4871 * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
4873 2001-03-23 Andrew Cagney <ac131313@redhat.com>
4875 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
4876 GDB_MULTI_ARCH_PARTIAL from two. SOFTWARE_SINGLE_STEP is not
4879 * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
4880 * gdbarch.h, gdbarch.c: Re-generate.
4882 * target.h (SOFTWARE_SINGLE_STEP_P)
4883 (SOFTWARE_SINGLE_STEP): Delete macro definitions.
4885 2001-03-23 Andrew Cagney <ac131313@redhat.com>
4887 * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
4888 * gdbarch.h, gdbarch.c: Regenerate.
4890 * regcache.h (regcache_read, regcache_write): Declare.
4891 (registers, register_valid, register_buffer): Add note that these
4892 interfaces are deprecated.
4894 * regcache.c: Include "gdb_assert.h".
4895 (legacy_write_register_gen): Rename write_register_gen.
4896 (legacy_read_register_gen): Rename read_register_gen.
4897 (regcache_read, regcache_write): New function.
4898 (read_register_gen, write_register_gen): New function.
4899 (write_register): Simplify. Use write_register_gen.
4900 (read_register): Ditto using read_register_gen.
4901 (read_signed_register): Ditto.
4902 (read_register_bytes): Ditto!!!!
4903 (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
4904 replaced by gdbarch_register_read.
4906 * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
4909 2001-03-23 Jim Blandy <jimb@redhat.com>
4911 Fix from Dan Berlin:
4913 * stabsread.c (read_cpp_abbrev): Properly construct the names of
4914 virtual function table pointer fields.
4916 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4918 * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
4919 xmrealloc): Move existing declarations to the one place and
4920 re-order to be consistent.
4921 (xmcalloc, xmfree): Declare.
4922 (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
4925 * utils.c (size_t): Delete #ifdef defining size_t.
4926 (mmalloc, mrealloc, mcalloc, mfree): Re-order.
4927 (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
4928 corresponding malloc, realloc, calloc.
4929 (mfree): Call free directly.
4930 (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
4931 (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
4932 function bodies to here.
4933 (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
4935 2001-03-23 Andrew Cagney <ac131313@redhat.com>
4937 * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
4938 ``shell_file'' static locals.
4940 * jv-lang.c (java_link_class_type): Initialize ``field'' and
4943 * jv-valprint.c (java_value_print): Initialize ``next_element''.
4945 2001-03-23 Mark Kettenis <kettenis@gnu.org>
4947 * config/i386/nm-i386.h: Fix formatting and change reference to
4948 i386-tdep.c to i386-nat.c.
4950 2001-03-23 David Smith <dsmith@redhat.com>
4952 * configure.in: Corrected spelling errors.
4953 * configure: Regenerated.
4955 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4957 * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
4959 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4961 * Makefile.in (NTSSTART): Delete.
4963 (kdb): Delete target.
4964 * kdb-start.c, stuff.c: Mark as obsolete.
4967 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4969 * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
4970 compiles using an ISO-C compiler.
4971 (MALLOC_INCOMPATIBLE): Ditto.
4972 * linespec.c (decode_line_1): Delete hack to work around
4975 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4977 * exec.c (xfer_memory): Always initialize section.
4978 * infrun.c (normal_stop): Always initialize source_flag.
4980 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4982 * TODO (Remote Protocol Support): Review. Add notes about ``!'',
4983 non-use of a continue address and typical use of ``q'' packet.
4985 2001-03-22 Eli Zaretskii <eliz@is.elta.co.il>
4987 Make DJGPP use the new unified support for hardware
4988 breakpoints and watchpoints on x86 targets:
4990 * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
4991 include nm-i386.h instead.
4992 (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
4993 (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
4994 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
4995 (target_stopped_data_address, target_insert_watchpoint)
4996 (target_remove_watchpoint, target_insert_hw_breakpoint)
4997 (target_remove_hw_breakpoint): Don't define.
4998 (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
4999 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
5000 (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
5001 functions from go32-nat.c.
5003 * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
5005 * go32-nat.c <top level>: Remove prototypes for watchpoint-
5006 related functions. Remove definitions of watchpoint-related
5008 (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
5009 private cleanup_dregs function.
5010 (cleanup_dregs, go32_insert_watchpoint)
5011 (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
5012 (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
5013 (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
5014 (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
5015 (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
5017 2001-03-21 Kevin Buettner <kevinb@redhat.com>
5019 * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
5020 than two instead of generating an error.
5022 2001-03-21 Jim Blandy <jimb@redhat.com>
5024 * cp-valprint.c: Reformat to bring into line with GNU coding
5027 2001-03-21 Mark Kettenis <kettenis@gnu.org>
5029 Make Linux use the new unified support for hardware breakpoints
5030 and watchpoints on x86 targets.
5031 * i386-linux-nat.c: Doc fixes. Include "gdb_assert.h".
5032 [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
5033 (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
5034 appropriate value if not already defined.
5035 (register_u_addr): New function.
5036 (kernel_u_size): New function.
5037 (i386_linux_dr_get, i386_linux_dr_set): New functions.
5038 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
5039 i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
5040 * config/i386/nm-linux.h: Don't include "nm-i386v.h".
5041 (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
5042 (TARGET_HAS_HARDWARE_WATCHPOINTS,
5043 TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
5044 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
5045 target_remove_watchpoint): Remove macros.
5046 (i386_stopped_by_watchpoint, i386_insert_watchpoint,
5047 i386_remove_watchpoint): Remove prototypes.
5048 (register_u_addr): New prototype.
5049 (REGISTER_U_ADDR): Define in terms of register_u_addr.
5050 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
5051 i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
5052 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
5053 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
5054 * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
5057 2001-03-21 Jim Blandy <jimb@redhat.com>
5059 Fix from Dan Berlin:
5061 * linespec.c (find_methods): Whitespace differences aren't
5062 significant in *un*mangled method names. Use strcmp_iw to compare
5065 2001-03-21 Andrew Cagney <ac131313@redhat.com>
5067 * gdbarch.sh: Allow a non- multi-arch target to override a
5069 * gdbarch.h: Regenerate.
5071 2001-03-21 Andrew Cagney <ac131313@redhat.com>
5073 * gdbarch.sh: Avoid use of ``!''.
5075 2001-03-20 Andrew Cagney <ac131313@redhat.com>
5077 * target.h (enum target_signal): Move definition from here.
5078 * defs.h (enum target_signal): To here.
5080 * config/arc/tm-arc.h (arc_software_single_step): Change type of
5081 first parameter to enum target_signal.
5082 * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
5083 * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
5084 * rs6000-tdep.c (rs6000_software_single_step): Update.
5086 2001-03-20 Andrew Cagney <ac131313@redhat.com>
5088 * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
5091 From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
5092 * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
5093 or a reference ('a') can be in a pseudo register.
5094 * infcmd.c (do_registers_info): Must take into account the pseudo
5095 registers to print their value.
5096 (registers_info): Likewise.
5097 * stack.c (frame_info): Likewise.
5098 * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
5100 2001-03-21 Eli Zaretskii <eliz@is.elta.co.il>
5102 Unified support for hardware breakpoints and watchpoints on
5105 * config/i386/nm-i386.h: New file.
5107 * config/i386/nm-i386.h: (i386_cleanup_dregs)
5108 (i386_insert_watchpoint, i386_remove_watchpoint)
5109 (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
5110 (i386_stopped_data_address, i386_insert_hw_breakpoint)
5111 (i386_remove_hw_breakpoint): Declare prototypes.
5112 [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5113 Define if not already defined.
5114 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
5115 (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
5116 (target_insert_watchpoint, target_remove_watchpoint)
5117 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
5118 to call the appropriate i386_* functions.
5120 * i386-nat.c: New file.
5122 * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
5123 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
5124 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
5125 (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
5126 (maint_show_dr): New variables.
5127 (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
5128 (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
5129 (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
5130 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
5131 (i386_stopped_data_address, i386_stopped_by_hwbp)
5132 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
5134 (_initialize_i386_nat): New function.
5135 [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
5136 `show-debug-regs', sets maint_show_dr to non-zero value and
5137 activates debugging print-outs in functions which insert, remove,
5138 and test watchpoints and hardware breakpoints.
5140 * Makefile.in (i386-nat.o): New target.
5141 (ALLDEPFILES): Add i386-nat.o.
5143 2001-03-21 Mark Kettenis <kettenis@gnu.org>
5145 * i386-tdep.c: Add back _initialize_i386_tdep prototype with
5146 appropriate comment.
5148 2001-03-20 Kevin Buettner <kevinb@redhat.com>
5150 * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
5151 thread-db.o, and lin-lwp.o for thread support instead of
5152 linux-thread.o and lin-thread.o.
5153 * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
5154 (ATTACH_LWP): Define to use the following lin-lwp.c functions...
5155 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
5156 (lin_lwp_attach_lwp): Declare.
5158 2001-03-20 Jim Blandy <jimb@redhat.com>
5160 Fix from Dan Berlin:
5162 * Makefile.in: Clean up dependencies on ../include/demangle.h.
5163 (demangle_h): New variable.
5164 (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
5166 2001-03-20 Andrew Cagney <ac131313@redhat.com>
5168 * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
5169 * breakpoint.c (bpstat_stop_status): Update.
5170 * infrun.c (handle_inferior_event): Ditto.
5171 * mips-tdep.c (mips_dump_tdep): Ditto.
5172 * infrun.c (resume): Ditto.
5173 * infptrace.c (child_resume): Ditto.
5174 * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
5175 * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
5176 * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
5177 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
5178 * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
5179 * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
5180 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
5182 2001-03-20 Andrew Cagney <ac131313@redhat.com>
5184 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
5185 with internal_error.
5187 2001-03-20 Jim Blandy <jimb@redhat.com>
5189 Fix from Dan Berlin:
5191 * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
5192 than asking for sym_class's type; that's circuitous. Remove
5193 sym_class, since the last use of it is gone.
5195 2001-03-20 Eli Zaretskii <eliz@is.elta.co.il>
5197 * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
5198 Correct the order of calls to ui_out_field_string and
5199 ui_out_list_begin when bs->old_val is NULL.
5201 2001-03-19 Kevin Buettner <kevinb@redhat.com>
5203 * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
5204 * configure: Regenerate.
5205 * config.in: Regenerate.
5206 * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
5208 2001-03-19 Kevin Buettner <kevinb@redhat.com>
5210 * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
5211 same line to avoid problems with Unixware 7's make when building
5214 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5216 * defs.h (malloc): Move declaration from here.
5217 * utils.c (malloc): To here.
5218 * config/pa/xm-hppah.h (malloc): Delete declaration.
5220 * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
5221 * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
5222 (hpread_quick_traverse): Ditto.
5223 * infttrace.c (create_thread_info): Ditto.
5224 (kill_inferior): Ditto.
5225 * gnu-nat.c (make_inf): Ditto, and don't check return value.
5226 * procfs.c (proc_update_threads): Ditto.
5227 * valprint.c (print_decimal_chars): Ditto.
5228 * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
5230 * remote-rdp.c (rdp_set_command_line): Ditto.
5232 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5234 * defs.h (realloc): Move declaration from here.
5235 * utils.c (realloc): To here.
5236 * config/pa/xm-hppah.h (realloc): Delete declaration.
5237 * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
5238 * symfile.c (add_filename_language): Ditto.
5239 * event-loop.c (create_file_handler): Ditto.
5241 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5243 * defs.h (free): Move declaration from here.
5244 * utils.c (free): To here.
5245 (xfree): Document as the only call to free().
5246 * config/pa/xm-hppah.h (free): Delete declaration.
5248 2001-03-19 Kevin Buettner <kevinb@redhat.com>
5250 * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
5253 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5255 * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
5256 * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
5257 * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
5259 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5261 * TODO: List known problems with TUI.
5263 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5265 * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
5268 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5270 * remote.c (remote_cisco_section_offsets): Do not cast result from
5271 bfd_get_section_name.
5272 (compare_sections_command): Ditto.
5273 (remote_cisco_section_offsets): Make ``p'' a const pointer.
5274 (compare_sections_command): Ditto for ``sectname''.
5276 2001-03-19 Andrew Cagney <ac131313@redhat.com>
5278 From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
5279 * valops.c (hand_function_call): Simplify computation of the
5280 address of the pushed argument.
5282 2001-03-17 Andrew Cagney <ac131313@redhat.com>
5284 * p-exp.y (parse_number): Avoid shift overflow when ``long''.
5285 Code copied from c-exp.y.
5287 2001-03-18 Kevin Buettner <kevinb@redhat.com>
5289 * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
5290 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
5291 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
5292 * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
5293 of the Solaris procfs testing section. Instead, group with...
5294 (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
5295 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
5296 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
5297 * configure: Regenerate.
5298 * config.in: Regenerate.
5300 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
5301 new configure macros to choose which (if any) code to
5302 compile in. Added code to explicitly handle *BSD systems;
5303 these systems were previously handled only through macro
5304 redefinition. Also, due to the way the autoconf tests are set
5305 up, this function will no longer return a non-zero value when
5306 GDB is configured as a cross debugger. I.e, cross debuggers
5307 will no longer be able to "accidentally" get the host system's
5310 2001-03-18 Kevin Buettner <kevinb@redhat.com>
5312 * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
5313 line to avoid build problem on NetBSD 1.4.
5315 2001-03-17 Michael Chastain <chastain@redhat.com>
5317 * win32-nat.c (child_attach): check args for NULL before passing
5318 to strtoul. This fixes PR gdb/43.
5320 2001-03-17 Mark Kettenis <kettenis@gnu.org>
5322 * i387-nat.h: Doc Fix.
5324 * i386-tdep.c: Fix formatting.
5325 (i386_get_frame_setup, i386_follow_jump, codestream_read,
5326 codestream_seek, codestream_fill, skip_trampoline_code,
5327 gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
5330 2001-03-17 Mark Kettenis <kettenis@gnu.org>
5332 * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
5333 no longer used. Also remove associated FIXME.
5335 2001-03-16 Andrew Cagney <ac131313@redhat.com>
5337 * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch. Do
5338 not generate macro wrappers for multi-arch functions or
5340 (class_is_info_p, class_is_predicate_p): Update.
5341 (class_is_function_p, class_is_variable_p): Ditto.
5342 (class_is_multiarch_p): New class function.
5344 2001-03-16 J.T. Conklin <jtc@redback.com>
5346 * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
5347 h8300_frame_args_address from frame_args_address.
5348 (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
5349 from frame_locals_address.
5350 (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
5351 from print_register_hook.
5352 (h8300_frame_args_address): Declare.
5353 (h8300_frame_find_saved_regs): Declare.
5354 (h8300_frame_locals_address): Declare.
5355 (h8300_frame_saved_pc): Declare.
5356 (h8300_pop_frame): Declare.
5357 (h8300_print_register_hook): Declare.
5358 * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
5359 (h8300_frame_args_address): Renamed from frame_args_address.
5360 (h8300_frame_locals_address): Renamed from frame_locals_address.
5361 (h8300_pop_frame): Renamed from pop_frame.
5362 (h8300_print_register_hook): Renamed from print_register_hook.
5364 2001-03-16 Kevin Buettner <kevinb@redhat.com>
5366 * solib-svr4.c (bfd_lookup_symbol): Change type of
5367 ``storage_needed'' from unsigned int to long in order to
5368 match return type of bfd_get_symtab_upper_bound() and
5369 bfd_get_dynamic_symtab_upper_bound().
5370 * solib-aix5.c (bfd_lookup_symbol): Likewise. Also, eliminate
5371 REASONABLE_LIMIT hack which had been added to work around this
5374 2001-03-15 Kevin Buettner <kevinb@redhat.com>
5376 * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
5377 (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
5378 to free() with calls to xfree().
5379 (bfd_lookup_symbol): Eliminate use of PTR.
5380 (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
5382 2001-03-15 Martin Hunt <hunt@redhat.com>
5384 * linespec.c (decode_line_1): Remove trailing quote
5385 when parsing double quotes.
5387 2001-03-15 Kevin Buettner <kevinb@redhat.com>
5389 * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
5390 (libthread_stub, libthread_init): Pass NULL for the mem_attrib
5391 argument in the to_xfer_memory calls.
5393 2001-03-15 Andrew Cagney <ac131313@redhat.com>
5395 * MAINTAINERS: Fix typo - w65 not w64. Still doesn't build.
5396 * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
5398 2001-03-15 Andrew Cagney <ac131313@redhat.com>
5400 * wince.c (child_xfer_memory): Add attrib parameter.
5401 * symm-nat.c (child_xfer_memory): Ditto.
5402 * mac-nat.c (child_xfer_memory): Ditto.
5403 * infttrace.c (child_xfer_memory): Ditto.
5404 * procfs.c (procfs_xfer_memory): Ditto.
5405 * lin-thread.c (thread_db_xfer_memory): Ditto.
5406 * gnu-nat.c (gnu_xfer_memory): Ditto.
5408 2001-03-14 Andrew Cagney <ac131313@redhat.com>
5410 * NEWS: Mention that Harris/CXUX m88k is obsolete.
5412 2001-03-13 Andrew Cagney <ac131313@redhat.com>
5414 * config/mips/tm-mips.h: Include "regcache.h" for macros refering
5415 to regcache functions.
5416 * config/m68k/tm-m68k.h: Ditto.
5417 * config/i386/tm-i386v.h: Ditto.
5418 * config/mcore/tm-mcore.h: Ditto.
5419 * config/m88k/tm-m88k.h: Ditto.
5420 * config/m68k/tm-news.h: Ditto.
5421 * config/m68k/tm-linux.h: Ditto.
5422 * config/m68k/tm-delta68.h: Ditto.
5423 * config/m68k/nm-sun3.h: Ditto.
5424 * config/m32r/tm-m32r.h: Ditto.
5425 * config/i386/tm-symmetry.h: Ditto.
5426 * config/i386/tm-sun386.h: Ditto.
5427 * config/i386/tm-i386.h: Ditto.
5428 * config/i386/nm-symmetry.h: Ditto.
5429 * config/i386/nm-sun386.h: Ditto.
5430 * config/i386/nm-ptx4.h: Ditto.
5431 * config/i386/nm-i386mach.h: Ditto.
5432 * config/h8500/tm-h8500.h: Ditto.
5433 * config/h8300/tm-h8300.h: Ditto.
5434 * config/fr30/tm-fr30.h: Ditto.
5435 * config/d30v/tm-d30v.h: Ditto.
5436 * config/arm/tm-arm.h: Ditto.
5437 * config/arc/tm-arc.h: Ditto.
5438 * config/alpha/tm-alpha.h: Ditto.
5439 * config/a29k/tm-vx29k.h: Ditto.
5440 * config/a29k/tm-a29k.h: Ditto.
5441 * config/w65/tm-w65.h: Ditto.
5442 * config/vax/tm-vax.h: Ditto.
5443 * config/v850/tm-v850.h: Ditto.
5444 * config/tic80/tm-tic80.h: Ditto.
5445 * config/sparc/tm-sparclite.h: Ditto.
5446 * config/sparc/tm-sparclet.h: Ditto.
5447 * config/sparc/tm-sparc.h: Ditto.
5448 * config/sparc/nm-sun4sol2.h: Ditto.
5449 * config/sparc/nm-sun4os4.h: Ditto.
5450 * config/sparc/nm-nbsd.h: Ditto.
5451 * config/powerpc/nm-solaris.h: Ditto.
5452 * config/pa/tm-hppao.h: Ditto.
5453 * config/pa/tm-hppa.h: Ditto.
5454 * config/pa/nm-hppab.h: Ditto.
5455 * config/ns32k/tm-umax.h: Ditto.
5456 * config/ns32k/tm-merlin.h: Ditto.
5457 * config/nm-m3.h: Ditto.
5458 * config/nm-gnu.h: Ditto.
5460 2001-03-14 Andrew Cagney <ac131313@redhat.com>
5462 * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
5463 broken. Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
5464 Specify an m88k target. Include sample GAWK script to generate
5465 target list. Delete non-existant romp target.
5466 * TODO (GDB 5.1 - Cleanups): Update.
5468 2001-03-14 Keith Seitz <keiths@cygnus.com>
5470 * linespec.c (decode_line_1): Skip argptr over a leading
5471 double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
5473 2001-03-14 Kevin Buettner <kevinb@redhat.com>
5475 * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
5477 2001-03-13 Andrew Cagney <ac131313@redhat.com>
5479 * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
5482 * printcmd.c (printf_command): Ditto.
5483 * ch-exp.c (match_integer_literal): Ditto.
5484 * scm-tags.h: Ditto.
5485 * ser-go32.c: Ditto.
5486 * hppa-tdep.c (unwind_command): Ditto.
5487 * defs.h (volatile): Delete macro definition. Assume __STDC__.
5488 * remote-adapt.c (volatile): Ditto.
5489 * remote-eb.c (volatile): Ditto.
5490 * remote-mm.c (volatile): Ditto.
5491 * defs.h (alloca): Assume __STDC__, declare returning void *.
5493 2001-03-08 Andrew Cagney <ac131313@redhat.com>
5495 * inferior.h (ARCH_NUM_REGS): Delete definition.
5496 * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
5497 * regcache.c (registers_changed): Ditto.
5498 (registers_fetched): Ditto.
5499 * infptrace.c (fetch_inferior_registers): Ditto.
5500 (store_inferior_registers): Ditto.
5501 * infcmd.c (do_registers_info): Ditto.
5502 (registers_info): Ditto.
5503 * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
5504 (old_store_inferior_registers): Ditto.
5505 * gdbserver/low-linux.c (register_addr): Ditto.
5506 * gdbserver/low-hppabsd.c (register_addr): Ditto.
5507 * core-aout.c: Don't include "inferior.h".
5508 (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
5509 (register_addr): Ditto.
5511 2001-03-13 Fernando Nasser <fnasser@redhat.com>
5513 From Steven Johnson <sjohnson@neurizon.net>
5514 * cli/cli-script.c (define_command): Fix setting of post hooks.
5516 2001-03-13 Mark Kettenis <kettenis@gnu.org>
5518 * i386-linux-tdep.c: Fix formatting and clarify comments.
5519 (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
5522 2001-03-12 Andrew Cagney <ac131313@redhat.com>
5524 * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
5525 (proc_update_sc): Use gdb_assert instead of assert.
5526 (proc_abort): Ditto.
5527 (inf_set_step_thread): Ditto.
5529 (S_exception_raise_request): Ditto.
5530 (gnu_terminal_init_inferior): Ditto.
5532 2001-03-09 Kevin Buettner <kevinb@redhat.com>
5534 * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
5535 (solib-legacy.o): New makefile target.
5536 * solib-legacy.c: New file.
5537 * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5538 (default_svr4_fetch_link_map_offsets): Delete.
5539 (set_solib_svr4_fetch_link_map_offsets): Declare.
5540 (legacy_svr4_fetch_link_map_offsets_hook): Declare.
5541 * solib-svr4.c (elf/common.h): Include.
5542 (link.h): Only include for SunOS shared library support.
5543 (_SYSCALL32): Don't define.
5544 (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
5545 (default_svr4_fetch_link_map_offsets): Made static; added forward
5547 (fetch_link_map_offsets): New static global.
5548 (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
5549 (default_svr4_fetch_link_map_offsets): Rewritten. The guts
5550 of what used to be in this function now reside in
5551 legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
5552 (open_symbol_file_object): Fix declaration in SunOS section
5554 (set_solib_svr4_fetch_link_map_offsets): New extern function.
5555 (init_fetch_link_map_offsets): New static function.
5556 (_initialize_svr4_solib): Put static global fetch_link_map_offsets
5557 under multiarch control.
5559 * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
5561 * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
5562 * config/arm/linux.mt (TDEPFILES): Likewise.
5563 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5564 * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
5565 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5566 * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
5567 * config/i386/i386sol2.mt (TDEPFILES): Likewise.
5568 * config/i386/i386v4.mh (NATDEPFILES): Likewise.
5569 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5570 * config/i386/linux.mt (TDEPFILES): Likewise.
5571 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5572 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5573 * config/i386/ncr3000.mt (TDEPFILES): Likewise.
5574 * config/i386/ptx4.mh (XDEPFILES): Likewise.
5575 * config/i386/sun386.mt (TDEPFILES): Likewise.
5576 * config/ia64/linux.mt (TDEPFILES): Likewise.
5577 * config/m68k/linux.mt (TDEPFILES): Likewise.
5578 * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
5579 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5580 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
5581 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
5582 * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
5583 * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
5584 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5585 * config/powerpc/linux.mt (TDEPFILES): Likewise.
5586 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5587 * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
5588 * config/sh/linux.mt (TDEPFILES): Likewise.
5589 * config/sparc/linux.mt (TDEPFILES): Likewise.
5590 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5591 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5592 * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
5593 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
5594 * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
5596 2001-03-09 Kevin Buettner <kevinb@redhat.com>
5598 * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
5600 2001-03-09 Andrew Cagney <ac131313@redhat.com>
5602 * MAINTAINERS (Write After Approval): Update Philip Blundell.
5604 2001-03-09 Keith Seitz <keiths@cygnus.com>
5606 * MAINTAINERS: Add myself to write after approval list.
5608 2001-03-09 Mark Kettenis <kettenis@gnu.org>
5610 * i387-tdep.c (print_i387_status_word): Fix printing of Stack
5611 fault flag. It is bit 6 of the x87 FPU status word, not bit 7.
5613 2001-03-08 Andrew Cagney <ac131313@redhat.com>
5615 * configure.host (m88*-harris-cxux*): Mark as obsolete.
5616 * configure.tgt: Ditto.
5617 * config/m88k/xm-cxux.h: Ditto.
5618 * config/m88k/tm-cxux.h: Ditto.
5619 * config/m88k/nm-cxux.h: Ditto.
5620 * config/m88k/cxux.mt: Ditto.
5621 * config/m88k/cxux.mh: Ditto.
5623 2001-03-08 Andrew Cagney <ac131313@redhat.com>
5625 * Makefile.in: Delete rules for obsolete files.
5627 Thu Mar 8 15:43:40 2001 David Taylor <taylor@redhat.com>
5629 * stack.c (parse_frame_specification): For one argument case,
5630 handle the situation where the argument is an integer, not an
5631 address -- arguably the most common case. This matters on
5632 targets where pointers and addresses are different.
5634 2001-03-08 Andrew Cagney <ac131313@redhat.com>
5636 * TODO: Revise 5.1 list. Delete PARAMS task. Add coding standard
5637 review. Clarify GNU/LINUX/sparc. Move other tasks to 5.2 or
5640 2001-03-07 Andrew Cagney <ac131313@redhat.com>
5642 * TODO (GDB 5.1 Known Problems): Document problem of building GDB
5643 with SID on Solaris 8.
5645 2001-03-07 Mark Kettenis <kettenis@gnu.org>
5647 * defs.h: Provide prototypes for floatformat_is_negative,
5648 floatformat_is_nan and floatformat_mantissa.
5649 * utils.c: Include "gdb_assert.h".
5650 (floatformat_is_negative): New function.
5651 (floatformat_is_nan): New function.
5652 (floatformat_mantissa): New function.
5653 * valprint.c: Include "floatformat.h".
5654 (print_floating): Get rid of the Linux-specific
5655 TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
5656 help these new functions. Print NaN's in a format conforming to
5659 2001-03-07 Eli Zaretskii <eliz@is.elta.co.il>
5661 * top.c (init_main): Make `set history file name' complete on file
5664 2001-03-06 J.T. Conklin <jtc@redback.com>
5666 * Makefile.in (LINTFLAGS): Update to contain all of the macros
5667 which define include paths used when compiling.
5669 * util.c (savestring, msavestring): Change type of length argument.
5670 * defs.h (savestring, msavestring): Update to match.
5672 * symtab.h (decode_line_1): Removed declaration.
5674 * symfile.c (#include <assert.h>): Removed.
5676 * arch-utils.c (#include <ctype.h>): Removed.
5677 * c-typeprint.c: Likewise.
5678 * dbxread.c: Likewise.
5679 * gdbtypes.c: Likewise.
5680 * target.c: Likewise.
5681 * os9kread.c: Likewise.
5683 * c-valprint.c (#include "demangle.h"): Removed.
5684 * ch-typeprint.c: Likewise.
5686 * f-typeprint.c: Likewise.
5687 * f-valprint.c: Likewise.
5688 * m2-typeprint.c: Likewise.
5689 * typeprint.c: Likewise.
5690 * p-typeprint.c: Likewise.
5691 * valarith.c: Likewise.
5692 * valprint.c: Likewise.
5694 * m2-typeprint.c (#include "gdb_string.h"): Removed.
5695 * nlmread.c: Likewise.
5697 * mdebugread.c (#include "gdb-stabs.h"): Removed.
5698 * minsyms.c: Likewise.
5699 * mipsread.c: Likewise.
5700 * nlmread.c: Likewise.
5702 * m2-typeprint.c (#include "obstack.h"): Removed.
5703 * m2-valprint.c: Likewise.
5705 * event-loop.c (#include <setjmp.h>): Removed.
5707 2001-03-06 Stan Shebs <shebs@apple.com>
5709 * MAINTAINERS: Remove self from specific maintenance domains
5710 (macos, gdbserver, documentation, testsuite).
5712 2001-03-06 Kevin Buettner <kevinb@redhat.com>
5714 * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
5715 a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
5716 annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
5717 arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
5718 ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
5719 breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
5720 c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
5721 ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
5722 cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
5723 cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
5724 cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
5725 coff-solib.h, coffread.c, command.h, complaints.c,
5726 complaints.h, completer.c, completer.h,
5727 config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
5728 config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
5729 config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
5730 config/alpha/nm-linux.h, config/alpha/nm-osf.h,
5731 config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
5732 config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
5733 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
5734 config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
5735 config/arm/nm-linux.h, config/arm/tm-arm.h,
5736 config/arm/tm-embed.h, config/d10v/tm-d10v.h,
5737 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5738 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5739 config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
5740 config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
5741 config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
5742 config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
5743 config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
5744 config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
5745 config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
5746 config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
5747 config/i386/tm-fbsd.h, config/i386/tm-i386.h,
5748 config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
5749 config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
5750 config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
5751 config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
5752 config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
5753 config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
5754 config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
5755 config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
5756 config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
5757 config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
5758 config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
5759 config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
5760 config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
5761 config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
5762 config/i386/xm-linux.h, config/i386/xm-nbsd.h,
5763 config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
5764 config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
5765 config/i960/tm-i960.h, config/i960/tm-mon960.h,
5766 config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
5767 config/ia64/nm-aix.h, config/ia64/nm-linux.h,
5768 config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
5769 config/ia64/tm-linux.h, config/ia64/xm-aix.h,
5770 config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
5771 config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
5772 config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
5773 config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
5774 config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
5775 config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
5776 config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
5777 config/m68k/tm-isi.h, config/m68k/tm-linux.h,
5778 config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
5779 config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
5780 config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
5781 config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
5782 config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
5783 config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
5784 config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
5785 config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
5786 config/m68k/xm-mpw.h, config/m68k/xm-news.h,
5787 config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
5788 config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
5789 config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
5790 config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
5791 config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
5792 config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
5793 config/mips/nm-irix3.h, config/mips/nm-irix4.h,
5794 config/mips/nm-irix5.h, config/mips/nm-mips.h,
5795 config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
5796 config/mips/tm-embed.h, config/mips/tm-embed64.h,
5797 config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
5798 config/mips/tm-irix3.h, config/mips/tm-irix5.h,
5799 config/mips/tm-mips.h, config/mips/tm-mips64.h,
5800 config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
5801 config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
5802 config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
5803 config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
5804 config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
5805 config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
5806 config/mips/xm-irix4.h, config/mips/xm-irix5.h,
5807 config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
5808 config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
5809 config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
5810 config/mn10300/tm-mn10300.h, config/nm-gnu.h,
5811 config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
5812 config/nm-sysv4.h, config/none/nm-none.h,
5813 config/none/tm-none.h, config/none/xm-none.h,
5814 config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
5815 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
5816 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
5817 config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
5818 config/pa/nm-hppab.h, config/pa/nm-hppah.h,
5819 config/pa/nm-hppao.h, config/pa/tm-hppa.h,
5820 config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
5821 config/pa/xm-hppab.h, config/pa/xm-hppah.h,
5822 config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
5823 config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
5824 config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
5825 config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
5826 config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
5827 config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
5828 config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
5829 config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
5830 config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
5831 config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
5832 config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
5833 config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
5834 config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
5835 config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
5836 config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
5837 config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
5838 config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
5839 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
5840 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
5841 config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
5842 config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
5843 config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
5844 config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
5845 config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
5846 config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
5847 core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
5848 cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
5849 dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
5850 delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
5851 dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
5852 elfread.c, environ.c, environ.h, eval.c, event-loop.c,
5853 event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
5854 f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
5855 fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
5856 gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
5857 gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
5858 gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
5859 gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
5860 gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
5861 gdbserver/low-sim.c, gdbserver/low-sparc.c,
5862 gdbserver/low-sun3.c, gdbserver/remote-utils.c,
5863 gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
5864 gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
5865 gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
5866 hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
5867 hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
5868 hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
5869 i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
5870 i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
5871 i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
5872 inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
5873 irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
5874 jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
5875 kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
5876 linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
5877 m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
5878 m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
5879 m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
5880 mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
5881 mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
5882 mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
5883 mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
5884 monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
5885 nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
5886 ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
5887 op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
5888 pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
5889 ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
5890 ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
5891 proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
5892 rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
5893 regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
5894 remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
5895 remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
5896 remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5897 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
5898 remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
5899 remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
5900 rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
5901 scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
5902 ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
5903 sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
5904 solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
5905 source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
5906 sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
5907 standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
5908 symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
5909 symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
5910 tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
5911 typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
5912 ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
5913 valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
5914 vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
5915 vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
5916 vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
5917 wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
5918 xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
5921 2001-03-05 Kevin Buettner <kevinb@redhat.com>
5923 * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
5924 HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
5926 * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
5927 pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
5928 (sys/fault.h, sys/select.h): Test for presence of these
5930 (ia64-*-aix*): Define NEW_PROC_API for this host.
5931 * configure: Regenerate.
5932 * config.in: Regenerate.
5934 * configure.host (ia64-*-aix*): New host.
5935 * configure.tgt (ia64-*-aix*): New target.
5937 2001-03-05 Andrew Cagney <ac131313@redhat.com>
5939 * TODO (GDB 5.1 Known Problems): Document z8k as broken.
5941 Mon Mar 5 11:56:09 2001 Christopher Faylor <cgf@cygnus.com>
5943 * wince.c: Change realloc to xrealloc throughout.
5944 (handle_load_dll): Use void * rather than PTR in argument.
5946 2001-03-04 Andrew Cagney <ac131313@redhat.com>
5948 * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
5949 * ocd.c (ocd_xfer_memory): Ditto.
5950 * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
5951 * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
5952 buildable with ,-Werror.
5954 * Makefile.in (symfile_h): Define.
5955 (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
5956 * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
5957 * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
5960 * dsrec.c (make_srec): Fix internal_error fmt arg.
5961 * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
5963 2001-03-03 Kevin Buettner <kevinb@redhat.com>
5965 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
5968 2001-03-02 Andrew Cagney <ac131313@redhat.com>
5970 * MAINTAINERS (paper trail): Update.
5972 * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
5974 2001-03-02 Andrew Cagney <ac131313@redhat.com>
5976 From 2001-03-01 Tom Rix <trix@redhat.com>:
5977 * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
5978 parameter to mn10200_analyze_prologue.
5980 * config/mn10200/tm-mn10200.h: Include "regcache.h".
5981 * MAINTAINERS: Document that mn10200-elf target is buildable.
5983 2001-03-02 Kevin Buettner <kevinb@redhat.com>
5985 * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
5987 * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
5988 (MONTEREY): Don't define.
5991 2001-03-02 Matt Hiller <hiller@redhat.com>
5993 * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
5995 2001-03-02 Kevin Buettner <kevinb@redhat.com>
5997 * sparc-nat.c (sparc-nat.c): Don't include self.
5999 2001-03-01 J.T. Conklin <jtc@redback.com>
6001 * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
6002 if __CYGWIN32__ is set from here.
6003 * config/i386/xm-cygwin.h: To here.
6004 * config/powerpc/xm-cygwin.h: To here.
6006 * i386-stub.c (handle_exception): Use 'T' response packet.
6008 2001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
6010 * m32r-tdep.c: Fix cut and paste error in comment.
6012 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
6014 * symtab.c (print_msymbol_info): Print addresses by portable method
6015 longest_local_hex_string_custom. Allow for 64-bit addresses.
6017 2001-03-01 J.T. Conklin <jtc@redback.com>
6019 * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
6020 (MAX_OF_TYPE): Wrap macro definition in parenthesis.
6021 (MIN_OF_TYPE): Likewise.
6023 * memattr.h (mem_access_mode): Removed extraneous trailing comma.
6025 2001-03-01 Andrew Cagney <ac131313@redhat.com>
6027 * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
6028 * os9kread.c (os9k_process_one_symbol): Add assert to detect
6029 ``loses if sizeof (char *) > sizeof (int)''.
6031 2001-03-01 Andrew Cagney <ac131313@redhat.com>
6033 * gdb_assert.h: Document pragmatics behind gdb_assert's case.
6035 2001-03-01 Andrew Cagney <ac131313@redhat.com>
6037 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
6041 2001-03-01 Andrew Cagney <ac131313@redhat.com>
6043 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
6046 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
6048 * printcmd.c (print_address_numeric): Update comments to refer
6049 to sizeof addr, not sizeof pointer.
6050 (x_command): Remove needless whitespace (shorten long line).
6052 * breakpoint.c (print_one_breakpoint): Formatting clean-up.
6053 (read_memory_nobpt): Ditto.
6054 (ep_is_catchpoint): Ditto.
6055 (ep_is_shlib_catchpoint): Ditto.
6056 (ep_is_exception_catchpoint): Ditto.
6057 (describe_other_breakpoints): Ditto.
6059 Wed Feb 28 20:37:36 2001 Andrew Cagney <ac131313@redhat.com>
6061 * regcache.h (register_valid): Fix comment documenting valid
6064 Tue Feb 27 23:56:23 2001 Andrew Cagney <ac131313@redhat.com>
6066 From Steven Johnson:
6067 * regcache.h: New file.
6069 * value.h (read_register_bytes, read_register_gen)
6070 (write_register_gen, write_register_bytes)
6071 (read_register, read_register_pid)
6072 (read_signed_register, read_signed_register_pid)
6073 (write_register, write_register_pid)
6074 (register_cached, set_register_cached)
6075 (register_changed, register_buffer)
6076 (registers_changed, supply_register): Move declaration from here.
6077 * regcache.h: To here.
6078 * gdbcore.h (registers_fetched): Ditto.
6079 * inferior.h (registers, registers_valid): Ditto.
6081 * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
6082 generic_target_write_pc, write_pc_pid, write_pc,
6083 generic_target_read_sp, read_sp, generic_target_write_sp,
6084 write_sp, generic_target_read_fp, read_fp,
6085 generic_target_write_fp, write_fp): Add note that these functions
6086 will be moved from this file.
6088 * a29k-tdep.c: Include "regcache.h".
6089 * a68v-nat.c: Ditto.
6090 * abug-rom.c: Ditto.
6091 * alpha-nat.c: Ditto.
6092 * alpha-tdep.c: Ditto.
6093 * alphabsd-nat.c: Ditto.
6094 * arc-tdep.c: Ditto.
6095 * arm-linux-nat.c: Ditto.
6096 * arm-linux-tdep.c: Ditto.
6097 * arm-tdep.c: Ditto.
6098 * blockframe.c: Ditto.
6099 * core-aout.c: Ditto.
6100 * core-sol2.c: Ditto.
6102 * cpu32bug-rom.c: Ditto.
6103 * cxux-nat.c: Ditto.
6104 * d10v-tdep.c: Ditto.
6105 * d30v-tdep.c: Ditto.
6106 * dbug-rom.c: Ditto.
6107 * dink32-rom.c: Ditto.
6108 * dve3900-rom.c: Ditto.
6110 * fr30-tdep.c: Ditto.
6112 * go32-nat.c: Ditto.
6113 * h8300-tdep.c: Ditto.
6114 * h8500-tdep.c: Ditto.
6115 * hp300ux-nat.c: Ditto.
6116 * hppa-tdep.c: Ditto.
6117 * hppab-nat.c: Ditto.
6118 * hppah-nat.c: Ditto.
6119 * hppam3-nat.c: Ditto.
6120 * hpux-thread.c: Ditto.
6121 * i386-linux-nat.c: Ditto.
6122 * i386-linux-tdep.c: Ditto.
6123 * i386-tdep.c: Ditto.
6124 * i386aix-nat.c: Ditto.
6125 * i386b-nat.c: Ditto.
6126 * i386bsd-nat.c: Ditto.
6127 * i386gnu-nat.c: Ditto.
6128 * i386ly-tdep.c: Ditto.
6129 * i386m3-nat.c: Ditto.
6130 * i386mach-nat.c: Ditto.
6131 * i386nbsd-nat.c: Ditto.
6132 * i386v4-nat.c: Ditto.
6133 * i387-nat.c: Ditto.
6134 * i387-tdep.c: Ditto.
6135 * i960-tdep.c: Ditto.
6136 * ia64-aix-nat.c: Ditto.
6137 * ia64-linux-nat.c: Ditto.
6138 * ia64-tdep.c: Ditto.
6139 * infptrace.c: Ditto.
6141 * irix4-nat.c: Ditto.
6142 * irix5-nat.c: Ditto.
6144 * lin-thread.c: Ditto.
6145 * lynx-nat.c: Ditto.
6147 * m32r-rom.c: Ditto.
6148 * m32r-tdep.c: Ditto.
6149 * m68hc11-tdep.c: Ditto.
6150 * m68k-tdep.c: Ditto.
6151 * m68klinux-nat.c: Ditto.
6152 * m68knbsd-nat.c: Ditto.
6153 * m68knbsd-tdep.c: Ditto.
6154 * m88k-nat.c: Ditto.
6155 * m88k-tdep.c: Ditto.
6157 * mcore-rom.c: Ditto.
6158 * mcore-tdep.c: Ditto.
6159 * mi/mi-main.c: Ditto.
6160 * mips-nat.c: Ditto.
6161 * mips-tdep.c: Ditto.
6162 * mipsm3-nat.c: Ditto.
6163 * mipsv4-nat.c: Ditto.
6164 * mn10200-tdep.c: Ditto.
6165 * mn10300-tdep.c: Ditto.
6167 * ns32km3-nat.c: Ditto.
6168 * ns32knbsd-nat.c: Ditto.
6170 * pa64solib.c: Ditto.
6172 * ppc-linux-nat.c: Ditto.
6173 * ppc-linux-tdep.c: Ditto.
6174 * ppcbug-rom.c: Ditto.
6175 * ppcnbsd-nat.c: Ditto.
6176 * ptx4-nat.c: Ditto.
6177 * regcache.c: Ditto.
6178 * remote-adapt.c: Ditto.
6179 * remote-array.c: Ditto.
6180 * remote-bug.c: Ditto.
6181 * remote-e7000.c: Ditto.
6182 * remote-eb.c: Ditto.
6183 * remote-es.c: Ditto.
6184 * remote-est.c: Ditto.
6185 * remote-hms.c: Ditto.
6186 * remote-mips.c: Ditto.
6187 * remote-mm.c: Ditto.
6188 * remote-nindy.c: Ditto.
6189 * remote-os9k.c: Ditto.
6190 * remote-rdi.c: Ditto.
6191 * remote-rdp.c: Ditto.
6192 * remote-sds.c: Ditto.
6193 * remote-sim.c: Ditto.
6194 * remote-st.c: Ditto.
6195 * remote-udi.c: Ditto.
6196 * remote-utils.c: Ditto.
6197 * remote-vx.c: Ditto.
6198 * remote-vx29k.c: Ditto.
6199 * remote-vx68.c: Ditto.
6200 * remote-vx960.c: Ditto.
6201 * remote-vxmips.c: Ditto.
6202 * remote-vxsparc.c: Ditto.
6204 * rom68k-rom.c: Ditto.
6205 * rs6000-nat.c: Ditto.
6206 * rs6000-tdep.c: Ditto.
6209 * sol-thread.c: Ditto.
6210 * solib-svr4.c: Ditto.
6211 * somsolib.c: Ditto.
6212 * sparc-nat.c: Ditto.
6213 * sparc-tdep.c: Ditto.
6214 * sparcl-tdep.c: Ditto.
6215 * sparclet-rom.c: Ditto.
6216 * sun3-nat.c: Ditto.
6217 * sun386-nat.c: Ditto.
6218 * symm-nat.c: Ditto.
6220 * thread-db.c: Ditto.
6222 * tic80-tdep.c: Ditto.
6223 * tracepoint.c: Ditto.
6224 * ultra3-nat.c: Ditto.
6225 * umax-xdep.c: Ditto.
6226 * uw-thread.c: Ditto.
6227 * v850-tdep.c: Ditto.
6230 * w65-tdep.c: Ditto.
6231 * w89k-rom.c: Ditto.
6232 * win32-nat.c: Ditto.
6234 * z8k-tdep.c: Ditto.
6236 2001-02-28 Matt Hiller <hiller@redhat.com>
6238 * MAINTAINERS: Add Matt Hiller to Write After Approval list.
6240 2001-02-27 Matt Hiller <hiller@redhat.com>
6242 * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
6243 (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
6244 mn10300_stab_reg_to_regnum.
6246 Tue Feb 27 16:56:13 2001 David Taylor <taylor@redhat.com>
6248 * symtab.c (search_symbols): Fix off by one error in test for
6251 2001-02-23 Andrew Cagney <ac131313@redhat.com>
6253 * config/sparc/sp64linux.mt: New file.
6254 * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
6255 * configure.host: Recognize sparc64-*-linux* as a linux host.
6257 From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
6258 * config/sparc/tm-sp64linux.h: New file.
6260 2001-02-24 Kevin Buettner <kevinb@redhat.com>
6262 * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
6263 with call to internal_error().
6264 * dbxread.c (process_one_symbol): Likewise.
6265 * exec.c (build_section_table, xfer_memory): Likewise.
6266 * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
6268 * hpread.c (hpread_type_translate, hpread_read_array_type)
6269 (hpread_type_lookup): Likewise.
6270 * i386-tdep.c (gdb_print_insn_i386): Likewise.
6271 * i960-tdep.c (mem): Likewise
6272 * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
6273 * infptrace.c (child_resume): Likewise.
6274 * infttrace.c (_initialize_infttrace): Likewise.
6275 * language.c (binop_result_type, add_language): Likewise.
6276 * lynx-nat.c (store_inferior_registers): Likewise.
6277 * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
6278 * mdebugread.c (parse_partial_symbols): Likewise.
6279 * monitor.c (monitor_printf_noecho, monitor_printf)
6280 (monitor_dump_regs): Likewise.
6281 * ocd.c (stu_put_packet): Likewise.
6282 * printcmd.c (decode_format, print_scalar_formatted): Likewise.
6283 * remote-bug.c (bug_open): Likewise.
6284 * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
6285 * remote-es.c (es1800_read_bytes): Likewise.
6286 * remote-mips.c (common_breakpoint): Likewise.
6287 * remote-rdp.c (send_rdp): Likewise.
6288 * remote-sds.c (putmessage): Likewise.
6289 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
6291 * sparcl-tdep.c (sparclite_download): Likewise.
6292 * symtab.c (lookup_partial_symbol): Likewise.
6293 * target.c (push_target, pop_target, initialize_targets): Likewise.
6294 * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
6296 * valprint.c (print_decimal, print_longest, print_longest)
6297 (strcat_longest): Likewise.
6298 * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
6299 * xmodem.c (xmodem_send_packet): Likewise.
6300 * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
6301 * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
6302 * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
6303 (STORE_RETURN_VALUE): Likewise.
6304 * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
6305 * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
6306 * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
6309 2001-02-23 Andrew Cagney <ac131313@redhat.com>
6311 * CONTRIBUTE: Document how to cite a problem report.
6312 * TODO: Note need to replace CONTRIBUTE with generated file.
6314 * CONTRIBUTE: Mention that patches do not need to include the
6315 generated files gdbarch.h and gdbarch.c.
6317 2001-02-21 Andrew Cagney <ac131313@redhat.com>
6319 * value.h (get_saved_register): Move from here.
6322 2001-02-21 Kevin Buettner <kevinb@redhat.com>
6324 * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
6325 (in_solib_dynsym_resolve_code): Add declaration.
6326 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
6327 in_solib_dynsym_resolve_code() rather than
6328 in_svr4_dynsym_resolve_code(). Also, removed the ifdefs
6329 which caused this macro to only be defined when
6330 SVR4_SHARED_LIBS is defined.
6331 * solib.c (in_solib_dynsym_resolve_code): New function.
6332 * solist.h (struct target_so_ops): Add new member
6333 in_dynsym_resolve_code.
6334 * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
6335 in_svr4_dynsym_resolve_code. Also, made static.
6336 (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
6337 member in aix5_so_ops.
6338 * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
6339 in_svr4_dynsym_resolve_code. Also, added second version
6340 of this function which will be used when SVR4_SHARED_LIBS
6342 (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
6343 member in svr4_so_ops.
6345 * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
6346 config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
6347 config/ia64/xm-aix.h: New files.
6348 * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
6349 (ia64_aix_sigcontext_register_address): New declaration.
6350 (ia64_gdbarch_init): Provide for initialization of
6351 sigcontext_register_address member of struct tdep when
6352 on target is detected to be running AIX.
6353 * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
6356 2001-02-20 Kevin Buettner <kevinb@redhat.com>
6358 * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
6359 * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
6360 for thread support instead of linux-thread.o and lin-thread.o.
6361 * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
6362 ATTACH_LWP): Define to use the following lin-lwp.c functions...
6363 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
6364 lin_lwp_attach_lwp): Declare.
6366 2001-02-20 Andrew Cagney <ac131313@redhat.com>
6368 * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
6371 2001-02-20 Kevin Buettner <kevinb@redhat.com>
6373 * solib-aix5.c (solib-svr4.h): Remove include.
6374 (solib_break_names): Delete names which aren't actually
6376 (bkpt_names): Remove.
6377 (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
6378 to STREQ() with equivalent calls to strcmp().
6379 (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
6380 aix5_solib_create_inferior_hook): Revise comments.
6381 (enable_break): Remove old ``bkpt_names'' code.
6383 2001-02-19 Andrew Cagney <ac131313@redhat.com>
6385 * Makefile.in (SFILES): Add frame.c .
6386 (COMMON_OBS): Add frame.o .
6387 (frame.o): New target.
6389 * frame.c (find_saved_register):
6390 (default_get_saved_register):
6391 (get_saved_register):
6392 (read_relative_register_raw_bytes_for_frame):
6393 (read_relative_register_raw_bytes): Moved to here.
6394 * regcache.c: From here.
6396 2001-02-20 Kevin Buettner <kevinb@redhat.com>
6398 * solib-aix5.c: New file.
6400 2001-02-20 Martin M. Hunt <hunt@redhat.com>
6402 * solib.c (info_sharedlibrary_command): Don't assume pointers
6403 are the same size of long, call longest_local_hex_string_custom().
6405 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
6406 extract_signed_integer() should be called instead of
6409 2001-02-20 Martin M. Hunt <hunt@redhat.com>
6411 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
6413 2001-02-19 Andrew Cagney <ac131313@redhat.com>
6415 Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
6416 * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
6417 then floating point registers are 8 bytes.
6419 2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
6421 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
6422 accomodate 64-bit addresses.
6424 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6426 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
6427 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
6428 lookup_symbol, when trying to find a symbol with a mangled name,
6429 to avoid infinite recursion.
6431 2001-02-18 Andrew Cagney <ac131313@redhat.com>
6433 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
6435 2001-02-19 Jonathan Larmour <jlarmour@redhat.com>
6437 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
6438 (save_prologue_cache): Ditto.
6440 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6442 From: innadadadavida@yahoo.com:
6443 * partial-stab.h (switch): Check that pst is not null
6444 before dereferencing it.
6446 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6448 From Andrew Cagney <cagney@b1.cygnus.com>:
6449 * symfile.c (add_symbol_file_command): Always initialize
6450 my_cleanup using a NULL cleanup.
6452 2001-02-19 Eli Zaretskii <eliz@is.elta.co.il>
6454 * demangle.c (demangling_style_names): New variable.
6455 (_initialize_demangler): Fill demangling_style_names with the
6456 names of known demangling styles from libiberty_demanglers[]. Use
6457 add_set_enum_cmd instead of add_set_cmd, to get completion on
6458 demangling style names.
6460 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
6461 file-name completion.
6463 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
6465 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
6466 `solib-absolute-prefix'.
6468 * tracepoint.c (_initialize_tracepoint): Ditto for
6471 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
6473 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
6474 file-name completion.
6476 * infcmd.c (_initialize_infcmd): Make the following commands use
6477 the file-name completer: `tty', `args', `path', `paths', and
6480 2001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
6482 * go32-nat.c: Include i387-nat.h.
6483 (fetch_register): New function, uses some of the guts of
6484 go32_fetch_registers and calls i387_supply_register.
6485 (go32_fetch_registers): Most of the code moved into
6486 fetch_register. Use i387_supply_fsave.
6487 (store_register): Use i387_fill_fsave instead of custom code.
6488 (go32_store_registers): Use i387_fill_fsave.
6490 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
6492 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
6494 * completer.c (gdb_completer_file_name_break_characters): Remove
6495 slash from file-name break characters.
6496 [__MSDOS__]: Special definition for DOS/Windows file names.
6497 (line_completion_function): When completing on file names, bump
6498 `p' to the first file-name constituent character of `word', before
6499 invoking the completer.
6501 2001-02-17 Mark Kettenis <kettenis@gnu.org>
6503 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
6504 consistently for parameter names. Fix comments accordingly.
6505 (i387_supply_register): New function.
6506 (i387_supply_fsave): Implement using i387_supply_register.
6507 * i387-nat.h: Use regnum instead of regno consistently for
6508 parameter names. Fix comments accordingly.
6509 (i387_supply_register): New prototype.
6511 2001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
6513 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
6514 instead of TARGET_PTR_BIT (to support Harvard architectures).
6516 2001-02-16 Andrew Cagney <ac131313@redhat.com>
6518 From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
6519 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
6520 argument to parameter list and to call in order to conform to
6521 to_xfer_memory field of struct target_ops.
6523 2001-02-12 Michael Chastain <chastain@redhat.com>
6525 * somsolib.c (som_solib_add_solib_objfile): Do not use
6526 section relocation feature of syms_from_objfile. Do my own
6527 section relocation, offsetting each section of the som by
6528 either text_addr - text_link_addr or data_start.
6530 2001-02-16 Andrew Cagney <ac131313@redhat.com>
6532 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
6534 2001-02-16 Andrew Cagney <ac131313@redhat.com>
6536 * MAINTAINERS (paper trail): Update.
6538 2001-02-16 Mark Kettenis <kettenis@gnu.org>
6540 * target.h (target_fetch_registers): Fix comment.
6542 2001-02-15 Andrew Cagney <ac131313@redhat.com>
6544 * f-exp.y: Include <ctype.h>.
6545 (parse_number): Ensure that ``i'' is always initialized.
6547 2001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
6549 * MAINTAINERS: Add myself to paper trail section.
6551 2001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6553 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
6554 * configure, config.in: Regenerate.
6555 * corelow.c: Include <sys/file.h> if present.
6557 2001-02-14 Andrew Cagney <ac131313@redhat.com>
6559 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
6560 declare when have SIGTTOU.
6562 2001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
6564 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
6566 2001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
6568 * MAINTAINERS: Update my email address.
6570 2001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6572 * NEWS: Document that "info symbol" works with COFF debug info and
6575 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
6576 symbols whose SYMBOL_BFD_SECTION is NULL.
6578 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6580 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
6581 * xcoffsolib.c (xcoff_solib_address): Renamed from
6582 pc_load_segment_name. Return NULL if address is not in a shared
6583 library. Cleanup shared library name construction, using xasprintf.
6584 Format shared library member names consistent with format in exec.c.
6585 (solib_info): Format shared library member names consistent with
6587 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
6588 using xcoff_solib_address for PC_SOLIB definition.
6589 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
6592 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6594 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
6595 with xmalloc calls and cleanups.
6597 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6599 * rs6000-nat.c (child_xfer_memory): Add missing parameter
6600 'struct mem_attrib *' required by 2001-01-23 change.
6602 2001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
6604 Updates to "make TAGS":
6605 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
6606 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
6608 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
6610 2001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
6612 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
6614 Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
6616 From Dean Luick <luick@cray.com>:
6617 * defs.h (continuation): Remove unused global variable.
6619 Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
6621 * configure.tgt: Remove references to convex, pyramid, altos and
6623 * configure.host: Ditto.
6624 * MAINTAINERS: Ditto.
6627 * tahoe-tdep.c: Delete obsolete file.
6628 * pyr-xdep.c: Ditto.
6629 * pyr-tdep.c: Ditto.
6630 * convex-tdep.c: Ditto.
6631 * convex-xdep.c: Ditto.
6632 * config/tahoe/xm-tahoe.h: Ditto.
6633 * config/tahoe/tm-tahoe.h: Ditto.
6634 * config/tahoe/tahoe.mt: Ditto.
6635 * config/tahoe/tahoe.mh: Ditto.
6636 * config/pyr/xm-pyr.h: Ditto.
6637 * config/pyr/tm-pyr.h: Ditto.
6638 * config/pyr/pyramid.mt: Ditto.
6639 * config/pyr/pyramid.mh: Ditto.
6640 * config/m68k/xm-altos.h: Ditto.
6641 * config/m68k/tm-altos.h: Ditto.
6642 * config/m68k/altos.mt: Ditto.
6643 * config/m68k/altos.mh: Ditto.
6644 * config/convex/xm-convex.h: Ditto.
6645 * config/convex/tm-convex.h: Ditto.
6646 * config/convex/convex.mt: Ditto.
6647 * config/convex/convex.mh: Ditto.
6648 * config/convex/Convex.notes: Ditto.
6649 * config/arm/xm-arm.h: Ditto.
6650 * config/arm/nm-arm.h: Ditto.
6651 * config/arm/arm.mt: Ditto.
6652 * config/arm/arm.mh: Ditto.
6653 * arm-convert.s: Ditto.
6654 * arm-xdep.c: Ditto.
6655 * altos-xdep.c: Ditto.
6657 Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
6659 * defs.h (internal_error, internal_verror): Add __FILE__ and
6661 * utils.c (internal_error, internal_verror): Update.
6663 * v850-tdep.c: Update calls to internal_error.
6669 * symm-nat.c: Ditto.
6670 * sparc-tdep.c: Ditto.
6673 * rs6000-tdep.c: Ditto.
6674 * rs6000-nat.c: Ditto.
6676 * remote-vx.c: Ditto.
6677 * remote-sim.c: Ditto.
6678 * remote-mips.c: Ditto.
6679 * regcache.c: Ditto.
6680 * objfiles.h: Ditto.
6681 * objfiles.c: Ditto.
6682 * mn10300-tdep.c: Ditto.
6683 * mips-tdep.c: Ditto.
6685 * m68k-tdep.c: Ditto.
6687 * language.c: Ditto.
6688 * infptrace.c: Ditto.
6689 * inferior.h: Ditto.
6691 * ia64-tdep.c: Ditto.
6692 * i386-tdep.c: Ditto.
6693 * i386-linux-nat.c: Ditto.
6694 * hppah-nat.c: Ditto.
6695 * go32-nat.c: Ditto.
6699 * event-loop.c: Ditto.
6700 * dwarf2read.c: Ditto.
6702 * d30v-tdep.c: Ditto.
6703 * d10v-tdep.c: Ditto.
6704 * cli/cli-setshow.c: Ditto.
6705 * cli/cli-script.c: Ditto.
6707 * breakpoint.c: Ditto.
6709 * arch-utils.c: Ditto.
6710 * a29k-tdep.c: Ditto.
6711 * gdb_assert.h: Ditto.
6712 * gdbarch.sh: Ditto.
6713 * gdbarch.h, gdbarch.c: Re-generate.
6715 2001-02-07 Andrew Cagney <ac131313@redhat.com>
6717 From Mark Kettenis <kettenis@gnu.org>:
6718 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
6720 2001-02-07 Andrew Cagney <ac131313@redhat.com>
6722 * remote-sim.c (dump_mem): Cleanup printf format argument.
6723 * MAINTAINERS: Update, mn10300-elf now builds.
6725 2001-02-07 Mark Kettenis <kettenis@gnu.org>
6727 * event-top.c: Remove duplicate #include <signal.h>.
6729 2001-02-06 Andrew Cagney <ac131313@redhat.com>
6731 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
6733 (save_inferior_pid): Restore the PID from that tempoary
6734 buffer. Delete the buffer.
6735 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
6737 2001-02-06 Andrew Cagney <ac131313@redhat.com>
6739 * MAINTAINERS: Add ``The Obvious Fix Rule''.
6741 2001-02-06 Andrew Cagney <ac131313@redhat.com>
6743 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
6745 2001-02-06 Andrew Cagney <ac131313@cygnus.com>
6747 * gdbarch.sh: Include "gdb_assert.h".
6748 (struct gdbarch): Change ``nr_data'' to unsigned.
6749 (alloc_gdbarch_data, free_gdbarch_data): New functions.
6750 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
6751 architecture vector.
6752 (struct gdbarch_data, struct gdbarch_data_registration): Move init
6753 method to gdbarch_data. Add free method, make index unsigned.
6754 (struct gdbarch_data_registry): Make nr unsigned.
6755 (register_gdbarch_data): Add free parameter. Store in
6757 (init_gdbarch_data): Use set_gdbarch_data.
6758 (set_gdbarch_data): New function.
6760 * gdbarch.h, gdbarch.c: Re-generate.
6762 2001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6764 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
6765 fprintf_filtered with correct arguments.
6767 2001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
6768 Submitted by Paul Hilfinger (hilfingr@gnat.com)
6769 and Andrei Petrov (and@genesyslab.com).
6770 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
6771 must be allocated dynamically, since these are no longer constants.
6773 * regcache.c: Ditto.
6775 * sol-thread.c: Ditto.
6777 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
6778 work-around for a missing Sun header file in solaris for sparc64.
6780 2001-02-04 Philip Blundell <philb@gnu.org>
6782 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
6783 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
6784 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
6785 GET_THREAD_SIGNALS): Define.
6786 * arm-linux-nat.c (fill_gregset): Correct type of argument.
6787 (supply_gregset): Likewise.
6788 (fill_fpregset): Likewise.
6789 (supply_fpregset): Likewise.
6791 Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
6793 * valops.c (value_cast): If casting a scalar to a pointer, do not
6794 issue a message about truncation unless it exceeds the length of
6795 an address, not the length of a pointer. This is because what the
6796 user gives us is an address, not a pointer, and we will ultimately
6797 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
6798 to a pointer. This allows things like "print *(int *)0x01000234"
6799 to work without generating a misleading message on a target having
6800 two byte pointers and four byte addresses.
6802 2001-02-05 Christopher Faylor <cgf@cygnus.com>
6804 * win32-nat.c: Change PTR to void * throughout.
6806 2001-02-05 J.T. Conklin <jtc@redback.com>
6808 * signals.h: Removed.
6809 * event-top.c (#include <signal.h>): Changed from signals.h.
6810 * inflow.c: Likewise.
6811 * mac-xdep.c: Likewise.
6812 * ser-pipe.c: Likewise.
6813 * ser-tcp.c: Likewise.
6814 * standalone.c: Likewise.
6816 * utils.c: Likewise.
6817 * Makefile.in: Removed signals.h from dependencies.
6819 2001-02-05 Christopher Faylor <cgf@cygnus.com>
6821 Change suggested by Dean Luick <luick@cray.com>
6822 * inferior.h (step_over_calls_kind): Remove trailing comma from
6824 (step_over_calls): Declare as extern rather than global.
6826 2001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6828 * sh-tdep.c: Update copyright.
6829 (sh_extract_return_value): Rewrite.
6830 (sh3e_sh4_extract_return_value): New function.
6831 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
6832 version of the function for sh3e and sh4 CPUs.
6834 2001-02-05 Michael Chastain <chastain@redhat.com>
6836 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
6837 to conform with interface change.
6839 2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
6841 * config/djgpp/fnchange.lst: Tweak to make consistent with the
6844 * config/djgpp/djconfig.sh: Use explicit absolute file name when
6847 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
6848 UART_FIFO_WORKS is defined. Otherwise use outportb.
6849 From Francisco Pastor <fpastor.etra-id@etra.es>
6851 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
6852 with target.h's `to_xfer_memory' member.
6854 2001-02-02 J.T. Conklin <jtc@redback.com>
6856 * ppc-bdm.c (#include <signal.h>): Removed.
6857 * remote-array.c: Likewise.
6858 * remote-bug.c: Likewise.
6859 * remote-e7000.c: Likewise.
6860 * remote-mips.c: Likewise.
6861 * remote-os9k.c: Likewise.
6862 * remote-st.c: Likewise.
6863 * remote-udi.c: Likewise.
6864 * remote-vx29k.c: Likewise.
6865 * remote-vx68.c: Likewise.
6866 * remote-vx960.c: Likewise.
6867 * remote-vxmips.c: Likewise.
6868 * remote-vxsparc.c: Likewise.
6870 2001-02-02 John Moore <jmoore@redhat.com>
6872 * remote-utils.h (sr_set_device): Changed free() to xfree() where
6873 appropriate. Also changed Copyright to include 2001.
6874 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
6875 * value.h (value_free): Likewise.
6876 * gdbarch.sh (gdbarch_free): Likewise.
6877 * gdbarch.c, gdbarch.h: Regenerated.
6879 2001-02-02 John Moore <jmoore@redhat.com>
6881 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
6882 xfree(). Also changed Copyright to include 2001.
6884 2001-02-02 J.T. Conklin <jtc@redback.com>
6886 * monitor.c (#include "gdb_wait.h"): Removed.
6888 * ppc-bdm.c: Likewise.
6889 * remote-adapt.c: Likewise.
6890 * remote-array.c: Likewise.
6891 * remote-bug.c: Likewise.
6892 * remote-e7000.c: Likewise.
6893 * remote-eb.c: Likewise.
6894 * remote-es.c: Likewise.
6895 * remote-mips.c: Likewise.
6896 * remote-mm.c: Likewise.
6897 * remote-nindy.c: Likewise.
6898 * remote-os9k.c: Likewise.
6899 * remote-rdi.c: Likewise.
6900 * remote-rdp.c: Likewise.
6901 * remote-sds.c: Likewise.
6902 * remote-sim.c: Likewise.
6903 * remote-st.c: Likewise.
6904 * remote-udi.c: Likewise.
6905 * remote-vx.c: Likewise.
6906 * remote-vx29k.c: Likewise.
6907 * remote-vx68.c: Likewise.
6908 * remote-vx960.c: Likewise.
6909 * remote-vxmips.c: Likewise.
6910 * remote-vxsparc.c: Likewise.
6911 * remote.c: Likewise.
6912 * ser-pipe.c: Likewise.
6913 * ser-unix.c: Likewise.
6914 * Makefile.in: Updated dependencies.
6916 2001-01-31 David Smith <dsmith@redhat.com>
6918 * event-loop.c: Change inclusion of string.h to gdb_string.h and
6919 updated the copyright notice.
6920 * ser-pipe.c: Ditto.
6921 * mi/mi-cmds.c: Ditto.
6922 * mi/mi-console.c: Ditto.
6923 * mi/mi-getopt.c: Ditto.
6924 * mi/mi-parse.c: Ditto.
6926 2001-01-31 David Smith <dsmith@redhat.com>
6928 * MAINTAINERS: Add David Smith to Write After Approval list.
6930 Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
6932 * cli/cli-utils.c (putchar_filtered): Move function from here.
6933 * utils.c (putchar_filtered): To here.
6934 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
6935 * defs.h (putchar_filtered): To here.
6937 Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
6939 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
6940 AC_FUNC_VFORK macro.
6941 * config.in, configure: Re-generate.
6943 * gdb_vfork.h: New file.
6944 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
6945 * fork-child.c (fork_inferior): Ditto.
6947 Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
6949 * defs.h (strsave): Delete declaration.
6950 * utils.c (strsave): Delete definition.
6951 * TODO (strsave): Update
6953 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
6954 * sparcl-tdep.c (sparclite_open): Ditto.
6955 * mips-tdep.c (mips_set_processor_type_command): Ditto.
6956 (_initialize_mips_tdep): Ditto.
6957 * solib.c (solib_open): Ditto.
6958 * symfile.c (add_filename_language): Ditto.
6959 (set_ext_lang_command): Ditto.
6960 * source.c (init_source_path): Ditto.
6962 * sh3-rom.c (sh3_open): Ditto.
6964 * serial.c (serial_open): Ditto.
6965 * remote-mips.c (common_open): Ditto.
6966 * monitor.c (monitor_open): Ditto.
6967 * m32r-rom.c (m32r_upload_command): Ditto.
6968 * infcmd.c (path_command): Ditto.
6969 * f-exp.y (parse_number): Ditto.
6970 * breakpoint.c (create_longjmp_breakpoint): Ditto.
6971 (create_thread_event_breakpoint): Ditto.
6972 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
6973 (_initialize_arc_tdep): Ditto.
6975 Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
6977 * cli/cli-script.c (define_command): Check for a bad hook value in
6980 2001-01-30 J.T. Conklin <jtc@redback.com>
6982 * configure/sh/embed.mt: New file.
6983 * configure/sh/linux.mt: New file.
6984 * configure/sh/sh.mt: Removed.
6985 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
6988 2001-01-29 Michael Chastain <chastain@redhat.com>
6990 * symtab.c (lookup_block_symbol): Use 'namespace' parameter in
6991 symbol comparisons in binary search.
6993 2001-01-27 Christopher Faylor <cgf@cygnus.com>
6995 * win32-nat.c (child_xfer_memory): Add missing argument required by
6998 2001-01-27 Mark Kettenis <kettenis@gnu.org>
7000 * ui-out.c (do_list_end): New function.
7001 (make_cleanup_ui_out_list_end): New function.
7002 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
7003 * stack.c (print_frame) [UI_OUT]: Call
7004 make_cleanup_ui_out_list_end to make sure we mark the end of the
7005 list if we do a non-local exit. At the end of the function,
7006 instead of calling ui_out_list_end directly, let do_cleanups
7009 2001-01-26 Fernando Nasser <fnasser@redhat.com>
7011 Fix double parsing of filenames passed as command line arguments
7012 to GDB (causes weird handling of escape characters).
7013 Also, remove dependencies on the CLI from libgdb.
7014 * call-cmds.h: Remove declaration of exec_file_command().
7015 * gdbcore.h: Remove declaration of exec_file_command().
7016 Add declarations for exec_open() and exec_file_clear().
7017 * symfile.h: Add declarations for symbol_file_add_main() and
7018 symbol_file_clear().
7019 * exec.c (exec_open): New function. Implements to_open for exec
7021 (exec_file_clear): New function. Makes GDB forget about a previously
7022 specified executable file.
7023 (exec_file_attach): Move parsing of arguments from here ...
7024 (exec_file_command): ... to here.
7025 (init_exec_ops): Use exec_open(), not exec_file_command() to
7026 implement to_open for exec targets.
7027 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
7028 with default values. Used when the file name has already been parsed.
7029 (symbol_file_clear): New function. Makes GDB forget about previously
7031 (symbol_file_command): Call the above function instead of inline code.
7032 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
7034 (captured_main): Call exec_file_attach() and symbol_file_add_main()
7035 instead of exec_file_command() and symbol_file_command().
7036 (captured_main): Add comment.
7037 * corefile.c: Include "symfile.h".
7038 (core_file_command): Call symbol_file_add_main() instead of
7039 symbol_file_command().
7040 (reopen_exec_file): Call exec_open() instead of exec_file_command().
7041 * infcmd.c: Include "symfile.h".
7042 (attach_command): Call symbol_file_add_main() instead of
7043 symbol_file_command().
7044 * infrun.c: Remove comment about the inclusion of "symfile.h",
7045 not any longer appropriate.
7046 (follow_exec): Call symbol_file_add_main() instead of
7047 symbol_file_command().
7048 * remote-es.c: Include "symfile.h".
7049 (es1800_load): Call symbol_file_add_main() instead of
7050 symbol_file_command().
7051 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
7052 not any longer appropriate.
7053 (vx-wait): Call symbol_file_add_main() instead of
7054 symbol_file_command().
7055 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
7056 instead of symbol_file_command().
7057 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
7058 symbol_file_add_main() instead of exec_file_command() and
7059 symbol_file_command().
7060 * Makefile.in: Update dependencies.
7062 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
7064 * remote-udi.c (udi_open): Change strdup to xstrdup.
7065 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
7066 Update copyright message.
7067 * varobj.c (delete_variable_1): Likewise.
7069 * gdb_string.h: Remove declaration of strdup. Update copyright
7071 * config/xm-mpw.h: Likewise.
7072 * config/i386/xm-i386mach.h: Likewise.
7073 * config/m68k/xm-apollo68b.h: Likewise.
7074 * config/m68k/xm-hp300bsd.h: Likewise.
7075 * config/rs6000/xm-rs6000.h: Likewise.
7076 * config/vax/xm-vaxult.h: Remove declaration of strdup.
7077 * config/vax/xm-vaxult2.h: Likewise.
7079 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
7081 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
7083 2001-01-25 J.T. Conklin <jtc@redback.com>
7085 * target.c (target_xfer_memory_partial): Return -1 on failure due
7086 to invalid access mode attribute.
7088 2001-01-25 Christopher Faylor <cgf@cygnus.com>
7090 * win32-nat.c (_initialize_core_win32): Prototype correctly.
7092 2001-01-25 Mark Kettenis <kettenis@gnu.org>
7094 * config/alpha/tm-fbsd.h: Update copyright.
7095 (USE_STRUCT_CONVENTION): Define in terms of
7096 alphabsd_use_struct_convention.
7097 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
7098 * alphafbsd-tdep.c: New file.
7100 2001-01-24 Fernando Nasser <fnasser@redhat.com>
7102 * top.c (print_gdb_version): Update Copyright year.
7104 2001-01-24 J.T. Conklin <jtc@redback.com>
7106 * dcache.c (dcache_write_line): Fix typo.
7108 * memattr.c (delete_mem_region): Replace free() with xfree().
7109 (mem_number): Add explicit type.
7111 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
7112 (rw_common): Likewise.
7114 2001-01-24 Fernando Nasser <fnasser@redhat.com>
7116 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
7117 for the inferior program arguments.
7118 (run_command, run_no_args_command, init_infcmd)): Use accessor
7119 functions to set the inferior program arguments.
7120 * inferior.h: Add definitions to the accessor functions above.
7122 2001-01-23 Jim Blandy <jimb@redhat.com>
7124 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
7125 Implement these correctly, using make_cv_type.
7127 2001-01-23 J.T. Conklin <jtc@redback.com>
7129 * exec.c (xfer_memory): Add attrib argument.
7130 * infptrace.c (child_xfer_memory): Likewise.
7131 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
7132 * monitor.c (monitor_xfer_memory): Likewise.
7133 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
7134 * remote-array.c (array_xfer_memory): Likewise.
7135 * remote-bug.c (bug_xfer_memory): Likewise.
7136 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
7137 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
7138 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
7139 * remote-mips.c (mips_xfer_memory): Likewise.
7140 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
7141 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
7142 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
7143 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
7144 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
7145 * remote-sds.c (sds_xfer_memory): Likewise.
7146 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
7147 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
7148 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
7149 * remote-vx.c (vx_xfer_memory): Likewise.
7150 * remote.c (remote_xfer_memory): Likewise.
7151 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
7152 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
7153 * thread-db.c (thread_db_xfer_memory): Likewise.
7155 * target.h (#include "memattr.h"): Added.
7156 (target_ops.to_xfer_memory): Add attrib argument.
7158 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
7159 * dcache.h (set_dcache_state): Removed declaration.
7160 * dcache.c (set_dcache_state): Removed definition
7162 * dcache.c: Update module comment, as dcache is now enabled and
7163 disabled with memory region attributes instead of by the global
7164 variable "remotecache". Add comment describing the interaction
7165 between dcache and memory region attributes.
7166 (dcache_xfer_memory): Add comment describing benefits of moving
7167 cache writeback to a higher level.
7168 (dcache_struct): Removed cache_has_stuff field. This was used to
7169 record whether the cache had been accessed in order to invalidate
7170 it when it was disabled. However, this is not needed because the
7171 cache is write through and the code that enables, disables, and
7172 deletes memory regions invalidate the cache. Add comment which
7173 suggests that we could be more selective and only invalidate those
7174 cache lines containing data from those memory regions.
7175 (dcache_invalidate): Updated.
7176 (dcache_xfer_memory): Updated.
7178 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
7179 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
7180 perform a uncached transfer if dcache_enabled_p was clear. This
7181 function is now only called if caching is enabled for the memory
7183 (dcache_info): Always print cache info.
7185 * target.c (do_xfer_memory): Add attrib argument.
7186 (target_xfer_memory, target_xfer_memory_partial): Break transfer
7187 into chunks defined by memory regions, pass region attributes to
7189 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
7191 * Makefile.in (SFILES): Add memattr.c.
7192 (COMMON_OBS): Add memattr.o.
7193 (dcache.o): Add target.h to dependencies.
7194 * memattr.c: New file.
7195 * memattr.h: Likewise.
7197 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
7198 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
7199 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
7200 * gdbserver/low-sim.c (#include "defs.h"): Removed.
7201 (mygeneric_load): Rename from generic_load.
7203 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
7204 (#include "defs.h"): Removed.
7205 (inferior_pid, perror_with_name): Remove declarations.
7206 * gdbserver/low-linux.c: Likewise.
7207 * gdbserver/low-nbsd.c: Likewise.
7208 * gdbserver/low-sparc.c: Likewise.
7209 * gdbserver/low-sun3.c: Likewise.
7211 * i386-stub.c: Re-indent.
7212 * m68k-stub.c: Re-indent.
7214 2001-01-22 Nicholas Duffek <nsd@redhat.com>
7216 * gdbarch.sh (PARM_BOUNDARY): Define.
7217 * gdbarch.c: Regenerate.
7218 * gdbarch.h: Regenerate.
7220 2001-01-22 J.T. Conklin <jtc@redback.com>
7222 * ns32k-tdep.c: #include "frame.h"
7223 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
7224 appears to have been inadvertantly removed sometime in May 1999.
7226 * Revert 2000-11-09 changes where shared library objects were
7227 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
7228 we'd like to be able to debug dynamically linked executables,
7229 this makes it impossible to build a cross debugger on a many
7232 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
7233 * config/i386/nbsdelf.mt: Likewise.
7234 * config/m68k/nbsd.mt: Likewise.
7235 * config/ns32k/nbsd.mt: Likewise.
7236 * config/powerpc/nbsd.mt: Likewise.
7237 * config/sparc/nbsd.mt: Likewise.
7238 * config/sparc/nbsdelf.mt: Likewise.
7239 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
7240 * config/i386/nbsdelf.mh: Likewise.
7241 * config/m68k/nbsd.mh: Likewise.
7242 * config/ns32k/nbsd.mh: Likewise.
7243 * config/powerpc/nbsd.mh: Likewise.
7244 * config/sparc/nbsd.mh: Likewise.
7246 2001-01-19 Jason Merrill <jason@redhat.com>
7248 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
7249 (process_one_symbol): Likewise.
7250 * dwarfread.c (handle_producer): Likewise.
7252 Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
7254 * configure.in (build_warnings): Disable -Wuninitialized until GDB
7255 compiles with -Wuninitialized,-Werror.
7256 * configure: Regenerate.
7258 * MAINTAINERS: Add list of buildable targets.
7260 Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
7262 * defs.h (STRCMP): Delete macro.
7264 * objfiles.c (objfile_relocate): Replace STRCMP with call to
7266 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7267 * symfile.c (compare_symbols): Ditto.
7268 * standalone.c (open): Ditto.
7269 * remote-es.c (verify_break): Ditto.
7270 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
7272 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
7274 Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
7276 * varobj.c (FREEIF): Delete macro.
7277 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
7280 2001-01-18 Nick Clifton <nickc@redhat.com>
7282 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
7283 (arc_print_insn): No bfd available, so pass NULL to
7284 arc_get_disassembler.
7286 2001-01-09 James Ingham <jingham@inghji.apple.com>
7288 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
7289 a mangled symbol rather than recursing into lookup_symbol, since
7290 this will just re-unmangle the name & call lookup_symbol_aux -
7291 leading to an infinite recursion.
7293 2001-01-18 Mark Kettenis <kettenis@gnu.org>
7295 * infcmd.c (print_return_value): Restore another space lost by
7296 switch to UIOUT. ``$NN='' should be ``$NN =''.
7298 Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
7300 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
7301 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
7302 definition in parenthesis.
7304 Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
7306 From 2000-10-27 Mark Salter <msalter@redhat.com>:
7307 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
7309 (remote_insert_hw_breakpoint): Ditto.
7311 2001-01-17 J.T. Conklin <jtc@redback.com>
7313 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
7314 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
7315 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
7316 * m68knbsd-tdep.c: New file.
7318 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
7320 * m68knbsd-nat.c: #include gdbcore.h.
7322 Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
7324 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
7326 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
7328 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
7329 goes away -- just return false (ie. not stopped by watchpoint).
7330 * source.c (openp): Fix typo in comment.
7332 2001-01-12 Nicholas Duffek <nsd@redhat.com>
7334 * blockframe.c (generic_get_saved_register): Spelling fix.
7335 * frame.h (FRAME_FP): Spelling fix.
7337 Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
7339 * infcmd.c (print_return_value): Restore space lost by switch to
7340 UIOUT. ``$NN='' should be ``$NN =''.
7342 2001-01-08 Nicholas Duffek <nsd@redhat.com>
7344 * regcache.c (set_register_cached, register_buffer,
7345 real_register, pseudo_register fetch_register, store_register):
7347 (register_changed, read_relative_register_raw_bytes_for_frame,
7348 registers_changed, registers_fetched, read_register_bytes,
7349 read_register_gen, write_register_gen, read_register,
7350 read_signed_register, write_register, supply_register): Replace
7351 register_valid[] with register_cached() and
7352 set_register_cached().
7353 (read_register_bytes, read_register_gen, write_register_gen,
7354 read_register, read_signed_register, write_register,
7355 supply_register): Replace registers[] with register_buffer().
7356 (read_register_bytes, read_register_gen, read_register,
7357 read_signed_register): Call fetch_register().
7358 (write_register_gen, write_register): Call real_register() and
7360 (write_register_bytes): Call store_register().
7361 * value.h (set_register_cached, register_buffer): Prototype.
7362 * remote.c (remote_fetch_registers): Allocate regs[] with a
7363 run-time size. Replace register_valid[] with
7364 set_register_cached().
7365 (store_register_using_P, remote_store_registers): Replace
7366 registers[] with register_buffer().
7368 2001-01-08 Nicholas Duffek <nsd@redhat.com>
7370 * regcache.c: Change "write-back" comment to "write-through".
7371 Change "regno" to "regnum".
7372 (read_register, read_signed_register): Remove "raw" from return
7374 (supply_register): Spelling fix.
7375 * value.h: Change "regno" to "regnum".
7377 2001-01-08 Fernando Nasser <fnasser@redhat.com>
7379 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
7382 2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7384 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
7386 2001-01-04 Nicholas Duffek <nsd@redhat.com>
7388 * valops.c (VALUE_SUBSTRING_START): Delete.
7390 2001-01-04 Nicholas Duffek <nsd@redhat.com>
7392 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
7393 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
7394 (cli_utils_h): New variable.
7395 (cli/cli-utils.o): New rule.
7396 * cli/cli-utils.c: New file.
7397 * cli/cli-utils.h: New file.
7399 2001-01-04 Nicholas Duffek <nsd@redhat.com>
7401 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
7402 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
7404 2001-01-03 J.T. Conklin <jtc@redback.com>
7406 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
7409 2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
7411 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
7412 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
7414 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
7415 Update copyright notice.
7417 For older changes see ChangeLog-2000
7423 version-control: never