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