empty gdb/gdbserver/*
[external/binutils.git] / gdb / ChangeLog
1 2001-11-17  Andrew Cagney  <ac131313@redhat.com>
2
3         * Makefile.in (distclean): Explicitly delete Makefile et.al. in
4         gdbserver sub directory.
5
6 2001-11-17  Andrew Cagney  <ac131313@redhat.com>
7
8         * README: Mention need for alloca().  Mention problems with
9         alpha-dec-osf4.0e.  Clarify that comments refer to GDB 5.1.
10
11 2001-11-11  GDB Administrator  <gdbadmin@sourceware.cygnus.com>
12
13         * version.in: Bump to 5.0.93-0000-00-00-cvs.
14
15 2001-11-11  Andrew Cagney  <ac131313@redhat.com>
16
17         * README (alpha-dec-osf5.1): Mention -DUSE_LDR_ROUTINES.
18         (sparcv9-sun-solars2.8): Mention problem with 64 bit GCC 3.0.x.
19         (i586-sco-sysv5uw7.1.1): Mention problem with threads.
20
21 2001-11-11  Andrew Cagney  <ac131313@redhat.com>
22
23         From Mark Kettenis  <kettenis@gnu.org>:
24         * breakpoint.c (breakpoint_re_set_one): Don't discard SHLIB
25         breakpoints when they fail.
26
27 2001-11-10  Andrew Cagney  <ac131313@redhat.com>
28
29         * p-exp.y: Strip trailing ^M.
30
31 2001-11-06 Pierre Muller  <muller@ics.u-strasbg.fr>
32
33         * p-lang.c (is_pascal_string_type): New function to determine if a 
34         type is a string type.
35         * p-lang.h: Add prototype for is_pascal_string_type.
36         * p-valprint.c (pascal_val_print) : Use is_pascal_string_type function 
37         to display strings nicely.
38
39 2001-11-06 Pierre Muller  <muller@ics.u-strasbg.fr>
40
41         * p-exp.y (yylex): Only change case of expression if symbol is found.
42         Also check for GPC standard name form.
43
44 2001-11-02  Andrew Cagney  <ac131313@redhat.com>
45
46         * utils.c (internal_verror): Restore calls to abort().
47         Fix PR gdb/219.
48
49 2001-11-02  Andrew Cagney  <ac131313@redhat.com>
50
51         * README: Mention problem with alpha-dec-osf5.1.
52
53 2001-11-02  Michael Chastain  <mec@shout.net>
54
55         * MAINTAINERS: Update my entry.
56
57 2001-10-31  Andrew Cagney  <ac131313@redhat.com>
58
59         From DJ Barrow.
60         * s390-tdep.c: Include "value.h".
61         (s390_gdbarch_init): Don't initialize find_solib_trampoline_target.
62
63 2001-10-31  Andrew Cagney  <ac131313@redhat.com>
64
65         * remote-vx.c (net_wait): Fix typo from PIDGET change.
66
67 2001-10-31  Daniel Jacobowitz  <drow@mvista.com>
68
69         * arm-linux-nat.c: Include <asm/ptrace.h> explicitly.
70
71 2001-10-30  GDB Administrator  <gdbadmin@sourceware.cygnus.com>
72
73         * version.in: Bump version to 5.0.92.
74
75 2001-10-30  Andrew Cagney  <ac131313@redhat.com>
76
77         * README, NEWS: Update for 5.1.
78
79 2001-10-24  Daniel Jacobowitz  <drow@mvista.com>
80
81         * arm-linux-nat.c (fill_gregset): Do not check register_valid[].
82         (fill_fpregset): Likewise.
83
84 2001-10-26  Orjan Friberg  <orjanf@axis.com>
85
86         * cris-tdep.c (constraint): Loop through the whole cris_spec_regs
87         struct, not just the NUM_SPECREGS first entries.
88         (bdap_prefix): Read PC before autoincrement.
89
90 2001-10-21  Andrew Cagney  <ac131313@redhat.com>
91
92         * top.c (print_gdb_version): Do not print ``(MI_OUT)''.  MI
93         interface is always enabled.
94
95 2001-10-21  Eli Zaretskii  <eliz@is.elta.co.il>
96
97         * config/djgpp/README: Fix a typo and tweak for GDB 5.1.
98
99 2001-10-20  Andrew Cagney  <ac131313@redhat.com>
100
101         * alpha-nat.c: Include <alpha/coreregs.h> instead of
102         <machine/reg.h>.
103         (fetch_osf_core_registers): Define core_reg_mapping in a way that
104         works on OSF5 as well as previous OSF versions.
105
106 2001-10-20  Christopher Faylor  <cgf@redhat.com>
107
108         * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin
109         may not be able to read them in certain situations.
110
111 2001-10-18  Andrew Cagney  <ac131313@redhat.com>
112
113         * README: Mention problems with HP/UX.
114
115 2001-10-16  Christopher Faylor  <cgf@redhat.com>
116
117         * win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding
118         load of already loaded DLL.
119         (register_loaded_dll): Convert loaded DLL name to "posix" format or it
120         will confuse subsequent opening of the filename due to dos paths.
121         (dll_symbol_command): Pass from_tty parameter to safe_symbol_file_add.
122
123 202001-10-15  Jim Ingham  <jingham@inghji.apple.com>
124
125         * valarith.c (value_sub): Don't pass a raw type to
126         value_from_pointer, it has to go through check_typedef first.
127
128 01-10-15  Kevin Buettner  <kevinb@redhat.com>
129
130         * dbxread.c (process_one_symbol): Don't use error result from
131         find_stab_function_addr().
132         * partial-stab.h (case 'F'): Likewise.
133
134         * partial-stab.h (case 'f'): Make SOFUN_ADDRESS_MAYBE_MISSING
135         code match that used for case 'F'.  This fixes the divergence
136         that was introduced by my 1999-09-14 changes to partial-stab.h.
137
138 2001-10-13  Andrew Cagney  <ac131313@redhat.com>
139
140         S/390 31 & 64 bit target and GNU/Linux native support.
141         Contributed by D.J. Barrow <djbarrow@de.ibm.com> of IBM.
142         * s390-nat.c, s390-tdep.c: New file.
143         * config/s390/nm-linux.h, config/s390/s390.mh: New file.
144         * config/s390/s390.mt, config/s390/s390x.mt: New file.
145         * config/s390/tm-linux.h, config/s390/tm-s390.h: New file.
146         * config/s390/xm-linux.h: New file.
147         * NEWS: Update.
148         * MAINTAINERS: Update.
149
150 2001-10-13  Andrew Cagney  <ac131313@redhat.com>
151
152         From 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
153         * gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check
154         CALL_DUMMY_BREAKPOINT_OFFSET_P.
155         * gdbarch.c: Regenerate.
156         
157 2001-10-12  Christopher Faylor  <cgf@redhat.com>
158
159         * win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked
160         list pointer to beginning rather than one beyond beginning.
161
162 2001-10-12  Andrew Cagney  <ac131313@redhat.com>
163
164         * version.in: Bump to 5.0.91.  Add YYYY-MM-DD.
165
166 2001-10-12  Pierre Muller  <muller@ics.u-strasbg.fr>
167
168         * config/i386/tm-cygwin.h: Include tm-i386.h instead of tm-i386v.h.
169         This fixes errors in "long long" handling for 'finish' and 'return'
170         commands.
171
172 2001-10-12  Christopher Faylor  <cgf@redhat.com>
173
174         * win32-nat.c (safe_symbol_file_add_stub): Avoid adding a shared
175         library if it has already been loaded.
176         (safe_symbol_file_add_cleanup): Don't mess with stderr or we won't see
177         any error messages.
178         (safe_symbol_file_add): Ditto.
179         (solib_symbols_add): Make static.  Accept 'from_tty' parameter.  Pass
180         it to safe_symbol_file_add.
181         (core_dll_symbols_add): Accomodate extra solib_symbols_add parameter.
182         (child_solib_add): Ditto.
183
184         * win32-nat.c (handle_exception): Don't print "first chance"
185         exceptions.
186         (get_child_debug_event): Continue from exceptions if !handle_exception.
187
188 2001-10-10  Christopher Faylor  <cgf@redhat.com>
189
190         * win32-nat.c (get_child_debug_event): Close file handles created after
191         process creation and DLL load.
192         (child_create_inferior): Close unneeded process/thread handle after
193         thread creation.
194
195 2001-10-08  J. Brobecker <brobecker@gnat.com>
196
197         * hpux-thread.c: rewrite find_active_thread() and find_tcb()
198         to use ptid_t, instead of overloading the thread and the pid
199         into the same 32-bit value. Make associated necessary adaptations.
200         Also remove unused variable cached_active_thread.
201
202 2001-09-26  Kevin Buettner  <kevinb@redhat.com>
203
204         From Ilya Golubev <gin@mo.msk.ru>:
205         * solib.c (clear_solib): Call `remove_target_sections' to fix
206         stale pointers in `struct target_ops'.
207         * irix5-nat.c (clear_solib): Likewise.
208         * osfsolib.c (clear_solib): Likewise.
209
210 2001-09-26  Andrew Cagney  <ac131313@redhat.com>
211
212         * CONTRIBUTE: Update.
213
214 2001-09-24  Orjan Friberg  <orjanf@axis.com>
215
216         * cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
217         from correct register.
218
219 2001-09-18  Keith Seitz  <keiths@redhat.com>
220
221         * printcmd.c (print_insn): Use the given stream for
222         output.
223
224 2001-09-10  Jason Molenda  (jmolenda@apple.com)
225
226         * NEWS: "ANS/ISO C" -> "ISO C".
227         * MAINTAINERS (write-after-approval):  Update my entry.
228
229 2001-08-24  Andrew Cagney  <ac131313@redhat.com>
230
231         * regcache.c (read_register_bytes): When REGISTER_NAME indicates
232         that a register should be ignored, supply a value for the register
233         from the raw registers[] buffer.
234
235 2001-08-24  Andrew Cagney  <ac131313@redhat.com>
236
237         * go32-nat.c (go32_create_inferior): Use xfree instead of free.
238         * config/djgpp/fnchange.lst: Add entries for i386bsd-tdep.c and
239         i386bsd-nat.c.
240
241 2001-08-10  Daniel Jacobowitz  <drow@mvista.com>
242             H.J. Lu  (hjl@gnu.org)
243
244         * partial-stab.h: valu should be a CORE_ADDR.
245
246 2001-08-08  H.J. Lu  (hjl@gnu.org)
247
248         * dbxread.c (SWAP_SYMBOL): Removed.
249         (INTERNALIZE_SYMBOL): Check sign extended vma.
250
251 2001-08-13  Christopher Faylor  <cgf@cygnus.com>
252
253         * top.c (SIGSETJMP): Protect env argument with parentheses.
254         (SIGLONGJMP): Protect env argument with parentheses.
255
256 2001-08-10  Orjan Friberg  <orjanf@axis.com>
257
258         * remote.c (read_frame): Correct off-by-one error in condition.
259
260 2001-08-02  Daniel Jacobowitz  <drow@mvista.com>
261
262         * core-regset.c (fetch_core_registers):  Remove HAVE_GREGSET_T
263         and HAVE_FPREGSET_T checks.  Use gdb_gregset_t and gdb_fpregset_t.
264
265 2001-08-02  Keith Seitz  <keiths@redhat.com>
266
267         * defs.h (SLASH_STRING): If not defined, set
268         to "/", regardless of _WIN32, __CYGWIN__, or
269         whatnot.
270
271 2001-07-27  Daniel Jacobowitz  <drow@mvista.com>
272
273         * configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
274         Check for SETPGRP_VOID separately if cross-compiling and ISO C
275         headers are available.
276         * configure: Regenerated.
277
278 2001-08-02  Mark Kettenis  <kettenis@gnu.org>
279
280         * NEWS: Update.
281
282 2001-08-02  Eli Zaretskii  <eliz@is.elta.co.il>
283
284         The following changes avoid polluting global namespace with the
285         `enable' and `disable' identifiers, because some platforms define
286         in their system headers symbols with global scope that go by those
287         names.
288
289         * breakpoint.h (enum enable_state): Rename from `enum enable'.
290         Also rename all the enum members to have the "bp_" prefix.
291         (struct breakpoint): Rename the `enable' member to `enable_state'.
292         (enum bpdisp): Rename all members to have the "disp_" prefix.
293
294         * breakpoint.c: All users of `enum enable' and `enum bpdisp'
295         changed.
296         (args_for_catchpoint_enable): Rename the `enable' member to
297         `enable_p'.  All users changed.
298
299         * tracepoint.h (enum enable): Remove.
300         (struct tracepoint): The member `enabled' is now `int enabled_p'.
301
302         * tracepoint.c: All users of the `enabled' member changed.
303
304         * printcmd.c (struct display): The `status' member is now an int.
305
306         * memattr.h (struct mem_region): Rename the `status' member to
307         `enabled_p'.
308         (enum enable): Remove.
309
310         * memattr.c: Change all users of the `status' member of struct
311         mem_region to use `enabled_p' instead.
312
313         * infcmd.c (run_stack_dummy): Use disp_del instead of del.
314
315         * go32-nat.c: Remove the kludgey work-around for conflicts between
316         <dos.h> and "breakpoint.h".
317
318 2001-07-30  Mark Kettenis  <kettenis@gnu.org>
319
320         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
321         i386_dwarf_reg_to_regnum.
322
323         * i386-tdep.c (i386_register_convert_to_virtual): Replace
324         assertion with a warning if we're asked to convert towards a
325         non-floating-point type.  Zero out the the buffer where the data
326         is supposed to be stored in that case.
327
328 2001-07-29  Eli Zaretskii  <eliz@is.elta.co.il>
329
330         * config/djgpp/djconfig.sh: Unset CDPATH.
331
332         * go32-nat.c (get_cr3): Temporary disable support for page tables
333         in UMBs, as it is incomplete.
334
335         Support for stepping through longjmp in DJGPP programs:
336
337         * config/i386/tm-go32.h (JB_ELEMENT_SIZE, JB_PC): New macros.
338         (GET_LONGJMP_TARGET): Define to call get_longjmp_target.
339         (get_longjmp_target): Add prototype.
340
341 2001-07-28  Andrew Cagney  <ac131313@redhat.com>
342
343         * version.in: Bump version number to 5.0.90-cvs.
344
345 2001-07-28  Andrew Cagney  <ac131313@redhat.com>
346
347         Fix some PID/TPID fallout for HP/UX.
348         From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>:
349         * infttrace.c (ptrace_wait): Match external declaration,
350         and match target_post_wait declaration.
351
352 2001-07-28  Andrew Cagney  <ac131313@redhat.com>
353
354         * MAINTAINERS: Add Orjan Friberg as cris target maintainer.
355         (cris): Set --enable-gdb-build-warnings flag to -w.
356
357 2001-07-28  Andrew Cagney  <ac131313@redhat.com>
358
359         From 2001-07-23 Andreas Schwab <schwab@suse.de>:
360         * config/m68k/tm-m68k.h (TARGET_LONG_DOUBLE_FORMAT): Define.
361         (TARGET_LONG_DOUBLE_BIT): Define.
362         (REGISTER_VIRTUAL_SIZE): Return 12 for floating point registers.
363         (MAX_REGISTER_VIRTUAL_SIZE): Increase to 12.
364         (REGISTER_VIRTUAL_TYPE): Return builtin_type_long_double for
365         floating point registers.
366         (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL)
367         (REGISTER_CONVERT_TO_RAW): Remove.
368         * config/m68k/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define.
369
370 2001-07-26  Andrew Cagney  <ac131313@redhat.com>
371
372         * thread.c, breakpoint.c: Include "gdb.h".
373         * Makefile.in (gdb_h): Define.
374         (HFILES_NO_SRCDIR): Add gdb.h.
375         (mi-cmd-break.o, mi-main.o, thread.o)
376         (breakpoint.o): Add dependency on $(gdb_h).
377
378         * defs.h (enum gdb_rc, gdb_breakpoint_query)
379         (gdb_breakpoint, gdb_thread_select)
380         (gdb_list_thread_ids): Move declaration from here ...
381         * gdb.h: To here.  New file.
382
383 2001-07-28  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
384
385         * Makefile.in (SUBDIR_TUI_OBS): Add tui-out.o, tui-hooks.o.
386         (SUBDIR_TUI_SRCS): Add tui-out.c tui-hooks.c
387         (SFILES): Likewise.
388         (tui-out.o): Define dependencies.
389         (tui-hooks.o): Likewise.
390
391 2001-07-28  Andrew Cagney  <ac131313@redhat.com>
392
393         * MAINTAINERS: Update e-mail address of active @cygnus.com
394         maintainers to @redhat.com.
395
396 2001-07-28  Andrew Cagney  <ac131313@redhat.com>
397
398         * README (Known bugs): Delete section.
399         (Kernel debugging): Delete section.
400         (Languages other than C): Delete section.
401         (Host/target specific installation notes) New section.
402
403 2001-07-28  Mark Kettenis  <kettenis@gnu.org>
404
405         * config/i386/tm-i386.h (STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
406         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): New defines.
407         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New
408         prototypes.
409         * config/i386/tm-fbsd.h, config/i386/tm-i386gnu.h,
410         config/i386/tm-linux.h (STAB_REG_TO_REGNUM): Redefine to call
411         i386_dwarf_reg_to_regnum.
412         * i386-tdep.c (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum):
413         New functions.
414
415         * i386-tdep.c: Include "gdb_assert.h"
416         (i386_register_convert_to_virtual): Fix such that it can handle
417         conversion to any floating-point type.  Assert that we are dealing
418         with a floating-point first.
419         (i386_register_convert_to_raw): Assert that TYPE is a
420         floating-point type with length 12.
421
422 2001-07-27  John R. Moore  <jmoore@redhat.com>
423
424         * configure.in: Added dependency of gdb on tcl/tk libraries.
425         * Makefile.in: Likewise.
426         * configure: Regenerated with the above using autoconf.
427
428 2001-07-26  Elena Zannoni  <ezannoni@redhat.com>
429
430         * sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of
431         NUM_REGS.
432         (SH_DEFAULT_NUM_REGS): Define.
433
434 2001-07-26  Eli Zaretskii  <eliz@is.elta.co.il>
435
436         * go32-nat.c (read_memory_region): Make sure the segment limit was
437         indeed set, to work around a Windows 2000 bug.
438
439 2001-07-25  Daniel Jacobowitz  <drow@mvista.com>
440
441         * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.
442         * infttrace.c (child_xfer_memory): Likewise.
443         * symm-nat.c (child_xfer_memory): Likewise.
444         * gdbserver/low-hppabsd.c (read_inferior_memory): Likewise.
445         (write_inferior_memory): Likewise.
446         * gdbserver/low-linux.c (read_inferior_memory): Likewise.
447         (write_inferior_memory): Likewise.
448         * gdbserver/low-lynx.c (read_inferior_memory): Likewise.
449         (write_inferior_memory): Likewise.
450         * gdbserver/low-nbsd.c (read_inferior_memory): Likewise.
451         (write_inferior_memory): Likewise.
452         * gdbserver/low-sparc.c (read_inferior_memory): Likewise.
453         (write_inferior_memory): Likewise.
454         * gdbserver/low-sun3.c (read_inferior_memory): Likewise.
455         (write_inferior_memory): Likewise.
456
457 2001-07-25  Eli Zaretskii  <eliz@is.elta.co.il>
458
459         * README: Mention how to make gdb.pdf.
460
461         * NEWS: Update.
462
463 2001-07-24  Stephen P. Smith <ischis2@home.com>
464
465         * MAINTAINERS (Stephen P. Smith): Added to write after approval 
466         list.
467
468 2001-07-23  Andrew Cagney  <ac131313@redhat.com>
469
470         * mips-tdep.c (mips_push_arguments): Add comment explaining
471         problem with LE o32 GCC.
472
473 2001-07-23  Elena Zannoni  <ezannoni@redhat.com>
474
475         * config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
476         doesn't understand them.
477
478 2001-07-23  Elena Zannoni  <ezannoni@redhat.com>
479
480         * memattr.c (mem_info_command): Reformat output to look more like
481         'info break' output.
482         (_initialize_mem): Improve help.
483
484 2001-07-23  Mark Kettenis  <kettenis@gnu.org>
485
486         * configure.in (AC_CHECK_FUNCS): Add setpggrp.
487         (AC_FUNC_SETPGRP): Add.
488         * aclocal.m4, configure, config.in: Regenerated.
489         * inflow.c (gdb_setpgid): Get rid of NEED_POSIX_SETPGID and
490         SETPGRP_ARGS.  Always use setpgid if it is available, fall back on
491         setpgrp if it isn't.  Use SETPGRP_VOID (defined by autoconf) to
492         distinguish between the two setpgrp flavours.
493         * config/xm-sysv4.h, config/arm/xm-linux.h,
494         config/i386/xm-i386aix.h, config/i386/xm-sco.h,
495         config/i386/xm-linux.h, config/i386/xm-ptx.h,
496         config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
497         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h,
498         config/ia64/xm-linux.h (NEED_POSIX_SETPGID): Remove.
499         * config/rs6000/xm-rs6000.h (SETPGRP_ARGS): Remove.
500
501 2001-07-23  Eli Zaretskii  <eliz@is.elta.co.il>
502
503         * go32-nat.c (read_memory_region): Set the granularity bit of the
504         allocated segment according to its size, and adjust the limit to
505         be page-aligned if the segment is page-granular.
506
507         * (get_cr3, get_pde, get_pte, display_ptable_entry, go32_pde) 
508         (display_page_table, go32_pte, go32_pte_for_address): New functions.
509         (_initialize_go32_nat): Initialize and document them.
510
511 2001-07-22  Mark Kettenis  <kettenis@gnu.org>
512
513         * i386gnu-nat.c: Include "i387-nat.h".
514         (struct env387): Removed.
515         (reg_offset): Fix comment.
516         (fetch_fpregs): Use FCTRL_REGNUM and FOP_REGNUM instead of
517         FIRST_FPU_CONTROL_REGNUM and LAST_FPU_CONTROL_REGNUM.  Rewrite to
518         use i387_supply_fsave.
519         (gnu_fetch_registers): Remove spurious whitespace.
520         (convert_to_env387): Remove.
521         (store_fpregs): Add argument regno.  Use i387_fill_fsave instead
522         of convert_to_env387.
523         (gnu_store_registers): Remove spurious whitespace.  Pass REGNO to
524         store_fpregs.
525         * config/i386/i386gnu.mt (TDEPFILES): Add i387-tdep.o.
526         * config/i386/i386gnu.mh (XDEPFILES): Remove i387-tdep.o.
527         (NATDEPFILES): Add i387-nat.o.
528
529 2001-07-22  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
530
531         * Makefile.in (ALLDEPFILES): Add m68hc11-tdep.c.
532         (m68hc11-tdep.o): Define dependencies.
533
534 2001-07-22  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
535
536         * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
537
538 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
539
540         * utils.c (init_page_info): Use tui_get_command_dimension.
541         * printcmd.c (disassemble_command): Simplify tui specific code,
542         use tui_is_window_visible, tui_show_assembly.
543
544 2001-07-21  Mark Kettenis  <kettenis@gnu.org>
545
546         * i386bsd-nat.c: Do not include <sys/sysctl.h>.
547         (_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific
548         code to ...
549         * i386fbsd-nat.c: ... here.  New file.
550         * config/i386/fbsd.mh (NATDEPFILES): Add i386-fbsd.o.
551         * config/i386/nm-fbsd.h (CHILD_RESUME): Define.
552         * Makefile.in (ALLDEPFILES): Add i386fbsd-nat.c.
553         (i386fbsd-nat.o): Add dependencies.
554         
555 2001-07-19  Daniel Jacobowitz  <drow@mvista.com>
556
557         * signals.c: New file.
558         * Makefile.in: Add signals.o.
559         * target.c (struct signals, target_signal_to_name)
560         (target_signal_from_name, target_signal_from_host)
561         (do_target_signal_to_host, target_signal_to_host_p)
562         (target_signal_to_host, target_signal_from_command): Move to
563         signals.c.
564         (initialize_targets): Move check of struct signals to...
565         * signals.c (_initialize_signals): Here.
566
567 2001-07-19  Andrew Cagney  <ac131313@redhat.com>
568
569         * MAINTAINERS: Add Michael Chastain as C++ testsuite maintainer.
570
571 2001-07-19  Andrew Cagney  <ac131313@redhat.com>
572
573         From Stephen Smith:
574         * configure.tgt (i*86-*-pe*): New target.
575
576 2001-07-19  Andrew Cagney  <ac131313@redhat.com>
577
578         From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:
579         * infttrace.c (child_thread_alive): Fix gdb_tid typo.
580         * somsolib.c (no_shared_libraries): Provide stub.
581         * xcoffsolib.c (no_shared_libraries): Provide stub.
582
583 2001-07-18  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
584
585         * Makefile.in (COMMON_OBS): Remove tui-file.o.
586         (SUBDIR_TUI_OBS): Add it here.
587         (SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
588         (main.o): Remove dependency with tui-file.h.
589
590 2001-07-17  Elena Zannoni  <ezannoni@redhat.com>
591
592         * Makefile.in (tui-file.o): Update dependencies.
593
594 2001-07-17  Elena Zannoni  <ezannoni@redhat.com>
595
596         * top.c (catch_errors): Convert PTR to void * in parameters list.
597         (quit_cover): Ditto.
598
599 2001-07-17  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
600
601         * source.c (find_source_lines): Remove tui test, must be replaced
602         by appropriate warning hook.
603         (print_source_lines): Remove tui hacks, must be replaced by cli.
604         (forward_search_command): Remove tui hacks, can be replaced by
605         appropriate calls to identify_source_line when tui scrolls.
606         (reverse_search_command): Likewise.
607
608 2001-07-16  Nick Duffek  <nsd@redhat.com>
609
610         * remote.c (init_remote_ops, init_remote_cisco_ops,
611         init_remote_async_ops): Set to_pid_to_str and
612         to_extra_thread_info correctly and in the same order as declared
613         in target.h.
614
615 2001-07-16  Andrew Cagney  <ac131313@redhat.com>
616
617         * remote.c: Revert below.  Included more than intended.
618
619 2001-07-16  Nick Duffek  <nsd@redhat.com>
620
621         * remote.c (init_remote_ops, init_remote_cisco_ops,
622         init_remote_async_ops): Set to_pid_to_str and
623         to_extra_thread_info correctly and in the same order as declared
624         in target.h.
625
626 2001-07-16  Nick Duffek  <nsd@redhat.com>
627
628         * findvar.c (read_var_value): Apply value_as_pointer() to
629         addresses retrieved from the target for LOC_BASEREG and
630         LOC_BASEREG_ARG variables.
631
632 2001-07-16  Orjan Friberg  <orjanf@axis.com>
633
634         * NEWS: New target CRIS.
635
636 2001-07-16  Elena Zannoni  <ezannoni@redhat.com>
637
638         * top.c (show_commands): Remove extern decl of history_get, it's
639         already in readline/history.h.
640         
641 2001-07-16  Elena Zannoni  <ezannoni@redhat.com>
642
643         * top.c (is_complete_command, init_cmd_lists, init_cli_cmds,
644         execute_user_command, do_setshow_command, get_prompt, init_proc,
645         serial_log_command): Remove extern declarations.  Include
646         cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h.
647         * gdbcmd.h (execute_user_command): Remove declaration, it's already
648         in cli/cli-script.h.
649         * command.h (do_setshow_command): Remove declaration, it's already
650         in cli/cli-setshow.h.
651         * infrun.c: Include "cli/cli-script.h" for execute_user_command.
652         * Makefile.in (infrun.o): Update dependencies.
653         (top.o): Ditto.
654         * cli/cli-setshow.h: Add comment for do_setshow_command.
655
656 2001-07-16  Eli Zaretskii  <eliz@is.elta.co.il>
657
658         * cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
659         call to chdir on this symbol rather than on __DJGPP__.
660         (CANT_FORK) [__MSDOS__]: Move from here...
661         * defs.h (CANT_FORK) [__MSDOS__]: ...to here.
662         (GLOBAL_CURDIR) [__MSDOS__]: Define.
663
664 2001-07-16  Orjan Friberg  <orjanf@axis.com>
665
666         * configure.tgt: Recognise the CRIS architecture.
667         * config/cris/cris.mt: New file for CRIS target.
668         * cris-tdep.c: New file for CRIS target.
669         
670 2001-07-15  Elena Zannoni  <ezannoni@redhat.com>
671
672         * top.c (quit_cover, float_handler): Move definition up before use.
673         (gdb_init): Move to end of file, to avoid calls to not yet defined
674         functions.  
675         Delete prototypes.
676         
677 2001-07-14  Andrew Cagney  <ac131313@redhat.com>
678
679         * serial.h (SERIAL_ASYNC): Delete.
680         (DEPRECATED_SERIAL_FD): Delete.
681         (SERIAL_DEBUG): Delete.
682         (SERIAL_DEBUG_P): Delete.
683         (SERIAL_DRAIN_OUTPUT): Delete.
684         (SERIAL_FLUSH_OUTPUT): Delete.
685         (SERIAL_FLUSH_INPUT): Delete.
686         (SERIAL_SEND_BREAK): Delete.
687         (SERIAL_RAW): Delete.
688         (SERIAL_GET_TTY_STATE): Delete.
689         (SERIAL_SET_TTY_STATE): Delete.
690         (SERIAL_PRINT_TTY_STATE): Delete.
691         (SERIAL_NOFLUSH_SET_TTY_STATE): Delete.
692         (SERIAL_SETBAUDRATE): Delete.
693         (SERIAL_SETSTOPBITS): Delete.
694         (SERIAL_CAN_ASYNC_P): Delete.
695         (SERIAL_IS_ASYNC_P): Delete.
696         (SERIAL_UN_FDOPEN): Delete.
697         (SERIAL_READCHAR): Delete.
698         (SERIAL_CLOSE): Delete.
699         (SERIAL_FDOPEN): Delete.
700         (SERIAL_OPEN): Delete.
701         * ser-unix.c: Update.
702         * sparclet-rom.c: Update.
703         * remote-bug.c: Update.
704         * dsrec.c: Update.
705         * xmodem.c: Update.
706         * nindy-share/ttyflush.c: Update.
707         * nindy-share/Onindy.c: Update.
708         * utils.c: Update.
709         * serial.c: Update.
710         * remote-nindy.c: Update.
711         * inflow.c: Update.
712         * sparcl-tdep.c: Update.
713         * sh3-rom.c: Update.
714         * remote.c: Update.
715         * remote-utils.c: Update.
716         * remote-st.c: Update.
717         * remote-sds.c: Update.
718         * remote-rdp.c: Update.
719         * remote-os9k.c: Update.
720         * remote-nrom.c: Update.
721         * remote-mips.c: Update.
722         * remote-es.c: Update.
723         * remote-e7000.c: Update.
724         * remote-array.c: Update.
725         * ocd.c: Update.
726         * nindy-share/nindy.c: Update.
727         * monitor.c: Update.
728         
729 2001-07-14  Andrew Cagney  <ac131313@redhat.com>
730
731         * mn10200-tdep.c: Replace value_ptr with ``struct value *''.
732         * mcore-tdep.c: Ditto.
733         * sparc-tdep.c: Ditto.
734         * sh-tdep.c: Ditto.
735         * rs6000-tdep.c: Ditto.
736         * ppc-linux-tdep.c: Ditto.
737         * m68hc11-tdep.c: Ditto.
738         * ia64-tdep.c: Ditto.
739         * i386-tdep.c: Ditto.
740         * arm-linux-tdep.c: Ditto.
741         * hppa-tdep.c: Ditto.
742         * h8500-tdep.c: Ditto.
743         * fr30-tdep.c: Ditto.
744         * arm-tdep.c: Ditto.
745         * alpha-tdep.c: Ditto.
746         * d30v-tdep.c: Ditto.
747         * d10v-tdep.c: Ditto.
748         * m32r-tdep.c: Ditto.
749         * mips-tdep.c: Ditto.
750         * v850-tdep.c: Ditto.
751
752 2001-07-15  Elena Zannoni  <ezannoni@redhat.com>
753  
754         * top.c (readline_line_completion_function, noop_completer): Move
755         from here...  
756         * completer.c (readline_line_completion_function, noop_completer):
757         ...to here.
758         * gdbcmd.h (readline_line_completion_function, noop_completer):
759         Move declarations from here...  
760         * completer.h (readline_line_completion_function, noop_completer):
761         ...to here.
762         * corefile.c: Include completer.h.
763         * source.c: Ditto.
764         * symfile.c: Ditto.
765         * Makefile.in: Update dependencies.
766
767 2001-07-15  Eli Zaretskii  <eliz@is.elta.co.il>
768
769         * go32-nat.c (go32_create_inferior): Support command lines longer
770         than 126 characters.
771
772 2001-07-14  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
773
774         * NEWS: New target 68HC11/68HC12.
775
776 2001-07-14  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
777
778         * utils.c (query): Remove tui hacks; tui must use the query_hook.
779         * top.c (command_loop): Remove tui insert_mode hacks; don't call
780         tuiCleanUp because this must be made with atexit by tui.
781         * symfile.c (symbol_file_command): Remove call to TUIDO
782         * stack.c (show_and_print_stack_frame_stub): Remove tui check;
783         not necessary when using the selected frame hooks.
784         (print_stack_frame_stub): Likewise.
785         (print_frame_info_base): Likewise.
786         (print_frame_info): Likewise.
787         (up_silently_command): Likewise.
788         (down_silently_command): Likewise.
789         (show_stack_frame): Likewise for TUIDO.
790         (select_frame): Likewise.
791         (select_and_print_frame): Likewise.
792         (stack_publish_stopped_with_no_frame): Remove.
793         (select_and_maybe_print_frame): Remove.
794         * main.c (captured_main): Remove tui_fileopen and tuiInit; tui
795         must use the initialize ui hook.
796         * infrun.c (normal_stop): Remove call to TUIDO; tui must use the
797         selected frame hooks.
798         * event-top.c (command_handler): Remove tui insert_mode hack.
799         * defs.h: Remove TUIDO; Only include tui.h.
800         * breakpoint.c (mention): Remove calls to TUIDO.
801         (delete_breakpoint): Remove tui hacks; tui must install
802         the breakpoint hooks.
803
804 2001-07-14  Mark Kettenis  <kettenis@gnu.org>
805
806         * config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
807         * config/i386/nm-linux.h: ...to here.  Change comments about user
808         area/struct a bit.
809
810         * config/i386/xm-linux.h (HAVE_TERMIOS): Really remove.
811
812         * Makefile.in (ALLDEPFILES): Add i386bsd-nat.c and i386bsd-tdep.c
813         (i386bsd-tdep.o, i386bsd-nat.o): New targets.
814
815 2001-07-13  Elena Zannoni  <ezannoni@redhat.com>
816
817         * remote-e7000.c (fetch_regs_from_dump): If register set is null,
818         generate an internal error.
819         (e7000_fetch_registers): Initialize variable 'wanted'.
820         (e7000_wait): Initialize variable 'wanted_nopc'.
821         (e7000_store_register): Fix sprintf compiler warnings.
822         (sub2_from_pc): Ditto.
823         (e7000_open): Close the descriptor, not the name.
824         (e7000_load): Fix compiler warnings.
825         (sub2_from_pc): Ditto.
826         * Makefile.in (remote-e7000.o): Can now compile with -Werror.
827
828 2001-07-13  Mark Kettenis  <kettenis@gnu.org>
829
830         * i386bsd-nat.c: Include <signal.h>, <stddef.h> and
831         <sys/sysctl.h>.
832         (store_inferior_registers): Wrap long line.
833         (i386bsd_dr_get_status): Fix typo in comment.
834         (_initialize_i386bsd_nat): New function.  * i386bsd-tdep.c: New
835         file.  * config/i386/tm-fbsd.h (IN_SIGTRAMP): New define.
836         (i386bsd_in_sigtramp): New prototype.
837         (SIGTRAMP_START, SIGTRAMP_END): Redefine in terms...
838         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): ...these new
839         (external) variables.
840         (SIGCONTEXT_PC_OFFSET): Removed.
841         (FRAME_SAVED_PC): New define.
842         (i386bsd_frame_saved_pc): New function.  * config/i386/fbsd.mt
843         (TDEPFILES): Add i386bsd-tdep.o.
844
845 2001-07-12  Daniel Jacobowitz  <drow@mvista.com>
846
847         * mips-linux-tdep.c (_initialize_mips_linux_tdep):  Use ISO C
848         definition.
849
850 2001-07-13  Mark Kettenis  <kettenis@gnu.org>
851
852         * lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
853         are no registered LWPs yet.
854
855 2001-07-12  Daniel Jacobowitz  <drow@mvista.com>
856
857         * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
858         function.
859         (CANNOT_STORE_REGISTER): Likewise.
860
861 2001-07-12  Keith Seitz  <keiths@redhat.com>
862
863         * remote-rdp.c: Include "serial.h"
864
865 2001-07-12  Daniel Jacobowitz  <drow@mvista.com>
866
867         * gdbserver/remote-utils.c (remote_open):  Set VMIN to 1
868         in HAVE_TERMIO/HAVE_TERMIOS cases.
869
870 2001-07-12  Mark Kettenis  <kettenis@gnu.org>
871
872         * lin-lwp.c (stop_wait_callback): Add support for flushing
873         signals.  Use that in favour of the old code to get rid of
874         superfluous SIGINTs.
875         (lin_lwp_wait): Use the new support in stop_wait_callback to
876         flush all but one SIGINT.
877
878         * i386-tdep.c (i386_extract_return_value): Undo 2001-07-11 changes
879         to comment.
880         (i386_store_return_value): Improve comments about storing
881         floating-point return values.
882
883         * config/arm/xm-linux.h, config/i386/xm-linux.h,
884         config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
885         config/sparc/xm-linux.h, config/ia64/xm-linux.h (HAVE_TERMIOS):
886         Removed.  Taken care of by autoconf and terminal.h.
887
888 2001-07-12  Daniel Jacobowitz  <drow@mvista.com>
889
890         * mips-tdep.c (mips_type_needs_double_align): New function.
891         (mips_push_arguments): Align o32 structs to even argument
892         registers if necessary.
893
894 2001-07-11  Daniel Jacobowitz  <drow@mvista.com>
895
896         * config/djgpp/fnchange.lst: Add entries for
897         mips-linux-nat.c and mips-linux-tdep.c.
898
899 2001-07-12  Mark Kettenis  <kettenis@gnu.org>
900
901         * config/powerpc/xm-linux.h: Fix corrupted file.
902
903         * configure.in: Add check for sigsetjmp.
904         * config/m68k/xm-linux.h (HAVE_SIGSETJMP): Removed.
905         * config/xm-sysv4.h (HAVE_SIGSETJMP): Removed.
906         * configure, config.in: Regenerated.
907
908 2001-07-11  Elena Zannoni  <ezannoni@redhat.com>
909
910         * config/sh/tm-sh.h (struct gdbarch_tdep): Add
911         FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
912         PR_REGNUM fields.
913
914         * sh-tdep.c (sh_skip_prologue_hard_way): Rename from
915         skip_prologue_hard_way().
916         (skip_prologue_hard_way): Make it a function pointer.
917         (sh_print_register): Use function pointer do_pseudo_register,
918         instead of sh_do_pseudo_register.
919         (sh_do_registers_info): Ditto.
920         (sh_gdbarch_init): Initialize do_pseudo_register.
921         (IS_MOV_TO_R14): Rename from IS_MOV_R14.
922         (skip_prologue_hard_way): Update.
923         (sh_gdbarch_init): Move setting of frame_chain,
924         get_saved_register, init_extra_frame_info, push_arguments,
925         extract_return_value, pop_frame, store_struct_return,
926         extract_struct_value_address, use_struct_convention,
927         init_extra_frame_info to before target specific settings.
928         (sh_gdbarch_init): Initialize new tdep fields
929         FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
930         PR_REGNUM.
931         (sh_push_arguments): Use new gdbarch_tdep fields
932         {ARG0,ARGLAST}_REGNUM.
933         (sh_saved_pc_after_call, sh_nofp_frame_init_saved_regs,
934         sh_init_extra_frame_info, sh_push_return_address,
935         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
936         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update to use
937         gdbarch_tdep->PR_REGNUM.
938         (dr_reg_base_num, fv_reg_base_num): Move to earlier in the file.
939         
940 2001-07-11  Daniel Jacobowitz  <drow@mvista.com>
941
942         * config/mips/tm-linux.h: Include "tm-linux.h" instead of copying
943         from it.  Move definitions of REALTIME_LO and REALTIME_HI above
944         include.
945
946 2001-07-11  Daniel Jacobowitz  <drow@mvista.com>
947
948         * MAINTAINERS: List myself for MIPS/Linux
949         port.
950
951 2001-07-11  Daniel Jacobowitz  <drow@mvista.com>
952
953         * gdbserver/remote-utils.c (remote_open): Only
954         check for F_SETOWN if we had F_SETFL and FASYNC.
955
956 2001-07-11  Daniel Jacobowitz  <drow@mvista.com>
957
958         From Michael Fedrowitz  <michael.fedrowitz@informatik.uni-ulm.de>:
959
960         * config/m68k/linux.mh: Remove core-regset.o.
961         * m68klinux-nat.c: Fix comment.
962         (supply_gregset): Change argument to elf_gregset_t *.
963         (supply_fpregset): Change argument to elf_fpregset_t *.
964         (fetch_core_registers): New function.
965         (linux_elf_core_fns): Define.
966         (_initialize_m68k_linux_nat): New function.
967
968 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
969
970         * configure.tgt: Mark d10v as pure multi-arch.
971         * config/d10v/tm-d10v.h: Delete file.
972         * config/d10v/d10v.mt (TM_FILE): Delete.
973
974 2001-07-10  Andrew Cagney  <ac131313@redhat.com>
975
976         * serial.h (typedef serial_t): Delete. Replace all references to
977         serial_t with `struct serial *'.
978         * serial.c: Update.
979         * nindy-share/ttyflush.c: Update.
980         * nindy-share/ttyflush.c: Update.
981         * nindy-share/Onindy.c: Update.
982         * nindy-share/nindy.c: Update.
983         * remote-rdp.c: Update.
984         * remote-sds.c: Update.
985         * remote-st.c: Update.
986         * remote-nindy.c: Update.
987         * remote-mips.c: Update.
988         * remote-e7000.c: Update.
989         * remote-os9k.c: Update.
990         * remote-nrom.c: Update.
991         * remote-es.c: Update.
992         * remote-array.c: Update.
993         * ocd.c: Update.
994         * mon960-rom.c: Update.
995         * dsrec.c: Update.
996         * inflow.c: Update.
997         * ser-e7kpc.c: Update.
998         * sparclet-rom.c: Update.
999         * srec.h: Update.
1000         * ser-tcp.c: Update.
1001         * ser-go32.c: Update.
1002         * sparcl-tdep.c: Update.
1003         * w89k-rom.c: Update.
1004         * utils.c: Update.
1005         * sh3-rom.c: Update.
1006         * remote.c: Update.
1007         * ser-pipe.c: Update.
1008         * ser-unix.c: Update.
1009         * ser-unix.h: Update.
1010         * xmodem.c: Update.
1011         * xmodem.h: Update.
1012
1013 2001-07-11  J.T. Conklin  <jtc@redback.com>
1014
1015         From Greg McGary <greg@mcgary.org>:
1016         * gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
1017         of SIGIO.
1018         (input_interrupt): Don't block on read, in case we got redundant
1019         SIGIO.  Don't gripe about redundant SIGIO.
1020         * gdbserver/low-hppabsd.c (mywait): Use waitpid().  Enable SIGIO
1021         handler while waiting.
1022         * gdbserver/low-linux.c (mywait): Likewise.
1023         * gdbserver/low-nbsd.c (mywait): Likewise.
1024         * gdbserver/low-sparc.c (mywait): Likewise.
1025
1026 2001-07-11  Keith Seitz  <keiths@redhat.com>
1027
1028         * infrun.c (print_stop_reason): Add missing uiout field
1029         "reason" for SIGNAL_RECEIVED case.
1030
1031 2001-07-11  Mark Kettenis  <kettenis@gnu.org>
1032
1033         * config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
1034         Remove unused macro's.
1035
1036         * config/powerpc/nm-linux.h (NO_SYS_REG_H): Remove, it's no longer
1037         used.
1038
1039 2001-07-11  Eli Zaretskii  <eliz@is.elta.co.il>
1040
1041         * go32-nat.c (info_dos_cmdlist): New variable.
1042         (go32_info_dos_command): New function.
1043         (_initialize_go32_nat): Convert all DOS-specific commands into
1044         subcommands of "info dos".  Suggested by Andrew Cagney
1045         <ac131313@redhat.com>.
1046
1047 2001-07-11  Mark Kettenis  <kettenis@gnu.org>
1048
1049         * config/nm-linux.h: Fix comments.
1050
1051         * thread-db.c (enable_thread_event_reporting): Correct warning
1052         message about getting thread death breakpoint.
1053         Reported by John S Kallal <jskallal@home.com>.
1054
1055         * i386-tdep.c (i386_extract_return_value): "Fix" comment.
1056         (i386_store_return_value): Frob FPU status and tag word to make
1057         sure the return value is the only value on the FPU stack.
1058
1059         * config/tm-linux.h: Do not include <signal.h>.  Instead provide
1060         reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
1061         already defined.
1062         * config/nm-linux.h: Include <signal.h>.
1063         [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
1064         (__SIGRTMAX + 1) respectively.
1065
1066 2001-07-10  Andrew Cagney  <ac131313@redhat.com>
1067
1068         * mcore-rom.c: Include "serial.h".
1069         * Makefile.in (mcore-rom.o): Depends on "serial.h".
1070
1071 2001-07-10  Andrew Cagney  <ac131313@redhat.com>
1072
1073         * Makefile.in (remote-bug.o): Depends on serial.h.
1074         * remote-bug.c: Include "serial.h".
1075         * MAINTAINERS: Mark m88k target as buildable.
1076         * TODO: Update.
1077
1078 2001-07-10  Jim Blandy  <jimb@redhat.com>
1079
1080         Clean up the D10V port so that GDB and the target program no
1081         longer disagree on how big pointers are.
1082         * findvar.c (value_from_register): Remove special case code for D10V.
1083         * printcmd.c (print_frame_args): Same.
1084         * valops.c (value_at, value_fetch_lazy): Same.
1085         * values.c (unpack_long): Same.
1086         * gdbarch.sh: Changes to effect the following:
1087         * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
1088         gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
1089         set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
1090         gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
1091         set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
1092         gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
1093         set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
1094         gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
1095         set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
1096         gdbarch_d10v_convert_daddr_to_raw_ftype,
1097         gdbarch_d10v_convert_daddr_to_raw,
1098         set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
1099         gdbarch_d10v_convert_iaddr_to_raw_ftype,
1100         gdbarch_d10v_convert_iaddr_to_raw,
1101         set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
1102         * gdbarch.c: Delete the corresponding definitions.
1103         (struct gdbarch): Delete members d10v_make_daddr,
1104         d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
1105         d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
1106         (startup_gdbarch): Remove initializers for the above.
1107         (verify_gdbarch, gdbarch_dump): Don't verify or dump them any
1108         more.
1109         * d10v-tdep.c (d10v_register_virtual_type): Rather that
1110         claiming the stack pointer and PC are 32 bits long (which they
1111         aren't), say that the stack pointer is an int16_t, and the
1112         program counter is a function pointer.  This allows the rest
1113         of GDB to make the appropriate conversions between the code
1114         pointer format and real addresses.
1115         (d10v_register_convertible, d10v_register_convert_to_virtual,
1116         d10v_register_convert_to_raw): Delete function; no registers
1117         are convertible now, so we use
1118         generic_register_convertible_not instead.
1119         (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
1120         methods.
1121         (d10v_push_arguments, d10v_extract_return_value): Remove special
1122         cases for code and data pointers.
1123         (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
1124         the target agree on how large pointers are.  Say that addresses
1125         are 32 bits long.  Register the address_to_pointer and
1126         pointer_to_address conversion functions.  Since no registers are
1127         convertible now, register generic_register_convertible_not as the
1128         gdbarch_register_convertible method instead of
1129         d10v_register_convertible.  Remove registrations for
1130         d10v_register_convert_to_virtual,
1131         d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
1132         gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
1133         gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
1134         gdbarch_d10v_convert_iaddr_to_raw.
1135         
1136         * printcmd.c (print_scalar_formatted): If we are printing an
1137         address, remember that TARGET_ADDR_BIT is not always equal to
1138         TARGET_PTR_BIT.
1139
1140         * valops.c (value_cast): When casting a pointer to an integer,
1141         don't convert it to an address.
1142
1143 2001-07-10  Andrew Cagney  <ac131313@redhat.com>
1144
1145         * remote-utils.h (struct serial): Declare as opaque.  Remove
1146         include of "serial.h".
1147         * Makefile.in (remote_utils_h): Update.
1148
1149         * monitor.h (struct serial): Declare as opaque.  Remove include of
1150         "serial.h".
1151         (struct monitor_ops): Replace serial_t with `struct serial *'.
1152         * monitor.c (monitor_desc): Ditto.
1153
1154 2001-07-10  Daniel Jacobowitz  <drow@mvista.com>
1155
1156         * mips-linux-tdep.c: New file.
1157         * mips-linux-nat.c: New file.
1158         * config/mips/linux.mh: New file.
1159         * config/mips/linux.mt: New file.
1160         * config/mips/xm-linux.h: New file.
1161         * config/mips/nm-linux.h: New file.
1162         * config/mips/tm-linux.h: New file.
1163         * configure.host: Recognize mips*-*-linux*.
1164         * configure.tgt: Likewise.
1165         * NEWS: Mention mips*-*-linux* port.
1166
1167 2001-07-09  Andrew Cagney  <ac131313@redhat.com>
1168
1169         * serial.h (struct serial): Rename `struct _serial_t'.
1170         * serial.c (XMALLOC): Define.
1171         (serial_open): Update. Use XMALLOC.
1172         (serial_fdopen): Ditto.
1173
1174 2001-07-07  Andrew Cagney  <ac131313@redhat.com>
1175
1176         * gdbtypes.h (builtin_type_void_data_ptr): Rename
1177         builtin_type_ptr.
1178         * gdbtypes.c (builtin_type_void_data_ptr): Update.
1179         (build_gdbtypes): Update.
1180         (_initialize_gdbtypes): Update.
1181         * values.c (value_as_pointer): Update.
1182         * utils.c (host_pointer_to_address): Update.
1183         (address_to_host_pointer): Update.
1184
1185 2001-07-08  Andrew Cagney  <ac131313@redhat.com>
1186
1187         * remote-udi.c (udi_wait): Make type, instead of name, of first
1188         parameter a ptid_t.
1189
1190 2001-07-07  Andrew Cagney  <ac131313@redhat.com>
1191
1192         * ser-mac.c: Make obsolete.
1193         * Makefile.in (ser-mac.o): Ditto.
1194
1195 2001-07-08  Eli Zaretskii  <eliz@is.elta.co.il>
1196
1197         * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
1198         (read_memory_region, get_descriptor, display_descriptor)
1199         (go32_sldt, go32_sgdt, go32_sidt): New functions.
1200         (top-level): Include ctype.h, utsname.h, dos.h, and go32.h.  Ifdef
1201         away `disable' from dos.h, since breakpoint.h defines an enum
1202         member of the same name, and GCC 2.7.2 barfs.
1203         (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
1204         dos-gdt, and dos-idt, all of them in the "info" class
1205
1206 2001-07-07  Kevin Buettner  <kevinb@redhat.com>
1207
1208         * procfs.c (create_procinfo): Allocate space for saved_entryset
1209         and saved_exitset.
1210         (destroy_one_procinfo): Free space allocated to saved_entryset
1211         and saved_exitset.
1212
1213 2001-07-07  Andrew Cagney  <ac131313@redhat.com>
1214
1215         * TODO (5.1): Update.
1216
1217 2001-07-07  Andrew Cagney  <ac131313@redhat.com>
1218
1219         * symtab.c (main_name): New function.
1220         (set_main_name): New function.
1221         * symtab.h: Declare.
1222         * TODO: Update
1223
1224         From 2000-03-05 Anthony Green <green@redhat.com>:
1225         * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
1226         setting main_name.
1227         * blockframe.c (inside_main_func): Use main_name instead of
1228         "main".
1229         * symtab.c (find_main_psymtab): Ditto.
1230         * source.c (select_source_symtab): Ditto.
1231         * nlmread.c (nlm_symfile_read): Ditto.
1232         * rs6000-tdep.c (skip_prologue): Ditto.
1233
1234 2001-07-07  Andrew Cagney  <ac131313@redhat.com>
1235
1236         * TODO: Convert most items into PRs.
1237
1238 2001-07-07  Mark Kettenis  <kettenis@gnu.org>
1239
1240         * lin-lwp.c (status_to_str): New function.
1241         (lin_lwp_wait): Use it to print debug messages where appropriate.
1242
1243 2001-07-06  Michael Chastain  <chastain@redhat.com>
1244
1245         * i387-tdep.c (print_i387_value): Fix pointer glitch.
1246
1247 2001-07-07  Mark Kettenis  <kettenis@gnu.org>
1248
1249         * lin-lwp.c (count_events_callback): Fix formatting.  Turn check
1250         commented with "paranoia" into gdb_assert.
1251         (select_event_lwp_callback): Likewise.
1252         (cancel_breakpoints_callback): Bail out early if LP is the event
1253         LWP.  Add comment about backup up breakpoints.  Fix formatting and
1254         debug message.
1255         (select_event_lwp): Make solely repsonsible for switching event
1256         LWP.  Fix formatting and remove bogus "ERROR" debug message.
1257         Don't backup breakpoints from here.
1258         (lin_lwp_wait): Don't touch LP->status, let select_event_lwp
1259         handle that.  Only call select_event_lwp if we're not waiting for
1260         a specific LWP, i.e. when PID == -1.  Backup breakpoints from here.
1261
1262 2001-07-06  Michael Snyder  <msnyder@redhat.com>
1263
1264         * procfs.c (procfs_resume): Silence noisy warning.
1265
1266 2001-06-12  Michael Snyder  <msnyder@redhat.com>
1267
1268         * lin-lwp.c: Prevent thread starvation by using a monte carlo 
1269         method to choose which of several event threads to handle next.
1270
1271         (stop_wait_callback): Defer pushback of breakpoint events until
1272         later; add SIGTRAP events to the queue of unhandled events.
1273         Keep calling waitpid until SIGSTOP retrieved.  If more than one
1274         non-SIGSTOP event is retrieved, push them back onto the process
1275         queue using kill.
1276         (count_events_callback, select_singlestep_lwp_callback, 
1277         select_event_lwp_callback, cancel_breakpoints_callback, 
1278         select_event_lwp): New functions.  Implement monte carlo method 
1279         for selecting which of several SIGTRAP threads to handle next.  
1280         Push back the breakpoint event for all threads other than the 
1281         selected one.
1282         (lin_lwp_wait): Call select_event_lwp to decide which of several
1283         sigtrapped lwps to handle next.
1284         (resume_callback): Disable code that attempts to handle
1285         step_resume breakpoints.  Let core gdb handle this.
1286         
1287 2001-07-06  Jim Blandy  <jimb@redhat.com>
1288
1289         * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
1290         * gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
1291         (build_gdbtypes): Initialize it.
1292         (_initialize_gdbtypes): Swap it.
1293
1294 2001-07-04  Daniel Jacobowitz  <drow@mvista.com>
1295
1296         * mips-tdep.c (mips32_op): Correct offset.
1297         (itype_op): Likewise.
1298         (itype_rs): Fix formatting.
1299         (itype_immediate): Fix formatting.
1300         (jtype_op): Correct offset.
1301         (jtype_target): Fix formatting.
1302         (rtype_op): Correct offset.
1303         (rtype_rs): Fix formatting.
1304         (rtype_rt): Likewise.
1305         (rtype_rd): Likewise.
1306         (rtype_shamt): Likewise.
1307         (rtype_funct): Likewise.
1308
1309         (mips32_next_pc):  Fix formatting and comments.  Recognize
1310         coprocessor 1 branches.  Check the correct field for BLT family
1311         branches.  Use itype_rt instead of itype_rs for the second register
1312         of a BNE or BNEL branch.  Move (unreachable) default case.
1313
1314 2001-07-04  Andrew Cagney  <ac131313@redhat.com>
1315
1316         * ui-out.h (struct ui_out_impl): Add field is_mi_like_p.
1317         (ui_out_is_mi_like_p): Declare.
1318         * ui-out.c (ui_out_is_mi_like_p): Define.
1319         (default_ui_out_impl): Initialize is_mi_like_p to zero.
1320         * cli-out.c (cli_ui_out_impl): Ditto.
1321         * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p.
1322         (watchpoint_check, print_one_breakpoint, mention): Ditto.
1323         * infrun.c (print_stop_reason, normal_stop): Ditto.
1324
1325 2001-07-05  Daniel Jacobowitz  <drow@mvista.com>
1326
1327         * mips-tdep.c (mips_software_single_step): New function.
1328         * config/mips/tm-mips.h: Add prototype for
1329         mips_software_single_step.
1330
1331 2001-07-05  Daniel Jacobowitz  <drow@mvista.com>
1332
1333         * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
1334         of greg_t.
1335         (fill_gregset): Likewise.
1336
1337 2001-07-05  Andrew Cagney  <ac131313@redhat.com>
1338
1339         * objfiles.c (open_mapped_file): Use lbasename instead of
1340         basename.
1341
1342 2001-07-05  Jim Blandy  <jimb@redhat.com>
1343
1344         * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
1345         show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
1346         d10v_write_sp, d10v_write_fp, d10v_read_fp,
1347         d10v_push_return_address): Call the functions d10v_make_daddr,
1348         d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
1349         d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
1350         D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
1351         D10V_CONVERT_DADDR_TO_RAW.
1352
1353         * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
1354
1355 2001-07-05  Mark Kettenis  <kettenis@gnu.org>
1356
1357         * config/i386/xm-go32.h (HOST_I386): Removed.
1358         * config/i386/xm-linux.h (HOST_I386): Removed.
1359
1360 2001-07-04  Mark Kettenis  <kettenis@gnu.org>
1361
1362         * i387-tdep.c (print_i387_value): Add extra space after final full
1363         stop in comment.
1364
1365 2001-07-04  Andrew Cagney  <ac131313@redhat.com>
1366
1367         * TODO (5.1): Update.  Doco changes committed.
1368
1369 2001-06-29  Andrew Cagney  <ac131313@redhat.com>
1370
1371         * config/arm/tm-arm.h: Include "floatformat.h".
1372
1373 2001-06-29  Andrew Cagney  <ac131313@redhat.com>
1374
1375         * i387-tdep.c: Include "gdb_assert.h".
1376         (print_i387_value): Use extract_floating to extract the FP value
1377         from a zero padded local buffer.
1378
1379 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
1380
1381         * TODO: Delete all thread items.  The thread code was overhauled.
1382
1383 2001-07-04  Elena Zannoni  <ezannoni@redhat.com>
1384
1385         * memattr.c (create_mem_region): Move n to next memory region,
1386         to avoid infinite loop.
1387
1388         * memattr.h: Add copyright statement.
1389         * memattr.c: Ditto.
1390
1391 2001-07-04  Jim Blandy  <jimb@redhat.com>
1392
1393         * dwarf2read.c (struct partial_die_info): New member: has_pc_info.
1394         (read_partial_die): Delete fourth argument; we return this info in
1395         the struct partial_die_info object itself now.
1396         (dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
1397         has_pc_info field of the partial die struct, rather than passing a
1398         variable by reference to read_partial_die.
1399
1400         * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
1401         code in loop condition.
1402
1403 2001-07-03  Michael Snyder  <msnyder@redhat.com>
1404
1405         * thread_db (find_new_threads_callback, thread_db_thread_alive, 
1406         attach_thread): Update comments.
1407
1408 2001-06-29  Ken Whaley  <ken@believe.com>
1409
1410         * thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
1411         to TD_THR_UNKNOWN when looking for defunct zombie threads.
1412         (thread_db_thread_alive): Ditto.
1413         (find_new_threads_callback): Ditto.
1414
1415 2001-07-02  Daniel Jacobowitz  <drow@mvista.com>
1416
1417         * MAINTAINERS: Add myself to the write-after-approval list.
1418
1419 2001-07-02  Daniel Jacobowitz  <drow@mvista.com>
1420
1421         * solib-svr4.c: Include "elf/mips.h".
1422         (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
1423
1424 2001-07-02  Jim Blandy  <jimb@redhat.com>
1425
1426         * dwarf2read.c (read_comp_unit, sibling_die, dump_die,
1427         dump_die_list, store_in_ref_table, follow_die_ref): Make these
1428         static; they're private functions.
1429
1430 2001-07-01  Mark Elbrecht <snowball@bigfoot.com>
1431
1432         * coffread.c (coff_symfile_read): Parse DWARF2 info if present.
1433
1434 2001-06-28  Elena Zannoni  <ezannoni@redhat.com>
1435
1436         * TODO: Add import of readline 4.2 as a gdb 5.2 task.
1437
1438 2001-06-29  Andrew Cagney  <ac131313@redhat.com>
1439
1440         * config/djgpp/fnchange.lst: Sort.
1441
1442 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
1443
1444         * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
1445         mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
1446
1447 2001-06-29  Andreas Jaeger  <aj@suse.de>
1448
1449         * MAINTAINERS: Add myself to the write-after-approval list.
1450
1451 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
1452
1453         * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro.
1454         (get_hex_word): Don't use HOST_BYTE_ORDER.
1455         (array_fetch_registers): Add variable ``reg''.  Use
1456         store_unsigned_integer to byte-swap the register.  Delete unused
1457         local ``regs''.
1458
1459 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
1460
1461         * MAINTAINERS: Add Per Bothner to Java maintainers.
1462
1463 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
1464
1465         * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
1466         * rdi-share/hostchan.h (__unix): Hack, provide a default value.
1467         * rdi-share/host.h (__unix): Hack, define when __NetBSD__.
1468         * TODO: Update.
1469         * MAINTAINERS: Update.  arm-elf builds.
1470
1471 2001-06-28  Jim Blandy  <jimb@redhat.com>
1472
1473         * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.
1474
1475         * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention,
1476         d10v_breakpoint_from_pc, d10v_register_byte,
1477         d10v_register_raw_size, d10v_register_virtual_size,
1478         d10v_register_virtual_type, d10v_register_convertible,
1479         d10v_register_convert_to_virtual, d10v_register_convert_to_raw,
1480         d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
1481         d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
1482         d10v_store_struct_return, d10v_store_return_value,
1483         d10v_extract_struct_value_address, d10v_frame_saved_pc,
1484         d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue,
1485         d10v_frame_chain, d10v_frame_init_saved_regs,
1486         d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc,
1487         d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp,
1488         d10v_push_return_address, d10v_push_arguments,
1489         d10v_extract_return_value): Make these functions static.
1490
1491 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
1492
1493         From Fernando Nasser:
1494         * infrun.c (handle_inferior_event): Handle "nexti" inside function
1495         prologues.
1496         
1497 2001-06-28  Michael Snyder  <msnyder@redhat.com>
1498
1499         * infrun.c (handle_inferior_event): Replace prev_pc test in all
1500         calls to bpstat_stop_status (removed in 1999-09-24).  This test
1501         helps distinguish stepping over a breakpoint trap from stepping
1502         thru a jump to the instruction after a breakpoint trap.
1503         (handle_inferior_event): Don't bother writing the PC if
1504         DECR_PC_AFTER_BREAK is zero (optimization).
1505         * breakpoint.c (bpstat_stop_status): Add comment explaining the
1506         purpose and usage of the "not_a_breakpoint" argument in computing
1507         the breakpoint address.
1508
1509 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
1510
1511         From 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
1512         * monitor.c (setmem_resp_delim_pattern): New regexp pattern.
1513         (setreg_resp_delim_pattern): Likewise.
1514         (setmem_resp_delim_fastmap): New buffer.
1515         (setreg_resp_delim_fastmap): Likewise.
1516         (monitor_open): Initialize above regexp if they are defined.
1517         (monitor_write_memory): Use regexp to check the result of write.
1518         (monitor_store_register): Likewise to check result of register set.
1519
1520 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
1521
1522         From 2000-06-14 John Marshall <john_w_marshall@palm.com>:
1523         * coff-solib.c: Include symfile.h and objfiles.h to make
1524         OBJF_SHARED visible.
1525
1526 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
1527
1528         * configure.in (--enable-gdbmi): Enable by default.
1529         * configure: Regenerate.
1530         * TODO: Update.
1531         * NEWS: Update
1532
1533 2001-06-28  Joel Brobecker  <brobecker@act-europe.fr>
1534
1535         * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment
1536         explaining the consequences of always returning zero. No code
1537         change.
1538
1539 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
1540
1541         From 2001-06-08 Daniel Jacobowitz <djacobowitz@mvista.com>:
1542         * defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65
1543         to TARGET_SIGNAL_REALTIME_127.
1544         * target.c (struct signals): Add SIG63 to SIG127.
1545         (target_signal_from_host): Handle up to 127 signals.
1546         (do_target_signal_to_host): Likewise.
1547         
1548 2001-06-27  Andrew Cagney  <ac131313@redhat.com>
1549
1550         * remote-sds.c (sds_start_remote): Change type of ``c'' to int
1551         from possibly unsigned char.
1552
1553 2001-06-27  Andrew Cagney  <ac131313@redhat.com>
1554
1555         * ser-ocd.c: Delete file.
1556         * Makefile.in (ALLDEPFILES): Remove ser-ocd.c
1557         (ser-ocd.o): Delete target.
1558         * TODO: Update.
1559         * NEWS: Update.
1560
1561 2001-06-27  Andrew Cagney  <ac131313@redhat.com>
1562
1563         * MAINTAINERS (Write After Approval): Sort.
1564         (Past Maintainers): Daniel Berlin stepped down as C++ maintainer.
1565
1566 2001-06-26  Andrew Cagney  <ac131313@redhat.com>
1567
1568         * breakpoint.c (breakpoint_1): Always output the breakpoint
1569         headings.  Leave it to ui-out to decide which
1570
1571 2001-06-25  Andrew Cagney  <ac131313@redhat.com>
1572
1573         * stack.c (print_frame): For ui_out, output a list of arguments.
1574
1575 2001-06-25  Kevin Buettner  <kevinb@redhat.com>
1576
1577         * MAINTAINERS (paper trail): Update.
1578
1579 2001-06-25  Michael Snyder  <msnyder@redhat.com>
1580
1581         * infrun.c: Eliminate the "thread_step_needed" state variable, 
1582         and replace it with a relatively simple test in resume.
1583         (resume): Replace thread_step_needed logic with a test for
1584         stepping, breakpoint_here_p and breakpoints_inserted.
1585         Move CANNOT_STEP_BREAKPOINT logic to after thread_step logic.
1586         (proceed): Discard thread_step_needed logic.
1587         (wait_for_inferior, fetch_inferior_event, handle_inferior_event):
1588         Discard thread_step_needed logic.
1589
1590 2001-06-24  Fernando Nasser  <fnasser@redhat.com>
1591
1592         * remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
1593         * rdi-share/host.h: Add missing parenthesis in conditional.
1594
1595 2001-06-22  J.T. Conklin  <jtc@redback.com>
1596
1597         * configure.in: include nlist.h when checking for member som_addr
1598         in struct so_map.
1599         * configure: regenerate.
1600
1601 2001-06-21  Keith Seitz  <keiths@redhat.com>
1602
1603         * cli-out.c (cli_out_new): Initialize new structure member
1604         "suppress_output".
1605
1606 2001-06-20  Andrew Cagney  <ac131313@redhat.com>
1607
1608         * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
1609         (table_header_ftype): Ditto.
1610         * cli-out.c (cli_table_header): Update.
1611         * ui-out.c (ui_out_table_header): Update.
1612         (uo_table_header): Update.
1613         (default_table_header): Update.
1614         (append_header_to_list): Update.
1615         (struct ui_out_header): Add field ``col_name''.
1616         (append_header_to_list): Use xstrdup.  Initialize col_name.
1617         * breakpoint.c (breakpoint_1): Pass COL_NAME to
1618         ui_out_table_header.
1619
1620 2001-06-19  Andrew Cagney  <ac131313@redhat.com>
1621
1622         * cli-out.c: Include "gdb_assert.h'.
1623         (struct ui_out_data): Add field ``suppress_output.
1624         (cli_table_begin): When NR_ROWS is zero, suppress_output.
1625         (cli_table_end): Clear suppress_output.
1626         (cli_table_body): Check suppress_output.
1627         (cli_table_header, cli_begin): Ditto.
1628         (cli_end, cli_field_int, cli_field_skip): Ditto.
1629         (cli_field_string, cli_field_fmt, cli_spaces): Ditto.
1630         (cli_text, cli_message, cli_wrap_hint): Ditto.
1631         * breakpoint.c (breakpoint_1): Close the ui_out table before
1632         printing the breakpoint not found message.
1633
1634 2001-06-18  Andrew Cagney  <ac131313@redhat.com>
1635
1636         * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
1637         (default_table_begin): Ditto.
1638         (uo_table_begin): Ditto.
1639         * cli-out.c (cli_table_begin): Ditto.
1640         * ui-out.h (ui_out_table_begin): Update
1641         (table_begin_ftype): Update.
1642         * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
1643         ui_out_table_begin.
1644
1645 2001-06-16  Andrew Cagney  <ac131313@redhat.com>
1646
1647         * breakpoint.c (breakpoint_1): Restructure.  Compute the
1648         nr_printable_breakpoints.  Move the header output to before the
1649         main print breakpoints loop.
1650         (user_settable_breakpoint): New function.
1651
1652 2001-06-18  Andrew Cagney  <ac131313@redhat.com>
1653
1654         * infrun.c, breakpoint.c: Use strncmp as the "mi" test.  Allow,
1655         "mi", "mi0" and "mi1".
1656
1657 2001-06-17  Andrew Cagney  <ac131313@redhat.com>
1658
1659         * gdbarch.sh: Generate an error when conflicting macro
1660         definitions.  Generate an error when both pure multi-arch and
1661         "tm.h".
1662         * gdbarch.h, gdbarch.c: Regenerate.
1663         * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
1664         
1665 2001-06-17  Andrew Cagney  <ac131313@redhat.com>
1666
1667         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
1668         GDB_MULTI_ARCH_PARTIAL from two.
1669
1670 2001-06-17  Fernando Nasser  <fnasser@redhat.com>
1671
1672         From 2001-06-15  Eirik Fuller  <eirik@hackrat.com>
1673         * cli/cli-script.c (free_command_lines): Reset list pointer.
1674
1675 2001-06-16  Andrew Cagney  <ac131313@redhat.com>
1676
1677         * arch-utils.c (init_frame_pc_default): New function
1678         * arch-utils.h (init_frame_pc_default): Declare.
1679         * gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
1680         not init_frame_pc_noop.
1681         * gdbarch.h, gdbarch.c: Re-generate.
1682         * blockframe.c (INIT_FRAME_PC): Delete macro definition.
1683         * mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
1684         init_frame_pc_noop.
1685
1686 2001-06-16  Andrew Cagney  <ac131313@redhat.com>
1687
1688         * gdbarch.c: Regenerate.  Out-of-sync with gdbarch.sh.
1689
1690 2001-06-15  Andrew Cagney  <ac131313@redhat.com>
1691
1692         * gdbarch.sh (CANNOT_FETCH_REGISTER): Multi-arch.
1693         (CANNOT_STORE_REGISTER): Ditto.
1694         * infptrace.c (CANNOT_FETCH_REGISTER): Delete definition.
1695         (CANNOT_STORE_REGISTER): Ditto.
1696         * regcache.c (CANNOT_STORE_REGISTER): Ditto.
1697         * lynx-nat.c (CANNOT_STORE_REGISTER): Ditto.
1698         * arch-utils.h (cannot_register_not): Define.
1699         * arch-utils.c (cannot_register_not): Declare.
1700         
1701 2001-06-15  Andrew Cagney  <ac131313@redhat.com>
1702
1703         * gdbarch.sh: Clarify pre/post default
1704         (INIT_FRAME_PC_FIRST, INIT_FRAME_PC): Multiarch.
1705         * blockframe.c (get_prev_frame): Remove #ifdef from around
1706         INIT_FRAME_PC_FIRST call.
1707         * arch-utils.c (init_frame_pc_noop): Define.
1708         * arch-utils.h (init_frame_pc_noop): Declare.
1709         * config/mips/tm-mips.h (INIT_FRAME_PC_FIRST): Delete.
1710         (INIT_FRAME_PC, mips_init_frame_pc_first): Ditto.
1711         * mips-tdep.c (mips_init_frame_pc_first): Make static.
1712         (mips_gdbarch_init): Initialize init_frame_pc_first.
1713         (mips_dump_tdep): Update.
1714
1715 2001-06-15  Michael Snyder  <msnyder@redhat.com>
1716
1717         * infrun.c (context_switch): New function.  Abstract the operation
1718         of saving and restoring infrun's state when switching threads.
1719         (handle_inferior_event): Normalize the handling of the 'thread hop'
1720         event (when the wrong thread hits a thread-specific breakpoint, 
1721         and we need to solo-step that thread past the breakpoint).
1722         Call keep_going, instead of target_resume.  Handle the subsequent
1723         singlestep-trap as a normal event instead of just resuming.
1724
1725 2001-06-15  Andrew Cagney  <ac131313@redhat.com>
1726
1727         * arch-utils.c (core_addr_identity): New function.  Rename
1728         default_convert_from_func_ptr_addr.
1729         * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Update.
1730         (ADDR_BITS_REMOVE): Define.  Default to core_addr_identity.
1731         * defs.h (ADDR_BITS_REMOVE): Delete macro definition.
1732         * config/mips/tm-mips.h (ADDR_BITS_REMOVE): Delete definition.
1733         * mips-tdep.c (mips_addr_bits_remove): Make static.
1734         (mips_gdbarch_init): Initialize addr_bits_remove.
1735
1736 2001-06-15  Andrew Cagney  <ac131313@redhat.com>
1737
1738         From 2001-02-26  D.J. Barrow <djbarrow@de.ibm.com>:
1739         * configure.tgt: Add S/390 31 & 64 bit target configuration.
1740         * configure.host: Ditto for host.
1741
1742 2001-06-15  Andrew Cagney  <ac131313@redhat.com>
1743
1744         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
1745         (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
1746         predicate.
1747         * gdbarch.h, gdbarch.c: Regenerate.
1748         * values.c (value_being_returned): Change the reference to
1749         EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
1750
1751 2001-06-15  Joel Brobecker <brobecker@act-europe.fr>
1752
1753         * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
1754         Write After Approval list.
1755
1756 2001-06-14  Michael Snyder  <msnyder@redhat.com>
1757
1758         * remote.c (show_remote_protocol_qSymbol_packet_cmd, 
1759         set_remote_protocol_qSymbol_packet_cmd): New functions.
1760         (init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
1761         (remote_check_symbols): New function.  Implement qSymbol packet, 
1762         allowing target to request symbol lookup service from gdb.
1763         (remote_open_1, remote_async_open_1): Call remote_check_symbols,
1764         allowing symbol lookup from exec_bfd on connection to target.
1765         (remote_new_objfile): New function.  Catch new objfile notifications
1766         from shared library module, and call remote_check_symbols.
1767         (_initialize_remote): Hook remote_new_objfile into the shared
1768         library notification chain.  Add "set remote symbol-lookup" command.
1769
1770 2001-06-14  Keith Seitz  <keiths@redhat.com>
1771
1772         * tracepoint.c (trace_command): We now have tracepoint
1773         events. Get rid of those ugly hooks.
1774         (tracepoint_operation): Likewise.
1775         (trace_pass_command): Likewise.
1776
1777 2001-06-13  Michael Snyder  <msnyder@redhat.com>
1778
1779         * gdbthread.h (struct thread_info): Add new fields: 
1780         current_line, current_symtab, step_sp, for saved infrun state.
1781         * thread.c (save_infrun_state, load_infrun_state): Save and
1782         restore current_line, current_symtab, and step_sp.
1783         (add_thread): Rather than adding assignments to initialize
1784         the new fields, just use memset (tp, 0, sizeof (*tp).
1785         This way future new fields will not be overlooked.
1786         * infrun.c (handle_inferior_event): Save and restore save_sp,
1787         current_line, and current_symtab when switching threads.
1788
1789 2001-06-13  Elena Zannoni  <ezannoni@redhat.com>
1790
1791         * MAINTAINERS: Add Andrew Cagney as co-maintainer of
1792         testsuite/gdb.mi.
1793
1794 2001-06-11  Andrew Cagney  <ac131313@redhat.com>
1795
1796         * symtab.c (lookup_symtab_1): Replace basename with lbasename.
1797         (lookup_partial_symtab, file_matches): Ditto.
1798         (make_source_files_completion_list): Ditto.
1799         (make_file_symbol_completion_list): Ditto.  Make local char*
1800         variable ``tail'' constant.
1801         (make_source_files_completion_list): Ditto with ``base_name''.
1802         * source.c (open_source_file): Use lbasename. Make ``p'' const
1803         char *.
1804
1805 2001-06-13  Eli Zaretskii  <eliz@is.elta.co.il>
1806
1807         * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
1808         (SLASH_STRING): Remove unused definitions.
1809         * config/i386/xm-cygwin.h: Likewise.
1810
1811 2001-06-12  Andrew Cagney  <ac131313@redhat.com>
1812
1813         * ui-out.c (ui_out_list_begin): Add parameter ``id''.
1814         (make_cleanup_ui_out_list_begin_end): Ditto.  Open the list.
1815         * ui-out.h: Update declarations.
1816
1817 Mon Jun 11 17:26:43 2001  Andrew Cagney  <cagney@b1.cygnus.com>
1818
1819         * source.c (openp): Make parameters ``path'' and ``string''
1820         constant.
1821         (openp): Use alloca to safely duplicate ``string''. Make local
1822         variables ``p'' and ``p1'' constant. Delete char* casts.
1823         * defs.h: Update.
1824
1825         * symtab.c (lookup_symtab_1): Make parameter ``name'' constant.
1826         (lookup_symtab, lookup_partial_symtab): Ditto.
1827         * symtab.h (lookup_symtab, lookup_partial_symtab): Update.
1828
1829 2001-06-11  Andrew Cagney  <ac131313@redhat.com>
1830
1831         * ui-out.h (ui_out_table_begin): Make char* parameters constant.
1832         (ui_out_table_header, ui_out_field_int): Ditto.
1833         (ui_out_field_core_addr, ui_out_field_string): Ditto.
1834         (ui_out_field_stream, ui_out_field_fmt): Ditto.
1835         (ui_out_field_skip, ui_out_text, ui_out_message): Ditto.
1836         * ui-out.c (ui_out_table_begin, ui_out_table_header): Update.
1837         (ui_out_field_core_addr, ui_out_field_stream): Update.
1838         (ui_out_field_string, ui_out_field_fmt): Update.
1839         (ui_out_text, ui_out_message): Update.
1840         (append_header_to_list): Make char* parameters constant.
1841         (uo_table_header, uo_table_begin): Ditto.
1842         (uo_field_int, uo_field_skip): Ditto.
1843         (uo_field_string, uo_field_fmt): Ditto.
1844         (uo_text, uo_message): Ditto.
1845
1846 2001-06-11  Eli Zaretskii  <eliz@is.elta.co.il>
1847
1848         * completer.c (gdb_completer_loc_break_characters): New variable.
1849         (line_completion_function): If we are completing on locations,
1850         back up the start of word pointer past all characters which can
1851         appear in a location spec.
1852         (location_completer): New function.
1853
1854         * completer.h: Add prototype for location_completer.
1855
1856         * symtab.c (make_source_files_completion_list)
1857         (add_filename_to_list, not_interesting_fname): New functions.
1858         (filename_seen): New function, body extracted from
1859         output_source_filename.
1860         (output_source_filename): Call filename_seen to check if the file
1861         was already printed.
1862         (make_symbol_completion_list): If TEXT includes a
1863         double-quoted string, return an empty list, not NULL.
1864         (make_file_symbol_completion_list): New function, similar to
1865         make_symbol_completion_list but with an additional argument
1866         SRCFILE.
1867
1868         * symtab.h (make_file_symbol_completion_list)
1869         (make_source_files_completion_list): Add prototypes.
1870
1871         * breakpoint.c (_initialize_breakpoint): Make location_completer
1872         be the completion function for all commands which set breakpoints
1873         and watchpoints.
1874         (top-level): #include "completer.h".
1875
1876         * tracepoint.c (_initialize_tracepoint): Make location_completer
1877         be the completion function for the "trace" command.
1878         (top-level): #include "completer.h".
1879
1880         * printcmd.c (_initialize_printcmd): Make location_completer be
1881         the completion function for the "print", "inspect", "call", and
1882         "disassemble" commands.
1883         (top-level): #include "completer.h".
1884
1885         * infcmd.c (_initialize_infcmd): Make location_completer be the
1886         completion function for the "go", "jump", and "until" commands.
1887         (top-level): #include "completer.h".
1888
1889 2001-06-10 Christopher Faylor <cgf@redhat.com>
1890
1891         * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
1892         * utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
1893         * values.c (unpack_double): Remove obsolete check for _MSC_VER.
1894         * defs.h: Ditto.
1895         * m32r-rom.c: Ditto.
1896         * p-exp.y: Ditto.
1897         * ser-e7kpc.c: Ditto.  Define WIN32_LEAN_AND_MEAN under _WIN32, for
1898         faster compilation.
1899         (get_ds_base): Remove _MSC_VER version of this function.
1900         * nindy-share/ttyflush.c: Ditto.
1901         * rdi-share/host.h: Ditto.
1902         * ser-go32.c (dos_readchar): Remove call to obsolete function.
1903         * remote-sim.c (gdb_os_poll_quit): Ditto.
1904         * remote-e7000.c (expect): Remove obsolete #if 0'ed code.
1905
1906         * main.c (captured_main): Eliminate special Cygwin checks.
1907         * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
1908
1909 2001-06-09  Andrew Cagney  <ac131313@redhat.com>
1910
1911         * Makefile.in (gdbcmd_h): Add ui_out_h.
1912         (breakpoint.o, infcmd.o, main.o, printcmd.o, stack.o): Ditto.
1913         (thread.o, top.o): Ditto.
1914
1915         * ui-out.h (table_begin_ftype): Make string parameters constant.
1916         (table_header_ftype): Ditto.
1917         (field_int_ftype): Ditto.
1918         (field_skip_ftype): Ditto.
1919         (field_string_ftype): Ditto.
1920         (field_fmt_ftype): Ditto.
1921         (text_ftype): Ditto.
1922         (message_ftype): Ditto.
1923         * cli-out.c (cli_table_begin): Ditto.
1924         (cli_table_header): Ditto.
1925         (cli_field_int): Ditto.
1926         (cli_field_skip): Ditto.
1927         (cli_field_string): Ditto.
1928         (cli_field_fmt): Ditto.
1929         (cli_text): Ditto.
1930         (cli_message): Ditto.
1931         (out_field_fmt): Ditto.
1932         * ui-out.c (default_table_begin): Ditto.
1933         (default_table_header): Ditto.
1934         (default_field_int): Ditto.
1935         (default_field_skip): Ditto.
1936         (default_field_string): Ditto.
1937         (default_field_fmt): Ditto.
1938         (default_text): Ditto.
1939         (default_message): Ditto.
1940
1941 2001-06-08  Michael Snyder  <msnyder@redhat.com>
1942
1943         * breakpoint.c (delete_breakpoint): Pass mark_inserted to 
1944         remove_breakpoint, so that the subsequent test for
1945         bpt->inserted will succeed, and duplicates will be fixed up.
1946
1947 2001-06-08  Per Bothner  <per@bothner.com>
1948
1949         * dwarf2read.c (set_cu_language):  Handle DW_LANG_Java.
1950
1951 2001-06-07  Keith Seitz  <keiths@redhat.com>
1952
1953         * tracepoint.c (tracepoint_opertation): Add ui event
1954         notifications.
1955         (trace_pass_command): Ditto.
1956         
1957 2001-06-07  Andrew Cagney  <ac131313@redhat.com>
1958
1959         * MAINTAINERS (Write After Approval): Note the entry criteria.
1960         (HP/PA): Jeff Law stepped down
1961
1962 2001-06-07  Jim Blandy  <jimb@redhat.com>
1963
1964         * gdbarch.sh: Make sure that '[' doesn't interpret interesting
1965         variable values as operators.
1966
1967 2001-06-07  Keith Seitz  <keiths@redhat.com>
1968
1969         * gdb-events.sh: Fix quote escaping which was obsoleted
1970         by last patch.
1971
1972 2001-06-07  Keith Seitz  <keiths@redhat.com>
1973
1974         * gdb-events.sh: Make if statements and tests
1975         a little more portable.
1976         Don't use shell's echo command to put strings containing
1977         escaped characeters into a file -- different flavors of /bin/sh
1978         require differnt levels of escaping. Use cat <<EOF instead.
1979         Our internal field separator is a colon. Change all
1980         commands which assume it is a space.
1981
1982 2001-06-06  Mark Kettenis  <kettenis@gnu.org>
1983
1984         * lin-lwp.c (struct lwp_info): Add member `resumed'.
1985         (iterate_over_lwps): Make sure we can handle CALLBACK deleting the
1986         LWP it's called for.
1987         (lin_lwp_attach): Mark LWP as resumed to make sure the fake
1988         SIGSTOP is reported.
1989         (resume_clear_callback): New function.
1990         (resume_set_callback): New function.
1991         (lin_lwp_resume): Mark all LWP's that we're going to resume as
1992         resumed, and unmark all others.
1993         (status_callback): Only report a pending wait status if we pretend
1994         that LP has been resumed.
1995         (resumed_callback): New function.
1996         (lin_lwp_wait): Add assertions to check that LWP's are properly
1997         marked as resumed.  Partially revert 2001-05-25 patch by Michael
1998         Snyder: do not resume all threads.  Add comment explaining the
1999         problems associated with this bit of code.
2000
2001 2001-06-07  Keith Seitz  <keiths@redhat.com>
2002
2003         * MAINTAINTERS: Syd Polk is stepping down from
2004         maintaining libgui. I am replacing him.
2005
2006 2001-06-07  Eli Zaretskii  <elis@is.elta.co.il>
2007
2008         * config/mips/tm-irix6.h: New file.
2009
2010         * config/mips/irix6.mh: New file.
2011
2012         * config/mips/irix6.mt: New file.
2013
2014         * config/mips/xm-irix6.h: New file.
2015
2016         * config/mips/nm-irix6.h: New file.
2017
2018         * mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
2019         disassembler info in tm_print_insn_info as appropriate for the N32
2020         ABI.  Force N32 ABI to be the default if the CPU is R8000 or
2021         R10000.
2022
2023         * configure.tgt (mips*-sgi-irix6*): Map to irix6.
2024
2025         * configure.host (mips*-sgi-irix6*): Ditto.
2026
2027 2001-06-07  Andrew Cagney  <ac131313@redhat.com>
2028
2029         * gnu-v3-abi.c: Include "gdb_assert.h".
2030         (build_gdb_vtable_type): Replace abort() with gdb_assert().
2031
2032 2001-06-06  Jim Blandy  <jimb@redhat.com>
2033
2034         * cp-abi.h: Rearrange code to put documentation comments above the
2035         functions we export.  The actual function table itself simply
2036         refers to those functions.  Minor doc fixes.
2037
2038         * gdbarch.sh: Changes to effect the following:
2039         * gdbarch.c (initialize_non_multiarch): New function.
2040         * gdbarch.h (initialize_non_multiarch): New declaration.
2041         * arch-utils.c (initialize_current_architecture): For
2042         non-multiarch configurations, call initialize_non_multiarch.
2043
2044 2001-06-06  Andrew Cagney  <ac131313@redhat.com>
2045
2046         * symfile.c (compare_psymbols): Replace PTR with void*. Delete
2047         declaration.
2048         (compare_symbols): Ditto.
2049
2050 2001-06-06  Jonathan Larmour  <jlarmour@redhat.com>
2051
2052         * arch-utils.c (generic_prepare_to_proceed): Allow for having
2053         stopped due to a Ctrl-C as well as breakpoints.
2054
2055         * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
2056         support thread switches after Ctrl-C.
2057         * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
2058         * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
2059         * m3-nat.c (mach3_prepare_to_proceed): Ditto.
2060
2061 2001-06-06  Jim Blandy  <jimb@redhat.com>
2062
2063         * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
2064         per-architecture data should be registered at initialization time,
2065         before any gdbarch objects get used, so the generality is
2066         unnecessary.
2067
2068 2001-06-06  Keith Seitz  <keiths@redhat.com>
2069
2070         * gdb-events.sh (function_list): Add tracepoint_create,
2071         tracepoint_delete, and tracepoint_modify events.
2072         * gdb-events.c: Regenerated.
2073         * gdb-events.h: Regenerated.
2074
2075 2001-06-06  Keith Seitz  <keiths@redhat.com>
2076
2077         * gdb-events.sh: Update copyrights.
2078         Change free to xfree.
2079         * gdb-events.c: Regenerated.
2080         * gdb-events.h: Regenerated.
2081
2082 2001-06-06  Eli Zaretskii  <eliz@is.elta.co.il>
2083
2084         * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
2085         instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
2086         * completer.c: Ditto.
2087         * cli/cli-cmds.c (cd_command): Ditto.
2088
2089 2001-06-04  Eli Zaretskii  <eliz@is.elta.co.il>
2090
2091         * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
2092         (mips_set_processor_type_command): Remove unused variable j.
2093         (mips_breakpoint_from_pc): Declare breakpoint instruction
2094         sequences as unsigned char, to avoid compiler warnings.
2095
2096         * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
2097         instead of system-specific define's like _WIN32 and __MSDOS__.
2098         Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
2099         ROOTED_P.
2100         (top-level): #include "filenames.h".
2101
2102         * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
2103         instead of SLASH_CHAR, ROOTED_P and SLASH_P.
2104         (top-level): #include "filenames.h".
2105
2106         * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
2107         (SLASH_STRING): Define only for _WIN32.
2108
2109         * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
2110         __MSDOS_.
2111
2112         * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
2113         IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P.  Replace
2114         system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
2115         (top-level): #include "filenames.h".
2116
2117         * go32-nat.c (go32_wait): Change the return value to ptid_t.
2118
2119         * config/djgpp/fnchange.lst: Add two new files in the
2120         gdb/testsuite/gdb.c++/ directory to the remapped names.
2121
2122         * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
2123
2124 2001-06-01  Jim Blandy  <jimb@redhat.com>
2125
2126         Expand the gdbarch per-architecture data vector as needed, rather
2127         than requiring that all per-architecture data be registered before
2128         the first gdbarch object is allocated.
2129         * gdbarch.sh: Changes to effect the following:
2130         * gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
2131         declarations and definitions.
2132         (check_gdbarch_data): New function, and declaration.
2133         (gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
2134         zero is good enough.
2135         (free_gdbarch_data): Tolerate a null data pointer.  Free only
2136         those data items gdbarch->data actually has allocated.
2137         (set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
2138         (gdbarch_update_p): No need to call init_gdbarch_data.
2139
2140 2001-06-01  Kevin Buettner  <kevinb@redhat.com>
2141
2142         * ia64-tdep.c (is_float_or_hfa_type_recurse): Call check_typedef()
2143         on types that we wish to recurse on.
2144         (slot_alignment_is_next_even): New function.
2145         (ia64_push_arguments): Call slot_alignment_is_next_even() to
2146         examine the type in order to decide if it's necessary to skip
2147         an odd slot.
2148
2149 2001-06-01  Michael Snyder  <msnyder@redhat.com>
2150
2151         * thread.c (delete_step_resume_breakpoint): New function.
2152         Maintain internal consistency of the thread list while deleting
2153         a step_resume_breakpoint.
2154         * gdbthread.h (delete_step_resume_breakpoint): Export.
2155         * breakpoint.c (bpstat_find_step_resume_breakpoint):
2156         Make thread-aware: don't return a step_resume_breakpoint 
2157         for the wrong thread.
2158         * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
2159         instead of delete_breakpoint_current_contents.
2160         (fetch_inferior_event): Ditto.
2161         (handle_inferior_event): Call delete_step_resume_breakpoint
2162         instead of delete_breakpoint.
2163         * infrun.c (handle_inferior_event): After singlestepping over a
2164         thread-specific breakpoint, use currently_stepping() to decide
2165         whether to step or continue.
2166
2167 2001-06-01  Jim Blandy  <jimb@redhat.com>
2168
2169         * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
2170         these static --- there's no reason other files should use these.
2171
2172         * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
2173         Fix memory leak.
2174
2175         * partial-stab.h: New complaint: function_outside_compilation_unit.
2176         (case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
2177         complain, and don't try to set pst's start address.
2178
2179 2001-05-31  Kevin Buettner  <kevinb@redhat.com>
2180
2181         * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET):  Revise to
2182         match the location at which the kernel is placing the sigcontext
2183         struct.
2184
2185         * ia64-tdep.c (max_skip_non_prologue_insns): New static global.
2186         (refine_prologue_limit): New function.
2187         (examine_prologue):  Further limit number of instructions
2188         scanned by calling refine_prologue_limit().  Revise way in
2189         which the end of prologue address is computed for frameless
2190         functions.
2191
2192 2001-05-29  Christopher Faylor  <cgf@redhat.com>
2193
2194         * partial-stab.h: Revert previous patch.
2195
2196 2001-05-29  Christopher Faylor  <cgf@redhat.com>
2197
2198         * partial-stab.h: Consistently guard against pst being NULL.
2199
2200 2001-05-29  Alexandre Oliva  <aoliva@redhat.com>
2201
2202         * symfile.c (compare_psymbols, compare_symbols): Declare using
2203         PTR, as in the definition.
2204         * minsyms.c (compare_minimal_symbols): Likewise.
2205         * coffread.c (find_targ_sec): Likewise.
2206         * elfread.c (free_elfinfo, elf_locate_sections): Likewise.
2207         * mipsread.c (alphacoff_locate_sections): Likewise.
2208         * mdebugread.c (compare_blocks): Likewise.
2209
2210 2001-05-25  Nick Duffek  <nsd@redhat.com>
2211
2212         * solib.c (update_solib_list): Move target_resize_to_sections()
2213         into solib_map_sections() loop.
2214         (info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
2215         bfd_get_arch_size() fails.
2216
2217 2001-05-25  Nick Duffek  <nsd@redhat.com>
2218
2219         * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
2220         solib-osf.o.
2221         * config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
2222         with solib-osf.o and solib.o.
2223         * config/alpha/alpha-osf2.mh: Likewise.
2224         * config/alpha/alpha-osf3.mh: Likewise.
2225         * solib-osf.c: New file, renamed and largely rewritten from
2226         osfsolib.c.
2227
2228 2001-05-25  Michael Snyder  <msnyder@redhat.com>
2229
2230         * lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
2231         to consume the SIGSTOP generated by PTRACE_ATTACH.
2232         (stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
2233         try again to get the SIGSTOP event.
2234         (lin_lwp_wait): Resume all threads when ignoring a signal.
2235         This will insure that newly attached threads get resumed.
2236         * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
2237         * remote.c (remote_write_bytes): Update 'p' packet pointer.
2238
2239 2001-05-25  Jim Blandy  <jimb@redhat.com>
2240
2241         * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
2242         VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
2243         useful value, then we should fix that instead.
2244
2245 2001-05-24  Nick Duffek  <nsd@redhat.com>
2246
2247         * solist.h (struct so_list): Document the requirement that
2248         current_sos initialize some fields to 0.
2249
2250 2001-05-24  Mark Kettenis  <kettenis@gnu.org>
2251
2252         * gnu-nat.c: Include <ctype.h>.
2253         (gnu_pid_to_exec_file): Add PID parameter.
2254         (set_sig_thread_cmd): Use PIDGET on return value from
2255         thread_id_to_pid.
2256         (proc_string): Use MERGEPID to construct argument to
2257         pid_to_thread_id.
2258
2259 2001-05-22  Kevin Buettner  <kevinb@redhat.com>
2260
2261         * breakpoint.c (breakpoint_address_is_meaningful): New function.
2262         (check_duplicates): Don't compare non-meaningful addresses.
2263
2264 2001-05-22  Michael Snyder  <msnyder@redhat.com>
2265
2266         * thread-db.c: Allow for defunct zombie threads.        
2267         (attach_thread): Do not attempt to attach zombie thread.
2268         (thread_db_thread_alive): Return false for defunct zombie thread.
2269         (find_new_threads_callback): Don't add defunct zombie thread to list.
2270
2271 2001-05-22  Jim Blandy  <jimb@redhat.com>
2272
2273         Add support for the GNU V3 C++ ABI.
2274         (Includes changes by Dan Berlin.)
2275
2276         * gnu-v3-abi.c: New file.
2277         * minsyms.c: #include "value.h" and "cp-abi.h".
2278         (install_minimal_symbols): Check the minimal symbol table for
2279         symbols that look mangled in the V3 style, and select the V3 ABI
2280         if we find any.
2281         * Makefile.in (SFILES): Add gnu-v3-abi.c.
2282         (COMMON_OBS): Add gnu-v3-abi.o.
2283         (gnu-v3-abi.o): Add new rule.
2284         (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
2285
2286 2001-05-21  Jim Blandy  <jimb@redhat.com>
2287
2288         * values.c (value_primitive_field): If we're extracting a base
2289         class, then the type of the result should be the base class being
2290         extracted, not the type of which it is a base class.
2291
2292         * value.h (struct value): Doc fix, and rearrange members to place
2293         them near their explanations.
2294
2295 2001-05-21  Michael Snyder  <msnyder@redhat.com>
2296
2297         * remote.c (remote_async_wait): Added new variable fieldsize.
2298         Add fieldsize (return value of hex2bin) to string pointer p.
2299
2300 2001-05-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2301
2302         * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
2303         (m68hc11_analyze_instruction): Update the pc correctly.
2304         (m68hc11_guess_from_prologue): Take into account the stack correction
2305         for the saving address.
2306
2307 2001-05-07  Daniel Berlin  <dan@cgsoftware.com>
2308
2309         Changes by Jim Ingham:
2310         
2311         * values.c (value_change_enclosing_type): New function.  If the
2312         new enclosing type is larger than the old one, we need to allocate
2313         more space.
2314         * value.h: Add value_change_enclosing_type prototype.
2315         * valops.c (value_cast): Use it.
2316         (value_assign): Use it.
2317         (value_addr): Use it.
2318         (value_ind): Use it.
2319         (value_full_object): Use it.
2320         
2321 2001-05-07  Daniel Berlin  <dan@cgsoftware.com>
2322
2323         * values.c (value_static_field): Handle static fields that have a
2324         constant value.
2325
2326 2001-05-17  Michael Snyder  <msnyder@redhat.com>
2327
2328         * blockframe.c (create_new_frame): Zero all the fields via memset,
2329         rather than zeroing them one by one.
2330
2331 2001-05-17  Eli Zaretskii  <eliz@is.elta.co.il>
2332
2333         * top.c (user_args): Remove unused declaration.
2334
2335 2001-05-16  Michael Snyder  <msnyder@redhat.com>
2336
2337         * infcmd.c (do_registers_info): Move alloca outside of loop.
2338
2339 2001-05-15  John S Kallal  <jskallal@home.com>
2340
2341         * remote.c (remote_wait): Added new variable fieldsize.
2342         Add fieldsize (return value of hex2bin) to string pointer p.
2343
2344 2001-05-15  Mark Kettenis  <kettenis@gnu.org>
2345
2346         * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
2347         info.bfd_arch_info.
2348
2349 2001-05-14  Kevin Buettner  <kevinb@redhat.com>
2350
2351         * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
2352         Adjust format strings for printing LWPs to account for the fact
2353         that the type returned by GET_LWP() is now a long instead of an
2354         int.
2355
2356 2001-05-14  Kevin Buettner  <kevinb@redhat.com>
2357
2358         * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
2359         (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
2360         (ptid_get_tid, ptid_equal): New function declarations.
2361         * infrun.c (null_ptid, minus_one_ptid): New variables.
2362         (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
2363         (ptid_get_tid, ptid_equal): New functions.
2364         (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
2365         inferior_ptid, and target_last_wait_ptid.
2366
2367         * defs.h (ptid_t): Redefine to be a struct rather than an int.
2368         (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
2369         (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
2370         new ptid accessors and constructor.
2371
2372         * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
2373         MKLID, MKTID, ISTID): Provide new definitions for these macros.
2374         The old macros are retained, but disabled via #if 0 in order
2375         to aid in future restructuring.  See FIXME.
2376
2377         * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
2378         * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
2379         * infptrace.c (PIDGET, TIDGET): Likewise.
2380         * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
2381         * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
2382         * proc-service.c (MERGEPID): Likewise.
2383         * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
2384         * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
2385         * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
2386         * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
2387         Likewise.
2388         * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
2389         Likewise.
2390
2391         * lin-lwp.c (THREAD_FLAG): Delete macro definition.
2392         (GET_LWP): Redefine in terms of ptid_get_lwp().
2393         (GET_PID): Redefine in terms of ptid_get_pid().
2394         (is_lwp): Redefine without the need for THREAD_FLAG.
2395         (BUILD_LWP): Redefine in terms of ptid_build().
2396         * lin-thread.c (THREAD_FLAG): Delete macro definition.
2397         (GET_LWP): Redefine in terms of ptid_get_lwp().
2398         (GET_PID): Redefine in terms of ptid_get_pid().
2399         (GET_THREAD): Redefine in terms of ptid_get_tid().
2400         (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
2401         (is_lwp, is_thread): Redefine.
2402         (linux_child_wait, check_all_signal_numbers)
2403         (linuxthreads_discard_global_state, attach_thread): Declare these
2404         functions to squash warnings about missing declarations.
2405         * sol-thread.c (THREAD_FLAG): Delete macro definition.
2406         (GET_PID): Redefine in terms of ptid_get_pid().
2407         (GET_LWP): Redefine in terms of ptid_get_lwp().
2408         (GET_THREAD): Redefine in terms of ptid_get_tid().
2409         (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
2410         (is_lwp, is_thread): Redefine.
2411         * thread-db.c (THREAD_FLAG): Delete macro definition.
2412         (GET_PID): Redefine in terms of ptid_get_pid().
2413         (GET_LWP): Redefine in terms of ptid_get_lwp().
2414         (GET_THREAD): Redefine in terms of ptid_get_tid().
2415         (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
2416         (is_lwp, is_thread): Redefine.
2417
2418         * corelow.c (add_to_thread_list, get_core_register_section):
2419         Eliminate hacks needed to prevent regressions when inferior_ptid
2420         wasn't wide enough to hold the core file thread id in the pid
2421         component of inferior_ptid.
2422
2423 2001-05-14  Michael Snyder  <msnyder@redhat.com>
2424
2425         * remote.c (hex2bin):   Make first argument const.
2426         Require explicit count, don't accept null-terminated str.
2427         (remote_resume, remote_async_resume): White space fix-up.
2428         (remote_write_bytes): Set nr_bytes to return value of bin2hex.
2429
2430 2001-05-13  Mark Kettenis  <kettenis@gnu.org>
2431
2432         * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
2433         basename (NAME).  The FreeBSD basename returns a pointer to a
2434         static buffer, even if it's simply returning a string identical to
2435         its argument.
2436         (lookup_partial_symtab): Likewise.
2437
2438 2001-05-14  Michael Snyder  <msnyder@redhat.com>
2439
2440         * solib.c, solib.h: Add comment for function no_shared_libraries.
2441         
2442 2001-05-14  Kevin Buettner  <kevinb@redhat.com>
2443
2444         * solib.h (no_shared_libraries): Make declaration match definition
2445         in solib.c.
2446
2447 2001-05-14  Andrew Cagney  <ac131313@redhat.com>
2448
2449         * remote.c (remote_write_bytes): Set nr_bytes before returning it.
2450         * solib.h (no_shared_libraries): Declare.
2451
2452 2001-05-12  Andrew Cagney  <ac131313@redhat.com>
2453
2454         * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
2455         (gdbarch_update_p): Rewrite logic filling in INFO struct.  Use
2456         user specified values when available.
2457         * rs6000-tdep.c (rs6000_gdbarch_init): Update.  Get the
2458         architecture from info.bfd_arch_info.
2459         * gdbarch.c, gdbarch.h: Regenerate.
2460
2461 2001-05-12  Fernando Nasser  <fnasser@redhat.com>
2462
2463         * remote-e7000.c (e7000_open): Check for bad baud rate.
2464         * remote-st.c (st2000_open): Ditto.
2465
2466 2001-05-11  Jim Blandy  <jimb@redhat.com>
2467
2468         * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
2469         and ui_out_tuple_end instead of ui_out_list_begin and
2470         ui_out_list_end.
2471
2472         * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
2473         dependencies.  Reorder dependencies to match #includes in file,
2474         for easier verification.
2475         
2476 Fri May 11 13:32:50 2001  Andrew Cagney  <cagney@b1.cygnus.com>
2477
2478         * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
2479         make_cleanup_ui_out_list_end with ui_out_tuple_begin,
2480         ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
2481         * cli/cli-setshow.c: Ditto.
2482         * printcmd.c: Ditto.
2483         * stack.c: Ditto.
2484
2485         * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
2486         * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
2487         (ui_out_tuple_begin): New function.
2488         (ui_out_tuple_end): New function.
2489         (ui_out_tuple_begin_end): New function.
2490         (make_cleanup_ui_out_list_begin_end): Replace
2491         make_cleanup_ui_out_list_end function.
2492         * ui-out.h (ui_out_list_begin): Update declaration.
2493         (make_cleanup_ui_out_list_begin_end): Replace
2494         make_cleanup_ui_out_list_end declaration.
2495         (ui_out_tuple_begin, ui_out_tuple_end): Declare.
2496         (ui_out_tuple_begin_end): Declare.
2497
2498 2001-05-11  Jim Blandy  <jimb@redhat.com>
2499
2500         * gnu-v2-abi.c: Don't #include "gdb_regex.h".  We don't use it.
2501
2502 2001-05-11  Andrew Cagney  <ac131313@redhat.com>
2503
2504         From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
2505         * config/pa/tm-hppa.h: Remove trigraph.
2506         * hp-symtab-read.c (hpread_type_translate): Provide return value.
2507         (hpread_read_struct_type): Remove trigraph. Add parameter in
2508         `warning'.
2509         (hpread_read_array_type): Provide return value.
2510         (hpread_type_lookup): Avoid ambiguous `else'. Provide return
2511         value.
2512         * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
2513         trigraph.
2514
2515 2001-05-11  Jim Blandy  <jimb@redhat.com>
2516
2517         * mips-tdep.c (mips_store_return_value,
2518         mips_extract_return_value): Pass arguments to
2519         return_value_location in the proper order.
2520
2521 2001-05-11  Andrew Cagney  <ac131313@redhat.com>
2522
2523         * Makefile.in (VERSION): Delete.  Moved to file ``version.in''.
2524         (version.c): Depends on file ``version.in''.  Extract version
2525         number from ``version.in'' file.
2526         (clean mostlyclean): Update.
2527         * version.in: New file.
2528         * NEWS: Update.
2529         
2530 2001-05-11  Kevin Buettner  <kevinb@redhat.com>
2531
2532         * breakpoint.c (set_raw_breakpoint): Add new parameter
2533         representing the breakpoint's type.  Adjust all callers.
2534         (create_longjmp_breakpoint, create_temp_exception_breakpoint)
2535         (create_thread_event_breakpoint): Don't test for zero return
2536         value from set_raw_breakpoint().  It can never be zero.
2537         (create_exception_catchpoint, watch_command_1): Move logic
2538         which calculates the breakpoint type prior to the call to
2539         set_raw_breakpoint().
2540
2541 2001-05-11  Fernando Nasser  <fnasser@redhat.com>
2542
2543         * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
2544         (hardwire_setbaudrate): Set errno to EINVAL and return with error
2545         if the conversion of the baud rate to code fails.
2546
2547 2001-05-10  Andrew Cagney  <ac131313@redhat.com>
2548
2549         * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
2550         * ui-out.c (struct ui_out_end_cleanup_data): Define.
2551         (do_cleanup_end): New function.  Replace do_list_end.
2552         (make_cleanup_ui_out_end): New function.
2553         (make_cleanup_ui_out_begin_end): New function.
2554         (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
2555
2556 2001-05-10  Elena Zannoni  <ezannoni@redhat.com>
2557
2558         * MAINTAINERS: Declare xcoffread.c open to all maintainers,
2559         and make Kevin Buettner (kevinb@redhat.com) the reference person.
2560
2561 2001-05-10  Elena Zannoni  <ezannoni@redhat.com>
2562
2563         * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
2564
2565 2001-05-10  Fernando Nasser  <fnasser@redhat.com>
2566
2567         * MAINTAINERS: Add testsuite subdirectory co-maintainers.
2568
2569 Thu May 10 16:26:47 2001  Andrew Cagney  <cagney@b1.cygnus.com>
2570
2571         * Makefile.in (mi-main.o): Compile with -Werror.
2572
2573 2001-05-10  Michael Snyder  <msnyder@redhat.com>
2574
2575         * remote.c (remote_open_1): Call no_shared_libraries, so that
2576         symbols for shared libraries can be reloaded per session.
2577         (remote_async_open_1): Ditto.
2578         * remote.c (bin2hex, hex2bin): New functions.  Factor out these
2579         two conversions which are coded for repeatedly in this module.
2580         (remote_threads_extra_info, remote_wait, remote_async_wait, 
2581         store_register_using_P, remote_store_registers, remote_write_bytes,
2582         remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
2583         of coding the conversions inline.
2584         (fromhex): Not exported, change from extern to static.
2585
2586 2001-05-10  Andrew Cagney  <ac131313@redhat.com>
2587
2588         * arch-utils.c (initialize_current_architecture): Delete obsolete
2589         ``info architecture'' command.
2590         (info_architecture): Delete function.
2591
2592 2001-05-10  Andrew Cagney  <ac131313@redhat.com>
2593
2594         * TODO (5.1, 5.2): Update.
2595
2596 2001-05-09  Andrew Cagney  <ac131313@redhat.com>
2597
2598         * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
2599         stuff.
2600
2601 2001-05-10  Keith Seitz  <keiths@cygnus.com>
2602
2603         * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
2604         and gdbtk-stack.o.
2605         (SUBDIR_GDBTK_SRCS): Ditto for the sources.
2606         (gdbtk-bp.o): New rule.
2607         (gdbtk-register.o): New rule.
2608         (gdbtk-stack.o): New rule.
2609         (gdbtk-cmds.o): Update dependencies.
2610         (gdbtk.o): Ditto.
2611         (gdbtk-hooks.o): Ditto.
2612         (gdbtk-varobj.o): Ditto.
2613
2614 2001-05-10  Fernando Nasser  <fnasser@redhat.com>
2615
2616         * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
2617         variables, not just unregister them.
2618
2619 2001-05-10  Fernando Nasser  <fnasser@redhat.com>
2620
2621         * varobj.c (c_number_of_children): Check for target type of void*,
2622         not the target type name.  Allow dereferencing char*.
2623
2624 2001-05-10  Fernando Nasser  <fnasser@redhat.com>
2625
2626         * symfile.c (symbol_file_add_main_1): New static function. 
2627         Passes the flags arguments to  symbol_file_add() and takes care
2628         of any necessary reinitializations.
2629         (symbol_file_command): Call symbol_file_add_main_1() instead of
2630         symbol_file_add().  
2631         (symbol_file_add_main): Ditto.
2632
2633 2001-05-09  Kevin Buettner  <kevinb@redhat.com>
2634
2635         * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
2636         string change in 2001-05-03 changes.
2637         (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
2638         changes.
2639
2640 2001-05-09  Kevin Buettner  <kevinb@redhat.com>
2641
2642         * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
2643         component from inferior_ptid.
2644         (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
2645         ptid.
2646
2647 2001-05-09  Elena Zannoni  <ezannoni@redhat.com>
2648
2649         * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
2650         conditional for help with connections through parallel ports,
2651         given that the actual code for downloading through a parallel port
2652         is not conditionalized.
2653
2654         * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
2655         unmaintaned, and probably on its way to obsolescence.
2656         
2657 2001-05-09  Mark Kettenis  <kettenis@gnu.org>
2658
2659         * i386-tdep.c (i386_frame_saved_pc): New function.
2660         * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
2661         i386_frame_saved_pc.
2662         (i386_frame_saved_pc): New prototype.
2663
2664         * i386-tdep.c (i386_register_virtual_type): New function.
2665         (i386_register_convertible): New function.
2666         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
2667         of i386_register_virtual_type.
2668         (REGISTER_CONVERTIBLE): Redefine in terms of
2669         i386_register_convertible.
2670         (i386_register_virtual_type, i386_register_convertible): New
2671         prototypes.
2672
2673 2001-05-08  Jim Blandy  <jimb@redhat.com>
2674
2675         * Makefile.in (mn10300-tdep.o): New rule.
2676
2677         * Makefile.in (gdb_string_h): Define.  Use it throughout.
2678         Some rules were already using this, even though it isn't defined.
2679
2680         * Makefile.in (obstack_h, target_h): Define; these are already
2681         used elsewhere, but have been expanding to the empty string.
2682         (memattr_h): Define; needed by target_h.
2683
2684         * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
2685         static.  (This was accidentally omitted from the earlier patch.)
2686         
2687         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
2688         (mn10300_gdbarch_init): Register it as the architecture's
2689         dwarf2_reg_to_regnum method.
2690
2691         Correct and expand handling of `movm' instruction, and register
2692         saves in general.
2693         * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
2694         MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
2695         (enum movm_register_bits): New enum.
2696         * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
2697         bits, not hex literals.  Handle the `other', `exreg0', and
2698         `exother' bits.  Correct handling of `exreg1': it saves r4, r5,
2699         r6, and r7, not r2, r3, r4, and r5.
2700         (saved_regs_size): New function.
2701         (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
2702         of computing the same thing inline, incorrectly.
2703
2704         * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
2705         dummy_breakpoint_offset; it's zero.
2706
2707         * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
2708         stuff out into mn10300_pop_frame_regular, and use
2709         generic_pop_current_frame.  This lets us share code, and also
2710         makes this function's prototype match that expected by gdbarch.
2711         Make this function static.
2712         (mn10300_pop_frame_regular): New function.
2713         (mn10300_gdbarch_init): Register mn10300_pop_frame as the
2714         gdbarch's pop_frame method.
2715         * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
2716         (mn10300_pop_frame): Delete declaration.
2717
2718         * mn10300-tdep.c (mn10300_saved_pc_after_call,
2719         mn10300_extract_return_value,
2720         mn10300_extract_struct_value_address, mn10300_store_return_value,
2721         mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
2722         mn10300_frame_chain, mn10300_skip_prologue,
2723         mn10300_push_arguments, mn10300_push_return_address,
2724         mn10300_store_struct_return, mn10300_frame_saved_pc,
2725         mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
2726         Make these functions static; they should only be visible to the
2727         outside world as gdbarch methods.
2728
2729         * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
2730         unused declaration.
2731         
2732         * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
2733         in some rational order.
2734
2735         * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
2736         generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
2737
2738         Use gdbarch for most target parameters for the MN10300, rather
2739         than the tm-*.h file.
2740         * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
2741         REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
2742         FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
2743         SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
2744         FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
2745         EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
2746         STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
2747         FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2748         FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
2749         CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2750         CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
2751         TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2752         SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
2753         REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
2754         Delete definitions.  We register gdbarch methods for these now.
2755         (struct frame_info, struct type, struct value): Delete forward
2756         declarations of these types; they're no longer necessary, since we
2757         don't have function declarations here any more.
2758         * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
2759         some default gdbarch methods.
2760         (mn10300_store_struct_return): Return void, as expected by
2761         gdbarch.
2762         (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
2763         as expected by gdbarch.
2764         (mn10300_frame_init_saved_regs): Provide dummy definition for
2765         this, as required by gdbarch.
2766         (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
2767         by gdbarch.  Register gdbarch methods or values for all the stuff
2768         removed from tm-10300.h, listed above.
2769
2770 2001-05-08  Andrew Cagney  <ac131313@redhat.com>
2771
2772         * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
2773         cli_list_end.
2774         (cli_ui_out_impl): Update.
2775
2776         * ui-out.c (default_begin, default_end): Replace
2777         default_list_begin and default_list_end.
2778         (default_ui_out_impl): Update.
2779         (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
2780         (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
2781         ui_out_list_end.
2782         (ui_out_list_begin, ui_out_list_end): New.  Compatibility
2783         functions.
2784         (struct ui_out_level): Add field type.
2785         (push_level, pop_level): Update.  Add type parameter.
2786
2787         * ui-out.h (enum ui_out_type): Declare.
2788         (ui_out_begin, ui_out_end): Declare.
2789         (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
2790         and list_end_ftype.
2791         (struct ui_out_impl): Update.
2792
2793 2001-05-07  Andrew Cagney  <ac131313@redhat.com>
2794
2795         * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
2796         ``list_flag'' to ``depth''.
2797         * ui-out.c (default_list_begin, default_list_end): Update.
2798         (uo_list_begin, uo_list_end): Update.
2799         (MAX_UI_OUT_LEVELS): Define.
2800         (struct ui_out_level): Define.
2801         (top-level): Include "gdb_assert.h".
2802         (struct ui_out): Add fields ``level'' and ``levels''.  Delete
2803         fields ``list_flag'' and ``field_count''.
2804         (ui_out_new): Update.
2805         (verify_field_proper_position): Update.
2806         (current_level, push_level, pop_level): New functions.
2807         (ui_out_list_begin): Use push_level.
2808         (ui_out_list_end): Use pop_level.
2809         (ui_out_field_int): Use current_level.
2810         (ui_out_field_skip): Ditto.
2811         (ui_out_field_fmt): Ditto.
2812
2813 2001-05-08  Michael Snyder  <msnyder@redhat.com>
2814
2815         * language.c (longest_local_hex_string_custom): Strlen test is 
2816         inverted -- reverse the sense of the test.
2817
2818 2001-05-08  Mark Kettenis  <kettenis@gnu.org>
2819
2820         * config/i386/tm-i386v.h (struct frame_info, struct
2821         frame_saved_regs):  Remove declarations.
2822         (i386_frame_num_args): Remove prototype.
2823
2824 2001-05-07  Andrew Cagney  <ac131313@redhat.com>
2825
2826         * MAINTAINERS: I'm no longer actively maintaining the mn10300
2827         target.
2828
2829 2001-05-04  Andrew Cagney  <ac131313@redhat.com>
2830  
2831         * main.c (captured_main): Delete #ifndef _WIN32 conditional for
2832         WinGDB.
2833  
2834 2001-05-06  Kevin Buettner  <kevinb@redhat.com>
2835
2836         * inferior.h (save_inferior_ptid): Declare.
2837         * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
2838
2839         * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
2840         Delete these functions.
2841         * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
2842         * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
2843         * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
2844         Likewise.
2845         * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
2846         Likewise.
2847         * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
2848         * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
2849
2850         * somsolib.c (reset_inferior_ptid): Delete.
2851         (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
2852         build the cleanup struct.
2853
2854         * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
2855         a cleanup to save/restore inferior_ptid.
2856
2857 2001-05-06  Mark Kettenis  <kettenis@gnu.org>
2858
2859         Implement attach/detach for multi-threaded programs on Linux.
2860         * thread-db.c (keep_thread_db): Adjust comment.
2861         (deactivate_target): Removed.
2862         (thread_db_new_objfile): Don't call deactivate_target.  Implement
2863         guts of deactivate_target inline instead.
2864         (attach_thread): Call ATTACH_LWP unconditionally if defined.
2865         (thread_db_attach): New function.
2866         (thread_db_detach): Don't call deactivate_target.  Do necessary
2867         cleanup inline instead.  Set inferior_ptid to LWP corresponding to
2868         the current user-level thread.
2869         (thread_db_kill): Set inferior_ptid to LWP corresponding to the
2870         current user-level thread.
2871         (thread_db_create_inferior): Deactivate target vector if
2872         KEEP_THREAD_DB is zero.
2873         (thread_db_mourn_inferior): Don't call deactivate_target.  Do
2874         necessary cleanup inline instead.
2875         (init_thread_db_ops): Initialize to_attach field to
2876         thread_db_attach.
2877         * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
2878         (stop_wait_callback): Add prototype.
2879         (init_lwp_list): Add comment about when to re-initialize the LWP
2880         list.
2881         (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
2882         Avoid adding publicates to the LWP list.  Only mark an LWP as
2883         signalled if it doesn't correspond to a cloned process.
2884         (lin_lwp_attach): Add initial process to the LWP list.  Make sure
2885         it's stopped and fake a SIGSTOP.
2886         (detach_callback): New function.
2887         (lin_lwp_detach): Implement.
2888         (lin_lwp_create_inferior): Don't re-initialize LWP list here.
2889         Call child_ops.to_create_inferior directly instead of via
2890         target_beneath local.
2891         (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
2892         directly instead of via target_beneath local.
2893
2894 2001-05-06  Eli Zaretskii  <eliz@is.elta.co.il>
2895
2896         * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
2897         instead of non-portable search for `/'.  Use FILENAME_CMP instead
2898         of STREQ, to account for case-insensitive filesystems.
2899         (top-level): #include "filenames.h".
2900
2901 2001-05-05  Jim Blandy  <jimb@redhat.com>
2902
2903         * breakpoint.c (check_duplicates): Use the breakpoint's type, not
2904         its address, to decide whether it's a watchpoint or not.  Zero
2905         is a valid code address.
2906         (update_breakpoints_after_exec): Admonishing comments.
2907         * breakpoint.h (struct breakpoint): Doc fixes.
2908
2909         * breakpoint.c (check_duplicates): Take a breakpoint object as an
2910         argument, rather than an address and section.  All callers changed.
2911
2912 2001-05-03  Kevin Buettner  <kevinb@redhat.com>
2913
2914         * defs.h (ptid_t): New typedef.
2915         (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
2916
2917         * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
2918         blockframe.c, breakpoint.c, breakpoint.h,
2919         config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
2920         config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
2921         config/mips/nm-irix4.h, config/mips/nm-irix5.h,
2922         config/pa/nm-hppah.h, config/pa/tm-hppa.h,
2923         config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
2924         corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
2925         dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
2926         hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
2927         hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
2928         i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
2929         infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
2930         inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
2931         linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
2932         m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
2933         mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
2934         ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
2935         regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
2936         remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
2937         remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
2938         remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
2939         remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
2940         solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
2941         standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
2942         target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
2943         uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
2944         (inferior_pid):  Rename to inferior_ptid everywhere - even in
2945         comments and obsolete ports.  In cases where this variable
2946         really is supposed to be used as a process id, use PIDGET() to
2947         extract the process id component from inferior_ptid.  The
2948         other cases, either involving other variables whose types had
2949         to be changed or functions whose signatures had to changed
2950         are listed separately below.
2951
2952         * arm-linux-nat.c (get_thread_id): Change type of argument
2953         representing a combined process/thread id from ``int'' to
2954         ``ptid_t''.  Also change parameter name to ptid.
2955         * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
2956         * corelow.c (core_file_thread_alive): Likewise.
2957         * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
2958         * defs.h (*target_wait_hook): Likewise.
2959         * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
2960         (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
2961         * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
2962         (gnu_resume): Likewise.
2963         * go32-nat.c (go32_wait, go32_resume): Likewise.
2964         * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
2965         * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
2966         * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
2967         (hppa_pid_or_tid_to_str, child_post_startup_inferior)
2968         (child_thread_alive): Likewise.
2969         * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
2970         (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
2971         * i386-linux-nat.c (child_resume): Likewise.
2972         * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
2973         (store_debug_register, fetch_debug_register_pair)
2974         (store_debug_register_pair, ia64_linux_insert_watchpoint)
2975         (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
2976         Likewise.
2977         * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
2978         * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
2979         (generic_target_write_pc, ptrace_wait, child_resume)
2980         (get_last_target_status): Likewise.
2981         * infptrace.c (ptrace_wait, child_resume): Likewise.
2982         * inftarg.c (child_wait, child_post_wait, child_thread_live)
2983         (child_pid_to_str): Likewise.
2984         * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
2985         (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
2986         * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
2987         (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
2988         (lin_lwp_pid_to_str): Likewise.
2989         * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
2990         (thread_db_resume, thread_db_wait): Likewise.
2991         * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
2992         (linuxthreads_resume, linuxthreads_wait): Likewise.
2993         * lynx-nat.c (child_wait, child_thread_alive, child_resume)
2994         (child_pid_to_str): Likewise.
2995         * m3-nat.c (mach_really_wait, m3_resume): Likewise.
2996         * mac-nat.c (child_wait, child_resume): Likewise.
2997         * mips-tdep.c (mips_read_pc): Likewise.
2998         * monitor.c (monitor_wait, monitor_resume): Likewise.
2999         * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
3000         * ppc-bdm.c (bdm_ppc_wait): Likewise.
3001         * procfs.c (do_attach, procfs_wait, procfs_resume)
3002         (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
3003         (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
3004         (procfs_find_LDT_entry): Likewise.
3005         * regcache.c (read_register_pid, read_signed_register_pid)
3006         (write_register_pid, generic_target_read_pc, read_pc_pid)
3007         (generic_target_write_pc, write_pc_pid): Likewise.
3008         * regcache.h (read_register_pid, read_signed_register_pid)
3009         (write_register_pid): Likewise.
3010         * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
3011         * remote-array.c (array_wait, array_resume): Likewise.
3012         * remote-bug.c (bug_wait, bug_resume): Likewise.
3013         * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
3014         * remote-eb.c (eb_wait, eb_resume): Likewise.
3015         * remote-es.c (es1800_wait, es1800_resume): Likewise.
3016         * remote-mips.c (mips_wait, mips_resume): Likewise.
3017         * remote-mm.c (mm_wait, mm_resume): Likewise.
3018         * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
3019         * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
3020         * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
3021         * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
3022         * remote-sds.c (sds_wait, sds_resume): Likewise.
3023         * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
3024         * remote-st.c (st2000_wait, st2000_resume): Likewise.
3025         * remote-udi.c (udi_wait, udi_resume): Likewise.
3026         * remote-vx.c (vx_wait, vx_resume): Likewise.
3027         * remote.c (remote_current_thread, remote_resume, remote_wait)
3028         (remote_async_resume, remote_async_wait, remote_cisco_wait)
3029         (remote_thread_alive): Likewise.
3030         * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
3031         (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
3032         (solaris_pid_to_str): Likewise.
3033         * symm-nat.c (child_wait, child_resume): Likewise.
3034         * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
3035         (debug_to_notice_signals, debug_to_thread_alive)
3036         (normal_target_post_startup_inferior, normal_pid_to_str)
3037         (debug_to_post_startup_inferior): Likewise.
3038         * target.h (to_resume, to_wait, to_post_wait)
3039         (to_post_startup_inferior, to_notice_signals, to_thread_alive)
3040         (to_pid_to_str [all in struct target_ops]): Likewise.
3041         (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
3042         * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
3043         (attach_thread, detach_thread, thread_db_resume, check_event)
3044         (thread_db_post_startup_inferior, thread_db_thread_alive)
3045         (thread_db_pid_to_str): Likewise.
3046         * thread.c (add_thread, delete_thread, find_thread_pid)
3047         (pid_to_thread_id, in_thread_list, load_infrun_state)
3048         (save_infrun_state, switch_to_thread, restore_current_thread)
3049         (make_cleanup_restore_current_thread): Likewise.
3050         * top.c (target_wait_hook): Likewise.
3051         * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
3052         (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
3053         (uw_thread_pid_to_str): Likewise.
3054         * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
3055         * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
3056         (cywin_pid_to_str): Likewise.
3057         * wince.c (child_wait, child_resume, win32_child_thread_alive):
3058         Likewise.
3059         * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
3060         * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
3061         * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
3062         * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
3063         * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
3064         * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
3065         (procfs_set_watchpoint): Likewise.
3066         * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
3067         * config/i386/nm-ptx4.h (child_wait): Likewise.
3068         * config/i386/nm-symmetry.h (child_wait): Likewise.
3069         * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
3070         * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
3071         (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
3072         (lin_lwp_attach_lwp): Likewise.
3073         * config/mips/nm-irix4.h, config/mips/nm-irix5.h
3074         (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
3075         * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
3076         (hppa_pid_or_tid_to_str): Likewise.
3077         * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
3078         * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
3079         * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
3080         (procfs_set_watchpoint): Likewise.
3081
3082         * gdbthread.h (thread_id_to_pid): Change return type which
3083         represents a combined process/thread id from ``int'' to
3084         ``ptid_t''.
3085         * gnu-nat.c (gnu_wait): Likewise.
3086         * go32-nat.c (go32_wait): Likewise.
3087         * hpux-thread.c (hpux_thread_wait): Likewise.
3088         * inferior.h (procfs_first_available): Likewise.
3089         * inftarg.c (child_wait): Likewise.
3090         * infttrace.c (ptrace_wait): Likewise.
3091         * lin-lwp.c (lin_lwp_wait): Likewise.
3092         * lin-thread.c (thread_db_wait): Likewise.
3093         * linux-thread.c (linuxthreads_wait): Likewise.
3094         * lynx-nat.c (child_wait): Likewise.
3095         * m3-nat.c (mach_really_wait): Likewise.
3096         * mac-nat.c (child_wait): Likewise.
3097         * monitor.c (monitor_wait): Likewise.
3098         * ppc-bdm.c (bdm_ppc_wait): Likewise.
3099         * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
3100         * remote-adapt.c (adapt_wait): Likewise.
3101         * remote-array.c (array_wait): Likewise.
3102         * remote-bug.c (bug_wait): Likewise.
3103         * remote-e7000.c (e7000_wait): Likewise.
3104         * remote-eb.c (eb_wait): Likewise.
3105         * remote-es.c (es1800_wait): Likewise.
3106         * remote-mips.c (mips_wait): Likewise.
3107         * remote-mm.c (mm_wait): Likewise.
3108         * remote-nindy.c (nindy_wait): Likewise.
3109         * remote-os9k (rombug_wait): Likewise.
3110         * remote-rdi.c (arm_rdi_wait): Likewise.
3111         * remote-rdp.c (remote_rdp_wait): Likewise.
3112         * remote-sds.c (sds_wait): Likewise.
3113         * remote-sim.c (gdbsim_wait): Likewise.
3114         * remote-st.c (st2000_wait): Likewise.
3115         * remote-udi.c (udi_wait): Likewise.
3116         * remote-vx.c (vx_wait): Likewise.
3117         * remote.c (remote_wait, remote_async_wait, remote_current_thread)
3118         (remote_cisco_wait): Likewise.
3119         * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
3120         Likewise.
3121         * symm-nat.c (child_wait): Likewise.
3122         * target.c (debug_to_wait): Likewise.
3123         * target.h (to_wait [in struct target_ops]): Likewise.
3124         * thread.c (thread_id_to_pid): Likewise.
3125         * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
3126         Likewise.
3127         * top.c (*target_wait_hook): Likewise.
3128         * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
3129         * v850ice.c (v850ice_wait): Likewise.
3130         * win32-nat.c (child_wait): Likewise.
3131         * wince.c (child_wait): Likewise.
3132         * config/nm-lynx.h (child_wait): Likewise.
3133         * config/i386/nm-ptx4.h (child_wait): Likewise.
3134         * config/i386/nm-symmetry.h (child_wait): Likewise.
3135
3136         * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
3137         to wait_ptid and change its type from ``int'' to ``ptid_t''.
3138         * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
3139         but rename saved_inferior_pid to saved_inferior_ptid.
3140         * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
3141         save_pid to save_ptid.
3142         * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
3143         * hppah-nat.c (child_pid_to_exec): Likewise, but rename
3144         saved_inferior_pid to saved_inferior_ptid.
3145         * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
3146         * infrun.c (previous_inferior_pid [static global]): Likewise,
3147         but rename to previous_inferior_ptid.
3148         (resume): Likewise, but rename resume_pid to resume_ptid.
3149         (struct execution_control_state): Likewise, but rename
3150         pid to ptid, saved_inferior_pid to saved_inferior_ptid,
3151         and waiton_pid to waiton_ptid.
3152         (target_last_wait_pid): Likewise, but rename to
3153         target_last_wait_ptid.
3154         * infttrace.c (saved_real_pid): Likewise, but rename to
3155         saved_real_ptid.
3156         (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
3157         to saved_inferior_ptid.
3158         * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
3159         (trap_ptid): Likewise, but renamed from trap_pid.
3160         * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
3161         to gdb_ptid.
3162         * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
3163         (thread_db_wait): Likewise, but rename ret_pid to retptid.
3164         * procfs.c (procfs_wait): Likewise, for retval whose name
3165         doesn't change.  Also, ``temp'' becomes two separate variables,
3166         one named temp_tid (an int) and the other temp_ptid.
3167         (procfs_notice_thread): Likewise (type change) for gdb_threadid
3168         whose name does not change.
3169         * regcache.c (registers_ptid): Likewise, but renamed from
3170         registers_pid.
3171         (read_register_pid, read_signed_register_pid, write_register_pid):
3172         Likewise, but rename save_pid to save_ptid.
3173         (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
3174         to saved_inferior_ptid.
3175         * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
3176         * sol-thread.c (struct ps_prochandle): Likewise.
3177         (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
3178         (sol_thread_wait): Likewise, for rtnval whose name does not
3179         change, and for save_pid which becomes save_ptid.
3180         (solaris_pid_to_str): Likewise for lwp whose name does not change.
3181         (sol_find_new_threads_callback): Likewise, for pid which becomes
3182         ptid.
3183         * target.h (target_resume, target_wait, target_post_wait)
3184         (target_post_startup_inferior, target_notice_signals)
3185         (target_thread_alive): Likewise.
3186         * thread.c (info_threads_command): Likewise, but rename
3187         current_pid to current_ptid.
3188         (struct current_thread_cleanup): Likewise, but rename field
3189         inferior_pid to inferior_ptid.
3190         * thread-db.c (find_new_threads_callback): Likewise, but rename
3191         pid to ptid.
3192         * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
3193         change.
3194         (lwp_to_tr): Likewise fo tid whose name remains unchanged.
3195         (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
3196         but rename pid to ptid.
3197         * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
3198         * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
3199         * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
3200         * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
3201         * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
3202         * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
3203
3204         * arch-utils.c (generic_prepare_to_proceed):  Test for the
3205         "zero" ptid by using ptid_equal() to test to see if variable
3206         in question is the same as null_ptid.  This replaces a direct
3207         test against zero.
3208         * cxux-nat.c (add_shared_symbol_files): Likewise.
3209         * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
3210         * infcmd.c (run_command): Likewise.
3211         * inflow.c (kill_command): Likewise.
3212         * infttrace.c (call_ttrace): Likewise.
3213         * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
3214         * lin-thread.c (thread_db_kill): Likewise.
3215         * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
3216         * remote-es.c (es1800_kill): Likewise.
3217         * sol-thread.c (sol_thread_create_inferior): Likewise.
3218         * solib.c (locate_base): Likewise.
3219         * target.c (nosupport_runtime): Likewise.
3220         * thread-db.c (thread_db_wait): Likewise.
3221         * top.c (quit_confirm, quit_force): Likewise.
3222         * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
3223
3224         * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
3225         Use ptid_equal to compare value of process/thread ids instead of
3226         ``=='' and ``!='' operators.
3227         lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
3228         (stop_wait_callback, lin_lwp_wait): Likewise.
3229         * procfs.c (procfs_wait): Likewise.
3230         * regcache.c (read_register_bytes, read_register_gen)
3231         (write_register_gen, read_register, read_register_pid)
3232         (read_signed_register, read_signed_register_pid, write_register)
3233         (write_register_pid, supply_register): Likewise.
3234         * remote-vx.c (vx_resume): Likewise.
3235         * sol-thread.c (sol_thread_wait): Likewise.
3236         * symm-nat.c (kill_inferior): Likewise.
3237         * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
3238         (in_thread_list, info_threads_command, switch_to_thread)
3239         (restore_current_thread): Likewise.
3240         * uw-thread (libtread_stub): Likewise.
3241
3242         * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
3243
3244         * corelow.c (add_to_thread_list): Convert argument in add_thread()
3245         call to a ptid_t.
3246         * gnu-nat.c (inf_validate_procs): Likewise.
3247         * linux-thread.c (stop_thread, update_stop_threads): Likewise.
3248         * remote.c (record_currthread, remote_threads_info): Likewise.
3249         * win32-nat.c (child_add_thread): Likewise.
3250
3251         * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
3252         respectively, to save_inferior_ptid() and restore_inferior_ptid().
3253         Adjust implementations to operate on ``ptid_t'' instead of ``int''.
3254         * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
3255         * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
3256         * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
3257         * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
3258         * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
3259         * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
3260
3261         * infrun.c (RESUME_ALL): New macro representing the -1 ptid
3262         to be passed to target_resume() when all threads should resume.
3263         (resume): Set resume_ptid to RESUME_ALL rather than -1.
3264         (handle_inferior_event): Invoke target_resume() with RESUME_ALL
3265         instead of -1.
3266         * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
3267         a ptid_t in target_resume() call.
3268         * osfsolib.c (solib_create_inferior_hook): Likewise.
3269         * solib-svr4.c (solib_create_inferior_hook): Likewise.
3270
3271         * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
3272         PIDGET0.  Define new PIDGET macro which uses PIDGET0, the only
3273         difference being that the 0xffff pattern will be interpreted
3274         as -1.
3275         * lin-thread.c (PIDGET, PIDGET0): Likewise.
3276         * thread-db.c (PIDGET, PIDGET0): Likewise.
3277         * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
3278         * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
3279         * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
3280         * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
3281
3282         * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
3283         mach_really_wait rather than mach_really__wait.
3284         * lin-thread.c (check_for_thread_event): Fix warning; make function
3285         actually return a value.
3286
3287         * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
3288         ``pid'' arguments from ``int'' to ``ptid_t''.  Also renamed
3289         pid to ptid.
3290         * gdbarch.h, gdbarch.c: Regenerated.
3291
3292 2001-05-03  Jonathan Larmour  <jlarmour@redhat.com>
3293
3294         * rdi-share/devsw.c: Include <time.h> for struct tm
3295
3296 2001-05-03  Eli Zaretskii  <eliz@is.elta.co.il>
3297
3298         * config/djgpp/fnchange.lst: Add mappings for the new
3299         opcodes/openrisc-* files.
3300
3301 2001-05-01  Michael Snyder  <msnyder@redhat.com>
3302
3303         * lin-lwp.c: Change printf to fprintf_unfiltered.
3304         * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
3305
3306 2001-05-01  Nicholas Duffek  <nsd@redhat.com>
3307
3308         * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
3309         (rs6000_in_solib_return_trampoline): Declare.
3310         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
3311         function.
3312         (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
3313         * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
3314         check after the CSECT check rather than before it.  Allocate
3315         separate symtabs for CSECTs whose names begin with '@'.
3316         (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
3317         Activate the misc_func_recorded mechanism for whose names begin
3318         with '@'.
3319
3320 2001-04-30  J.T. Conklin  <jtc@redback.com>
3321
3322         * ppcnbsd-nat.c (fetch_inferior_registers)
3323         (store_inferior_registers, fetch_core_registers): Changed to use
3324         fpreg[] instead of r_regs[] to access floating point registers.
3325
3326 2001-04-30  Elena Zannoni  <ezannoni@redhat.com>
3327
3328         * sh-tdep.c: Get rid of the function prototypes.
3329         (sh_sh4_build_float_register_type): Move earlier in file.
3330         (fv_reg_base_num): Ditto.
3331         (dr_reg_base_num): Ditto.
3332
3333 2001-04-30  Michael Snyder  <msnyder@redhat.com>
3334
3335         * thread-db.c: Revert 2001-04-26 change for debugging output.
3336         * lin-lwp.c: Ditto.
3337         * lin-lwp.c: Add set/show debug lin-lwp command.  Use this
3338         command to turn extra debugging output on / off.
3339
3340 2001-04-30  Eli Zaretskii  <eliz@is.elta.co.il>
3341
3342         * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
3343         (top-level): #include filenames.h.
3344
3345         * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
3346         FILENAME_CMP, to DTRT on non-Posix platforms.
3347         (top-level): #include filenames.h.
3348
3349
3350 2001-04-27  Andrew Cagney  <ac131313@redhat.com>
3351
3352         * gdbtypes.c (check_stub_method): Always initialize ``p''.
3353
3354 2001-04-27  Andrew Cagney  <ac131313@redhat.com>
3355
3356         * configure.host: Delete romp host.
3357         * TODO: Update.
3358
3359 2001-04-27  Andrew Cagney  <ac131313@redhat.com>
3360
3361         * TODO: Updates to 5.1.  No more targets to obsolete.
3362
3363 2001-04-27  Don Howard  <dhoward@redhat.com>
3364
3365         (Changes from Kevin Buettner, with minor update by Don Howard.)
3366         
3367         * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
3368         typos in which hexadecimal constants were really intended to be
3369         binary constants.
3370         (i387_tag): Swap logic regarding zero vs non-zero exponents.
3371         * MAINTAINERS (Misc): Added myself to the write-after-approval
3372         list.
3373
3374 2001-04-26  Jim Blandy  <jimb@redhat.com>
3375
3376         (Changes from Daniel Berlin, with revisions by Jim Blandy.)
3377         
3378         Abstract out operations specific to particular C++ ABI's, and
3379         invoke them through a function table.  This removes the C++ ABI
3380         dependencies scattered throughout the code, and allows us to
3381         cleanly add support for new C++ ABI's.
3382         * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
3383         * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
3384         jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
3385         #include "cp-abi.h".  These files all use functions now declared
3386         there.
3387         * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
3388         Deleted.  These services are now provided by functions declared in
3389         cp-abi.h.
3390         * value.h (value_rtti_type, value_virtual_fn_field): Same.
3391         * values.c (value_virtual_fn_field): Same, for this definition.
3392         * valops.c (value_rtti_type): Same.     
3393         * c-typeprint.c (c_type_print_base): Use the functions from
3394         "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
3395         tests.
3396         * dbxread.c (record_minimal_symbol): Same.
3397         * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
3398         virtual_base_index_skip_primaries): Same.
3399         * jv-typeprint.c (java_type_print_base): Same.
3400         * linespec.c (find_methods, decode_line_1): Same.
3401         * symtab.c (gdb_mangle_name): Same.
3402         * Makefile.in (SFILES): Add the new .c files mentioned above.
3403         (cp_abi_h): New variable.
3404         (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
3405         (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
3406         (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
3407         jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
3408         dependency on $(cp_abi_h).
3409
3410 2001-04-26  Michael Snyder  <msnyder@redhat.com>
3411
3412         * thread-db.c (_initialize_thread_db): Add set/show command
3413         "debug-linux-threads" for debugging output.
3414         * lin-lwp.c (various): Use global "debug_linux_threads to 
3415         turn on extra debugging output.
3416         * lin-lwp.c: Minor cleanups in comments.
3417         * target.c (normal_pid_to_str): Get rid of an ancient hack.
3418         * remote.c (remote_pid_to_str): New function for remote target.
3419
3420 2001-04-24  Jim Blandy  <jimb@redhat.com>
3421
3422         * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
3423         qualifier on C++ references; all references are innately const.
3424
3425 2001-04-20  Mark Kettenis  <kettenis@gnu.org>
3426
3427         * event-top.h: Fix formatting.
3428
3429 2001-04-17  Andrew Cagney  <ac131313@redhat.com>
3430
3431         * source.c (openp): Obsolete #ifdef MPW code.
3432         (open_source_file): Ditto.
3433         * event-top.c (display_gdb_prompt): Ditto.
3434         * utils.c (query): Ditto.
3435         (init_page_info): Ditto.
3436         (init_page_info): Delete #ifndef MPW.
3437         * top.c (gdb_readline): Ditto.
3438         * mac-xdep.c: Obsolete.
3439         * mac-gdb.r: Obsolete.
3440         * config/powerpc/xm-mpw.h: Obsolete.
3441         * config/xm-mpw.h: Obsolete.
3442         * mpw-make.sed: Obsolete.
3443         * mpw-config.in: Obsolete.
3444         * TODO: Update
3445         * NEWS: Update
3446
3447 2001-04-19  Mark Kettenis  <kettenis@gnu.org>
3448
3449         * i386-tdep.c (i386_frameless_function_invocation): New function.
3450         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
3451         in terms of i386_frameless_function_invocation.  Adjust comment.
3452         (i386_frameless_function_invocation): New prototype.
3453
3454 2001-04-18  Martin M. Hunt  <hunt@redhat.com>
3455
3456         * top.c (gdb_init): Don't call cli_out_new() to
3457         create global uiout if init_ui_hook is set.  uiout will
3458         have to be initialized there.
3459
3460 2001-04-18  Andrew Cagney  <ac131313@redhat.com>
3461
3462         * arch-utils.c: Include "regcache.h".
3463
3464 2001-04-18  Mark Kettenis  <kettenis@gnu.org>
3465
3466         * i386-tdep.c (i386_saved_pc_after_call): New function.
3467         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
3468         of i386_saved_pc_after_call.
3469         (i386_saved_pc_after_call): New prototype.
3470
3471 2001-04-17  Michael Snyder  <msnyder@redhat.com>
3472
3473         * i386-nat.c: Fix typo in comment.
3474         * solib.c (no_shared_libraries): New function.  Discard all symbols
3475         from shared libraries.
3476         (_initialize_solib): Add command "nosharedlibrary" as complement
3477         to the command "sharedlibrary".  Unloads symbols for all solibs.
3478
3479 2001-04-16  Andrew Cagney  <ac131313@redhat.com>
3480
3481         * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
3482         * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
3483         (m68*-est-*, m68*-sony-*, m68*-isi-*):
3484         * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
3485         * config/m68k/xm-news.h: Obsolete.
3486         * config/m68k/tm-news.h: 
3487         * config/m68k/xm-news1000.h: Obsolete.
3488         * config/m68k/news.mh: Obsolete.
3489         * config/m68k/news.mt: Obsolete.
3490         * config/m68k/nm-news.h: Obsolete.
3491         * config/m68k/news1000.mh: Obsolete.
3492         * news-xdep.c: Obsolete.
3493         * Makefile.in (isi-xdep.o): Obsolete.
3494         (ALLDEPFILES): Delete isi-xdep.c.
3495         (tm-isi.h): Obsolete.
3496         * m68k-tdep.c (altos_skip_prologue): Update comments.
3497         (isi_skip_prologue): Obsolete.
3498         * isi-xdep.c: Obsolete.
3499         * config/m68k/xm-isi.h: Obsolete.
3500         * config/m68k/isi.mh: Obsolete.
3501         * config/m68k/tm-isi.h: Obsolete.
3502         * config/m68k/isi.mt: Obsolete.
3503
3504         * TODO: Update.
3505         * NEWS: Update.
3506
3507 2001-04-17  Michael Snyder  <msnyder@redhat.com>
3508         
3509         * remote.c (remote_open_1): On opening the remote target, activate
3510         the solib_create_inferior_hook, so that it can detect when the
3511         target loads shared libraries.
3512         (remote_async_open_1): Ditto.
3513
3514 2001-04-17  Michael Snyder  <msnyder@redhat.com>
3515         
3516         * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
3517         * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
3518         * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
3519         * testsuite/gdb.trace/infotrace.exp: Ditto.
3520         * testsuite/gdb.trace/passcount.exp: Ditto.
3521         * testsuite/gdb.trace/while-stepping.exp: Ditto.
3522
3523 2001-04-17  Michael Snyder  <msnyder@redhat.com>
3524
3525         * thread-db.c (check_thread_signals): When looping over all
3526         signals, ignore signal zero.
3527         (disable_thread_signals): Ditto.
3528
3529 2001-04-17  Eirik Fuller <eirik@netapp.com>
3530
3531         * thread.c (do_captured_thread_select): Allow the argument to the
3532         thread command to be an expression rather than a literal integer.
3533
3534 2001-04-17  Mark Kettenis  <kettenis@gnu.org>
3535
3536         * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
3537         read_memory_unsigned_integer instead of read_memory_integer.
3538
3539 2001-04-16  Kevin Buettner  <kevinb@redhat.com>
3540
3541         * solib-aix5.c (map_index_vs_section_name_okay): New function.
3542         (aix5_relocate_main_executable): Don't use file offsets for
3543         determining corresponding sections and map file entries.  Call
3544         map_index_vs_section_name_okay() to do this instead.
3545
3546 2001-04-16  Kevin Buettner  <kevinb@redhat.com>
3547
3548         * procfs.c (open_with_retry): New function.
3549         (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
3550         (proc_get_LDT_entry): Call open_with_retry() instead of open().
3551
3552 2001-04-16  Kevin Buettner  <kevinb@redhat.com>
3553
3554         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
3555         comparison against TRAP_HWBKPT constant yet again to account
3556         for the various values used by different kernel versions.
3557
3558 2001-04-16  Daniel Berlin  <dan@cgsoftware.com>
3559
3560         * demangle.c (_initialize_demangler): Use xcalloc on the
3561         demangling_style_names, and make it a null terminated array of
3562         names, to avoid a crash.
3563
3564 2001-04-16  Mark Kettenis  <kettenis@gnu.org>
3565
3566         * i386-tdep.c (i386_frame_chain): New function.
3567         * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
3568         i386_frame_chain.
3569         (i386_frame_chain): New prototype.
3570
3571 2001-04-14  J.T. Conklin  <jtc@redback.com>
3572         
3573         * target.h (target_ops): Removed to_core_file_to_sym_file vector
3574         function.
3575         * corelow.c (core_ops): Updated for above change.
3576         * gnu-nat.c (core_ops): Likewise.
3577         * inftarg.c (child_ops): Likewise.
3578         * monitor.c (monitor_ops): Likewise.
3579         * ppc-bdm.c (bdm_ppc_ops): Likewise.
3580         * remote-adapt.c (adapt_ops): Likewise.
3581         * remote-bug.c (bug_ops): Likewise.
3582         * remote-e7000.c (e7000_ops): Likewise.
3583         * remote-eb.c (eb_ops): Likewise.
3584         * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
3585         * remote-mm.c (mm_ops): Likewise.
3586         * remote-nindy.c (nindy_ops): Likewise.
3587         * remote-nrom.c (nrom_ops): Likewise.
3588         * remote-os9k.c (rombug_ops): Likewise.
3589         * remote-rdp.c (remote_rdp_ops): Likewise.
3590         * remote-sim.c (gdbsim_ops): Likewise.
3591         * remote-st.c (st2000_ops): Likewise.
3592         * v850ice.c (v850ice_ops): Likewise.
3593         * target.c (cleanup_target): Likewise
3594         (update_current_target): Likewise.
3595         (setup_target_debug): Likewise
3596         (debug_to_core_file_to_sym_file): Removed.
3597
3598         * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
3599         sets symbol file from information obtained from the core file.
3600         * corelow.c (core_file_to_sym_file): Removed.
3601         
3602 2001-04-13  Fernando Nasser  <fnasser@redhat.com>
3603
3604         From  Adam Mirowski  <Adam.Mirowski@Sun.COM>
3605         Fixed Insight on Solaris. It was not possible to debug a process
3606         because of EINTR "errors".
3607         * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
3608         with EINTR, retry the call.
3609
3610 2001-04-12  Kevin Buettner  <kevinb@redhat.com>
3611
3612         * solib-aix5.c (enum maptype): Delete.
3613         (struct lm_info): Add new member ``nmappings''.  Make ``mapping''
3614         member a pointer instead of a statically sized array.
3615         (build_so_list_from_mapfile): Dynamically allocate ``mapping''
3616         array.
3617         (aix5_relocate_main_executable, aix5_relocate_section_addresses,
3618         aix5_find_global_pointer): Search for correct mapping to use
3619         based on file offset instead of knowledge of whether the section
3620         is read-only or read/write.
3621         (aix5_find_gate_addresses): Use the first mapping instead of
3622         the (now defunct) MT_READONLY mapping.
3623
3624 2001-04-12  Nicholas Duffek  <nsd@redhat.com>
3625
3626         * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
3627         "@".
3628
3629 2001-04-12  Kevin Buettner  <kevinb@redhat.com>
3630
3631         * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
3632
3633 2001-04-09  Andrew Cagney  <ac131313@redhat.com>
3634
3635         Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
3636         * config/i386/sun386.mh: Obsolete.
3637         * config/i386/sun386.mt: Obsolete.
3638         * config/i386/xm-sun386.h: Obsolete.
3639         * config/i386/tm-sun386.h: Obsolete.
3640         * config/i386/nm-sun386.h: Obsolete.
3641         * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
3642         (sun386-nat.o): Target is obsolete.
3643         * sun386-nat.c: Obsolete.
3644         * configure.tgt (i[3456]86-*-sunos*): Obsolete.
3645         * configure.host (i[3456]86-*-sunos*): Obsolete.
3646         * NEWS: Update.
3647         * TODO: Update.
3648
3649 2001-04-10  J.T. Conklin  <jtc@redback.com>
3650
3651         * maint.c: Fix typo in comment.
3652
3653 2001-04-09  Keith Seitz  <keiths@cygnus.com>
3654
3655         * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
3656
3657 2001-04-08  Kevin Buettner  <kevinb@redhat.com>
3658
3659         * fork-child.c (fork_inferior, clone_and_follow_inferior): 
3660         Document fact that apparent call to vfork() might actually be
3661         a call to fork() instead.
3662         * ser-pipe.c (pipe_open): Likewise.
3663
3664 2001-04-08  Kevin Buettner  <kevinb@redhat.com>
3665
3666         * printcmd.c (print_frame_args): Use a cleanup to invoke
3667         ui_out_list_end() so that the list count nesting flag will
3668         be decremented properly when an error occurs.
3669         * stack.c (print_frame): Likewise.
3670
3671 2001-04-06  J.T. Conklin  <jtc@redback.com>
3672
3673         * dcache.c (dcache_write_line): Fixed bugs where cache line was
3674         not written to target correctly.
3675
3676         * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit 
3677         void return value;
3678         * gdbserver/low-nbsd.c: Likewise.
3679         * gdbserver/low-sparc.c: Likewise.
3680         * gdbserver/low-sun3.c: Likewise.
3681
3682 2001-04-06  Geoffrey Keating  <geoffk@redhat.com>
3683
3684         * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
3685         (PTRACE_DETACH): Don't define.
3686
3687 2001-04-06  David Smith  <dsmith@redhat.com>
3688
3689         * arch-utils.c (default_prepare_to_proceed)
3690         (generic_prepare_to_proceed): Added new functions.
3691         * arch-utils.h: New function declarations for
3692         default_prepare_to_proceed() and generic_prepare_to_proceed().
3693         * gdbarch.sh: Added PREPARE_TO_PROCEED.
3694         * gdbarch.c: Regenerated.
3695         * gdbarch.h: Regenerated.
3696         * inferior.h: Added get_last_target_status() declaration.
3697         * infrun.c (get_last_target_status): Added new function.
3698         (handle_inferior_event): Saves last pid and waitstatus, which will
3699         get returned by get_last_target_status(). 
3700
3701         * hppa-tdep.c (prepare_to_proceed):  Added comment stating that
3702         prepare_to_proceed() is potentially redundant since
3703         default_prepare_to_proceed() has been added.
3704         * linux-thread.c (prepare_to_proceed): Ditto.
3705         * lin-lwp.c (prepare_to_proceed): Ditto.
3706         * m3-nat.c (prepare_to_proceed): Ditto.
3707         
3708 2001-04-05  Andrew Cagney  <ac131313@redhat.com>
3709
3710         Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
3711         and powerpc-*-netware* target.
3712         * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
3713         Obsolete.
3714         * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
3715         (powerpcle-*-solaris*): Obsolete.
3716         * config/powerpc/tm-cygwin.h: Obsolete.
3717         * config/powerpc/cygwin.mt: Obsolete.
3718         * config/powerpc/xm-cygwin.h: Obsolete.
3719         * config/powerpc/cygwin.mh: Obsolete.
3720         * config/powerpc/nm-solaris.h: Obsolete.
3721         * config/powerpc/xm-solaris.h: Obsolete.
3722         * config/powerpc/tm-solaris.h: Obsolete.
3723         * config/powerpc/solaris.mt: Obsolete.
3724         * config/powerpc/tm-ppc-nw.h: Obsolete.
3725         * config/powerpc/ppc-nw.mt: Obsolete.
3726         * TODO: Update.
3727         * NEWS: Update.
3728
3729 2001-04-06  Fernando Nasser  <fnasser@redhat.com>
3730
3731         * buildsym.c (record_line): Turn off unused addr bits.
3732
3733 2001-04-06  Fernando Nasser  <fnasser@redhat.com>
3734
3735         From David Deephanphongs <deephan@telocity.com>
3736         * inferior.h:   Fix declarations of get_inferior_args and 
3737         set_inferior_args, which were missing the trailing 's'.
3738
3739 2001-04-05  Jeff Holcomb  <jeffh@redhat.com>
3740
3741         * monitor.c (monitor_supply_register): Only report an error if we
3742         don't get a valid value.
3743
3744 2001-04-05  Eli Zaretskii  <eliz@is.elta.co.il>
3745
3746         * README: Don't mention gdba.el.
3747
3748 2001-04-05  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
3749
3750         From  Jimmy Guo  <guo@cup.hp.com>
3751         * top.c (init_main): set prompt if annotation_level>1,
3752         this is necessary when annotation_level is set to 2 via
3753         --annotate=2 command line option.
3754
3755 2001-04-04  Andrew Cagney  <ac131313@redhat.com>
3756
3757         Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
3758         * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
3759         * configure.host (a29k-*-*): Obsolete.
3760         * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
3761         ultra3-xdep.c.
3762         (ultra3-nat.o, ultra3-xdep.o): Obsolete.
3763         * config/a29k/tm-ultra3.h: Obsolete.
3764         * config/a29k/ultra3.mt: Obsolete.
3765         * config/a29k/ultra3.mh: Obsolete.
3766         * config/a29k/nm-ultra3.h: Obsolete.
3767         * config/a29k/xm-ultra3.h: Obsolete.
3768         * ultra3-xdep.c: Obsolete.
3769         * ultra3-nat.c: Obsolete.
3770         * config/a29k/a29k-kern.mt: Obsolete.
3771         * NEWS: Update.
3772         * TODO: Update.
3773
3774 Wed Apr  4 21:48:42 2001  Christopher Faylor <cgf@cygnus.com>
3775
3776         * main.c: Remove windows.h use.
3777         (gdbtk_test): Use PATH_MAX for home var calculation.
3778         * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
3779         Win32 in colon test.
3780         * ser-tcp.c: Use modern __CYGWIN__ conditional.
3781         * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
3782         (openp): Ditto.
3783         * symfile.c (symfile_bfd_open): Ditto.
3784
3785 2001-04-04  Martin M. Hunt  <hunt@redhat.com>
3786
3787         * main.c (captured_main): For GDBtk, don't use tui_fileopen().
3788         Handle all stream setup in gdbtk_init
3789
3790 2001-04-04  Mark Kettenis  <kettenis@gnu.org>
3791
3792         * i386-tdep.c (i386_extract_return_value): Don't return the return
3793         value of a void function.
3794         (i386_store_return_value): Likewise.
3795
3796 2001-04-03  Andrew Cagney  <ac131313@redhat.com>
3797
3798         Obsolete w65-*-* target.
3799         * configure.tgt (w65-*-*): Obsolete.
3800         * config/w65/w65.mt: Obsolete.
3801         * config/w65/tm-w65.h: Obsolete.
3802         * w65-tdep.c: Obsolete.
3803         * NEWS: Update.  Fix TiC80 description.
3804         * TODO: Update.
3805
3806 2001-04-03  Andrew Cagney  <ac131313@redhat.com>
3807
3808         Obsolete tic80-*-* target.
3809         * configure.tgt (tic80-*-*): Obsolete.
3810         * config/tic80/tic80.mt: Obsolete.
3811         * config/tic80/tm-tic80.h: Obsolete.
3812         * tic80-tdep.c: Obsolete.
3813         * TODO: Update
3814         * NEWS: Update.
3815
3816 2001-04-02  J.T. Conklin  <jtc@redback.com>
3817
3818         * remote-mips.c (S_IROTH): Moved definition from here.
3819         * gdb_stat.h (S_IROTH): to here.
3820
3821         * remote.c (remote_protocol_e, remote_protocol_E): Define.
3822         (set_remote_protocol_e_packet_cmd)
3823         (set_remote_protocol_E_packet_cmd)
3824         (show_remote_protocol_e_packet_command)
3825         (show_remote_protocol_E_packet_command): New functions.
3826         (init_all_packet_configs): Initialize remote_protocol_e and
3827         remote_protocol_E.
3828         (remote_resume, remote_async_resume): Support e/E command
3829         packets.
3830         (show_remote_cmd): Show state of remote_protocol_e and 
3831         remote_protocol_E.
3832         (_initialize_remote): Add "set remote step-over-range-packet" 
3833         and "set remote step-over-range-w-signal-packet" to CLI.
3834
3835 2001-04-01  Andrew Cagney  <ac131313@redhat.com>
3836
3837         Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
3838         ns32k-utek-*.
3839         * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
3840         (umax-xdep.o, ns32km3-nat.o): Obsolete.
3841         * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
3842         Obsolete.
3843         * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
3844         Obsolete.
3845         * config/ns32k/merlin.mh: Obsolete.
3846         * config/ns32k/merlin.mt: Obsolete.
3847         * config/ns32k/xm-merlin.h: Obsolete.
3848         * config/ns32k/tm-merlin.h: Obsolete.
3849         * config/ns32k/nm-umax.h: Obsolete.
3850         * config/ns32k/umax.mh: Obsolete.
3851         * config/ns32k/umax.mt: Obsolete.
3852         * config/ns32k/xm-umax.h: Obsolete.
3853         * umax-xdep.c: Obsolete.
3854         * config/ns32k/ns32km3.mh: Obsolete.
3855         * config/ns32k/ns32km3.mt: Obsolete.
3856         * config/ns32k/tm-ns32km3.h: Obsolete.
3857         * config/ns32k/xm-ns32km3.h: Obsolete.
3858         * ns32km3-nat.c: Obsolete.
3859         * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
3860         (merlin_frame_num_args): Ditto.
3861         * NEWS: Update.
3862         * TODO: Update.
3863
3864 2001-04-02  Eli Zaretskii  <eliz@is.elta.co.il>
3865
3866         * config/djgpp/fnchange.lst: Tweak due to
3867         expect/example/chesslib.c.
3868
3869 2001-04-02  Kevin Buettner  <kevinb@redhat.com>
3870
3871         * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
3872         unsigned int to unsigned long.  Also, fix format string.
3873         (pop_frame):  Fix PC_IN_CALL_DUMMY() call so that it doesn't
3874         use an undeclared variable.  Also, delete declaration and
3875         initialization of ``fp'' because it is otherwise unused.
3876         * remote-bug.c (sleep): Delete declaration.
3877         (bug_store_register, bug_write_memory, bug_read_memory)
3878         (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
3879         format statements and cast certain sprintf() arguments to
3880         eliminate warnings.
3881         (bug_load): Likewise for call to printf_filtered().
3882         * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
3883         assignment to ``pc''.  The necessary assignment is done in
3884         hand_function_call() after the invocation of FIX_CALL_DUMMY().
3885
3886 2001-03-20  Daniel Berlin  <dberlin@redhat.com>
3887         
3888         * symtab.c (completion_list_add_name): Remove duplicate string checks,
3889         readline already does this, and it's much faster at it, too.
3890
3891 2001-04-01  Eli Zaretskii  <eliz@is.elta.co.il>
3892
3893         * go32-nat.c: Minor tweaks, to pacify the ari script.
3894
3895 2001-04-01  Mark Kettenis  <kettenis@gnu.org>
3896
3897         * i386-tdep.c (i386_extract_struct_value_address): New function.
3898         * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
3899         in terms of i386_extract_struct_value_address.
3900         (i386_extract_struct_value_address): New prototype.
3901
3902         * i386-linux-nat.c (i386_linux_dr_get): Change type of return
3903         value to `unsigned long'.  Change type of `value' to `unsigned
3904         long'.
3905         (i386_linux_dr_set): Change type of second argument to `unsigned
3906         long'.
3907         (i386_linux_dr_set_control): Change type of first argument to
3908         `unsigned long'.
3909         (i386_linux_dr_get_status): Change type of return value to
3910         unsigned long.
3911         * config/i386/nm-linux.h (i386_linux_dr_set_control,
3912         i386_linux_dr_get_status): Adjust prototypes accordingly. 
3913
3914 2001-03-31  Kevin Buettner  <kevinb@redhat.com>
3915
3916         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
3917         TRAP_HWBKPT constant to match that in the kernel headers for
3918         Linux/IA-64.
3919
3920 2001-03-31  Mark Kettenis  <kettenis@gnu.org>
3921
3922         * i386bsd-nat.c: Include "gdb_assert.h".
3923         [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
3924         already defined.
3925         [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
3926         i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
3927         i386bsd_dr_get_status): New functions.
3928         * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
3929         (I386_USE_GENERIC_WATCHPOINTS): Define.
3930         Include "i386/nm-i386.h".
3931         (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
3932         I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
3933         (i386bsd_dr_set_control, i386bsd_dr_set_addr,
3934         i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
3935         * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
3936         * configure.in: Cleanup a few comments.  Check for PT_GETDBREGS
3937         ptrace request.
3938         * config.in, configure: Regenerate.
3939
3940         * i386-nat.c (i386_insert_aligned_watchpoint): Set address
3941         register before enabling it by setting the control register.
3942         (i386_remove_aligned_watchpoint): Reset address register after
3943         disabling it by setting the control register.
3944
3945         * i386-tdep.c (i386_extract_return_value): If the type of the
3946         return value is TYPE_STRUCT and the number of fields is one, call
3947         ourselves with TYPE set tp the type of the first field.
3948         (i386_store_return_value): Likewise.
3949         This fixes a problem with returning structs consisting of a single
3950         `float' or `double' on *BSD.
3951
3952 2001-03-30  Mark Kettenis  <kettenis@gnu.org>
3953
3954         * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
3955         we're absolutely sure we're going to resume it.
3956
3957         * thread-db.c (check_event): Don't report an error if we encounter
3958         a thread creation event for a thread that's already in the thread
3959         list, since that may legitemately happen.  Instead only call
3960         attach_thread if it's not already in the thread list.
3961
3962 2001-03-28  Andrew Cagney  <ac131313@redhat.com>
3963
3964         * config/pa/xm-hppah.h (malloc): Really delete declaration
3965         (MALLOC_INCOMPATIBLE): Really delete macro.
3966         * cli/cli-cmds.c (apropos_command): Use xcalloc.
3967
3968 2001-03-28  Andrew Cagney  <ac131313@redhat.com>
3969
3970         * configure.in (build_warnings): Add -Wuninitialized.
3971         * configure: Regenerate.
3972
3973         * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
3974         * sparc-tdep.c (sparc64_push_arguments): Add default case to
3975         switch.
3976         * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
3977         expression with if statement.
3978         * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
3979         ``stack_size''.
3980         * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
3981         (mips_dump_tdep): Fix setting of ef_mips_arch.
3982         * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
3983         * dsrec.c (make_srec): Always initialize ``binbuf''.
3984         * monitor.c (monitor_read_memory_single): Do not pass an
3985         uninitialized buffer to monitor_error. Make ``i'' more local.
3986
3987 2001-03-28  Andrew Cagney  <ac131313@redhat.com>
3988
3989         * MAINTAINERS: Change ns32k target to ,-Werror.
3990
3991         * ns32k-tdep.c: Include "gdbcore.h"
3992         (flip_bytes): Change first argument to void*. Add forward
3993         declaration.
3994         (sign_extend): Add declaration.
3995         (merlin_frame_num_args): Add final else clause to if-else chain.
3996         (umax_frame_num_args): Ditto.
3997         * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
3998         (flip_bytes): Ditto.
3999
4000 2001-03-28  Mark Kettenis  <kettenis@gnu.org>
4001
4002         * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
4003         config/i386/nm-linux.h (including comment).
4004         (i386_linux_frame_chain): New function implementing guts of the
4005         former FRAME_CHAIN macro, but using read_memory_unsigned_integer
4006         instead of read_memory_integer.
4007         (i386_linux_frame_saved_pc): Removed doc pointing to
4008         i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
4009         now lives in this file.
4010         * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
4011         i386-linux-tdep.c (including comment).
4012         (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
4013         (i386_linux_frame_chain): New prototype.
4014
4015         * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
4016         make it work again.
4017         (NUM_FREGS): Redefine to 0.
4018         (NUM_REGS): Redefine as NUM_GREGS.
4019         (i386_register_byte, i386_register_raw_size): Update from
4020         i386-tdep.c.  Add comment about their origin.
4021         (regmap, register_u_addr): Take these from i386-linux-nat.c.
4022         (i386_register_u_addr): Removed.
4023
4024         * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
4025         fails instead of calling perror_with_name.  This should fix
4026         debugging remote i386 targets with a native Linux/x86 GDB.  Add
4027         FIXME for this hack.
4028
4029 2001-03-19  J.T. Conklin  <jtc@redback.com>
4030
4031         * arch-utils.c (#include "gdbthread.h"): Removed.
4032         (#include "symfile.h"): Removed. 
4033         (XMALLOC): Removed unused macro.
4034         * breakpoint.c (tbreak_command): Removed local declaration.
4035         (awatch_command, do_enable_breakpoint, set_breakpoint_count):
4036         Remove duplicate declarations.
4037         (bpstat_should_step, bpstat_have_active_hw_watchpoints)
4038         (remove_solib_event_breakpoints): Fix indentation botch.
4039         * c-typeprint.c (#include "command.h"): Removed.
4040         (#include "gdbcmd.h"): Removed.
4041         * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
4042         (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
4043         Removed duplicate declarations.
4044         * ch-typeprint.c (#include "command.h"): Removed.
4045         (#include "gdbcmd.h"): Removed.
4046         * corefile.c (#include "frame.h"): Removed
4047         (#include "symfile.h"): Removed.
4048         (#include "language.h"): Removed.
4049         * dbxread.c (#include "command.h"): Removed.
4050         * environ.c (#include "gdbcore.h"): Removed.
4051         * event-loop.c (#include "top.h"): Removed.
4052         * f-typeprint.c (#include "command.h"): Removed.
4053         (#include "gdbcmd.h"): Removed.
4054         (#include "language.h"): Removed.
4055         (#include "typeprint.h"): Removed.
4056         (#include "frame.h"): Removed.
4057         * gdbtypes.h (print_type_scalar): Removed declaration.
4058         * infcmd.c (#include "completer.h"): Removed.
4059         * language.c (#include "frame.h"): Removed.
4060         * m2-typeprint.c (#include "command.h"): Removed.
4061         (#include "gdbcmd.h"): Removed.
4062         (#include "language.h"): Removed.
4063         * m2-valprint.c (#include "valprint.h"): Removed.
4064         * p-typeprint.c (#include "command.h"): Removed.
4065         (#include "gdbcmd.h"): Removed.
4066         * p-valprint.c (#include "typeprint.h"): Removed.
4067         * parse.c (#include "linespec.h"): Removed.
4068         * regcache.c (#include "frame.h"): Removed.
4069         * remote.c (#include "frame.h"): Removed.
4070         (getpkt_sane): Make static.
4071         * source.c (#include "completer.h"): Removed.
4072         * stack.c (#include "symfile.h"): Removed.
4073         (#include "objfiles.h"): Removed.
4074         * symfile.c (#include "completer.h"): Removed.
4075         * tracepoint.c (#include "completer.h"): Removed.
4076         * values.c (#include "frame.h"): Removed.
4077         * varobj.c (#include "valprint.h"): Removed.
4078         * wrapper.c (#include "frame.h"): Removed.
4079         
4080         * memattr.c (create_mem_region): Removed unused variable.
4081         * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
4082
4083 2001-03-27  Nick Clifton  <nickc@redhat.com>
4084
4085         * remote-rdp.c (rdp_set_command_line): Add missing double quote.
4086
4087 2001-03-27  Kevin Buettner  <kevinb@redhat.com>
4088
4089         * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
4090         of free().
4091
4092 2001-03-27  Eli Zaretskii  <eliz@is.elta.co.il>
4093
4094         * TODO (Cleanups): Remove the item about converting docs to GFDL.
4095
4096 2001-03-26  Kevin Buettner  <kevinb@redhat.com>
4097
4098         * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
4099         type of ``bundle'' from unsigned char * to char *.
4100         (ia64_get_saved_register): Use alloca() to allocate register
4101         buffers.
4102
4103         * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
4104
4105 2001-03-26  Kevin Buettner  <kevinb@redhat.com>
4106
4107         * proc-utils.h (procfs_ctl_t): New typedef.
4108         * proc-api.c (write_with_trace): Change type of ``opcode'' from
4109         long to procfs_ctl_t.  Don't assume that the target has defined
4110         BREAKPOINT.  Handle case in which PCRESET is the same as PCUNSET.
4111         * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
4112         * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
4113         (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
4114         (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
4115         Conditionally define as appropriate for AIX/non-AIX systems.  Use
4116         these defines/typedefs as appropriate elsewhere in file.
4117         (struct procinfo): Change type of saved_sigset and saved_sighold
4118         from sigset_t to gdb_sigset_t.  Make saved_exitset and
4119         saved_entryset pointer variables.  Add two new fields, num_syscalls
4120         and syscall_names.
4121         (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
4122         (sysset_t_size, sysset_t_alloc): New functions.
4123         (load_syscalls, free_syscalls, find_syscall): New functions for
4124         platforms which define DYNAMIC_SYSCALLS.
4125         (create_procinfo): Call load_syscalls.
4126         (destroy_one_procinfo): Call free_syscalls.
4127         (GDBRESET): Don't define twice.
4128         (proc_modify_flag): Change type of operation code array `arg'
4129         from long to procfs_ctl_t.
4130         (proc_stop_process, proc_wait_for_stop, proc_run_process)
4131         (proc_set_traced_signals, proc_set_traced_faults)
4132         (proc_set_traced_sysentry, proc_set_traced_sysexit)
4133         (proc_set_held_signals, proc_clear_current_fault)
4134         (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
4135         (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
4136         (proc_set_traced_sysentry): Dynamically allocate variable sized
4137         struct gdb_proc_ctl_pcsentry.  Also, free it at function exit.
4138         (proc_set_traced_sysexit): Dynamically allocate variable
4139         sized struct gdb_proc_ctl_pcsexit.  Also, free it at
4140         function exit.
4141         (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
4142         for reading the sysset_t struct on AIX5.
4143         (procfs_debug_inferior): Don't assume that SYS_exit will be
4144         defined.  Add new code for finding certain syscalls on AIX5.
4145         (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
4146         (syscall_is_lwp_create): New functions.
4147         (procfs_wait): Restructured code which checks for certain
4148         system calls to use the new syscall_is_... functions.
4149         (procfs_notice_signals): Account for the fact that saved_entryset
4150         and saved_exitset in struct procinfo are now pointers.
4151
4152 2001-03-26  Kevin Buettner  <kevinb@redhat.com>
4153
4154         * symtab.c (find_pc_sect_line): Revise method used for finding
4155         the ending pc.
4156
4157 2001-03-26  Mark Kettenis  <kettenis@gnu.org>
4158
4159         * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
4160         i386_linux_sigtramp_saved_sp): Make static.
4161         (i386_linux_frame_saved_pc): New function based on the old
4162         FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
4163         of read_memory_integer.
4164         * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
4165         (i386_linux_sigtramp_saved_pc): Remove prototype.
4166         (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
4167         (i386_linux_frame_saved_pc): New prototype.
4168
4169 2001-03-26  Andrew Cagney  <ac131313@redhat.com>
4170
4171         * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
4172         * TODO (GDB 5.1 - Cleanups): Update.
4173
4174 2001-03-26  Andrew Cagney  <ac131313@redhat.com>
4175
4176         * fork-child.c (clone_and_follow_inferior): Delete #ifdef
4177         HAVE_VFORK.
4178
4179 2001-03-26  Mark Kettenis  <kettenis@gnu.org>
4180
4181         * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
4182
4183         * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
4184         functions.
4185         * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
4186         (STORE_STRUCT_RETURN): Redefine in terms of
4187         i386_store_struct_return.
4188         (i386_push_arguments, i386_store_struct_return): New prototypes.
4189         * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove.  It's
4190         definition was identical to the definition in "i386/tm-i386.h" so
4191         the new definition should suffice too.
4192
4193 2001-03-26  Eli Zaretskii  <eliz@is.elta.co.il>
4194
4195         * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
4196         definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
4197
4198         * config/djgpp/djconfig.sh: Add copyright notice.
4199
4200         * ser-go32.c (rawclock): Remove prototype; include time.h instead.
4201         (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
4202         (top level) <string.h>: Include gdb_string.h instead.
4203         (dos_noop, dos_raw, dos_noflush_set_tty_state) 
4204         (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
4205
4206         * go32-nat.c (go32_create_inferior): Move the declaration of
4207         `environ' to here from the top level.
4208         (top level) <_initialize_go32_nat>: Remove redundant prototype.
4209         <gdb_string.h>: Include it instead of string.h.
4210         (store_register): Call register_buffer instead of accessing
4211         registers[] directly.
4212         (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger) 
4213         (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
4214         the function names at the start of the line.
4215         (go32_set_dr): Throw internal_error if the argument is not a valid
4216         debug register number.
4217         (go32_open, go32_close, go32_attach, go32_detach, go32_resume) 
4218         (go32_wait, go32_xfer_memory, go32_files_info) 
4219         (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
4220
4221 2001-03-25  Jim Blandy  <jimb@redhat.com>
4222
4223         * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
4224
4225 2001-03-25  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
4226
4227         From  Andrew Cagney  <ac131313@redhat.com>
4228
4229         * coffread.c: Include "gdb_assert.h".
4230         (coff_symtab_read): Cast the integer s_sclass to a long before
4231         casting it to a pointer.
4232
4233 2001-03-25  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
4234
4235         From  Andrew Cagney  <ac131313@redhat.com>
4236         
4237         * coffread.c (coff_symtab_read): Initialize
4238         ``fcn_first_line_addr''.  Check that the ``.bf'' always preceeds
4239         the ``.ef'' info.
4240         * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
4241
4242 2001-03-23  Andrew Cagney  <ac131313@redhat.com>
4243
4244         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
4245         GDB_MULTI_ARCH_PARTIAL from two.  SOFTWARE_SINGLE_STEP is not
4246         multi-arch.
4247
4248         * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
4249         * gdbarch.h, gdbarch.c: Re-generate.
4250
4251         * target.h (SOFTWARE_SINGLE_STEP_P)
4252         (SOFTWARE_SINGLE_STEP): Delete macro definitions.
4253
4254 2001-03-23  Andrew Cagney  <ac131313@redhat.com>
4255
4256         * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
4257         * gdbarch.h, gdbarch.c: Regenerate.
4258         
4259         * regcache.h (regcache_read, regcache_write): Declare.
4260         (registers, register_valid, register_buffer): Add note that these
4261         interfaces are deprecated.
4262         
4263         * regcache.c: Include "gdb_assert.h".
4264         (legacy_write_register_gen): Rename write_register_gen.
4265         (legacy_read_register_gen): Rename read_register_gen.
4266         (regcache_read, regcache_write): New function.
4267         (read_register_gen, write_register_gen): New function.
4268         (write_register): Simplify.  Use write_register_gen.
4269         (read_register): Ditto using read_register_gen.
4270         (read_signed_register): Ditto.
4271         (read_register_bytes): Ditto!!!!
4272         (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
4273         replaced by gdbarch_register_read.
4274
4275         * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
4276         deprecate.
4277
4278 2001-03-23  Jim Blandy  <jimb@redhat.com>
4279
4280         Fix from Dan Berlin:
4281
4282         * stabsread.c (read_cpp_abbrev): Properly construct the names of
4283         virtual function table pointer fields.
4284
4285 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
4286
4287         * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
4288         xmrealloc): Move existing declarations to the one place and
4289         re-order to be consistent.
4290         (xmcalloc, xmfree): Declare.
4291         (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
4292         declaration.
4293         
4294         * utils.c (size_t): Delete #ifdef defining size_t.
4295         (mmalloc, mrealloc, mcalloc, mfree): Re-order.
4296         (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
4297         corresponding malloc, realloc, calloc.
4298         (mfree): Call free directly.
4299         (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
4300         (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
4301         function bodies to here.
4302         (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
4303         
4304 2001-03-23  Andrew Cagney  <ac131313@redhat.com>
4305
4306         * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
4307         ``shell_file'' static locals.
4308
4309         * jv-lang.c (java_link_class_type): Initialize ``field'' and
4310         ``method''.
4311         
4312         * jv-valprint.c (java_value_print): Initialize ``next_element''.
4313
4314 2001-03-23  Mark Kettenis  <kettenis@gnu.org>
4315
4316         * config/i386/nm-i386.h: Fix formatting and change reference to
4317         i386-tdep.c to i386-nat.c.
4318
4319 2001-03-23  David Smith  <dsmith@redhat.com>
4320
4321         * configure.in: Corrected spelling errors.
4322         * configure: Regenerated.
4323
4324 2001-03-22  Andrew Cagney  <ac131313@redhat.com>
4325
4326         * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
4327
4328 2001-03-22  Andrew Cagney  <ac131313@redhat.com>
4329
4330         * Makefile.in (NTSSTART): Delete.
4331         (NTSOBS): Delete.
4332         (kdb): Delete target.
4333         * kdb-start.c, stuff.c: Mark as obsolete.
4334         * NEWS: Update.
4335
4336 2001-03-22  Andrew Cagney  <ac131313@redhat.com>
4337
4338         * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
4339         compiles using an ISO-C compiler.
4340         (MALLOC_INCOMPATIBLE): Ditto.
4341         * linespec.c (decode_line_1): Delete hack to work around
4342         HPPA_COMPILER_BUG.
4343
4344 2001-03-22  Andrew Cagney  <ac131313@redhat.com>
4345
4346         * exec.c (xfer_memory): Always initialize section.
4347         * infrun.c (normal_stop): Always initialize source_flag.
4348
4349 2001-03-22  Andrew Cagney  <ac131313@redhat.com>
4350
4351         * TODO (Remote Protocol Support): Review.  Add notes about ``!'',
4352         non-use of a continue address and typical use of ``q'' packet.
4353
4354 2001-03-22  Eli Zaretskii  <eliz@is.elta.co.il>
4355
4356         Make DJGPP use the new unified support for hardware
4357         breakpoints and watchpoints on x86 targets:
4358
4359         * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
4360         include nm-i386.h instead.
4361         (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
4362         (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
4363         (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
4364         (target_stopped_data_address, target_insert_watchpoint)
4365         (target_remove_watchpoint, target_insert_hw_breakpoint)
4366         (target_remove_hw_breakpoint): Don't define.
4367         (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
4368         (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
4369         (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
4370         functions from go32-nat.c.
4371
4372         * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
4373
4374         * go32-nat.c <top level>: Remove prototypes for watchpoint-
4375         related functions.  Remove definitions of watchpoint-related
4376         macros.
4377         (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
4378         private cleanup_dregs function.
4379         (cleanup_dregs, go32_insert_watchpoint)
4380         (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
4381         (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
4382         (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
4383         (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
4384         (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
4385
4386 2001-03-21  Kevin Buettner  <kevinb@redhat.com>
4387
4388         * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
4389         than two instead of generating an error.
4390         
4391 2001-03-21  Jim Blandy  <jimb@redhat.com>
4392
4393         * cp-valprint.c: Reformat to bring into line with GNU coding
4394         standards.
4395
4396 2001-03-21  Mark Kettenis  <kettenis@gnu.org>
4397
4398         Make Linux use the new unified support for hardware breakpoints
4399         and watchpoints on x86 targets.
4400         * i386-linux-nat.c: Doc fixes.  Include "gdb_assert.h".
4401         [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
4402         (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
4403         appropriate value if not already defined.
4404         (register_u_addr): New function.
4405         (kernel_u_size): New function.
4406         (i386_linux_dr_get, i386_linux_dr_set): New functions.
4407         (i386_linux_dr_set_control, i386_linux_dr_set_addr,
4408         i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
4409         * config/i386/nm-linux.h: Don't include "nm-i386v.h".
4410         (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
4411         (TARGET_HAS_HARDWARE_WATCHPOINTS,
4412         TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
4413         STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
4414         target_remove_watchpoint): Remove macros.
4415         (i386_stopped_by_watchpoint, i386_insert_watchpoint,
4416         i386_remove_watchpoint): Remove prototypes.
4417         (register_u_addr): New prototype.
4418         (REGISTER_U_ADDR): Define in terms of register_u_addr.
4419         (i386_linux_dr_set_control, i386_linux_dr_set_addr,
4420         i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
4421         (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
4422         I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
4423         * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
4424         i386-nat.o.
4425
4426 2001-03-21  Jim Blandy  <jimb@redhat.com>
4427
4428         Fix from Dan Berlin:
4429
4430         * linespec.c (find_methods): Whitespace differences aren't
4431         significant in *un*mangled method names.  Use strcmp_iw to compare
4432         them, not STREQ.
4433
4434 2001-03-21  Andrew Cagney  <ac131313@redhat.com>
4435
4436         * gdbarch.sh: Allow a non- multi-arch target to override a
4437         predicate.
4438         * gdbarch.h: Regenerate.
4439
4440 2001-03-21  Andrew Cagney  <ac131313@redhat.com>
4441
4442         * gdbarch.sh: Avoid use of ``!''.
4443
4444 2001-03-20  Andrew Cagney  <ac131313@redhat.com>
4445
4446         * target.h (enum target_signal): Move definition from here.
4447         * defs.h (enum target_signal): To here.
4448
4449         * config/arc/tm-arc.h (arc_software_single_step): Change type of
4450         first parameter to enum target_signal.
4451         * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
4452         * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
4453         * rs6000-tdep.c (rs6000_software_single_step): Update.
4454         
4455 2001-03-20  Andrew Cagney  <ac131313@redhat.com>
4456
4457         * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
4458         already defined.
4459         
4460         From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
4461         * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
4462         or a reference ('a') can be in a pseudo register.
4463         * infcmd.c (do_registers_info): Must take into account the pseudo
4464         registers to print their value.
4465         (registers_info): Likewise.
4466         * stack.c (frame_info): Likewise.
4467         * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
4468
4469 2001-03-21  Eli Zaretskii  <eliz@is.elta.co.il>
4470
4471         Unified support for hardware breakpoints and watchpoints on
4472         x86 targets:
4473
4474         * config/i386/nm-i386.h: New file.
4475
4476         * config/i386/nm-i386.h: (i386_cleanup_dregs)
4477         (i386_insert_watchpoint, i386_remove_watchpoint)
4478         (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
4479         (i386_stopped_data_address, i386_insert_hw_breakpoint)
4480         (i386_remove_hw_breakpoint): Declare prototypes.
4481         [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4482         Define if not already defined.
4483         (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
4484         (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
4485         (target_insert_watchpoint, target_remove_watchpoint)
4486         (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
4487         to call the appropriate i386_* functions.
4488
4489         * i386-nat.c: New file.
4490
4491         * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
4492         (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4493         (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
4494         (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
4495         (maint_show_dr): New variables.
4496         (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
4497         (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
4498         (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
4499         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
4500         (i386_stopped_data_address, i386_stopped_by_hwbp)
4501         (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
4502         functions.
4503         (_initialize_i386_nat): New function.
4504         [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
4505         `show-debug-regs', sets maint_show_dr to non-zero value and
4506         activates debugging print-outs in functions which insert, remove,
4507         and test watchpoints and hardware breakpoints.
4508
4509         * Makefile.in (i386-nat.o): New target.
4510         (ALLDEPFILES): Add i386-nat.o.
4511
4512 2001-03-21  Mark Kettenis  <kettenis@gnu.org>
4513
4514         * i386-tdep.c: Add back _initialize_i386_tdep prototype with
4515         appropriate comment.
4516
4517 2001-03-20  Kevin Buettner  <kevinb@redhat.com>
4518
4519         * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
4520         thread-db.o, and lin-lwp.o for thread support instead of
4521         linux-thread.o and lin-thread.o.
4522         * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
4523         (ATTACH_LWP): Define to use the following lin-lwp.c functions...
4524         (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
4525         (lin_lwp_attach_lwp): Declare.
4526
4527 2001-03-20  Jim Blandy  <jimb@redhat.com>
4528
4529         Fix from Dan Berlin:
4530         
4531         * Makefile.in: Clean up dependencies on ../include/demangle.h.
4532         (demangle_h): New variable.
4533         (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
4534
4535 2001-03-20  Andrew Cagney  <ac131313@redhat.com>
4536
4537         * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
4538         * breakpoint.c (bpstat_stop_status): Update.
4539         * infrun.c (handle_inferior_event): Ditto.
4540         * mips-tdep.c (mips_dump_tdep): Ditto.
4541         * infrun.c (resume): Ditto.
4542         * infptrace.c (child_resume): Ditto.
4543         * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4544         * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4545         * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4546         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4547         * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4548         * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4549         * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4550
4551 2001-03-20  Andrew Cagney  <ac131313@redhat.com>
4552
4553         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
4554         with internal_error.
4555
4556 2001-03-20  Jim Blandy  <jimb@redhat.com>
4557
4558         Fix from Dan Berlin:
4559         
4560         * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
4561         than asking for sym_class's type; that's circuitous.  Remove
4562         sym_class, since the last use of it is gone.
4563
4564 2001-03-20  Eli Zaretskii  <eliz@is.elta.co.il>
4565
4566         * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
4567         Correct the order of calls to ui_out_field_string and
4568         ui_out_list_begin when bs->old_val is NULL.
4569
4570 2001-03-19  Kevin Buettner  <kevinb@redhat.com>
4571
4572         * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
4573         * configure: Regenerate.
4574         * config.in: Regenerate.
4575         * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
4576
4577 2001-03-19  Kevin Buettner  <kevinb@redhat.com>
4578
4579         * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
4580         same line to avoid problems with Unixware 7's make when building
4581         a cross debugger.
4582
4583 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
4584
4585         * defs.h (malloc): Move declaration from here.
4586         * utils.c (malloc): To here.
4587         * config/pa/xm-hppah.h (malloc): Delete declaration.
4588
4589         * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
4590         * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
4591         (hpread_quick_traverse): Ditto.
4592         * infttrace.c (create_thread_info): Ditto.
4593         (kill_inferior): Ditto.
4594         * gnu-nat.c (make_inf): Ditto, and don't check return value.
4595         * procfs.c (proc_update_threads): Ditto.
4596         * valprint.c (print_decimal_chars): Ditto.
4597         * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
4598         malloc and sprintf.
4599         * remote-rdp.c (rdp_set_command_line): Ditto.
4600
4601 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
4602
4603         * defs.h (realloc): Move declaration from here.
4604         * utils.c (realloc): To here.
4605         * config/pa/xm-hppah.h (realloc): Delete declaration.
4606         * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
4607         * symfile.c (add_filename_language): Ditto.
4608         * event-loop.c (create_file_handler): Ditto.
4609
4610 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
4611
4612         * defs.h (free): Move declaration from here.
4613         * utils.c (free): To here.
4614         (xfree): Document as the only call to free().
4615         * config/pa/xm-hppah.h (free): Delete declaration.
4616
4617 2001-03-19  Kevin Buettner  <kevinb@redhat.com>
4618
4619         * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
4620         this list.
4621
4622 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
4623
4624         * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
4625         * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
4626         * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
4627
4628 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
4629
4630         * TODO: List known problems with TUI.
4631
4632 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
4633
4634         * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
4635         gdb.hp).
4636
4637 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
4638
4639         * remote.c (remote_cisco_section_offsets): Do not cast result from
4640         bfd_get_section_name.
4641         (compare_sections_command): Ditto.
4642         (remote_cisco_section_offsets): Make ``p'' a const pointer.
4643         (compare_sections_command): Ditto for ``sectname''.
4644
4645 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
4646
4647         From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
4648         * valops.c (hand_function_call): Simplify computation of the
4649         address of the pushed argument.
4650  
4651 2001-03-17  Andrew Cagney  <ac131313@redhat.com>
4652
4653         * p-exp.y (parse_number): Avoid shift overflow when ``long''.
4654         Code copied from c-exp.y.
4655
4656 2001-03-18  Kevin Buettner  <kevinb@redhat.com>
4657
4658         * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
4659         (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
4660         (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
4661         * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
4662         of the Solaris procfs testing section.  Instead, group with...
4663         (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
4664         (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
4665         (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
4666         * configure: Regenerate.
4667         * config.in: Regenerate.
4668
4669         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
4670         new configure macros to choose which (if any) code to
4671         compile in.  Added code to explicitly handle *BSD systems;
4672         these systems were previously handled only through macro
4673         redefinition.  Also, due to the way the autoconf tests are set
4674         up, this function will no longer return a non-zero value when
4675         GDB is configured as a cross debugger.  I.e, cross debuggers
4676         will no longer be able to "accidentally" get the host system's
4677         link map offsets.
4678
4679 2001-03-18  Kevin Buettner  <kevinb@redhat.com>
4680
4681         * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
4682         line to avoid build problem on NetBSD 1.4.
4683
4684 2001-03-17  Michael Chastain  <chastain@redhat.com>
4685
4686         * win32-nat.c (child_attach): check args for NULL before passing
4687         to strtoul.  This fixes PR gdb/43.
4688
4689 2001-03-17  Mark Kettenis  <kettenis@gnu.org>
4690
4691         * i387-nat.h: Doc Fix.
4692
4693         * i386-tdep.c: Fix formatting.
4694         (i386_get_frame_setup, i386_follow_jump, codestream_read,
4695         codestream_seek, codestream_fill, skip_trampoline_code,
4696         gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
4697         prototypoes.
4698
4699 2001-03-17  Mark Kettenis  <kettenis@gnu.org>
4700
4701         * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove.  It's
4702         no longer used.  Also remove associated FIXME.
4703
4704 2001-03-16  Andrew Cagney  <ac131313@redhat.com>
4705
4706         * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch.  Do
4707         not generate macro wrappers for multi-arch functions or
4708         predicates.
4709         (class_is_info_p, class_is_predicate_p): Update.
4710         (class_is_function_p, class_is_variable_p): Ditto.
4711         (class_is_multiarch_p): New class function.
4712
4713 2001-03-16  J.T. Conklin  <jtc@redback.com>
4714
4715         * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
4716         h8300_frame_args_address from frame_args_address.
4717         (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
4718         from frame_locals_address.
4719         (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
4720         from print_register_hook.
4721         (h8300_frame_args_address): Declare.
4722         (h8300_frame_find_saved_regs): Declare.
4723         (h8300_frame_locals_address): Declare.
4724         (h8300_frame_saved_pc): Declare.
4725         (h8300_pop_frame): Declare.
4726         (h8300_print_register_hook): Declare.
4727         * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
4728         (h8300_frame_args_address): Renamed from frame_args_address.
4729         (h8300_frame_locals_address): Renamed from frame_locals_address.
4730         (h8300_pop_frame): Renamed from pop_frame.
4731         (h8300_print_register_hook): Renamed from print_register_hook.
4732
4733 2001-03-16  Kevin Buettner  <kevinb@redhat.com>
4734
4735         * solib-svr4.c (bfd_lookup_symbol):  Change type of
4736         ``storage_needed'' from unsigned int to long in order to
4737         match return type of bfd_get_symtab_upper_bound() and
4738         bfd_get_dynamic_symtab_upper_bound().
4739         * solib-aix5.c (bfd_lookup_symbol): Likewise.  Also, eliminate
4740         REASONABLE_LIMIT hack which had been added to work around this
4741         problem.
4742
4743 2001-03-15  Kevin Buettner  <kevinb@redhat.com>
4744
4745         * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
4746         (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
4747         to free() with calls to xfree().
4748         (bfd_lookup_symbol): Eliminate use of PTR.
4749         (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
4750
4751 2001-03-15  Martin Hunt  <hunt@redhat.com>
4752
4753         * linespec.c (decode_line_1): Remove trailing quote
4754         when parsing double quotes.
4755
4756 2001-03-15  Kevin Buettner  <kevinb@redhat.com>
4757
4758         * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
4759         (libthread_stub, libthread_init): Pass NULL for the mem_attrib
4760         argument in the to_xfer_memory calls.
4761
4762 2001-03-15  Andrew Cagney  <ac131313@redhat.com>
4763
4764         * MAINTAINERS: Fix typo - w65 not w64.  Still doesn't build.
4765         * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
4766
4767 2001-03-15  Andrew Cagney  <ac131313@redhat.com>
4768
4769         * wince.c (child_xfer_memory): Add attrib parameter.
4770         * symm-nat.c (child_xfer_memory): Ditto.
4771         * mac-nat.c (child_xfer_memory): Ditto.
4772         * infttrace.c (child_xfer_memory): Ditto.
4773         * procfs.c (procfs_xfer_memory): Ditto.
4774         * lin-thread.c (thread_db_xfer_memory): Ditto.
4775         * gnu-nat.c (gnu_xfer_memory): Ditto.
4776
4777 2001-03-14  Andrew Cagney  <ac131313@redhat.com>
4778
4779         * NEWS: Mention that Harris/CXUX m88k is obsolete.
4780
4781 2001-03-13  Andrew Cagney  <ac131313@redhat.com>
4782
4783         * config/mips/tm-mips.h: Include "regcache.h" for macros refering
4784         to regcache functions.
4785         * config/m68k/tm-m68k.h: Ditto.
4786         * config/i386/tm-i386v.h: Ditto.
4787         * config/mcore/tm-mcore.h: Ditto.
4788         * config/m88k/tm-m88k.h: Ditto.
4789         * config/m68k/tm-news.h: Ditto.
4790         * config/m68k/tm-linux.h: Ditto.
4791         * config/m68k/tm-delta68.h: Ditto.
4792         * config/m68k/nm-sun3.h: Ditto.
4793         * config/m32r/tm-m32r.h: Ditto.
4794         * config/i386/tm-symmetry.h: Ditto.
4795         * config/i386/tm-sun386.h: Ditto.
4796         * config/i386/tm-i386.h: Ditto.
4797         * config/i386/nm-symmetry.h: Ditto.
4798         * config/i386/nm-sun386.h: Ditto.
4799         * config/i386/nm-ptx4.h: Ditto.
4800         * config/i386/nm-i386mach.h: Ditto.
4801         * config/h8500/tm-h8500.h: Ditto.
4802         * config/h8300/tm-h8300.h: Ditto.
4803         * config/fr30/tm-fr30.h: Ditto.
4804         * config/d30v/tm-d30v.h: Ditto.
4805         * config/arm/tm-arm.h: Ditto.
4806         * config/arc/tm-arc.h: Ditto.
4807         * config/alpha/tm-alpha.h: Ditto.
4808         * config/a29k/tm-vx29k.h: Ditto.
4809         * config/a29k/tm-a29k.h: Ditto.
4810         * config/w65/tm-w65.h: Ditto.
4811         * config/vax/tm-vax.h: Ditto.
4812         * config/v850/tm-v850.h: Ditto.
4813         * config/tic80/tm-tic80.h: Ditto.
4814         * config/sparc/tm-sparclite.h: Ditto.
4815         * config/sparc/tm-sparclet.h: Ditto.
4816         * config/sparc/tm-sparc.h: Ditto.
4817         * config/sparc/nm-sun4sol2.h: Ditto.
4818         * config/sparc/nm-sun4os4.h: Ditto.
4819         * config/sparc/nm-nbsd.h: Ditto.
4820         * config/powerpc/nm-solaris.h: Ditto.
4821         * config/pa/tm-hppao.h: Ditto.
4822         * config/pa/tm-hppa.h: Ditto.
4823         * config/pa/nm-hppab.h: Ditto.
4824         * config/ns32k/tm-umax.h: Ditto.
4825         * config/ns32k/tm-merlin.h: Ditto.
4826         * config/nm-m3.h: Ditto.
4827         * config/nm-gnu.h: Ditto.
4828
4829 2001-03-14  Andrew Cagney  <ac131313@redhat.com>
4830
4831         * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
4832         broken.  Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
4833         Specify an m88k target.  Include sample GAWK script to generate
4834         target list.  Delete non-existant romp target.
4835         * TODO (GDB 5.1 - Cleanups): Update.
4836
4837 2001-03-14  Keith Seitz  <keiths@cygnus.com>
4838
4839         * linespec.c (decode_line_1): Skip argptr over a leading
4840         double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
4841
4842 2001-03-14  Kevin Buettner  <kevinb@redhat.com>
4843
4844         * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
4845
4846 2001-03-13  Andrew Cagney  <ac131313@redhat.com>
4847
4848         * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
4849         * m3-nat.c: Ditto.
4850         * p-lang.h: Ditto.
4851         * printcmd.c (printf_command): Ditto.
4852         * ch-exp.c (match_integer_literal): Ditto.
4853         * scm-tags.h: Ditto.
4854         * ser-go32.c: Ditto.
4855         * hppa-tdep.c (unwind_command): Ditto.
4856         * defs.h (volatile): Delete macro definition.  Assume __STDC__.
4857         * remote-adapt.c (volatile): Ditto.
4858         * remote-eb.c (volatile): Ditto.
4859         * remote-mm.c (volatile): Ditto.
4860         * defs.h (alloca): Assume __STDC__, declare returning void *.
4861
4862 2001-03-08  Andrew Cagney  <ac131313@redhat.com>
4863
4864         * inferior.h (ARCH_NUM_REGS): Delete definition.
4865         * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
4866         * regcache.c (registers_changed): Ditto.
4867         (registers_fetched): Ditto.
4868         * infptrace.c (fetch_inferior_registers): Ditto.
4869         (store_inferior_registers): Ditto.
4870         * infcmd.c (do_registers_info): Ditto.
4871         (registers_info): Ditto.
4872         * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
4873         (old_store_inferior_registers): Ditto.
4874         * gdbserver/low-linux.c (register_addr): Ditto.
4875         * gdbserver/low-hppabsd.c (register_addr): Ditto.
4876         * core-aout.c: Don't include "inferior.h".
4877         (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
4878         (register_addr): Ditto.
4879
4880 2001-03-13  Fernando Nasser  <fnasser@redhat.com>
4881
4882         From Steven Johnson <sjohnson@neurizon.net>
4883         * cli/cli-script.c (define_command): Fix setting of post hooks.
4884
4885 2001-03-13  Mark Kettenis  <kettenis@gnu.org>
4886
4887         * i386-linux-tdep.c: Fix formatting and clarify comments.
4888         (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
4889         where appropriate.
4890
4891 2001-03-12  Andrew Cagney  <ac131313@redhat.com>
4892
4893         * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
4894         (proc_update_sc): Use gdb_assert instead of assert.
4895         (proc_abort): Ditto.
4896         (inf_set_step_thread): Ditto.
4897         (gnu_wait): Ditto.
4898         (S_exception_raise_request): Ditto.
4899         (gnu_terminal_init_inferior): Ditto.
4900
4901 2001-03-09  Kevin Buettner  <kevinb@redhat.com>
4902
4903         * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
4904         (solib-legacy.o): New makefile target.
4905         * solib-legacy.c: New file.
4906         * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4907         (default_svr4_fetch_link_map_offsets): Delete.
4908         (set_solib_svr4_fetch_link_map_offsets): Declare.
4909         (legacy_svr4_fetch_link_map_offsets_hook): Declare.
4910         * solib-svr4.c (elf/common.h): Include.
4911         (link.h): Only include for SunOS shared library support.
4912         (_SYSCALL32): Don't define.
4913         (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
4914         (default_svr4_fetch_link_map_offsets): Made static; added forward
4915         declaration.
4916         (fetch_link_map_offsets): New static global.
4917         (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
4918         (default_svr4_fetch_link_map_offsets):  Rewritten.  The guts
4919         of what used to be in this function now reside in
4920         legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
4921         (open_symbol_file_object): Fix declaration in SunOS section
4922         of the code.
4923         (set_solib_svr4_fetch_link_map_offsets): New extern function.
4924         (init_fetch_link_map_offsets): New static function.
4925         (_initialize_svr4_solib): Put static global fetch_link_map_offsets
4926         under multiarch control.
4927
4928         * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
4929         list.
4930         * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
4931         * config/arm/linux.mt (TDEPFILES): Likewise.
4932         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4933         * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
4934         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
4935         * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
4936         * config/i386/i386sol2.mt (TDEPFILES): Likewise.
4937         * config/i386/i386v4.mh (NATDEPFILES): Likewise.
4938         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
4939         * config/i386/linux.mt (TDEPFILES): Likewise.
4940         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
4941         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4942         * config/i386/ncr3000.mt (TDEPFILES): Likewise.
4943         * config/i386/ptx4.mh (XDEPFILES): Likewise.
4944         * config/i386/sun386.mt (TDEPFILES): Likewise.
4945         * config/ia64/linux.mt (TDEPFILES): Likewise.
4946         * config/m68k/linux.mt (TDEPFILES): Likewise.
4947         * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
4948         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4949         * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
4950         * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
4951         * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
4952         * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
4953         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4954         * config/powerpc/linux.mt (TDEPFILES): Likewise.
4955         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4956         * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
4957         * config/sh/linux.mt (TDEPFILES): Likewise.
4958         * config/sparc/linux.mt (TDEPFILES): Likewise.
4959         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4960         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4961         * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
4962         * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
4963         * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
4964
4965 2001-03-09  Kevin Buettner  <kevinb@redhat.com>
4966
4967         * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
4968
4969 2001-03-09  Andrew Cagney  <ac131313@redhat.com>
4970
4971         * MAINTAINERS (Write After Approval): Update Philip Blundell.
4972
4973 2001-03-09  Keith Seitz  <keiths@cygnus.com>
4974
4975         * MAINTAINERS: Add myself to write after approval list.
4976
4977 2001-03-09  Mark Kettenis  <kettenis@gnu.org>
4978
4979         * i387-tdep.c (print_i387_status_word): Fix printing of Stack
4980         fault flag.  It is bit 6 of the x87 FPU status word, not bit 7.
4981
4982 2001-03-08  Andrew Cagney  <ac131313@redhat.com>
4983
4984         * configure.host (m88*-harris-cxux*): Mark as obsolete.
4985         * configure.tgt: Ditto.
4986         * config/m88k/xm-cxux.h: Ditto.
4987         * config/m88k/tm-cxux.h: Ditto.
4988         * config/m88k/nm-cxux.h: Ditto.
4989         * config/m88k/cxux.mt: Ditto.
4990         * config/m88k/cxux.mh: Ditto.
4991
4992 2001-03-08  Andrew Cagney  <ac131313@redhat.com>
4993
4994         * Makefile.in: Delete rules for obsolete files.
4995
4996 Thu Mar  8 15:43:40 2001  David Taylor  <taylor@redhat.com>
4997
4998         * stack.c (parse_frame_specification): For one argument case,
4999         handle the situation where the argument is an integer, not an
5000         address -- arguably the most common case.  This matters on
5001         targets where pointers and addresses are different.
5002
5003 2001-03-08  Andrew Cagney  <ac131313@redhat.com>
5004
5005         * TODO: Revise 5.1 list.  Delete PARAMS task.  Add coding standard
5006         review.  Clarify GNU/LINUX/sparc.  Move other tasks to 5.2 or
5007         general.
5008
5009 2001-03-07  Andrew Cagney  <ac131313@redhat.com>
5010
5011         * TODO (GDB 5.1 Known Problems): Document problem of building GDB
5012         with SID on Solaris 8.
5013
5014 2001-03-07  Mark Kettenis  <kettenis@gnu.org>
5015
5016         * defs.h: Provide prototypes for floatformat_is_negative,
5017         floatformat_is_nan and floatformat_mantissa.
5018         * utils.c: Include "gdb_assert.h".
5019         (floatformat_is_negative): New function.
5020         (floatformat_is_nan): New function.
5021         (floatformat_mantissa): New function.
5022         * valprint.c: Include "floatformat.h".
5023         (print_floating): Get rid of the Linux-specific
5024         TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
5025         help these new functions.  Print NaN's in a format conforming to
5026         ISO C99.
5027
5028 2001-03-07  Eli Zaretskii  <eliz@is.elta.co.il>
5029
5030         * top.c (init_main): Make `set history file name' complete on file
5031         names.
5032
5033 2001-03-06  J.T. Conklin  <jtc@redback.com>
5034
5035         * Makefile.in (LINTFLAGS): Update to contain all of the macros
5036         which define include paths used when compiling.
5037
5038         * util.c (savestring, msavestring): Change type of length argument.
5039         * defs.h (savestring, msavestring): Update to match.
5040
5041         * symtab.h (decode_line_1): Removed declaration.
5042
5043         * symfile.c (#include <assert.h>): Removed.
5044
5045         * arch-utils.c (#include <ctype.h>): Removed.
5046         * c-typeprint.c: Likewise.
5047         * dbxread.c: Likewise.
5048         * gdbtypes.c: Likewise.
5049         * target.c: Likewise.
5050         * os9kread.c: Likewise.
5051
5052         * c-valprint.c (#include "demangle.h"): Removed.
5053         * ch-typeprint.c: Likewise.
5054         * eval.c: Likewise.
5055         * f-typeprint.c: Likewise.
5056         * f-valprint.c: Likewise.
5057         * m2-typeprint.c: Likewise.
5058         * typeprint.c: Likewise.
5059         * p-typeprint.c: Likewise.
5060         * valarith.c: Likewise.
5061         * valprint.c: Likewise.
5062
5063         * m2-typeprint.c (#include "gdb_string.h"): Removed.
5064         * nlmread.c: Likewise.
5065
5066         * mdebugread.c (#include "gdb-stabs.h"): Removed.
5067         * minsyms.c: Likewise.
5068         * mipsread.c: Likewise.
5069         * nlmread.c: Likewise.
5070
5071         * m2-typeprint.c (#include "obstack.h"): Removed.
5072         * m2-valprint.c: Likewise.
5073
5074         * event-loop.c (#include <setjmp.h>): Removed.
5075
5076 2001-03-06  Stan Shebs  <shebs@apple.com>
5077
5078         * MAINTAINERS: Remove self from specific maintenance domains
5079         (macos, gdbserver, documentation, testsuite).
5080
5081 2001-03-06  Kevin Buettner  <kevinb@redhat.com>
5082
5083         * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
5084         a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
5085         annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
5086         arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
5087         ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
5088         breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
5089         c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
5090         ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
5091         cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
5092         cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
5093         cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
5094         coff-solib.h, coffread.c, command.h, complaints.c,
5095         complaints.h, completer.c, completer.h,
5096         config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
5097         config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
5098         config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
5099         config/alpha/nm-linux.h, config/alpha/nm-osf.h,
5100         config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
5101         config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
5102         config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
5103         config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
5104         config/arm/nm-linux.h, config/arm/tm-arm.h,
5105         config/arm/tm-embed.h, config/d10v/tm-d10v.h,
5106         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5107         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5108         config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
5109         config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
5110         config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
5111         config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
5112         config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
5113         config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
5114         config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
5115         config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
5116         config/i386/tm-fbsd.h, config/i386/tm-i386.h,
5117         config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
5118         config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
5119         config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
5120         config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
5121         config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
5122         config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
5123         config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
5124         config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
5125         config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
5126         config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
5127         config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
5128         config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
5129         config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
5130         config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
5131         config/i386/xm-linux.h, config/i386/xm-nbsd.h,
5132         config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
5133         config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
5134         config/i960/tm-i960.h, config/i960/tm-mon960.h,
5135         config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
5136         config/ia64/nm-aix.h, config/ia64/nm-linux.h,
5137         config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
5138         config/ia64/tm-linux.h, config/ia64/xm-aix.h,
5139         config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
5140         config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
5141         config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
5142         config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
5143         config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
5144         config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
5145         config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
5146         config/m68k/tm-isi.h, config/m68k/tm-linux.h,
5147         config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
5148         config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
5149         config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
5150         config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
5151         config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
5152         config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
5153         config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
5154         config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
5155         config/m68k/xm-mpw.h, config/m68k/xm-news.h,
5156         config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
5157         config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
5158         config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
5159         config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
5160         config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
5161         config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
5162         config/mips/nm-irix3.h, config/mips/nm-irix4.h,
5163         config/mips/nm-irix5.h, config/mips/nm-mips.h,
5164         config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
5165         config/mips/tm-embed.h, config/mips/tm-embed64.h,
5166         config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
5167         config/mips/tm-irix3.h, config/mips/tm-irix5.h,
5168         config/mips/tm-mips.h, config/mips/tm-mips64.h,
5169         config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
5170         config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
5171         config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
5172         config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
5173         config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
5174         config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
5175         config/mips/xm-irix4.h, config/mips/xm-irix5.h,
5176         config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
5177         config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
5178         config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
5179         config/mn10300/tm-mn10300.h, config/nm-gnu.h,
5180         config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
5181         config/nm-sysv4.h, config/none/nm-none.h,
5182         config/none/tm-none.h, config/none/xm-none.h,
5183         config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
5184         config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
5185         config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
5186         config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
5187         config/pa/nm-hppab.h, config/pa/nm-hppah.h,
5188         config/pa/nm-hppao.h, config/pa/tm-hppa.h,
5189         config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
5190         config/pa/xm-hppab.h, config/pa/xm-hppah.h,
5191         config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
5192         config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
5193         config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
5194         config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
5195         config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
5196         config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
5197         config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
5198         config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
5199         config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
5200         config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
5201         config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
5202         config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
5203         config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
5204         config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
5205         config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
5206         config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
5207         config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
5208         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
5209         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
5210         config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
5211         config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
5212         config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
5213         config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
5214         config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
5215         config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
5216         core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
5217         cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
5218         dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
5219         delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
5220         dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
5221         elfread.c, environ.c, environ.h, eval.c, event-loop.c,
5222         event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
5223         f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
5224         fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
5225         gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
5226         gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
5227         gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
5228         gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
5229         gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
5230         gdbserver/low-sim.c, gdbserver/low-sparc.c,
5231         gdbserver/low-sun3.c, gdbserver/remote-utils.c,
5232         gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
5233         gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
5234         gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
5235         hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
5236         hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
5237         hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
5238         i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
5239         i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
5240         i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
5241         inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
5242         irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
5243         jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
5244         kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
5245         linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
5246         m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
5247         m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
5248         m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
5249         mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
5250         mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
5251         mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
5252         mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
5253         monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
5254         nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
5255         ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
5256         op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
5257         pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
5258         ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
5259         ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
5260         proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
5261         rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
5262         regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
5263         remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
5264         remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
5265         remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5266         remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
5267         remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
5268         remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
5269         rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
5270         scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
5271         ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
5272         sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
5273         solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
5274         source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
5275         sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
5276         standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
5277         symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
5278         symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
5279         tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
5280         typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
5281         ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
5282         valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
5283         vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
5284         vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
5285         vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
5286         wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
5287         xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
5288         notices.
5289
5290 2001-03-05  Kevin Buettner  <kevinb@redhat.com>
5291
5292         * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
5293         HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
5294         macros.
5295         * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
5296         pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
5297         (sys/fault.h, sys/select.h): Test for presence of these
5298         header files.
5299         (ia64-*-aix*): Define NEW_PROC_API for this host.
5300         * configure: Regenerate.
5301         * config.in: Regenerate.
5302
5303         * configure.host (ia64-*-aix*): New host.
5304         * configure.tgt (ia64-*-aix*): New target.
5305
5306 2001-03-05  Andrew Cagney  <ac131313@redhat.com>
5307
5308         * TODO (GDB 5.1 Known Problems): Document z8k as broken.
5309
5310 Mon Mar  5 11:56:09 2001  Christopher Faylor <cgf@cygnus.com>
5311
5312         * wince.c: Change realloc to xrealloc throughout.
5313         (handle_load_dll): Use void * rather than PTR in argument.
5314
5315 2001-03-04  Andrew Cagney  <ac131313@redhat.com>
5316
5317         * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
5318         * ocd.c (ocd_xfer_memory): Ditto.
5319         * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
5320         * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
5321         buildable with ,-Werror.
5322
5323         * Makefile.in (symfile_h): Define.
5324         (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
5325         * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
5326         * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
5327         ,-Werror.
5328
5329         * dsrec.c (make_srec): Fix internal_error fmt arg.
5330         * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
5331
5332 2001-03-03  Kevin Buettner  <kevinb@redhat.com>
5333
5334         * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
5335         as an lvalue.
5336
5337 2001-03-02  Andrew Cagney  <ac131313@redhat.com>
5338
5339         * MAINTAINERS (paper trail): Update.
5340
5341         * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
5342
5343 2001-03-02  Andrew Cagney  <ac131313@redhat.com>
5344
5345         From 2001-03-01 Tom Rix <trix@redhat.com>:
5346         * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
5347         parameter to mn10200_analyze_prologue.
5348
5349         * config/mn10200/tm-mn10200.h: Include "regcache.h".
5350         * MAINTAINERS: Document that mn10200-elf target is buildable.
5351
5352 2001-03-02  Kevin Buettner  <kevinb@redhat.com>
5353
5354         * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
5355         from here...
5356         * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
5357         (MONTEREY): Don't define.
5358         (AIX5): Define.
5359
5360 2001-03-02  Matt Hiller  <hiller@redhat.com>
5361
5362         * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
5363
5364 2001-03-02  Kevin Buettner  <kevinb@redhat.com>
5365
5366         * sparc-nat.c (sparc-nat.c): Don't include self.
5367
5368 2001-03-01  J.T. Conklin  <jtc@redback.com>
5369
5370         * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
5371         if __CYGWIN32__ is set from here.
5372         * config/i386/xm-cygwin.h: To here.
5373         * config/powerpc/xm-cygwin.h: To here.
5374
5375         * i386-stub.c (handle_exception): Use 'T' response packet.
5376
5377 2001-03-01  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
5378
5379         * m32r-tdep.c: Fix cut and paste error in comment.
5380
5381 2001-02-28  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
5382
5383         * symtab.c (print_msymbol_info): Print addresses by portable method
5384         longest_local_hex_string_custom.  Allow for 64-bit addresses.
5385
5386 2001-03-01  J.T. Conklin  <jtc@redback.com>
5387
5388         * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
5389         (MAX_OF_TYPE): Wrap macro definition in parenthesis.
5390         (MIN_OF_TYPE): Likewise.
5391         
5392         * memattr.h (mem_access_mode): Removed extraneous trailing comma.
5393
5394 2001-03-01  Andrew Cagney  <ac131313@redhat.com>
5395
5396         * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
5397         * os9kread.c (os9k_process_one_symbol): Add assert to detect
5398         ``loses if sizeof (char *) > sizeof (int)''.
5399
5400 2001-03-01  Andrew Cagney  <ac131313@redhat.com>
5401
5402         * gdb_assert.h: Document pragmatics behind gdb_assert's case.
5403
5404 2001-03-01  Andrew Cagney  <ac131313@redhat.com>
5405
5406         * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
5407         lists.
5408         (mi-main.o): Ditto.
5409
5410 2001-03-01  Andrew Cagney  <ac131313@redhat.com>
5411
5412         * Makefile.in (regcache_h): Define. Add $(regcache_h) to
5413         dependency lists.
5414
5415 2001-02-28  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
5416
5417         * printcmd.c (print_address_numeric): Update comments to refer
5418         to sizeof addr, not sizeof pointer.
5419         (x_command): Remove needless whitespace (shorten long line).
5420         
5421         * breakpoint.c (print_one_breakpoint): Formatting clean-up.
5422         (read_memory_nobpt): Ditto.
5423         (ep_is_catchpoint): Ditto.
5424         (ep_is_shlib_catchpoint): Ditto.
5425         (ep_is_exception_catchpoint): Ditto.
5426         (describe_other_breakpoints): Ditto.
5427
5428 Wed Feb 28 20:37:36 2001  Andrew Cagney  <ac131313@redhat.com>
5429
5430         * regcache.h (register_valid): Fix comment documenting valid
5431         states.
5432
5433 Tue Feb 27 23:56:23 2001  Andrew Cagney  <ac131313@redhat.com>
5434
5435         From Steven Johnson:
5436         * regcache.h: New file.
5437         
5438         * value.h (read_register_bytes, read_register_gen)
5439         (write_register_gen, write_register_bytes)
5440         (read_register, read_register_pid)
5441         (read_signed_register, read_signed_register_pid)
5442         (write_register, write_register_pid)
5443         (register_cached, set_register_cached)
5444         (register_changed, register_buffer)
5445         (registers_changed, supply_register): Move declaration from here.
5446         * regcache.h: To here.
5447         * gdbcore.h (registers_fetched): Ditto.
5448         * inferior.h (registers, registers_valid): Ditto.
5449
5450         * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
5451         generic_target_write_pc, write_pc_pid, write_pc,
5452         generic_target_read_sp, read_sp, generic_target_write_sp,
5453         write_sp, generic_target_read_fp, read_fp,
5454         generic_target_write_fp, write_fp): Add note that these functions
5455         will be moved from this file.
5456         
5457         * a29k-tdep.c: Include "regcache.h".
5458         * a68v-nat.c: Ditto.
5459         * abug-rom.c: Ditto.
5460         * alpha-nat.c: Ditto.
5461         * alpha-tdep.c: Ditto.
5462         * alphabsd-nat.c: Ditto.
5463         * arc-tdep.c: Ditto.
5464         * arm-linux-nat.c: Ditto.
5465         * arm-linux-tdep.c: Ditto.
5466         * arm-tdep.c: Ditto.
5467         * blockframe.c: Ditto.
5468         * core-aout.c: Ditto.
5469         * core-sol2.c: Ditto.
5470         * corelow.c: Ditto.
5471         * cpu32bug-rom.c: Ditto.
5472         * cxux-nat.c: Ditto.
5473         * d10v-tdep.c: Ditto.
5474         * d30v-tdep.c: Ditto.
5475         * dbug-rom.c: Ditto.
5476         * dink32-rom.c: Ditto.
5477         * dve3900-rom.c: Ditto.
5478         * findvar.c: Ditto.
5479         * fr30-tdep.c: Ditto.
5480         * frame.c: Ditto.
5481         * go32-nat.c: Ditto.
5482         * h8300-tdep.c: Ditto.
5483         * h8500-tdep.c: Ditto.
5484         * hp300ux-nat.c: Ditto.
5485         * hppa-tdep.c: Ditto.
5486         * hppab-nat.c: Ditto.
5487         * hppah-nat.c: Ditto.
5488         * hppam3-nat.c: Ditto.
5489         * hpux-thread.c: Ditto.
5490         * i386-linux-nat.c: Ditto.
5491         * i386-linux-tdep.c: Ditto.
5492         * i386-tdep.c: Ditto.
5493         * i386aix-nat.c: Ditto.
5494         * i386b-nat.c: Ditto.
5495         * i386bsd-nat.c: Ditto.
5496         * i386gnu-nat.c: Ditto.
5497         * i386ly-tdep.c: Ditto.
5498         * i386m3-nat.c: Ditto.
5499         * i386mach-nat.c: Ditto.
5500         * i386nbsd-nat.c: Ditto.
5501         * i386v4-nat.c: Ditto.
5502         * i387-nat.c: Ditto.
5503         * i387-tdep.c: Ditto.
5504         * i960-tdep.c: Ditto.
5505         * ia64-aix-nat.c: Ditto.
5506         * ia64-linux-nat.c: Ditto.
5507         * ia64-tdep.c: Ditto.
5508         * infptrace.c: Ditto.
5509         * infrun.c: Ditto.
5510         * irix4-nat.c: Ditto.
5511         * irix5-nat.c: Ditto.
5512         * lin-lwp.c: Ditto.
5513         * lin-thread.c: Ditto.
5514         * lynx-nat.c: Ditto.
5515         * m3-nat.c: Ditto.
5516         * m32r-rom.c: Ditto.
5517         * m32r-tdep.c: Ditto.
5518         * m68hc11-tdep.c: Ditto.
5519         * m68k-tdep.c: Ditto.
5520         * m68klinux-nat.c: Ditto.
5521         * m68knbsd-nat.c: Ditto.
5522         * m68knbsd-tdep.c: Ditto.
5523         * m88k-nat.c: Ditto.
5524         * m88k-tdep.c: Ditto.
5525         * mac-nat.c: Ditto.
5526         * mcore-rom.c: Ditto.
5527         * mcore-tdep.c: Ditto.
5528         * mi/mi-main.c: Ditto.
5529         * mips-nat.c: Ditto.
5530         * mips-tdep.c: Ditto.
5531         * mipsm3-nat.c: Ditto.
5532         * mipsv4-nat.c: Ditto.
5533         * mn10200-tdep.c: Ditto.
5534         * mn10300-tdep.c: Ditto.
5535         * monitor.c: Ditto.
5536         * ns32km3-nat.c: Ditto.
5537         * ns32knbsd-nat.c: Ditto.
5538         * ocd.c: Ditto.
5539         * pa64solib.c: Ditto.
5540         * ppc-bdm.c: Ditto.
5541         * ppc-linux-nat.c: Ditto.
5542         * ppc-linux-tdep.c: Ditto.
5543         * ppcbug-rom.c: Ditto.
5544         * ppcnbsd-nat.c: Ditto.
5545         * ptx4-nat.c: Ditto.
5546         * regcache.c: Ditto.
5547         * remote-adapt.c: Ditto.
5548         * remote-array.c: Ditto.
5549         * remote-bug.c: Ditto.
5550         * remote-e7000.c: Ditto.
5551         * remote-eb.c: Ditto.
5552         * remote-es.c: Ditto.
5553         * remote-est.c: Ditto.
5554         * remote-hms.c: Ditto.
5555         * remote-mips.c: Ditto.
5556         * remote-mm.c: Ditto.
5557         * remote-nindy.c: Ditto.
5558         * remote-os9k.c: Ditto.
5559         * remote-rdi.c: Ditto.
5560         * remote-rdp.c: Ditto.
5561         * remote-sds.c: Ditto.
5562         * remote-sim.c: Ditto.
5563         * remote-st.c: Ditto.
5564         * remote-udi.c: Ditto.
5565         * remote-utils.c: Ditto.
5566         * remote-vx.c: Ditto.
5567         * remote-vx29k.c: Ditto.
5568         * remote-vx68.c: Ditto.
5569         * remote-vx960.c: Ditto.
5570         * remote-vxmips.c: Ditto.
5571         * remote-vxsparc.c: Ditto.
5572         * remote.c: Ditto.
5573         * rom68k-rom.c: Ditto.
5574         * rs6000-nat.c: Ditto.
5575         * rs6000-tdep.c: Ditto.
5576         * sh-tdep.c: Ditto.
5577         * sh3-rom.c: Ditto.
5578         * sol-thread.c: Ditto.
5579         * solib-svr4.c: Ditto.
5580         * somsolib.c: Ditto.
5581         * sparc-nat.c: Ditto.
5582         * sparc-tdep.c: Ditto.
5583         * sparcl-tdep.c: Ditto.
5584         * sparclet-rom.c: Ditto.
5585         * sun3-nat.c: Ditto.
5586         * sun386-nat.c: Ditto.
5587         * symm-nat.c: Ditto.
5588         * target.c: Ditto.
5589         * thread-db.c: Ditto.
5590         * thread.c: Ditto.
5591         * tic80-tdep.c: Ditto.
5592         * tracepoint.c: Ditto.
5593         * ultra3-nat.c: Ditto.
5594         * umax-xdep.c: Ditto.
5595         * uw-thread.c: Ditto.
5596         * v850-tdep.c: Ditto.
5597         * v850ice.c: Ditto.
5598         * valops.c: Ditto.
5599         * w65-tdep.c: Ditto.
5600         * w89k-rom.c: Ditto.
5601         * win32-nat.c: Ditto.
5602         * wince.c: Ditto.
5603         * z8k-tdep.c: Ditto.
5604
5605 2001-02-28  Matt Hiller  <hiller@redhat.com>    
5606         
5607         * MAINTAINERS: Add Matt Hiller to Write After Approval list.
5608
5609 2001-02-27  Matt Hiller  <hiller@redhat.com>
5610
5611         * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
5612         (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
5613         mn10300_stab_reg_to_regnum.
5614
5615 Tue Feb 27 16:56:13 2001  David Taylor  <taylor@redhat.com>
5616
5617         * symtab.c (search_symbols): Fix off by one error in test for
5618         error.
5619
5620 2001-02-23  Andrew Cagney  <ac131313@redhat.com>
5621
5622         * config/sparc/sp64linux.mt: New file.
5623         * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
5624         * configure.host: Recognize sparc64-*-linux* as a linux host.
5625
5626         From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
5627         * config/sparc/tm-sp64linux.h: New file.
5628         
5629 2001-02-24  Kevin Buettner  <kevinb@redhat.com>
5630
5631         * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
5632         with call to internal_error().
5633         * dbxread.c (process_one_symbol): Likewise.
5634         * exec.c (build_section_table, xfer_memory): Likewise.
5635         * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
5636         Likewise.
5637         * hpread.c (hpread_type_translate, hpread_read_array_type)
5638         (hpread_type_lookup): Likewise.
5639         * i386-tdep.c (gdb_print_insn_i386): Likewise.
5640         * i960-tdep.c (mem): Likewise
5641         * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
5642         * infptrace.c (child_resume): Likewise.
5643         * infttrace.c (_initialize_infttrace): Likewise.
5644         * language.c (binop_result_type, add_language): Likewise.
5645         * lynx-nat.c (store_inferior_registers): Likewise.
5646         * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
5647         * mdebugread.c (parse_partial_symbols): Likewise.
5648         * monitor.c (monitor_printf_noecho, monitor_printf)
5649         (monitor_dump_regs): Likewise.
5650         * ocd.c (stu_put_packet): Likewise.
5651         * printcmd.c (decode_format, print_scalar_formatted): Likewise.
5652         * remote-bug.c (bug_open): Likewise.
5653         * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
5654         * remote-es.c (es1800_read_bytes): Likewise.
5655         * remote-mips.c (common_breakpoint): Likewise.
5656         * remote-rdp.c (send_rdp): Likewise.
5657         * remote-sds.c (putmessage): Likewise.
5658         * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
5659         Likewise.
5660         * sparcl-tdep.c (sparclite_download): Likewise.
5661         * symtab.c (lookup_partial_symbol): Likewise.
5662         * target.c (push_target, pop_target, initialize_targets): Likewise.
5663         * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
5664         Likewise.
5665         * valprint.c (print_decimal, print_longest, print_longest)
5666         (strcat_longest): Likewise.
5667         * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
5668         * xmodem.c (xmodem_send_packet): Likewise.
5669         * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
5670         * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
5671         * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
5672         (STORE_RETURN_VALUE): Likewise.
5673         * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
5674         * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
5675         * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
5676         Likewise.
5677
5678 2001-02-23  Andrew Cagney  <ac131313@redhat.com>
5679
5680         * CONTRIBUTE: Document how to cite a problem report.
5681         * TODO: Note need to replace CONTRIBUTE with generated file.
5682
5683         * CONTRIBUTE: Mention that patches do not need to include the
5684         generated files gdbarch.h and gdbarch.c.
5685         
5686 2001-02-21  Andrew Cagney  <ac131313@redhat.com>
5687
5688         * value.h (get_saved_register): Move from here.
5689         * frame.h: To here.
5690
5691 2001-02-21  Kevin Buettner  <kevinb@redhat.com>
5692
5693         * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
5694         (in_solib_dynsym_resolve_code): Add declaration.
5695         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
5696         in_solib_dynsym_resolve_code() rather than
5697         in_svr4_dynsym_resolve_code().  Also, removed the ifdefs
5698         which caused this macro to only be defined when
5699         SVR4_SHARED_LIBS is defined.
5700         * solib.c (in_solib_dynsym_resolve_code): New function.
5701         * solist.h (struct target_so_ops): Add new member
5702         in_dynsym_resolve_code.
5703         * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
5704         in_svr4_dynsym_resolve_code.  Also, made static.
5705         (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
5706         member in aix5_so_ops.
5707         * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
5708         in_svr4_dynsym_resolve_code.  Also, added second version
5709         of this function which will be used when SVR4_SHARED_LIBS
5710         is not defined.
5711         (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
5712         member in svr4_so_ops.
5713
5714         * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
5715         config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
5716         config/ia64/xm-aix.h: New files.
5717         * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
5718         (ia64_aix_sigcontext_register_address): New declaration.
5719         (ia64_gdbarch_init): Provide for initialization of 
5720         sigcontext_register_address member of struct tdep when
5721         on target is detected to be running AIX.
5722         * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
5723         this list.
5724
5725 2001-02-20  Kevin Buettner  <kevinb@redhat.com>
5726
5727         * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
5728         * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
5729         for thread support instead of linux-thread.o and lin-thread.o.
5730         * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
5731         ATTACH_LWP): Define to use the following lin-lwp.c functions...
5732         (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
5733         lin_lwp_attach_lwp): Declare.
5734
5735 2001-02-20  Andrew Cagney  <ac131313@redhat.com>
5736
5737         * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
5738         formatting.
5739
5740 2001-02-20  Kevin Buettner  <kevinb@redhat.com>
5741
5742         * solib-aix5.c (solib-svr4.h): Remove include.
5743         (solib_break_names): Delete names which aren't actually
5744         used by AIX5.
5745         (bkpt_names): Remove.
5746         (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
5747         to STREQ() with equivalent calls to strcmp().
5748         (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
5749         aix5_solib_create_inferior_hook): Revise comments.
5750         (enable_break): Remove old ``bkpt_names'' code.
5751
5752 2001-02-19  Andrew Cagney  <ac131313@redhat.com>
5753
5754         * Makefile.in (SFILES): Add frame.c .
5755         (COMMON_OBS): Add frame.o .
5756         (frame.o): New target.
5757
5758         * frame.c (find_saved_register): 
5759         (default_get_saved_register): 
5760         (get_saved_register): 
5761         (read_relative_register_raw_bytes_for_frame): 
5762         (read_relative_register_raw_bytes): Moved to here.
5763         * regcache.c: From here.
5764
5765 2001-02-20  Kevin Buettner  <kevinb@redhat.com>
5766
5767         * solib-aix5.c: New file.
5768
5769 2001-02-20  Martin M. Hunt  <hunt@redhat.com>
5770
5771         * solib.c (info_sharedlibrary_command): Don't assume pointers
5772         are the same size of long, call longest_local_hex_string_custom().
5773
5774         * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
5775         extract_signed_integer() should be called instead of
5776         extract_address().
5777
5778 2001-02-20  Martin M. Hunt  <hunt@redhat.com>   
5779         
5780         * MAINTAINERS: Add Martin Hunt to Write After Approval list.
5781
5782 2001-02-19  Andrew Cagney  <ac131313@redhat.com>
5783
5784         Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
5785         * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
5786         then floating point registers are 8 bytes.
5787
5788 2001-02-19  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
5789
5790         * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to 
5791         accomodate 64-bit addresses.
5792
5793 2001-02-19  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5794
5795         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
5796         * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
5797         lookup_symbol, when trying to find a symbol with a mangled name,
5798         to avoid infinite recursion.
5799
5800 2001-02-18  Andrew Cagney  <ac131313@redhat.com>
5801
5802         * TODO (5.2): Mention G++ 3.0 ABI.  General cleanups.
5803
5804 2001-02-19  Jonathan Larmour  <jlarmour@redhat.com>
5805
5806         * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
5807         (save_prologue_cache): Ditto.
5808
5809 2001-02-19  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5810
5811         From: innadadadavida@yahoo.com:
5812         * partial-stab.h (switch): Check that pst is not null
5813         before dereferencing it.
5814
5815 2001-02-19  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
5816
5817         From Andrew Cagney  <cagney@b1.cygnus.com>:
5818         * symfile.c (add_symbol_file_command): Always initialize
5819         my_cleanup using a NULL cleanup.
5820
5821 2001-02-19  Eli Zaretskii  <eliz@is.elta.co.il>
5822
5823         * demangle.c (demangling_style_names): New variable.
5824         (_initialize_demangler): Fill demangling_style_names with the
5825         names of known demangling styles from libiberty_demanglers[].  Use
5826         add_set_enum_cmd instead of add_set_cmd, to get completion on
5827         demangling style names.
5828
5829         * proc-api.c (_initialize_proc_api): Make `procfs-file' use
5830         file-name completion.
5831
5832         * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
5833
5834         * solib.c (_initialize_solib): Ditto for `solib-search-path' and
5835         `solib-absolute-prefix'.
5836
5837         * tracepoint.c (_initialize_tracepoint): Ditto for
5838         `save-tracepoints'.
5839
5840         * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
5841
5842         * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
5843         file-name completion.
5844
5845         * infcmd.c (_initialize_infcmd): Make the following commands use
5846         the file-name completer: `tty', `args', `path', `paths', and
5847         `run'.
5848
5849 2001-02-18  Eli Zaretskii  <eliz@is.elta.co.il>
5850
5851         * go32-nat.c: Include i387-nat.h.
5852         (fetch_register): New function, uses some of the guts of
5853         go32_fetch_registers and calls i387_supply_register.
5854         (go32_fetch_registers): Most of the code moved into
5855         fetch_register.  Use i387_supply_fsave.
5856         (store_register): Use i387_fill_fsave instead of custom code.
5857         (go32_store_registers): Use i387_fill_fsave.
5858
5859         * Makefile.in (go32-nat.o): Depend on i387-nat.h.
5860
5861         * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
5862
5863         * completer.c (gdb_completer_file_name_break_characters): Remove
5864         slash from file-name break characters.
5865         [__MSDOS__]: Special definition for DOS/Windows file names.
5866         (line_completion_function): When completing on file names, bump
5867         `p' to the first file-name constituent character of `word', before
5868         invoking the completer.
5869
5870 2001-02-17  Mark Kettenis  <kettenis@gnu.org>
5871
5872         * i387-nat.c: Include "i387-nat.h".  Use regnum instead of regno
5873         consistently for parameter names.  Fix comments accordingly.
5874         (i387_supply_register): New function.
5875         (i387_supply_fsave): Implement using i387_supply_register.
5876         * i387-nat.h: Use regnum instead of regno consistently for
5877         parameter names.  Fix comments accordingly.
5878         (i387_supply_register): New prototype.
5879
5880 2001-02-16  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
5881
5882         * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT 
5883         instead of TARGET_PTR_BIT (to support Harvard architectures).
5884
5885 2001-02-16  Andrew Cagney  <ac131313@redhat.com>
5886
5887         From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
5888         * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib 
5889         argument to parameter list and to call in order to conform to 
5890         to_xfer_memory field of struct target_ops.
5891
5892 2001-02-12  Michael Chastain  <chastain@redhat.com>
5893
5894         * somsolib.c (som_solib_add_solib_objfile): Do not use
5895         section relocation feature of syms_from_objfile.  Do my own
5896         section relocation, offsetting each section of the som by
5897         either text_addr - text_link_addr or data_start.
5898
5899 2001-02-16  Andrew Cagney  <ac131313@redhat.com>
5900
5901         * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
5902
5903 2001-02-16  Andrew Cagney  <ac131313@redhat.com>
5904
5905         * MAINTAINERS (paper trail): Update.
5906
5907 2001-02-16  Mark Kettenis  <kettenis@gnu.org>
5908
5909         * target.h (target_fetch_registers): Fix comment.
5910
5911 2001-02-15  Andrew Cagney  <ac131313@redhat.com>
5912
5913         * f-exp.y: Include <ctype.h>.
5914         (parse_number): Ensure that ``i'' is always initialized.
5915
5916 2001-02-14  Jim Kingdon  <jkingdon@engr.sgi.com>
5917
5918         * MAINTAINERS: Add myself to paper trail section.
5919
5920 2001-02-14  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
5921
5922         * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
5923         * configure, config.in: Regenerate.
5924         * corelow.c: Include <sys/file.h> if present.
5925
5926 2001-02-14  Andrew Cagney  <ac131313@redhat.com>
5927
5928         * inflow.c (terminal_ours_1): Initialize ``osigtou''.  Only
5929         declare when have SIGTTOU.
5930
5931 2001-02-14  Eli Zaretskii  <eliz@is.elta.co.il>
5932
5933         * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
5934
5935 2001-02-12  Jim Kingdon  <jkingdon@engr.sgi.com>
5936
5937         * MAINTAINERS: Update my email address.
5938
5939 2001-02-11  Eli Zaretskii  <eliz@is.elta.co.il>
5940
5941         * NEWS: Document that "info symbol" works with COFF debug info and
5942         its variants.
5943
5944         * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
5945         symbols whose SYMBOL_BFD_SECTION is NULL.
5946
5947 2001-02-10  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5948
5949         Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
5950         * xcoffsolib.c (xcoff_solib_address):  Renamed from
5951         pc_load_segment_name.  Return NULL if address is not in a shared
5952         library.  Cleanup shared library name construction, using xasprintf.
5953         Format shared library member names consistent with format in exec.c.
5954         (solib_info):  Format shared library member names consistent with
5955         format in exec.c.
5956         * config/rs6000/nm-rs6000.h:  Replace PC_LOAD_SEGMENT with PC_SOLIB,
5957         using xcoff_solib_address for PC_SOLIB definition.
5958         * stack.c (print_frame):  Remove PC_LOAD_SEGMENT code, no longer
5959         needed.
5960
5961 2001-02-10  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5962
5963         * mipsread.c (read_alphacoff_dynamic_symtab):  Replace alloca calls
5964         with xmalloc calls and cleanups.
5965
5966 2001-02-10  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5967
5968         * rs6000-nat.c (child_xfer_memory):  Add missing parameter
5969         'struct mem_attrib *' required by 2001-01-23 change.
5970
5971 2001-02-08  Jim Kingdon  <jkingdon@engr.sgi.com>
5972
5973         Updates to "make TAGS":
5974         * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
5975         arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
5976         tahoe-tdep.c.
5977         (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
5978
5979 2001-02-08  Eli Zaretskii  <eliz@is.elta.co.il>
5980
5981         * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
5982
5983 Wed Feb  7 22:39:26 2001  Andrew Cagney  <cagney@redhat.com>
5984
5985         From Dean Luick <luick@cray.com>:
5986         * defs.h (continuation): Remove unused global variable.
5987
5988 Wed Feb  7 22:28:31 2001  Andrew Cagney  <cagney@redhat.com>
5989
5990         * configure.tgt: Remove references to convex, pyramid, altos and
5991         tahoe.
5992         * configure.host: Ditto.
5993         * MAINTAINERS: Ditto.
5994         * NEWS: Update.
5995
5996         * tahoe-tdep.c: Delete obsolete file.
5997         * pyr-xdep.c: Ditto.
5998         * pyr-tdep.c: Ditto.
5999         * convex-tdep.c: Ditto.
6000         * convex-xdep.c: Ditto.
6001         * config/tahoe/xm-tahoe.h: Ditto.
6002         * config/tahoe/tm-tahoe.h: Ditto.
6003         * config/tahoe/tahoe.mt: Ditto.
6004         * config/tahoe/tahoe.mh: Ditto.
6005         * config/pyr/xm-pyr.h: Ditto.
6006         * config/pyr/tm-pyr.h: Ditto.
6007         * config/pyr/pyramid.mt: Ditto.
6008         * config/pyr/pyramid.mh: Ditto.
6009         * config/m68k/xm-altos.h: Ditto.
6010         * config/m68k/tm-altos.h: Ditto.
6011         * config/m68k/altos.mt: Ditto.
6012         * config/m68k/altos.mh: Ditto.
6013         * config/convex/xm-convex.h: Ditto.
6014         * config/convex/tm-convex.h: Ditto.
6015         * config/convex/convex.mt: Ditto.
6016         * config/convex/convex.mh: Ditto.
6017         * config/convex/Convex.notes: Ditto.
6018         * config/arm/xm-arm.h: Ditto.
6019         * config/arm/nm-arm.h: Ditto.
6020         * config/arm/arm.mt: Ditto.
6021         * config/arm/arm.mh: Ditto.
6022         * arm-convert.s: Ditto.
6023         * arm-xdep.c: Ditto.
6024         * altos-xdep.c: Ditto.
6025
6026 Wed Feb  7 19:41:21 2001  Andrew Cagney  <cagney@redhat.com>
6027
6028         * defs.h (internal_error, internal_verror): Add __FILE__ and
6029         __LINE__ parameter.
6030         * utils.c (internal_error, internal_verror): Update.
6031
6032         * v850-tdep.c: Update calls to internal_error.
6033         * utils.c: Ditto.
6034         * ui-out.c: Ditto.
6035         * ui-file.c: Ditto.
6036         * target.h: Ditto.
6037         * symtab.h: Ditto.
6038         * symm-nat.c: Ditto.
6039         * sparc-tdep.c: Ditto.
6040         * source.c: Ditto.
6041         * serial.c: Ditto.
6042         * rs6000-tdep.c: Ditto.
6043         * rs6000-nat.c: Ditto.
6044         * remote.c: Ditto.
6045         * remote-vx.c: Ditto.
6046         * remote-sim.c: Ditto.
6047         * remote-mips.c: Ditto.
6048         * regcache.c: Ditto.
6049         * objfiles.h: Ditto.
6050         * objfiles.c: Ditto.
6051         * mn10300-tdep.c: Ditto.
6052         * mips-tdep.c: Ditto.
6053         * maint.c: Ditto.
6054         * m68k-tdep.c: Ditto.
6055         * m3-nat.c: Ditto.
6056         * language.c: Ditto.
6057         * infptrace.c: Ditto.
6058         * inferior.h: Ditto.
6059         * infcmd.c: Ditto.
6060         * ia64-tdep.c: Ditto.
6061         * i386-tdep.c: Ditto.
6062         * i386-linux-nat.c: Ditto.
6063         * hppah-nat.c: Ditto.
6064         * go32-nat.c: Ditto.
6065         * findvar.c: Ditto.
6066         * f-lang.c: Ditto.
6067         * elfread.c: Ditto.
6068         * event-loop.c: Ditto.
6069         * dwarf2read.c: Ditto.
6070         * dsrec.c: Ditto.
6071         * d30v-tdep.c: Ditto.
6072         * d10v-tdep.c: Ditto.
6073         * cli/cli-setshow.c: Ditto.
6074         * cli/cli-script.c: Ditto.
6075         * ch-exp.c: Ditto.
6076         * breakpoint.c: Ditto.
6077         * ax-gdb.c: Ditto.
6078         * arch-utils.c: Ditto.
6079         * a29k-tdep.c: Ditto.
6080         * gdb_assert.h: Ditto.
6081         * gdbarch.sh: Ditto.
6082         * gdbarch.h, gdbarch.c: Re-generate.
6083         
6084 2001-02-07  Andrew Cagney  <ac131313@redhat.com>
6085
6086         From Mark Kettenis <kettenis@gnu.org>:
6087         * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
6088
6089 2001-02-07  Andrew Cagney  <ac131313@redhat.com>
6090
6091         * remote-sim.c (dump_mem): Cleanup printf format argument.
6092         * MAINTAINERS: Update, mn10300-elf now builds.
6093
6094 2001-02-07  Mark Kettenis  <kettenis@gnu.org>
6095
6096         * event-top.c: Remove duplicate #include <signal.h>.
6097
6098 2001-02-06  Andrew Cagney  <ac131313@redhat.com>
6099
6100         * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
6101         allocated buffer.
6102         (save_inferior_pid): Restore the PID from that tempoary
6103         buffer. Delete the buffer.
6104         * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
6105
6106 2001-02-06  Andrew Cagney  <ac131313@redhat.com>
6107
6108         * MAINTAINERS: Add ``The Obvious Fix Rule''.
6109
6110 2001-02-06  Andrew Cagney  <ac131313@redhat.com>
6111
6112         * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
6113
6114 2001-02-06  Andrew Cagney  <ac131313@cygnus.com>
6115
6116         * gdbarch.sh: Include "gdb_assert.h".
6117         (struct gdbarch): Change ``nr_data'' to unsigned.
6118         (alloc_gdbarch_data, free_gdbarch_data): New functions.
6119         (gdbarch_free): Free the data-pointer vector.  Use xfree to delete
6120         architecture vector.
6121         (struct gdbarch_data, struct gdbarch_data_registration): Move init
6122         method to gdbarch_data.  Add free method, make index unsigned.
6123         (struct gdbarch_data_registry): Make nr unsigned.
6124         (register_gdbarch_data): Add free parameter. Store in
6125         gdbarch_data.
6126         (init_gdbarch_data): Use set_gdbarch_data.
6127         (set_gdbarch_data): New function.
6128         
6129         * gdbarch.h, gdbarch.c: Re-generate.
6130         
6131 2001-02-06  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
6132
6133         * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
6134         fprintf_filtered with correct arguments.
6135
6136 2001-02-06  Michael Snyder  <msnyder@makita.cygnus.com>
6137         Submitted by Paul Hilfinger (hilfingr@gnat.com) 
6138         and Andrei Petrov (and@genesyslab.com).
6139         * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
6140         must be allocated dynamically, since these are no longer constants.
6141         * infcmd.c: Ditto.
6142         * regcache.c: Ditto.
6143         * remote.c: Ditto.
6144         * sol-thread.c: Ditto.
6145         * valops.c: Ditto.
6146         * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
6147         work-around for a missing Sun header file in solaris for sparc64.
6148
6149 2001-02-04  Philip Blundell  <philb@gnu.org>
6150
6151         * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
6152         thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
6153         * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
6154         GET_THREAD_SIGNALS): Define.
6155         * arm-linux-nat.c (fill_gregset): Correct type of argument.
6156         (supply_gregset): Likewise.
6157         (fill_fpregset): Likewise.
6158         (supply_fpregset): Likewise.
6159
6160 Tue Feb  6 11:58:57 2001  David Taylor  <taylor@redhat.com>
6161
6162         * valops.c (value_cast): If casting a scalar to a pointer, do not
6163         issue a message about truncation unless it exceeds the length of
6164         an address, not the length of a pointer.  This is because what the
6165         user gives us is an address, not a pointer, and we will ultimately
6166         convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
6167         to a pointer.  This allows things like "print *(int *)0x01000234"
6168         to work without generating a misleading message on a target having
6169         two byte pointers and four byte addresses.
6170
6171 2001-02-05  Christopher Faylor  <cgf@cygnus.com>
6172
6173         * win32-nat.c: Change PTR to void * throughout.
6174
6175 2001-02-05  J.T. Conklin  <jtc@redback.com>
6176
6177         * signals.h: Removed.
6178         * event-top.c (#include <signal.h>): Changed from signals.h.
6179         * inflow.c: Likewise.
6180         * mac-xdep.c: Likewise.
6181         * ser-pipe.c: Likewise.
6182         * ser-tcp.c: Likewise.
6183         * standalone.c: Likewise.
6184         * top.c: Likewise.
6185         * utils.c: Likewise.
6186         * Makefile.in: Removed signals.h from dependencies.
6187
6188 2001-02-05  Christopher Faylor  <cgf@cygnus.com>
6189
6190         Change suggested by Dean Luick <luick@cray.com>
6191         * inferior.h (step_over_calls_kind): Remove trailing comma from
6192         last enum element.
6193         (step_over_calls): Declare as extern rather than global.
6194
6195 2001-02-05  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
6196
6197         * sh-tdep.c: Update copyright.
6198         (sh_extract_return_value): Rewrite.
6199         (sh3e_sh4_extract_return_value): New function.
6200         (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
6201         version of the function for sh3e and sh4 CPUs.
6202
6203 2001-02-05  Michael Chastain  <chastain@redhat.com>
6204
6205         * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
6206         to conform with interface change.
6207
6208 2001-02-04  Eli Zaretskii  <eliz@is.elta.co.il>
6209
6210         * config/djgpp/fnchange.lst: Tweak to make consistent with the
6211         new files.
6212
6213         * config/djgpp/djconfig.sh: Use explicit absolute file name when
6214         invoking `find'.
6215
6216         * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
6217         UART_FIFO_WORKS is defined.  Otherwise use outportb.
6218         From Francisco Pastor <fpastor.etra-id@etra.es>
6219
6220         * go32-nat.c (go32_xfer_memory): Make the argument list consistent
6221         with target.h's `to_xfer_memory' member.
6222
6223 2001-02-02  J.T. Conklin  <jtc@redback.com>
6224
6225         * ppc-bdm.c (#include <signal.h>): Removed.
6226         * remote-array.c: Likewise.
6227         * remote-bug.c: Likewise.
6228         * remote-e7000.c: Likewise.
6229         * remote-mips.c: Likewise.
6230         * remote-os9k.c: Likewise.
6231         * remote-st.c: Likewise.
6232         * remote-udi.c: Likewise.
6233         * remote-vx29k.c: Likewise.
6234         * remote-vx68.c: Likewise.
6235         * remote-vx960.c: Likewise.
6236         * remote-vxmips.c: Likewise.
6237         * remote-vxsparc.c: Likewise.
6238
6239 2001-02-02  John Moore  <jmoore@redhat.com>
6240
6241         * remote-utils.h (sr_set_device): Changed free() to xfree() where 
6242         appropriate.  Also changed Copyright to include 2001.
6243         * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
6244         * value.h (value_free): Likewise.
6245         * gdbarch.sh (gdbarch_free): Likewise.
6246         * gdbarch.c, gdbarch.h: Regenerated.
6247
6248 2001-02-02  John Moore  <jmoore@redhat.com>
6249
6250         * cli/cli-cmds.c (apropos_command): Changed occurance of free() to 
6251         xfree().  Also changed Copyright to include 2001.
6252
6253 2001-02-02  J.T. Conklin  <jtc@redback.com>
6254
6255         * monitor.c (#include "gdb_wait.h"): Removed.
6256         * ocd.c: Likewise.
6257         * ppc-bdm.c: Likewise.
6258         * remote-adapt.c: Likewise.
6259         * remote-array.c: Likewise.
6260         * remote-bug.c: Likewise.
6261         * remote-e7000.c: Likewise.
6262         * remote-eb.c: Likewise.
6263         * remote-es.c: Likewise.
6264         * remote-mips.c: Likewise.
6265         * remote-mm.c: Likewise.
6266         * remote-nindy.c: Likewise.
6267         * remote-os9k.c: Likewise.
6268         * remote-rdi.c: Likewise.
6269         * remote-rdp.c: Likewise.
6270         * remote-sds.c: Likewise.
6271         * remote-sim.c: Likewise.
6272         * remote-st.c: Likewise.
6273         * remote-udi.c: Likewise.
6274         * remote-vx.c: Likewise.
6275         * remote-vx29k.c: Likewise.
6276         * remote-vx68.c: Likewise.
6277         * remote-vx960.c: Likewise.
6278         * remote-vxmips.c: Likewise.
6279         * remote-vxsparc.c: Likewise.
6280         * remote.c: Likewise.
6281         * ser-pipe.c: Likewise.
6282         * ser-unix.c: Likewise.
6283         * Makefile.in: Updated dependencies.
6284
6285 2001-01-31  David Smith  <dsmith@redhat.com>
6286
6287         * event-loop.c: Change inclusion of string.h to gdb_string.h and
6288         updated the copyright notice.
6289         * ser-pipe.c: Ditto.
6290         * mi/mi-cmds.c: Ditto.
6291         * mi/mi-console.c: Ditto.
6292         * mi/mi-getopt.c: Ditto.
6293         * mi/mi-parse.c: Ditto.
6294
6295 2001-01-31  David Smith  <dsmith@redhat.com>
6296
6297         * MAINTAINERS: Add David Smith to Write After Approval list.
6298
6299 Tue Jan 30 15:43:08 2001  Andrew Cagney  <cagney@cygnus.com>
6300
6301         * cli/cli-utils.c (putchar_filtered): Move function from here.
6302         * utils.c (putchar_filtered): To here.
6303         * cli/cli-utils.h (putchar_filtered): Move declaration from here.
6304         * defs.h (putchar_filtered): To here.
6305         
6306 Tue Jan 30 17:27:11 2001  Andrew Cagney  <cagney@redhat.com>
6307
6308         * configure.in (AC_CHECK_FUNCS): Replace vfork test with
6309         AC_FUNC_VFORK macro.
6310         * config.in, configure: Re-generate.
6311
6312         * gdb_vfork.h: New file.
6313         * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
6314         * fork-child.c (fork_inferior): Ditto.
6315         
6316 Tue Jan 30 17:09:07 2001  Andrew Cagney  <cagney@redhat.com>
6317
6318         * defs.h (strsave): Delete declaration.
6319         * utils.c (strsave): Delete definition.
6320         * TODO (strsave): Update
6321
6322         * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
6323         * sparcl-tdep.c (sparclite_open): Ditto.
6324         * mips-tdep.c (mips_set_processor_type_command):  Ditto.
6325         (_initialize_mips_tdep):  Ditto.
6326         * solib.c (solib_open):  Ditto.
6327         * symfile.c (add_filename_language):  Ditto.
6328         (set_ext_lang_command):  Ditto.
6329         * source.c (init_source_path):  Ditto.
6330         (mod_path):  Ditto.
6331         * sh3-rom.c (sh3_open):  Ditto.
6332         (sh3e_open):  Ditto.
6333         * serial.c (serial_open):  Ditto.
6334         * remote-mips.c (common_open):  Ditto.
6335         * monitor.c (monitor_open):  Ditto.
6336         * m32r-rom.c (m32r_upload_command):  Ditto.
6337         * infcmd.c (path_command):  Ditto.
6338         * f-exp.y (parse_number):  Ditto.
6339         * breakpoint.c (create_longjmp_breakpoint):  Ditto.
6340         (create_thread_event_breakpoint):  Ditto.
6341         * arc-tdep.c (arc_set_cpu_type_command):  Ditto.
6342         (_initialize_arc_tdep):  Ditto.
6343
6344 Tue Jan 30 15:14:26 2001  Andrew Cagney  <cagney@skil>
6345
6346         * cli/cli-script.c (define_command): Check for a bad hook value in
6347         switch statement.
6348
6349 2001-01-30  J.T. Conklin  <jtc@redback.com>
6350
6351         * configure/sh/embed.mt: New file.
6352         * configure/sh/linux.mt: New file.
6353         * configure/sh/sh.mt: Removed.
6354         * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
6355         (sh-*-*): Removed.
6356
6357 2001-01-29  Michael Chastain  <chastain@redhat.com>
6358
6359         * symtab.c (block_lookup_symbol): Use 'namespace' parameter in
6360         symbol comparisons in binary search.
6361
6362 2001-01-27  Christopher Faylor  <cgf@cygnus.com>
6363
6364         * win32-nat.c (child_xfer_memory): Add missing argument required by
6365         2001-01-23 change.
6366
6367 2001-01-27  Mark Kettenis  <kettenis@gnu.org>
6368
6369         * ui-out.c (do_list_end): New function.
6370         (make_cleanup_ui_out_list_end): New function.
6371         * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
6372         * stack.c (print_frame) [UI_OUT]: Call
6373         make_cleanup_ui_out_list_end to make sure we mark the end of the
6374         list if we do a non-local exit.  At the end of the function,
6375         instead of calling ui_out_list_end directly, let do_cleanups
6376         handle it.
6377
6378 2001-01-26  Fernando Nasser  <fnasser@redhat.com>
6379
6380         Fix double parsing of filenames passed as command line arguments
6381         to GDB (causes weird handling of escape characters).
6382         Also, remove dependencies on the CLI from libgdb.
6383         * call-cmds.h: Remove declaration of exec_file_command().
6384         * gdbcore.h: Remove declaration of exec_file_command().
6385         Add declarations for exec_open() and exec_file_clear().
6386         * symfile.h: Add declarations for symbol_file_add_main() and
6387         symbol_file_clear().
6388         * exec.c (exec_open): New function. Implements to_open for exec
6389         targets.
6390         (exec_file_clear): New function. Makes GDB forget about a previously
6391         specified executable file.
6392         (exec_file_attach): Move parsing of arguments from here ...
6393         (exec_file_command): ... to here.
6394         (init_exec_ops): Use exec_open(), not exec_file_command() to
6395         implement to_open for exec targets.
6396         * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
6397         with default values.  Used when the file name has already been parsed.
6398         (symbol_file_clear): New function. Makes GDB forget about previously
6399         read symbols.
6400         (symbol_file_command): Call the above function instead of inline code.
6401         * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
6402         "call-cmds.h".
6403         (captured_main): Call exec_file_attach() and symbol_file_add_main()
6404         instead of exec_file_command() and symbol_file_command().
6405         (captured_main): Add comment.
6406         * corefile.c: Include "symfile.h".
6407         (core_file_command): Call symbol_file_add_main() instead of
6408         symbol_file_command().
6409         (reopen_exec_file): Call exec_open() instead of exec_file_command().
6410         * infcmd.c: Include "symfile.h".
6411         (attach_command): Call symbol_file_add_main() instead of 
6412         symbol_file_command().
6413         * infrun.c: Remove comment about the inclusion of "symfile.h",
6414         not any longer appropriate.
6415         (follow_exec): Call symbol_file_add_main() instead of 
6416         symbol_file_command().
6417         * remote-es.c: Include "symfile.h".
6418         (es1800_load): Call symbol_file_add_main() instead of 
6419         symbol_file_command().
6420         * remote-vx.c: Remove comment about the inclusion of "symfile.h",
6421         not any longer appropriate.
6422         (vx-wait): Call symbol_file_add_main() instead of 
6423         symbol_file_command().
6424         * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
6425         instead of symbol_file_command().
6426         * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
6427         symbol_file_add_main() instead of exec_file_command() and
6428         symbol_file_command().
6429         * Makefile.in: Update dependencies.
6430
6431 2001-01-26  Jeff Holcomb  <jeffh@redhat.com>
6432
6433         * remote-udi.c (udi_open): Change strdup to xstrdup.
6434         * thread.c (thread_apply_all_command): Change strdup to xstrdup.
6435         Update copyright message.
6436         * varobj.c (delete_variable_1): Likewise.
6437
6438         * gdb_string.h: Remove declaration of strdup.  Update copyright
6439         message.
6440         * config/xm-mpw.h: Likewise.
6441         * config/i386/xm-i386mach.h: Likewise.
6442         * config/m68k/xm-apollo68b.h: Likewise.
6443         * config/m68k/xm-hp300bsd.h: Likewise.
6444         * config/rs6000/xm-rs6000.h: Likewise.
6445         * config/vax/xm-vaxult.h: Remove declaration of strdup.
6446         * config/vax/xm-vaxult2.h: Likewise.
6447
6448 2001-01-26  Jeff Holcomb  <jeffh@redhat.com>
6449
6450         * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
6451
6452 2001-01-25  J.T. Conklin  <jtc@redback.com>
6453
6454         * target.c (target_xfer_memory_partial): Return -1 on failure due
6455         to invalid access mode attribute.
6456
6457 2001-01-25  Christopher Faylor  <cgf@cygnus.com>
6458
6459         * win32-nat.c (_initialize_core_win32): Prototype correctly.
6460
6461 2001-01-25  Mark Kettenis  <kettenis@gnu.org>
6462
6463         * config/alpha/tm-fbsd.h: Update copyright.
6464         (USE_STRUCT_CONVENTION): Define in terms of
6465         alphabsd_use_struct_convention.
6466         * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
6467         * alphafbsd-tdep.c: New file.
6468
6469 2001-01-24  Fernando Nasser  <fnasser@redhat.com>
6470
6471         * top.c (print_gdb_version): Update Copyright year.
6472
6473 2001-01-24  J.T. Conklin  <jtc@redback.com>
6474
6475         * dcache.c (dcache_write_line): Fix typo.
6476
6477         * memattr.c (delete_mem_region): Replace free() with xfree().
6478         (mem_number): Add explicit type.
6479
6480         * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
6481         (rw_common): Likewise.
6482
6483 2001-01-24  Fernando Nasser  <fnasser@redhat.com>
6484
6485         * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
6486         for the inferior program arguments.
6487         (run_command, run_no_args_command, init_infcmd)): Use accessor
6488         functions to set the inferior program arguments.
6489         * inferior.h: Add definitions to the accessor functions above.
6490
6491 2001-01-23  Jim Blandy  <jimb@redhat.com>
6492
6493         * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
6494         Implement these correctly, using make_cv_type.
6495
6496 2001-01-23  J.T. Conklin  <jtc@redback.com>
6497
6498         * exec.c (xfer_memory): Add attrib argument.
6499         * infptrace.c (child_xfer_memory): Likewise.
6500         * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
6501         * monitor.c (monitor_xfer_memory): Likewise.
6502         * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
6503         * remote-array.c (array_xfer_memory): Likewise.
6504         * remote-bug.c (bug_xfer_memory): Likewise.
6505         * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
6506         * remote-eb.c (eb_xfer_inferior_memory): Likewise.
6507         * remote-es.c (es1800_xfer_inferior_memory): Likewise.
6508         * remote-mips.c (mips_xfer_memory): Likewise.
6509         * remote-mm.c (mm_xfer_inferior_memory): Likewise.
6510         * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
6511         * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
6512         * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
6513         * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
6514         * remote-sds.c (sds_xfer_memory): Likewise.
6515         * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
6516         * remote-st.c (st2000_xfer_inferior_memory): Likewise.
6517         * remote-udi.c (udi_xfer_inferior_memory): Likewise.
6518         * remote-vx.c (vx_xfer_memory): Likewise.
6519         * remote.c (remote_xfer_memory): Likewise.
6520         * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
6521         * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
6522         * thread-db.c (thread_db_xfer_memory): Likewise.
6523
6524         * target.h (#include "memattr.h"): Added.
6525         (target_ops.to_xfer_memory): Add attrib argument.
6526
6527         * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
6528         * dcache.h (set_dcache_state): Removed declaration.
6529         * dcache.c (set_dcache_state): Removed definition
6530         
6531         * dcache.c: Update module comment, as dcache is now enabled and
6532         disabled with memory region attributes instead of by the global
6533         variable "remotecache".  Add comment describing the interaction
6534         between dcache and memory region attributes.
6535         (dcache_xfer_memory): Add comment describing benefits of moving
6536         cache writeback to a higher level.
6537         (dcache_struct): Removed cache_has_stuff field.  This was used to
6538         record whether the cache had been accessed in order to invalidate
6539         it when it was disabled.  However, this is not needed because the
6540         cache is write through and the code that enables, disables, and
6541         deletes memory regions invalidate the cache.  Add comment which
6542         suggests that we could be more selective and only invalidate those
6543         cache lines containing data from those memory regions.
6544         (dcache_invalidate): Updated.
6545         (dcache_xfer_memory): Updated.
6546         
6547         (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
6548         (dcache_xfer_memory): Removed code that called do_xfer_memory() to
6549         perform a uncached transfer if dcache_enabled_p was clear.  This
6550         function is now only called if caching is enabled for the memory
6551         region.
6552         (dcache_info): Always print cache info.
6553
6554         * target.c (do_xfer_memory): Add attrib argument.
6555         (target_xfer_memory, target_xfer_memory_partial): Break transfer
6556         into chunks defined by memory regions, pass region attributes to
6557         do_xfer_memory().
6558         * dcache.c (dcache_read_line, dcache_write_line): Likewise.
6559
6560         * Makefile.in (SFILES): Add memattr.c.
6561         (COMMON_OBS): Add memattr.o.
6562         (dcache.o): Add target.h to dependencies.
6563         * memattr.c: New file.
6564         * memattr.h: Likewise.
6565
6566         * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
6567         * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
6568         * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
6569         * gdbserver/low-sim.c (#include "defs.h"): Removed.
6570         (mygeneric_load): Rename from generic_load.
6571         
6572         * gdbserver/low-hppabsd.c (#include "server.h"): Added.
6573         (#include "defs.h"): Removed.
6574         (inferior_pid, perror_with_name): Remove declarations.
6575         * gdbserver/low-linux.c: Likewise.
6576         * gdbserver/low-nbsd.c: Likewise.
6577         * gdbserver/low-sparc.c: Likewise.
6578         * gdbserver/low-sun3.c: Likewise.
6579
6580         * i386-stub.c: Re-indent.
6581         * m68k-stub.c: Re-indent.
6582
6583 2001-01-22  Nicholas Duffek  <nsd@redhat.com>
6584
6585         * gdbarch.sh (PARM_BOUNDARY): Define.
6586         * gdbarch.c: Regenerate.
6587         * gdbarch.h: Regenerate.
6588
6589 2001-01-22  J.T. Conklin  <jtc@redback.com>
6590
6591         * ns32k-tdep.c: #include "frame.h"
6592         * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore.  It
6593         appears to have been inadvertantly removed sometime in May 1999.
6594
6595         * Revert 2000-11-09 changes where shared library objects were
6596         moved from NATDEPFILES to TDEPFILES on NetBSD targets.  While
6597         we'd like to be able to debug dynamically linked executables,
6598         this makes it impossible to build a cross debugger on a many
6599         hosts.
6600
6601         * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
6602         * config/i386/nbsdelf.mt: Likewise.
6603         * config/m68k/nbsd.mt: Likewise.
6604         * config/ns32k/nbsd.mt: Likewise.
6605         * config/powerpc/nbsd.mt: Likewise.
6606         * config/sparc/nbsd.mt: Likewise.
6607         * config/sparc/nbsdelf.mt: Likewise.
6608         * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
6609         * config/i386/nbsdelf.mh: Likewise. 
6610         * config/m68k/nbsd.mh: Likewise.
6611         * config/ns32k/nbsd.mh: Likewise.
6612         * config/powerpc/nbsd.mh: Likewise.
6613         * config/sparc/nbsd.mh: Likewise.
6614
6615 2001-01-19  Jason Merrill  <jason@redhat.com>
6616
6617         * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
6618         (process_one_symbol): Likewise.
6619         * dwarfread.c (handle_producer): Likewise.
6620
6621 Thu Jan 18 12:08:57 2001  Andrew Cagney  <cagney@b1.cygnus.com>
6622
6623         * configure.in (build_warnings): Disable -Wuninitialized until GDB
6624         compiles with -Wuninitialized,-Werror.
6625         * configure: Regenerate.
6626
6627         * MAINTAINERS: Add list of buildable targets.
6628
6629 Thu Jan 18 12:48:04 2001  Andrew Cagney  <cagney@b1.cygnus.com>
6630
6631         * defs.h (STRCMP): Delete macro.
6632
6633         * objfiles.c (objfile_relocate): Replace STRCMP with call to
6634         strcmp.
6635         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
6636         * symfile.c (compare_symbols):  Ditto.
6637         * standalone.c (open):  Ditto.
6638         * remote-es.c (verify_break):  Ditto.
6639         * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
6640
6641         * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
6642
6643 Thu Jan 18 12:25:06 2001  Andrew Cagney  <cagney@b1.cygnus.com>
6644
6645         * varobj.c (FREEIF): Delete macro.
6646         (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
6647         call.
6648
6649 2001-01-18  Nick Clifton  <nickc@redhat.com>
6650
6651         * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
6652         (arc_print_insn): No bfd available, so pass NULL to
6653         arc_get_disassembler.
6654
6655 2001-01-09  James Ingham  <jingham@inghji.apple.com>
6656
6657          * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
6658          a mangled symbol rather than recursing into lookup_symbol, since
6659          this will just re-unmangle the name & call lookup_symbol_aux -
6660          leading to an infinite recursion.
6661
6662 2001-01-18  Mark Kettenis  <kettenis@gnu.org>
6663
6664         * infcmd.c (print_return_value): Restore another space lost by
6665         switch to UIOUT. ``$NN='' should be ``$NN =''.
6666
6667 Fri Jan 19 02:31:40 2001  Andrew Cagney  <cagney@b1.cygnus.com>
6668
6669         * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
6670         * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
6671         definition in parenthesis.
6672
6673 Fri Jan 19 02:13:40 2001  Andrew Cagney  <cagney@b1.cygnus.com>
6674
6675         From 2000-10-27 Mark Salter <msalter@redhat.com>:
6676         * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
6677         packet.
6678         (remote_insert_hw_breakpoint): Ditto.
6679
6680 2001-01-17  J.T. Conklin  <jtc@redback.com>
6681
6682         * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
6683         (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
6684         * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
6685         * m68knbsd-tdep.c: New file.
6686
6687         * i386nbsd-tdep.c: Remove #if 0'd out #includes.
6688
6689         * m68knbsd-nat.c: #include gdbcore.h.
6690
6691 Wed Jan 17 09:41:58 2001  Andrew Cagney  <cagney@b1.cygnus.com>
6692
6693         * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
6694
6695 2001-01-16  Michael Snyder  <msnyder@cleaver.cygnus.com>
6696
6697         * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
6698         goes away -- just return false (ie. not stopped by watchpoint).
6699         * source.c (openp): Fix typo in comment.
6700
6701 2001-01-12  Nicholas Duffek  <nsd@redhat.com>
6702
6703         * blockframe.c (generic_get_saved_register): Spelling fix.
6704         * frame.h (FRAME_FP): Spelling fix.
6705
6706 Fri Jan 12 18:29:46 2001  Andrew Cagney  <cagney@b1.cygnus.com>
6707
6708         * infcmd.c (print_return_value): Restore space lost by switch to
6709         UIOUT. ``$NN='' should be ``$NN =''.
6710         
6711 2001-01-08  Nicholas Duffek  <nsd@redhat.com>
6712
6713         * regcache.c (set_register_cached, register_buffer,
6714         real_register, pseudo_register fetch_register, store_register):
6715         New functions.
6716         (register_changed, read_relative_register_raw_bytes_for_frame,
6717         registers_changed, registers_fetched, read_register_bytes,
6718         read_register_gen, write_register_gen, read_register,
6719         read_signed_register, write_register, supply_register): Replace
6720         register_valid[] with register_cached() and
6721         set_register_cached().
6722         (read_register_bytes, read_register_gen, write_register_gen,
6723         read_register, read_signed_register, write_register,
6724         supply_register): Replace registers[] with register_buffer().
6725         (read_register_bytes, read_register_gen, read_register,
6726         read_signed_register): Call fetch_register().
6727         (write_register_gen, write_register): Call real_register() and
6728         store_register().
6729         (write_register_bytes): Call store_register().
6730         * value.h (set_register_cached, register_buffer): Prototype.
6731         * remote.c (remote_fetch_registers): Allocate regs[] with a
6732         run-time size.  Replace register_valid[] with
6733         set_register_cached().
6734         (store_register_using_P, remote_store_registers): Replace
6735         registers[] with register_buffer().
6736
6737 2001-01-08  Nicholas Duffek  <nsd@redhat.com>
6738
6739         * regcache.c: Change "write-back" comment to "write-through".
6740         Change "regno" to "regnum".
6741         (read_register, read_signed_register): Remove "raw" from return
6742         value description.
6743         (supply_register): Spelling fix.
6744         * value.h: Change "regno" to "regnum".
6745
6746 2001-01-08  Fernando Nasser  <fnasser@redhat.com>
6747
6748         * Makefile.in (install-gdbtk): Add .itcl files to the list of files
6749         to be installed.
6750
6751 2001-01-04  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
6752
6753         * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
6754
6755 2001-01-04  Nicholas Duffek  <nsd@redhat.com>
6756
6757         * valops.c (VALUE_SUBSTRING_START): Delete.
6758
6759 2001-01-04  Nicholas Duffek  <nsd@redhat.com>
6760
6761         * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
6762         (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
6763         (cli_utils_h): New variable.
6764         (cli/cli-utils.o): New rule.
6765         * cli/cli-utils.c: New file.
6766         * cli/cli-utils.h: New file.
6767
6768 2001-01-04  Nicholas Duffek  <nsd@redhat.com>
6769
6770         * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
6771         REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
6772
6773 2001-01-03  J.T. Conklin  <jtc@redback.com>
6774
6775         * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
6776         comment.
6777
6778 2001-01-02  Michael Snyder  <msnyder@cleaver.cygnus.com>
6779
6780         * sh-tdep.c (sh_default_store_return_value):  Allow for small return type.
6781         (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
6782         non-float types.
6783         * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
6784         Update copyright notice.
6785         
6786 For older changes see ChangeLog-2000
6787 \f
6788 Local Variables:
6789 mode: change-log
6790 left-margin: 8
6791 fill-column: 74
6792 version-control: never
6793 End: