Expand the regcache so that there is space for pseudo-registers.
[external/binutils.git] / gdb / ChangeLog
1 2001-12-06  Andrew Cagney  <ac131313@redhat.com>
2
3         * regcache.c (store_register, fetch_register): Only use
4         fetch/store pseudo-register when function is present.  Assume
5         target can handle all registers.
6         (registers_changed): Simplify invalidate loop.
7         (registers_fetched): Add comments.
8         (register_buffer): Add regnum range assertion.  Remove code
9         handling -ve regnum.
10         (build_regcache): Make space for pseudo-registers when computing
11         sizeof_registers.  Initialize register_offset.
12
13         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Change to a function with
14         predicate.
15         (STORE_PSEUDO_REGISTER): Ditto.
16         * gdbarch.h, gdbarch.c: Re-generate.
17         
18 2001-12-06  Jim Blandy  <jimb@redhat.com>
19
20         * config/s390/nm-linux.h: Watchpoints are either continuable or
21         steppable, not both.  The S/390 has continuable watchpoints, so
22         delete the #definition of HAVE_STEPPABLE_WATCHPOINT.
23
24 2001-12-04  Pierre Muller  <muller@ics.u-strasbg.fr>
25
26         * go32-nat.c (go32_fetch_registers): Remove call to register_buffer
27         (which is now a static function in regcache.c)
28         and use regcache_collect instead.
29
30 2001-12-05  Andrew Cagney  <cagney@redhat.com>
31
32         * target.c (cleanup_target): Do not initialize to_query to
33         return_zero.
34
35 2001-12-05  Jim Blandy  <jimb@redhat.com>
36
37         * s390-tdep.c (s390_get_frame_info): Recognize argument register
38         spills that use the `stm' instruction.
39         (is_arg_reg): New function.
40
41 2001-12-03 Keith Walker <keith.walker@arm.com>
42         * gdbserver/low-linux.c (arm_register_u_addr): added.
43         (initialize_arch): added for ARM target.
44         * config/arm/nm-linux.h (U_REGS_OFFSET) defined.
45         (REGISTER_U_ADDR) defined.
46         * config/arm/tm-linux.h (ARM_GNULINUX_TARGET) defined.
47
48 2001-12-04  Corinna Vinschen  <vinschen@redhat.com>
49
50         * arm-tdep.c (arm_skip_prologue): Always skip prologue by scanning
51         the prologue if source is assembler.
52
53 2001-12-04  Jackie Smith Cashion  <jsmith@redhat.com>
54
55         * MAINTAINERS (write-after-approval): Add self.
56
57         * d10v-tdep.c (d10v_gdbarch_init): Change size of long long to 8 bytes.
58         
59         From Andrew Cagney  <cagney@redhat.com>:
60         * d10v-tdep.c (d10v_frame_chain_valid): Check if the caller's PC
61         is in the entry function.
62         (d10v_use_struct_convention): Store multi-field struct and union
63         return values on the stack.
64         
65 2001-12-04  Jim Blandy  <jimb@redhat.com>
66
67         * s390-tdep.c (s390_get_frame_info): Recognize spills of reg
68         arguments into their stack slots.
69
70         * s390-tdep.c (s390_get_frame_info): More doc fixes.
71
72         * s390-tdep.c (s390_get_frame_info): Doc fixes.
73
74 2001-12-04  Orjan Friberg  <orjanf@axis.com>
75
76         * cris-tdep.c (cris_regnums): Add DCCR_REGNUM for completeness.
77         (cris_examine): Add comment about solib prologue parsing.
78         (bdap_prefix): Read offset with correct signedness and size.
79         (move_to_preg_op): Don't rely on register numbering for register size.
80         (none_reg_mode_move_from_preg_op): Ditto.
81
82 2001-12-04  Orjan Friberg  <orjanf@axis.com>
83
84         * solib.c (solib_open): Make path relative if search for absolute path
85         failed.  If search for relative path in solib_search_path failed, fall
86         back to search for basename only.
87
88 2001-12-03  Martin M. Hunt  <hunt@redhat.com>
89
90         * serial.h: Add a note to serial_open.
91
92         * ser-tcp.c (tcp_open): Rewrite to use a non-blocking connect.
93         Allow UI and CLI to abort connect.  Instead of trying 15 times
94         with very long timeouts, just try one connect with a maximum timeout
95         of 15 seconds.
96
97 2001-12-03  Kevin Buettner  <kevinb@redhat.com>
98
99         * config/powerpc/tm-macos.h (solib.h): Include.
100         * config/powerpc/tm-ppc-eabi.h (solib.h): Include.
101
102 2001-12-03  Michael Snyder  <msnyder@redhat.com>
103
104         * symtab.c (search_symbols): Make sure alloca size is big enough.
105
106 2001-12-03  Andrew Cagney  <ac131313@redhat.com>
107
108         * MAINTAINERS: Prune m68k targets down to just m68k-elf.
109
110 2001-12-03  Jim Blandy  <jimb@redhat.com>
111
112         * s390-tdep.c (s390_get_frame_info): Don't used fextra_info to set
113         orig_sp if it's not initialized.
114
115 2001-11-30  Pierre Muller  <muller@ics.u-strasbg.fr>
116
117         * findvar.c (locate_var_value): Specify in which register a register
118         variable is stored.
119
120 2001-11-30  Pierre Muller  <muller@ics.u-strasbg.fr>
121
122         * win32-nat.c (mappings): Correct position of XMM registers,
123         based on FXSAVE instruction structure.
124
125 2001-12-02  Andrew Cagney  <ac131313@redhat.com>
126
127         * jv-lang.c (get_java_class_symtab): Use xmmalloc instead of
128         mmalloc.
129
130         * coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c, hpread.c,
131         nlmread.c, objfiles.c, os9kread.c, somread.c, source.c, symfile.c,
132         symmisc.c, xcoffread.c: Use xmfree instead of mfree.
133
134         * jv-lang.c (add_class_symtab_symbol): Use xmrealloc instead of
135         mrealloc.
136
137 2001-12-02  Andrew Cagney  <ac131313@redhat.com>
138
139         * i386-tdep.c (i386go32_frame_saved_pc): New function.
140         * config/i386/tm-go32.h (i386go32_frame_saved_pc): Declare.
141         (FRAME_SAVED_PC): Redefine to i386go32_frame_saved_pc.
142
143 2001-12-01  Andrew Cagney  <ac131313@redhat.com>
144
145         * defs.h: Update comment on HOST_BYTE_ORDER.
146         * config/xm-aix4.h: Delete definition of HOST_BYTE_ORDER.
147         * config/xm-nbsd.h, config/alpha/xm-alphalinux.h: Ditto.
148         * config/alpha/xm-alphaosf.h, config/alpha/xm-fbsd.h: Ditto.
149         * config/arm/xm-linux.h, config/i386/xm-cygwin.h: Ditto.
150         * config/i386/xm-i386bsd.h, config/i386/xm-i386gnu.h: Ditto.
151         * config/i386/xm-i386lynx.h, config/i386/xm-i386m3.h: Ditto.
152         * config/i386/xm-i386mach.h, config/i386/xm-i386v.h: Ditto.
153         * config/i386/xm-ptx.h, config/i386/xm-symmetry.h: Ditto.
154         * config/ia64/xm-aix.h, config/ia64/xm-linux.h: Ditto.
155         * config/m68k/xm-3b1.h, config/m68k/xm-apollo68b.h: Ditto.
156         * config/m68k/xm-apollo68v.h, config/m68k/xm-delta68.h: Ditto.
157         * config/m68k/xm-dpx2.h, config/m68k/xm-hp300bsd.h: Ditto.
158         * config/m68k/xm-hp300hpux.h, config/m68k/xm-m68k.h: Ditto.
159         * config/m68k/xm-m68klynx.h, config/m68k/xm-sun2.h: Ditto.
160         * config/m68k/xm-sun3.h, config/m88k/xm-dgux.h: Ditto.
161         * config/m88k/xm-m88k.h, config/mips/xm-irix3.h: Ditto.
162         * config/mips/xm-irix5.h, config/mips/xm-linux.h: Ditto.
163         * config/mips/xm-mips.h, config/mips/xm-mipsm3.h: Ditto.
164         * config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h: Ditto.
165         * config/mips/xm-riscos.h, config/pa/xm-hppab.h: Ditto.
166         * config/pa/xm-hppah.h, config/powerpc/xm-linux.h: Ditto.
167         * config/romp/xm-rtbsd.h, config/rs6000/xm-rs6000.h: Ditto.
168         * config/rs6000/xm-rs6000ly.h, config/s390/xm-linux.h: Ditto.
169         * config/sparc/xm-sparc.h, config/sparc/xm-sparclynx.h: Ditto.
170         * config/vax/xm-vax.h: Ditto.
171
172         * config/a29k/tm-vx29k.h: Add #error as file depends on
173         HOST_BYTE_ORDER.
174         * config/a29k/tm-a29k.h: Ditto.
175         * MAINTAINERS (a29k-amd-udi): Document as broken.
176
177 2001-12-01  Andrew Cagney  <ac131313@redhat.com>
178
179         * Makefile.in (tm-news.h, tm-isi.h, xm-news1000.h): Delete.
180         (ALLDEPFILES): Delete news-xdep.c.
181         (news-xdep.o): Delete.
182         (isi-xdep.o): Delete.
183         * configure.tgt: Delete m68*-isi-*, m68*-sony-*, m68*-rom68k-*,
184         m68*-*bug-*, m68*-monitor-* and m68*-est-* targets.
185         * configure.host: Delete m68030-sony-*, m68*-isi-* and m68*-sony-*
186         Hosts.
187         * m68k-tdep.c (isi_skip_prologue): Delete function.
188         * news-xdep.c: Delete file.
189         * isi-xdep.c: Delete file.
190         * config/m68k/isi.mh: Delete file.
191         * config/m68k/isi.mt: Delete file.
192         * config/m68k/news.mh: Delete file.
193         * config/m68k/news.mt: Delete file.
194         * config/m68k/news1000.mh: Delete file.
195         * config/m68k/nm-news.h: Delete file.
196         * config/m68k/tm-isi.h: Delete file.
197         * config/m68k/tm-news.h: Delete file.
198         * config/m68k/xm-isi.h: Delete file.
199         * config/m68k/xm-news.h: Delete file.
200         * config/m68k/xm-news1000.h: Delete file.
201
202         * kdb-start.c: Delete file.
203         * stuff.c: Delete file.
204
205         * NEWS: Note that a29k-nyu-sym1 and a29k-*-kern* were deleted.
206         * configure.host: Delete a29k-*-* host.
207         * configure.tgt: Delete a29k-*-kern* and a29k-*-sym1* targets.
208         * config/a29k/a29k-kern.mt: Delete file.
209         * config/a29k/nm-ultra3.h: Delete file.
210         * config/a29k/tm-ultra3.h: Delete file.
211         * config/a29k/ultra3.mh: Delete file.
212         * config/a29k/ultra3.mt: Delete file.
213         * config/a29k/xm-ultra3.h: Delete file.
214
215         * NEWS: Note that i[3456]86-*-sunos* was deleted.
216         * Makefile.in (sun386-nat.o): Delete.
217         * configure.tgt: Delete i[3456]86-*-sunos* target.
218         * configure.host: Delete i[3456]86-*-sunos* host.
219         * sun386-nat.c: Delete.file.
220         * config/i386/nm-sun386.h: Delete file.
221         * config/i386/sun386.mh: Delete file.
222         * config/i386/sun386.mt: Delete file.
223         * config/i386/tm-sun386.h: Delete file.
224         * config/i386/xm-sun386.h: Delete file.
225
226         * NEWS: Note that ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*
227         and ns32k-utek-* were deleted.
228         * Makefile.in (ultra3-nat.o, ultra3-xdep.o): Delete.
229         (umax-xdep.o, ns32km3-nat.o): Delete.
230         * configure.tgt: Delete ns32k-*-mach3*, ns32k-utek-sysv* and
231         ns32k-utek-* targets.
232         * configure.host: Delete ns32k-*-mach3*, ns32k-umax-* and
233         ns32k-utek-sysv* hosts.
234         * ultra3-nat.c: Delete file.
235         * ultra3-xdep.c: Delete file.
236         * umax-xdep.o: Delete file.
237         * ns32km3-nat: Delete file.
238         * config/ns32k/merlin.mh: Delete file.
239         * config/ns32k/merlin.mt: Delete file.
240         * config/ns32k/nm-umax.h: Delete file.
241         * config/ns32k/ns32km3.mh: Delete file.
242         * config/ns32k/ns32km3.mt: Delete file.
243         * config/ns32k/tm-merlin.h: Delete file.
244         * config/ns32k/tm-ns32km3.h: Delete file.
245         * config/ns32k/umax.mh: Delete file.
246         * config/ns32k/umax.mt: Delete file.
247         * config/ns32k/xm-merlin.h: Delete file.
248         * config/ns32k/xm-ns32km3.h: Delete file.
249         * config/ns32k/xm-umax.h: Delete file.
250         
251         * NEWS: Note that m88*-harris-cxux* was deleted.
252         * configure.host: Delete m88*-harris-cxux* host.
253         * configure.tgt: Delete m88*-harris-cxux* target.
254         * config/m88k/cxux.mh: Delete file.
255         * config/m88k/cxux.mt: Delete file.
256         * config/m88k/nm-cxux.h: Delete file.
257         * config/m88k/tm-cxux.h: Delete file.
258         * config/m88k/xm-cxux.h: Delete file.
259
260         * NEWS: Note that powerpc-*-netware*, powerpcle-*-cygwin* and
261         powerpcle-*-solaris* were deleted.
262         * configure.host: Delete powerpcle-*-cygwin* and
263         powerpcle-*-solaris* hosts.
264         * configure.tgt: Delete powerpc-*-netware*, powerpcle-*-cygwin*
265         and powerpcle-*-solaris* targets.
266         * config/powerpc/cygwin.mh: Delete file.
267         * config/powerpc/cygwin.mt: Delete file.
268         * config/powerpc/nm-solaris.h: Delete.file.
269         * config/powerpc/ppc-nw.mt: Delete file.
270         * config/powerpc/solaris.mh: Delete file.
271         * config/powerpc/solaris.mt: Delete file.
272         * config/powerpc/tm-cygwin.h: Delete file.
273         * config/powerpc/tm-ppc-nw.h: Delete file.
274         * config/powerpc/tm-solaris.h: Delete file.
275         * config/powerpc/xm-cygwin.h: Delete file.
276         * config/powerpc/xm-mpw.h: Delete file.
277         * config/powerpc/xm-solaris.h: Delete file.
278
279         * NEWS, MAINTAINERS: Note that w65-*-* was deleted.
280         * configure.tgt: Delete w65-*-*.
281         * Makefile.in (w65-tdep.o): Delete.
282         * config/w65/tm-w65.h: Delete file.
283         * config/w65/w65.mt: Delete file.
284         * w65-tdep.c: Delete file.
285         
286         * NEWS: Mention deleted tic80-*-*.
287         * configure.tgt: Delete tic80-*-*.
288         * Makefile.in (tic80-tdep.o): Delete.
289         * config/tic80/tic80.mt: Delete.
290         * config/tic80/tm-tic80.h: Delete.
291         * tic80-tdep.c: Delete.
292         * MAINTAINERS: Note that tic80 was deleted.
293
294 2001-11-30  Kevin Buettner  <kevinb@redhat.com>
295
296         * ppc-linux-tdep.c (solib-svr4.h): Include.
297         (ppc_linux_svr4_fetch_link_map_offsets): New function.
298         * ppc-tdep.h (ppc_linux_svr4_fetch_link_map_offsets): Declare.
299         * rs6000-tdep.c (solib-svr4.h): Include.
300         (rs6000_gdbarch_init): Set up ppc_linux_svr4_fetch_link_map_offsets()
301         as the link map offsets fetcher.
302
303         * config/powerpc/aix.mt (TDEPFILES): Add solib-svr4.o.
304         * config/powerpc/macos.mt (TDEPFILES): Likewise.
305         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
306         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
307         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
308         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
309         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
310         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
311         * config/rs6000/aix4.mt (TDEPFILES): Likewise.
312         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
313         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
314
315 2001-11-30  Kevin Buettner  <kevinb@redhat.com>
316
317         From Louis Hamilton  <hamilton@redhat.com>:
318         * arm-tdep.c (solib-svr4.h): Include.
319         (arm_linux_svr4_fetch_link_map_offsets): New function.
320         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
321         (arm_linux_svr4_fetch_link_map_offsets): Declare.
322
323 2001-11-30  Daniel Jacobowitz  <drow@mvista.com>
324
325         * values.c (value_primitive_field): Add embedded_offset to the
326         address of structure members.
327         * gnu-v3-abi.c (gnuv3_rtti_type): Cast to base type before
328         attempting to access vtable pointer.  Set using_enc_p if we cast.
329         (gnuv3_virtual_fn_field): Call value_cast with structure rather than
330         structure pointer.  Cast to base type before attempting to access
331         vtable pointer.
332
333 2001-11-29  Elena Zannoni  <ezannoni@redhat.com>
334
335         * Makefile.in (ppc-linux-nat.o): Add dependency on ppc-tdep.h.
336
337         * ppc-tdep.h (PPC_GPLAST_REGNUM): Define.
338
339         * ppc-linux-nat.c: Include ppc-tdep.h.
340         (ppc_register_u_addr): Don't use the static array regmap[],
341         dynamically define the mapping instead.
342         (supply_gregset): Ditto.
343         (fill_gregset): Ditto.
344         (COPY_REG): Delete macro defintion.
345         (regmap): Delete array.
346
347 2001-11-29  Jim Blandy  <jimb@redhat.com>
348
349         Tighten up GDB's support for returning structs by value.
350         * s390-tdep.c (s390_use_struct_convention): New function.
351         (s390_gdbarch_init): Register it as the S/390's
352         USE_STRUCT_CONVENTION method.  Register
353         generic_cannot_extract_struct_value_address as our
354         EXTRACT_STRUCT_VALUE_ADDRESS method.
355         * arch-utils.c (generic_cannot_extract_struct_value_address): New
356         function.
357         * arch-utils.h: Add corresponding prototype.
358
359         * values.c (value_being_returned): Make error message a proper
360         sentence.
361
362 2001-11-27 Keith Walker <keith.walker@arm.com>
363
364         * dwarf2read.c (read_attribute_value): New function to handle
365         DW_FORM_indirect
366         (read_attribute): uses read_attribute_value
367
368 2001-11-29  Jim Blandy  <jimb@redhat.com>
369
370         * s390-tdep.c (s390_frame_saved_pc_nofix): If the prologue didn't
371         save the return address register, assume that the return address
372         is still in there.
373
374 2001-11-27  Andrew Cagney  <ac131313@redhat.com>
375
376         * MAINTAINERS: Clarify obvious fix a little (as suggested by Eli
377         Zaretskii).
378
379 2001-11-25  Jim Blandy  <jimb@redhat.com>
380
381         * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
382
383 2001-11-27  Jim Blandy  <jimb@redhat.com>
384
385         * s390-tdep.c: Get frame chains and saved pc values properly from
386         dummy frames.
387         (s390_frame_saved_pc_nofix): if `*fi' is a dummy frame, get the
388         saved PC from the dummy frame's registers.
389         (s390_frame_chain): Same for the saved SP.
390         (s390_gdbarch_init): Register `generic_save_dummy_frame_tos' as
391         the `SAVE_DUMMY_FRAME_TOS' method, so the dummy frame's `top' gets
392         set correctly.
393
394         * s390-tdep.c (s390_frame_chain): Remember that the SP's element
395         of the frame's saved_regs array is special.
396
397         * s390-tdep.c (register_names): Call the general-purpose registers
398         `r0' -- `r15', and the floating-point registers `f0' -- `f15', to
399         match the assembly language.
400
401 2001-11-26 Pierre Muller  <muller@ics.u-strasbg.fr>
402
403         * config/i386/tm-cygwin.h: Define HAVE_SSE_REGS if
404         HAVE_CONTEXT_EXTENDED_REGISTERS is defined.
405         * win32-nat.c: Define CONTEXT_DEBUGGER_DR that will also include
406         extended registers if HAVE_SSE_REGS is defined.
407         (mappings array): Add offset of extended registers.
408         (thread_rec): Use new CONTEXT_DEBUGGER_DR macro.
409
410 2001-11-26  Tom Tromey  <tromey@redhat.com>
411
412         * NEWS: Updated.
413         * event-loop.c (start_event_loop): Call
414         after_char_processing_hook.
415         * event-top.h (after_char_processing_hook): Declare.
416         * event-top.c (rl_callback_read_char_wrapper): Call
417         after_char_processing_hook.
418         (after_char_processing_hook): New global.
419         * top.c (operate_saved_history): New global.
420         (gdb_rl_operate_and_get_next): New function.
421         (init_main): Add the operate-and-get-next defun.
422         (gdb_rl_operate_and_get_next_completion): New function.
423
424 2001-11-26  Tom Tromey  <tromey@redhat.com>
425
426         * NEWS: Update for --args.
427         * infcmd.c (construct_inferior_arguments): Moved from ...
428         * fork-child.c: ... here.
429
430 2001-11-26  Jim Blandy  <jimb@redhat.com>
431
432         * symtab.c (find_pc_sect_line): Revert change of 2001-11-13; add
433         comment explaining that hand-written assembly code can have line
434         number info but no debug info for an enclosing function.
435
436 2001-11-26  Jakub Jelinek  <jakub@redhat.com>
437
438         * sparc-nat.c (fetch_inferior_registers): Don't rely
439         on CORE_ADDR being 32-bit.
440         (store_inferior_registers): Likewise.
441
442 2001-11-25  Eli Zaretskii  <eliz@is.elta.co.il>
443
444         * config/djgpp/config.sed: Fix an error in etc/ at "make install"
445         time on non-LFN systems where standards*.inf* expands to nothing.
446
447         * go32-nat.c (save_npx): Avoid a warning from GCC 3.x.
448
449 2001-11-24  Pierre Muller  <muller@ics.u-strasbg.fr>
450             Christopher Faylor  <cgf@redhat.com>
451
452         * win32-nat.c (struct so_stuff): Add objfile *objfile field needed to
453         be able to remove the DLL when unloaded.  Remove unused last field.
454         (handle_unload_dll): New function to handle unloading of DLL.
455         (solib_symbols_add): Change return type to struct objfile *.
456         (get_child_debug_event): Call handle_unload_dll function.
457
458 2001-11-24  Christopher Faylor  <cgf@redhat.com>
459
460         * win32-nat.c (_initialize_check_for_gdb_ini): New function.
461         * config/i386/xm-cygwin.h: Remove obsolete handling of __CYGWIN32__.
462         (GDBINIT_FILENAME): Remove.
463
464 2001-11-23  Mark Kettenis  <kettenis@gnu.org>
465
466         Add x86 OpenBSD native configuration.
467         * config/i386/obsd.mt, config/i386/tm-obsd.h, config/i386/obsd.mh,
468         config/i386/nm-obsd.h: New files.
469         * configure.host (i[3456]86-*-openbsd*): New host.
470         * configure.tgt (i[3456]86-*-openbsd*): New target.
471         * NEWS: Update.
472
473 2001-11-21  GDB Administrator  <gdbadmin@sourceware.cygnus.com>
474
475         * GDB 5.1 was released.
476         
477 2001-11-21  Tom Tromey  <tromey@redhat.com>
478
479         Fix for PR gdb/209, PR gdb/156:
480         * gdbarch.c, gdbarch.h: Rebuilt.
481         * gdbarch.sh: Added `construct_inferior_arguments'.
482         * cli/cli-decode.h (cmd_list_element): Added pre_show_hook.
483         Typo fix.
484         * cli/cli-setshow.c (do_setshow_command): Call the pre_show_hook.
485         * infcmd.c (_initialize_infcmd): Set sfunc on `set args' command.
486         (inferior_argc, inferior_argv): New globals.
487         (notice_args_set): New function.
488         (set_inferior_args): Clear inferior_argc and inferior_argv.
489         (set_inferior_args_vector): New function.
490         (get_inferior_args): Handle inferior argument vector.
491         (run_command): Use get_inferior_args().
492         (notice_args_read): New function.
493         (_initialize_infcmd): Don't call set_inferior_args.
494         * command.h: Typo fix.
495         (cmd_list_element): Added pre_show_hook.
496         * main.c (captured_main): Added --args option.
497         (print_gdb_help): Document --args.
498         * inferior.h (construct_inferior_arguments): Declare.
499         (set_inferior_args_vector): Likewise.
500         * fork-child.c (construct_inferior_arguments): New function.
501
502 2001-11-21  Kevin Buettner  <kevinb@redhat.com>
503
504         * lin-lwp.c (lin_lwp_attach_lwp): Make sure SIGCHLD is in set of
505         blocked signals.
506
507         * lin-lwp.c (lin_lwp_attach_lwp): Mark main thread as stopped.
508
509 2001-11-20  Jim Blandy  <jimb@redhat.com>
510
511         * target.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT): Delete
512         default definition; this is never used.
513
514 2001-11-20  Keith Seitz  <keiths@redhat.com>
515
516         * varobj.c (c_value_of_child): Release memory for "name" when
517         finshed using it.
518         (c_type_of_child): Likewise.
519         (cplus_value_of_child): Isolate the use of name_of_child to
520         one case that needs it.
521         Release memory for "name" when finished using it.
522
523 2001-11-20  Keith Seitz  <keiths@redhat.com>
524
525         * top.c (gdb_init): Call init_ui_hook before initializing
526         the default UI.
527
528 2001-11-19  Elena Zannoni  <ezannoni@redhat.com>
529
530         * config/powerpc/nm-linux.h (ppc_register_u_addr): Add extern 
531         declaration.
532
533 2001-11-19  Elena Zannoni  <ezannoni@redhat.com>
534
535         * ppc-linux-nat.c (COPY_REG): Use regcache_collect instead of
536         accessing registers[].
537         (fill_fpregset): Ditto.
538
539 2001-11-19  Elena Zannoni  <ezannoni@redhat.com>
540
541         * infptrace.c (fetch_register): Dynamically allocate buffer for
542         register.
543         (store_register): Use regcache_collect, instead of accessing the
544         register buffer directly.
545
546 2001-11-19  Daniel Jacobowitz  <drow@mvista.com>
547
548         * mips-tdep.c (find_proc_desc): Add cur_frame argument.  Pass
549         cur_frame to heuristic_proc_desc.
550         (heuristic_proc_desc): Add cur_frame argument.  Do not read SP
551         if cur_frame == 0.
552         (after_prologue): Pass cur_frame == 0 to find_proc_desc.
553         (mips_frame_chain): Pass cur_frame == 1 to find_proc_desc.
554         (mips_init_extra_frame_info): Likewise.
555
556 2001-11-19  Andrew Cagney  <ac131313@redhat.com>
557
558         * defs.h (return_to_top_level): Comment.
559
560 Mon Nov 19 14:58:52 2001  Andrew Cagney  <cagney@redhat.com>
561
562         * remote.c (remote_open_1, remote_async_open_1): Use ISO C string
563         concatenation for error parameter.
564         (remote_cisco_open): Ditto.
565
566 2001-11-19  Keith Seitz  <keiths@redhat.com>
567
568         * varobj.c (c_value_of_child): Use the wrapper function,
569         gdb_value_struct_elt.
570         (cplus_value_of_child): Likewise.
571
572 2001-11-18  Andrew Cagney  <ac131313@redhat.com>
573
574         * i386-tdep.c (i386_gdbarch_init): Initialize num_regs.
575         * config/i386/tm-i386.h (NUM_REGS): Delete.
576
577 2001-11-18  Kevin Buettner  <kevinb@redhat.com>
578
579         * i386-linux-nat.c (fill_gregset): Fix botched regcache_collect()
580         conversion for I386_LINUX_ORIG_EAX_REGNUM.
581
582 2001-11-18  Andrew Cagney  <ac131313@redhat.com>
583
584         * config/i386/embed.mt (TM_FILE): Set to tm-i386.h.
585         * config/i386/tm-embed.h: Delete.
586
587 2001-11-17  Andrew Cagney  <ac131313@redhat.com>
588
589         * Makefile.in (distclean): Explicitly delete Makefile et.al. in
590         gdbserver sub directory.
591
592 2001-11-17  Andrew Cagney  <ac131313@redhat.com>
593
594         * README: Mention need for alloca().  Mention problems with
595         alpha-dec-osf4.0e.  Clarify that comments refer to GDB 5.1.
596
597 2001-11-17  Kevin Buettner  <kevinb@redhat.com>
598
599         * i386-linux-nat.c (fill_gregset): Use regcache_collect() instead
600         of accessing registers[] directly.
601
602 2001-11-17  Kevin Buettner  <kevinb@redhat.com>
603
604         * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen()
605         when fetching ORIG_EAX.
606
607 2001-11-17  Daniel Jacobowitz  <drow@mvista.com>
608
609         * arm-linux-nat.c: Don't include <asm/ptrace.h>.
610         (fetch_register): Use elf_gregset_t instead of struct pt_regs.
611         (fetch_regs): Likewise.
612         (store_register): Likewise.
613         (store_regs): Likewise.
614
615 2001-11-17  Daniel Jacobowitz  <drow@mvista.com>
616
617         * sparc-linux-nat.c (fill_gregset): Replace read_register_gen
618         with regcache_collect.
619         (fill_fpregset): Likewise.
620
621 2001-11-17  Daniel Jacobowitz  <drow@mvista.com>
622
623         * Makefile.in: Add mips-linux-nat.c, mips-linux-tdep.c,
624         and sparc-linux-nat.c to ALLDEPFILES.  Add dependencies.
625         * config/sparc/linux.mh: Add sparc-linux-nat.o to NATDEPFILES.
626         * sparc-linux-nat.c: New file, from Mark Kettenis.
627
628 2001-11-16  Jakub Jelinek  <jakub@redhat.com>
629
630         * dwarf2read.c (dwarf_str_buffer): New.
631         (struct dwarf2_pinfo): Add dwarf_str_buffer and dwarf_str_size.
632         (DWARF_STR_BUFFER, DWARF_STR_SIZE): Define.
633         (dwarf2_has_info): Clear dwarf_str_offset.
634         (dwarf2_build_psymtabs): Read .debug_str section if present.
635         (dwarf2_build_psymtabs_hard): Save DWARF_STR_BUFFER and
636         DWARF_STR_SIZE.
637         (psymtab_to_symtab_1): Restore DWARF_STR_BUFFER and DWARF_STR_SIZE.
638         (read_attribute): Handle DW_FORM_strp.
639         (read_n_bytes, read_string): Remove HOST_CHAR_BIT != 8
640         handling code.
641         (read_indirect_string): New.
642         (dump_die): Handle DW_FORM_strp.
643
644 2001-11-16  Jim Blandy  <jimb@redhat.com>
645
646         * s390-tdep.c: Tweak argument-passing to match GCC bugs.
647         (is_float_singleton, is_struct_like, is_float_like): New
648         functions, that isolate the weirdness.
649         (is_double_or_float, is_simple_arg, pass_by_copy_ref,
650         is_double_arg): Use is_struct_like and is_float_like, rather than
651         testing the type codes ourselves.
652         (s390_push_arguments): When passing args on the stack, align each
653         on to a four-byte boundary, regardless of what the type itself
654         needs.
655
656 2001-11-16  Ben Harris  <bjh21@netbsd.org>
657
658         * Makefile.in (os9kread.o): Replace $< with autoconf-approved
659         $(srcdir)/....
660         (procfs.o): Ditto.
661         (z8k-tdep.o): Ditto.
662
663 2001-11-16  Ben Harris  <bjh21@netbsd.org>
664
665         * MAINTAINERS (write-after-approval): Add self.
666
667 2001-11-15  Jim Blandy  <jimb@redhat.com>
668
669         * s390-tdep.c (is_simple_arg): Structs and unions exactly eight
670         bytes long should be handled as DOUBLE_ARGs; don't recognize them
671         as SIMPLE_ARGs.
672
673 2001-11-12  Andrew Cagney  <ac131313@redhat.com>
674
675         * remote.c (struct packet_reg): Declare.
676         (struct remote_state): Add fields sizeof_g_packet and g_packet.
677         (init_remote_state): Initialize sizeof_g_packet and g_packet.
678         (free_remote_state): Free g_packet.
679         (packet_reg_from_pnum, packet_reg_by_regnum): New functions.
680         (remote_wait): Use above instead of gdbarch methods
681         REGISTER_RAW_SIZE and REGISTER_BYTES.
682         (remote_async_wait): Ditto.
683         (remote_fetch_registers, remote_store_registers): Ditto.
684         (store_register_using_P): Ditto.
685         
686 2001-11-15  Andrew Cagney  <ac131313@redhat.com>
687
688         * remote.c (_initialize_remote): Don't multi-arch swap tty_input.
689         Second attempt.
690
691 2001-11-15  Andrew Cagney  <ac131313@redhat.com>
692
693         * utils.c (phex_nz): For default case, set str to phex_nz return
694         value.
695         (phex): Ditto.
696
697 2001-11-15  Andrew Cagney  <ac131313@redhat.com>
698
699         * TODO (register_buffer): Delete.
700         * regcache.c (register_buffer): Make static.
701         (regcache_collect): New function.
702         * regcache.h (register_buffer): Delete declaration.
703         (regcache_collect): Declare.
704         * remote.c (store_register_using_P): Rewrite using
705         regcache_collect.
706         (remote_store_registers): Ditto.
707         * go32-nat.c (store_register): Ditto.
708
709 2001-11-14  Andrew Cagney  <ac131313@redhat.com>
710
711         * remote.c (struct remote_state): Declare.
712         (get_remote_state): New function.
713         (init_remote_state): New function.
714         (remote_gdbarch_data_handle): New global.
715         (build_remote_packet_sizes): Delete function, moved to
716         init_remote_state.
717         (register_remote_packet_sizes): Delete function.
718         (actual_register_packet_size, remote_packet_size): Moved to
719         ``struct remote_state''.
720         (PBUFSIZE): Delete. Replaced by rs->remote_packet_size.
721         (free_remote_state): New function.
722         (get_memory_packet_size, get_memory_read_packet_size)
723         (set_thread, remote_unpack_thread_info_response)
724         (remote_get_threadinfo, parse_threadlist_response)
725         (remote_get_threadlist, remote_current_thread)
726         (remote_threads_info, remote_threads_extra_info)
727         (extended_remote_restart, get_offsets)
728         (get_offsets, remote_check_symbols, remote_open_1)
729         (remote_async_open_1, remote_detach, remote_async_detach)
730         (remote_resume, remote_async_resume, remote_wait)
731         (remote_async_wait, remote_fetch_registers)
732         (store_register_using_P, remote_store_registers)
733         (check_binary_download, putpkt_binary)
734         (remote_insert_breakpoint, remote_remove_breakpoint)
735         (remote_insert_watchpoint, remote_remove_watchpoint)
736         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
737         (compare_sections_command, remote_query)
738         (remote_rcmd, remote_rcmd, packet_command)
739         (remote_info_process): Update.
740
741 2001-11-14  Andrew Cagney  <ac131313@redhat.com>
742
743         * remote.c: Include "gdb_assert.h".
744         (tty_input): Wire buffer to 400 bytes.
745         (readsocket): Check tty_input doesn't overflow.
746         (build_remote_gdbarch_data, _initialize_remote): Don't multi-arch
747         tty_input.
748
749 2001-11-14  Michael Snyder  <msnyder@redhat.com>
750
751         * d10v-tdep.c (d10v_pointer_to_address): Use new type flag
752         TYPE_FLAG_CODE_SPACE to recognize a pointer that has been cast
753         into the instruction address space.
754         * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
755
756 2001-11-14  Michael Snyder  <msnyder@redhat.com>
757         Add address space identifiers to expression language for types.
758         * c-exp.y (space_identifier, cv_with_space_id, 
759         const_or_volatile_or_space_identifier_noopt, 
760         const_or_volatile_or_space_identifier): New terminals.
761         (ptype): Accept const_or_volatile_or_space_identifier.
762         (typebase): Accept const_or_volatile_or_space_identifier.
763         * c-typeprint.c (c_type_print_cv_qualifier): Rename to
764         c_type_print_modifier.  Handle address space modified types.
765         * gdbtypes.h (TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE):
766         New type flags.
767         (struct type): Add new field as_type for addr-space qualified types.
768         (TYPE_AS_TYPE): New macro, retrieves the chain of types that are
769         identical to this one except for address-space qualification.
770         * gdbtypes.c (alloc_type): Initialize new field 'as_type'.
771         (address_space_name_to_int): New function.
772         (address_space_int_to_name): New function.
773         (make_type_with_address_space): New function.
774         (make_cv_type): Handle as_type field of new struct type object.
775         * parse.c (check_type_stack_depth): New function.
776         (push_type_address_space): New function.
777         (follow_types): Handle types with address-space qualifier.
778         * parser-defs.h (enum type_pieces): Add enum tp_space_identifier.
779
780 2001-11-14  Jim Blandy  <jimb@redhat.com>
781
782         * s390-tdep.c (s390_pop_frame_regular): On the S/390, the frame
783         pointer and the SP are often the same, so we can't pop the frame
784         by setting the SP to the FP; we need to get the old SP from
785         saved_regs.
786
787         * s390-tdep.c (s390_extract_return_value): Returned `float' values
788         can simply be copied bitwise from the registers into the value
789         object's buffer.
790
791         * s390-tdep.c (s390_get_frame_info): Initialize SP's element of
792         the frame's saved_regs array correctly.
793
794         * symfile.c (simple_read_overlay_table): Make sure we can find
795         both `_novlys' and `_ovly_table' before we try anything else;
796         print a helpful error message.
797         (simple_overlay_update): No need to print error message here.
798
799 2001-11-14  Michael Snyder  <msnyder@redhat.com>
800
801         * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
802
803 2001-11-10  Andrew Cagney  <ac131313@redhat.com>
804
805         * arm-tdep.c (arm_register_type): New function.
806         (arm_register_convertible): Delete.
807         (arm_register_convert_to_virtual): Delete.
808         (arm_register_convert_to_raw): Delete.
809         * config/arm/tm-arm.h (REGISTER_CONVERTIBLE): Delete.
810         (REGISTER_CONVERT_TO_VIRTUAL): Delete.
811         (REGISTER_CONVERT_TO_RAW): Delete.
812         (REGISTER_VIRTUAL_TYPE): Redefine as call to arm_register_type.
813         (arm_register_type): Declare.
814         
815 2001-11-13  Elena Zannoni  <ezannoni@redhat.com>
816
817         From Andrew Cagney <cagney@redhat.com>:
818         * gdbtypes.h (builtin_type_int128, builtin_type_uint128): Declare.
819         * gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
820         new builtin types.  
821
822 2001-11-13  Jim Blandy  <jimb@redhat.com>
823
824         * s390-tdep.c: Rewrite inferior function call code.  This may
825         break zSeries support; that should be fixed soon.
826         #include "gdb_assert.h".
827         (is_integer_like, is_pointer_like, is_simple_arg,
828         pass_by_copy_ref, extend_simple_arg, is_double_arg, round_up,
829         round_down, alignment_of): New functions.
830         (s390_push_arguments): Rewritten to handle passing large arguments
831         by value, and to make more readable.
832
833         * s390-tdep.c (s390_pop_frame): Call generic_pop_current_frame, to
834         interact correctly with generic dummy frames.
835         (s390_pop_frame_regular): Move the guts of the frame-popping code
836         to here, to be called by generic_pop_current_frame.  Use the
837         frame's saved_regs array; this works for `return' as well as
838         inferior function calls.
839
840         * s390-tdep.c (s390_gdbarch_init): Register the function
841         `standard_coerce_float_to_double', since GCC for the S/390 follows
842         the standard rules for passing floats.
843
844         * valops.c (default_coerce_float_to_double,
845         standard_coerce_float_to_double): Doc fixes.
846
847         Patch from Peter Schauer:
848         
849         * symtab.c (find_pc_sect_line): If we can't find the function
850         containing PC, we certainly won't have line number information for
851         that location, so return zero immediately.
852
853 2001-11-10  Andrew Cagney  <ac131313@redhat.com>
854
855         * config/i960/tm-nindy960.h (REGISTER_CONVERTIBLE)
856         (REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Delete
857         undef.
858         * i960-tdep.c (i960_register_type): New function.
859         * config/i960/tm-i960.h (REGISTER_CONVERTIBLE): Delete.
860         (REGISTER_CONVERT_TO_VIRTUAL): Delete.
861         (REGISTER_CONVERT_TO_RAW): Delete.
862         (REGISTER_VIRTUAL_TYPE): Update.  Call i960_register_type.
863
864 2001-11-10  Andrew Cagney  <ac131313@redhat.com>
865
866         * m88k-tdep.c (m88k_register_type): New function.
867         * config/m88k/tm-m88k.h (REGISTER_CONVERTIBLE): Delete.
868         (REGISTER_CONVERT_TO_VIRTUAL): Delete.
869         (REGISTER_CONVERT_TO_RAW): Delete.
870         (m88k_register_type): Declare.
871         (REGISTER_VIRTUAL_TYPE): Update.  Call m88k_register_type.
872
873 2001-11-11  Mark Kettenis  <kettenis@elgar.my.domain>
874
875         * i386-tdep.h (FPU_REG_RAW_SIZE): Define unconditionally.
876         * i387-nat.c, i387-tdep.c: Unconditionally include "i386-tdep.h".
877         * config/i386/tm-i386.h (FPU_REG_RAW_SIZE): Removed.
878         (SIZEOF_FPU_REGS): Don't use FPU_REG_RAW_SIZE here.
879
880 2001-11-12  Jim Blandy  <jimb@redhat.com>
881
882         Patch from Andreas Schwab <schwab@suse.de>:
883         * eval.c (evaluate_subexp_standard): Fix memory leak: use alloca
884         instead of xmalloc.
885
886 2001-11-12  Jim Blandy  <jimb@redhat.com>
887
888         * corefile.c (write_memory_unsigned_integer,
889         write_memory_signed_integer): New functions.
890         (write_memory): Move to be with other write_memory_* functions.
891         * gdbcore.h (write_memory_unsigned_integer,
892         write_memory_signed_integer): New declarations.
893
894 2001-11-11  Geoffrey Keating  <geoffk@redhat.com>
895
896         * dwarf2read.c (dwarf_decode_lines): Properly deal with
897         unknown standard opcodes.
898
899 2001-11-11  Andrew Cagney  <ac131313@redhat.com>
900
901         * README (alpha-dec-osf5.1): Mention -DUSE_LDR_ROUTINES.
902         (sparcv9-sun-solars2.8): Mention problem with 64 bit GCC 3.0.x.
903         (i586-sco-sysv5uw7.1.1): Mention problem with threads.
904
905 2001-11-11  Andrew Cagney  <ac131313@redhat.com>
906
907         From Mark Kettenis  <kettenis@gnu.org>:
908         * breakpoint.c (breakpoint_re_set_one): Don't discard SHLIB
909         breakpoints when they fail.
910
911 2001-11-10  Andrew Cagney  <ac131313@redhat.com>
912
913         * printcmd.c, valprint.c, language.c, linespec.c, infcmd.c,
914         gnu-nat.c, findvar.c, expprint.c, typeprint.c, stack.c, top.c:
915         Replace value_ptr with struct value.
916
917 2001-11-10  Andrew Cagney  <ac131313@redhat.com>
918
919         * c-valprint.c, ch-lang.c, ch-valprint.c, cp-valprint.c,
920         p-valprint.c, scm-exp.c, scm-lang.c, scm-valprint.c: Replace
921         value_ptr with struct value.
922         
923 2001-11-10  Andrew Cagney  <ac131313@redhat.com>
924
925         * eval.c: Replace most occurances of value_ptr with struct value.
926
927 2001-11-09  Jim Blandy  <jimb@redhat.com>
928
929         * s390-tdep.c: Don't use a call dummy.
930         (s390_fix_call_dummy, s390_pc_in_call_dummy): Delete.
931         (s390_push_return_address): Put the address of the inferior call
932         breakpoint in r14.
933         (s390_gdbarch_init):
934         - Provide trivial definition of s390_call_dummy_words; register it
935           with the gdbarch appropriately.
936         - Delete S390x_call_dummy_words.
937         - Gather inferior-call-related settings into a group.
938         - Use generic dummy frames.
939         - Put the inferior call breakpoint at the entry point.
940         - Use generic gdbarch methods: pc_in_call_dummy_at_entry_point,
941           generic_push_dummy_frame, generic_fix_call_dummy.
942         - There is a call dummy breakpoint offset; it's zero.
943
944         * s390-tdep.c: (s390_push_arguments): Write a back chain pointer
945         into the dummy frame, to help us get backtraces.
946
947         * values.c (value_as_address): If VAL is a function or method,
948         just return its address; don't let COERCE_ARRAY convert its
949         address to a pointer, and then have unpack_long convert it back to
950         an address.
951
952 2001-11-06 Pierre Muller  <muller@ics.u-strasbg.fr>
953
954         * p-lang.c (is_pascal_string_type): New function to determine if a 
955         type is a string type.
956         * p-lang.h: Add prototype for is_pascal_string_type.
957         * p-valprint.c (pascal_val_print) : Use is_pascal_string_type function 
958         to display strings nicely.
959
960 2001-11-06 Pierre Muller  <muller@ics.u-strasbg.fr>
961
962         * p-exp.y (yylex): Only change case of expression if symbol is found.
963         Also check for GPC standard name form.
964
965 2001-11-08  Andrew Cagney  <ac131313@redhat.com>
966
967         * gdb_indent.sh: New file.
968
969 2001-11-08  Jim Blandy  <jimb@redhat.com>
970
971         * s390-tdep.c (s390_get_frame_info): Initialize got_load_addr and
972         got_load_len, to placate compiler.
973
974 2001-11-08  Mark Kettenis  <kettenis@gnu.org>
975
976         * i386-tdep.c (i386_gdbarch_init): Fix typo.
977
978 2001-11-08  Jim Blandy  <jimb@redhat.com>
979
980         * s390-tdep.c (s390_gdbarch_init): Use func_frame_chain_valid, not
981         file_frame_chain_valid.
982
983         * s390-tdep.c (s390_get_frame_info): If the prologue loads r12
984         from the constant pool, but doesn't add in the constant pool's
985         address to it, then this function probably isn't using r12 as a
986         GOT pointer, and that load probably wasn't part of the prologue.
987
988         * s390-tdep.c (s390_gdbarch_init): Use the default
989         prepare_to_proceed function established by config/nm-linux.h;
990         don't try to set it to linuxthreads_prepare_to_proceed.
991
992 Wed Nov  7 20:38:14 2001  Andrew Cagney  <cagney@redhat.com>
993
994         * i386-tdep.c: Include "i386-tdep.h".
995         (XMALLOC): Define.
996         (i386_gdbarch_init): New function.
997         (_initialize_i386_tdep): Register bfd_arch_i386.
998         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Define as
999         GDB_MULTI_ARCH_PARTIAL.
1000         * i386-tdep.h: When partially multi-arch, conditionally define
1001         all macros.
1002
1003 Wed Nov  7 20:45:32 2001  Andrew Cagney  <cagney@redhat.com>
1004
1005         * i386-tdep.c (set_disassembly_flavor): Delete function.
1006         (set_disassembly_flavor_sfunc): Delete function.
1007
1008 2001-11-07  Elena Zannoni  <ezannoni@redhat.com>
1009
1010         * dbxread.c (set_namestring): New function, replacing the
1011         SET_NAMESTRING macro.
1012         (SET_NAMESTRING, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE,
1013         CUR_SYMBOL_STRX, DBXREAD_ONLY, START_PSYMTAB, END_PSYMTAB): Delete
1014         definitions.
1015         (read_dbx_symtab): Don't include partial-stab.h any more. Don't
1016         reuse code in partial-stab.h, include the code directly, instead.
1017
1018         * Makefile.in (dbxread.o): Remove dependency on partial-stab.h.
1019         (HFILES_NO_SRCDIR): Remove partial-stab.h.
1020
1021         * partial-stab.h: Remove file.
1022         
1023 2001-11-07  Andrew Cagney  <ac131313@redhat.com>
1024
1025         * gdbarch.sh: For multi-arch functions, check there is a
1026         predefault and use it as the static default.
1027         * gdbarch.c: Re-generate.
1028
1029 2001-11-08  Mark Kettenis  <kettenis@gnu.org>
1030
1031         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Define in
1032         terms of NUM_GREGS, NUM_FREGS and NUM_SSE_REGS instead of
1033         hardcoding the register number.
1034
1035 2001-11-07  Andrew Cagney  <ac131313@redhat.com>
1036
1037         * gdbarch.sh (USE_STRUCT_CONVENTION): Default to
1038         generic_use_struct_convention.
1039         * gdbarch.h, gdbarch.c: Regenerate.
1040         * values.c (USE_STRUCT_CONVENTION): Delete definition, moved to
1041         gdbarch.h.
1042
1043 2001-11-06  Andrew Cagney  <ac131313@redhat.com>
1044
1045         * gdbarch.sh (PC_IN_CALL_DUMMY): Require a value.
1046         * gdbarch.c: Regenerate.
1047
1048 2001-11-06  Fred Fish  <fnf@redhat.com>
1049
1050         * complaints.c (info_verbose): Remove unneeded decl, is in defs.h.
1051         * dbxread.c: Ditto
1052         * dwarf2read.c: Ditto.
1053         * dwarfread.c: Ditto.
1054         * exec.c: Ditto.
1055         * hpread.c: Ditto.
1056         * hpread.h: Ditto.
1057         * mdebugread.c: Ditto.
1058         * os9kread.c: Ditto.
1059         * stack.c: Ditto.
1060         * symfile.c: Ditto.
1061         * tracepoint.c: Ditto.
1062
1063 2001-11-06  Andrew Cagney  <ac131313@redhat.com>
1064
1065         * MAINTAINERS: Update Andrew Cagney's responsibilities.  Mention
1066         David Taylor and Nick Duffek in past maintainers.
1067         
1068 2001-11-06  Elena Zannoni  <ezannoni@redhat.com>
1069
1070         * mdebugread.c (CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB,
1071         END_PSYMTAB, SET_NAMESTRING, HANDLE_RBRAC): Delete definitions.
1072         (parse_partial_symbols): Don't include partial-stab.h any
1073         more. Don't reuse code in partial-stab.h, include the code
1074         directly, instead. Simplify code from partial-stab.h eliminating
1075         ifdef DBXREAD_ONLY code.
1076
1077         * Makefile.in (mdebugread.o): Remove dependency on partial-stab.h.
1078
1079 2001-11-06  Jim Blandy  <jimb@redhat.com>
1080
1081         * s390-nat.c: #include "regcache.h", to get declaration for
1082         `supply_register'.  (The last change already added the dependency
1083         of s390-nat.o on regcache.h.  Oops.)
1084
1085         * Makefile.in (ALLDEPFILES): Add s390-tdep.c and s390-nat.c.
1086         (s390-tdep.o, s390-nat.o): New rules.
1087
1088         * s390-nat.c (s390_register_u_addr): Pass proper arguments to
1089         internal_error.
1090
1091 2001-11-06  Andrew Cagney  <ac131313@redhat.com>
1092
1093         * gdbarch.sh (CALL_DUMMY_LOCATION): Require a value.
1094         * gdbarch.c: Regenerate.
1095
1096 2001-11-06  Andrew Cagney  <ac131313@redhat.com>
1097
1098         * blockframe.c (get_prev_frame): Replace #ifdef
1099         INIT_EXTRA_FRAME_INFO with run-time test.
1100
1101 2001-11-05  Andrew Cagney  <ac131313@redhat.com>
1102
1103         * gdbarch.sh (push_return_address): Change to a function with
1104         predicate.
1105         * gdbarch.h, gdbarch.c: Re-generate.
1106         * valops.c (hand_function_call): Replace #ifdef
1107         PUSH_RETURN_ADDRESS with run-time test of PUSH_RETURN_ADDRESS_P.
1108         
1109 2001-11-06  Corinna Vinschen  <vinschen@redhat.com>
1110
1111         * arch-utils.c (generic_in_function_epilogue_p): New function.
1112         * arch-utils.h (generic_in_function_epilogue_p): Declare extern.
1113         * breakpoint.c (watchpoint_check): Add test whether the pc is   
1114         currently in the epilogue of a function.
1115         * gdbarch.c: Autogenerated from gdbarch.sh.
1116         * gdbarch.h: Ditto.
1117         * gdbarch.sh (function_list): Add `in_function_epilogue_p' definition.
1118
1119 2001-11-05  Jim Blandy  <jimb@redhat.com>
1120
1121         * config/s390/s390.mh (NATDEPFILES): Don't split this across
1122         several lines with backslashes; the `sed' command in
1123         configure.in's AC_OUTPUT clause that comments out the NATDEPFILES
1124         assignment doesn't handle lines extended with backslashes.
1125
1126         * configure.in (AC_OUTPUT): Handle assignments to NATDEPFILES
1127         using `+=' as well as `='.
1128         * configure: Regenerated.
1129         
1130 2001-11-05  Andrew Cagney  <ac131313@redhat.com>
1131
1132         * gdbarch.sh (init_extra_frame_info): Change to a function with
1133         predicate.
1134         * gdbarch.h, gdbarch.c: Re-generate.    
1135         * blockframe.c (create_new_frame): Replace #ifdef
1136         INIT_EXTRA_FRAME_INFO with run-time test of
1137         INIT_EXTRA_FRAME_INFO_P.
1138
1139 2001-11-05  Andrew Cagney  <ac131313@redhat.com>
1140
1141         * gdbarch.sh (verify_gdbarch): Use a mem_file to accumulate all
1142         error messages.  Print in a single batch.
1143         * gdbarch.c: Re-generate.
1144
1145 2001-11-04  Mark Kettenis  <kettenis@gnu.org>
1146
1147         * i386-linux-nat.c (GETREGS_SUPPLIES, supply_gregset,
1148         fill_gregset): Add support for "orig_eax" register.
1149
1150         Add support for "orig_eax" pseudo register on Linux/x86.
1151         * i386-linux-tdep.c: Include "inferior.h".
1152         (i386_linux_register_name, i386_linux_register_byte,
1153         i386_linux_register_raw_size): New functions.
1154         (i386_linux_write_pc): New function.
1155         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): New define.
1156         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
1157         REGISTER_BYTE, REGISTER_RAW_SIZE): Define to deal with additional
1158         register.
1159         (i386_linux_register_name, i386_linux_register_byte,
1160         i386_linux_register_raw_size): New prototypes.
1161         (TARGET_WRITE_PC): New define.
1162         (i386_linux_write_pc): New prototype.
1163
1164         * i386-tdep.c (i386_register_offset): Renamed from
1165         i386_register_byte.  Made static.
1166         (i386_register_size): Renamed from i386_register_raw_size.  Made
1167         static.
1168         (i386_register_virtual_size): Removed.
1169         (i386_register_byte, i386_register_raw_size,
1170         i386_register_virtual_size): New functions.
1171         (_initialize_i386_tdep): Initialize i386_register_offset instead
1172         of i386_register_byte.  Remove code to initialize
1173         i386_register_virtual_size.
1174         * config/i386/tm-i386.h (REGISTER_BYTE): Redefine to use
1175         i386_register_byte function.
1176         (REGISTER_RAW_SIZE): Redefine to use i386_register_raw_size
1177         function.
1178         (REGISTER_VIRTUAL_SIZE): Redefine to use
1179         i386_register_virtual_size function.
1180         (i386_register_byte, i386_register_raw_size,
1181         i386_register_virtual_size): New functions.
1182
1183         * Makefile.in (ALLDEPFILES): Add i387-nat.c.
1184         (i387-nat.o): Add dependencies.
1185
1186 2001-11-02  Andrew Cagney  <ac131313@redhat.com>
1187
1188         * README: Mention problem with alpha-dec-osf5.1.
1189
1190 2001-11-02  Andrew Cagney  <ac131313@redhat.com>
1191
1192         * utils.c (internal_verror): Restore calls to abort().
1193         Fix PR gdb/219.
1194         
1195 2001-11-02  Michael Chastain  <mec@shout.net>
1196
1197         * MAINTAINERS: Update my entry.
1198
1199 2001-11-01  Michael Snyder  <msnyder@redhat.com>
1200
1201         * symtab.c (operator_chars): Allow '*' and '[' to be quoted in
1202         operator names, to avoid regexp expansion.
1203         (search_symbols): Alloca buffer is too small, may get clobbered.
1204
1205 2001-11-01  Fred Fish  <fnf@redhat.com>
1206
1207         * coff-solib.c (coff_solib_add): Add new readsyms arg.
1208         * irix5-nat.c (solib_add): Ditto.
1209         * osfsolib.c (solib_add): Ditto.
1210         * pa64solib.c (pa64_solib_add): Ditto.
1211         * pa64solib.c (add_to_solist): Ditto.
1212         * pa64solib.c (read_dld_descriptor): Ditto.
1213         * solib.c (solib_add): Ditto.
1214         * somsolib.c (som_solib_add): Ditto.
1215         * win32-nat.c (child_solib_add): Ditto.
1216         * xcoffsolib.c (solib_add): Ditto.
1217
1218         * coff-solib.h (coff_solib_add): Add new readsyms arg to prototype.
1219         * pa64solib.c (add_to_solist): Ditto.
1220         * pa64solib.c (read_dld_descriptor): Ditto.
1221         * pa64solib.h (pa64_solib_add): Ditto.
1222         * solib.h (solib_add): Ditto.
1223         * somsolib.h (som_solib_add): Ditto.
1224         * config/i386/tm-cygwin.h (child_solib_add): Ditto.
1225
1226         * coff-solib.c (coff_solib_add):  If readsyms is zero don't read
1227         symbols but do any other needed work for shared libs.
1228         * irix5-nat.c: Ditto.
1229         * osfsolib.c (solib_add): Ditto.
1230         * solib.c (solib_add): Ditto.
1231         * win32-nat.c (child_solib_add): Ditto.
1232         * xcoffsolib.c (solib_add): Ditto.
1233
1234         * irix5-nat.c (sharedlibrary_command): Pass 1 as readsyms to
1235         solib_add to force reading of shared library symbols.
1236         * osfsolib.c (sharedlibrary_command;): Ditto.
1237         * pa64solib.c (pa64_solib_sharedlibrary_command): Ditto.
1238         * solib.c (sharedlibrary_command): Ditto.
1239         * somsolib.c (som_solib_sharedlibrary_command): Ditto.
1240         * xcoffsolib.c (sharedlibrary_command): Ditto.
1241
1242         * coff-solib.c (coff_solib_create_inferior_hook): Call solib_add
1243         unconditionally with auto_solib_add.
1244         * irix5-nat.c (solib_create_inferior_hook): Ditto.
1245         * osfsolib.c (solib_create_inferior_hook): Ditto.
1246         * solib.c (solib_create_inferior_hook): Ditto.
1247         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
1248         * solib-svr4.c (enable_break): Ditto.
1249         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
1250
1251         * corelow.c (solib_add_stub): Add auto_solib_add to args passed
1252         via SOLIB_ADD.
1253         * sol-thread.c (sol_thread_attach): Ditto.
1254         * config/rs6000/nm-rs6000.h (SOLIB_ADD): Ditto.
1255
1256         * infcmd.c (attach_command): Remove auto_solib_add decl.
1257         Call SOLIB_ADD directly with auto_solib_add.
1258         * infrun.c (handle_inferior_event): Ditto.
1259
1260         * coff-solib.h (SOLIB_ADD): Add readsyms arg.
1261         * pa64solib.h (SOLIB_ADD): Ditto.
1262         * solib.h (SOLIB_ADD): Ditto.
1263         * somsolib.h (SOLIB_ADD): Ditto.
1264         * config/i386/tm-cygwin.h (SOLIB_ADD): Ditto.
1265
1266         * fork-child.c (clone_and_follow_inferior): Remove unused
1267         auto_solib_add decl.
1268
1269         * pa64solib.c (pa64_solib_add): Call add_to_solist with readsyms.
1270         (read_dld_descriptor): Ditto.
1271         (pa64_solib_add): Call read_dld_descriptor with readsyms.
1272         (pa64_solib_in_dynamic_linker): Ditto.
1273
1274         * corelow.c (symfile.h): Need this for auto_solib_add declaration.
1275         * sol-thread.c (symfile.h): Ditto.
1276
1277 2001-10-31  Andrew Cagney  <ac131313@redhat.com>
1278
1279         * s390-nat.c (s390_remove_watchpoint): Use xfree.
1280         (s390_insert_watchpoint): Use xmalloc.
1281
1282 2001-10-31  Andrew Cagney  <ac131313@redhat.com>
1283
1284         * varobj.c: Replace value_ptr with ``struct value *''.
1285
1286 2001-10-31  Andrew Cagney  <ac131313@redhat.com>
1287
1288         * varobj.c: Re-indent.
1289
1290 2001-10-31  Andrew Cagney  <ac131313@redhat.com>
1291
1292         * x86-64-tdep.c (value_push, x86_64_push_arguments): Replace
1293         ``value_ptr'' with ``struct value *''.
1294         * s390-tdep.c (s390_push_arguments): Ditto.
1295
1296 2001-10-30  Andrew Cagney  <ac131313@redhat.com>
1297
1298         * ppc-tdep.h: Add #ifndef wrapper.  Replace value_ptr with
1299         ``struct value *''.
1300         (struct frame_info, struct value): Add opaque declarations.
1301         
1302 2001-10-31  Corinna Vinschen  <vinschen@redhat.com>
1303
1304         * arch-utils.c (generic_in_solib_call_trampoline): New function.
1305         * arch-utils.h (generic_in_solib_call_trampoline): Extern declaration.  
1306         * gdbarch.c: Regenerated from gdbarch.sh.
1307         * gdbarch.h: Ditto.
1308         * gdbarch.sh (function_list): Add `IN_SOLIB_CALL_TRAMPOLINE' definition.
1309         * infrun.c (IN_SOLIB_CALL_TRAMPOLINE): Remove macro.
1310
1311 2001-10-31  Andrew Cagney  <ac131313@redhat.com>
1312
1313         From DJ Barrow.
1314         * s390-tdep.c: (s390_gdbarch_init): Don't initialize
1315         find_solib_trampoline_target.
1316
1317 2001-10-31  Andrew Cagney  <ac131313@redhat.com>
1318
1319         * remote-vx.c (net_wait): Fix typo from PIDGET change.
1320
1321 2001-10-31  Mark Kettenis  <kettenis@gnu.org>
1322
1323         * config/i386/tm-i386.h (REGISTER_NAMES): Remove.
1324         (REGISTER_NAME): New define.
1325         (i386_register_name): New prototype.
1326         * i386-tdep.c (i386_register_names): New variable.
1327         (i386_register_name): New function.
1328         * config/i386/tm-i386os9k.h, config/i386/tm-ptx.h,
1329         config/i386/tm-symmetry.h: Undefine REGISTER_NAME instead of
1330         REGISTER_NAMES.
1331
1332 2001-10-31  Christopher Faylor  <cgf@redhat.com>
1333
1334         * win32-nat.c (register_loaded_dll): Attempt to ensure that the case of
1335         the loaded DLL matches the on-disk case since the debugging API does
1336         not seem to ensure this.  Calculate max name length here.
1337         (handle_load_dll): Move max name length calculation to
1338         register_loaded_dll.
1339
1340 2001-10-31  Daniel Jacobowitz  <drow@mvista.com>
1341
1342         * arm-linux-nat.c: Include <asm/ptrace.h> explicitly.
1343
1344 2001-10-30  Keith Seitz  <keiths@redhat.com>
1345
1346         * wrapper.h (gdb_value_struct_elt): New function.
1347         * wrapper.c (gdb_value_struct_elt): Ditto.
1348         (do_captured_value_struct_elt): Ditto.
1349
1350 2001-10-30  Andrew Cagney  <ac131313@redhat.com>
1351
1352         * README, NEWS: Update for 5.1.
1353
1354 2001-10-30  Andrew Cagney  <ac131313@redhat.com>
1355
1356         * configure.in (WERROR_CFLAGS): Use AC_TRY_COMPILE to test the
1357         -W... flags.
1358         * configure: Re-generate.
1359
1360 2001-10-30  Fred Fish  <fnf@redhat.com>
1361
1362         * somsolib.c (som_solib_add): A megabyte is 1024*1024 bytes.
1363         * pa64solib.c (add_to_solist): Ditto.
1364         * win32-nat.c (_initialize_inftarg): Remove unnecessary
1365         initialization of auto_solib_add, it defaults to 1.
1366
1367 2001-10-27  Fred Fish  <fnf@redhat.com>
1368
1369         * symfile.c (auto_solib_add): Update comment to note that
1370         this variable is now just used as a boolean to control shlib
1371         autoloading, and clarify when it is used.
1372         * symfile.h (auto_solib_add): Ditto.
1373
1374         * symfile.c (auto_solib_limit): New variable that holds the
1375         autoloading threshold instead of overloading auto_solib_add.
1376         * symfile.h (auto_solib_limit): Ditto.
1377
1378         * irix5-nat.c (_initialize_solib): Change auto-solib-add
1379         variable from var_zinteger to var_boolean and update help.
1380         * osfsolib.c (_initialize_solib): Ditto.
1381         * pa64solib.c (_initialize_pa64_solib): Ditto.
1382         * solib.c (_initialize_solib): Ditto.
1383         * somsolib.c (_initialize_som_solib): Ditto.
1384         * xcoffsolib.c (_initialize_solib): Ditto.
1385
1386         * pa64solib.c (pa64_solib_total_st_size): Update comment to
1387         note that the new auto_solib_limit variable is used instead
1388         of overloading auto_solib_add variable.
1389         (_initialize_pa64_solib): Ditto.
1390         * somsolib.c (som_solib_total_st_size): Ditto.
1391         (_initialize_som_solib): Ditto.
1392
1393         * pa64solib.c (_initialize_pa64_solib): Add new set/show
1394         commands for auto-solib-limit variable.
1395         * somsolib.c (_initialize_som_solib): Ditto
1396
1397         * pa64solib.c (add_to_solist): Check that auto_solib_add is
1398         set and use auto_solib_limit as the threshold size instead
1399         of auto_solib_add.
1400         * somsolib.c (som_solib_add): Ditto, and also change warning
1401         text about size threshold exceeded.
1402
1403 2001-10-21  Mark Kettenis  <kettenis@gnu.org>
1404
1405         * config/i386/tm-i386v.h: Don't include "regcache.h".
1406         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, FRAME_CHAIN,
1407         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_NUM_ARGS):
1408         Remove macros.  The versions from "tm-i386.h" should work fine
1409         (and in most cases even better).
1410
1411 2001-10-30  Mark Kettenis  <kettenis@gnu.org>
1412
1413         * i386-tdep.c (i386_extract_return_value): Use
1414         convert_typed_floating to extract floating-point value from
1415         register buffer.
1416         (i386_store_return_value): Use convert_typed_floating to store
1417         floating-point return balue in register buffer
1418         (i386_register_virtual_type): Change type of floating-point
1419         registers to builtin_type_i387_ext.
1420         (i386_register_convert_to_virtual): Use convert_typed_floating to
1421         do the conversion.
1422         (i386_register_convert_to_raw): Likewise.
1423
1424 2001-10-29  Mark Kettenis  <kettenis@gnu.org>
1425
1426         * doublest.h (convert_typed_floating): New prototype.
1427         * doublest.c (convert_typed_floating): New function.
1428
1429 2001-10-28  Mark Kettenis  <kettenis@gnu.org>
1430
1431         * doublest.c: Improve comments a bit.
1432         (floatformat_from_length): New function.
1433         (NAN): Define to 0.0 if not already defined.
1434         (extract_floating): Rewrite to use floatformat_from_length.  Warn
1435         instead of error if LEN doesn't match a known floating-point type,
1436         and return NaN (or 0.0 if NaN isn't available) in that case.
1437         (store_floating): Likewise, but zero out the target byte-stream if
1438         LEN doesn't match a known floating-point type.
1439         (extract_typed_floating): Reformat a bit.
1440         (store_typed_floating): Reformat a bit.  Add comment about zeroing
1441         out padding in the target buffer.
1442         * doublest.h (extract_floating, store_floating): Fix comment about
1443         deprecation of these functions.  Add parameter names to prototypes.
1444
1445 2001-10-28  Mark Kettenis  <kettenis@gnu.org>
1446
1447         * i387-tdep.c (print_i387_value): Use extract_typed_floating to
1448         convert RAW to a DOUBLEST instead of extract_floating.
1449
1450         * gdbtypes.c (_initialize_gdbtypes): Set floating-point type for
1451         builtin_type_i387_ext to floatformat_i387_ext.
1452
1453 2001-10-24  Daniel Jacobowitz  <drow@mvista.com>
1454
1455         * arm-linux-nat.c (fill_gregset): Do not check register_valid[].
1456         (fill_fpregset): Likewise.
1457
1458 2001-10-26  Orjan Friberg  <orjanf@axis.com>
1459
1460         * cris-tdep.c (constraint): Loop through the whole cris_spec_regs
1461         struct, not just the NUM_SPECREGS first entries.
1462         (bdap_prefix): Read PC before autoincrement.
1463
1464 2001-10-24  Corinna Vinschen  <vinschen@redhat.com>
1465
1466         * win32-nat.c (DebugSetProcessKillOnExit): New static function
1467         pointer to Windows' DebugSetProcessKillOnExit() function.
1468         (DebugActiveProcessStop): Ditto for DebugActiveProcessStop().
1469         (has_detach_ability): New function.
1470         (child_attach): If system has detach ability, enable it.
1471         (child_detach): If system has detach ability, actually  
1472         detach from process.
1473         Change tty output to Linux format.
1474
1475 2001-10-23  Jim Blandy  <jimb@redhat.com>
1476
1477         Isolate STABS readers' use of the `textlow' and `texthigh' fields
1478         of `struct partial_symtab' to only a few locations.  This change
1479         is not supposed to affect the way the values are computed, only
1480         where they live.
1481
1482         * dbxread.c (struct symloc): Add `textlow' and `texthigh' fields
1483         to the reader-specific structure.
1484         * mdebugread.c (struct symloc): Same.
1485         * dbxread.c (TEXTLOW, TEXTHIGH): New accessor macros.
1486         * mdebugread.c (TEXTLOW, TEXTHIGH): Same.
1487         * dbxread.c (dbx_symfile_read): After we've built all our partial
1488         symbol tables, set each partial symtab's `textlow' and `texthigh'
1489         fields from our reader-specific structure.
1490         * mdebugread.c (mdebug_build_psymtabs): Same.
1491         * dbxread.c (start_psymtab): Initialize the reader-specific
1492         structure's `textlow' and `texthigh' from the new psymtab's.
1493         * mdebugread.c (parse_partial_symbols, new_psymtab): Same.
1494         * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): Use
1495         the reader-specific `textlow' and `texthigh', not the generic
1496         psymtab fields.
1497         * mdebugread.c (parse_lines, parse_partial_symbols,
1498         psymtab_to_symtab_1): Same.
1499         * partial-stab.h: Same.
1500
1501 Tue Oct 23 18:59:42 2001  Andrew Cagney  <cagney@redhat.com>
1502
1503         * hp-psymtab-read.c, hppah-nat.c, hppa-tdep.c: Fix -Wformat
1504         problems.
1505
1506 Tue Oct 23 14:16:10 2001  Andrew Cagney  <cagney@redhat.com>
1507
1508         * somsolib.c (som_solib_add): Use core_addr_to_host_pointer.
1509         (som_solib_desire_dynamic_linker_symbols): Compare integers with
1510         zero not NULL.
1511         * hp-psymtab-read.c (hpread_call_pxdb): Make parameter constant.
1512
1513 2001-10-21  Andrew Cagney  <ac131313@redhat.com>
1514
1515         * top.c (print_gdb_version): Do not print ``(MI_OUT)''.  MI
1516         interface is always enabled.
1517
1518 2001-10-21  Andrew Cagney  <ac131313@redhat.com>
1519
1520         * Makefile.in: Replace top.h with $(top_h). Replace expression.h
1521         with $(expression_h).  Replace command.h with $(command_h).
1522         (language_h): Define.  Replace language.h with $(language_h).
1523         Replace call-cmds.h with $(call_cmds_h).  Replace varobj.h with
1524         $(varobj_h).
1525         (wrapper_h, valprint_h, objfiles_h, complaints_h): Ditto.
1526         (serial_h, hpread_h, buildsym_h, stabsread_h): Ditto.
1527         (xcoffsolib_h, gdb_stabs_h, linespec_h): Ditto.
1528         (bcache_h, gdb_events_h, monitor_h): Ditto.
1529         (ser_unix_h, source_h): Ditto.
1530         (varobj_h): Update list.
1531
1532         * call-cmds.h: Add CALL_CMDS_H macro wrapper.
1533         * solist.h: Add SOLIST_H macro wrapper.
1534         * monitor.h: Add MONITOR_H macro wrapper.
1535         * typeprint.h: Add TYPEPRINT_H macro wrapper.
1536         * xcoffsolib.h: Add XCOFFSOLIB_H macro wrapper.
1537         * valprint.h: Add VALPRINT_H macro wrapper.
1538         * top.h: Add TOP_H macro wrapper.
1539         
1540 2001-10-21  Andrew Cagney  <ac131313@redhat.com>
1541
1542         * config/a29k/tm-vx29k.h, i386-tdep.c: Include "value.h".
1543         * arm-tdep.c, exec.c, ia64-tdep.c, infrun.c: Ditto.
1544         * ppc-linux-tdep.c, remote-es.c, remote.c: Ditto.
1545         * rs6000-tdep.c, s390-tdep.c, x86-64-tdep.c: Ditto.
1546         * Makefile.in (arm-tdep.o, exec.o, i386-tdep.o, ia64-tdep.o)
1547         (infrun.o, ppc-linux-tdep.o, remote.o, rs6000-tdep.o)
1548         (x86-64-tdep.o): Update dependencies.
1549         * gdbarch.sh [!GDB_MULTI_ARCH]: Include "value.h".
1550         * gdbarch.h, gdbarch.c: Re-generate.
1551
1552 2001-10-21  Mark Kettenis  <kettenis@gnu.org>
1553
1554         * infptrace.c (child_xfer_memory): Fix a few coding standards
1555         violations.
1556
1557 2001-10-21  Eli Zaretskii  <eliz@is.elta.co.il>
1558
1559         * config/djgpp/README: Fix a typo and tweak for GDB 5.1.
1560
1561 2001-10-20  Andrew Cagney  <ac131313@redhat.com>
1562
1563         * jv-lang.h: Add #ifndef JV_LANG_H wrapper.
1564         (struct value): Add opaque declaration.  Replace value_ptr with
1565         ``struct value *''.
1566         * jv-valprint.c, jv-lang.c: Replace value_ptr with equivalent
1567         struct.
1568
1569         * wrapper.h (struct value): Add opaque declaration.  Replace
1570         value_ptr with ``struct value *''.
1571         * wrapper.c: Replace value_ptr with ``struct value *''.
1572         * breakpoint.h, breakpoint.c: Ditto.
1573         * cp-abi.h, hpacc-abi.c, gnu-v2-abi.c, cp-abi.c: Ditto.
1574
1575 2001-10-20  Andrew Cagney  <ac131313@redhat.com>
1576
1577         * alpha-nat.c: Include <alpha/coreregs.h> instead of
1578         <machine/reg.h>.
1579         (fetch_osf_core_registers): Define core_reg_mapping in a way that
1580         works on OSF5 as well as previous OSF versions.
1581
1582 2001-10-20  Christopher Faylor  <cgf@redhat.com>
1583
1584         * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin
1585         may not be able to read them in certain situations.
1586
1587 2001-10-18  Andrew Cagney  <ac131313@redhat.com>
1588
1589         * config/powerpc/nbsd.mt (SIM_OBS, SIM): Define.
1590         * config/powerpc/linux.mt (SIM, SIM_OBS): Ditto
1591
1592 2001-10-18  Andrew Cagney  <ac131313@redhat.com>
1593
1594         * README: Mention problems with HP/UX.
1595
1596 2001-10-16  Andrew Cagney  <ac131313@redhat.com>
1597
1598         Based on code by John Moore <jmore@redhat.com>:
1599         
1600         * utils.c (core_addr_to_string): New function for conversion of
1601         CORE_ADDR to string.
1602         (string_to_core_addr): New function to convert from string to
1603         CORE_ADDR.
1604         * defs.h: Added extern statements for the above.
1605
1606 2001-10-17  Jason Molenda  (jason-cl@molenda.com)
1607
1608         * symtab.c (lookup_block_symbol):  Break out of linear search
1609         if we're past the range of possible matches.
1610
1611 2001-10-16  Christopher Faylor  <cgf@redhat.com>
1612
1613         * win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding
1614         load of already loaded DLL.
1615         (register_loaded_dll): Convert loaded DLL name to "posix" format or it
1616         will confuse subsequent opening of the filename due to dos paths.
1617         (dll_symbol_command): Pass from_tty parameter to safe_symbol_file_add.
1618
1619 2001-10-15  Elena Zannoni  <ezannoni@redhat.com>
1620
1621         * symtab.c (lookup_block_symbol): Update comment.
1622
1623 2001-10-15  Andrew Cagney  <ac131313@redhat.com>
1624
1625         * value.h (value_as_address): Rename value_as_pointer.
1626         * eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c,
1627         jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c,
1628         values.c: Update.
1629
1630 202001-10-15  Jim Ingham  <jingham@inghji.apple.com>
1631
1632         * valarith.c (value_sub): Don't pass a raw type to
1633         value_from_pointer, it has to go through check_typedef first.
1634
1635 2001-10-15  Andrew Cagney  <ac131313@redhat.com>
1636
1637         * gdbarch.sh (fallbackdefault): Set to one when predefault is
1638         empty.
1639         * gdbarch.h: Regenerate.
1640
1641 2001-10-15  Andrew Cagney  <ac131313@redhat.com>
1642
1643         * mips-tdep.c (mips_integer_to_address): New function.
1644         (mips_gdbarch_init): Initialize pointer_to_address,
1645         address_to_pointer and integer_to_address.
1646
1647         * config/mips/tm-mips.h (POINTER_TO_ADDRESS): Delete
1648         (ADDRESS_TO_POINTER): Delete.
1649
1650         * d10v-tdep.c (d10v_integer_to_address): New function.
1651         (d10v_gdbarch_init): Initialize integer_to_address.
1652
1653         * values.c (value_as_pointer): Use INTEGER_TO_ADDRESS when
1654         available.
1655
1656         * gdbarch.sh (INTEGER_TO_ADDRESS): New predicate and function.
1657         * gdbarch.h, gdbarch.c: Regenerate.
1658
1659 2001-10-14  Mark Kettenis  <kettenis@gnu.org>
1660
1661         * config/s390/nm-linux.h: Don't include <signal.h>.
1662         (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
1663         GET_THREAD_SIGNAL): Remove.
1664
1665         * config/nm-linux.h (struct objfile): Remove forward declaration.
1666         (linuxthreads_new_objfile): Remove prototype.
1667         (linuxthreads_pid_to_str): Remove prototype.
1668         (PREPARE_TO_PROCEED): Redefine in terms of
1669         lin_lwp_prepare_to_proceed.
1670         (struct target_waitstatus): Forward declaration.
1671         (child_wait): New prototype.
1672         (CHILD_WAIT): Define.
1673         (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
1674         GET_THREAD_SIGNAL): Moved here from arch-specific files.
1675         * config/alpha/nm-linux.h, config/arm/nm-linux.h,
1676         config/ia64/nm-linux.h, config/mips/nm-linux.h,
1677         config/powerpc/nm-linux.h: Don't include <signal.h>.
1678         (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
1679         GET_THREAD_SIGNAL): Remove.
1680         * config/i386/nm-linux.h: Likewise.
1681         (struct target_waitstatus, child_wait, CHILD_WAIT): Remove.
1682         * config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES):
1683         Remove linux-thread.o.  Add proc-service.o, thread-db.o and
1684         lin-lwp.o.
1685         (LOADLIBES): New variable.
1686
1687         * sparc-nat.c (fetch_core_registers): Remove redundant prototype.
1688
1689         * proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
1690
1691         Fix attaching to cloned processes.  This fixes PR gdb/61.
1692         * lin-lwp.c (struct lwp_info): Add new member `cloned'.
1693         (is_cloned) Removed.
1694         (lin_lwp_attach_lwp): Don't call stop_wait_callback.  Instead call
1695         waitpid explicitly.  Mark the LWP as cloned if waitpid fails and
1696         retry with __WCLONE flag.
1697         (lin_lwp_attach): Likewise.  Warn if attaching to a cloned process.
1698         (detach_callback): Replace use of is_cloned with explicit check on
1699         LWP id and process id.
1700         (stop_wait_callback): Replace use of is_cloned with check if LWP
1701         is marked as cloned.
1702         [CHILD_WAIT] (child_wait): New function.
1703         (lin_lwp_wait): Replace use of is_cloned with check if LWP is
1704         marked as cloned.  Mark newly detected LWPs as cloned if detected
1705         by waitpid with __WCLONE flag.
1706         (kill_wait_callback): Replace use of is_cloned with check if LWP
1707         is marked as cloned.
1708         * config/i386/nm-linux.h (struct target_waitstatus): Add forward
1709         declaration.
1710         (child_wait): Add prototype.
1711         (CHILD_WAIT): Define.
1712
1713 2001-10-13  Andrew Cagney  <ac131313@redhat.com>
1714
1715         S/390 31 & 64 bit target and GNU/Linux native support.
1716         Contributed by D.J. Barrow <djbarrow@de.ibm.com> of IBM.
1717         * s390-nat.c, s390-tdep.c: New file.
1718         * config/s390/nm-linux.h, config/s390/s390.mh: New file.
1719         * config/s390/s390.mt, config/s390/s390x.mt: New file.
1720         * config/s390/tm-linux.h, config/s390/tm-s390.h: New file.
1721         * config/s390/xm-linux.h: New file.
1722         * NEWS: Update.
1723         * MAINTAINERS: Update.
1724
1725 2001-10-13  Andrew Cagney  <ac131313@redhat.com>
1726
1727         From 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
1728         * gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check
1729         CALL_DUMMY_BREAKPOINT_OFFSET_P.
1730         * gdbarch.c: Regenerate.
1731         
1732 2001-10-13  Mark Kettenis  <kettenis@gnu.org>
1733
1734         * thread-db.c: Fix a few formatting mistakes.
1735
1736 2001-10-12  Christopher Faylor  <cgf@redhat.com>
1737
1738         * win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked
1739         list pointer to beginning rather than one beyond beginning.
1740
1741 2001-10-12  Daniel Jacobowitz  <drow@mvista.com>
1742
1743         * symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.
1744
1745         * symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1746         (make_symbol_completion_list): Likewise.
1747         (make_symbol_overload_list): Likewise.
1748         * buildsym.c (finish_block): Likewise.
1749         * breakpoint.c (get_catch_sals):  Likewise.
1750         * mdebugread.c (mylookup_symbol): Likewise.
1751         * objfiles.c (objfile_relocate): Likewise.
1752         * printcmd.c (print_frame_args): Likewise.
1753         * stack.c (print_block_frame_locals): Likewise.
1754         (print_block_frame_labels): Likewise.
1755         (print_frame_arg_vars): Likewise.
1756         * symmisc.c (dump_symtab): Likewise.
1757         * tracepoint.c (add_local_symbols): Likewise.
1758         (scope_info): Likewise.
1759
1760 2001-10-12  Daniel Jacobowitz  <drow@mvista.com>
1761
1762         * minsyms.c (msymbol_hash): Use better hash function.
1763         (msymbol_hash_iw): Likewise.  Terminate loop at '(' properly.
1764
1765         * objfiles.h: Increase MINIMAL_SYMBOL_HASH_SIZE to match modern
1766         binaries.
1767
1768 2001-10-12  Daniel Jacobowitz  <drow@mvista.com>
1769
1770         * printcmd.c (print_frame_args):  Move symbol iteration explicitly
1771         inside the func != NULL block.
1772
1773 2001-10-12  Fernando Nasser  <fnasser@redhat.com>
1774
1775         * MAINTAINERS (Misc): Add Ian Roxborough as tcl/, tk/ and itcl/
1776         maintainer.
1777
1778 2001-10-12  Pierre Muller  <muller@ics.u-strasbg.fr>
1779
1780         * config/i386/tm-cygwin.h: Include tm-i386.h instead of tm-i386v.h.
1781         This fixes errors in "long long" handling for 'finish' and 'return'
1782         commands.
1783
1784 2001-10-12  Christopher Faylor  <cgf@redhat.com>
1785
1786         * win32-nat.c (safe_symbol_file_add_stub): Avoid adding a shared
1787         library if it has already been loaded.
1788         (safe_symbol_file_add_cleanup): Don't mess with stderr or we won't see
1789         any error messages.
1790         (safe_symbol_file_add): Ditto.
1791         (solib_symbols_add): Make static.  Accept 'from_tty' parameter.  Pass
1792         it to safe_symbol_file_add.
1793         (core_dll_symbols_add): Accomodate extra solib_symbols_add parameter.
1794         (child_solib_add): Ditto.
1795
1796         * win32-nat.c (handle_exception): Don't print "first chance"
1797         exceptions.
1798         (get_child_debug_event): Continue from exceptions if !handle_exception.
1799
1800 2001-10-11  Tom Tromey  <tromey@redhat.com>
1801
1802         * symtab.c (lookup_symtab): Removed.
1803         (lookup_symtab_1): Renamed to lookup_symtab.
1804
1805 2001-10-10  Christopher Faylor  <cgf@redhat.com>
1806
1807         * win32-nat.c (get_child_debug_event): Close file handles created after
1808         process creation and DLL load.
1809         (child_create_inferior): Close unneeded process/thread handle after
1810         thread creation.
1811
1812 2001-10-10  Jim Blandy  <jimb@redhat.com>
1813
1814         * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
1815
1816 2001-10-10  Keith Seitz  <keiths@redhat.com>
1817
1818         * varobj.c (cplus_value_of_child): Deal with a failure
1819         to dereference a pointer object.
1820
1821 2001-10-08  J. Brobecker <brobecker@gnat.com>
1822
1823         * hpux-thread.c: rewrite find_active_thread() and find_tcb()
1824         to use ptid_t, instead of overloading the thread and the pid
1825         into the same 32-bit value. Make associated necessary adaptations.
1826         Also remove unused variable cached_active_thread.
1827
1828 2001-10-08  Nicholas Duffek  <nsd@redhat.com>
1829
1830         * MAINTAINERS (powerpc, SCO/Unixware, Solaris/x86): Remove my
1831         entries.
1832
1833 2001-10-06  Mark Kettenis  <kettenis@beast.freebsd.org>
1834
1835         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.
1836
1837 2001-10-04  Tom Tromey  <tromey@redhat.com>
1838
1839         * main.c (enable_external_editor): Don't declare.
1840         (captured_main): Don't set enable_external_editor.
1841
1842 2001-10-02  Kevin Buettner  <kevinb@redhat.com>
1843
1844         * Makefile.in (ALLDEPFILES): Add solib-svr4.c and solib-sunos.c
1845         to this list.
1846         (solib-sunos.o): Add dependencies.
1847         (solib-svr4.o): Revise dependencies.
1848         * solib-svr4.c: Remove SunOS shared library support.
1849         * solib-sunos.c: New file, created from solib-svr4.c, which still
1850         contains SunOS shared library support, but no SVR4 support.
1851
1852         * config/i386/nbsd.mh (NATDEPFILES): Remove solib-svr4.o and
1853         solib-legacy.o from this list.  Add solib-sunos.o.
1854         * config/i386/sun386.mt (TDEPFILES): Likewise.
1855         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
1856         * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
1857         * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
1858         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
1859         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
1860         * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
1861
1862 2001-10-01  Elena Zannoni <ezannoni@redhat.com>
1863
1864         * Makefile.in (mipsread.o): Remove old dependency on partial-stab.h.
1865
1866 2001-10-01  Elena Zannoni <ezannoni@redhat.com>
1867
1868         * xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN,
1869         N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV,
1870         CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB,
1871         SET_NAMESTRING): Delete definitions.
1872         Don't include language.h any more.
1873         Don't include partial-stab.h any more.
1874         (scan_xcoff_symtab): Don't jump through hoops to reuse code in
1875         partial-stab.h, include the code directly, instead.
1876
1877         * Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
1878
1879 2001-10-01  Andrew Cagney  <ac131313@redhat.com>
1880
1881         * infcmd.c (do_registers_info): Delete code dumping large
1882         registers.  Handled by val_print.
1883
1884 2001-09-30  Andrew Cagney  <ac131313@redhat.com>
1885
1886         * gdbarch.sh (gdbarch_alloc): Name the new architecture
1887         ``current_gdbarch'' so that it, and not the identically named
1888         global is refered to by macros.
1889         * gdbarch.c: Regenerate.
1890
1891 2001-09-29  Andrew Cagney  <ac131313@redhat.com>
1892
1893         * cli/cli-decode.c (add_set_boolean_cmd): Define.
1894         * cli/cli-decode.h (add_set_boolean_cmd): Declare.
1895         * command.h (add_set_boolean_cmd): Ditto.
1896         * remote.c (_initialize_remote): Use add_set_boolean_cmd for "set
1897         remotebreak"
1898
1899 2001-09-29  Andrew Cagney  <ac131313@redhat.com>
1900
1901         * gdbarch.sh (gdbarch_dump): Sort output.
1902         * gdbarch.c: Regenerate.
1903
1904 2001-09-29  Andrew Cagney  <ac131313@redhat.com>
1905
1906         * rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
1907         architecture to infer the wordsize.  Previous architecture may not
1908         be a PowerPC.
1909
1910 2001-09-27  J. Brobecker <brobecker@gnat.com>
1911
1912         * infttrace.c (kill_inferior): Issue a TT_PROC_EXIT request rather
1913         than a TT_PROC_STOP request to kill the inferior and its child
1914         processes. Otherwise, the inferior is not killed on HPUX 11.0.
1915         Removed the code that detaches the child processes since we just
1916         killed them.
1917
1918 2001-09-26  Andrew Cagney  <ac131313@redhat.com>
1919
1920         * serial.c (serial_set_cmdlist, serial_show_cmdlist): New
1921         variables.
1922         (serial_set_cmd, serial_show_cmd): New functions.
1923         (_initialize_serial): Add "set/show serial" command.
1924
1925 2001-09-26  Andrew Cagney  <ac131313@redhat.com>
1926
1927         * CONTRIBUTE: Update.
1928
1929 2001-09-26  Kevin Buettner  <kevinb@redhat.com>
1930
1931         * solib-svr4.h (set_solib_svr4_fetch_link_map_offsets): Add
1932         argument ``gdbarch''.
1933         * solib-svr4.c (SVR4_FETCH_LINK_MAP_OFFSETS): Change default value.
1934         (default_svr4_fetch_link_map_offsets): Rename to
1935         legacy_fetch_link_map_offsets().
1936         (svr4_fetch_link_map_offsets): New function.
1937         (fetch_link_map_offsets, fetch_link_map_offsets_init): Deleted.
1938         (fetch_link_map_offsets_gdbarch_data): New static global.
1939         (set_solib_svr4_fetch_link_map_offsets): Add argument ``gdbarch''.
1940         Revise to invoke set_gdbarch_data().
1941         (init_fetch_link_map_offsets): Change return type and add an
1942         argument so that it may be used as a gdbarch_data initializer.
1943         (_initialize_svr4_solib): Eliminate use of gdbarch swap mechanism.
1944         Use gdbarch data mechanism instead.
1945
1946 2001-09-25  Jiri Smid  <smid@suse.cz>
1947
1948         * x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
1949         (x86_64_linux_sigcontext_addr): Replace `sizeof (struct siginfo)'
1950         by LINUX_SIGINFO_SIZE.
1951
1952 2001-09-24  Andrew Cagney  <ac131313@redhat.com>
1953
1954         * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1955         variables.
1956         (maintenance_set_profile_cmd): New function.
1957         (maintenance_show_cmd, maintenance_set_cmd): New functions.
1958         (_initialize_maint_cmds): Add "maintenance set" and "maintenance
1959         show" and, commented out, "maintenance set/show profile" commands.
1960
1961 2001-09-24  Andrew Cagney  <ac131313@redhat.com>
1962
1963         * findvar.c (read_var_value): For LOC_INDIRECT and LOC_REF_ARG
1964         convert the pointer into a CORE_ADDRs.
1965
1966 2001-09-24  Andrew Cagney  <ac131313@redhat.com>
1967
1968         * doublest.h (store_floating, extract_floating): Add comment
1969         indicating these functions are deprecated.
1970         (extract_typed_floating, store_typed_floating): Declare.
1971         * doublest.c: Include "gdbtypes.h".
1972         (extract_typed_floating, store_typed_floating): Define.
1973
1974         * stabsread.c (define_symbol): Use store_typed_floating.
1975         * valarith.c (value_binop): Ditto.
1976         * values.c (unpack_long): Use extract_typed_floating.
1977         (unpack_double): Ditto.
1978
1979 2001-09-24  Orjan Friberg  <orjanf@axis.com>
1980
1981         * cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
1982         from correct register.
1983
1984 2001-09-22  Mark Kettenis  <kettenis@gnu.org>
1985
1986         * x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.
1987
1988 2001-09-21  Jiri Smid   <smid@suse.cz>
1989
1990         * config/i386/x86-64linux.mh: New file.
1991         * config/i386/x86-64linux.mt: New file.
1992         * config/i386/nm-x86_64.h: New file.
1993         * x86-64-linux-tdep.c: New file.
1994         * x86-64-linux-nat.c: New file.
1995         * x86-64-tdep.c: New file.
1996         * x86-64-tdep.h: New file.
1997         * i386-tdep.h: New file.
1998         * i387-nat.c: Include i386-tdep.h when multiarch.
1999         * i387-tdep.c: Ditto.
2000         * config/djgpp/fnchange.lst: Add entries for x86_64-linux-tdep.c
2001         and x86_64-linux-nat.c
2002         * Makefile.in: Add x86_64-linux-tdep.o, x86_64-tdep.o,
2003         x86_64-linux-tdep.o, x86_64-nat.o, update dependencies.
2004
2005 2001-09-21  Jiri Smid   <smid@suse.cz>
2006
2007         * MAINTAINERS: Add myself to the write-after-approval list.
2008         * i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
2009         (i386_length_and_rw_bits, i386_handle_nonaligned_watchpoint,
2010         i386_insert_watchpoint, i386_remove_watchpoint):  Add support for
2011         8-byte wide watchpoints.
2012         (i386_show_dr): Debug message format string change.
2013
2014 2001-09-21  Michael Snyder  <msnyder@redhat.com>
2015
2016         * c-exp.y (typebase): Accept (signed long long) as a type expr.
2017
2018 2001-09-20  Michael Snyder  <msnyder@redhat.com>
2019         Changes by Daniel Berlin  <dan@cgsoftware.com>, to support
2020         better parsing of const and volatile type expressions.
2021         * c-exp.y (const_and_volatile, const_or_volatile_noopt, 
2022         const_or_volatile): New non-terminals.
2023         (ptype): Use new rule for const_or_volatile.
2024         (typebase): Use new rule for const_or_volatile_noopt.
2025         * parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
2026         * parse.c (follow_types): Handle tp_const and tp_volatile on the
2027         type stack: call make_cv_type to create new const/volatile type.
2028
2029 2001-09-20  Kevin Buettner  <kevinb@redhat.com>
2030
2031         * solib-svr4.c (fetch_link_map_offsets): Add comment.
2032         (fetch_link_map_offsets_init): New static global.
2033         (set_solib_svr4_fetch_link_map_offsets, init_fetch_link_map_offsets):
2034         Revise implementation to use ``fetch_link_map_offsets_init''
2035         instead of ``fetch_link_map_offsets''.
2036
2037 2001-09-20  Alan Modra  <amodra@bigpond.net.au>
2038
2039         * coffread.c: Replace all occurrences of bfd_read with bfd_bread.
2040         * dbxread.c: Likewise.
2041         * dwarf2read.c: Likewise.
2042         * dwarfread.c: Likewise.
2043         * somread.c: Likewise.
2044         * ultra3-nat.c: Likewise.
2045         * xcoffread.c: Likewise.
2046
2047 2001-09-19  Andrew Cagney  <ac131313@redhat.com>
2048
2049         * cris-tdep.c (cris_get_signed_offset): Change return type to an
2050         explicitly signed char.
2051
2052         * config/mcore/tm-mcore.h (mcore_virtual_frame_pointer): Update
2053         function signature to match recent tracepoint.c:encode_actions
2054         changes.
2055         * mcore-tdep.c (mcore_virtual_frame_pointer): Ditto.
2056
2057 2001-09-18  Andrew Cagney  <ac131313@redhat.com>
2058
2059         * thread.c (do_captured_thread_select): Add uiout parameter.
2060         (do_captured_list_thread_ids): Ditto.
2061         * breakpoint.c (do_captured_breakpoint_query): Ditto.
2062
2063         * breakpoint.c (gdb_breakpoint_query): Update.  Use
2064         catch_exceptions.
2065         * thread.c (gdb_list_thread_ids): Ditto.
2066         (gdb_thread_select): Ditto.
2067         (thread_command): Pass uiout to gdb_thread_select.
2068
2069         * gdb.h (gdb_breakpoint_query): Add parameter ui_out.
2070         (gdb_thread_select, gdb_list_thread_ids): Ditto.
2071
2072 2001-09-13  Kevin Buettner  <kevinb@redhat.com>
2073
2074         From Ilya Golubev <gin@mo.msk.ru>:
2075         * solib.c (clear_solib): Call `remove_target_sections' to fix
2076         stale pointers in `struct target_ops'.
2077         * irix5-nat.c (clear_solib): Likewise.
2078         * osfsolib.c (clear_solib): Likewise.
2079
2080 2001-09-13  Jim Blandy  <jimb@redhat.com>
2081
2082         * monitor.c (monitor_load): Don't delete symtab users, or reset
2083         inferior_ptid.
2084         
2085         * monitor.c (monitor_load): Fix indentation.
2086
2087 2001-09-11  Jim Blandy  <jimb@redhat.com>
2088
2089         * printcmd.c (print_scalar_formatted): Compare the length of the
2090         value against the lengths of the target's floating-point types,
2091         not the host's.  Add support for `long double'.
2092
2093         * printcmd.c (print_scalar_formatted): Fix indentation.
2094
2095 2001-09-10  Jim Blandy  <jimb@redhat.com>
2096
2097         * rom68k-rom.c (init_rom68k_cmds): Set the flag indicating that
2098         programs running on the board can produce output.
2099
2100 2001-09-10  Jason Molenda  (jmolenda@apple.com)
2101
2102         * NEWS: "ANS/ISO C" -> "ISO C".
2103         * MAINTAINERS (write-after-approval):  Update my entry.
2104
2105 2001-09-08  Mark Kettenis  <kettenis@gnu.org>
2106
2107         * config/xm-aix4.h (MEM_FNS_DECLARED): Removed.
2108
2109         * config/arm/xm-linux.h, config/ia64/xm-linux.h,
2110         config/m68k/xm-linux.h, config/mips/xm-linux.h,
2111         config/powerpc/xm-linux.h, config/sparc/xm-linux.h: Remove
2112         redundant inclusion of <unistd.h>.
2113
2114         * gdbtypes.h (struct block): Add forward declaration.
2115
2116 2001-09-07  Andrew Cagney  <ac131313@redhat.com>
2117
2118         * defs.h (enum return_reason): Renumber so that all values are
2119         negative.
2120         (RETURN_MASK): Negate reason.
2121         (catch_exception_ftype): Declare.
2122         (catch_exceptions): Declare.
2123         * top.c (catcher): New function, based on catch_errors.  Add in
2124         parameter func_uiout and out parameters func_val, func_caught and
2125         func_cleanup.  Change type of func to catch_exceptions_ftype.
2126         Save/restore uiout.
2127         (struct catch_errors_args): Define.
2128         (do_catch_errors): New function.
2129         (catch_errors): Rewrite, use do_catch_errors and catcher.
2130         (catch_exceptions): New function, use catcher.
2131
2132 2001-09-07  Jim Blandy  <jimb@redhat.com>
2133
2134         Correctly parse register values provided by the monitor.
2135         * rom68k-rom.c: #include "value.h".
2136         (is_hex_digit, hex_digit_value, is_whitespace,
2137         rom68k_supply_one_register): New static functions.
2138         (rom68k_supply_register): Call rom68k_supply_one_register, instead
2139         of monitor_supply_register; the latter was incorrectly parsing 
2140         the values.
2141         * Makefile.in (rom68k-rom.o): Note that this now #includes value.h.
2142
2143 2001-09-07  Mark Kettenis  <kettenis@gnu.org>
2144
2145         * config/rs6000/xm-rs6000.h (setpgrp): Remove macro.  GDB defaults
2146         to using setpgid if available now.
2147
2148 2001-09-06  Keith Seitz  <keiths@redhat.com>
2149
2150         From Ian Roxborough  <irox@redhat.com>
2151         * configure.in: Use ITCL_LIB_FULL_PATH and
2152         ITK_LIB_FULL_PATH to set Itcl and Itk dependancies
2153         for gdb.
2154         * configure: Regenerated.
2155
2156 2001-09-06  Kevin Buettner  <kevinb@redhat.com>
2157         
2158         * dbxread.c (process_one_symbol): Don't use error result from
2159         find_stab_function_addr().
2160         * partial-stab.h (case 'F'): Likewise.
2161
2162         * partial-stab.h (case 'f'): Make SOFUN_ADDRESS_MAYBE_MISSING
2163         code match that used for case 'F'.  This fixes the divergence
2164         that was introduced by my 1999-09-14 changes to partial-stab.h.
2165
2166 2001-09-05  Elena Zannoni  <ezannoni@redhat.com>
2167
2168         * gdbarch.sh: Move include of dis-asm.h so it is generated earlier
2169         in gdbarch.h.
2170         (TARGET_PRINT_INSN): Multiarch.
2171         * gdbarch.h: Regenerate.
2172         * gdbarch.c: Regenerate.
2173
2174         * arch-utils.c (legacy_print_insn): New function.
2175         * arch-utils.h (legacy_print_insn): Export.
2176
2177         * cris-tdep.c (cris_delayed_get_disassembler): Use
2178         TARGET_PRINT_INSN, instead of tm_print_insn.
2179         * d10v-tdep.c (print_insn): Ditto.
2180         * d30v-tdep.c (print_insn): Ditto.
2181         * m32r-tdep.c (dump_insn): Ditto.
2182         * v850-tdep.c (v850_scan_prologue): Ditto.
2183         * mcore-tdep.c (mcore_dump_insn): Ditto.
2184         * sh-tdep.c (sh_gdbarch_init): Set print_insn gdbarch field.
2185
2186 2001-09-05  Jim Blandy  <jimb@redhat.com>
2187
2188         * gdbtypes.h (struct type): Doc fix.
2189
2190 2001-09-04  Elena Zannoni  <ezannoni@redhat.com>
2191
2192         From Daniel Jacobowitz  <drow@mvista.com>       
2193         * dbxread.c (free_header_files): Make global.
2194         (init_header_files): Likewise.
2195         * stabsread.h (free_header_files): Add prototype.
2196         (init_header_files): Likewise.
2197         * mdebugread.c (mdebug_build_psymtabs): Initialize
2198         properly before using the stabs debug reader.
2199
2200 2001-09-04  Elena Zannoni  <ezannoni@redhat.com>
2201
2202         From Daniel Jacobowitz  <drow@mvista.com>       
2203         * dbxread.c (dbx_symfile_read): Only reinitialize
2204         the psymbol list if mainline or if both static
2205         and global lists are empty.
2206         * dwarf2read.c (dwarf2_build_psymtabs): Likewise.
2207         * dwarfread.c (dwarf_build_psymtabs): Likewise.
2208         * xcoffread.c (xcoff_initial_scan): Likewise.
2209         * os9kread.c (os9k_symfile_read): Likewise.
2210         
2211 2001-09-04  Elena Zannoni  <ezannoni@redhat.com>
2212
2213         From Daniel Jacobowitz  <drow@mvista.com>       
2214         * mdebugread.c (psymtab_to_symtab_1): Handle N_SO stabs without
2215         a name specially.
2216
2217 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
2218
2219         Make GDB use libiberty regex implementation.
2220         * gdb_regex.h: Normalize protection against multiple inclusion.
2221         Include "xregex.h" instead of "gnu-regex.h".
2222         * cli/cli-cmds.c: Include "gdb_regex.h" instead of "gnu-regex.h".
2223         * cli/cli-decode.c: Likewise.
2224         * Makefile.in (REGEX): Remove.
2225         (GDB_CFLAGS): Remove reference to gnu-regex.h in comment.
2226         (ADD_FILES, ADD_DEPS): Remove $(REGEX).
2227         (POSSLIBS): Remove.
2228         (TAGFILES_NO_SRCDIR): Remove $(POSSLIBS).
2229         (irix5-nat.o, solib.o, solib-svr4.o, source.o, symtab.o,
2230         xcoffsolib.o, cli-decode.o, cli-cmd.o): Replace gnu-regex.h with
2231         gdb_regex.h in list of dependencies.
2232         (gnu-regex.o): Remove rule.
2233         * gnu-regex.c, gnu-regex.h: Remove files.
2234
2235 2001-08-31  Jason Molenda  (jmolenda@apple.com)
2236
2237         * c-valprint.c (c_val_print):  Second call to check_typedef ()
2238         is no longer necessary.
2239
2240 2001-08-31  Kevin Buettner  <kevinb@redhat.com>
2241
2242         * ia64-tdep.c (examine_prologue): Don't let a branch unit nop
2243         terminate the prologue scan.
2244
2245 2001-08-30  Jim Blandy  <jimb@redhat.com>
2246
2247         * symfile.c (sections_overlap): New function.
2248         (map_overlay_command): Call sections_overlap, instead of using
2249         incorrect logic to recognize overlapping sections.
2250
2251         * symfile.c (load_command): Invalidate the overlay cache.
2252
2253 2001-08-30  Mark Kettenis  <kettenis@gnu.org>
2254
2255         * config/i386/xm-i386.h (HOST_BYTE_ORDER): Removed.
2256
2257 2001-08-29  Kevin Buettner  <kevinb@redhat.com>
2258
2259         From 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>:
2260         * solib-svr4.c (enable_break): Check the inferior link map
2261         before assuming the inferior PC is at the start of the dynamic
2262         loader.
2263
2264 2001-08-28  Andrew Cagney  <cagney@toribio.toronto.redhat.com>
2265
2266         * frame.h (struct frame_info): Fix documentation on fields
2267         saved_regs, next and prev.
2268
2269 2001-08-23  Mark Kettenis  <kettenis@gnu.org>
2270
2271         * event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: Some
2272         gratuitious whitespace changes.
2273         [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined.
2274         * top.c: Remove redundant logic to define HAVE_SIGSETMASK.
2275         (sigsetmask) Don't define macro.
2276         (stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from
2277         async_stop_sig from event-top.c.
2278         [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is
2279         defined.
2280         * configure.in (AC_CHECK_FUNCS): Put functions in alphabetical
2281         order.  Add sigsetmask.
2282         (AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in
2283         alphabetical order.
2284         * config/xm-aix4.h, config/alpha/xm-alphalinux.h,
2285         config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h
2286         (HAVE_SIGSETMASK): Remove.
2287         * aclocal.m4, config.in, configure: Regenerated.
2288
2289 2001-08-26  Andrew Cagney  <ac131313@redhat.com>
2290
2291         From 2001-06-29 Andrew Cagney  <ac131313@redhat.com>:
2292         * config/powerpc/nbsd.mh (XM_FILE): Delete.
2293
2294 2001-08-21  Andrew Cagney  <ac131313@redhat.com>
2295
2296         * doublest.h (HOST_FLOAT_FORMAT): Delete macro.
2297         (HOST_DOUBLE_FORMAT): Delete macro.
2298
2299 2001-08-24  Mark Kettenis  <kettenis@gnu.org>
2300
2301         * config/xm-lynx.h, config/xm-nbsd.h, config/xm-sysv4.h,
2302         config/i386/xm-i386aix.h, config/m68k/xm-dpx2.h: Remove redundant
2303         inclusion of <limits.h>.
2304
2305 2001-08-24  Andrew Cagney  <ac131313@redhat.com>
2306
2307         * regcache.c (read_register_bytes): When REGISTER_NAME indicates
2308         that a register should be ignored, supply a value for the register
2309         from the raw registers[] buffer.
2310
2311 2001-08-24  Andrew Cagney  <ac131313@redhat.com>
2312
2313         * go32-nat.c (go32_create_inferior): Use xfree instead of free.
2314         * config/djgpp/fnchange.lst: Add entries for i386bsd-tdep.c and
2315         i386bsd-nat.c.
2316
2317 2001-08-21  Andrew Cagney  <ac131313@redhat.com>
2318
2319         * gdbtypes.h (builtin_type_ieee_single_big)
2320         (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
2321         (builtin_type_ieee_double_little)
2322         (builtin_type_ieee_double_littlebyte_bigword)
2323         (builtin_type_i387_ext, builtin_type_m68881_ext)
2324         (builtin_type_i960_ext, builtin_type_m88110_ext)
2325         (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
2326         (builtin_type_arm_ext_littlebyte_bigword)
2327         (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
2328         (builtin_type_ia64_quad_big)
2329         (builtin_type_ia64_quad_little): Declare.
2330         * gdbtypes.c (builtin_type_ieee_single_big)
2331         (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
2332         (builtin_type_ieee_double_little)
2333         (builtin_type_ieee_double_littlebyte_bigword)
2334         (builtin_type_i387_ext, builtin_type_m68881_ext)
2335         (builtin_type_i960_ext, builtin_type_m88110_ext)
2336         (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
2337         (builtin_type_arm_ext_littlebyte_bigword)
2338         (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
2339         (builtin_type_ia64_quad_big)
2340         (builtin_type_ia64_quad_little): Define.
2341         (_initialize_gdbtypes): Initialize builtin floatformat types.
2342         
2343 2001-08-23  Mark Kettenis  <kettenis@gnu.org>
2344
2345         * tracepoint.c (read_actions): Add FIXME for code depending on
2346         STOP_SIGNAL.
2347
2348 2001-08-23  Martin M. Hunt  <hunt@redhat.com>
2349
2350         * remote-mips.c (pmon_load_fast): Add ui_load_progress_hook
2351         to download loop.
2352         (mips_load_srec): Ditto.
2353
2354 2001-08-22  Andrew Cagney  <ac131313@redhat.com>
2355
2356         * gdbtypes.c (build_gdbtypes): Initialize TYPE_FLOATFORMAT field
2357         of builtin_type_float, builtin_type_double and
2358         builtin_type_long_double.
2359         (recursive_dump_type): Print the floatformat name.
2360         * gdbtypes.h (struct type): Add type_specific field floatformat.
2361         (TYPE_FLOATFORMAT): Define
2362
2363 2001-08-21  Keith Seitz  <keiths@redhat.com>
2364
2365         * printcmd.c (print_insn): Use the given stream for
2366         output.
2367
2368 2001-07-24  Andrew Cagney  <ac131313@redhat.com>
2369
2370         * arm-tdep.c (convert_from_extended, convert_to_extended): Delete
2371         assembler version of function.
2372         (convert_from_extended, convert_to_extended): Rewrite. Use
2373         floatformat_to_doublest, floatformat_from_doublest,
2374         floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword.
2375         (arm_push_arguments): Use extract_floating and store_floating to
2376         perform floating point conversions.
2377         (SWAP_TARGET_AND_HOST): Delete macro.
2378         * arm-linux-tdep.c (arm_linux_push_arguments): Use
2379         extract_floating and store_floating to perform floating point
2380         conversions.
2381
2382 2001-08-20  Andrew Cagney  <ac131313@redhat.com>
2383
2384         * gdbtypes.h (struct type): Clarify meaning of field ``length''.
2385
2386 2001-08-17  Keith Seitz  <keiths@redhat.com>
2387
2388         * varobj.c (varobj_update): Change first parameter to
2389         pointer to struct varobj*. This function can delete
2390         varobjs, so we need to give callers the new varobj
2391         when this happens.
2392         (value_of_root): Update "var", too, if "var_handle"
2393         changes.
2394         * varobj.h (varobj_update): Likewise.
2395
2396 2001-08-17  Keith Seitz  <keiths@redhat.com>
2397
2398         * Makefile.in (varobj_h): Define.
2399         (mi-cmd-var.o): Depends on varobj_h.
2400         (gdbtk-varobj.o): Change varobj.h to $(varobj_h).
2401
2402 2001-08-16  Keith Seitz  <keiths@redhat.com>
2403
2404         * configure.in (GDBTK_SRC_DIR): We must have autoconf
2405         give us the absolute path to the source directory.
2406         * configure: Regenerated.
2407         * Makefile.in (GDBTK_SRC_DIR): Add variable so that
2408         autoconf can substitue it in for us.
2409         (gdbtk.o): Pass in GDBTK_SRC_DIR instead of srcdir. We
2410         really do need an absolute pathname.
2411
2412 2001-08-15  Keith Seitz  <keiths@redhat.com>
2413
2414         * Makefile.in (GDBTK_VERSION): Set a version number.
2415         (GDBTK_LIBRARY): New variable to point to location where
2416         gdbtk will install its tcl library. Changed all refereneces
2417         to $(datadir)/insight1.0 to $(GDBTK_LIBRARY).
2418         (SUBDIR_GDBTK_ALL): Remove "all-gdbtk". No longer needed.
2419         (SUBDIR_GDBTK_CLEAN): Remove "clean-gdbtk". No longer needed.
2420         (all-gdbtk): Remove.
2421         (install-gdbtk): Remove.
2422         (gdbtk.o): Pass srcdir to file when compiling.
2423
2424 2001-08-15  Ian Roxborough  <irox@redhat.com>
2425
2426         * Makefile.in: Changed all references to the install directory
2427         "gdbtcl" to read "insight1.0".
2428
2429 2001-08-15  Corinna Vinschen  <vinschen@redhat.com>
2430
2431         * arch-utils.c (generic_skip_trampoline_code): New function.
2432         * arch-utils.h (generic_skip_trampoline_code): Declare external.
2433         * gdbarch.c: Regeberated from gdbarch.sh.
2434         * gdbarch.h: Ditto.
2435         * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Multi-arch.
2436         * infrun.c: Remove default setting of SKIP_TRAMPOLINE_CODE macro.
2437
2438 2001-08-14  Daniel Jacobowitz  <drow@mvista.com>
2439             H.J. Lu  (hjl@gnu.org)
2440
2441         * partial-stab.h: valu should be a CORE_ADDR.
2442
2443 2001-08-14  H.J. Lu  (hjl@gnu.org)
2444
2445         * dbxread.c (SWAP_SYMBOL): Removed.
2446         (INTERNALIZE_SYMBOL): Check sign extended vma.
2447
2448 2001-08-13  Christopher Faylor  <cgf@cygnus.com>
2449
2450         * top.c (SIGSETJMP): Protect env argument with parentheses.
2451         (SIGLONGJMP): Protect env argument with parentheses.
2452
2453 2001-08-11  Andrew Cagney  <ac131313@redhat.com>
2454
2455         * config/mn10300/mn10300.mt (TM_FILE): Delete.
2456         * configure.tgt: Add mn10300 to list of mulit-arch targets.
2457         * config/mn10300/tm-mn10300.h: Delete file. Move contents ...
2458         * mn10300-tdep.c: To here.
2459
2460 2001-08-11  Andrew Cagney  <ac131313@redhat.com>
2461
2462         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_VIRTUAL): Make
2463         val a DOUBLEST.  Use floatformat_to_doublest.
2464         (REGISTER_CONVERT_TO_RAW): Ditto.  Use foatformat_from_doublest.
2465         * config/m88k/tm-m88k.h (REGISTER_CONVERT_TO_VIRTUAL): Ditto.
2466         (REGISTER_CONVERT_TO_RAW): Ditto.
2467
2468 2001-08-11  Andrew Cagney  <ac131313@redhat.com>
2469
2470         * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
2471         * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and
2472         sp_regnum.
2473
2474 2001-08-11  Andrew Cagney  <ac131313@redhat.com>
2475
2476         * doublest.c (convert_doublest_to_floatformat): Rename
2477         floatformat_from_doublest.  Make static.
2478         (convert_floatformat_to_doublest): Rename floatformat_to_doublest.
2479         Make static.
2480         (floatformat_to_doublest): New function.
2481         (floatformat_from_doublest): New function.
2482         (host_float_format, host_double_format, host_long_double_format):
2483         New static variables.
2484         (store_floating, extract_floating): Always use
2485         floatformat_to_doublest and floatformat_from_doublest.
2486         * doublest.h (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2487
2488 2001-08-11  Andrew Cagney  <ac131313@redhat.com>
2489
2490         * config/mn10300/tm-mn10300.h (INIT_FRAME_PC): Delete.
2491         * mn10300-tdep.c (mn10300_gdbarch_init): Initialize init_frame_pc.
2492
2493 2001-08-07  Andrew Cagney  <ac131313@redhat.com>
2494
2495         * target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.
2496         * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Add.
2497         * gdbarch.h, gdbarch.c: Regenerate.
2498
2499         * arch-utils.h (legacy_virtual_frame_pointer): Declare.
2500         * arch-utils.c: Include "gdb_assert.h".
2501         (legacy_virtual_frame_pointer): Define.
2502         * Makefile.in (arch-utils.o): Depends on gdb_assert.h.
2503
2504         * tracepoint.c (encode_actions): Make frame_reg an int.  Make
2505         frame_offset a LONGEST.
2506         * ax-gdb.c (gen_frame_args_address): Ditto.
2507         (gen_frame_locals_address): Ditto.
2508         * mn10300-tdep.c (mn10300_gdbarch_init): Initialize
2509         virtual_frame_pointer.
2510         (mn10300_virtual_frame_pointer): Make static.  Update parameter
2511         list to match function signature.
2512         * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER): Delete.
2513
2514 2001-08-10  Keith Seitz  <keiths@redhat.com>
2515
2516         * gdb-events.sh: Add architecture_changed event.
2517         * gdbarch.sh: Include gdb-event.h.
2518         (gdbarch_update_p): Notify UIs when architecture changes.
2519         * gdb-events.h: Regenerated.
2520         * gdb-events.c: Regenerated.
2521         * gdbarch.c: Regenerated.
2522
2523 2001-08-10  Michael Snyder  <msnyder@redhat.com>
2524
2525         * regcache.c (legacy_write_register_gen): Don't 'optimize out'
2526         a write_register to a pseudo-reg.  Target_store_pseudo_register
2527         needs to get called, because these regs may be computed and may
2528         have side-effects.
2529
2530 2001-08-10  Keith Seitz  <keiths@redhat.com>
2531
2532         * gdb-events.sh: Deal with event notifications with no
2533         arguments.
2534
2535 2001-08-10  Orjan Friberg  <orjanf@axis.com>
2536
2537         * remote.c (read_frame): Correct off-by-one error in condition.
2538
2539 2001-08-08  Don Howard  <dhoward@redhat.com>
2540
2541         * stabsread.c (read_type): Add support for const and volatile
2542         modifiers.
2543
2544 2001-08-02  Daniel Jacobowitz  <drow@mvista.com>
2545
2546         * core-regset.c (fetch_core_registers):  Remove HAVE_GREGSET_T
2547         and HAVE_FPREGSET_T checks.  Use gdb_gregset_t and gdb_fpregset_t.
2548
2549 2001-08-02  Keith Seitz  <keiths@redhat.com>
2550
2551         * defs.h (SLASH_STRING): If not defined, set
2552         to "/", regardless of _WIN32, __CYGWIN__, or
2553         whatnot.
2554
2555 2001-08-02  Mark Kettenis  <kettenis@gnu.org>
2556
2557         * cli/cli-decode.h: Include "gdb_regex.h" instead of
2558         "gnu-regex.h".
2559
2560         * NEWS: Update.
2561
2562 2001-08-02  Eli Zaretskii  <eliz@is.elta.co.il>
2563
2564         * config/i386/xm-go32.h: Include xm-i386.h.
2565         (HOST_BYTE_ORDER, HOST_LONG_DOUBLE_FORMAT): Remove definitions.
2566
2567 2001-08-02  Eli Zaretskii  <eliz@is.elta.co.il>
2568
2569         The following changes avoid polluting global namespace with the
2570         `enable' and `disable' identifiers, because some platforms define
2571         in their system headers symbols with global scope that go by those
2572         names.
2573
2574         * breakpoint.h (enum enable_state): Rename from `enum enable'.
2575         Also rename all the enum members to have the "bp_" prefix.
2576         (struct breakpoint): Rename the `enable' member to `enable_state'.
2577         (enum bpdisp): Rename all members to have the "disp_" prefix.
2578
2579         * breakpoint.c: All users of `enum enable' and `enum bpdisp'
2580         changed.
2581         (args_for_catchpoint_enable): Rename the `enable' member to
2582         `enable_p'.  All users changed.
2583
2584         * tracepoint.h (enum enable): Remove.
2585         (struct tracepoint): The member `enabled' is now `int enabled_p'.
2586
2587         * tracepoint.c: All users of the `enabled' member changed.
2588
2589         * printcmd.c (struct display): The `status' member is now an int.
2590
2591         * memattr.h (struct mem_region): Rename the `status' member to
2592         `enabled_p'.
2593         (enum enable): Remove.
2594
2595         * memattr.c: Change all users of the `status' member of struct
2596         mem_region to use `enabled_p' instead.
2597
2598         * infcmd.c (run_stack_dummy): Use disp_del instead of del.
2599
2600         * go32-nat.c: Remove the kludgey work-around for conflicts between
2601         <dos.h> and "breakpoint.h".
2602
2603 2001-08-02  Corinna Vinschen  <vinschen@redhat.com>
2604
2605         * MAINTAINERS: Add myself to the write-after-approval list.
2606         * ser-tcp.c (tcp_open): Use `localhost' as default host if no
2607         hostname is given.
2608
2609 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
2610
2611         * doublest.h (store_floating, floatformat_to_doublest): Make IN
2612         paramter a const void pointer.
2613         (floatformat_from_doublest): Make IN const, Make OUT a void
2614         pointer.
2615         * doublest.c (floatformat_to_doublest): Update.
2616         (floatformat_from_doublest): Update.
2617         (extract_floating): Update.
2618
2619 2001-07-31  Andrew Cagney  <ac131313@redhat.com>
2620
2621         * defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2622         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2623         (HOST_LONG_DOUBLE_FORMAT, DOUBLEST)
2624         (floatformat_to_doublest, floatformat_from_doublest)
2625         (floatformat_is_negative, floatformat_is_nan)
2626         (floatformat_mantissa, store_floating)
2627         (extract_floating): Move declaration from here.
2628         * doublest.h: To here.  New file.
2629         * utils.c (get_field, floatformat_to_doublest, put_field)
2630         (ldfrexp, floatformat_from_doublest, floatformat_is_negative)
2631         (floatformat_is_nan, floatformat_mantissa)
2632         (FLOATFORMAT_CHAR_BIT): Move from here.
2633         * doublest.c: To here.  New file.
2634         * findvar.c (store_floating, extract_floating): Move from here.
2635         * doublest.c: To here.
2636         * Makefile.in (SFILES): Add doublest.c.
2637         (COMMON_OBS): Add doublest.o.
2638         (doublest.o): Specify dependencies.
2639         (doublest_h): Define.
2640
2641         * config/m88k/tm-m88k.h: Include "doublest.h".
2642         * config/i960/tm-i960.h: Ditto.
2643         * config/i386/tm-symmetry.h: Ditto.
2644         * rs6000-tdep.c, valarith.c: Ditto.
2645         * valprint.c, stabsread.c, sh-tdep.c: Ditto.
2646         * ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto.
2647         * values.c, arm-tdep.c, arm-linux-tdep.c: Ditto.
2648         * alpha-tdep.c, ax.h, expression.h: Ditto.
2649         * sh-tdep.c, parse.c, top.c, value.h: Ditto.
2650         
2651         * Makefile.in (arm-tdep.o): Add $(doublest_h).
2652         (i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto.
2653         (rs6000-tdep.o, stabsread.o, valarith.o): Ditto.
2654         (values.o, valprint.o, arm-linux-tdep.o): Ditto.
2655         (alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto.
2656         (parser_defs_h): Ditto.
2657         (expression_h): Add $(doublest_h) and $(symtab_h).
2658
2659 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
2660
2661         * Makefile.in: Sort header definitions.
2662         (parser_defs_h, dis_asm_h, annotate_h, gdbthread_h): Define.
2663         Replace parser-defs.h with $(parser_defs_h).  Replace $(dis-asm_h)
2664         and $(dis-asm.h) with $(dis_asm_h).  Replace annotate.h with
2665         $(annotate_h).  Replace target.h with $(target_h).  Replace
2666         gdbthread.h with $(gdb_thread_h).  Replace symfile.h with $(symfile_h).
2667
2668 2001-07-31  Mark Kettenis  <kettenis@gnu.org>
2669
2670         * config/i386/xm-i386.h: New file.
2671         * config/i386/xm-fbsd.h: Removed.
2672         * config/i386/xm-linux.h: Removed.
2673         * config/i386/fbsd.mh: Reorganize a bit.
2674         (XM_FILE): Set to xm-i386.h instead of xm-fbsd.h.
2675         * config/i386/linux.mh (XM_FILE): Set to xm-i386.h insread of
2676         xm-linux.h.
2677
2678 2001-07-30  Jim Blandy  <jimb@redhat.com>
2679
2680         * dwarf2read.c (dwarf2_build_psymtabs_hard): Doc fix.
2681
2682 2001-07-27  Daniel Jacobowitz  <drow@mvista.com>
2683
2684         * configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
2685         Check for SETPGRP_VOID separately if cross-compiling and ISO C
2686         headers are available.
2687
2688 2001-07-30  Mark Kettenis  <kettenis@gnu.org>
2689
2690         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
2691         i386_dwarf_reg_to_regnum.
2692
2693         * i386-tdep.c (i386_register_convert_to_virtual): Replace
2694         assertion with a warning if we're asked to convert towards a
2695         non-floating-point type.  Zero out the the buffer where the data
2696         is supposed to be stored in that case.
2697
2698 2001-07-29  Eli Zaretskii  <eliz@is.elta.co.il>
2699
2700         * config/djgpp/djconfig.sh: Unset CDPATH.
2701
2702         * go32-nat.c (get_cr3): Temporary disable support for page tables
2703         in UMBs, as it is incomplete.
2704
2705         Support for stepping through longjmp in DJGPP programs:
2706
2707         * config/i386/tm-go32.h (JB_ELEMENT_SIZE, JB_PC): New macros.
2708         (GET_LONGJMP_TARGET): Define to call get_longjmp_target.
2709         (get_longjmp_target): Add prototype.
2710
2711 2001-07-28  Andrew Cagney  <ac131313@redhat.com>
2712
2713         Fix some PID/TPID fallout for HP/UX.
2714         From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>:
2715         * infttrace.c (ptrace_wait): Match external declaration,
2716         and match target_post_wait declaration.
2717
2718 2001-07-28  Andrew Cagney  <ac131313@redhat.com>
2719
2720         * MAINTAINERS: Add Orjan Friberg as cris target maintainer.
2721         (cris): Set --enable-gdb-build-warnings flag to -w.
2722
2723 2001-07-28  Andrew Cagney  <ac131313@redhat.com>
2724
2725         From 2001-07-23 Andreas Schwab <schwab@suse.de>:
2726         * config/m68k/tm-m68k.h (TARGET_LONG_DOUBLE_FORMAT): Define.
2727         (TARGET_LONG_DOUBLE_BIT): Define.
2728         (REGISTER_VIRTUAL_SIZE): Return 12 for floating point registers.
2729         (MAX_REGISTER_VIRTUAL_SIZE): Increase to 12.
2730         (REGISTER_VIRTUAL_TYPE): Return builtin_type_long_double for
2731         floating point registers.
2732         (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL)
2733         (REGISTER_CONVERT_TO_RAW): Remove.
2734         * config/m68k/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define.
2735
2736 2001-07-26  Andrew Cagney  <ac131313@redhat.com>
2737
2738         * thread.c, breakpoint.c: Include "gdb.h".
2739         * Makefile.in (gdb_h): Define.
2740         (HFILES_NO_SRCDIR): Add gdb.h.
2741         (mi-cmd-break.o, mi-main.o, thread.o)
2742         (breakpoint.o): Add dependency on $(gdb_h).
2743
2744         * defs.h (enum gdb_rc, gdb_breakpoint_query)
2745         (gdb_breakpoint, gdb_thread_select)
2746         (gdb_list_thread_ids): Move declaration from here ...
2747         * gdb.h: To here.  New file.
2748
2749 2001-07-28  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2750
2751         * Makefile.in (SUBDIR_TUI_OBS): Add tui-out.o, tui-hooks.o.
2752         (SUBDIR_TUI_SRCS): Add tui-out.c tui-hooks.c
2753         (SFILES): Likewise.
2754         (tui-out.o): Define dependencies.
2755         (tui-hooks.o): Likewise.
2756
2757 2001-07-28  Andrew Cagney  <ac131313@redhat.com>
2758
2759         * MAINTAINERS: Update e-mail address of active @cygnus.com
2760         maintainers to @redhat.com.
2761
2762 2001-07-28  Andrew Cagney  <ac131313@redhat.com>
2763
2764         * README (Known bugs): Delete section.
2765         (Kernel debugging): Delete section.
2766         (Languages other than C): Delete section.
2767         (Host/target specific installation notes) New section.
2768
2769 2001-07-28  Mark Kettenis  <kettenis@gnu.org>
2770
2771         * config/i386/tm-i386.h (STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
2772         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): New defines.
2773         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New
2774         prototypes.
2775         * config/i386/tm-fbsd.h, config/i386/tm-i386gnu.h,
2776         config/i386/tm-linux.h (STAB_REG_TO_REGNUM): Redefine to call
2777         i386_dwarf_reg_to_regnum.
2778         * i386-tdep.c (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum):
2779         New functions.
2780
2781         * i386-tdep.c: Include "gdb_assert.h"
2782         (i386_register_convert_to_virtual): Fix such that it can handle
2783         conversion to any floating-point type.  Assert that we are dealing
2784         with a floating-point first.
2785         (i386_register_convert_to_raw): Assert that TYPE is a
2786         floating-point type with length 12.
2787
2788 2001-07-27  John R. Moore  <jmoore@redhat.com>
2789
2790         * configure.in: Added dependency of gdb on tcl/tk libraries.
2791         * Makefile.in: Likewise.
2792         * configure: Regenerated with the above using autoconf.
2793
2794 2001-07-26  Elena Zannoni  <ezannoni@redhat.com>
2795
2796         * sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of
2797         NUM_REGS.
2798         (SH_DEFAULT_NUM_REGS): Define.
2799
2800 2001-07-26  Eli Zaretskii  <eliz@is.elta.co.il>
2801
2802         * go32-nat.c (read_memory_region): Make sure the segment limit was
2803         indeed set, to work around a Windows 2000 bug.
2804
2805 2001-07-25  Daniel Jacobowitz  <drow@mvista.com>
2806
2807         * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.
2808         * infttrace.c (child_xfer_memory): Likewise.
2809         * symm-nat.c (child_xfer_memory): Likewise.
2810         * gdbserver/low-hppabsd.c (read_inferior_memory): Likewise.
2811         (write_inferior_memory): Likewise.
2812         * gdbserver/low-linux.c (read_inferior_memory): Likewise.
2813         (write_inferior_memory): Likewise.
2814         * gdbserver/low-lynx.c (read_inferior_memory): Likewise.
2815         (write_inferior_memory): Likewise.
2816         * gdbserver/low-nbsd.c (read_inferior_memory): Likewise.
2817         (write_inferior_memory): Likewise.
2818         * gdbserver/low-sparc.c (read_inferior_memory): Likewise.
2819         (write_inferior_memory): Likewise.
2820         * gdbserver/low-sun3.c (read_inferior_memory): Likewise.
2821         (write_inferior_memory): Likewise.
2822
2823 2001-07-25  Eli Zaretskii  <eliz@is.elta.co.il>
2824
2825         * README: Mention how to make gdb.pdf.
2826
2827         * NEWS: Update.
2828
2829 2001-07-24  Stephen P. Smith <ischis2@home.com>
2830
2831         * MAINTAINERS (Stephen P. Smith): Added to write after approval 
2832         list.
2833
2834 2001-07-23  Andrew Cagney  <ac131313@redhat.com>
2835
2836         * mips-tdep.c (mips_push_arguments): Add comment explaining
2837         problem with LE o32 GCC.
2838
2839 2001-07-23  Elena Zannoni  <ezannoni@redhat.com>
2840
2841         * config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
2842         doesn't understand them.
2843
2844 2001-07-23  Elena Zannoni  <ezannoni@redhat.com>
2845
2846         * memattr.c (mem_info_command): Reformat output to look more like
2847         'info break' output.
2848         (_initialize_mem): Improve help.
2849
2850 2001-07-23  Mark Kettenis  <kettenis@gnu.org>
2851
2852         * configure.in (AC_CHECK_FUNCS): Add setpggrp.
2853         (AC_FUNC_SETPGRP): Add.
2854         * aclocal.m4, configure, config.in: Regenerated.
2855         * inflow.c (gdb_setpgid): Get rid of NEED_POSIX_SETPGID and
2856         SETPGRP_ARGS.  Always use setpgid if it is available, fall back on
2857         setpgrp if it isn't.  Use SETPGRP_VOID (defined by autoconf) to
2858         distinguish between the two setpgrp flavours.
2859         * config/xm-sysv4.h, config/arm/xm-linux.h,
2860         config/i386/xm-i386aix.h, config/i386/xm-sco.h,
2861         config/i386/xm-linux.h, config/i386/xm-ptx.h,
2862         config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
2863         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h,
2864         config/ia64/xm-linux.h (NEED_POSIX_SETPGID): Remove.
2865         * config/rs6000/xm-rs6000.h (SETPGRP_ARGS): Remove.
2866
2867 2001-07-23  Eli Zaretskii  <eliz@is.elta.co.il>
2868
2869         * go32-nat.c (read_memory_region): Set the granularity bit of the
2870         allocated segment according to its size, and adjust the limit to
2871         be page-aligned if the segment is page-granular.
2872
2873         * (get_cr3, get_pde, get_pte, display_ptable_entry, go32_pde) 
2874         (display_page_table, go32_pte, go32_pte_for_address): New functions.
2875         (_initialize_go32_nat): Initialize and document them.
2876
2877 2001-07-22  Mark Kettenis  <kettenis@gnu.org>
2878
2879         * i386gnu-nat.c: Include "i387-nat.h".
2880         (struct env387): Removed.
2881         (reg_offset): Fix comment.
2882         (fetch_fpregs): Use FCTRL_REGNUM and FOP_REGNUM instead of
2883         FIRST_FPU_CONTROL_REGNUM and LAST_FPU_CONTROL_REGNUM.  Rewrite to
2884         use i387_supply_fsave.
2885         (gnu_fetch_registers): Remove spurious whitespace.
2886         (convert_to_env387): Remove.
2887         (store_fpregs): Add argument regno.  Use i387_fill_fsave instead
2888         of convert_to_env387.
2889         (gnu_store_registers): Remove spurious whitespace.  Pass REGNO to
2890         store_fpregs.
2891         * config/i386/i386gnu.mt (TDEPFILES): Add i387-tdep.o.
2892         * config/i386/i386gnu.mh (XDEPFILES): Remove i387-tdep.o.
2893         (NATDEPFILES): Add i387-nat.o.
2894
2895 2001-07-22  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2896
2897         * Makefile.in (ALLDEPFILES): Add m68hc11-tdep.c.
2898         (m68hc11-tdep.o): Define dependencies.
2899
2900 2001-07-22  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2901
2902         * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
2903
2904 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2905
2906         * utils.c (init_page_info): Use tui_get_command_dimension.
2907         * printcmd.c (disassemble_command): Simplify tui specific code,
2908         use tui_is_window_visible, tui_show_assembly.
2909
2910 2001-07-21  Mark Kettenis  <kettenis@gnu.org>
2911
2912         * i386bsd-nat.c: Do not include <sys/sysctl.h>.
2913         (_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific
2914         code to ...
2915         * i386fbsd-nat.c: ... here.  New file.
2916         * config/i386/fbsd.mh (NATDEPFILES): Add i386-fbsd.o.
2917         * config/i386/nm-fbsd.h (CHILD_RESUME): Define.
2918         * Makefile.in (ALLDEPFILES): Add i386fbsd-nat.c.
2919         (i386fbsd-nat.o): Add dependencies.
2920         
2921 2001-07-19  Daniel Jacobowitz  <drow@mvista.com>
2922
2923         * signals.c: New file.
2924         * Makefile.in: Add signals.o.
2925         * target.c (struct signals, target_signal_to_name)
2926         (target_signal_from_name, target_signal_from_host)
2927         (do_target_signal_to_host, target_signal_to_host_p)
2928         (target_signal_to_host, target_signal_from_command): Move to
2929         signals.c.
2930         (initialize_targets): Move check of struct signals to...
2931         * signals.c (_initialize_signals): Here.
2932
2933 2001-07-19  Andrew Cagney  <ac131313@redhat.com>
2934
2935         * MAINTAINERS: Add Michael Chastain as C++ testsuite maintainer.
2936
2937 2001-07-19  Andrew Cagney  <ac131313@redhat.com>
2938
2939         From Stephen Smith:
2940         * configure.tgt (i*86-*-pe*): New target.
2941
2942 2001-07-19  Andrew Cagney  <ac131313@redhat.com>
2943
2944         From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:
2945         * infttrace.c (child_thread_alive): Fix gdb_tid typo.
2946         * somsolib.c (no_shared_libraries): Provide stub.
2947         * xcoffsolib.c (no_shared_libraries): Provide stub.
2948
2949 2001-07-18  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2950
2951         * Makefile.in (COMMON_OBS): Remove tui-file.o.
2952         (SUBDIR_TUI_OBS): Add it here.
2953         (SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
2954         (main.o): Remove dependency with tui-file.h.
2955
2956 2001-07-17  Elena Zannoni  <ezannoni@redhat.com>
2957
2958         * Makefile.in (tui-file.o): Update dependencies.
2959
2960 2001-07-17  Elena Zannoni  <ezannoni@redhat.com>
2961
2962         * top.c (catch_errors): Convert PTR to void * in parameters list.
2963         (quit_cover): Ditto.
2964
2965 2001-07-17  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2966
2967         * source.c (find_source_lines): Remove tui test, must be replaced
2968         by appropriate warning hook.
2969         (print_source_lines): Remove tui hacks, must be replaced by cli.
2970         (forward_search_command): Remove tui hacks, can be replaced by
2971         appropriate calls to identify_source_line when tui scrolls.
2972         (reverse_search_command): Likewise.
2973
2974 2001-07-16  Nick Duffek  <nsd@redhat.com>
2975
2976         * remote.c (init_remote_ops, init_remote_cisco_ops,
2977         init_remote_async_ops): Set to_pid_to_str and
2978         to_extra_thread_info correctly and in the same order as declared
2979         in target.h.
2980
2981 2001-07-16  Andrew Cagney  <ac131313@redhat.com>
2982
2983         * remote.c: Revert below.  Included more than intended.
2984
2985 2001-07-16  Nick Duffek  <nsd@redhat.com>
2986
2987         * remote.c (init_remote_ops, init_remote_cisco_ops,
2988         init_remote_async_ops): Set to_pid_to_str and
2989         to_extra_thread_info correctly and in the same order as declared
2990         in target.h.
2991
2992 2001-07-16  Nick Duffek  <nsd@redhat.com>
2993
2994         * findvar.c (read_var_value): Apply value_as_pointer() to
2995         addresses retrieved from the target for LOC_BASEREG and
2996         LOC_BASEREG_ARG variables.
2997
2998 2001-07-16  Orjan Friberg  <orjanf@axis.com>
2999
3000         * NEWS: New target CRIS.
3001
3002 2001-07-16  Elena Zannoni  <ezannoni@redhat.com>
3003
3004         * top.c (show_commands): Remove extern decl of history_get, it's
3005         already in readline/history.h.
3006         
3007 2001-07-16  Elena Zannoni  <ezannoni@redhat.com>
3008
3009         * top.c (is_complete_command, init_cmd_lists, init_cli_cmds,
3010         execute_user_command, do_setshow_command, get_prompt, init_proc,
3011         serial_log_command): Remove extern declarations.  Include
3012         cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h.
3013         * gdbcmd.h (execute_user_command): Remove declaration, it's already
3014         in cli/cli-script.h.
3015         * command.h (do_setshow_command): Remove declaration, it's already
3016         in cli/cli-setshow.h.
3017         * infrun.c: Include "cli/cli-script.h" for execute_user_command.
3018         * Makefile.in (infrun.o): Update dependencies.
3019         (top.o): Ditto.
3020         * cli/cli-setshow.h: Add comment for do_setshow_command.
3021
3022 2001-07-16  Eli Zaretskii  <eliz@is.elta.co.il>
3023
3024         * cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
3025         call to chdir on this symbol rather than on __DJGPP__.
3026         (CANT_FORK) [__MSDOS__]: Move from here...
3027         * defs.h (CANT_FORK) [__MSDOS__]: ...to here.
3028         (GLOBAL_CURDIR) [__MSDOS__]: Define.
3029
3030 2001-07-16  Orjan Friberg  <orjanf@axis.com>
3031
3032         * configure.tgt: Recognise the CRIS architecture.
3033         * config/cris/cris.mt: New file for CRIS target.
3034         * cris-tdep.c: New file for CRIS target.
3035         
3036 2001-07-15  Elena Zannoni  <ezannoni@redhat.com>
3037
3038         * top.c (quit_cover, float_handler): Move definition up before use.
3039         (gdb_init): Move to end of file, to avoid calls to not yet defined
3040         functions.  
3041         Delete prototypes.
3042         
3043 2001-07-14  Andrew Cagney  <ac131313@redhat.com>
3044
3045         * serial.h (SERIAL_ASYNC): Delete.
3046         (DEPRECATED_SERIAL_FD): Delete.
3047         (SERIAL_DEBUG): Delete.
3048         (SERIAL_DEBUG_P): Delete.
3049         (SERIAL_DRAIN_OUTPUT): Delete.
3050         (SERIAL_FLUSH_OUTPUT): Delete.
3051         (SERIAL_FLUSH_INPUT): Delete.
3052         (SERIAL_SEND_BREAK): Delete.
3053         (SERIAL_RAW): Delete.
3054         (SERIAL_GET_TTY_STATE): Delete.
3055         (SERIAL_SET_TTY_STATE): Delete.
3056         (SERIAL_PRINT_TTY_STATE): Delete.
3057         (SERIAL_NOFLUSH_SET_TTY_STATE): Delete.
3058         (SERIAL_SETBAUDRATE): Delete.
3059         (SERIAL_SETSTOPBITS): Delete.
3060         (SERIAL_CAN_ASYNC_P): Delete.
3061         (SERIAL_IS_ASYNC_P): Delete.
3062         (SERIAL_UN_FDOPEN): Delete.
3063         (SERIAL_READCHAR): Delete.
3064         (SERIAL_CLOSE): Delete.
3065         (SERIAL_FDOPEN): Delete.
3066         (SERIAL_OPEN): Delete.
3067         * ser-unix.c: Update.
3068         * sparclet-rom.c: Update.
3069         * remote-bug.c: Update.
3070         * dsrec.c: Update.
3071         * xmodem.c: Update.
3072         * nindy-share/ttyflush.c: Update.
3073         * nindy-share/Onindy.c: Update.
3074         * utils.c: Update.
3075         * serial.c: Update.
3076         * remote-nindy.c: Update.
3077         * inflow.c: Update.
3078         * sparcl-tdep.c: Update.
3079         * sh3-rom.c: Update.
3080         * remote.c: Update.
3081         * remote-utils.c: Update.
3082         * remote-st.c: Update.
3083         * remote-sds.c: Update.
3084         * remote-rdp.c: Update.
3085         * remote-os9k.c: Update.
3086         * remote-nrom.c: Update.
3087         * remote-mips.c: Update.
3088         * remote-es.c: Update.
3089         * remote-e7000.c: Update.
3090         * remote-array.c: Update.
3091         * ocd.c: Update.
3092         * nindy-share/nindy.c: Update.
3093         * monitor.c: Update.
3094         
3095 2001-07-14  Andrew Cagney  <ac131313@redhat.com>
3096
3097         * mn10200-tdep.c: Replace value_ptr with ``struct value *''.
3098         * mcore-tdep.c: Ditto.
3099         * sparc-tdep.c: Ditto.
3100         * sh-tdep.c: Ditto.
3101         * rs6000-tdep.c: Ditto.
3102         * ppc-linux-tdep.c: Ditto.
3103         * m68hc11-tdep.c: Ditto.
3104         * ia64-tdep.c: Ditto.
3105         * i386-tdep.c: Ditto.
3106         * arm-linux-tdep.c: Ditto.
3107         * hppa-tdep.c: Ditto.
3108         * h8500-tdep.c: Ditto.
3109         * fr30-tdep.c: Ditto.
3110         * arm-tdep.c: Ditto.
3111         * alpha-tdep.c: Ditto.
3112         * d30v-tdep.c: Ditto.
3113         * d10v-tdep.c: Ditto.
3114         * m32r-tdep.c: Ditto.
3115         * mips-tdep.c: Ditto.
3116         * v850-tdep.c: Ditto.
3117
3118 2001-07-15  Elena Zannoni  <ezannoni@redhat.com>
3119  
3120         * top.c (readline_line_completion_function, noop_completer): Move
3121         from here...  
3122         * completer.c (readline_line_completion_function, noop_completer):
3123         ...to here.
3124         * gdbcmd.h (readline_line_completion_function, noop_completer):
3125         Move declarations from here...  
3126         * completer.h (readline_line_completion_function, noop_completer):
3127         ...to here.
3128         * corefile.c: Include completer.h.
3129         * source.c: Ditto.
3130         * symfile.c: Ditto.
3131         * Makefile.in: Update dependencies.
3132
3133 2001-07-15  Eli Zaretskii  <eliz@is.elta.co.il>
3134
3135         * go32-nat.c (go32_create_inferior): Support command lines longer
3136         than 126 characters.
3137
3138 2001-07-14  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3139
3140         * NEWS: New target 68HC11/68HC12.
3141
3142 2001-07-14  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3143
3144         * utils.c (query): Remove tui hacks; tui must use the query_hook.
3145         * top.c (command_loop): Remove tui insert_mode hacks; don't call
3146         tuiCleanUp because this must be made with atexit by tui.
3147         * symfile.c (symbol_file_command): Remove call to TUIDO
3148         * stack.c (show_and_print_stack_frame_stub): Remove tui check;
3149         not necessary when using the selected frame hooks.
3150         (print_stack_frame_stub): Likewise.
3151         (print_frame_info_base): Likewise.
3152         (print_frame_info): Likewise.
3153         (up_silently_command): Likewise.
3154         (down_silently_command): Likewise.
3155         (show_stack_frame): Likewise for TUIDO.
3156         (select_frame): Likewise.
3157         (select_and_print_frame): Likewise.
3158         (stack_publish_stopped_with_no_frame): Remove.
3159         (select_and_maybe_print_frame): Remove.
3160         * main.c (captured_main): Remove tui_fileopen and tuiInit; tui
3161         must use the initialize ui hook.
3162         * infrun.c (normal_stop): Remove call to TUIDO; tui must use the
3163         selected frame hooks.
3164         * event-top.c (command_handler): Remove tui insert_mode hack.
3165         * defs.h: Remove TUIDO; Only include tui.h.
3166         * breakpoint.c (mention): Remove calls to TUIDO.
3167         (delete_breakpoint): Remove tui hacks; tui must install
3168         the breakpoint hooks.
3169
3170 2001-07-14  Mark Kettenis  <kettenis@gnu.org>
3171
3172         * config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
3173         * config/i386/nm-linux.h: ...to here.  Change comments about user
3174         area/struct a bit.
3175
3176         * config/i386/xm-linux.h (HAVE_TERMIOS): Really remove.
3177
3178         * Makefile.in (ALLDEPFILES): Add i386bsd-nat.c and i386bsd-tdep.c
3179         (i386bsd-tdep.o, i386bsd-nat.o): New targets.
3180
3181 2001-07-13  Elena Zannoni  <ezannoni@redhat.com>
3182
3183         * remote-e7000.c (fetch_regs_from_dump): If register set is null,
3184         generate an internal error.
3185         (e7000_fetch_registers): Initialize variable 'wanted'.
3186         (e7000_wait): Initialize variable 'wanted_nopc'.
3187         (e7000_store_register): Fix sprintf compiler warnings.
3188         (sub2_from_pc): Ditto.
3189         (e7000_open): Close the descriptor, not the name.
3190         (e7000_load): Fix compiler warnings.
3191         (sub2_from_pc): Ditto.
3192         * Makefile.in (remote-e7000.o): Can now compile with -Werror.
3193
3194 2001-07-13  Mark Kettenis  <kettenis@gnu.org>
3195
3196         * i386bsd-nat.c: Include <signal.h>, <stddef.h> and
3197         <sys/sysctl.h>.
3198         (store_inferior_registers): Wrap long line.
3199         (i386bsd_dr_get_status): Fix typo in comment.
3200         (_initialize_i386bsd_nat): New function.  * i386bsd-tdep.c: New
3201         file.  * config/i386/tm-fbsd.h (IN_SIGTRAMP): New define.
3202         (i386bsd_in_sigtramp): New prototype.
3203         (SIGTRAMP_START, SIGTRAMP_END): Redefine in terms...
3204         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): ...these new
3205         (external) variables.
3206         (SIGCONTEXT_PC_OFFSET): Removed.
3207         (FRAME_SAVED_PC): New define.
3208         (i386bsd_frame_saved_pc): New function.  * config/i386/fbsd.mt
3209         (TDEPFILES): Add i386bsd-tdep.o.
3210
3211 2001-07-12  Daniel Jacobowitz  <drow@mvista.com>
3212
3213         * mips-linux-tdep.c (_initialize_mips_linux_tdep):  Use ISO C
3214         definition.
3215
3216 2001-07-13  Mark Kettenis  <kettenis@gnu.org>
3217
3218         * lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
3219         are no registered LWPs yet.
3220
3221 2001-07-12  Daniel Jacobowitz  <drow@mvista.com>
3222
3223         * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
3224         function.
3225         (CANNOT_STORE_REGISTER): Likewise.
3226
3227 2001-07-12  Keith Seitz  <keiths@redhat.com>
3228
3229         * remote-rdp.c: Include "serial.h"
3230
3231 2001-07-12  Daniel Jacobowitz  <drow@mvista.com>
3232
3233         * gdbserver/remote-utils.c (remote_open):  Set VMIN to 1
3234         in HAVE_TERMIO/HAVE_TERMIOS cases.
3235
3236 2001-07-12  Mark Kettenis  <kettenis@gnu.org>
3237
3238         * lin-lwp.c (stop_wait_callback): Add support for flushing
3239         signals.  Use that in favour of the old code to get rid of
3240         superfluous SIGINTs.
3241         (lin_lwp_wait): Use the new support in stop_wait_callback to
3242         flush all but one SIGINT.
3243
3244         * i386-tdep.c (i386_extract_return_value): Undo 2001-07-11 changes
3245         to comment.
3246         (i386_store_return_value): Improve comments about storing
3247         floating-point return values.
3248
3249         * config/arm/xm-linux.h, config/i386/xm-linux.h,
3250         config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
3251         config/sparc/xm-linux.h, config/ia64/xm-linux.h (HAVE_TERMIOS):
3252         Removed.  Taken care of by autoconf and terminal.h.
3253
3254 2001-07-12  Daniel Jacobowitz  <drow@mvista.com>
3255
3256         * mips-tdep.c (mips_type_needs_double_align): New function.
3257         (mips_push_arguments): Align o32 structs to even argument
3258         registers if necessary.
3259
3260 2001-07-11  Daniel Jacobowitz  <drow@mvista.com>
3261
3262         * config/djgpp/fnchange.lst: Add entries for
3263         mips-linux-nat.c and mips-linux-tdep.c.
3264
3265 2001-07-12  Mark Kettenis  <kettenis@gnu.org>
3266
3267         * config/powerpc/xm-linux.h: Fix corrupted file.
3268
3269         * configure.in: Add check for sigsetjmp.
3270         * config/m68k/xm-linux.h (HAVE_SIGSETJMP): Removed.
3271         * config/xm-sysv4.h (HAVE_SIGSETJMP): Removed.
3272         * configure, config.in: Regenerated.
3273
3274 2001-07-11  Elena Zannoni  <ezannoni@redhat.com>
3275
3276         * config/sh/tm-sh.h (struct gdbarch_tdep): Add
3277         FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
3278         PR_REGNUM fields.
3279
3280         * sh-tdep.c (sh_skip_prologue_hard_way): Rename from
3281         skip_prologue_hard_way().
3282         (skip_prologue_hard_way): Make it a function pointer.
3283         (sh_print_register): Use function pointer do_pseudo_register,
3284         instead of sh_do_pseudo_register.
3285         (sh_do_registers_info): Ditto.
3286         (sh_gdbarch_init): Initialize do_pseudo_register.
3287         (IS_MOV_TO_R14): Rename from IS_MOV_R14.
3288         (skip_prologue_hard_way): Update.
3289         (sh_gdbarch_init): Move setting of frame_chain,
3290         get_saved_register, init_extra_frame_info, push_arguments,
3291         extract_return_value, pop_frame, store_struct_return,
3292         extract_struct_value_address, use_struct_convention,
3293         init_extra_frame_info to before target specific settings.
3294         (sh_gdbarch_init): Initialize new tdep fields
3295         FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
3296         PR_REGNUM.
3297         (sh_push_arguments): Use new gdbarch_tdep fields
3298         {ARG0,ARGLAST}_REGNUM.
3299         (sh_saved_pc_after_call, sh_nofp_frame_init_saved_regs,
3300         sh_init_extra_frame_info, sh_push_return_address,
3301         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3302         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update to use
3303         gdbarch_tdep->PR_REGNUM.
3304         (dr_reg_base_num, fv_reg_base_num): Move to earlier in the file.
3305         
3306 2001-07-11  Daniel Jacobowitz  <drow@mvista.com>
3307
3308         * config/mips/tm-linux.h: Include "tm-linux.h" instead of copying
3309         from it.  Move definitions of REALTIME_LO and REALTIME_HI above
3310         include.
3311
3312 2001-07-11  Daniel Jacobowitz  <drow@mvista.com>
3313
3314         * MAINTAINERS: List myself for MIPS/Linux
3315         port.
3316
3317 2001-07-11  Daniel Jacobowitz  <drow@mvista.com>
3318
3319         * gdbserver/remote-utils.c (remote_open): Only
3320         check for F_SETOWN if we had F_SETFL and FASYNC.
3321
3322 2001-07-11  Daniel Jacobowitz  <drow@mvista.com>
3323
3324         From Michael Fedrowitz  <michael.fedrowitz@informatik.uni-ulm.de>:
3325
3326         * config/m68k/linux.mh: Remove core-regset.o.
3327         * m68klinux-nat.c: Fix comment.
3328         (supply_gregset): Change argument to elf_gregset_t *.
3329         (supply_fpregset): Change argument to elf_fpregset_t *.
3330         (fetch_core_registers): New function.
3331         (linux_elf_core_fns): Define.
3332         (_initialize_m68k_linux_nat): New function.
3333
3334 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
3335
3336         * configure.tgt: Mark d10v as pure multi-arch.
3337         * config/d10v/tm-d10v.h: Delete file.
3338         * config/d10v/d10v.mt (TM_FILE): Delete.
3339
3340 2001-07-10  Andrew Cagney  <ac131313@redhat.com>
3341
3342         * serial.h (typedef serial_t): Delete. Replace all references to
3343         serial_t with `struct serial *'.
3344         * serial.c: Update.
3345         * nindy-share/ttyflush.c: Update.
3346         * nindy-share/ttyflush.c: Update.
3347         * nindy-share/Onindy.c: Update.
3348         * nindy-share/nindy.c: Update.
3349         * remote-rdp.c: Update.
3350         * remote-sds.c: Update.
3351         * remote-st.c: Update.
3352         * remote-nindy.c: Update.
3353         * remote-mips.c: Update.
3354         * remote-e7000.c: Update.
3355         * remote-os9k.c: Update.
3356         * remote-nrom.c: Update.
3357         * remote-es.c: Update.
3358         * remote-array.c: Update.
3359         * ocd.c: Update.
3360         * mon960-rom.c: Update.
3361         * dsrec.c: Update.
3362         * inflow.c: Update.
3363         * ser-e7kpc.c: Update.
3364         * sparclet-rom.c: Update.
3365         * srec.h: Update.
3366         * ser-tcp.c: Update.
3367         * ser-go32.c: Update.
3368         * sparcl-tdep.c: Update.
3369         * w89k-rom.c: Update.
3370         * utils.c: Update.
3371         * sh3-rom.c: Update.
3372         * remote.c: Update.
3373         * ser-pipe.c: Update.
3374         * ser-unix.c: Update.
3375         * ser-unix.h: Update.
3376         * xmodem.c: Update.
3377         * xmodem.h: Update.
3378
3379 2001-07-11  J.T. Conklin  <jtc@redback.com>
3380
3381         From Greg McGary <greg@mcgary.org>:
3382         * gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
3383         of SIGIO.
3384         (input_interrupt): Don't block on read, in case we got redundant
3385         SIGIO.  Don't gripe about redundant SIGIO.
3386         * gdbserver/low-hppabsd.c (mywait): Use waitpid().  Enable SIGIO
3387         handler while waiting.
3388         * gdbserver/low-linux.c (mywait): Likewise.
3389         * gdbserver/low-nbsd.c (mywait): Likewise.
3390         * gdbserver/low-sparc.c (mywait): Likewise.
3391
3392 2001-07-11  Keith Seitz  <keiths@redhat.com>
3393
3394         * infrun.c (print_stop_reason): Add missing uiout field
3395         "reason" for SIGNAL_RECEIVED case.
3396
3397 2001-07-11  Mark Kettenis  <kettenis@gnu.org>
3398
3399         * config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
3400         Remove unused macro's.
3401
3402         * config/powerpc/nm-linux.h (NO_SYS_REG_H): Remove, it's no longer
3403         used.
3404
3405 2001-07-11  Eli Zaretskii  <eliz@is.elta.co.il>
3406
3407         * go32-nat.c (info_dos_cmdlist): New variable.
3408         (go32_info_dos_command): New function.
3409         (_initialize_go32_nat): Convert all DOS-specific commands into
3410         subcommands of "info dos".  Suggested by Andrew Cagney
3411         <ac131313@redhat.com>.
3412
3413 2001-07-11  Mark Kettenis  <kettenis@gnu.org>
3414
3415         * config/nm-linux.h: Fix comments.
3416
3417         * thread-db.c (enable_thread_event_reporting): Correct warning
3418         message about getting thread death breakpoint.
3419         Reported by John S Kallal <jskallal@home.com>.
3420
3421         * i386-tdep.c (i386_extract_return_value): "Fix" comment.
3422         (i386_store_return_value): Frob FPU status and tag word to make
3423         sure the return value is the only value on the FPU stack.
3424
3425         * config/tm-linux.h: Do not include <signal.h>.  Instead provide
3426         reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
3427         already defined.
3428         * config/nm-linux.h: Include <signal.h>.
3429         [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
3430         (__SIGRTMAX + 1) respectively.
3431
3432 2001-07-10  Andrew Cagney  <ac131313@redhat.com>
3433
3434         * mcore-rom.c: Include "serial.h".
3435         * Makefile.in (mcore-rom.o): Depends on "serial.h".
3436
3437 2001-07-10  Andrew Cagney  <ac131313@redhat.com>
3438
3439         * Makefile.in (remote-bug.o): Depends on serial.h.
3440         * remote-bug.c: Include "serial.h".
3441         * MAINTAINERS: Mark m88k target as buildable.
3442         * TODO: Update.
3443
3444 2001-07-10  Jim Blandy  <jimb@redhat.com>
3445
3446         Clean up the D10V port so that GDB and the target program no
3447         longer disagree on how big pointers are.
3448         * findvar.c (value_from_register): Remove special case code for D10V.
3449         * printcmd.c (print_frame_args): Same.
3450         * valops.c (value_at, value_fetch_lazy): Same.
3451         * values.c (unpack_long): Same.
3452         * gdbarch.sh: Changes to effect the following:
3453         * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
3454         gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
3455         set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
3456         gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
3457         set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
3458         gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
3459         set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
3460         gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
3461         set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
3462         gdbarch_d10v_convert_daddr_to_raw_ftype,
3463         gdbarch_d10v_convert_daddr_to_raw,
3464         set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
3465         gdbarch_d10v_convert_iaddr_to_raw_ftype,
3466         gdbarch_d10v_convert_iaddr_to_raw,
3467         set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
3468         * gdbarch.c: Delete the corresponding definitions.
3469         (struct gdbarch): Delete members d10v_make_daddr,
3470         d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
3471         d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
3472         (startup_gdbarch): Remove initializers for the above.
3473         (verify_gdbarch, gdbarch_dump): Don't verify or dump them any
3474         more.
3475         * d10v-tdep.c (d10v_register_virtual_type): Rather that
3476         claiming the stack pointer and PC are 32 bits long (which they
3477         aren't), say that the stack pointer is an int16_t, and the
3478         program counter is a function pointer.  This allows the rest
3479         of GDB to make the appropriate conversions between the code
3480         pointer format and real addresses.
3481         (d10v_register_convertible, d10v_register_convert_to_virtual,
3482         d10v_register_convert_to_raw): Delete function; no registers
3483         are convertible now, so we use
3484         generic_register_convertible_not instead.
3485         (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
3486         methods.
3487         (d10v_push_arguments, d10v_extract_return_value): Remove special
3488         cases for code and data pointers.
3489         (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
3490         the target agree on how large pointers are.  Say that addresses
3491         are 32 bits long.  Register the address_to_pointer and
3492         pointer_to_address conversion functions.  Since no registers are
3493         convertible now, register generic_register_convertible_not as the
3494         gdbarch_register_convertible method instead of
3495         d10v_register_convertible.  Remove registrations for
3496         d10v_register_convert_to_virtual,
3497         d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
3498         gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
3499         gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
3500         gdbarch_d10v_convert_iaddr_to_raw.
3501         
3502         * printcmd.c (print_scalar_formatted): If we are printing an
3503         address, remember that TARGET_ADDR_BIT is not always equal to
3504         TARGET_PTR_BIT.
3505
3506         * valops.c (value_cast): When casting a pointer to an integer,
3507         don't convert it to an address.
3508
3509 2001-07-10  Andrew Cagney  <ac131313@redhat.com>
3510
3511         * remote-utils.h (struct serial): Declare as opaque.  Remove
3512         include of "serial.h".
3513         * Makefile.in (remote_utils_h): Update.
3514
3515         * monitor.h (struct serial): Declare as opaque.  Remove include of
3516         "serial.h".
3517         (struct monitor_ops): Replace serial_t with `struct serial *'.
3518         * monitor.c (monitor_desc): Ditto.
3519
3520 2001-07-10  Daniel Jacobowitz  <drow@mvista.com>
3521
3522         * mips-linux-tdep.c: New file.
3523         * mips-linux-nat.c: New file.
3524         * config/mips/linux.mh: New file.
3525         * config/mips/linux.mt: New file.
3526         * config/mips/xm-linux.h: New file.
3527         * config/mips/nm-linux.h: New file.
3528         * config/mips/tm-linux.h: New file.
3529         * configure.host: Recognize mips*-*-linux*.
3530         * configure.tgt: Likewise.
3531         * NEWS: Mention mips*-*-linux* port.
3532
3533 2001-07-09  Andrew Cagney  <ac131313@redhat.com>
3534
3535         * serial.h (struct serial): Rename `struct _serial_t'.
3536         * serial.c (XMALLOC): Define.
3537         (serial_open): Update. Use XMALLOC.
3538         (serial_fdopen): Ditto.
3539
3540 2001-07-07  Andrew Cagney  <ac131313@redhat.com>
3541
3542         * gdbtypes.h (builtin_type_void_data_ptr): Rename
3543         builtin_type_ptr.
3544         * gdbtypes.c (builtin_type_void_data_ptr): Update.
3545         (build_gdbtypes): Update.
3546         (_initialize_gdbtypes): Update.
3547         * values.c (value_as_pointer): Update.
3548         * utils.c (host_pointer_to_address): Update.
3549         (address_to_host_pointer): Update.
3550
3551 2001-07-08  Andrew Cagney  <ac131313@redhat.com>
3552
3553         * remote-udi.c (udi_wait): Make type, instead of name, of first
3554         parameter a ptid_t.
3555
3556 2001-07-07  Andrew Cagney  <ac131313@redhat.com>
3557
3558         * ser-mac.c: Make obsolete.
3559         * Makefile.in (ser-mac.o): Ditto.
3560
3561 2001-07-08  Eli Zaretskii  <eliz@is.elta.co.il>
3562
3563         * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
3564         (read_memory_region, get_descriptor, display_descriptor)
3565         (go32_sldt, go32_sgdt, go32_sidt): New functions.
3566         (top-level): Include ctype.h, utsname.h, dos.h, and go32.h.  Ifdef
3567         away `disable' from dos.h, since breakpoint.h defines an enum
3568         member of the same name, and GCC 2.7.2 barfs.
3569         (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
3570         dos-gdt, and dos-idt, all of them in the "info" class
3571
3572 2001-07-07  Kevin Buettner  <kevinb@redhat.com>
3573
3574         * procfs.c (create_procinfo): Allocate space for saved_entryset
3575         and saved_exitset.
3576         (destroy_one_procinfo): Free space allocated to saved_entryset
3577         and saved_exitset.
3578
3579 2001-07-07  Andrew Cagney  <ac131313@redhat.com>
3580
3581         * TODO (5.1): Update.
3582
3583 2001-07-07  Andrew Cagney  <ac131313@redhat.com>
3584
3585         * symtab.c (main_name): New function.
3586         (set_main_name): New function.
3587         * symtab.h: Declare.
3588         * TODO: Update
3589
3590         From 2000-03-05 Anthony Green <green@redhat.com>:
3591         * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
3592         setting main_name.
3593         * blockframe.c (inside_main_func): Use main_name instead of
3594         "main".
3595         * symtab.c (find_main_psymtab): Ditto.
3596         * source.c (select_source_symtab): Ditto.
3597         * nlmread.c (nlm_symfile_read): Ditto.
3598         * rs6000-tdep.c (skip_prologue): Ditto.
3599
3600 2001-07-07  Andrew Cagney  <ac131313@redhat.com>
3601
3602         * TODO: Convert most items into PRs.
3603
3604 2001-07-07  Mark Kettenis  <kettenis@gnu.org>
3605
3606         * lin-lwp.c (status_to_str): New function.
3607         (lin_lwp_wait): Use it to print debug messages where appropriate.
3608
3609 2001-07-06  Michael Chastain  <chastain@redhat.com>
3610
3611         * i387-tdep.c (print_i387_value): Fix pointer glitch.
3612
3613 2001-07-07  Mark Kettenis  <kettenis@gnu.org>
3614
3615         * lin-lwp.c (count_events_callback): Fix formatting.  Turn check
3616         commented with "paranoia" into gdb_assert.
3617         (select_event_lwp_callback): Likewise.
3618         (cancel_breakpoints_callback): Bail out early if LP is the event
3619         LWP.  Add comment about backup up breakpoints.  Fix formatting and
3620         debug message.
3621         (select_event_lwp): Make solely repsonsible for switching event
3622         LWP.  Fix formatting and remove bogus "ERROR" debug message.
3623         Don't backup breakpoints from here.
3624         (lin_lwp_wait): Don't touch LP->status, let select_event_lwp
3625         handle that.  Only call select_event_lwp if we're not waiting for
3626         a specific LWP, i.e. when PID == -1.  Backup breakpoints from here.
3627
3628 2001-07-06  Michael Snyder  <msnyder@redhat.com>
3629
3630         * procfs.c (procfs_resume): Silence noisy warning.
3631
3632 2001-06-12  Michael Snyder  <msnyder@redhat.com>
3633
3634         * lin-lwp.c: Prevent thread starvation by using a monte carlo 
3635         method to choose which of several event threads to handle next.
3636
3637         (stop_wait_callback): Defer pushback of breakpoint events until
3638         later; add SIGTRAP events to the queue of unhandled events.
3639         Keep calling waitpid until SIGSTOP retrieved.  If more than one
3640         non-SIGSTOP event is retrieved, push them back onto the process
3641         queue using kill.
3642         (count_events_callback, select_singlestep_lwp_callback, 
3643         select_event_lwp_callback, cancel_breakpoints_callback, 
3644         select_event_lwp): New functions.  Implement monte carlo method 
3645         for selecting which of several SIGTRAP threads to handle next.  
3646         Push back the breakpoint event for all threads other than the 
3647         selected one.
3648         (lin_lwp_wait): Call select_event_lwp to decide which of several
3649         sigtrapped lwps to handle next.
3650         (resume_callback): Disable code that attempts to handle
3651         step_resume breakpoints.  Let core gdb handle this.
3652         
3653 2001-07-06  Jim Blandy  <jimb@redhat.com>
3654
3655         * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
3656         * gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
3657         (build_gdbtypes): Initialize it.
3658         (_initialize_gdbtypes): Swap it.
3659
3660 2001-07-04  Daniel Jacobowitz  <drow@mvista.com>
3661
3662         * mips-tdep.c (mips32_op): Correct offset.
3663         (itype_op): Likewise.
3664         (itype_rs): Fix formatting.
3665         (itype_immediate): Fix formatting.
3666         (jtype_op): Correct offset.
3667         (jtype_target): Fix formatting.
3668         (rtype_op): Correct offset.
3669         (rtype_rs): Fix formatting.
3670         (rtype_rt): Likewise.
3671         (rtype_rd): Likewise.
3672         (rtype_shamt): Likewise.
3673         (rtype_funct): Likewise.
3674
3675         (mips32_next_pc):  Fix formatting and comments.  Recognize
3676         coprocessor 1 branches.  Check the correct field for BLT family
3677         branches.  Use itype_rt instead of itype_rs for the second register
3678         of a BNE or BNEL branch.  Move (unreachable) default case.
3679
3680 2001-07-04  Andrew Cagney  <ac131313@redhat.com>
3681
3682         * ui-out.h (struct ui_out_impl): Add field is_mi_like_p.
3683         (ui_out_is_mi_like_p): Declare.
3684         * ui-out.c (ui_out_is_mi_like_p): Define.
3685         (default_ui_out_impl): Initialize is_mi_like_p to zero.
3686         * cli-out.c (cli_ui_out_impl): Ditto.
3687         * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p.
3688         (watchpoint_check, print_one_breakpoint, mention): Ditto.
3689         * infrun.c (print_stop_reason, normal_stop): Ditto.
3690
3691 2001-07-05  Daniel Jacobowitz  <drow@mvista.com>
3692
3693         * mips-tdep.c (mips_software_single_step): New function.
3694         * config/mips/tm-mips.h: Add prototype for
3695         mips_software_single_step.
3696
3697 2001-07-05  Daniel Jacobowitz  <drow@mvista.com>
3698
3699         * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
3700         of greg_t.
3701         (fill_gregset): Likewise.
3702
3703 2001-07-05  Andrew Cagney  <ac131313@redhat.com>
3704
3705         * objfiles.c (open_mapped_file): Use lbasename instead of
3706         basename.
3707
3708 2001-07-05  Jim Blandy  <jimb@redhat.com>
3709
3710         * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
3711         show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
3712         d10v_write_sp, d10v_write_fp, d10v_read_fp,
3713         d10v_push_return_address): Call the functions d10v_make_daddr,
3714         d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
3715         d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
3716         D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
3717         D10V_CONVERT_DADDR_TO_RAW.
3718
3719         * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
3720
3721 2001-07-05  Mark Kettenis  <kettenis@gnu.org>
3722
3723         * config/i386/xm-go32.h (HOST_I386): Removed.
3724         * config/i386/xm-linux.h (HOST_I386): Removed.
3725
3726 2001-07-04  Mark Kettenis  <kettenis@gnu.org>
3727
3728         * i387-tdep.c (print_i387_value): Add extra space after final full
3729         stop in comment.
3730
3731 2001-07-04  Andrew Cagney  <ac131313@redhat.com>
3732
3733         * TODO (5.1): Update.  Doco changes committed.
3734
3735 2001-06-29  Andrew Cagney  <ac131313@redhat.com>
3736
3737         * config/arm/tm-arm.h: Include "floatformat.h".
3738
3739 2001-06-29  Andrew Cagney  <ac131313@redhat.com>
3740
3741         * i387-tdep.c: Include "gdb_assert.h".
3742         (print_i387_value): Use extract_floating to extract the FP value
3743         from a zero padded local buffer.
3744
3745 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
3746
3747         * TODO: Delete all thread items.  The thread code was overhauled.
3748
3749 2001-07-04  Elena Zannoni  <ezannoni@redhat.com>
3750
3751         * memattr.c (create_mem_region): Move n to next memory region,
3752         to avoid infinite loop.
3753
3754         * memattr.h: Add copyright statement.
3755         * memattr.c: Ditto.
3756
3757 2001-07-04  Jim Blandy  <jimb@redhat.com>
3758
3759         * dwarf2read.c (struct partial_die_info): New member: has_pc_info.
3760         (read_partial_die): Delete fourth argument; we return this info in
3761         the struct partial_die_info object itself now.
3762         (dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
3763         has_pc_info field of the partial die struct, rather than passing a
3764         variable by reference to read_partial_die.
3765
3766         * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
3767         code in loop condition.
3768
3769 2001-07-03  Michael Snyder  <msnyder@redhat.com>
3770
3771         * thread_db (find_new_threads_callback, thread_db_thread_alive, 
3772         attach_thread): Update comments.
3773
3774 2001-06-29  Ken Whaley  <ken@believe.com>
3775
3776         * thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
3777         to TD_THR_UNKNOWN when looking for defunct zombie threads.
3778         (thread_db_thread_alive): Ditto.
3779         (find_new_threads_callback): Ditto.
3780
3781 2001-07-02  Daniel Jacobowitz  <drow@mvista.com>
3782
3783         * MAINTAINERS: Add myself to the write-after-approval list.
3784
3785 2001-07-02  Daniel Jacobowitz  <drow@mvista.com>
3786
3787         * solib-svr4.c: Include "elf/mips.h".
3788         (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
3789
3790 2001-07-02  Jim Blandy  <jimb@redhat.com>
3791
3792         * dwarf2read.c (read_comp_unit, sibling_die, dump_die,
3793         dump_die_list, store_in_ref_table, follow_die_ref): Make these
3794         static; they're private functions.
3795
3796 2001-07-01  Mark Elbrecht <snowball@bigfoot.com>
3797
3798         * coffread.c (coff_symfile_read): Parse DWARF2 info if present.
3799
3800 2001-06-28  Elena Zannoni  <ezannoni@redhat.com>
3801
3802         * TODO: Add import of readline 4.2 as a gdb 5.2 task.
3803
3804 2001-06-29  Andrew Cagney  <ac131313@redhat.com>
3805
3806         * config/djgpp/fnchange.lst: Sort.
3807
3808 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
3809
3810         * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
3811         mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
3812
3813 2001-06-29  Andreas Jaeger  <aj@suse.de>
3814
3815         * MAINTAINERS: Add myself to the write-after-approval list.
3816
3817 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
3818
3819         * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro.
3820         (get_hex_word): Don't use HOST_BYTE_ORDER.
3821         (array_fetch_registers): Add variable ``reg''.  Use
3822         store_unsigned_integer to byte-swap the register.  Delete unused
3823         local ``regs''.
3824
3825 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
3826
3827         * MAINTAINERS: Add Per Bothner to Java maintainers.
3828
3829 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
3830
3831         * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
3832         * rdi-share/hostchan.h (__unix): Hack, provide a default value.
3833         * rdi-share/host.h (__unix): Hack, define when __NetBSD__.
3834         * TODO: Update.
3835         * MAINTAINERS: Update.  arm-elf builds.
3836
3837 2001-06-28  Jim Blandy  <jimb@redhat.com>
3838
3839         * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.
3840
3841         * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention,
3842         d10v_breakpoint_from_pc, d10v_register_byte,
3843         d10v_register_raw_size, d10v_register_virtual_size,
3844         d10v_register_virtual_type, d10v_register_convertible,
3845         d10v_register_convert_to_virtual, d10v_register_convert_to_raw,
3846         d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
3847         d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
3848         d10v_store_struct_return, d10v_store_return_value,
3849         d10v_extract_struct_value_address, d10v_frame_saved_pc,
3850         d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue,
3851         d10v_frame_chain, d10v_frame_init_saved_regs,
3852         d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc,
3853         d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp,
3854         d10v_push_return_address, d10v_push_arguments,
3855         d10v_extract_return_value): Make these functions static.
3856
3857 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
3858
3859         From Fernando Nasser:
3860         * infrun.c (handle_inferior_event): Handle "nexti" inside function
3861         prologues.
3862         
3863 2001-06-28  Michael Snyder  <msnyder@redhat.com>
3864
3865         * infrun.c (handle_inferior_event): Replace prev_pc test in all
3866         calls to bpstat_stop_status (removed in 1999-09-24).  This test
3867         helps distinguish stepping over a breakpoint trap from stepping
3868         thru a jump to the instruction after a breakpoint trap.
3869         (handle_inferior_event): Don't bother writing the PC if
3870         DECR_PC_AFTER_BREAK is zero (optimization).
3871         * breakpoint.c (bpstat_stop_status): Add comment explaining the
3872         purpose and usage of the "not_a_breakpoint" argument in computing
3873         the breakpoint address.
3874
3875 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
3876
3877         From 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3878         * monitor.c (setmem_resp_delim_pattern): New regexp pattern.
3879         (setreg_resp_delim_pattern): Likewise.
3880         (setmem_resp_delim_fastmap): New buffer.
3881         (setreg_resp_delim_fastmap): Likewise.
3882         (monitor_open): Initialize above regexp if they are defined.
3883         (monitor_write_memory): Use regexp to check the result of write.
3884         (monitor_store_register): Likewise to check result of register set.
3885
3886 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
3887
3888         From 2000-06-14 John Marshall <john_w_marshall@palm.com>:
3889         * coff-solib.c: Include symfile.h and objfiles.h to make
3890         OBJF_SHARED visible.
3891
3892 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
3893
3894         * configure.in (--enable-gdbmi): Enable by default.
3895         * configure: Regenerate.
3896         * TODO: Update.
3897         * NEWS: Update
3898
3899 2001-06-28  Joel Brobecker  <brobecker@act-europe.fr>
3900
3901         * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment
3902         explaining the consequences of always returning zero. No code
3903         change.
3904
3905 2001-06-28  Andrew Cagney  <ac131313@redhat.com>
3906
3907         From 2001-06-08 Daniel Jacobowitz <djacobowitz@mvista.com>:
3908         * defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65
3909         to TARGET_SIGNAL_REALTIME_127.
3910         * target.c (struct signals): Add SIG63 to SIG127.
3911         (target_signal_from_host): Handle up to 127 signals.
3912         (do_target_signal_to_host): Likewise.
3913         
3914 2001-06-27  Andrew Cagney  <ac131313@redhat.com>
3915
3916         * remote-sds.c (sds_start_remote): Change type of ``c'' to int
3917         from possibly unsigned char.
3918
3919 2001-06-27  Andrew Cagney  <ac131313@redhat.com>
3920
3921         * ser-ocd.c: Delete file.
3922         * Makefile.in (ALLDEPFILES): Remove ser-ocd.c
3923         (ser-ocd.o): Delete target.
3924         * TODO: Update.
3925         * NEWS: Update.
3926
3927 2001-06-27  Andrew Cagney  <ac131313@redhat.com>
3928
3929         * MAINTAINERS (Write After Approval): Sort.
3930         (Past Maintainers): Daniel Berlin stepped down as C++ maintainer.
3931
3932 2001-06-26  Andrew Cagney  <ac131313@redhat.com>
3933
3934         * breakpoint.c (breakpoint_1): Always output the breakpoint
3935         headings.  Leave it to ui-out to decide which
3936
3937 2001-06-25  Andrew Cagney  <ac131313@redhat.com>
3938
3939         * stack.c (print_frame): For ui_out, output a list of arguments.
3940
3941 2001-06-25  Kevin Buettner  <kevinb@redhat.com>
3942
3943         * MAINTAINERS (paper trail): Update.
3944
3945 2001-06-25  Michael Snyder  <msnyder@redhat.com>
3946
3947         * infrun.c: Eliminate the "thread_step_needed" state variable, 
3948         and replace it with a relatively simple test in resume.
3949         (resume): Replace thread_step_needed logic with a test for
3950         stepping, breakpoint_here_p and breakpoints_inserted.
3951         Move CANNOT_STEP_BREAKPOINT logic to after thread_step logic.
3952         (proceed): Discard thread_step_needed logic.
3953         (wait_for_inferior, fetch_inferior_event, handle_inferior_event):
3954         Discard thread_step_needed logic.
3955
3956 2001-06-24  Fernando Nasser  <fnasser@redhat.com>
3957
3958         * remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
3959         * rdi-share/host.h: Add missing parenthesis in conditional.
3960
3961 2001-06-22  J.T. Conklin  <jtc@redback.com>
3962
3963         * configure.in: include nlist.h when checking for member som_addr
3964         in struct so_map.
3965         * configure: regenerate.
3966
3967 2001-06-21  Keith Seitz  <keiths@redhat.com>
3968
3969         * cli-out.c (cli_out_new): Initialize new structure member
3970         "suppress_output".
3971
3972 2001-06-20  Andrew Cagney  <ac131313@redhat.com>
3973
3974         * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
3975         (table_header_ftype): Ditto.
3976         * cli-out.c (cli_table_header): Update.
3977         * ui-out.c (ui_out_table_header): Update.
3978         (uo_table_header): Update.
3979         (default_table_header): Update.
3980         (append_header_to_list): Update.
3981         (struct ui_out_header): Add field ``col_name''.
3982         (append_header_to_list): Use xstrdup.  Initialize col_name.
3983         * breakpoint.c (breakpoint_1): Pass COL_NAME to
3984         ui_out_table_header.
3985
3986 2001-06-19  Andrew Cagney  <ac131313@redhat.com>
3987
3988         * cli-out.c: Include "gdb_assert.h'.
3989         (struct ui_out_data): Add field ``suppress_output.
3990         (cli_table_begin): When NR_ROWS is zero, suppress_output.
3991         (cli_table_end): Clear suppress_output.
3992         (cli_table_body): Check suppress_output.
3993         (cli_table_header, cli_begin): Ditto.
3994         (cli_end, cli_field_int, cli_field_skip): Ditto.
3995         (cli_field_string, cli_field_fmt, cli_spaces): Ditto.
3996         (cli_text, cli_message, cli_wrap_hint): Ditto.
3997         * breakpoint.c (breakpoint_1): Close the ui_out table before
3998         printing the breakpoint not found message.
3999
4000 2001-06-18  Andrew Cagney  <ac131313@redhat.com>
4001
4002         * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
4003         (default_table_begin): Ditto.
4004         (uo_table_begin): Ditto.
4005         * cli-out.c (cli_table_begin): Ditto.
4006         * ui-out.h (ui_out_table_begin): Update
4007         (table_begin_ftype): Update.
4008         * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
4009         ui_out_table_begin.
4010
4011 2001-06-16  Andrew Cagney  <ac131313@redhat.com>
4012
4013         * breakpoint.c (breakpoint_1): Restructure.  Compute the
4014         nr_printable_breakpoints.  Move the header output to before the
4015         main print breakpoints loop.
4016         (user_settable_breakpoint): New function.
4017
4018 2001-06-18  Andrew Cagney  <ac131313@redhat.com>
4019
4020         * infrun.c, breakpoint.c: Use strncmp as the "mi" test.  Allow,
4021         "mi", "mi0" and "mi1".
4022
4023 2001-06-17  Andrew Cagney  <ac131313@redhat.com>
4024
4025         * gdbarch.sh: Generate an error when conflicting macro
4026         definitions.  Generate an error when both pure multi-arch and
4027         "tm.h".
4028         * gdbarch.h, gdbarch.c: Regenerate.
4029         * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
4030         
4031 2001-06-17  Andrew Cagney  <ac131313@redhat.com>
4032
4033         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
4034         GDB_MULTI_ARCH_PARTIAL from two.
4035
4036 2001-06-17  Fernando Nasser  <fnasser@redhat.com>
4037
4038         From 2001-06-15  Eirik Fuller  <eirik@hackrat.com>
4039         * cli/cli-script.c (free_command_lines): Reset list pointer.
4040
4041 2001-06-16  Andrew Cagney  <ac131313@redhat.com>
4042
4043         * arch-utils.c (init_frame_pc_default): New function
4044         * arch-utils.h (init_frame_pc_default): Declare.
4045         * gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
4046         not init_frame_pc_noop.
4047         * gdbarch.h, gdbarch.c: Re-generate.
4048         * blockframe.c (INIT_FRAME_PC): Delete macro definition.
4049         * mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
4050         init_frame_pc_noop.
4051
4052 2001-06-16  Andrew Cagney  <ac131313@redhat.com>
4053
4054         * gdbarch.c: Regenerate.  Out-of-sync with gdbarch.sh.
4055
4056 2001-06-15  Andrew Cagney  <ac131313@redhat.com>
4057
4058         * gdbarch.sh (CANNOT_FETCH_REGISTER): Multi-arch.
4059         (CANNOT_STORE_REGISTER): Ditto.
4060         * infptrace.c (CANNOT_FETCH_REGISTER): Delete definition.
4061         (CANNOT_STORE_REGISTER): Ditto.
4062         * regcache.c (CANNOT_STORE_REGISTER): Ditto.
4063         * lynx-nat.c (CANNOT_STORE_REGISTER): Ditto.
4064         * arch-utils.h (cannot_register_not): Define.
4065         * arch-utils.c (cannot_register_not): Declare.
4066         
4067 2001-06-15  Andrew Cagney  <ac131313@redhat.com>
4068
4069         * gdbarch.sh: Clarify pre/post default
4070         (INIT_FRAME_PC_FIRST, INIT_FRAME_PC): Multiarch.
4071         * blockframe.c (get_prev_frame): Remove #ifdef from around
4072         INIT_FRAME_PC_FIRST call.
4073         * arch-utils.c (init_frame_pc_noop): Define.
4074         * arch-utils.h (init_frame_pc_noop): Declare.
4075         * config/mips/tm-mips.h (INIT_FRAME_PC_FIRST): Delete.
4076         (INIT_FRAME_PC, mips_init_frame_pc_first): Ditto.
4077         * mips-tdep.c (mips_init_frame_pc_first): Make static.
4078         (mips_gdbarch_init): Initialize init_frame_pc_first.
4079         (mips_dump_tdep): Update.
4080
4081 2001-06-15  Michael Snyder  <msnyder@redhat.com>
4082
4083         * infrun.c (context_switch): New function.  Abstract the operation
4084         of saving and restoring infrun's state when switching threads.
4085         (handle_inferior_event): Normalize the handling of the 'thread hop'
4086         event (when the wrong thread hits a thread-specific breakpoint, 
4087         and we need to solo-step that thread past the breakpoint).
4088         Call keep_going, instead of target_resume.  Handle the subsequent
4089         singlestep-trap as a normal event instead of just resuming.
4090
4091 2001-06-15  Andrew Cagney  <ac131313@redhat.com>
4092
4093         * arch-utils.c (core_addr_identity): New function.  Rename
4094         default_convert_from_func_ptr_addr.
4095         * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Update.
4096         (ADDR_BITS_REMOVE): Define.  Default to core_addr_identity.
4097         * defs.h (ADDR_BITS_REMOVE): Delete macro definition.
4098         * config/mips/tm-mips.h (ADDR_BITS_REMOVE): Delete definition.
4099         * mips-tdep.c (mips_addr_bits_remove): Make static.
4100         (mips_gdbarch_init): Initialize addr_bits_remove.
4101
4102 2001-06-15  Andrew Cagney  <ac131313@redhat.com>
4103
4104         From 2001-02-26  D.J. Barrow <djbarrow@de.ibm.com>:
4105         * configure.tgt: Add S/390 31 & 64 bit target configuration.
4106         * configure.host: Ditto for host.
4107
4108 2001-06-15  Andrew Cagney  <ac131313@redhat.com>
4109
4110         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
4111         (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
4112         predicate.
4113         * gdbarch.h, gdbarch.c: Regenerate.
4114         * values.c (value_being_returned): Change the reference to
4115         EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
4116
4117 2001-06-15  Joel Brobecker <brobecker@act-europe.fr>
4118
4119         * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
4120         Write After Approval list.
4121
4122 2001-06-14  Michael Snyder  <msnyder@redhat.com>
4123
4124         * remote.c (show_remote_protocol_qSymbol_packet_cmd, 
4125         set_remote_protocol_qSymbol_packet_cmd): New functions.
4126         (init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
4127         (remote_check_symbols): New function.  Implement qSymbol packet, 
4128         allowing target to request symbol lookup service from gdb.
4129         (remote_open_1, remote_async_open_1): Call remote_check_symbols,
4130         allowing symbol lookup from exec_bfd on connection to target.
4131         (remote_new_objfile): New function.  Catch new objfile notifications
4132         from shared library module, and call remote_check_symbols.
4133         (_initialize_remote): Hook remote_new_objfile into the shared
4134         library notification chain.  Add "set remote symbol-lookup" command.
4135
4136 2001-06-14  Keith Seitz  <keiths@redhat.com>
4137
4138         * tracepoint.c (trace_command): We now have tracepoint
4139         events. Get rid of those ugly hooks.
4140         (tracepoint_operation): Likewise.
4141         (trace_pass_command): Likewise.
4142
4143 2001-06-13  Michael Snyder  <msnyder@redhat.com>
4144
4145         * gdbthread.h (struct thread_info): Add new fields: 
4146         current_line, current_symtab, step_sp, for saved infrun state.
4147         * thread.c (save_infrun_state, load_infrun_state): Save and
4148         restore current_line, current_symtab, and step_sp.
4149         (add_thread): Rather than adding assignments to initialize
4150         the new fields, just use memset (tp, 0, sizeof (*tp).
4151         This way future new fields will not be overlooked.
4152         * infrun.c (handle_inferior_event): Save and restore save_sp,
4153         current_line, and current_symtab when switching threads.
4154
4155 2001-06-13  Elena Zannoni  <ezannoni@redhat.com>
4156
4157         * MAINTAINERS: Add Andrew Cagney as co-maintainer of
4158         testsuite/gdb.mi.
4159
4160 2001-06-11  Andrew Cagney  <ac131313@redhat.com>
4161
4162         * symtab.c (lookup_symtab_1): Replace basename with lbasename.
4163         (lookup_partial_symtab, file_matches): Ditto.
4164         (make_source_files_completion_list): Ditto.
4165         (make_file_symbol_completion_list): Ditto.  Make local char*
4166         variable ``tail'' constant.
4167         (make_source_files_completion_list): Ditto with ``base_name''.
4168         * source.c (open_source_file): Use lbasename. Make ``p'' const
4169         char *.
4170
4171 2001-06-13  Eli Zaretskii  <eliz@is.elta.co.il>
4172
4173         * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
4174         (SLASH_STRING): Remove unused definitions.
4175         * config/i386/xm-cygwin.h: Likewise.
4176
4177 2001-06-12  Andrew Cagney  <ac131313@redhat.com>
4178
4179         * ui-out.c (ui_out_list_begin): Add parameter ``id''.
4180         (make_cleanup_ui_out_list_begin_end): Ditto.  Open the list.
4181         * ui-out.h: Update declarations.
4182
4183 Mon Jun 11 17:26:43 2001  Andrew Cagney  <cagney@b1.cygnus.com>
4184
4185         * source.c (openp): Make parameters ``path'' and ``string''
4186         constant.
4187         (openp): Use alloca to safely duplicate ``string''. Make local
4188         variables ``p'' and ``p1'' constant. Delete char* casts.
4189         * defs.h: Update.
4190
4191         * symtab.c (lookup_symtab_1): Make parameter ``name'' constant.
4192         (lookup_symtab, lookup_partial_symtab): Ditto.
4193         * symtab.h (lookup_symtab, lookup_partial_symtab): Update.
4194
4195 2001-06-11  Andrew Cagney  <ac131313@redhat.com>
4196
4197         * ui-out.h (ui_out_table_begin): Make char* parameters constant.
4198         (ui_out_table_header, ui_out_field_int): Ditto.
4199         (ui_out_field_core_addr, ui_out_field_string): Ditto.
4200         (ui_out_field_stream, ui_out_field_fmt): Ditto.
4201         (ui_out_field_skip, ui_out_text, ui_out_message): Ditto.
4202         * ui-out.c (ui_out_table_begin, ui_out_table_header): Update.
4203         (ui_out_field_core_addr, ui_out_field_stream): Update.
4204         (ui_out_field_string, ui_out_field_fmt): Update.
4205         (ui_out_text, ui_out_message): Update.
4206         (append_header_to_list): Make char* parameters constant.
4207         (uo_table_header, uo_table_begin): Ditto.
4208         (uo_field_int, uo_field_skip): Ditto.
4209         (uo_field_string, uo_field_fmt): Ditto.
4210         (uo_text, uo_message): Ditto.
4211
4212 2001-06-11  Eli Zaretskii  <eliz@is.elta.co.il>
4213
4214         * completer.c (gdb_completer_loc_break_characters): New variable.
4215         (line_completion_function): If we are completing on locations,
4216         back up the start of word pointer past all characters which can
4217         appear in a location spec.
4218         (location_completer): New function.
4219
4220         * completer.h: Add prototype for location_completer.
4221
4222         * symtab.c (make_source_files_completion_list)
4223         (add_filename_to_list, not_interesting_fname): New functions.
4224         (filename_seen): New function, body extracted from
4225         output_source_filename.
4226         (output_source_filename): Call filename_seen to check if the file
4227         was already printed.
4228         (make_symbol_completion_list): If TEXT includes a
4229         double-quoted string, return an empty list, not NULL.
4230         (make_file_symbol_completion_list): New function, similar to
4231         make_symbol_completion_list but with an additional argument
4232         SRCFILE.
4233
4234         * symtab.h (make_file_symbol_completion_list)
4235         (make_source_files_completion_list): Add prototypes.
4236
4237         * breakpoint.c (_initialize_breakpoint): Make location_completer
4238         be the completion function for all commands which set breakpoints
4239         and watchpoints.
4240         (top-level): #include "completer.h".
4241
4242         * tracepoint.c (_initialize_tracepoint): Make location_completer
4243         be the completion function for the "trace" command.
4244         (top-level): #include "completer.h".
4245
4246         * printcmd.c (_initialize_printcmd): Make location_completer be
4247         the completion function for the "print", "inspect", "call", and
4248         "disassemble" commands.
4249         (top-level): #include "completer.h".
4250
4251         * infcmd.c (_initialize_infcmd): Make location_completer be the
4252         completion function for the "go", "jump", and "until" commands.
4253         (top-level): #include "completer.h".
4254
4255 2001-06-10 Christopher Faylor <cgf@redhat.com>
4256
4257         * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
4258         * utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
4259         * values.c (unpack_double): Remove obsolete check for _MSC_VER.
4260         * defs.h: Ditto.
4261         * m32r-rom.c: Ditto.
4262         * p-exp.y: Ditto.
4263         * ser-e7kpc.c: Ditto.  Define WIN32_LEAN_AND_MEAN under _WIN32, for
4264         faster compilation.
4265         (get_ds_base): Remove _MSC_VER version of this function.
4266         * nindy-share/ttyflush.c: Ditto.
4267         * rdi-share/host.h: Ditto.
4268         * ser-go32.c (dos_readchar): Remove call to obsolete function.
4269         * remote-sim.c (gdb_os_poll_quit): Ditto.
4270         * remote-e7000.c (expect): Remove obsolete #if 0'ed code.
4271
4272         * main.c (captured_main): Eliminate special Cygwin checks.
4273         * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
4274
4275 2001-06-09  Andrew Cagney  <ac131313@redhat.com>
4276
4277         * Makefile.in (gdbcmd_h): Add ui_out_h.
4278         (breakpoint.o, infcmd.o, main.o, printcmd.o, stack.o): Ditto.
4279         (thread.o, top.o): Ditto.
4280
4281         * ui-out.h (table_begin_ftype): Make string parameters constant.
4282         (table_header_ftype): Ditto.
4283         (field_int_ftype): Ditto.
4284         (field_skip_ftype): Ditto.
4285         (field_string_ftype): Ditto.
4286         (field_fmt_ftype): Ditto.
4287         (text_ftype): Ditto.
4288         (message_ftype): Ditto.
4289         * cli-out.c (cli_table_begin): Ditto.
4290         (cli_table_header): Ditto.
4291         (cli_field_int): Ditto.
4292         (cli_field_skip): Ditto.
4293         (cli_field_string): Ditto.
4294         (cli_field_fmt): Ditto.
4295         (cli_text): Ditto.
4296         (cli_message): Ditto.
4297         (out_field_fmt): Ditto.
4298         * ui-out.c (default_table_begin): Ditto.
4299         (default_table_header): Ditto.
4300         (default_field_int): Ditto.
4301         (default_field_skip): Ditto.
4302         (default_field_string): Ditto.
4303         (default_field_fmt): Ditto.
4304         (default_text): Ditto.
4305         (default_message): Ditto.
4306
4307 2001-06-08  Michael Snyder  <msnyder@redhat.com>
4308
4309         * breakpoint.c (delete_breakpoint): Pass mark_inserted to 
4310         remove_breakpoint, so that the subsequent test for
4311         bpt->inserted will succeed, and duplicates will be fixed up.
4312
4313 2001-06-08  Per Bothner  <per@bothner.com>
4314
4315         * dwarf2read.c (set_cu_language):  Handle DW_LANG_Java.
4316
4317 2001-06-07  Keith Seitz  <keiths@redhat.com>
4318
4319         * tracepoint.c (tracepoint_opertation): Add ui event
4320         notifications.
4321         (trace_pass_command): Ditto.
4322         
4323 2001-06-07  Andrew Cagney  <ac131313@redhat.com>
4324
4325         * MAINTAINERS (Write After Approval): Note the entry criteria.
4326         (HP/PA): Jeff Law stepped down
4327
4328 2001-06-07  Jim Blandy  <jimb@redhat.com>
4329
4330         * gdbarch.sh: Make sure that '[' doesn't interpret interesting
4331         variable values as operators.
4332
4333 2001-06-07  Keith Seitz  <keiths@redhat.com>
4334
4335         * gdb-events.sh: Fix quote escaping which was obsoleted
4336         by last patch.
4337
4338 2001-06-07  Keith Seitz  <keiths@redhat.com>
4339
4340         * gdb-events.sh: Make if statements and tests
4341         a little more portable.
4342         Don't use shell's echo command to put strings containing
4343         escaped characeters into a file -- different flavors of /bin/sh
4344         require differnt levels of escaping. Use cat <<EOF instead.
4345         Our internal field separator is a colon. Change all
4346         commands which assume it is a space.
4347
4348 2001-06-06  Mark Kettenis  <kettenis@gnu.org>
4349
4350         * lin-lwp.c (struct lwp_info): Add member `resumed'.
4351         (iterate_over_lwps): Make sure we can handle CALLBACK deleting the
4352         LWP it's called for.
4353         (lin_lwp_attach): Mark LWP as resumed to make sure the fake
4354         SIGSTOP is reported.
4355         (resume_clear_callback): New function.
4356         (resume_set_callback): New function.
4357         (lin_lwp_resume): Mark all LWP's that we're going to resume as
4358         resumed, and unmark all others.
4359         (status_callback): Only report a pending wait status if we pretend
4360         that LP has been resumed.
4361         (resumed_callback): New function.
4362         (lin_lwp_wait): Add assertions to check that LWP's are properly
4363         marked as resumed.  Partially revert 2001-05-25 patch by Michael
4364         Snyder: do not resume all threads.  Add comment explaining the
4365         problems associated with this bit of code.
4366
4367 2001-06-07  Keith Seitz  <keiths@redhat.com>
4368
4369         * MAINTAINTERS: Syd Polk is stepping down from
4370         maintaining libgui. I am replacing him.
4371
4372 2001-06-07  Eli Zaretskii  <elis@is.elta.co.il>
4373
4374         * config/mips/tm-irix6.h: New file.
4375
4376         * config/mips/irix6.mh: New file.
4377
4378         * config/mips/irix6.mt: New file.
4379
4380         * config/mips/xm-irix6.h: New file.
4381
4382         * config/mips/nm-irix6.h: New file.
4383
4384         * mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
4385         disassembler info in tm_print_insn_info as appropriate for the N32
4386         ABI.  Force N32 ABI to be the default if the CPU is R8000 or
4387         R10000.
4388
4389         * configure.tgt (mips*-sgi-irix6*): Map to irix6.
4390
4391         * configure.host (mips*-sgi-irix6*): Ditto.
4392
4393 2001-06-07  Andrew Cagney  <ac131313@redhat.com>
4394
4395         * gnu-v3-abi.c: Include "gdb_assert.h".
4396         (build_gdb_vtable_type): Replace abort() with gdb_assert().
4397
4398 2001-06-06  Jim Blandy  <jimb@redhat.com>
4399
4400         * cp-abi.h: Rearrange code to put documentation comments above the
4401         functions we export.  The actual function table itself simply
4402         refers to those functions.  Minor doc fixes.
4403
4404         * gdbarch.sh: Changes to effect the following:
4405         * gdbarch.c (initialize_non_multiarch): New function.
4406         * gdbarch.h (initialize_non_multiarch): New declaration.
4407         * arch-utils.c (initialize_current_architecture): For
4408         non-multiarch configurations, call initialize_non_multiarch.
4409
4410 2001-06-06  Andrew Cagney  <ac131313@redhat.com>
4411
4412         * symfile.c (compare_psymbols): Replace PTR with void*. Delete
4413         declaration.
4414         (compare_symbols): Ditto.
4415
4416 2001-06-06  Jonathan Larmour  <jlarmour@redhat.com>
4417
4418         * arch-utils.c (generic_prepare_to_proceed): Allow for having
4419         stopped due to a Ctrl-C as well as breakpoints.
4420
4421         * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
4422         support thread switches after Ctrl-C.
4423         * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
4424         * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
4425         * m3-nat.c (mach3_prepare_to_proceed): Ditto.
4426
4427 2001-06-06  Jim Blandy  <jimb@redhat.com>
4428
4429         * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
4430         per-architecture data should be registered at initialization time,
4431         before any gdbarch objects get used, so the generality is
4432         unnecessary.
4433
4434 2001-06-06  Keith Seitz  <keiths@redhat.com>
4435
4436         * gdb-events.sh (function_list): Add tracepoint_create,
4437         tracepoint_delete, and tracepoint_modify events.
4438         * gdb-events.c: Regenerated.
4439         * gdb-events.h: Regenerated.
4440
4441 2001-06-06  Keith Seitz  <keiths@redhat.com>
4442
4443         * gdb-events.sh: Update copyrights.
4444         Change free to xfree.
4445         * gdb-events.c: Regenerated.
4446         * gdb-events.h: Regenerated.
4447
4448 2001-06-06  Eli Zaretskii  <eliz@is.elta.co.il>
4449
4450         * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
4451         instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
4452         * completer.c: Ditto.
4453         * cli/cli-cmds.c (cd_command): Ditto.
4454
4455 2001-06-04  Eli Zaretskii  <eliz@is.elta.co.il>
4456
4457         * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
4458         (mips_set_processor_type_command): Remove unused variable j.
4459         (mips_breakpoint_from_pc): Declare breakpoint instruction
4460         sequences as unsigned char, to avoid compiler warnings.
4461
4462         * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
4463         instead of system-specific define's like _WIN32 and __MSDOS__.
4464         Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
4465         ROOTED_P.
4466         (top-level): #include "filenames.h".
4467
4468         * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
4469         instead of SLASH_CHAR, ROOTED_P and SLASH_P.
4470         (top-level): #include "filenames.h".
4471
4472         * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
4473         (SLASH_STRING): Define only for _WIN32.
4474
4475         * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
4476         __MSDOS_.
4477
4478         * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
4479         IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P.  Replace
4480         system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
4481         (top-level): #include "filenames.h".
4482
4483         * go32-nat.c (go32_wait): Change the return value to ptid_t.
4484
4485         * config/djgpp/fnchange.lst: Add two new files in the
4486         gdb/testsuite/gdb.c++/ directory to the remapped names.
4487
4488         * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
4489
4490 2001-06-01  Jim Blandy  <jimb@redhat.com>
4491
4492         Expand the gdbarch per-architecture data vector as needed, rather
4493         than requiring that all per-architecture data be registered before
4494         the first gdbarch object is allocated.
4495         * gdbarch.sh: Changes to effect the following:
4496         * gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
4497         declarations and definitions.
4498         (check_gdbarch_data): New function, and declaration.
4499         (gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
4500         zero is good enough.
4501         (free_gdbarch_data): Tolerate a null data pointer.  Free only
4502         those data items gdbarch->data actually has allocated.
4503         (set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
4504         (gdbarch_update_p): No need to call init_gdbarch_data.
4505
4506 2001-06-01  Kevin Buettner  <kevinb@redhat.com>
4507
4508         * ia64-tdep.c (is_float_or_hfa_type_recurse): Call check_typedef()
4509         on types that we wish to recurse on.
4510         (slot_alignment_is_next_even): New function.
4511         (ia64_push_arguments): Call slot_alignment_is_next_even() to
4512         examine the type in order to decide if it's necessary to skip
4513         an odd slot.
4514
4515 2001-06-01  Michael Snyder  <msnyder@redhat.com>
4516
4517         * thread.c (delete_step_resume_breakpoint): New function.
4518         Maintain internal consistency of the thread list while deleting
4519         a step_resume_breakpoint.
4520         * gdbthread.h (delete_step_resume_breakpoint): Export.
4521         * breakpoint.c (bpstat_find_step_resume_breakpoint):
4522         Make thread-aware: don't return a step_resume_breakpoint 
4523         for the wrong thread.
4524         * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
4525         instead of delete_breakpoint_current_contents.
4526         (fetch_inferior_event): Ditto.
4527         (handle_inferior_event): Call delete_step_resume_breakpoint
4528         instead of delete_breakpoint.
4529         * infrun.c (handle_inferior_event): After singlestepping over a
4530         thread-specific breakpoint, use currently_stepping() to decide
4531         whether to step or continue.
4532
4533 2001-06-01  Jim Blandy  <jimb@redhat.com>
4534
4535         * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
4536         these static --- there's no reason other files should use these.
4537
4538         * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
4539         Fix memory leak.
4540
4541         * partial-stab.h: New complaint: function_outside_compilation_unit.
4542         (case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
4543         complain, and don't try to set pst's start address.
4544
4545 2001-05-31  Kevin Buettner  <kevinb@redhat.com>
4546
4547         * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET):  Revise to
4548         match the location at which the kernel is placing the sigcontext
4549         struct.
4550
4551         * ia64-tdep.c (max_skip_non_prologue_insns): New static global.
4552         (refine_prologue_limit): New function.
4553         (examine_prologue):  Further limit number of instructions
4554         scanned by calling refine_prologue_limit().  Revise way in
4555         which the end of prologue address is computed for frameless
4556         functions.
4557
4558 2001-05-29  Christopher Faylor  <cgf@redhat.com>
4559
4560         * partial-stab.h: Revert previous patch.
4561
4562 2001-05-29  Christopher Faylor  <cgf@redhat.com>
4563
4564         * partial-stab.h: Consistently guard against pst being NULL.
4565
4566 2001-05-29  Alexandre Oliva  <aoliva@redhat.com>
4567
4568         * symfile.c (compare_psymbols, compare_symbols): Declare using
4569         PTR, as in the definition.
4570         * minsyms.c (compare_minimal_symbols): Likewise.
4571         * coffread.c (find_targ_sec): Likewise.
4572         * elfread.c (free_elfinfo, elf_locate_sections): Likewise.
4573         * mipsread.c (alphacoff_locate_sections): Likewise.
4574         * mdebugread.c (compare_blocks): Likewise.
4575
4576 2001-05-25  Nick Duffek  <nsd@redhat.com>
4577
4578         * solib.c (update_solib_list): Move target_resize_to_sections()
4579         into solib_map_sections() loop.
4580         (info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
4581         bfd_get_arch_size() fails.
4582
4583 2001-05-25  Nick Duffek  <nsd@redhat.com>
4584
4585         * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
4586         solib-osf.o.
4587         * config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
4588         with solib-osf.o and solib.o.
4589         * config/alpha/alpha-osf2.mh: Likewise.
4590         * config/alpha/alpha-osf3.mh: Likewise.
4591         * solib-osf.c: New file, renamed and largely rewritten from
4592         osfsolib.c.
4593
4594 2001-05-25  Michael Snyder  <msnyder@redhat.com>
4595
4596         * lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
4597         to consume the SIGSTOP generated by PTRACE_ATTACH.
4598         (stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
4599         try again to get the SIGSTOP event.
4600         (lin_lwp_wait): Resume all threads when ignoring a signal.
4601         This will insure that newly attached threads get resumed.
4602         * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
4603         * remote.c (remote_write_bytes): Update 'p' packet pointer.
4604
4605 2001-05-25  Jim Blandy  <jimb@redhat.com>
4606
4607         * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
4608         VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
4609         useful value, then we should fix that instead.
4610
4611 2001-05-24  Nick Duffek  <nsd@redhat.com>
4612
4613         * solist.h (struct so_list): Document the requirement that
4614         current_sos initialize some fields to 0.
4615
4616 2001-05-24  Mark Kettenis  <kettenis@gnu.org>
4617
4618         * gnu-nat.c: Include <ctype.h>.
4619         (gnu_pid_to_exec_file): Add PID parameter.
4620         (set_sig_thread_cmd): Use PIDGET on return value from
4621         thread_id_to_pid.
4622         (proc_string): Use MERGEPID to construct argument to
4623         pid_to_thread_id.
4624
4625 2001-05-22  Kevin Buettner  <kevinb@redhat.com>
4626
4627         * breakpoint.c (breakpoint_address_is_meaningful): New function.
4628         (check_duplicates): Don't compare non-meaningful addresses.
4629
4630 2001-05-22  Michael Snyder  <msnyder@redhat.com>
4631
4632         * thread-db.c: Allow for defunct zombie threads.        
4633         (attach_thread): Do not attempt to attach zombie thread.
4634         (thread_db_thread_alive): Return false for defunct zombie thread.
4635         (find_new_threads_callback): Don't add defunct zombie thread to list.
4636
4637 2001-05-22  Jim Blandy  <jimb@redhat.com>
4638
4639         Add support for the GNU V3 C++ ABI.
4640         (Includes changes by Dan Berlin.)
4641
4642         * gnu-v3-abi.c: New file.
4643         * minsyms.c: #include "value.h" and "cp-abi.h".
4644         (install_minimal_symbols): Check the minimal symbol table for
4645         symbols that look mangled in the V3 style, and select the V3 ABI
4646         if we find any.
4647         * Makefile.in (SFILES): Add gnu-v3-abi.c.
4648         (COMMON_OBS): Add gnu-v3-abi.o.
4649         (gnu-v3-abi.o): Add new rule.
4650         (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
4651
4652 2001-05-21  Jim Blandy  <jimb@redhat.com>
4653
4654         * values.c (value_primitive_field): If we're extracting a base
4655         class, then the type of the result should be the base class being
4656         extracted, not the type of which it is a base class.
4657
4658         * value.h (struct value): Doc fix, and rearrange members to place
4659         them near their explanations.
4660
4661 2001-05-21  Michael Snyder  <msnyder@redhat.com>
4662
4663         * remote.c (remote_async_wait): Added new variable fieldsize.
4664         Add fieldsize (return value of hex2bin) to string pointer p.
4665
4666 2001-05-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4667
4668         * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
4669         (m68hc11_analyze_instruction): Update the pc correctly.
4670         (m68hc11_guess_from_prologue): Take into account the stack correction
4671         for the saving address.
4672
4673 2001-05-07  Daniel Berlin  <dan@cgsoftware.com>
4674
4675         Changes by Jim Ingham:
4676         
4677         * values.c (value_change_enclosing_type): New function.  If the
4678         new enclosing type is larger than the old one, we need to allocate
4679         more space.
4680         * value.h: Add value_change_enclosing_type prototype.
4681         * valops.c (value_cast): Use it.
4682         (value_assign): Use it.
4683         (value_addr): Use it.
4684         (value_ind): Use it.
4685         (value_full_object): Use it.
4686         
4687 2001-05-07  Daniel Berlin  <dan@cgsoftware.com>
4688
4689         * values.c (value_static_field): Handle static fields that have a
4690         constant value.
4691
4692 2001-05-17  Michael Snyder  <msnyder@redhat.com>
4693
4694         * blockframe.c (create_new_frame): Zero all the fields via memset,
4695         rather than zeroing them one by one.
4696
4697 2001-05-17  Eli Zaretskii  <eliz@is.elta.co.il>
4698
4699         * top.c (user_args): Remove unused declaration.
4700
4701 2001-05-16  Michael Snyder  <msnyder@redhat.com>
4702
4703         * infcmd.c (do_registers_info): Move alloca outside of loop.
4704
4705 2001-05-15  John S Kallal  <jskallal@home.com>
4706
4707         * remote.c (remote_wait): Added new variable fieldsize.
4708         Add fieldsize (return value of hex2bin) to string pointer p.
4709
4710 2001-05-15  Mark Kettenis  <kettenis@gnu.org>
4711
4712         * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
4713         info.bfd_arch_info.
4714
4715 2001-05-14  Kevin Buettner  <kevinb@redhat.com>
4716
4717         * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
4718         Adjust format strings for printing LWPs to account for the fact
4719         that the type returned by GET_LWP() is now a long instead of an
4720         int.
4721
4722 2001-05-14  Kevin Buettner  <kevinb@redhat.com>
4723
4724         * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
4725         (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
4726         (ptid_get_tid, ptid_equal): New function declarations.
4727         * infrun.c (null_ptid, minus_one_ptid): New variables.
4728         (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
4729         (ptid_get_tid, ptid_equal): New functions.
4730         (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
4731         inferior_ptid, and target_last_wait_ptid.
4732
4733         * defs.h (ptid_t): Redefine to be a struct rather than an int.
4734         (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
4735         (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
4736         new ptid accessors and constructor.
4737
4738         * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
4739         MKLID, MKTID, ISTID): Provide new definitions for these macros.
4740         The old macros are retained, but disabled via #if 0 in order
4741         to aid in future restructuring.  See FIXME.
4742
4743         * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
4744         * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
4745         * infptrace.c (PIDGET, TIDGET): Likewise.
4746         * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4747         * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4748         * proc-service.c (MERGEPID): Likewise.
4749         * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
4750         * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4751         * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4752         * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
4753         Likewise.
4754         * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
4755         Likewise.
4756
4757         * lin-lwp.c (THREAD_FLAG): Delete macro definition.
4758         (GET_LWP): Redefine in terms of ptid_get_lwp().
4759         (GET_PID): Redefine in terms of ptid_get_pid().
4760         (is_lwp): Redefine without the need for THREAD_FLAG.
4761         (BUILD_LWP): Redefine in terms of ptid_build().
4762         * lin-thread.c (THREAD_FLAG): Delete macro definition.
4763         (GET_LWP): Redefine in terms of ptid_get_lwp().
4764         (GET_PID): Redefine in terms of ptid_get_pid().
4765         (GET_THREAD): Redefine in terms of ptid_get_tid().
4766         (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
4767         (is_lwp, is_thread): Redefine.
4768         (linux_child_wait, check_all_signal_numbers)
4769         (linuxthreads_discard_global_state, attach_thread): Declare these
4770         functions to squash warnings about missing declarations.
4771         * sol-thread.c (THREAD_FLAG): Delete macro definition.
4772         (GET_PID): Redefine in terms of ptid_get_pid().
4773         (GET_LWP): Redefine in terms of ptid_get_lwp().
4774         (GET_THREAD): Redefine in terms of ptid_get_tid().
4775         (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
4776         (is_lwp, is_thread): Redefine.
4777         * thread-db.c (THREAD_FLAG): Delete macro definition.
4778         (GET_PID): Redefine in terms of ptid_get_pid().
4779         (GET_LWP): Redefine in terms of ptid_get_lwp().
4780         (GET_THREAD): Redefine in terms of ptid_get_tid().
4781         (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
4782         (is_lwp, is_thread): Redefine.
4783
4784         * corelow.c (add_to_thread_list, get_core_register_section):
4785         Eliminate hacks needed to prevent regressions when inferior_ptid
4786         wasn't wide enough to hold the core file thread id in the pid
4787         component of inferior_ptid.
4788
4789 2001-05-14  Michael Snyder  <msnyder@redhat.com>
4790
4791         * remote.c (hex2bin):   Make first argument const.
4792         Require explicit count, don't accept null-terminated str.
4793         (remote_resume, remote_async_resume): White space fix-up.
4794         (remote_write_bytes): Set nr_bytes to return value of bin2hex.
4795
4796 2001-05-13  Mark Kettenis  <kettenis@gnu.org>
4797
4798         * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
4799         basename (NAME).  The FreeBSD basename returns a pointer to a
4800         static buffer, even if it's simply returning a string identical to
4801         its argument.
4802         (lookup_partial_symtab): Likewise.
4803
4804 2001-05-14  Michael Snyder  <msnyder@redhat.com>
4805
4806         * solib.c, solib.h: Add comment for function no_shared_libraries.
4807         
4808 2001-05-14  Kevin Buettner  <kevinb@redhat.com>
4809
4810         * solib.h (no_shared_libraries): Make declaration match definition
4811         in solib.c.
4812
4813 2001-05-14  Andrew Cagney  <ac131313@redhat.com>
4814
4815         * remote.c (remote_write_bytes): Set nr_bytes before returning it.
4816         * solib.h (no_shared_libraries): Declare.
4817
4818 2001-05-12  Andrew Cagney  <ac131313@redhat.com>
4819
4820         * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
4821         (gdbarch_update_p): Rewrite logic filling in INFO struct.  Use
4822         user specified values when available.
4823         * rs6000-tdep.c (rs6000_gdbarch_init): Update.  Get the
4824         architecture from info.bfd_arch_info.
4825         * gdbarch.c, gdbarch.h: Regenerate.
4826
4827 2001-05-12  Fernando Nasser  <fnasser@redhat.com>
4828
4829         * remote-e7000.c (e7000_open): Check for bad baud rate.
4830         * remote-st.c (st2000_open): Ditto.
4831
4832 2001-05-11  Jim Blandy  <jimb@redhat.com>
4833
4834         * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
4835         and ui_out_tuple_end instead of ui_out_list_begin and
4836         ui_out_list_end.
4837
4838         * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
4839         dependencies.  Reorder dependencies to match #includes in file,
4840         for easier verification.
4841         
4842 Fri May 11 13:32:50 2001  Andrew Cagney  <cagney@b1.cygnus.com>
4843
4844         * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
4845         make_cleanup_ui_out_list_end with ui_out_tuple_begin,
4846         ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
4847         * cli/cli-setshow.c: Ditto.
4848         * printcmd.c: Ditto.
4849         * stack.c: Ditto.
4850
4851         * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
4852         * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
4853         (ui_out_tuple_begin): New function.
4854         (ui_out_tuple_end): New function.
4855         (ui_out_tuple_begin_end): New function.
4856         (make_cleanup_ui_out_list_begin_end): Replace
4857         make_cleanup_ui_out_list_end function.
4858         * ui-out.h (ui_out_list_begin): Update declaration.
4859         (make_cleanup_ui_out_list_begin_end): Replace
4860         make_cleanup_ui_out_list_end declaration.
4861         (ui_out_tuple_begin, ui_out_tuple_end): Declare.
4862         (ui_out_tuple_begin_end): Declare.
4863
4864 2001-05-11  Jim Blandy  <jimb@redhat.com>
4865
4866         * gnu-v2-abi.c: Don't #include "gdb_regex.h".  We don't use it.
4867
4868 2001-05-11  Andrew Cagney  <ac131313@redhat.com>
4869
4870         From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
4871         * config/pa/tm-hppa.h: Remove trigraph.
4872         * hp-symtab-read.c (hpread_type_translate): Provide return value.
4873         (hpread_read_struct_type): Remove trigraph. Add parameter in
4874         `warning'.
4875         (hpread_read_array_type): Provide return value.
4876         (hpread_type_lookup): Avoid ambiguous `else'. Provide return
4877         value.
4878         * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
4879         trigraph.
4880
4881 2001-05-11  Jim Blandy  <jimb@redhat.com>
4882
4883         * mips-tdep.c (mips_store_return_value,
4884         mips_extract_return_value): Pass arguments to
4885         return_value_location in the proper order.
4886
4887 2001-05-11  Andrew Cagney  <ac131313@redhat.com>
4888
4889         * Makefile.in (VERSION): Delete.  Moved to file ``version.in''.
4890         (version.c): Depends on file ``version.in''.  Extract version
4891         number from ``version.in'' file.
4892         (clean mostlyclean): Update.
4893         * version.in: New file.
4894         * NEWS: Update.
4895         
4896 2001-05-11  Kevin Buettner  <kevinb@redhat.com>
4897
4898         * breakpoint.c (set_raw_breakpoint): Add new parameter
4899         representing the breakpoint's type.  Adjust all callers.
4900         (create_longjmp_breakpoint, create_temp_exception_breakpoint)
4901         (create_thread_event_breakpoint): Don't test for zero return
4902         value from set_raw_breakpoint().  It can never be zero.
4903         (create_exception_catchpoint, watch_command_1): Move logic
4904         which calculates the breakpoint type prior to the call to
4905         set_raw_breakpoint().
4906
4907 2001-05-11  Fernando Nasser  <fnasser@redhat.com>
4908
4909         * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
4910         (hardwire_setbaudrate): Set errno to EINVAL and return with error
4911         if the conversion of the baud rate to code fails.
4912
4913 2001-05-10  Andrew Cagney  <ac131313@redhat.com>
4914
4915         * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
4916         * ui-out.c (struct ui_out_end_cleanup_data): Define.
4917         (do_cleanup_end): New function.  Replace do_list_end.
4918         (make_cleanup_ui_out_end): New function.
4919         (make_cleanup_ui_out_begin_end): New function.
4920         (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
4921
4922 2001-05-10  Elena Zannoni  <ezannoni@redhat.com>
4923
4924         * MAINTAINERS: Declare xcoffread.c open to all maintainers,
4925         and make Kevin Buettner (kevinb@redhat.com) the reference person.
4926
4927 2001-05-10  Elena Zannoni  <ezannoni@redhat.com>
4928
4929         * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
4930
4931 2001-05-10  Fernando Nasser  <fnasser@redhat.com>
4932
4933         * MAINTAINERS: Add testsuite subdirectory co-maintainers.
4934
4935 Thu May 10 16:26:47 2001  Andrew Cagney  <cagney@b1.cygnus.com>
4936
4937         * Makefile.in (mi-main.o): Compile with -Werror.
4938
4939 2001-05-10  Michael Snyder  <msnyder@redhat.com>
4940
4941         * remote.c (remote_open_1): Call no_shared_libraries, so that
4942         symbols for shared libraries can be reloaded per session.
4943         (remote_async_open_1): Ditto.
4944         * remote.c (bin2hex, hex2bin): New functions.  Factor out these
4945         two conversions which are coded for repeatedly in this module.
4946         (remote_threads_extra_info, remote_wait, remote_async_wait, 
4947         store_register_using_P, remote_store_registers, remote_write_bytes,
4948         remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
4949         of coding the conversions inline.
4950         (fromhex): Not exported, change from extern to static.
4951
4952 2001-05-10  Andrew Cagney  <ac131313@redhat.com>
4953
4954         * arch-utils.c (initialize_current_architecture): Delete obsolete
4955         ``info architecture'' command.
4956         (info_architecture): Delete function.
4957
4958 2001-05-10  Andrew Cagney  <ac131313@redhat.com>
4959
4960         * TODO (5.1, 5.2): Update.
4961
4962 2001-05-09  Andrew Cagney  <ac131313@redhat.com>
4963
4964         * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
4965         stuff.
4966
4967 2001-05-10  Keith Seitz  <keiths@cygnus.com>
4968
4969         * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
4970         and gdbtk-stack.o.
4971         (SUBDIR_GDBTK_SRCS): Ditto for the sources.
4972         (gdbtk-bp.o): New rule.
4973         (gdbtk-register.o): New rule.
4974         (gdbtk-stack.o): New rule.
4975         (gdbtk-cmds.o): Update dependencies.
4976         (gdbtk.o): Ditto.
4977         (gdbtk-hooks.o): Ditto.
4978         (gdbtk-varobj.o): Ditto.
4979
4980 2001-05-10  Fernando Nasser  <fnasser@redhat.com>
4981
4982         * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
4983         variables, not just unregister them.
4984
4985 2001-05-10  Fernando Nasser  <fnasser@redhat.com>
4986
4987         * varobj.c (c_number_of_children): Check for target type of void*,
4988         not the target type name.  Allow dereferencing char*.
4989
4990 2001-05-10  Fernando Nasser  <fnasser@redhat.com>
4991
4992         * symfile.c (symbol_file_add_main_1): New static function. 
4993         Passes the flags arguments to  symbol_file_add() and takes care
4994         of any necessary reinitializations.
4995         (symbol_file_command): Call symbol_file_add_main_1() instead of
4996         symbol_file_add().  
4997         (symbol_file_add_main): Ditto.
4998
4999 2001-05-09  Kevin Buettner  <kevinb@redhat.com>
5000
5001         * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
5002         string change in 2001-05-03 changes.
5003         (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
5004         changes.
5005
5006 2001-05-09  Kevin Buettner  <kevinb@redhat.com>
5007
5008         * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
5009         component from inferior_ptid.
5010         (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
5011         ptid.
5012
5013 2001-05-09  Elena Zannoni  <ezannoni@redhat.com>
5014
5015         * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
5016         conditional for help with connections through parallel ports,
5017         given that the actual code for downloading through a parallel port
5018         is not conditionalized.
5019
5020         * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
5021         unmaintaned, and probably on its way to obsolescence.
5022         
5023 2001-05-09  Mark Kettenis  <kettenis@gnu.org>
5024
5025         * i386-tdep.c (i386_frame_saved_pc): New function.
5026         * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
5027         i386_frame_saved_pc.
5028         (i386_frame_saved_pc): New prototype.
5029
5030         * i386-tdep.c (i386_register_virtual_type): New function.
5031         (i386_register_convertible): New function.
5032         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
5033         of i386_register_virtual_type.
5034         (REGISTER_CONVERTIBLE): Redefine in terms of
5035         i386_register_convertible.
5036         (i386_register_virtual_type, i386_register_convertible): New
5037         prototypes.
5038
5039 2001-05-08  Jim Blandy  <jimb@redhat.com>
5040
5041         * Makefile.in (mn10300-tdep.o): New rule.
5042
5043         * Makefile.in (gdb_string_h): Define.  Use it throughout.
5044         Some rules were already using this, even though it isn't defined.
5045
5046         * Makefile.in (obstack_h, target_h): Define; these are already
5047         used elsewhere, but have been expanding to the empty string.
5048         (memattr_h): Define; needed by target_h.
5049
5050         * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
5051         static.  (This was accidentally omitted from the earlier patch.)
5052         
5053         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
5054         (mn10300_gdbarch_init): Register it as the architecture's
5055         dwarf2_reg_to_regnum method.
5056
5057         Correct and expand handling of `movm' instruction, and register
5058         saves in general.
5059         * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
5060         MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
5061         (enum movm_register_bits): New enum.
5062         * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
5063         bits, not hex literals.  Handle the `other', `exreg0', and
5064         `exother' bits.  Correct handling of `exreg1': it saves r4, r5,
5065         r6, and r7, not r2, r3, r4, and r5.
5066         (saved_regs_size): New function.
5067         (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
5068         of computing the same thing inline, incorrectly.
5069
5070         * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
5071         dummy_breakpoint_offset; it's zero.
5072
5073         * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
5074         stuff out into mn10300_pop_frame_regular, and use
5075         generic_pop_current_frame.  This lets us share code, and also
5076         makes this function's prototype match that expected by gdbarch.
5077         Make this function static.
5078         (mn10300_pop_frame_regular): New function.
5079         (mn10300_gdbarch_init): Register mn10300_pop_frame as the
5080         gdbarch's pop_frame method.
5081         * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
5082         (mn10300_pop_frame): Delete declaration.
5083
5084         * mn10300-tdep.c (mn10300_saved_pc_after_call,
5085         mn10300_extract_return_value,
5086         mn10300_extract_struct_value_address, mn10300_store_return_value,
5087         mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
5088         mn10300_frame_chain, mn10300_skip_prologue,
5089         mn10300_push_arguments, mn10300_push_return_address,
5090         mn10300_store_struct_return, mn10300_frame_saved_pc,
5091         mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
5092         Make these functions static; they should only be visible to the
5093         outside world as gdbarch methods.
5094
5095         * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
5096         unused declaration.
5097         
5098         * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
5099         in some rational order.
5100
5101         * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
5102         generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
5103
5104         Use gdbarch for most target parameters for the MN10300, rather
5105         than the tm-*.h file.
5106         * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
5107         REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
5108         FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
5109         SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
5110         FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
5111         EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
5112         STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
5113         FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5114         FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
5115         CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5116         CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
5117         TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5118         SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
5119         REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
5120         Delete definitions.  We register gdbarch methods for these now.
5121         (struct frame_info, struct type, struct value): Delete forward
5122         declarations of these types; they're no longer necessary, since we
5123         don't have function declarations here any more.
5124         * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
5125         some default gdbarch methods.
5126         (mn10300_store_struct_return): Return void, as expected by
5127         gdbarch.
5128         (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
5129         as expected by gdbarch.
5130         (mn10300_frame_init_saved_regs): Provide dummy definition for
5131         this, as required by gdbarch.
5132         (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
5133         by gdbarch.  Register gdbarch methods or values for all the stuff
5134         removed from tm-10300.h, listed above.
5135
5136 2001-05-08  Andrew Cagney  <ac131313@redhat.com>
5137
5138         * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
5139         cli_list_end.
5140         (cli_ui_out_impl): Update.
5141
5142         * ui-out.c (default_begin, default_end): Replace
5143         default_list_begin and default_list_end.
5144         (default_ui_out_impl): Update.
5145         (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
5146         (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
5147         ui_out_list_end.
5148         (ui_out_list_begin, ui_out_list_end): New.  Compatibility
5149         functions.
5150         (struct ui_out_level): Add field type.
5151         (push_level, pop_level): Update.  Add type parameter.
5152
5153         * ui-out.h (enum ui_out_type): Declare.
5154         (ui_out_begin, ui_out_end): Declare.
5155         (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
5156         and list_end_ftype.
5157         (struct ui_out_impl): Update.
5158
5159 2001-05-07  Andrew Cagney  <ac131313@redhat.com>
5160
5161         * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
5162         ``list_flag'' to ``depth''.
5163         * ui-out.c (default_list_begin, default_list_end): Update.
5164         (uo_list_begin, uo_list_end): Update.
5165         (MAX_UI_OUT_LEVELS): Define.
5166         (struct ui_out_level): Define.
5167         (top-level): Include "gdb_assert.h".
5168         (struct ui_out): Add fields ``level'' and ``levels''.  Delete
5169         fields ``list_flag'' and ``field_count''.
5170         (ui_out_new): Update.
5171         (verify_field_proper_position): Update.
5172         (current_level, push_level, pop_level): New functions.
5173         (ui_out_list_begin): Use push_level.
5174         (ui_out_list_end): Use pop_level.
5175         (ui_out_field_int): Use current_level.
5176         (ui_out_field_skip): Ditto.
5177         (ui_out_field_fmt): Ditto.
5178
5179 2001-05-08  Michael Snyder  <msnyder@redhat.com>
5180
5181         * language.c (longest_local_hex_string_custom): Strlen test is 
5182         inverted -- reverse the sense of the test.
5183
5184 2001-05-08  Mark Kettenis  <kettenis@gnu.org>
5185
5186         * config/i386/tm-i386v.h (struct frame_info, struct
5187         frame_saved_regs):  Remove declarations.
5188         (i386_frame_num_args): Remove prototype.
5189
5190 2001-05-07  Andrew Cagney  <ac131313@redhat.com>
5191
5192         * MAINTAINERS: I'm no longer actively maintaining the mn10300
5193         target.
5194
5195 2001-05-04  Andrew Cagney  <ac131313@redhat.com>
5196  
5197         * main.c (captured_main): Delete #ifndef _WIN32 conditional for
5198         WinGDB.
5199  
5200 2001-05-06  Kevin Buettner  <kevinb@redhat.com>
5201
5202         * inferior.h (save_inferior_ptid): Declare.
5203         * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
5204
5205         * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
5206         Delete these functions.
5207         * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5208         * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5209         * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
5210         Likewise.
5211         * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
5212         Likewise.
5213         * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5214         * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5215
5216         * somsolib.c (reset_inferior_ptid): Delete.
5217         (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
5218         build the cleanup struct.
5219
5220         * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5221         a cleanup to save/restore inferior_ptid.
5222
5223 2001-05-06  Mark Kettenis  <kettenis@gnu.org>
5224
5225         Implement attach/detach for multi-threaded programs on Linux.
5226         * thread-db.c (keep_thread_db): Adjust comment.
5227         (deactivate_target): Removed.
5228         (thread_db_new_objfile): Don't call deactivate_target.  Implement
5229         guts of deactivate_target inline instead.
5230         (attach_thread): Call ATTACH_LWP unconditionally if defined.
5231         (thread_db_attach): New function.
5232         (thread_db_detach): Don't call deactivate_target.  Do necessary
5233         cleanup inline instead.  Set inferior_ptid to LWP corresponding to
5234         the current user-level thread.
5235         (thread_db_kill): Set inferior_ptid to LWP corresponding to the
5236         current user-level thread.
5237         (thread_db_create_inferior): Deactivate target vector if
5238         KEEP_THREAD_DB is zero.
5239         (thread_db_mourn_inferior): Don't call deactivate_target.  Do
5240         necessary cleanup inline instead.
5241         (init_thread_db_ops): Initialize to_attach field to
5242         thread_db_attach.
5243         * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
5244         (stop_wait_callback): Add prototype.
5245         (init_lwp_list): Add comment about when to re-initialize the LWP
5246         list.
5247         (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
5248         Avoid adding publicates to the LWP list.  Only mark an LWP as
5249         signalled if it doesn't correspond to a cloned process.
5250         (lin_lwp_attach): Add initial process to the LWP list.  Make sure
5251         it's stopped and fake a SIGSTOP.
5252         (detach_callback): New function.
5253         (lin_lwp_detach): Implement.
5254         (lin_lwp_create_inferior): Don't re-initialize LWP list here.
5255         Call child_ops.to_create_inferior directly instead of via
5256         target_beneath local.
5257         (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
5258         directly instead of via target_beneath local.
5259
5260 2001-05-06  Eli Zaretskii  <eliz@is.elta.co.il>
5261
5262         * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
5263         instead of non-portable search for `/'.  Use FILENAME_CMP instead
5264         of STREQ, to account for case-insensitive filesystems.
5265         (top-level): #include "filenames.h".
5266
5267 2001-05-05  Jim Blandy  <jimb@redhat.com>
5268
5269         * breakpoint.c (check_duplicates): Use the breakpoint's type, not
5270         its address, to decide whether it's a watchpoint or not.  Zero
5271         is a valid code address.
5272         (update_breakpoints_after_exec): Admonishing comments.
5273         * breakpoint.h (struct breakpoint): Doc fixes.
5274
5275         * breakpoint.c (check_duplicates): Take a breakpoint object as an
5276         argument, rather than an address and section.  All callers changed.
5277
5278 2001-05-03  Kevin Buettner  <kevinb@redhat.com>
5279
5280         * defs.h (ptid_t): New typedef.
5281         (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
5282
5283         * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
5284         blockframe.c, breakpoint.c, breakpoint.h,
5285         config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
5286         config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
5287         config/mips/nm-irix4.h, config/mips/nm-irix5.h,
5288         config/pa/nm-hppah.h, config/pa/tm-hppa.h,
5289         config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
5290         corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
5291         dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
5292         hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
5293         hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
5294         i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
5295         infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
5296         inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
5297         linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
5298         m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
5299         mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
5300         ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
5301         regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
5302         remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
5303         remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5304         remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
5305         remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
5306         solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
5307         standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
5308         target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
5309         uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
5310         (inferior_pid):  Rename to inferior_ptid everywhere - even in
5311         comments and obsolete ports.  In cases where this variable
5312         really is supposed to be used as a process id, use PIDGET() to
5313         extract the process id component from inferior_ptid.  The
5314         other cases, either involving other variables whose types had
5315         to be changed or functions whose signatures had to changed
5316         are listed separately below.
5317
5318         * arm-linux-nat.c (get_thread_id): Change type of argument
5319         representing a combined process/thread id from ``int'' to
5320         ``ptid_t''.  Also change parameter name to ptid.
5321         * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
5322         * corelow.c (core_file_thread_alive): Likewise.
5323         * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
5324         * defs.h (*target_wait_hook): Likewise.
5325         * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
5326         (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
5327         * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
5328         (gnu_resume): Likewise.
5329         * go32-nat.c (go32_wait, go32_resume): Likewise.
5330         * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
5331         * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
5332         * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
5333         (hppa_pid_or_tid_to_str, child_post_startup_inferior)
5334         (child_thread_alive): Likewise.
5335         * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
5336         (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
5337         * i386-linux-nat.c (child_resume): Likewise.
5338         * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
5339         (store_debug_register, fetch_debug_register_pair)
5340         (store_debug_register_pair, ia64_linux_insert_watchpoint)
5341         (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
5342         Likewise.
5343         * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
5344         * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
5345         (generic_target_write_pc, ptrace_wait, child_resume)
5346         (get_last_target_status): Likewise.
5347         * infptrace.c (ptrace_wait, child_resume): Likewise.
5348         * inftarg.c (child_wait, child_post_wait, child_thread_live)
5349         (child_pid_to_str): Likewise.
5350         * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
5351         (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
5352         * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
5353         (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
5354         (lin_lwp_pid_to_str): Likewise.
5355         * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
5356         (thread_db_resume, thread_db_wait): Likewise.
5357         * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
5358         (linuxthreads_resume, linuxthreads_wait): Likewise.
5359         * lynx-nat.c (child_wait, child_thread_alive, child_resume)
5360         (child_pid_to_str): Likewise.
5361         * m3-nat.c (mach_really_wait, m3_resume): Likewise.
5362         * mac-nat.c (child_wait, child_resume): Likewise.
5363         * mips-tdep.c (mips_read_pc): Likewise.
5364         * monitor.c (monitor_wait, monitor_resume): Likewise.
5365         * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
5366         * ppc-bdm.c (bdm_ppc_wait): Likewise.
5367         * procfs.c (do_attach, procfs_wait, procfs_resume)
5368         (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
5369         (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
5370         (procfs_find_LDT_entry): Likewise.
5371         * regcache.c (read_register_pid, read_signed_register_pid)
5372         (write_register_pid, generic_target_read_pc, read_pc_pid)
5373         (generic_target_write_pc, write_pc_pid): Likewise.
5374         * regcache.h (read_register_pid, read_signed_register_pid)
5375         (write_register_pid): Likewise.
5376         * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
5377         * remote-array.c (array_wait, array_resume): Likewise.
5378         * remote-bug.c (bug_wait, bug_resume): Likewise.
5379         * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
5380         * remote-eb.c (eb_wait, eb_resume): Likewise.
5381         * remote-es.c (es1800_wait, es1800_resume): Likewise.
5382         * remote-mips.c (mips_wait, mips_resume): Likewise.
5383         * remote-mm.c (mm_wait, mm_resume): Likewise.
5384         * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
5385         * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
5386         * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
5387         * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
5388         * remote-sds.c (sds_wait, sds_resume): Likewise.
5389         * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
5390         * remote-st.c (st2000_wait, st2000_resume): Likewise.
5391         * remote-udi.c (udi_wait, udi_resume): Likewise.
5392         * remote-vx.c (vx_wait, vx_resume): Likewise.
5393         * remote.c (remote_current_thread, remote_resume, remote_wait)
5394         (remote_async_resume, remote_async_wait, remote_cisco_wait)
5395         (remote_thread_alive): Likewise.
5396         * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
5397         (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
5398         (solaris_pid_to_str): Likewise.
5399         * symm-nat.c (child_wait, child_resume): Likewise.
5400         * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
5401         (debug_to_notice_signals, debug_to_thread_alive)
5402         (normal_target_post_startup_inferior, normal_pid_to_str)
5403         (debug_to_post_startup_inferior): Likewise.
5404         * target.h (to_resume, to_wait, to_post_wait)
5405         (to_post_startup_inferior, to_notice_signals, to_thread_alive)
5406         (to_pid_to_str [all in struct target_ops]): Likewise.
5407         (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
5408         * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
5409         (attach_thread, detach_thread, thread_db_resume, check_event)
5410         (thread_db_post_startup_inferior, thread_db_thread_alive)
5411         (thread_db_pid_to_str): Likewise.
5412         * thread.c (add_thread, delete_thread, find_thread_pid)
5413         (pid_to_thread_id, in_thread_list, load_infrun_state)
5414         (save_infrun_state, switch_to_thread, restore_current_thread)
5415         (make_cleanup_restore_current_thread): Likewise.
5416         * top.c (target_wait_hook): Likewise.
5417         * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
5418         (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
5419         (uw_thread_pid_to_str): Likewise.
5420         * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
5421         * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
5422         (cywin_pid_to_str): Likewise.
5423         * wince.c (child_wait, child_resume, win32_child_thread_alive):
5424         Likewise.
5425         * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
5426         * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
5427         * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5428         * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5429         * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
5430         * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
5431         (procfs_set_watchpoint): Likewise.
5432         * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5433         * config/i386/nm-ptx4.h (child_wait): Likewise.
5434         * config/i386/nm-symmetry.h (child_wait): Likewise.
5435         * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
5436         * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
5437         (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
5438         (lin_lwp_attach_lwp): Likewise.
5439         * config/mips/nm-irix4.h, config/mips/nm-irix5.h
5440         (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
5441         * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
5442         (hppa_pid_or_tid_to_str): Likewise.
5443         * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
5444         * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5445         * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
5446         (procfs_set_watchpoint): Likewise.
5447
5448         * gdbthread.h (thread_id_to_pid): Change return type which
5449         represents a combined process/thread id from ``int'' to
5450         ``ptid_t''.
5451         * gnu-nat.c (gnu_wait): Likewise.
5452         * go32-nat.c (go32_wait): Likewise.
5453         * hpux-thread.c (hpux_thread_wait): Likewise.
5454         * inferior.h (procfs_first_available): Likewise.
5455         * inftarg.c (child_wait): Likewise.
5456         * infttrace.c (ptrace_wait): Likewise.
5457         * lin-lwp.c (lin_lwp_wait): Likewise.
5458         * lin-thread.c (thread_db_wait): Likewise.
5459         * linux-thread.c (linuxthreads_wait): Likewise.
5460         * lynx-nat.c (child_wait): Likewise.
5461         * m3-nat.c (mach_really_wait): Likewise.
5462         * mac-nat.c (child_wait): Likewise.
5463         * monitor.c (monitor_wait): Likewise.
5464         * ppc-bdm.c (bdm_ppc_wait): Likewise.
5465         * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
5466         * remote-adapt.c (adapt_wait): Likewise.
5467         * remote-array.c (array_wait): Likewise.
5468         * remote-bug.c (bug_wait): Likewise.
5469         * remote-e7000.c (e7000_wait): Likewise.
5470         * remote-eb.c (eb_wait): Likewise.
5471         * remote-es.c (es1800_wait): Likewise.
5472         * remote-mips.c (mips_wait): Likewise.
5473         * remote-mm.c (mm_wait): Likewise.
5474         * remote-nindy.c (nindy_wait): Likewise.
5475         * remote-os9k (rombug_wait): Likewise.
5476         * remote-rdi.c (arm_rdi_wait): Likewise.
5477         * remote-rdp.c (remote_rdp_wait): Likewise.
5478         * remote-sds.c (sds_wait): Likewise.
5479         * remote-sim.c (gdbsim_wait): Likewise.
5480         * remote-st.c (st2000_wait): Likewise.
5481         * remote-udi.c (udi_wait): Likewise.
5482         * remote-vx.c (vx_wait): Likewise.
5483         * remote.c (remote_wait, remote_async_wait, remote_current_thread)
5484         (remote_cisco_wait): Likewise.
5485         * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
5486         Likewise.
5487         * symm-nat.c (child_wait): Likewise.
5488         * target.c (debug_to_wait): Likewise.
5489         * target.h (to_wait [in struct target_ops]): Likewise.
5490         * thread.c (thread_id_to_pid): Likewise.
5491         * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
5492         Likewise.
5493         * top.c (*target_wait_hook): Likewise.
5494         * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
5495         * v850ice.c (v850ice_wait): Likewise.
5496         * win32-nat.c (child_wait): Likewise.
5497         * wince.c (child_wait): Likewise.
5498         * config/nm-lynx.h (child_wait): Likewise.
5499         * config/i386/nm-ptx4.h (child_wait): Likewise.
5500         * config/i386/nm-symmetry.h (child_wait): Likewise.
5501
5502         * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
5503         to wait_ptid and change its type from ``int'' to ``ptid_t''.
5504         * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
5505         but rename saved_inferior_pid to saved_inferior_ptid.
5506         * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
5507         save_pid to save_ptid.
5508         * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
5509         * hppah-nat.c (child_pid_to_exec): Likewise, but rename
5510         saved_inferior_pid to saved_inferior_ptid.
5511         * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
5512         * infrun.c (previous_inferior_pid [static global]): Likewise,
5513         but rename to previous_inferior_ptid.
5514         (resume): Likewise, but rename resume_pid to resume_ptid.
5515         (struct execution_control_state): Likewise, but rename
5516         pid to ptid, saved_inferior_pid to saved_inferior_ptid,
5517         and waiton_pid to waiton_ptid.
5518         (target_last_wait_pid): Likewise, but rename to
5519         target_last_wait_ptid.
5520         * infttrace.c (saved_real_pid): Likewise, but rename to
5521         saved_real_ptid.
5522         (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
5523         to saved_inferior_ptid.
5524         * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
5525         (trap_ptid): Likewise, but renamed from trap_pid.
5526         * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
5527         to gdb_ptid.
5528         * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
5529         (thread_db_wait): Likewise, but rename ret_pid to retptid.
5530         * procfs.c (procfs_wait): Likewise, for retval whose name
5531         doesn't change.  Also, ``temp'' becomes two separate variables,
5532         one named temp_tid (an int) and the other temp_ptid.
5533         (procfs_notice_thread): Likewise (type change) for gdb_threadid
5534         whose name does not change.
5535         * regcache.c (registers_ptid): Likewise, but renamed from
5536         registers_pid.
5537         (read_register_pid, read_signed_register_pid, write_register_pid):
5538         Likewise, but rename save_pid to save_ptid.
5539         (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
5540         to saved_inferior_ptid.
5541         * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
5542         * sol-thread.c (struct ps_prochandle): Likewise.
5543         (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
5544         (sol_thread_wait): Likewise, for rtnval whose name does not
5545         change, and for save_pid which becomes save_ptid.
5546         (solaris_pid_to_str): Likewise for lwp whose name does not change.
5547         (sol_find_new_threads_callback): Likewise, for pid which becomes
5548         ptid.
5549         * target.h (target_resume, target_wait, target_post_wait)
5550         (target_post_startup_inferior, target_notice_signals)
5551         (target_thread_alive): Likewise.
5552         * thread.c (info_threads_command): Likewise, but rename
5553         current_pid to current_ptid.
5554         (struct current_thread_cleanup): Likewise, but rename field
5555         inferior_pid to inferior_ptid.
5556         * thread-db.c (find_new_threads_callback): Likewise, but rename
5557         pid to ptid.
5558         * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
5559         change.
5560         (lwp_to_tr): Likewise fo tid whose name remains unchanged.
5561         (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
5562         but rename pid to ptid.
5563         * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
5564         * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
5565         * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
5566         * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
5567         * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
5568         * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
5569
5570         * arch-utils.c (generic_prepare_to_proceed):  Test for the
5571         "zero" ptid by using ptid_equal() to test to see if variable
5572         in question is the same as null_ptid.  This replaces a direct
5573         test against zero.
5574         * cxux-nat.c (add_shared_symbol_files): Likewise.
5575         * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
5576         * infcmd.c (run_command): Likewise.
5577         * inflow.c (kill_command): Likewise.
5578         * infttrace.c (call_ttrace): Likewise.
5579         * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
5580         * lin-thread.c (thread_db_kill): Likewise.
5581         * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
5582         * remote-es.c (es1800_kill): Likewise.
5583         * sol-thread.c (sol_thread_create_inferior): Likewise.
5584         * solib.c (locate_base): Likewise.
5585         * target.c (nosupport_runtime): Likewise.
5586         * thread-db.c (thread_db_wait): Likewise.
5587         * top.c (quit_confirm, quit_force): Likewise.
5588         * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
5589
5590         * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
5591         Use ptid_equal to compare value of process/thread ids instead of
5592         ``=='' and ``!='' operators.
5593         lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
5594         (stop_wait_callback, lin_lwp_wait): Likewise.
5595         * procfs.c (procfs_wait): Likewise.
5596         * regcache.c (read_register_bytes, read_register_gen)
5597         (write_register_gen, read_register, read_register_pid)
5598         (read_signed_register, read_signed_register_pid, write_register)
5599         (write_register_pid, supply_register): Likewise.
5600         * remote-vx.c (vx_resume): Likewise.
5601         * sol-thread.c (sol_thread_wait): Likewise.
5602         * symm-nat.c (kill_inferior): Likewise.
5603         * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
5604         (in_thread_list, info_threads_command, switch_to_thread)
5605         (restore_current_thread): Likewise.
5606         * uw-thread (libtread_stub): Likewise.
5607
5608         * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
5609
5610         * corelow.c (add_to_thread_list): Convert argument in add_thread()
5611         call to a ptid_t.
5612         * gnu-nat.c (inf_validate_procs): Likewise.
5613         * linux-thread.c (stop_thread, update_stop_threads): Likewise.
5614         * remote.c (record_currthread, remote_threads_info): Likewise.
5615         * win32-nat.c (child_add_thread): Likewise.
5616
5617         * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
5618         respectively, to save_inferior_ptid() and restore_inferior_ptid().
5619         Adjust implementations to operate on ``ptid_t'' instead of ``int''.
5620         * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
5621         * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
5622         * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
5623         * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
5624         * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
5625         * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
5626
5627         * infrun.c (RESUME_ALL): New macro representing the -1 ptid
5628         to be passed to target_resume() when all threads should resume.
5629         (resume): Set resume_ptid to RESUME_ALL rather than -1.
5630         (handle_inferior_event): Invoke target_resume() with RESUME_ALL
5631         instead of -1.
5632         * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
5633         a ptid_t in target_resume() call.
5634         * osfsolib.c (solib_create_inferior_hook): Likewise.
5635         * solib-svr4.c (solib_create_inferior_hook): Likewise.
5636
5637         * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
5638         PIDGET0.  Define new PIDGET macro which uses PIDGET0, the only
5639         difference being that the 0xffff pattern will be interpreted
5640         as -1.
5641         * lin-thread.c (PIDGET, PIDGET0): Likewise.
5642         * thread-db.c (PIDGET, PIDGET0): Likewise.
5643         * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
5644         * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
5645         * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
5646         * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
5647
5648         * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
5649         mach_really_wait rather than mach_really__wait.
5650         * lin-thread.c (check_for_thread_event): Fix warning; make function
5651         actually return a value.
5652
5653         * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
5654         ``pid'' arguments from ``int'' to ``ptid_t''.  Also renamed
5655         pid to ptid.
5656         * gdbarch.h, gdbarch.c: Regenerated.
5657
5658 2001-05-03  Jonathan Larmour  <jlarmour@redhat.com>
5659
5660         * rdi-share/devsw.c: Include <time.h> for struct tm
5661
5662 2001-05-03  Eli Zaretskii  <eliz@is.elta.co.il>
5663
5664         * config/djgpp/fnchange.lst: Add mappings for the new
5665         opcodes/openrisc-* files.
5666
5667 2001-05-01  Michael Snyder  <msnyder@redhat.com>
5668
5669         * lin-lwp.c: Change printf to fprintf_unfiltered.
5670         * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
5671
5672 2001-05-01  Nicholas Duffek  <nsd@redhat.com>
5673
5674         * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
5675         (rs6000_in_solib_return_trampoline): Declare.
5676         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
5677         function.
5678         (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
5679         * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
5680         check after the CSECT check rather than before it.  Allocate
5681         separate symtabs for CSECTs whose names begin with '@'.
5682         (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
5683         Activate the misc_func_recorded mechanism for whose names begin
5684         with '@'.
5685
5686 2001-04-30  J.T. Conklin  <jtc@redback.com>
5687
5688         * ppcnbsd-nat.c (fetch_inferior_registers)
5689         (store_inferior_registers, fetch_core_registers): Changed to use
5690         fpreg[] instead of r_regs[] to access floating point registers.
5691
5692 2001-04-30  Elena Zannoni  <ezannoni@redhat.com>
5693
5694         * sh-tdep.c: Get rid of the function prototypes.
5695         (sh_sh4_build_float_register_type): Move earlier in file.
5696         (fv_reg_base_num): Ditto.
5697         (dr_reg_base_num): Ditto.
5698
5699 2001-04-30  Michael Snyder  <msnyder@redhat.com>
5700
5701         * thread-db.c: Revert 2001-04-26 change for debugging output.
5702         * lin-lwp.c: Ditto.
5703         * lin-lwp.c: Add set/show debug lin-lwp command.  Use this
5704         command to turn extra debugging output on / off.
5705
5706 2001-04-30  Eli Zaretskii  <eliz@is.elta.co.il>
5707
5708         * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
5709         (top-level): #include filenames.h.
5710
5711         * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
5712         FILENAME_CMP, to DTRT on non-Posix platforms.
5713         (top-level): #include filenames.h.
5714
5715
5716 2001-04-27  Andrew Cagney  <ac131313@redhat.com>
5717
5718         * gdbtypes.c (check_stub_method): Always initialize ``p''.
5719
5720 2001-04-27  Andrew Cagney  <ac131313@redhat.com>
5721
5722         * configure.host: Delete romp host.
5723         * TODO: Update.
5724
5725 2001-04-27  Andrew Cagney  <ac131313@redhat.com>
5726
5727         * TODO: Updates to 5.1.  No more targets to obsolete.
5728
5729 2001-04-27  Don Howard  <dhoward@redhat.com>
5730
5731         (Changes from Kevin Buettner, with minor update by Don Howard.)
5732         
5733         * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
5734         typos in which hexadecimal constants were really intended to be
5735         binary constants.
5736         (i387_tag): Swap logic regarding zero vs non-zero exponents.
5737         * MAINTAINERS (Misc): Added myself to the write-after-approval
5738         list.
5739
5740 2001-04-26  Jim Blandy  <jimb@redhat.com>
5741
5742         (Changes from Daniel Berlin, with revisions by Jim Blandy.)
5743         
5744         Abstract out operations specific to particular C++ ABI's, and
5745         invoke them through a function table.  This removes the C++ ABI
5746         dependencies scattered throughout the code, and allows us to
5747         cleanly add support for new C++ ABI's.
5748         * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
5749         * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
5750         jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
5751         #include "cp-abi.h".  These files all use functions now declared
5752         there.
5753         * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
5754         Deleted.  These services are now provided by functions declared in
5755         cp-abi.h.
5756         * value.h (value_rtti_type, value_virtual_fn_field): Same.
5757         * values.c (value_virtual_fn_field): Same, for this definition.
5758         * valops.c (value_rtti_type): Same.     
5759         * c-typeprint.c (c_type_print_base): Use the functions from
5760         "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
5761         tests.
5762         * dbxread.c (record_minimal_symbol): Same.
5763         * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
5764         virtual_base_index_skip_primaries): Same.
5765         * jv-typeprint.c (java_type_print_base): Same.
5766         * linespec.c (find_methods, decode_line_1): Same.
5767         * symtab.c (gdb_mangle_name): Same.
5768         * Makefile.in (SFILES): Add the new .c files mentioned above.
5769         (cp_abi_h): New variable.
5770         (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
5771         (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
5772         (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
5773         jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
5774         dependency on $(cp_abi_h).
5775
5776 2001-04-26  Michael Snyder  <msnyder@redhat.com>
5777
5778         * thread-db.c (_initialize_thread_db): Add set/show command
5779         "debug-linux-threads" for debugging output.
5780         * lin-lwp.c (various): Use global "debug_linux_threads to 
5781         turn on extra debugging output.
5782         * lin-lwp.c: Minor cleanups in comments.
5783         * target.c (normal_pid_to_str): Get rid of an ancient hack.
5784         * remote.c (remote_pid_to_str): New function for remote target.
5785
5786 2001-04-24  Jim Blandy  <jimb@redhat.com>
5787
5788         * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
5789         qualifier on C++ references; all references are innately const.
5790
5791 2001-04-20  Mark Kettenis  <kettenis@gnu.org>
5792
5793         * event-top.h: Fix formatting.
5794
5795 2001-04-17  Andrew Cagney  <ac131313@redhat.com>
5796
5797         * source.c (openp): Obsolete #ifdef MPW code.
5798         (open_source_file): Ditto.
5799         * event-top.c (display_gdb_prompt): Ditto.
5800         * utils.c (query): Ditto.
5801         (init_page_info): Ditto.
5802         (init_page_info): Delete #ifndef MPW.
5803         * top.c (gdb_readline): Ditto.
5804         * mac-xdep.c: Obsolete.
5805         * mac-gdb.r: Obsolete.
5806         * config/powerpc/xm-mpw.h: Obsolete.
5807         * config/xm-mpw.h: Obsolete.
5808         * mpw-make.sed: Obsolete.
5809         * mpw-config.in: Obsolete.
5810         * TODO: Update
5811         * NEWS: Update
5812
5813 2001-04-19  Mark Kettenis  <kettenis@gnu.org>
5814
5815         * i386-tdep.c (i386_frameless_function_invocation): New function.
5816         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
5817         in terms of i386_frameless_function_invocation.  Adjust comment.
5818         (i386_frameless_function_invocation): New prototype.
5819
5820 2001-04-18  Martin M. Hunt  <hunt@redhat.com>
5821
5822         * top.c (gdb_init): Don't call cli_out_new() to
5823         create global uiout if init_ui_hook is set.  uiout will
5824         have to be initialized there.
5825
5826 2001-04-18  Andrew Cagney  <ac131313@redhat.com>
5827
5828         * arch-utils.c: Include "regcache.h".
5829
5830 2001-04-18  Mark Kettenis  <kettenis@gnu.org>
5831
5832         * i386-tdep.c (i386_saved_pc_after_call): New function.
5833         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
5834         of i386_saved_pc_after_call.
5835         (i386_saved_pc_after_call): New prototype.
5836
5837 2001-04-17  Michael Snyder  <msnyder@redhat.com>
5838
5839         * i386-nat.c: Fix typo in comment.
5840         * solib.c (no_shared_libraries): New function.  Discard all symbols
5841         from shared libraries.
5842         (_initialize_solib): Add command "nosharedlibrary" as complement
5843         to the command "sharedlibrary".  Unloads symbols for all solibs.
5844
5845 2001-04-16  Andrew Cagney  <ac131313@redhat.com>
5846
5847         * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
5848         * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
5849         (m68*-est-*, m68*-sony-*, m68*-isi-*):
5850         * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
5851         * config/m68k/xm-news.h: Obsolete.
5852         * config/m68k/tm-news.h: 
5853         * config/m68k/xm-news1000.h: Obsolete.
5854         * config/m68k/news.mh: Obsolete.
5855         * config/m68k/news.mt: Obsolete.
5856         * config/m68k/nm-news.h: Obsolete.
5857         * config/m68k/news1000.mh: Obsolete.
5858         * news-xdep.c: Obsolete.
5859         * Makefile.in (isi-xdep.o): Obsolete.
5860         (ALLDEPFILES): Delete isi-xdep.c.
5861         (tm-isi.h): Obsolete.
5862         * m68k-tdep.c (altos_skip_prologue): Update comments.
5863         (isi_skip_prologue): Obsolete.
5864         * isi-xdep.c: Obsolete.
5865         * config/m68k/xm-isi.h: Obsolete.
5866         * config/m68k/isi.mh: Obsolete.
5867         * config/m68k/tm-isi.h: Obsolete.
5868         * config/m68k/isi.mt: Obsolete.
5869
5870         * TODO: Update.
5871         * NEWS: Update.
5872
5873 2001-04-17  Michael Snyder  <msnyder@redhat.com>
5874         
5875         * remote.c (remote_open_1): On opening the remote target, activate
5876         the solib_create_inferior_hook, so that it can detect when the
5877         target loads shared libraries.
5878         (remote_async_open_1): Ditto.
5879
5880 2001-04-17  Michael Snyder  <msnyder@redhat.com>
5881         
5882         * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
5883         * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
5884         * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
5885         * testsuite/gdb.trace/infotrace.exp: Ditto.
5886         * testsuite/gdb.trace/passcount.exp: Ditto.
5887         * testsuite/gdb.trace/while-stepping.exp: Ditto.
5888
5889 2001-04-17  Michael Snyder  <msnyder@redhat.com>
5890
5891         * thread-db.c (check_thread_signals): When looping over all
5892         signals, ignore signal zero.
5893         (disable_thread_signals): Ditto.
5894
5895 2001-04-17  Eirik Fuller <eirik@netapp.com>
5896
5897         * thread.c (do_captured_thread_select): Allow the argument to the
5898         thread command to be an expression rather than a literal integer.
5899
5900 2001-04-17  Mark Kettenis  <kettenis@gnu.org>
5901
5902         * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
5903         read_memory_unsigned_integer instead of read_memory_integer.
5904
5905 2001-04-16  Kevin Buettner  <kevinb@redhat.com>
5906
5907         * solib-aix5.c (map_index_vs_section_name_okay): New function.
5908         (aix5_relocate_main_executable): Don't use file offsets for
5909         determining corresponding sections and map file entries.  Call
5910         map_index_vs_section_name_okay() to do this instead.
5911
5912 2001-04-16  Kevin Buettner  <kevinb@redhat.com>
5913
5914         * procfs.c (open_with_retry): New function.
5915         (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
5916         (proc_get_LDT_entry): Call open_with_retry() instead of open().
5917
5918 2001-04-16  Kevin Buettner  <kevinb@redhat.com>
5919
5920         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
5921         comparison against TRAP_HWBKPT constant yet again to account
5922         for the various values used by different kernel versions.
5923
5924 2001-04-16  Daniel Berlin  <dan@cgsoftware.com>
5925
5926         * demangle.c (_initialize_demangler): Use xcalloc on the
5927         demangling_style_names, and make it a null terminated array of
5928         names, to avoid a crash.
5929
5930 2001-04-16  Mark Kettenis  <kettenis@gnu.org>
5931
5932         * i386-tdep.c (i386_frame_chain): New function.
5933         * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
5934         i386_frame_chain.
5935         (i386_frame_chain): New prototype.
5936
5937 2001-04-14  J.T. Conklin  <jtc@redback.com>
5938         
5939         * target.h (target_ops): Removed to_core_file_to_sym_file vector
5940         function.
5941         * corelow.c (core_ops): Updated for above change.
5942         * gnu-nat.c (core_ops): Likewise.
5943         * inftarg.c (child_ops): Likewise.
5944         * monitor.c (monitor_ops): Likewise.
5945         * ppc-bdm.c (bdm_ppc_ops): Likewise.
5946         * remote-adapt.c (adapt_ops): Likewise.
5947         * remote-bug.c (bug_ops): Likewise.
5948         * remote-e7000.c (e7000_ops): Likewise.
5949         * remote-eb.c (eb_ops): Likewise.
5950         * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
5951         * remote-mm.c (mm_ops): Likewise.
5952         * remote-nindy.c (nindy_ops): Likewise.
5953         * remote-nrom.c (nrom_ops): Likewise.
5954         * remote-os9k.c (rombug_ops): Likewise.
5955         * remote-rdp.c (remote_rdp_ops): Likewise.
5956         * remote-sim.c (gdbsim_ops): Likewise.
5957         * remote-st.c (st2000_ops): Likewise.
5958         * v850ice.c (v850ice_ops): Likewise.
5959         * target.c (cleanup_target): Likewise
5960         (update_current_target): Likewise.
5961         (setup_target_debug): Likewise
5962         (debug_to_core_file_to_sym_file): Removed.
5963
5964         * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
5965         sets symbol file from information obtained from the core file.
5966         * corelow.c (core_file_to_sym_file): Removed.
5967         
5968 2001-04-13  Fernando Nasser  <fnasser@redhat.com>
5969
5970         From  Adam Mirowski  <Adam.Mirowski@Sun.COM>
5971         Fixed Insight on Solaris. It was not possible to debug a process
5972         because of EINTR "errors".
5973         * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
5974         with EINTR, retry the call.
5975
5976 2001-04-12  Kevin Buettner  <kevinb@redhat.com>
5977
5978         * solib-aix5.c (enum maptype): Delete.
5979         (struct lm_info): Add new member ``nmappings''.  Make ``mapping''
5980         member a pointer instead of a statically sized array.
5981         (build_so_list_from_mapfile): Dynamically allocate ``mapping''
5982         array.
5983         (aix5_relocate_main_executable, aix5_relocate_section_addresses,
5984         aix5_find_global_pointer): Search for correct mapping to use
5985         based on file offset instead of knowledge of whether the section
5986         is read-only or read/write.
5987         (aix5_find_gate_addresses): Use the first mapping instead of
5988         the (now defunct) MT_READONLY mapping.
5989
5990 2001-04-12  Nicholas Duffek  <nsd@redhat.com>
5991
5992         * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
5993         "@".
5994
5995 2001-04-12  Kevin Buettner  <kevinb@redhat.com>
5996
5997         * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
5998
5999 2001-04-09  Andrew Cagney  <ac131313@redhat.com>
6000
6001         Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
6002         * config/i386/sun386.mh: Obsolete.
6003         * config/i386/sun386.mt: Obsolete.
6004         * config/i386/xm-sun386.h: Obsolete.
6005         * config/i386/tm-sun386.h: Obsolete.
6006         * config/i386/nm-sun386.h: Obsolete.
6007         * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
6008         (sun386-nat.o): Target is obsolete.
6009         * sun386-nat.c: Obsolete.
6010         * configure.tgt (i[3456]86-*-sunos*): Obsolete.
6011         * configure.host (i[3456]86-*-sunos*): Obsolete.
6012         * NEWS: Update.
6013         * TODO: Update.
6014
6015 2001-04-10  J.T. Conklin  <jtc@redback.com>
6016
6017         * maint.c: Fix typo in comment.
6018
6019 2001-04-09  Keith Seitz  <keiths@cygnus.com>
6020
6021         * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
6022
6023 2001-04-08  Kevin Buettner  <kevinb@redhat.com>
6024
6025         * fork-child.c (fork_inferior, clone_and_follow_inferior): 
6026         Document fact that apparent call to vfork() might actually be
6027         a call to fork() instead.
6028         * ser-pipe.c (pipe_open): Likewise.
6029
6030 2001-04-08  Kevin Buettner  <kevinb@redhat.com>
6031
6032         * printcmd.c (print_frame_args): Use a cleanup to invoke
6033         ui_out_list_end() so that the list count nesting flag will
6034         be decremented properly when an error occurs.
6035         * stack.c (print_frame): Likewise.
6036
6037 2001-04-06  J.T. Conklin  <jtc@redback.com>
6038
6039         * dcache.c (dcache_write_line): Fixed bugs where cache line was
6040         not written to target correctly.
6041
6042         * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit 
6043         void return value;
6044         * gdbserver/low-nbsd.c: Likewise.
6045         * gdbserver/low-sparc.c: Likewise.
6046         * gdbserver/low-sun3.c: Likewise.
6047
6048 2001-04-06  Geoffrey Keating  <geoffk@redhat.com>
6049
6050         * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
6051         (PTRACE_DETACH): Don't define.
6052
6053 2001-04-06  David Smith  <dsmith@redhat.com>
6054
6055         * arch-utils.c (default_prepare_to_proceed)
6056         (generic_prepare_to_proceed): Added new functions.
6057         * arch-utils.h: New function declarations for
6058         default_prepare_to_proceed() and generic_prepare_to_proceed().
6059         * gdbarch.sh: Added PREPARE_TO_PROCEED.
6060         * gdbarch.c: Regenerated.
6061         * gdbarch.h: Regenerated.
6062         * inferior.h: Added get_last_target_status() declaration.
6063         * infrun.c (get_last_target_status): Added new function.
6064         (handle_inferior_event): Saves last pid and waitstatus, which will
6065         get returned by get_last_target_status(). 
6066
6067         * hppa-tdep.c (prepare_to_proceed):  Added comment stating that
6068         prepare_to_proceed() is potentially redundant since
6069         default_prepare_to_proceed() has been added.
6070         * linux-thread.c (prepare_to_proceed): Ditto.
6071         * lin-lwp.c (prepare_to_proceed): Ditto.
6072         * m3-nat.c (prepare_to_proceed): Ditto.
6073         
6074 2001-04-05  Andrew Cagney  <ac131313@redhat.com>
6075
6076         Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
6077         and powerpc-*-netware* target.
6078         * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
6079         Obsolete.
6080         * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
6081         (powerpcle-*-solaris*): Obsolete.
6082         * config/powerpc/tm-cygwin.h: Obsolete.
6083         * config/powerpc/cygwin.mt: Obsolete.
6084         * config/powerpc/xm-cygwin.h: Obsolete.
6085         * config/powerpc/cygwin.mh: Obsolete.
6086         * config/powerpc/nm-solaris.h: Obsolete.
6087         * config/powerpc/xm-solaris.h: Obsolete.
6088         * config/powerpc/tm-solaris.h: Obsolete.
6089         * config/powerpc/solaris.mt: Obsolete.
6090         * config/powerpc/tm-ppc-nw.h: Obsolete.
6091         * config/powerpc/ppc-nw.mt: Obsolete.
6092         * TODO: Update.
6093         * NEWS: Update.
6094
6095 2001-04-06  Fernando Nasser  <fnasser@redhat.com>
6096
6097         * buildsym.c (record_line): Turn off unused addr bits.
6098
6099 2001-04-06  Fernando Nasser  <fnasser@redhat.com>
6100
6101         From David Deephanphongs <deephan@telocity.com>
6102         * inferior.h:   Fix declarations of get_inferior_args and 
6103         set_inferior_args, which were missing the trailing 's'.
6104
6105 2001-04-05  Jeff Holcomb  <jeffh@redhat.com>
6106
6107         * monitor.c (monitor_supply_register): Only report an error if we
6108         don't get a valid value.
6109
6110 2001-04-05  Eli Zaretskii  <eliz@is.elta.co.il>
6111
6112         * README: Don't mention gdba.el.
6113
6114 2001-04-05  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
6115
6116         From  Jimmy Guo  <guo@cup.hp.com>
6117         * top.c (init_main): set prompt if annotation_level>1,
6118         this is necessary when annotation_level is set to 2 via
6119         --annotate=2 command line option.
6120
6121 2001-04-04  Andrew Cagney  <ac131313@redhat.com>
6122
6123         Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
6124         * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
6125         * configure.host (a29k-*-*): Obsolete.
6126         * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
6127         ultra3-xdep.c.
6128         (ultra3-nat.o, ultra3-xdep.o): Obsolete.
6129         * config/a29k/tm-ultra3.h: Obsolete.
6130         * config/a29k/ultra3.mt: Obsolete.
6131         * config/a29k/ultra3.mh: Obsolete.
6132         * config/a29k/nm-ultra3.h: Obsolete.
6133         * config/a29k/xm-ultra3.h: Obsolete.
6134         * ultra3-xdep.c: Obsolete.
6135         * ultra3-nat.c: Obsolete.
6136         * config/a29k/a29k-kern.mt: Obsolete.
6137         * NEWS: Update.
6138         * TODO: Update.
6139
6140 Wed Apr  4 21:48:42 2001  Christopher Faylor <cgf@cygnus.com>
6141
6142         * main.c: Remove windows.h use.
6143         (gdbtk_test): Use PATH_MAX for home var calculation.
6144         * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
6145         Win32 in colon test.
6146         * ser-tcp.c: Use modern __CYGWIN__ conditional.
6147         * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
6148         (openp): Ditto.
6149         * symfile.c (symfile_bfd_open): Ditto.
6150
6151 2001-04-04  Martin M. Hunt  <hunt@redhat.com>
6152
6153         * main.c (captured_main): For GDBtk, don't use tui_fileopen().
6154         Handle all stream setup in gdbtk_init
6155
6156 2001-04-04  Mark Kettenis  <kettenis@gnu.org>
6157
6158         * i386-tdep.c (i386_extract_return_value): Don't return the return
6159         value of a void function.
6160         (i386_store_return_value): Likewise.
6161
6162 2001-04-03  Andrew Cagney  <ac131313@redhat.com>
6163
6164         Obsolete w65-*-* target.
6165         * configure.tgt (w65-*-*): Obsolete.
6166         * config/w65/w65.mt: Obsolete.
6167         * config/w65/tm-w65.h: Obsolete.
6168         * w65-tdep.c: Obsolete.
6169         * NEWS: Update.  Fix TiC80 description.
6170         * TODO: Update.
6171
6172 2001-04-03  Andrew Cagney  <ac131313@redhat.com>
6173
6174         Obsolete tic80-*-* target.
6175         * configure.tgt (tic80-*-*): Obsolete.
6176         * config/tic80/tic80.mt: Obsolete.
6177         * config/tic80/tm-tic80.h: Obsolete.
6178         * tic80-tdep.c: Obsolete.
6179         * TODO: Update
6180         * NEWS: Update.
6181
6182 2001-04-02  J.T. Conklin  <jtc@redback.com>
6183
6184         * remote-mips.c (S_IROTH): Moved definition from here.
6185         * gdb_stat.h (S_IROTH): to here.
6186
6187         * remote.c (remote_protocol_e, remote_protocol_E): Define.
6188         (set_remote_protocol_e_packet_cmd)
6189         (set_remote_protocol_E_packet_cmd)
6190         (show_remote_protocol_e_packet_command)
6191         (show_remote_protocol_E_packet_command): New functions.
6192         (init_all_packet_configs): Initialize remote_protocol_e and
6193         remote_protocol_E.
6194         (remote_resume, remote_async_resume): Support e/E command
6195         packets.
6196         (show_remote_cmd): Show state of remote_protocol_e and 
6197         remote_protocol_E.
6198         (_initialize_remote): Add "set remote step-over-range-packet" 
6199         and "set remote step-over-range-w-signal-packet" to CLI.
6200
6201 2001-04-01  Andrew Cagney  <ac131313@redhat.com>
6202
6203         Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
6204         ns32k-utek-*.
6205         * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
6206         (umax-xdep.o, ns32km3-nat.o): Obsolete.
6207         * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
6208         Obsolete.
6209         * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
6210         Obsolete.
6211         * config/ns32k/merlin.mh: Obsolete.
6212         * config/ns32k/merlin.mt: Obsolete.
6213         * config/ns32k/xm-merlin.h: Obsolete.
6214         * config/ns32k/tm-merlin.h: Obsolete.
6215         * config/ns32k/nm-umax.h: Obsolete.
6216         * config/ns32k/umax.mh: Obsolete.
6217         * config/ns32k/umax.mt: Obsolete.
6218         * config/ns32k/xm-umax.h: Obsolete.
6219         * umax-xdep.c: Obsolete.
6220         * config/ns32k/ns32km3.mh: Obsolete.
6221         * config/ns32k/ns32km3.mt: Obsolete.
6222         * config/ns32k/tm-ns32km3.h: Obsolete.
6223         * config/ns32k/xm-ns32km3.h: Obsolete.
6224         * ns32km3-nat.c: Obsolete.
6225         * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
6226         (merlin_frame_num_args): Ditto.
6227         * NEWS: Update.
6228         * TODO: Update.
6229
6230 2001-04-02  Eli Zaretskii  <eliz@is.elta.co.il>
6231
6232         * config/djgpp/fnchange.lst: Tweak due to
6233         expect/example/chesslib.c.
6234
6235 2001-04-02  Kevin Buettner  <kevinb@redhat.com>
6236
6237         * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
6238         unsigned int to unsigned long.  Also, fix format string.
6239         (pop_frame):  Fix PC_IN_CALL_DUMMY() call so that it doesn't
6240         use an undeclared variable.  Also, delete declaration and
6241         initialization of ``fp'' because it is otherwise unused.
6242         * remote-bug.c (sleep): Delete declaration.
6243         (bug_store_register, bug_write_memory, bug_read_memory)
6244         (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
6245         format statements and cast certain sprintf() arguments to
6246         eliminate warnings.
6247         (bug_load): Likewise for call to printf_filtered().
6248         * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
6249         assignment to ``pc''.  The necessary assignment is done in
6250         hand_function_call() after the invocation of FIX_CALL_DUMMY().
6251
6252 2001-03-20  Daniel Berlin  <dberlin@redhat.com>
6253         
6254         * symtab.c (completion_list_add_name): Remove duplicate string checks,
6255         readline already does this, and it's much faster at it, too.
6256
6257 2001-04-01  Eli Zaretskii  <eliz@is.elta.co.il>
6258
6259         * go32-nat.c: Minor tweaks, to pacify the ari script.
6260
6261 2001-04-01  Mark Kettenis  <kettenis@gnu.org>
6262
6263         * i386-tdep.c (i386_extract_struct_value_address): New function.
6264         * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
6265         in terms of i386_extract_struct_value_address.
6266         (i386_extract_struct_value_address): New prototype.
6267
6268         * i386-linux-nat.c (i386_linux_dr_get): Change type of return
6269         value to `unsigned long'.  Change type of `value' to `unsigned
6270         long'.
6271         (i386_linux_dr_set): Change type of second argument to `unsigned
6272         long'.
6273         (i386_linux_dr_set_control): Change type of first argument to
6274         `unsigned long'.
6275         (i386_linux_dr_get_status): Change type of return value to
6276         unsigned long.
6277         * config/i386/nm-linux.h (i386_linux_dr_set_control,
6278         i386_linux_dr_get_status): Adjust prototypes accordingly. 
6279
6280 2001-03-31  Kevin Buettner  <kevinb@redhat.com>
6281
6282         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
6283         TRAP_HWBKPT constant to match that in the kernel headers for
6284         Linux/IA-64.
6285
6286 2001-03-31  Mark Kettenis  <kettenis@gnu.org>
6287
6288         * i386bsd-nat.c: Include "gdb_assert.h".
6289         [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
6290         already defined.
6291         [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
6292         i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
6293         i386bsd_dr_get_status): New functions.
6294         * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
6295         (I386_USE_GENERIC_WATCHPOINTS): Define.
6296         Include "i386/nm-i386.h".
6297         (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
6298         I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
6299         (i386bsd_dr_set_control, i386bsd_dr_set_addr,
6300         i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
6301         * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
6302         * configure.in: Cleanup a few comments.  Check for PT_GETDBREGS
6303         ptrace request.
6304         * config.in, configure: Regenerate.
6305
6306         * i386-nat.c (i386_insert_aligned_watchpoint): Set address
6307         register before enabling it by setting the control register.
6308         (i386_remove_aligned_watchpoint): Reset address register after
6309         disabling it by setting the control register.
6310
6311         * i386-tdep.c (i386_extract_return_value): If the type of the
6312         return value is TYPE_STRUCT and the number of fields is one, call
6313         ourselves with TYPE set tp the type of the first field.
6314         (i386_store_return_value): Likewise.
6315         This fixes a problem with returning structs consisting of a single
6316         `float' or `double' on *BSD.
6317
6318 2001-03-30  Mark Kettenis  <kettenis@gnu.org>
6319
6320         * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
6321         we're absolutely sure we're going to resume it.
6322
6323         * thread-db.c (check_event): Don't report an error if we encounter
6324         a thread creation event for a thread that's already in the thread
6325         list, since that may legitemately happen.  Instead only call
6326         attach_thread if it's not already in the thread list.
6327
6328 2001-03-28  Andrew Cagney  <ac131313@redhat.com>
6329
6330         * config/pa/xm-hppah.h (malloc): Really delete declaration
6331         (MALLOC_INCOMPATIBLE): Really delete macro.
6332         * cli/cli-cmds.c (apropos_command): Use xcalloc.
6333
6334 2001-03-28  Andrew Cagney  <ac131313@redhat.com>
6335
6336         * configure.in (build_warnings): Add -Wuninitialized.
6337         * configure: Regenerate.
6338
6339         * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
6340         * sparc-tdep.c (sparc64_push_arguments): Add default case to
6341         switch.
6342         * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
6343         expression with if statement.
6344         * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
6345         ``stack_size''.
6346         * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
6347         (mips_dump_tdep): Fix setting of ef_mips_arch.
6348         * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
6349         * dsrec.c (make_srec): Always initialize ``binbuf''.
6350         * monitor.c (monitor_read_memory_single): Do not pass an
6351         uninitialized buffer to monitor_error. Make ``i'' more local.
6352
6353 2001-03-28  Andrew Cagney  <ac131313@redhat.com>
6354
6355         * MAINTAINERS: Change ns32k target to ,-Werror.
6356
6357         * ns32k-tdep.c: Include "gdbcore.h"
6358         (flip_bytes): Change first argument to void*. Add forward
6359         declaration.
6360         (sign_extend): Add declaration.
6361         (merlin_frame_num_args): Add final else clause to if-else chain.
6362         (umax_frame_num_args): Ditto.
6363         * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
6364         (flip_bytes): Ditto.
6365
6366 2001-03-28  Mark Kettenis  <kettenis@gnu.org>
6367
6368         * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
6369         config/i386/nm-linux.h (including comment).
6370         (i386_linux_frame_chain): New function implementing guts of the
6371         former FRAME_CHAIN macro, but using read_memory_unsigned_integer
6372         instead of read_memory_integer.
6373         (i386_linux_frame_saved_pc): Removed doc pointing to
6374         i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
6375         now lives in this file.
6376         * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
6377         i386-linux-tdep.c (including comment).
6378         (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
6379         (i386_linux_frame_chain): New prototype.
6380
6381         * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
6382         make it work again.
6383         (NUM_FREGS): Redefine to 0.
6384         (NUM_REGS): Redefine as NUM_GREGS.
6385         (i386_register_byte, i386_register_raw_size): Update from
6386         i386-tdep.c.  Add comment about their origin.
6387         (regmap, register_u_addr): Take these from i386-linux-nat.c.
6388         (i386_register_u_addr): Removed.
6389
6390         * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
6391         fails instead of calling perror_with_name.  This should fix
6392         debugging remote i386 targets with a native Linux/x86 GDB.  Add
6393         FIXME for this hack.
6394
6395 2001-03-19  J.T. Conklin  <jtc@redback.com>
6396
6397         * arch-utils.c (#include "gdbthread.h"): Removed.
6398         (#include "symfile.h"): Removed. 
6399         (XMALLOC): Removed unused macro.
6400         * breakpoint.c (tbreak_command): Removed local declaration.
6401         (awatch_command, do_enable_breakpoint, set_breakpoint_count):
6402         Remove duplicate declarations.
6403         (bpstat_should_step, bpstat_have_active_hw_watchpoints)
6404         (remove_solib_event_breakpoints): Fix indentation botch.
6405         * c-typeprint.c (#include "command.h"): Removed.
6406         (#include "gdbcmd.h"): Removed.
6407         * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
6408         (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
6409         Removed duplicate declarations.
6410         * ch-typeprint.c (#include "command.h"): Removed.
6411         (#include "gdbcmd.h"): Removed.
6412         * corefile.c (#include "frame.h"): Removed
6413         (#include "symfile.h"): Removed.
6414         (#include "language.h"): Removed.
6415         * dbxread.c (#include "command.h"): Removed.
6416         * environ.c (#include "gdbcore.h"): Removed.
6417         * event-loop.c (#include "top.h"): Removed.
6418         * f-typeprint.c (#include "command.h"): Removed.
6419         (#include "gdbcmd.h"): Removed.
6420         (#include "language.h"): Removed.
6421         (#include "typeprint.h"): Removed.
6422         (#include "frame.h"): Removed.
6423         * gdbtypes.h (print_type_scalar): Removed declaration.
6424         * infcmd.c (#include "completer.h"): Removed.
6425         * language.c (#include "frame.h"): Removed.
6426         * m2-typeprint.c (#include "command.h"): Removed.
6427         (#include "gdbcmd.h"): Removed.
6428         (#include "language.h"): Removed.
6429         * m2-valprint.c (#include "valprint.h"): Removed.
6430         * p-typeprint.c (#include "command.h"): Removed.
6431         (#include "gdbcmd.h"): Removed.
6432         * p-valprint.c (#include "typeprint.h"): Removed.
6433         * parse.c (#include "linespec.h"): Removed.
6434         * regcache.c (#include "frame.h"): Removed.
6435         * remote.c (#include "frame.h"): Removed.
6436         (getpkt_sane): Make static.
6437         * source.c (#include "completer.h"): Removed.
6438         * stack.c (#include "symfile.h"): Removed.
6439         (#include "objfiles.h"): Removed.
6440         * symfile.c (#include "completer.h"): Removed.
6441         * tracepoint.c (#include "completer.h"): Removed.
6442         * values.c (#include "frame.h"): Removed.
6443         * varobj.c (#include "valprint.h"): Removed.
6444         * wrapper.c (#include "frame.h"): Removed.
6445         
6446         * memattr.c (create_mem_region): Removed unused variable.
6447         * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
6448
6449 2001-03-27  Nick Clifton  <nickc@redhat.com>
6450
6451         * remote-rdp.c (rdp_set_command_line): Add missing double quote.
6452
6453 2001-03-27  Kevin Buettner  <kevinb@redhat.com>
6454
6455         * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
6456         of free().
6457
6458 2001-03-27  Eli Zaretskii  <eliz@is.elta.co.il>
6459
6460         * TODO (Cleanups): Remove the item about converting docs to GFDL.
6461
6462 2001-03-26  Kevin Buettner  <kevinb@redhat.com>
6463
6464         * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
6465         type of ``bundle'' from unsigned char * to char *.
6466         (ia64_get_saved_register): Use alloca() to allocate register
6467         buffers.
6468
6469         * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
6470
6471 2001-03-26  Kevin Buettner  <kevinb@redhat.com>
6472
6473         * proc-utils.h (procfs_ctl_t): New typedef.
6474         * proc-api.c (write_with_trace): Change type of ``opcode'' from
6475         long to procfs_ctl_t.  Don't assume that the target has defined
6476         BREAKPOINT.  Handle case in which PCRESET is the same as PCUNSET.
6477         * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
6478         * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
6479         (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
6480         (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
6481         Conditionally define as appropriate for AIX/non-AIX systems.  Use
6482         these defines/typedefs as appropriate elsewhere in file.
6483         (struct procinfo): Change type of saved_sigset and saved_sighold
6484         from sigset_t to gdb_sigset_t.  Make saved_exitset and
6485         saved_entryset pointer variables.  Add two new fields, num_syscalls
6486         and syscall_names.
6487         (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
6488         (sysset_t_size, sysset_t_alloc): New functions.
6489         (load_syscalls, free_syscalls, find_syscall): New functions for
6490         platforms which define DYNAMIC_SYSCALLS.
6491         (create_procinfo): Call load_syscalls.
6492         (destroy_one_procinfo): Call free_syscalls.
6493         (GDBRESET): Don't define twice.
6494         (proc_modify_flag): Change type of operation code array `arg'
6495         from long to procfs_ctl_t.
6496         (proc_stop_process, proc_wait_for_stop, proc_run_process)
6497         (proc_set_traced_signals, proc_set_traced_faults)
6498         (proc_set_traced_sysentry, proc_set_traced_sysexit)
6499         (proc_set_held_signals, proc_clear_current_fault)
6500         (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
6501         (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
6502         (proc_set_traced_sysentry): Dynamically allocate variable sized
6503         struct gdb_proc_ctl_pcsentry.  Also, free it at function exit.
6504         (proc_set_traced_sysexit): Dynamically allocate variable
6505         sized struct gdb_proc_ctl_pcsexit.  Also, free it at
6506         function exit.
6507         (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
6508         for reading the sysset_t struct on AIX5.
6509         (procfs_debug_inferior): Don't assume that SYS_exit will be
6510         defined.  Add new code for finding certain syscalls on AIX5.
6511         (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
6512         (syscall_is_lwp_create): New functions.
6513         (procfs_wait): Restructured code which checks for certain
6514         system calls to use the new syscall_is_... functions.
6515         (procfs_notice_signals): Account for the fact that saved_entryset
6516         and saved_exitset in struct procinfo are now pointers.
6517
6518 2001-03-26  Kevin Buettner  <kevinb@redhat.com>
6519
6520         * symtab.c (find_pc_sect_line): Revise method used for finding
6521         the ending pc.
6522
6523 2001-03-26  Mark Kettenis  <kettenis@gnu.org>
6524
6525         * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
6526         i386_linux_sigtramp_saved_sp): Make static.
6527         (i386_linux_frame_saved_pc): New function based on the old
6528         FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
6529         of read_memory_integer.
6530         * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
6531         (i386_linux_sigtramp_saved_pc): Remove prototype.
6532         (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
6533         (i386_linux_frame_saved_pc): New prototype.
6534
6535 2001-03-26  Andrew Cagney  <ac131313@redhat.com>
6536
6537         * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
6538         * TODO (GDB 5.1 - Cleanups): Update.
6539
6540 2001-03-26  Andrew Cagney  <ac131313@redhat.com>
6541
6542         * fork-child.c (clone_and_follow_inferior): Delete #ifdef
6543         HAVE_VFORK.
6544
6545 2001-03-26  Mark Kettenis  <kettenis@gnu.org>
6546
6547         * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
6548
6549         * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
6550         functions.
6551         * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
6552         (STORE_STRUCT_RETURN): Redefine in terms of
6553         i386_store_struct_return.
6554         (i386_push_arguments, i386_store_struct_return): New prototypes.
6555         * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove.  It's
6556         definition was identical to the definition in "i386/tm-i386.h" so
6557         the new definition should suffice too.
6558
6559 2001-03-26  Eli Zaretskii  <eliz@is.elta.co.il>
6560
6561         * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
6562         definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
6563
6564         * config/djgpp/djconfig.sh: Add copyright notice.
6565
6566         * ser-go32.c (rawclock): Remove prototype; include time.h instead.
6567         (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
6568         (top level) <string.h>: Include gdb_string.h instead.
6569         (dos_noop, dos_raw, dos_noflush_set_tty_state) 
6570         (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
6571
6572         * go32-nat.c (go32_create_inferior): Move the declaration of
6573         `environ' to here from the top level.
6574         (top level) <_initialize_go32_nat>: Remove redundant prototype.
6575         <gdb_string.h>: Include it instead of string.h.
6576         (store_register): Call register_buffer instead of accessing
6577         registers[] directly.
6578         (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger) 
6579         (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
6580         the function names at the start of the line.
6581         (go32_set_dr): Throw internal_error if the argument is not a valid
6582         debug register number.
6583         (go32_open, go32_close, go32_attach, go32_detach, go32_resume) 
6584         (go32_wait, go32_xfer_memory, go32_files_info) 
6585         (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
6586
6587 2001-03-25  Jim Blandy  <jimb@redhat.com>
6588
6589         * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
6590
6591 2001-03-25  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
6592
6593         From  Andrew Cagney  <ac131313@redhat.com>
6594
6595         * coffread.c: Include "gdb_assert.h".
6596         (coff_symtab_read): Cast the integer s_sclass to a long before
6597         casting it to a pointer.
6598
6599 2001-03-25  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
6600
6601         From  Andrew Cagney  <ac131313@redhat.com>
6602         
6603         * coffread.c (coff_symtab_read): Initialize
6604         ``fcn_first_line_addr''.  Check that the ``.bf'' always preceeds
6605         the ``.ef'' info.
6606         * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
6607
6608 2001-03-23  Andrew Cagney  <ac131313@redhat.com>
6609
6610         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
6611         GDB_MULTI_ARCH_PARTIAL from two.  SOFTWARE_SINGLE_STEP is not
6612         multi-arch.
6613
6614         * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
6615         * gdbarch.h, gdbarch.c: Re-generate.
6616
6617         * target.h (SOFTWARE_SINGLE_STEP_P)
6618         (SOFTWARE_SINGLE_STEP): Delete macro definitions.
6619
6620 2001-03-23  Andrew Cagney  <ac131313@redhat.com>
6621
6622         * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
6623         * gdbarch.h, gdbarch.c: Regenerate.
6624         
6625         * regcache.h (regcache_read, regcache_write): Declare.
6626         (registers, register_valid, register_buffer): Add note that these
6627         interfaces are deprecated.
6628         
6629         * regcache.c: Include "gdb_assert.h".
6630         (legacy_write_register_gen): Rename write_register_gen.
6631         (legacy_read_register_gen): Rename read_register_gen.
6632         (regcache_read, regcache_write): New function.
6633         (read_register_gen, write_register_gen): New function.
6634         (write_register): Simplify.  Use write_register_gen.
6635         (read_register): Ditto using read_register_gen.
6636         (read_signed_register): Ditto.
6637         (read_register_bytes): Ditto!!!!
6638         (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
6639         replaced by gdbarch_register_read.
6640
6641         * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
6642         deprecate.
6643
6644 2001-03-23  Jim Blandy  <jimb@redhat.com>
6645
6646         Fix from Dan Berlin:
6647
6648         * stabsread.c (read_cpp_abbrev): Properly construct the names of
6649         virtual function table pointer fields.
6650
6651 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
6652
6653         * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
6654         xmrealloc): Move existing declarations to the one place and
6655         re-order to be consistent.
6656         (xmcalloc, xmfree): Declare.
6657         (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
6658         declaration.
6659         
6660         * utils.c (size_t): Delete #ifdef defining size_t.
6661         (mmalloc, mrealloc, mcalloc, mfree): Re-order.
6662         (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
6663         corresponding malloc, realloc, calloc.
6664         (mfree): Call free directly.
6665         (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
6666         (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
6667         function bodies to here.
6668         (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
6669         
6670 2001-03-23  Andrew Cagney  <ac131313@redhat.com>
6671
6672         * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
6673         ``shell_file'' static locals.
6674
6675         * jv-lang.c (java_link_class_type): Initialize ``field'' and
6676         ``method''.
6677         
6678         * jv-valprint.c (java_value_print): Initialize ``next_element''.
6679
6680 2001-03-23  Mark Kettenis  <kettenis@gnu.org>
6681
6682         * config/i386/nm-i386.h: Fix formatting and change reference to
6683         i386-tdep.c to i386-nat.c.
6684
6685 2001-03-23  David Smith  <dsmith@redhat.com>
6686
6687         * configure.in: Corrected spelling errors.
6688         * configure: Regenerated.
6689
6690 2001-03-22  Andrew Cagney  <ac131313@redhat.com>
6691
6692         * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
6693
6694 2001-03-22  Andrew Cagney  <ac131313@redhat.com>
6695
6696         * Makefile.in (NTSSTART): Delete.
6697         (NTSOBS): Delete.
6698         (kdb): Delete target.
6699         * kdb-start.c, stuff.c: Mark as obsolete.
6700         * NEWS: Update.
6701
6702 2001-03-22  Andrew Cagney  <ac131313@redhat.com>
6703
6704         * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
6705         compiles using an ISO-C compiler.
6706         (MALLOC_INCOMPATIBLE): Ditto.
6707         * linespec.c (decode_line_1): Delete hack to work around
6708         HPPA_COMPILER_BUG.
6709
6710 2001-03-22  Andrew Cagney  <ac131313@redhat.com>
6711
6712         * exec.c (xfer_memory): Always initialize section.
6713         * infrun.c (normal_stop): Always initialize source_flag.
6714
6715 2001-03-22  Andrew Cagney  <ac131313@redhat.com>
6716
6717         * TODO (Remote Protocol Support): Review.  Add notes about ``!'',
6718         non-use of a continue address and typical use of ``q'' packet.
6719
6720 2001-03-22  Eli Zaretskii  <eliz@is.elta.co.il>
6721
6722         Make DJGPP use the new unified support for hardware
6723         breakpoints and watchpoints on x86 targets:
6724
6725         * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
6726         include nm-i386.h instead.
6727         (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
6728         (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
6729         (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
6730         (target_stopped_data_address, target_insert_watchpoint)
6731         (target_remove_watchpoint, target_insert_hw_breakpoint)
6732         (target_remove_hw_breakpoint): Don't define.
6733         (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
6734         (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
6735         (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
6736         functions from go32-nat.c.
6737
6738         * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
6739
6740         * go32-nat.c <top level>: Remove prototypes for watchpoint-
6741         related functions.  Remove definitions of watchpoint-related
6742         macros.
6743         (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
6744         private cleanup_dregs function.
6745         (cleanup_dregs, go32_insert_watchpoint)
6746         (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
6747         (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
6748         (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
6749         (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
6750         (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
6751
6752 2001-03-21  Kevin Buettner  <kevinb@redhat.com>
6753
6754         * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
6755         than two instead of generating an error.
6756         
6757 2001-03-21  Jim Blandy  <jimb@redhat.com>
6758
6759         * cp-valprint.c: Reformat to bring into line with GNU coding
6760         standards.
6761
6762 2001-03-21  Mark Kettenis  <kettenis@gnu.org>
6763
6764         Make Linux use the new unified support for hardware breakpoints
6765         and watchpoints on x86 targets.
6766         * i386-linux-nat.c: Doc fixes.  Include "gdb_assert.h".
6767         [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
6768         (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
6769         appropriate value if not already defined.
6770         (register_u_addr): New function.
6771         (kernel_u_size): New function.
6772         (i386_linux_dr_get, i386_linux_dr_set): New functions.
6773         (i386_linux_dr_set_control, i386_linux_dr_set_addr,
6774         i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
6775         * config/i386/nm-linux.h: Don't include "nm-i386v.h".
6776         (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
6777         (TARGET_HAS_HARDWARE_WATCHPOINTS,
6778         TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
6779         STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
6780         target_remove_watchpoint): Remove macros.
6781         (i386_stopped_by_watchpoint, i386_insert_watchpoint,
6782         i386_remove_watchpoint): Remove prototypes.
6783         (register_u_addr): New prototype.
6784         (REGISTER_U_ADDR): Define in terms of register_u_addr.
6785         (i386_linux_dr_set_control, i386_linux_dr_set_addr,
6786         i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
6787         (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
6788         I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
6789         * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
6790         i386-nat.o.
6791
6792 2001-03-21  Jim Blandy  <jimb@redhat.com>
6793
6794         Fix from Dan Berlin:
6795
6796         * linespec.c (find_methods): Whitespace differences aren't
6797         significant in *un*mangled method names.  Use strcmp_iw to compare
6798         them, not STREQ.
6799
6800 2001-03-21  Andrew Cagney  <ac131313@redhat.com>
6801
6802         * gdbarch.sh: Allow a non- multi-arch target to override a
6803         predicate.
6804         * gdbarch.h: Regenerate.
6805
6806 2001-03-21  Andrew Cagney  <ac131313@redhat.com>
6807
6808         * gdbarch.sh: Avoid use of ``!''.
6809
6810 2001-03-20  Andrew Cagney  <ac131313@redhat.com>
6811
6812         * target.h (enum target_signal): Move definition from here.
6813         * defs.h (enum target_signal): To here.
6814
6815         * config/arc/tm-arc.h (arc_software_single_step): Change type of
6816         first parameter to enum target_signal.
6817         * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
6818         * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
6819         * rs6000-tdep.c (rs6000_software_single_step): Update.
6820         
6821 2001-03-20  Andrew Cagney  <ac131313@redhat.com>
6822
6823         * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
6824         already defined.
6825         
6826         From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
6827         * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
6828         or a reference ('a') can be in a pseudo register.
6829         * infcmd.c (do_registers_info): Must take into account the pseudo
6830         registers to print their value.
6831         (registers_info): Likewise.
6832         * stack.c (frame_info): Likewise.
6833         * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
6834
6835 2001-03-21  Eli Zaretskii  <eliz@is.elta.co.il>
6836
6837         Unified support for hardware breakpoints and watchpoints on
6838         x86 targets:
6839
6840         * config/i386/nm-i386.h: New file.
6841
6842         * config/i386/nm-i386.h: (i386_cleanup_dregs)
6843         (i386_insert_watchpoint, i386_remove_watchpoint)
6844         (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
6845         (i386_stopped_data_address, i386_insert_hw_breakpoint)
6846         (i386_remove_hw_breakpoint): Declare prototypes.
6847         [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6848         Define if not already defined.
6849         (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
6850         (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
6851         (target_insert_watchpoint, target_remove_watchpoint)
6852         (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
6853         to call the appropriate i386_* functions.
6854
6855         * i386-nat.c: New file.
6856
6857         * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
6858         (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
6859         (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
6860         (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
6861         (maint_show_dr): New variables.
6862         (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
6863         (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
6864         (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
6865         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
6866         (i386_stopped_data_address, i386_stopped_by_hwbp)
6867         (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
6868         functions.
6869         (_initialize_i386_nat): New function.
6870         [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
6871         `show-debug-regs', sets maint_show_dr to non-zero value and
6872         activates debugging print-outs in functions which insert, remove,
6873         and test watchpoints and hardware breakpoints.
6874
6875         * Makefile.in (i386-nat.o): New target.
6876         (ALLDEPFILES): Add i386-nat.o.
6877
6878 2001-03-21  Mark Kettenis  <kettenis@gnu.org>
6879
6880         * i386-tdep.c: Add back _initialize_i386_tdep prototype with
6881         appropriate comment.
6882
6883 2001-03-20  Kevin Buettner  <kevinb@redhat.com>
6884
6885         * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
6886         thread-db.o, and lin-lwp.o for thread support instead of
6887         linux-thread.o and lin-thread.o.
6888         * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
6889         (ATTACH_LWP): Define to use the following lin-lwp.c functions...
6890         (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
6891         (lin_lwp_attach_lwp): Declare.
6892
6893 2001-03-20  Jim Blandy  <jimb@redhat.com>
6894
6895         Fix from Dan Berlin:
6896         
6897         * Makefile.in: Clean up dependencies on ../include/demangle.h.
6898         (demangle_h): New variable.
6899         (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
6900
6901 2001-03-20  Andrew Cagney  <ac131313@redhat.com>
6902
6903         * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
6904         * breakpoint.c (bpstat_stop_status): Update.
6905         * infrun.c (handle_inferior_event): Ditto.
6906         * mips-tdep.c (mips_dump_tdep): Ditto.
6907         * infrun.c (resume): Ditto.
6908         * infptrace.c (child_resume): Ditto.
6909         * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6910         * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6911         * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6912         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6913         * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6914         * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6915         * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6916
6917 2001-03-20  Andrew Cagney  <ac131313@redhat.com>
6918
6919         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
6920         with internal_error.
6921
6922 2001-03-20  Jim Blandy  <jimb@redhat.com>
6923
6924         Fix from Dan Berlin:
6925         
6926         * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
6927         than asking for sym_class's type; that's circuitous.  Remove
6928         sym_class, since the last use of it is gone.
6929
6930 2001-03-20  Eli Zaretskii  <eliz@is.elta.co.il>
6931
6932         * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
6933         Correct the order of calls to ui_out_field_string and
6934         ui_out_list_begin when bs->old_val is NULL.
6935
6936 2001-03-19  Kevin Buettner  <kevinb@redhat.com>
6937
6938         * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
6939         * configure: Regenerate.
6940         * config.in: Regenerate.
6941         * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
6942
6943 2001-03-19  Kevin Buettner  <kevinb@redhat.com>
6944
6945         * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
6946         same line to avoid problems with Unixware 7's make when building
6947         a cross debugger.
6948
6949 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
6950
6951         * defs.h (malloc): Move declaration from here.
6952         * utils.c (malloc): To here.
6953         * config/pa/xm-hppah.h (malloc): Delete declaration.
6954
6955         * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
6956         * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
6957         (hpread_quick_traverse): Ditto.
6958         * infttrace.c (create_thread_info): Ditto.
6959         (kill_inferior): Ditto.
6960         * gnu-nat.c (make_inf): Ditto, and don't check return value.
6961         * procfs.c (proc_update_threads): Ditto.
6962         * valprint.c (print_decimal_chars): Ditto.
6963         * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
6964         malloc and sprintf.
6965         * remote-rdp.c (rdp_set_command_line): Ditto.
6966
6967 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
6968
6969         * defs.h (realloc): Move declaration from here.
6970         * utils.c (realloc): To here.
6971         * config/pa/xm-hppah.h (realloc): Delete declaration.
6972         * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
6973         * symfile.c (add_filename_language): Ditto.
6974         * event-loop.c (create_file_handler): Ditto.
6975
6976 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
6977
6978         * defs.h (free): Move declaration from here.
6979         * utils.c (free): To here.
6980         (xfree): Document as the only call to free().
6981         * config/pa/xm-hppah.h (free): Delete declaration.
6982
6983 2001-03-19  Kevin Buettner  <kevinb@redhat.com>
6984
6985         * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
6986         this list.
6987
6988 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
6989
6990         * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
6991         * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
6992         * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
6993
6994 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
6995
6996         * TODO: List known problems with TUI.
6997
6998 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
6999
7000         * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
7001         gdb.hp).
7002
7003 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
7004
7005         * remote.c (remote_cisco_section_offsets): Do not cast result from
7006         bfd_get_section_name.
7007         (compare_sections_command): Ditto.
7008         (remote_cisco_section_offsets): Make ``p'' a const pointer.
7009         (compare_sections_command): Ditto for ``sectname''.
7010
7011 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
7012
7013         From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
7014         * valops.c (hand_function_call): Simplify computation of the
7015         address of the pushed argument.
7016  
7017 2001-03-17  Andrew Cagney  <ac131313@redhat.com>
7018
7019         * p-exp.y (parse_number): Avoid shift overflow when ``long''.
7020         Code copied from c-exp.y.
7021
7022 2001-03-18  Kevin Buettner  <kevinb@redhat.com>
7023
7024         * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
7025         (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
7026         (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
7027         * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
7028         of the Solaris procfs testing section.  Instead, group with...
7029         (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
7030         (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
7031         (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
7032         * configure: Regenerate.
7033         * config.in: Regenerate.
7034
7035         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
7036         new configure macros to choose which (if any) code to
7037         compile in.  Added code to explicitly handle *BSD systems;
7038         these systems were previously handled only through macro
7039         redefinition.  Also, due to the way the autoconf tests are set
7040         up, this function will no longer return a non-zero value when
7041         GDB is configured as a cross debugger.  I.e, cross debuggers
7042         will no longer be able to "accidentally" get the host system's
7043         link map offsets.
7044
7045 2001-03-18  Kevin Buettner  <kevinb@redhat.com>
7046
7047         * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
7048         line to avoid build problem on NetBSD 1.4.
7049
7050 2001-03-17  Michael Chastain  <chastain@redhat.com>
7051
7052         * win32-nat.c (child_attach): check args for NULL before passing
7053         to strtoul.  This fixes PR gdb/43.
7054
7055 2001-03-17  Mark Kettenis  <kettenis@gnu.org>
7056
7057         * i387-nat.h: Doc Fix.
7058
7059         * i386-tdep.c: Fix formatting.
7060         (i386_get_frame_setup, i386_follow_jump, codestream_read,
7061         codestream_seek, codestream_fill, skip_trampoline_code,
7062         gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
7063         prototypoes.
7064
7065 2001-03-17  Mark Kettenis  <kettenis@gnu.org>
7066
7067         * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove.  It's
7068         no longer used.  Also remove associated FIXME.
7069
7070 2001-03-16  Andrew Cagney  <ac131313@redhat.com>
7071
7072         * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch.  Do
7073         not generate macro wrappers for multi-arch functions or
7074         predicates.
7075         (class_is_info_p, class_is_predicate_p): Update.
7076         (class_is_function_p, class_is_variable_p): Ditto.
7077         (class_is_multiarch_p): New class function.
7078
7079 2001-03-16  J.T. Conklin  <jtc@redback.com>
7080
7081         * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
7082         h8300_frame_args_address from frame_args_address.
7083         (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
7084         from frame_locals_address.
7085         (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
7086         from print_register_hook.
7087         (h8300_frame_args_address): Declare.
7088         (h8300_frame_find_saved_regs): Declare.
7089         (h8300_frame_locals_address): Declare.
7090         (h8300_frame_saved_pc): Declare.
7091         (h8300_pop_frame): Declare.
7092         (h8300_print_register_hook): Declare.
7093         * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
7094         (h8300_frame_args_address): Renamed from frame_args_address.
7095         (h8300_frame_locals_address): Renamed from frame_locals_address.
7096         (h8300_pop_frame): Renamed from pop_frame.
7097         (h8300_print_register_hook): Renamed from print_register_hook.
7098
7099 2001-03-16  Kevin Buettner  <kevinb@redhat.com>
7100
7101         * solib-svr4.c (bfd_lookup_symbol):  Change type of
7102         ``storage_needed'' from unsigned int to long in order to
7103         match return type of bfd_get_symtab_upper_bound() and
7104         bfd_get_dynamic_symtab_upper_bound().
7105         * solib-aix5.c (bfd_lookup_symbol): Likewise.  Also, eliminate
7106         REASONABLE_LIMIT hack which had been added to work around this
7107         problem.
7108
7109 2001-03-15  Kevin Buettner  <kevinb@redhat.com>
7110
7111         * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
7112         (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
7113         to free() with calls to xfree().
7114         (bfd_lookup_symbol): Eliminate use of PTR.
7115         (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
7116
7117 2001-03-15  Martin Hunt  <hunt@redhat.com>
7118
7119         * linespec.c (decode_line_1): Remove trailing quote
7120         when parsing double quotes.
7121
7122 2001-03-15  Kevin Buettner  <kevinb@redhat.com>
7123
7124         * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
7125         (libthread_stub, libthread_init): Pass NULL for the mem_attrib
7126         argument in the to_xfer_memory calls.
7127
7128 2001-03-15  Andrew Cagney  <ac131313@redhat.com>
7129
7130         * MAINTAINERS: Fix typo - w65 not w64.  Still doesn't build.
7131         * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
7132
7133 2001-03-15  Andrew Cagney  <ac131313@redhat.com>
7134
7135         * wince.c (child_xfer_memory): Add attrib parameter.
7136         * symm-nat.c (child_xfer_memory): Ditto.
7137         * mac-nat.c (child_xfer_memory): Ditto.
7138         * infttrace.c (child_xfer_memory): Ditto.
7139         * procfs.c (procfs_xfer_memory): Ditto.
7140         * lin-thread.c (thread_db_xfer_memory): Ditto.
7141         * gnu-nat.c (gnu_xfer_memory): Ditto.
7142
7143 2001-03-14  Andrew Cagney  <ac131313@redhat.com>
7144
7145         * NEWS: Mention that Harris/CXUX m88k is obsolete.
7146
7147 2001-03-13  Andrew Cagney  <ac131313@redhat.com>
7148
7149         * config/mips/tm-mips.h: Include "regcache.h" for macros refering
7150         to regcache functions.
7151         * config/m68k/tm-m68k.h: Ditto.
7152         * config/i386/tm-i386v.h: Ditto.
7153         * config/mcore/tm-mcore.h: Ditto.
7154         * config/m88k/tm-m88k.h: Ditto.
7155         * config/m68k/tm-news.h: Ditto.
7156         * config/m68k/tm-linux.h: Ditto.
7157         * config/m68k/tm-delta68.h: Ditto.
7158         * config/m68k/nm-sun3.h: Ditto.
7159         * config/m32r/tm-m32r.h: Ditto.
7160         * config/i386/tm-symmetry.h: Ditto.
7161         * config/i386/tm-sun386.h: Ditto.
7162         * config/i386/tm-i386.h: Ditto.
7163         * config/i386/nm-symmetry.h: Ditto.
7164         * config/i386/nm-sun386.h: Ditto.
7165         * config/i386/nm-ptx4.h: Ditto.
7166         * config/i386/nm-i386mach.h: Ditto.
7167         * config/h8500/tm-h8500.h: Ditto.
7168         * config/h8300/tm-h8300.h: Ditto.
7169         * config/fr30/tm-fr30.h: Ditto.
7170         * config/d30v/tm-d30v.h: Ditto.
7171         * config/arm/tm-arm.h: Ditto.
7172         * config/arc/tm-arc.h: Ditto.
7173         * config/alpha/tm-alpha.h: Ditto.
7174         * config/a29k/tm-vx29k.h: Ditto.
7175         * config/a29k/tm-a29k.h: Ditto.
7176         * config/w65/tm-w65.h: Ditto.
7177         * config/vax/tm-vax.h: Ditto.
7178         * config/v850/tm-v850.h: Ditto.
7179         * config/tic80/tm-tic80.h: Ditto.
7180         * config/sparc/tm-sparclite.h: Ditto.
7181         * config/sparc/tm-sparclet.h: Ditto.
7182         * config/sparc/tm-sparc.h: Ditto.
7183         * config/sparc/nm-sun4sol2.h: Ditto.
7184         * config/sparc/nm-sun4os4.h: Ditto.
7185         * config/sparc/nm-nbsd.h: Ditto.
7186         * config/powerpc/nm-solaris.h: Ditto.
7187         * config/pa/tm-hppao.h: Ditto.
7188         * config/pa/tm-hppa.h: Ditto.
7189         * config/pa/nm-hppab.h: Ditto.
7190         * config/ns32k/tm-umax.h: Ditto.
7191         * config/ns32k/tm-merlin.h: Ditto.
7192         * config/nm-m3.h: Ditto.
7193         * config/nm-gnu.h: Ditto.
7194
7195 2001-03-14  Andrew Cagney  <ac131313@redhat.com>
7196
7197         * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
7198         broken.  Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
7199         Specify an m88k target.  Include sample GAWK script to generate
7200         target list.  Delete non-existant romp target.
7201         * TODO (GDB 5.1 - Cleanups): Update.
7202
7203 2001-03-14  Keith Seitz  <keiths@cygnus.com>
7204
7205         * linespec.c (decode_line_1): Skip argptr over a leading
7206         double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
7207
7208 2001-03-14  Kevin Buettner  <kevinb@redhat.com>
7209
7210         * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
7211
7212 2001-03-13  Andrew Cagney  <ac131313@redhat.com>
7213
7214         * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
7215         * m3-nat.c: Ditto.
7216         * p-lang.h: Ditto.
7217         * printcmd.c (printf_command): Ditto.
7218         * ch-exp.c (match_integer_literal): Ditto.
7219         * scm-tags.h: Ditto.
7220         * ser-go32.c: Ditto.
7221         * hppa-tdep.c (unwind_command): Ditto.
7222         * defs.h (volatile): Delete macro definition.  Assume __STDC__.
7223         * remote-adapt.c (volatile): Ditto.
7224         * remote-eb.c (volatile): Ditto.
7225         * remote-mm.c (volatile): Ditto.
7226         * defs.h (alloca): Assume __STDC__, declare returning void *.
7227
7228 2001-03-08  Andrew Cagney  <ac131313@redhat.com>
7229
7230         * inferior.h (ARCH_NUM_REGS): Delete definition.
7231         * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
7232         * regcache.c (registers_changed): Ditto.
7233         (registers_fetched): Ditto.
7234         * infptrace.c (fetch_inferior_registers): Ditto.
7235         (store_inferior_registers): Ditto.
7236         * infcmd.c (do_registers_info): Ditto.
7237         (registers_info): Ditto.
7238         * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
7239         (old_store_inferior_registers): Ditto.
7240         * gdbserver/low-linux.c (register_addr): Ditto.
7241         * gdbserver/low-hppabsd.c (register_addr): Ditto.
7242         * core-aout.c: Don't include "inferior.h".
7243         (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
7244         (register_addr): Ditto.
7245
7246 2001-03-13  Fernando Nasser  <fnasser@redhat.com>
7247
7248         From Steven Johnson <sjohnson@neurizon.net>
7249         * cli/cli-script.c (define_command): Fix setting of post hooks.
7250
7251 2001-03-13  Mark Kettenis  <kettenis@gnu.org>
7252
7253         * i386-linux-tdep.c: Fix formatting and clarify comments.
7254         (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
7255         where appropriate.
7256
7257 2001-03-12  Andrew Cagney  <ac131313@redhat.com>
7258
7259         * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
7260         (proc_update_sc): Use gdb_assert instead of assert.
7261         (proc_abort): Ditto.
7262         (inf_set_step_thread): Ditto.
7263         (gnu_wait): Ditto.
7264         (S_exception_raise_request): Ditto.
7265         (gnu_terminal_init_inferior): Ditto.
7266
7267 2001-03-09  Kevin Buettner  <kevinb@redhat.com>
7268
7269         * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
7270         (solib-legacy.o): New makefile target.
7271         * solib-legacy.c: New file.
7272         * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
7273         (default_svr4_fetch_link_map_offsets): Delete.
7274         (set_solib_svr4_fetch_link_map_offsets): Declare.
7275         (legacy_svr4_fetch_link_map_offsets_hook): Declare.
7276         * solib-svr4.c (elf/common.h): Include.
7277         (link.h): Only include for SunOS shared library support.
7278         (_SYSCALL32): Don't define.
7279         (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
7280         (default_svr4_fetch_link_map_offsets): Made static; added forward
7281         declaration.
7282         (fetch_link_map_offsets): New static global.
7283         (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
7284         (default_svr4_fetch_link_map_offsets):  Rewritten.  The guts
7285         of what used to be in this function now reside in
7286         legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
7287         (open_symbol_file_object): Fix declaration in SunOS section
7288         of the code.
7289         (set_solib_svr4_fetch_link_map_offsets): New extern function.
7290         (init_fetch_link_map_offsets): New static function.
7291         (_initialize_svr4_solib): Put static global fetch_link_map_offsets
7292         under multiarch control.
7293
7294         * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
7295         list.
7296         * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
7297         * config/arm/linux.mt (TDEPFILES): Likewise.
7298         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
7299         * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
7300         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7301         * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
7302         * config/i386/i386sol2.mt (TDEPFILES): Likewise.
7303         * config/i386/i386v4.mh (NATDEPFILES): Likewise.
7304         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7305         * config/i386/linux.mt (TDEPFILES): Likewise.
7306         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7307         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7308         * config/i386/ncr3000.mt (TDEPFILES): Likewise.
7309         * config/i386/ptx4.mh (XDEPFILES): Likewise.
7310         * config/i386/sun386.mt (TDEPFILES): Likewise.
7311         * config/ia64/linux.mt (TDEPFILES): Likewise.
7312         * config/m68k/linux.mt (TDEPFILES): Likewise.
7313         * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
7314         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7315         * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
7316         * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
7317         * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
7318         * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
7319         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7320         * config/powerpc/linux.mt (TDEPFILES): Likewise.
7321         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7322         * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
7323         * config/sh/linux.mt (TDEPFILES): Likewise.
7324         * config/sparc/linux.mt (TDEPFILES): Likewise.
7325         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7326         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7327         * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
7328         * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
7329         * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
7330
7331 2001-03-09  Kevin Buettner  <kevinb@redhat.com>
7332
7333         * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
7334
7335 2001-03-09  Andrew Cagney  <ac131313@redhat.com>
7336
7337         * MAINTAINERS (Write After Approval): Update Philip Blundell.
7338
7339 2001-03-09  Keith Seitz  <keiths@cygnus.com>
7340
7341         * MAINTAINERS: Add myself to write after approval list.
7342
7343 2001-03-09  Mark Kettenis  <kettenis@gnu.org>
7344
7345         * i387-tdep.c (print_i387_status_word): Fix printing of Stack
7346         fault flag.  It is bit 6 of the x87 FPU status word, not bit 7.
7347
7348 2001-03-08  Andrew Cagney  <ac131313@redhat.com>
7349
7350         * configure.host (m88*-harris-cxux*): Mark as obsolete.
7351         * configure.tgt: Ditto.
7352         * config/m88k/xm-cxux.h: Ditto.
7353         * config/m88k/tm-cxux.h: Ditto.
7354         * config/m88k/nm-cxux.h: Ditto.
7355         * config/m88k/cxux.mt: Ditto.
7356         * config/m88k/cxux.mh: Ditto.
7357
7358 2001-03-08  Andrew Cagney  <ac131313@redhat.com>
7359
7360         * Makefile.in: Delete rules for obsolete files.
7361
7362 Thu Mar  8 15:43:40 2001  David Taylor  <taylor@redhat.com>
7363
7364         * stack.c (parse_frame_specification): For one argument case,
7365         handle the situation where the argument is an integer, not an
7366         address -- arguably the most common case.  This matters on
7367         targets where pointers and addresses are different.
7368
7369 2001-03-08  Andrew Cagney  <ac131313@redhat.com>
7370
7371         * TODO: Revise 5.1 list.  Delete PARAMS task.  Add coding standard
7372         review.  Clarify GNU/LINUX/sparc.  Move other tasks to 5.2 or
7373         general.
7374
7375 2001-03-07  Andrew Cagney  <ac131313@redhat.com>
7376
7377         * TODO (GDB 5.1 Known Problems): Document problem of building GDB
7378         with SID on Solaris 8.
7379
7380 2001-03-07  Mark Kettenis  <kettenis@gnu.org>
7381
7382         * defs.h: Provide prototypes for floatformat_is_negative,
7383         floatformat_is_nan and floatformat_mantissa.
7384         * utils.c: Include "gdb_assert.h".
7385         (floatformat_is_negative): New function.
7386         (floatformat_is_nan): New function.
7387         (floatformat_mantissa): New function.
7388         * valprint.c: Include "floatformat.h".
7389         (print_floating): Get rid of the Linux-specific
7390         TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
7391         help these new functions.  Print NaN's in a format conforming to
7392         ISO C99.
7393
7394 2001-03-07  Eli Zaretskii  <eliz@is.elta.co.il>
7395
7396         * top.c (init_main): Make `set history file name' complete on file
7397         names.
7398
7399 2001-03-06  J.T. Conklin  <jtc@redback.com>
7400
7401         * Makefile.in (LINTFLAGS): Update to contain all of the macros
7402         which define include paths used when compiling.
7403
7404         * util.c (savestring, msavestring): Change type of length argument.
7405         * defs.h (savestring, msavestring): Update to match.
7406
7407         * symtab.h (decode_line_1): Removed declaration.
7408
7409         * symfile.c (#include <assert.h>): Removed.
7410
7411         * arch-utils.c (#include <ctype.h>): Removed.
7412         * c-typeprint.c: Likewise.
7413         * dbxread.c: Likewise.
7414         * gdbtypes.c: Likewise.
7415         * target.c: Likewise.
7416         * os9kread.c: Likewise.
7417
7418         * c-valprint.c (#include "demangle.h"): Removed.
7419         * ch-typeprint.c: Likewise.
7420         * eval.c: Likewise.
7421         * f-typeprint.c: Likewise.
7422         * f-valprint.c: Likewise.
7423         * m2-typeprint.c: Likewise.
7424         * typeprint.c: Likewise.
7425         * p-typeprint.c: Likewise.
7426         * valarith.c: Likewise.
7427         * valprint.c: Likewise.
7428
7429         * m2-typeprint.c (#include "gdb_string.h"): Removed.
7430         * nlmread.c: Likewise.
7431
7432         * mdebugread.c (#include "gdb-stabs.h"): Removed.
7433         * minsyms.c: Likewise.
7434         * mipsread.c: Likewise.
7435         * nlmread.c: Likewise.
7436
7437         * m2-typeprint.c (#include "obstack.h"): Removed.
7438         * m2-valprint.c: Likewise.
7439
7440         * event-loop.c (#include <setjmp.h>): Removed.
7441
7442 2001-03-06  Stan Shebs  <shebs@apple.com>
7443
7444         * MAINTAINERS: Remove self from specific maintenance domains
7445         (macos, gdbserver, documentation, testsuite).
7446
7447 2001-03-06  Kevin Buettner  <kevinb@redhat.com>
7448
7449         * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
7450         a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
7451         annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
7452         arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
7453         ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
7454         breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
7455         c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
7456         ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
7457         cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
7458         cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
7459         cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
7460         coff-solib.h, coffread.c, command.h, complaints.c,
7461         complaints.h, completer.c, completer.h,
7462         config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
7463         config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
7464         config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
7465         config/alpha/nm-linux.h, config/alpha/nm-osf.h,
7466         config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
7467         config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
7468         config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
7469         config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
7470         config/arm/nm-linux.h, config/arm/tm-arm.h,
7471         config/arm/tm-embed.h, config/d10v/tm-d10v.h,
7472         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
7473         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
7474         config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
7475         config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
7476         config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
7477         config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
7478         config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
7479         config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
7480         config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
7481         config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
7482         config/i386/tm-fbsd.h, config/i386/tm-i386.h,
7483         config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
7484         config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
7485         config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
7486         config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
7487         config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
7488         config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
7489         config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
7490         config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
7491         config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
7492         config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
7493         config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
7494         config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
7495         config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
7496         config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
7497         config/i386/xm-linux.h, config/i386/xm-nbsd.h,
7498         config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
7499         config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
7500         config/i960/tm-i960.h, config/i960/tm-mon960.h,
7501         config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
7502         config/ia64/nm-aix.h, config/ia64/nm-linux.h,
7503         config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
7504         config/ia64/tm-linux.h, config/ia64/xm-aix.h,
7505         config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
7506         config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
7507         config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
7508         config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
7509         config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
7510         config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
7511         config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
7512         config/m68k/tm-isi.h, config/m68k/tm-linux.h,
7513         config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
7514         config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
7515         config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
7516         config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
7517         config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
7518         config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
7519         config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
7520         config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
7521         config/m68k/xm-mpw.h, config/m68k/xm-news.h,
7522         config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
7523         config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
7524         config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
7525         config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
7526         config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
7527         config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
7528         config/mips/nm-irix3.h, config/mips/nm-irix4.h,
7529         config/mips/nm-irix5.h, config/mips/nm-mips.h,
7530         config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
7531         config/mips/tm-embed.h, config/mips/tm-embed64.h,
7532         config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
7533         config/mips/tm-irix3.h, config/mips/tm-irix5.h,
7534         config/mips/tm-mips.h, config/mips/tm-mips64.h,
7535         config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
7536         config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
7537         config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
7538         config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
7539         config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
7540         config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
7541         config/mips/xm-irix4.h, config/mips/xm-irix5.h,
7542         config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
7543         config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
7544         config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
7545         config/mn10300/tm-mn10300.h, config/nm-gnu.h,
7546         config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
7547         config/nm-sysv4.h, config/none/nm-none.h,
7548         config/none/tm-none.h, config/none/xm-none.h,
7549         config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
7550         config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
7551         config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
7552         config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
7553         config/pa/nm-hppab.h, config/pa/nm-hppah.h,
7554         config/pa/nm-hppao.h, config/pa/tm-hppa.h,
7555         config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
7556         config/pa/xm-hppab.h, config/pa/xm-hppah.h,
7557         config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
7558         config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
7559         config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
7560         config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
7561         config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
7562         config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
7563         config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
7564         config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
7565         config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
7566         config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
7567         config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
7568         config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
7569         config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
7570         config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
7571         config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
7572         config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
7573         config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
7574         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
7575         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
7576         config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
7577         config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
7578         config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
7579         config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
7580         config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
7581         config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
7582         core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
7583         cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
7584         dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
7585         delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
7586         dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
7587         elfread.c, environ.c, environ.h, eval.c, event-loop.c,
7588         event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
7589         f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
7590         fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
7591         gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
7592         gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
7593         gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
7594         gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
7595         gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
7596         gdbserver/low-sim.c, gdbserver/low-sparc.c,
7597         gdbserver/low-sun3.c, gdbserver/remote-utils.c,
7598         gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
7599         gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
7600         gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
7601         hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
7602         hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
7603         hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
7604         i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
7605         i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
7606         i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
7607         inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
7608         irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
7609         jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
7610         kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
7611         linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
7612         m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
7613         m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
7614         m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
7615         mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
7616         mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
7617         mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
7618         mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
7619         monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
7620         nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
7621         ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
7622         op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
7623         pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
7624         ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
7625         ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
7626         proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
7627         rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
7628         regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
7629         remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
7630         remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
7631         remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
7632         remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
7633         remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
7634         remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
7635         rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
7636         scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
7637         ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
7638         sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
7639         solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
7640         source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
7641         sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
7642         standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
7643         symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
7644         symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
7645         tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
7646         typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
7647         ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
7648         valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
7649         vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
7650         vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
7651         vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
7652         wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
7653         xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
7654         notices.
7655
7656 2001-03-05  Kevin Buettner  <kevinb@redhat.com>
7657
7658         * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
7659         HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
7660         macros.
7661         * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
7662         pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
7663         (sys/fault.h, sys/select.h): Test for presence of these
7664         header files.
7665         (ia64-*-aix*): Define NEW_PROC_API for this host.
7666         * configure: Regenerate.
7667         * config.in: Regenerate.
7668
7669         * configure.host (ia64-*-aix*): New host.
7670         * configure.tgt (ia64-*-aix*): New target.
7671
7672 2001-03-05  Andrew Cagney  <ac131313@redhat.com>
7673
7674         * TODO (GDB 5.1 Known Problems): Document z8k as broken.
7675
7676 Mon Mar  5 11:56:09 2001  Christopher Faylor <cgf@cygnus.com>
7677
7678         * wince.c: Change realloc to xrealloc throughout.
7679         (handle_load_dll): Use void * rather than PTR in argument.
7680
7681 2001-03-04  Andrew Cagney  <ac131313@redhat.com>
7682
7683         * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
7684         * ocd.c (ocd_xfer_memory): Ditto.
7685         * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
7686         * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
7687         buildable with ,-Werror.
7688
7689         * Makefile.in (symfile_h): Define.
7690         (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
7691         * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
7692         * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
7693         ,-Werror.
7694
7695         * dsrec.c (make_srec): Fix internal_error fmt arg.
7696         * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
7697
7698 2001-03-03  Kevin Buettner  <kevinb@redhat.com>
7699
7700         * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
7701         as an lvalue.
7702
7703 2001-03-02  Andrew Cagney  <ac131313@redhat.com>
7704
7705         * MAINTAINERS (paper trail): Update.
7706
7707         * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
7708
7709 2001-03-02  Andrew Cagney  <ac131313@redhat.com>
7710
7711         From 2001-03-01 Tom Rix <trix@redhat.com>:
7712         * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
7713         parameter to mn10200_analyze_prologue.
7714
7715         * config/mn10200/tm-mn10200.h: Include "regcache.h".
7716         * MAINTAINERS: Document that mn10200-elf target is buildable.
7717
7718 2001-03-02  Kevin Buettner  <kevinb@redhat.com>
7719
7720         * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
7721         from here...
7722         * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
7723         (MONTEREY): Don't define.
7724         (AIX5): Define.
7725
7726 2001-03-02  Matt Hiller  <hiller@redhat.com>
7727
7728         * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
7729
7730 2001-03-02  Kevin Buettner  <kevinb@redhat.com>
7731
7732         * sparc-nat.c (sparc-nat.c): Don't include self.
7733
7734 2001-03-01  J.T. Conklin  <jtc@redback.com>
7735
7736         * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
7737         if __CYGWIN32__ is set from here.
7738         * config/i386/xm-cygwin.h: To here.
7739         * config/powerpc/xm-cygwin.h: To here.
7740
7741         * i386-stub.c (handle_exception): Use 'T' response packet.
7742
7743 2001-03-01  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
7744
7745         * m32r-tdep.c: Fix cut and paste error in comment.
7746
7747 2001-02-28  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
7748
7749         * symtab.c (print_msymbol_info): Print addresses by portable method
7750         longest_local_hex_string_custom.  Allow for 64-bit addresses.
7751
7752 2001-03-01  J.T. Conklin  <jtc@redback.com>
7753
7754         * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
7755         (MAX_OF_TYPE): Wrap macro definition in parenthesis.
7756         (MIN_OF_TYPE): Likewise.
7757         
7758         * memattr.h (mem_access_mode): Removed extraneous trailing comma.
7759
7760 2001-03-01  Andrew Cagney  <ac131313@redhat.com>
7761
7762         * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
7763         * os9kread.c (os9k_process_one_symbol): Add assert to detect
7764         ``loses if sizeof (char *) > sizeof (int)''.
7765
7766 2001-03-01  Andrew Cagney  <ac131313@redhat.com>
7767
7768         * gdb_assert.h: Document pragmatics behind gdb_assert's case.
7769
7770 2001-03-01  Andrew Cagney  <ac131313@redhat.com>
7771
7772         * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
7773         lists.
7774         (mi-main.o): Ditto.
7775
7776 2001-03-01  Andrew Cagney  <ac131313@redhat.com>
7777
7778         * Makefile.in (regcache_h): Define. Add $(regcache_h) to
7779         dependency lists.
7780
7781 2001-02-28  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
7782
7783         * printcmd.c (print_address_numeric): Update comments to refer
7784         to sizeof addr, not sizeof pointer.
7785         (x_command): Remove needless whitespace (shorten long line).
7786         
7787         * breakpoint.c (print_one_breakpoint): Formatting clean-up.
7788         (read_memory_nobpt): Ditto.
7789         (ep_is_catchpoint): Ditto.
7790         (ep_is_shlib_catchpoint): Ditto.
7791         (ep_is_exception_catchpoint): Ditto.
7792         (describe_other_breakpoints): Ditto.
7793
7794 Wed Feb 28 20:37:36 2001  Andrew Cagney  <ac131313@redhat.com>
7795
7796         * regcache.h (register_valid): Fix comment documenting valid
7797         states.
7798
7799 Tue Feb 27 23:56:23 2001  Andrew Cagney  <ac131313@redhat.com>
7800
7801         From Steven Johnson:
7802         * regcache.h: New file.
7803         
7804         * value.h (read_register_bytes, read_register_gen)
7805         (write_register_gen, write_register_bytes)
7806         (read_register, read_register_pid)
7807         (read_signed_register, read_signed_register_pid)
7808         (write_register, write_register_pid)
7809         (register_cached, set_register_cached)
7810         (register_changed, register_buffer)
7811         (registers_changed, supply_register): Move declaration from here.
7812         * regcache.h: To here.
7813         * gdbcore.h (registers_fetched): Ditto.
7814         * inferior.h (registers, registers_valid): Ditto.
7815
7816         * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
7817         generic_target_write_pc, write_pc_pid, write_pc,
7818         generic_target_read_sp, read_sp, generic_target_write_sp,
7819         write_sp, generic_target_read_fp, read_fp,
7820         generic_target_write_fp, write_fp): Add note that these functions
7821         will be moved from this file.
7822         
7823         * a29k-tdep.c: Include "regcache.h".
7824         * a68v-nat.c: Ditto.
7825         * abug-rom.c: Ditto.
7826         * alpha-nat.c: Ditto.
7827         * alpha-tdep.c: Ditto.
7828         * alphabsd-nat.c: Ditto.
7829         * arc-tdep.c: Ditto.
7830         * arm-linux-nat.c: Ditto.
7831         * arm-linux-tdep.c: Ditto.
7832         * arm-tdep.c: Ditto.
7833         * blockframe.c: Ditto.
7834         * core-aout.c: Ditto.
7835         * core-sol2.c: Ditto.
7836         * corelow.c: Ditto.
7837         * cpu32bug-rom.c: Ditto.
7838         * cxux-nat.c: Ditto.
7839         * d10v-tdep.c: Ditto.
7840         * d30v-tdep.c: Ditto.
7841         * dbug-rom.c: Ditto.
7842         * dink32-rom.c: Ditto.
7843         * dve3900-rom.c: Ditto.
7844         * findvar.c: Ditto.
7845         * fr30-tdep.c: Ditto.
7846         * frame.c: Ditto.
7847         * go32-nat.c: Ditto.
7848         * h8300-tdep.c: Ditto.
7849         * h8500-tdep.c: Ditto.
7850         * hp300ux-nat.c: Ditto.
7851         * hppa-tdep.c: Ditto.
7852         * hppab-nat.c: Ditto.
7853         * hppah-nat.c: Ditto.
7854         * hppam3-nat.c: Ditto.
7855         * hpux-thread.c: Ditto.
7856         * i386-linux-nat.c: Ditto.
7857         * i386-linux-tdep.c: Ditto.
7858         * i386-tdep.c: Ditto.
7859         * i386aix-nat.c: Ditto.
7860         * i386b-nat.c: Ditto.
7861         * i386bsd-nat.c: Ditto.
7862         * i386gnu-nat.c: Ditto.
7863         * i386ly-tdep.c: Ditto.
7864         * i386m3-nat.c: Ditto.
7865         * i386mach-nat.c: Ditto.
7866         * i386nbsd-nat.c: Ditto.
7867         * i386v4-nat.c: Ditto.
7868         * i387-nat.c: Ditto.
7869         * i387-tdep.c: Ditto.
7870         * i960-tdep.c: Ditto.
7871         * ia64-aix-nat.c: Ditto.
7872         * ia64-linux-nat.c: Ditto.
7873         * ia64-tdep.c: Ditto.
7874         * infptrace.c: Ditto.
7875         * infrun.c: Ditto.
7876         * irix4-nat.c: Ditto.
7877         * irix5-nat.c: Ditto.
7878         * lin-lwp.c: Ditto.
7879         * lin-thread.c: Ditto.
7880         * lynx-nat.c: Ditto.
7881         * m3-nat.c: Ditto.
7882         * m32r-rom.c: Ditto.
7883         * m32r-tdep.c: Ditto.
7884         * m68hc11-tdep.c: Ditto.
7885         * m68k-tdep.c: Ditto.
7886         * m68klinux-nat.c: Ditto.
7887         * m68knbsd-nat.c: Ditto.
7888         * m68knbsd-tdep.c: Ditto.
7889         * m88k-nat.c: Ditto.
7890         * m88k-tdep.c: Ditto.
7891         * mac-nat.c: Ditto.
7892         * mcore-rom.c: Ditto.
7893         * mcore-tdep.c: Ditto.
7894         * mi/mi-main.c: Ditto.
7895         * mips-nat.c: Ditto.
7896         * mips-tdep.c: Ditto.
7897         * mipsm3-nat.c: Ditto.
7898         * mipsv4-nat.c: Ditto.
7899         * mn10200-tdep.c: Ditto.
7900         * mn10300-tdep.c: Ditto.
7901         * monitor.c: Ditto.
7902         * ns32km3-nat.c: Ditto.
7903         * ns32knbsd-nat.c: Ditto.
7904         * ocd.c: Ditto.
7905         * pa64solib.c: Ditto.
7906         * ppc-bdm.c: Ditto.
7907         * ppc-linux-nat.c: Ditto.
7908         * ppc-linux-tdep.c: Ditto.
7909         * ppcbug-rom.c: Ditto.
7910         * ppcnbsd-nat.c: Ditto.
7911         * ptx4-nat.c: Ditto.
7912         * regcache.c: Ditto.
7913         * remote-adapt.c: Ditto.
7914         * remote-array.c: Ditto.
7915         * remote-bug.c: Ditto.
7916         * remote-e7000.c: Ditto.
7917         * remote-eb.c: Ditto.
7918         * remote-es.c: Ditto.
7919         * remote-est.c: Ditto.
7920         * remote-hms.c: Ditto.
7921         * remote-mips.c: Ditto.
7922         * remote-mm.c: Ditto.
7923         * remote-nindy.c: Ditto.
7924         * remote-os9k.c: Ditto.
7925         * remote-rdi.c: Ditto.
7926         * remote-rdp.c: Ditto.
7927         * remote-sds.c: Ditto.
7928         * remote-sim.c: Ditto.
7929         * remote-st.c: Ditto.
7930         * remote-udi.c: Ditto.
7931         * remote-utils.c: Ditto.
7932         * remote-vx.c: Ditto.
7933         * remote-vx29k.c: Ditto.
7934         * remote-vx68.c: Ditto.
7935         * remote-vx960.c: Ditto.
7936         * remote-vxmips.c: Ditto.
7937         * remote-vxsparc.c: Ditto.
7938         * remote.c: Ditto.
7939         * rom68k-rom.c: Ditto.
7940         * rs6000-nat.c: Ditto.
7941         * rs6000-tdep.c: Ditto.
7942         * sh-tdep.c: Ditto.
7943         * sh3-rom.c: Ditto.
7944         * sol-thread.c: Ditto.
7945         * solib-svr4.c: Ditto.
7946         * somsolib.c: Ditto.
7947         * sparc-nat.c: Ditto.
7948         * sparc-tdep.c: Ditto.
7949         * sparcl-tdep.c: Ditto.
7950         * sparclet-rom.c: Ditto.
7951         * sun3-nat.c: Ditto.
7952         * sun386-nat.c: Ditto.
7953         * symm-nat.c: Ditto.
7954         * target.c: Ditto.
7955         * thread-db.c: Ditto.
7956         * thread.c: Ditto.
7957         * tic80-tdep.c: Ditto.
7958         * tracepoint.c: Ditto.
7959         * ultra3-nat.c: Ditto.
7960         * umax-xdep.c: Ditto.
7961         * uw-thread.c: Ditto.
7962         * v850-tdep.c: Ditto.
7963         * v850ice.c: Ditto.
7964         * valops.c: Ditto.
7965         * w65-tdep.c: Ditto.
7966         * w89k-rom.c: Ditto.
7967         * win32-nat.c: Ditto.
7968         * wince.c: Ditto.
7969         * z8k-tdep.c: Ditto.
7970
7971 2001-02-28  Matt Hiller  <hiller@redhat.com>    
7972         
7973         * MAINTAINERS: Add Matt Hiller to Write After Approval list.
7974
7975 2001-02-27  Matt Hiller  <hiller@redhat.com>
7976
7977         * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
7978         (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
7979         mn10300_stab_reg_to_regnum.
7980
7981 Tue Feb 27 16:56:13 2001  David Taylor  <taylor@redhat.com>
7982
7983         * symtab.c (search_symbols): Fix off by one error in test for
7984         error.
7985
7986 2001-02-23  Andrew Cagney  <ac131313@redhat.com>
7987
7988         * config/sparc/sp64linux.mt: New file.
7989         * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
7990         * configure.host: Recognize sparc64-*-linux* as a linux host.
7991
7992         From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
7993         * config/sparc/tm-sp64linux.h: New file.
7994         
7995 2001-02-24  Kevin Buettner  <kevinb@redhat.com>
7996
7997         * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
7998         with call to internal_error().
7999         * dbxread.c (process_one_symbol): Likewise.
8000         * exec.c (build_section_table, xfer_memory): Likewise.
8001         * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
8002         Likewise.
8003         * hpread.c (hpread_type_translate, hpread_read_array_type)
8004         (hpread_type_lookup): Likewise.
8005         * i386-tdep.c (gdb_print_insn_i386): Likewise.
8006         * i960-tdep.c (mem): Likewise
8007         * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
8008         * infptrace.c (child_resume): Likewise.
8009         * infttrace.c (_initialize_infttrace): Likewise.
8010         * language.c (binop_result_type, add_language): Likewise.
8011         * lynx-nat.c (store_inferior_registers): Likewise.
8012         * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
8013         * mdebugread.c (parse_partial_symbols): Likewise.
8014         * monitor.c (monitor_printf_noecho, monitor_printf)
8015         (monitor_dump_regs): Likewise.
8016         * ocd.c (stu_put_packet): Likewise.
8017         * printcmd.c (decode_format, print_scalar_formatted): Likewise.
8018         * remote-bug.c (bug_open): Likewise.
8019         * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
8020         * remote-es.c (es1800_read_bytes): Likewise.
8021         * remote-mips.c (common_breakpoint): Likewise.
8022         * remote-rdp.c (send_rdp): Likewise.
8023         * remote-sds.c (putmessage): Likewise.
8024         * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
8025         Likewise.
8026         * sparcl-tdep.c (sparclite_download): Likewise.
8027         * symtab.c (lookup_partial_symbol): Likewise.
8028         * target.c (push_target, pop_target, initialize_targets): Likewise.
8029         * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
8030         Likewise.
8031         * valprint.c (print_decimal, print_longest, print_longest)
8032         (strcat_longest): Likewise.
8033         * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
8034         * xmodem.c (xmodem_send_packet): Likewise.
8035         * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
8036         * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
8037         * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
8038         (STORE_RETURN_VALUE): Likewise.
8039         * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
8040         * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
8041         * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
8042         Likewise.
8043
8044 2001-02-23  Andrew Cagney  <ac131313@redhat.com>
8045
8046         * CONTRIBUTE: Document how to cite a problem report.
8047         * TODO: Note need to replace CONTRIBUTE with generated file.
8048
8049         * CONTRIBUTE: Mention that patches do not need to include the
8050         generated files gdbarch.h and gdbarch.c.
8051         
8052 2001-02-21  Andrew Cagney  <ac131313@redhat.com>
8053
8054         * value.h (get_saved_register): Move from here.
8055         * frame.h: To here.
8056
8057 2001-02-21  Kevin Buettner  <kevinb@redhat.com>
8058
8059         * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
8060         (in_solib_dynsym_resolve_code): Add declaration.
8061         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
8062         in_solib_dynsym_resolve_code() rather than
8063         in_svr4_dynsym_resolve_code().  Also, removed the ifdefs
8064         which caused this macro to only be defined when
8065         SVR4_SHARED_LIBS is defined.
8066         * solib.c (in_solib_dynsym_resolve_code): New function.
8067         * solist.h (struct target_so_ops): Add new member
8068         in_dynsym_resolve_code.
8069         * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
8070         in_svr4_dynsym_resolve_code.  Also, made static.
8071         (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
8072         member in aix5_so_ops.
8073         * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
8074         in_svr4_dynsym_resolve_code.  Also, added second version
8075         of this function which will be used when SVR4_SHARED_LIBS
8076         is not defined.
8077         (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
8078         member in svr4_so_ops.
8079
8080         * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
8081         config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
8082         config/ia64/xm-aix.h: New files.
8083         * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
8084         (ia64_aix_sigcontext_register_address): New declaration.
8085         (ia64_gdbarch_init): Provide for initialization of 
8086         sigcontext_register_address member of struct tdep when
8087         on target is detected to be running AIX.
8088         * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
8089         this list.
8090
8091 2001-02-20  Kevin Buettner  <kevinb@redhat.com>
8092
8093         * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
8094         * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
8095         for thread support instead of linux-thread.o and lin-thread.o.
8096         * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
8097         ATTACH_LWP): Define to use the following lin-lwp.c functions...
8098         (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
8099         lin_lwp_attach_lwp): Declare.
8100
8101 2001-02-20  Andrew Cagney  <ac131313@redhat.com>
8102
8103         * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
8104         formatting.
8105
8106 2001-02-20  Kevin Buettner  <kevinb@redhat.com>
8107
8108         * solib-aix5.c (solib-svr4.h): Remove include.
8109         (solib_break_names): Delete names which aren't actually
8110         used by AIX5.
8111         (bkpt_names): Remove.
8112         (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
8113         to STREQ() with equivalent calls to strcmp().
8114         (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
8115         aix5_solib_create_inferior_hook): Revise comments.
8116         (enable_break): Remove old ``bkpt_names'' code.
8117
8118 2001-02-19  Andrew Cagney  <ac131313@redhat.com>
8119
8120         * Makefile.in (SFILES): Add frame.c .
8121         (COMMON_OBS): Add frame.o .
8122         (frame.o): New target.
8123
8124         * frame.c (find_saved_register): 
8125         (default_get_saved_register): 
8126         (get_saved_register): 
8127         (read_relative_register_raw_bytes_for_frame): 
8128         (read_relative_register_raw_bytes): Moved to here.
8129         * regcache.c: From here.
8130
8131 2001-02-20  Kevin Buettner  <kevinb@redhat.com>
8132
8133         * solib-aix5.c: New file.
8134
8135 2001-02-20  Martin M. Hunt  <hunt@redhat.com>
8136
8137         * solib.c (info_sharedlibrary_command): Don't assume pointers
8138         are the same size of long, call longest_local_hex_string_custom().
8139
8140         * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
8141         extract_signed_integer() should be called instead of
8142         extract_address().
8143
8144 2001-02-20  Martin M. Hunt  <hunt@redhat.com>   
8145         
8146         * MAINTAINERS: Add Martin Hunt to Write After Approval list.
8147
8148 2001-02-19  Andrew Cagney  <ac131313@redhat.com>
8149
8150         Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
8151         * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
8152         then floating point registers are 8 bytes.
8153
8154 2001-02-19  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
8155
8156         * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to 
8157         accomodate 64-bit addresses.
8158
8159 2001-02-19  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
8160
8161         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
8162         * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
8163         lookup_symbol, when trying to find a symbol with a mangled name,
8164         to avoid infinite recursion.
8165
8166 2001-02-18  Andrew Cagney  <ac131313@redhat.com>
8167
8168         * TODO (5.2): Mention G++ 3.0 ABI.  General cleanups.
8169
8170 2001-02-19  Jonathan Larmour  <jlarmour@redhat.com>
8171
8172         * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
8173         (save_prologue_cache): Ditto.
8174
8175 2001-02-19  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
8176
8177         From: innadadadavida@yahoo.com:
8178         * partial-stab.h (switch): Check that pst is not null
8179         before dereferencing it.
8180
8181 2001-02-19  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
8182
8183         From Andrew Cagney  <cagney@b1.cygnus.com>:
8184         * symfile.c (add_symbol_file_command): Always initialize
8185         my_cleanup using a NULL cleanup.
8186
8187 2001-02-19  Eli Zaretskii  <eliz@is.elta.co.il>
8188
8189         * demangle.c (demangling_style_names): New variable.
8190         (_initialize_demangler): Fill demangling_style_names with the
8191         names of known demangling styles from libiberty_demanglers[].  Use
8192         add_set_enum_cmd instead of add_set_cmd, to get completion on
8193         demangling style names.
8194
8195         * proc-api.c (_initialize_proc_api): Make `procfs-file' use
8196         file-name completion.
8197
8198         * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
8199
8200         * solib.c (_initialize_solib): Ditto for `solib-search-path' and
8201         `solib-absolute-prefix'.
8202
8203         * tracepoint.c (_initialize_tracepoint): Ditto for
8204         `save-tracepoints'.
8205
8206         * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
8207
8208         * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
8209         file-name completion.
8210
8211         * infcmd.c (_initialize_infcmd): Make the following commands use
8212         the file-name completer: `tty', `args', `path', `paths', and
8213         `run'.
8214
8215 2001-02-18  Eli Zaretskii  <eliz@is.elta.co.il>
8216
8217         * go32-nat.c: Include i387-nat.h.
8218         (fetch_register): New function, uses some of the guts of
8219         go32_fetch_registers and calls i387_supply_register.
8220         (go32_fetch_registers): Most of the code moved into
8221         fetch_register.  Use i387_supply_fsave.
8222         (store_register): Use i387_fill_fsave instead of custom code.
8223         (go32_store_registers): Use i387_fill_fsave.
8224
8225         * Makefile.in (go32-nat.o): Depend on i387-nat.h.
8226
8227         * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
8228
8229         * completer.c (gdb_completer_file_name_break_characters): Remove
8230         slash from file-name break characters.
8231         [__MSDOS__]: Special definition for DOS/Windows file names.
8232         (line_completion_function): When completing on file names, bump
8233         `p' to the first file-name constituent character of `word', before
8234         invoking the completer.
8235
8236 2001-02-17  Mark Kettenis  <kettenis@gnu.org>
8237
8238         * i387-nat.c: Include "i387-nat.h".  Use regnum instead of regno
8239         consistently for parameter names.  Fix comments accordingly.
8240         (i387_supply_register): New function.
8241         (i387_supply_fsave): Implement using i387_supply_register.
8242         * i387-nat.h: Use regnum instead of regno consistently for
8243         parameter names.  Fix comments accordingly.
8244         (i387_supply_register): New prototype.
8245
8246 2001-02-16  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
8247
8248         * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT 
8249         instead of TARGET_PTR_BIT (to support Harvard architectures).
8250
8251 2001-02-16  Andrew Cagney  <ac131313@redhat.com>
8252
8253         From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
8254         * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib 
8255         argument to parameter list and to call in order to conform to 
8256         to_xfer_memory field of struct target_ops.
8257
8258 2001-02-12  Michael Chastain  <chastain@redhat.com>
8259
8260         * somsolib.c (som_solib_add_solib_objfile): Do not use
8261         section relocation feature of syms_from_objfile.  Do my own
8262         section relocation, offsetting each section of the som by
8263         either text_addr - text_link_addr or data_start.
8264
8265 2001-02-16  Andrew Cagney  <ac131313@redhat.com>
8266
8267         * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
8268
8269 2001-02-16  Andrew Cagney  <ac131313@redhat.com>
8270
8271         * MAINTAINERS (paper trail): Update.
8272
8273 2001-02-16  Mark Kettenis  <kettenis@gnu.org>
8274
8275         * target.h (target_fetch_registers): Fix comment.
8276
8277 2001-02-15  Andrew Cagney  <ac131313@redhat.com>
8278
8279         * f-exp.y: Include <ctype.h>.
8280         (parse_number): Ensure that ``i'' is always initialized.
8281
8282 2001-02-14  Jim Kingdon  <jkingdon@engr.sgi.com>
8283
8284         * MAINTAINERS: Add myself to paper trail section.
8285
8286 2001-02-14  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
8287
8288         * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
8289         * configure, config.in: Regenerate.
8290         * corelow.c: Include <sys/file.h> if present.
8291
8292 2001-02-14  Andrew Cagney  <ac131313@redhat.com>
8293
8294         * inflow.c (terminal_ours_1): Initialize ``osigtou''.  Only
8295         declare when have SIGTTOU.
8296
8297 2001-02-14  Eli Zaretskii  <eliz@is.elta.co.il>
8298
8299         * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
8300
8301 2001-02-12  Jim Kingdon  <jkingdon@engr.sgi.com>
8302
8303         * MAINTAINERS: Update my email address.
8304
8305 2001-02-11  Eli Zaretskii  <eliz@is.elta.co.il>
8306
8307         * NEWS: Document that "info symbol" works with COFF debug info and
8308         its variants.
8309
8310         * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
8311         symbols whose SYMBOL_BFD_SECTION is NULL.
8312
8313 2001-02-10  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8314
8315         Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
8316         * xcoffsolib.c (xcoff_solib_address):  Renamed from
8317         pc_load_segment_name.  Return NULL if address is not in a shared
8318         library.  Cleanup shared library name construction, using xasprintf.
8319         Format shared library member names consistent with format in exec.c.
8320         (solib_info):  Format shared library member names consistent with
8321         format in exec.c.
8322         * config/rs6000/nm-rs6000.h:  Replace PC_LOAD_SEGMENT with PC_SOLIB,
8323         using xcoff_solib_address for PC_SOLIB definition.
8324         * stack.c (print_frame):  Remove PC_LOAD_SEGMENT code, no longer
8325         needed.
8326
8327 2001-02-10  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8328
8329         * mipsread.c (read_alphacoff_dynamic_symtab):  Replace alloca calls
8330         with xmalloc calls and cleanups.
8331
8332 2001-02-10  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
8333
8334         * rs6000-nat.c (child_xfer_memory):  Add missing parameter
8335         'struct mem_attrib *' required by 2001-01-23 change.
8336
8337 2001-02-08  Jim Kingdon  <jkingdon@engr.sgi.com>
8338
8339         Updates to "make TAGS":
8340         * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
8341         arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
8342         tahoe-tdep.c.
8343         (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
8344
8345 2001-02-08  Eli Zaretskii  <eliz@is.elta.co.il>
8346
8347         * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
8348
8349 Wed Feb  7 22:39:26 2001  Andrew Cagney  <cagney@redhat.com>
8350
8351         From Dean Luick <luick@cray.com>:
8352         * defs.h (continuation): Remove unused global variable.
8353
8354 Wed Feb  7 22:28:31 2001  Andrew Cagney  <cagney@redhat.com>
8355
8356         * configure.tgt: Remove references to convex, pyramid, altos and
8357         tahoe.
8358         * configure.host: Ditto.
8359         * MAINTAINERS: Ditto.
8360         * NEWS: Update.
8361
8362         * tahoe-tdep.c: Delete obsolete file.
8363         * pyr-xdep.c: Ditto.
8364         * pyr-tdep.c: Ditto.
8365         * convex-tdep.c: Ditto.
8366         * convex-xdep.c: Ditto.
8367         * config/tahoe/xm-tahoe.h: Ditto.
8368         * config/tahoe/tm-tahoe.h: Ditto.
8369         * config/tahoe/tahoe.mt: Ditto.
8370         * config/tahoe/tahoe.mh: Ditto.
8371         * config/pyr/xm-pyr.h: Ditto.
8372         * config/pyr/tm-pyr.h: Ditto.
8373         * config/pyr/pyramid.mt: Ditto.
8374         * config/pyr/pyramid.mh: Ditto.
8375         * config/m68k/xm-altos.h: Ditto.
8376         * config/m68k/tm-altos.h: Ditto.
8377         * config/m68k/altos.mt: Ditto.
8378         * config/m68k/altos.mh: Ditto.
8379         * config/convex/xm-convex.h: Ditto.
8380         * config/convex/tm-convex.h: Ditto.
8381         * config/convex/convex.mt: Ditto.
8382         * config/convex/convex.mh: Ditto.
8383         * config/convex/Convex.notes: Ditto.
8384         * config/arm/xm-arm.h: Ditto.
8385         * config/arm/nm-arm.h: Ditto.
8386         * config/arm/arm.mt: Ditto.
8387         * config/arm/arm.mh: Ditto.
8388         * arm-convert.s: Ditto.
8389         * arm-xdep.c: Ditto.
8390         * altos-xdep.c: Ditto.
8391
8392 Wed Feb  7 19:41:21 2001  Andrew Cagney  <cagney@redhat.com>
8393
8394         * defs.h (internal_error, internal_verror): Add __FILE__ and
8395         __LINE__ parameter.
8396         * utils.c (internal_error, internal_verror): Update.
8397
8398         * v850-tdep.c: Update calls to internal_error.
8399         * utils.c: Ditto.
8400         * ui-out.c: Ditto.
8401         * ui-file.c: Ditto.
8402         * target.h: Ditto.
8403         * symtab.h: Ditto.
8404         * symm-nat.c: Ditto.
8405         * sparc-tdep.c: Ditto.
8406         * source.c: Ditto.
8407         * serial.c: Ditto.
8408         * rs6000-tdep.c: Ditto.
8409         * rs6000-nat.c: Ditto.
8410         * remote.c: Ditto.
8411         * remote-vx.c: Ditto.
8412         * remote-sim.c: Ditto.
8413         * remote-mips.c: Ditto.
8414         * regcache.c: Ditto.
8415         * objfiles.h: Ditto.
8416         * objfiles.c: Ditto.
8417         * mn10300-tdep.c: Ditto.
8418         * mips-tdep.c: Ditto.
8419         * maint.c: Ditto.
8420         * m68k-tdep.c: Ditto.
8421         * m3-nat.c: Ditto.
8422         * language.c: Ditto.
8423         * infptrace.c: Ditto.
8424         * inferior.h: Ditto.
8425         * infcmd.c: Ditto.
8426         * ia64-tdep.c: Ditto.
8427         * i386-tdep.c: Ditto.
8428         * i386-linux-nat.c: Ditto.
8429         * hppah-nat.c: Ditto.
8430         * go32-nat.c: Ditto.
8431         * findvar.c: Ditto.
8432         * f-lang.c: Ditto.
8433         * elfread.c: Ditto.
8434         * event-loop.c: Ditto.
8435         * dwarf2read.c: Ditto.
8436         * dsrec.c: Ditto.
8437         * d30v-tdep.c: Ditto.
8438         * d10v-tdep.c: Ditto.
8439         * cli/cli-setshow.c: Ditto.
8440         * cli/cli-script.c: Ditto.
8441         * ch-exp.c: Ditto.
8442         * breakpoint.c: Ditto.
8443         * ax-gdb.c: Ditto.
8444         * arch-utils.c: Ditto.
8445         * a29k-tdep.c: Ditto.
8446         * gdb_assert.h: Ditto.
8447         * gdbarch.sh: Ditto.
8448         * gdbarch.h, gdbarch.c: Re-generate.
8449         
8450 2001-02-07  Andrew Cagney  <ac131313@redhat.com>
8451
8452         From Mark Kettenis <kettenis@gnu.org>:
8453         * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
8454
8455 2001-02-07  Andrew Cagney  <ac131313@redhat.com>
8456
8457         * remote-sim.c (dump_mem): Cleanup printf format argument.
8458         * MAINTAINERS: Update, mn10300-elf now builds.
8459
8460 2001-02-07  Mark Kettenis  <kettenis@gnu.org>
8461
8462         * event-top.c: Remove duplicate #include <signal.h>.
8463
8464 2001-02-06  Andrew Cagney  <ac131313@redhat.com>
8465
8466         * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
8467         allocated buffer.
8468         (save_inferior_pid): Restore the PID from that tempoary
8469         buffer. Delete the buffer.
8470         * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
8471
8472 2001-02-06  Andrew Cagney  <ac131313@redhat.com>
8473
8474         * MAINTAINERS: Add ``The Obvious Fix Rule''.
8475
8476 2001-02-06  Andrew Cagney  <ac131313@redhat.com>
8477
8478         * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
8479
8480 2001-02-06  Andrew Cagney  <ac131313@cygnus.com>
8481
8482         * gdbarch.sh: Include "gdb_assert.h".
8483         (struct gdbarch): Change ``nr_data'' to unsigned.
8484         (alloc_gdbarch_data, free_gdbarch_data): New functions.
8485         (gdbarch_free): Free the data-pointer vector.  Use xfree to delete
8486         architecture vector.
8487         (struct gdbarch_data, struct gdbarch_data_registration): Move init
8488         method to gdbarch_data.  Add free method, make index unsigned.
8489         (struct gdbarch_data_registry): Make nr unsigned.
8490         (register_gdbarch_data): Add free parameter. Store in
8491         gdbarch_data.
8492         (init_gdbarch_data): Use set_gdbarch_data.
8493         (set_gdbarch_data): New function.
8494         
8495         * gdbarch.h, gdbarch.c: Re-generate.
8496         
8497 2001-02-06  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
8498
8499         * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
8500         fprintf_filtered with correct arguments.
8501
8502 2001-02-06  Michael Snyder  <msnyder@makita.cygnus.com>
8503         Submitted by Paul Hilfinger (hilfingr@gnat.com) 
8504         and Andrei Petrov (and@genesyslab.com).
8505         * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
8506         must be allocated dynamically, since these are no longer constants.
8507         * infcmd.c: Ditto.
8508         * regcache.c: Ditto.
8509         * remote.c: Ditto.
8510         * sol-thread.c: Ditto.
8511         * valops.c: Ditto.
8512         * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
8513         work-around for a missing Sun header file in solaris for sparc64.
8514
8515 2001-02-04  Philip Blundell  <philb@gnu.org>
8516
8517         * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
8518         thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
8519         * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
8520         GET_THREAD_SIGNALS): Define.
8521         * arm-linux-nat.c (fill_gregset): Correct type of argument.
8522         (supply_gregset): Likewise.
8523         (fill_fpregset): Likewise.
8524         (supply_fpregset): Likewise.
8525
8526 Tue Feb  6 11:58:57 2001  David Taylor  <taylor@redhat.com>
8527
8528         * valops.c (value_cast): If casting a scalar to a pointer, do not
8529         issue a message about truncation unless it exceeds the length of
8530         an address, not the length of a pointer.  This is because what the
8531         user gives us is an address, not a pointer, and we will ultimately
8532         convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
8533         to a pointer.  This allows things like "print *(int *)0x01000234"
8534         to work without generating a misleading message on a target having
8535         two byte pointers and four byte addresses.
8536
8537 2001-02-05  Christopher Faylor  <cgf@cygnus.com>
8538
8539         * win32-nat.c: Change PTR to void * throughout.
8540
8541 2001-02-05  J.T. Conklin  <jtc@redback.com>
8542
8543         * signals.h: Removed.
8544         * event-top.c (#include <signal.h>): Changed from signals.h.
8545         * inflow.c: Likewise.
8546         * mac-xdep.c: Likewise.
8547         * ser-pipe.c: Likewise.
8548         * ser-tcp.c: Likewise.
8549         * standalone.c: Likewise.
8550         * top.c: Likewise.
8551         * utils.c: Likewise.
8552         * Makefile.in: Removed signals.h from dependencies.
8553
8554 2001-02-05  Christopher Faylor  <cgf@cygnus.com>
8555
8556         Change suggested by Dean Luick <luick@cray.com>
8557         * inferior.h (step_over_calls_kind): Remove trailing comma from
8558         last enum element.
8559         (step_over_calls): Declare as extern rather than global.
8560
8561 2001-02-05  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
8562
8563         * sh-tdep.c: Update copyright.
8564         (sh_extract_return_value): Rewrite.
8565         (sh3e_sh4_extract_return_value): New function.
8566         (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
8567         version of the function for sh3e and sh4 CPUs.
8568
8569 2001-02-05  Michael Chastain  <chastain@redhat.com>
8570
8571         * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
8572         to conform with interface change.
8573
8574 2001-02-04  Eli Zaretskii  <eliz@is.elta.co.il>
8575
8576         * config/djgpp/fnchange.lst: Tweak to make consistent with the
8577         new files.
8578
8579         * config/djgpp/djconfig.sh: Use explicit absolute file name when
8580         invoking `find'.
8581
8582         * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
8583         UART_FIFO_WORKS is defined.  Otherwise use outportb.
8584         From Francisco Pastor <fpastor.etra-id@etra.es>
8585
8586         * go32-nat.c (go32_xfer_memory): Make the argument list consistent
8587         with target.h's `to_xfer_memory' member.
8588
8589 2001-02-02  J.T. Conklin  <jtc@redback.com>
8590
8591         * ppc-bdm.c (#include <signal.h>): Removed.
8592         * remote-array.c: Likewise.
8593         * remote-bug.c: Likewise.
8594         * remote-e7000.c: Likewise.
8595         * remote-mips.c: Likewise.
8596         * remote-os9k.c: Likewise.
8597         * remote-st.c: Likewise.
8598         * remote-udi.c: Likewise.
8599         * remote-vx29k.c: Likewise.
8600         * remote-vx68.c: Likewise.
8601         * remote-vx960.c: Likewise.
8602         * remote-vxmips.c: Likewise.
8603         * remote-vxsparc.c: Likewise.
8604
8605 2001-02-02  John Moore  <jmoore@redhat.com>
8606
8607         * remote-utils.h (sr_set_device): Changed free() to xfree() where 
8608         appropriate.  Also changed Copyright to include 2001.
8609         * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
8610         * value.h (value_free): Likewise.
8611         * gdbarch.sh (gdbarch_free): Likewise.
8612         * gdbarch.c, gdbarch.h: Regenerated.
8613
8614 2001-02-02  John Moore  <jmoore@redhat.com>
8615
8616         * cli/cli-cmds.c (apropos_command): Changed occurance of free() to 
8617         xfree().  Also changed Copyright to include 2001.
8618
8619 2001-02-02  J.T. Conklin  <jtc@redback.com>
8620
8621         * monitor.c (#include "gdb_wait.h"): Removed.
8622         * ocd.c: Likewise.
8623         * ppc-bdm.c: Likewise.
8624         * remote-adapt.c: Likewise.
8625         * remote-array.c: Likewise.
8626         * remote-bug.c: Likewise.
8627         * remote-e7000.c: Likewise.
8628         * remote-eb.c: Likewise.
8629         * remote-es.c: Likewise.
8630         * remote-mips.c: Likewise.
8631         * remote-mm.c: Likewise.
8632         * remote-nindy.c: Likewise.
8633         * remote-os9k.c: Likewise.
8634         * remote-rdi.c: Likewise.
8635         * remote-rdp.c: Likewise.
8636         * remote-sds.c: Likewise.
8637         * remote-sim.c: Likewise.
8638         * remote-st.c: Likewise.
8639         * remote-udi.c: Likewise.
8640         * remote-vx.c: Likewise.
8641         * remote-vx29k.c: Likewise.
8642         * remote-vx68.c: Likewise.
8643         * remote-vx960.c: Likewise.
8644         * remote-vxmips.c: Likewise.
8645         * remote-vxsparc.c: Likewise.
8646         * remote.c: Likewise.
8647         * ser-pipe.c: Likewise.
8648         * ser-unix.c: Likewise.
8649         * Makefile.in: Updated dependencies.
8650
8651 2001-01-31  David Smith  <dsmith@redhat.com>
8652
8653         * event-loop.c: Change inclusion of string.h to gdb_string.h and
8654         updated the copyright notice.
8655         * ser-pipe.c: Ditto.
8656         * mi/mi-cmds.c: Ditto.
8657         * mi/mi-console.c: Ditto.
8658         * mi/mi-getopt.c: Ditto.
8659         * mi/mi-parse.c: Ditto.
8660
8661 2001-01-31  David Smith  <dsmith@redhat.com>
8662
8663         * MAINTAINERS: Add David Smith to Write After Approval list.
8664
8665 Tue Jan 30 15:43:08 2001  Andrew Cagney  <cagney@cygnus.com>
8666
8667         * cli/cli-utils.c (putchar_filtered): Move function from here.
8668         * utils.c (putchar_filtered): To here.
8669         * cli/cli-utils.h (putchar_filtered): Move declaration from here.
8670         * defs.h (putchar_filtered): To here.
8671         
8672 Tue Jan 30 17:27:11 2001  Andrew Cagney  <cagney@redhat.com>
8673
8674         * configure.in (AC_CHECK_FUNCS): Replace vfork test with
8675         AC_FUNC_VFORK macro.
8676         * config.in, configure: Re-generate.
8677
8678         * gdb_vfork.h: New file.
8679         * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
8680         * fork-child.c (fork_inferior): Ditto.
8681         
8682 Tue Jan 30 17:09:07 2001  Andrew Cagney  <cagney@redhat.com>
8683
8684         * defs.h (strsave): Delete declaration.
8685         * utils.c (strsave): Delete definition.
8686         * TODO (strsave): Update
8687
8688         * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
8689         * sparcl-tdep.c (sparclite_open): Ditto.
8690         * mips-tdep.c (mips_set_processor_type_command):  Ditto.
8691         (_initialize_mips_tdep):  Ditto.
8692         * solib.c (solib_open):  Ditto.
8693         * symfile.c (add_filename_language):  Ditto.
8694         (set_ext_lang_command):  Ditto.
8695         * source.c (init_source_path):  Ditto.
8696         (mod_path):  Ditto.
8697         * sh3-rom.c (sh3_open):  Ditto.
8698         (sh3e_open):  Ditto.
8699         * serial.c (serial_open):  Ditto.
8700         * remote-mips.c (common_open):  Ditto.
8701         * monitor.c (monitor_open):  Ditto.
8702         * m32r-rom.c (m32r_upload_command):  Ditto.
8703         * infcmd.c (path_command):  Ditto.
8704         * f-exp.y (parse_number):  Ditto.
8705         * breakpoint.c (create_longjmp_breakpoint):  Ditto.
8706         (create_thread_event_breakpoint):  Ditto.
8707         * arc-tdep.c (arc_set_cpu_type_command):  Ditto.
8708         (_initialize_arc_tdep):  Ditto.
8709
8710 Tue Jan 30 15:14:26 2001  Andrew Cagney  <cagney@skil>
8711
8712         * cli/cli-script.c (define_command): Check for a bad hook value in
8713         switch statement.
8714
8715 2001-01-30  J.T. Conklin  <jtc@redback.com>
8716
8717         * configure/sh/embed.mt: New file.
8718         * configure/sh/linux.mt: New file.
8719         * configure/sh/sh.mt: Removed.
8720         * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
8721         (sh-*-*): Removed.
8722
8723 2001-01-29  Michael Chastain  <chastain@redhat.com>
8724
8725         * symtab.c (lookup_block_symbol): Use 'namespace' parameter in
8726         symbol comparisons in binary search.
8727
8728 2001-01-27  Christopher Faylor  <cgf@cygnus.com>
8729
8730         * win32-nat.c (child_xfer_memory): Add missing argument required by
8731         2001-01-23 change.
8732
8733 2001-01-27  Mark Kettenis  <kettenis@gnu.org>
8734
8735         * ui-out.c (do_list_end): New function.
8736         (make_cleanup_ui_out_list_end): New function.
8737         * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
8738         * stack.c (print_frame) [UI_OUT]: Call
8739         make_cleanup_ui_out_list_end to make sure we mark the end of the
8740         list if we do a non-local exit.  At the end of the function,
8741         instead of calling ui_out_list_end directly, let do_cleanups
8742         handle it.
8743
8744 2001-01-26  Fernando Nasser  <fnasser@redhat.com>
8745
8746         Fix double parsing of filenames passed as command line arguments
8747         to GDB (causes weird handling of escape characters).
8748         Also, remove dependencies on the CLI from libgdb.
8749         * call-cmds.h: Remove declaration of exec_file_command().
8750         * gdbcore.h: Remove declaration of exec_file_command().
8751         Add declarations for exec_open() and exec_file_clear().
8752         * symfile.h: Add declarations for symbol_file_add_main() and
8753         symbol_file_clear().
8754         * exec.c (exec_open): New function. Implements to_open for exec
8755         targets.
8756         (exec_file_clear): New function. Makes GDB forget about a previously
8757         specified executable file.
8758         (exec_file_attach): Move parsing of arguments from here ...
8759         (exec_file_command): ... to here.
8760         (init_exec_ops): Use exec_open(), not exec_file_command() to
8761         implement to_open for exec targets.
8762         * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
8763         with default values.  Used when the file name has already been parsed.
8764         (symbol_file_clear): New function. Makes GDB forget about previously
8765         read symbols.
8766         (symbol_file_command): Call the above function instead of inline code.
8767         * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
8768         "call-cmds.h".
8769         (captured_main): Call exec_file_attach() and symbol_file_add_main()
8770         instead of exec_file_command() and symbol_file_command().
8771         (captured_main): Add comment.
8772         * corefile.c: Include "symfile.h".
8773         (core_file_command): Call symbol_file_add_main() instead of
8774         symbol_file_command().
8775         (reopen_exec_file): Call exec_open() instead of exec_file_command().
8776         * infcmd.c: Include "symfile.h".
8777         (attach_command): Call symbol_file_add_main() instead of 
8778         symbol_file_command().
8779         * infrun.c: Remove comment about the inclusion of "symfile.h",
8780         not any longer appropriate.
8781         (follow_exec): Call symbol_file_add_main() instead of 
8782         symbol_file_command().
8783         * remote-es.c: Include "symfile.h".
8784         (es1800_load): Call symbol_file_add_main() instead of 
8785         symbol_file_command().
8786         * remote-vx.c: Remove comment about the inclusion of "symfile.h",
8787         not any longer appropriate.
8788         (vx-wait): Call symbol_file_add_main() instead of 
8789         symbol_file_command().
8790         * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
8791         instead of symbol_file_command().
8792         * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
8793         symbol_file_add_main() instead of exec_file_command() and
8794         symbol_file_command().
8795         * Makefile.in: Update dependencies.
8796
8797 2001-01-26  Jeff Holcomb  <jeffh@redhat.com>
8798
8799         * remote-udi.c (udi_open): Change strdup to xstrdup.
8800         * thread.c (thread_apply_all_command): Change strdup to xstrdup.
8801         Update copyright message.
8802         * varobj.c (delete_variable_1): Likewise.
8803
8804         * gdb_string.h: Remove declaration of strdup.  Update copyright
8805         message.
8806         * config/xm-mpw.h: Likewise.
8807         * config/i386/xm-i386mach.h: Likewise.
8808         * config/m68k/xm-apollo68b.h: Likewise.
8809         * config/m68k/xm-hp300bsd.h: Likewise.
8810         * config/rs6000/xm-rs6000.h: Likewise.
8811         * config/vax/xm-vaxult.h: Remove declaration of strdup.
8812         * config/vax/xm-vaxult2.h: Likewise.
8813
8814 2001-01-26  Jeff Holcomb  <jeffh@redhat.com>
8815
8816         * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
8817
8818 2001-01-25  J.T. Conklin  <jtc@redback.com>
8819
8820         * target.c (target_xfer_memory_partial): Return -1 on failure due
8821         to invalid access mode attribute.
8822
8823 2001-01-25  Christopher Faylor  <cgf@cygnus.com>
8824
8825         * win32-nat.c (_initialize_core_win32): Prototype correctly.
8826
8827 2001-01-25  Mark Kettenis  <kettenis@gnu.org>
8828
8829         * config/alpha/tm-fbsd.h: Update copyright.
8830         (USE_STRUCT_CONVENTION): Define in terms of
8831         alphabsd_use_struct_convention.
8832         * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
8833         * alphafbsd-tdep.c: New file.
8834
8835 2001-01-24  Fernando Nasser  <fnasser@redhat.com>
8836
8837         * top.c (print_gdb_version): Update Copyright year.
8838
8839 2001-01-24  J.T. Conklin  <jtc@redback.com>
8840
8841         * dcache.c (dcache_write_line): Fix typo.
8842
8843         * memattr.c (delete_mem_region): Replace free() with xfree().
8844         (mem_number): Add explicit type.
8845
8846         * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
8847         (rw_common): Likewise.
8848
8849 2001-01-24  Fernando Nasser  <fnasser@redhat.com>
8850
8851         * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
8852         for the inferior program arguments.
8853         (run_command, run_no_args_command, init_infcmd)): Use accessor
8854         functions to set the inferior program arguments.
8855         * inferior.h: Add definitions to the accessor functions above.
8856
8857 2001-01-23  Jim Blandy  <jimb@redhat.com>
8858
8859         * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
8860         Implement these correctly, using make_cv_type.
8861
8862 2001-01-23  J.T. Conklin  <jtc@redback.com>
8863
8864         * exec.c (xfer_memory): Add attrib argument.
8865         * infptrace.c (child_xfer_memory): Likewise.
8866         * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
8867         * monitor.c (monitor_xfer_memory): Likewise.
8868         * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
8869         * remote-array.c (array_xfer_memory): Likewise.
8870         * remote-bug.c (bug_xfer_memory): Likewise.
8871         * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
8872         * remote-eb.c (eb_xfer_inferior_memory): Likewise.
8873         * remote-es.c (es1800_xfer_inferior_memory): Likewise.
8874         * remote-mips.c (mips_xfer_memory): Likewise.
8875         * remote-mm.c (mm_xfer_inferior_memory): Likewise.
8876         * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
8877         * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
8878         * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
8879         * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
8880         * remote-sds.c (sds_xfer_memory): Likewise.
8881         * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
8882         * remote-st.c (st2000_xfer_inferior_memory): Likewise.
8883         * remote-udi.c (udi_xfer_inferior_memory): Likewise.
8884         * remote-vx.c (vx_xfer_memory): Likewise.
8885         * remote.c (remote_xfer_memory): Likewise.
8886         * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
8887         * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
8888         * thread-db.c (thread_db_xfer_memory): Likewise.
8889
8890         * target.h (#include "memattr.h"): Added.
8891         (target_ops.to_xfer_memory): Add attrib argument.
8892
8893         * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
8894         * dcache.h (set_dcache_state): Removed declaration.
8895         * dcache.c (set_dcache_state): Removed definition
8896         
8897         * dcache.c: Update module comment, as dcache is now enabled and
8898         disabled with memory region attributes instead of by the global
8899         variable "remotecache".  Add comment describing the interaction
8900         between dcache and memory region attributes.
8901         (dcache_xfer_memory): Add comment describing benefits of moving
8902         cache writeback to a higher level.
8903         (dcache_struct): Removed cache_has_stuff field.  This was used to
8904         record whether the cache had been accessed in order to invalidate
8905         it when it was disabled.  However, this is not needed because the
8906         cache is write through and the code that enables, disables, and
8907         deletes memory regions invalidate the cache.  Add comment which
8908         suggests that we could be more selective and only invalidate those
8909         cache lines containing data from those memory regions.
8910         (dcache_invalidate): Updated.
8911         (dcache_xfer_memory): Updated.
8912         
8913         (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
8914         (dcache_xfer_memory): Removed code that called do_xfer_memory() to
8915         perform a uncached transfer if dcache_enabled_p was clear.  This
8916         function is now only called if caching is enabled for the memory
8917         region.
8918         (dcache_info): Always print cache info.
8919
8920         * target.c (do_xfer_memory): Add attrib argument.
8921         (target_xfer_memory, target_xfer_memory_partial): Break transfer
8922         into chunks defined by memory regions, pass region attributes to
8923         do_xfer_memory().
8924         * dcache.c (dcache_read_line, dcache_write_line): Likewise.
8925
8926         * Makefile.in (SFILES): Add memattr.c.
8927         (COMMON_OBS): Add memattr.o.
8928         (dcache.o): Add target.h to dependencies.
8929         * memattr.c: New file.
8930         * memattr.h: Likewise.
8931
8932         * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
8933         * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
8934         * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
8935         * gdbserver/low-sim.c (#include "defs.h"): Removed.
8936         (mygeneric_load): Rename from generic_load.
8937         
8938         * gdbserver/low-hppabsd.c (#include "server.h"): Added.
8939         (#include "defs.h"): Removed.
8940         (inferior_pid, perror_with_name): Remove declarations.
8941         * gdbserver/low-linux.c: Likewise.
8942         * gdbserver/low-nbsd.c: Likewise.
8943         * gdbserver/low-sparc.c: Likewise.
8944         * gdbserver/low-sun3.c: Likewise.
8945
8946         * i386-stub.c: Re-indent.
8947         * m68k-stub.c: Re-indent.
8948
8949 2001-01-22  Nicholas Duffek  <nsd@redhat.com>
8950
8951         * gdbarch.sh (PARM_BOUNDARY): Define.
8952         * gdbarch.c: Regenerate.
8953         * gdbarch.h: Regenerate.
8954
8955 2001-01-22  J.T. Conklin  <jtc@redback.com>
8956
8957         * ns32k-tdep.c: #include "frame.h"
8958         * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore.  It
8959         appears to have been inadvertantly removed sometime in May 1999.
8960
8961         * Revert 2000-11-09 changes where shared library objects were
8962         moved from NATDEPFILES to TDEPFILES on NetBSD targets.  While
8963         we'd like to be able to debug dynamically linked executables,
8964         this makes it impossible to build a cross debugger on a many
8965         hosts.
8966
8967         * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
8968         * config/i386/nbsdelf.mt: Likewise.
8969         * config/m68k/nbsd.mt: Likewise.
8970         * config/ns32k/nbsd.mt: Likewise.
8971         * config/powerpc/nbsd.mt: Likewise.
8972         * config/sparc/nbsd.mt: Likewise.
8973         * config/sparc/nbsdelf.mt: Likewise.
8974         * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
8975         * config/i386/nbsdelf.mh: Likewise. 
8976         * config/m68k/nbsd.mh: Likewise.
8977         * config/ns32k/nbsd.mh: Likewise.
8978         * config/powerpc/nbsd.mh: Likewise.
8979         * config/sparc/nbsd.mh: Likewise.
8980
8981 2001-01-19  Jason Merrill  <jason@redhat.com>
8982
8983         * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
8984         (process_one_symbol): Likewise.
8985         * dwarfread.c (handle_producer): Likewise.
8986
8987 Thu Jan 18 12:08:57 2001  Andrew Cagney  <cagney@b1.cygnus.com>
8988
8989         * configure.in (build_warnings): Disable -Wuninitialized until GDB
8990         compiles with -Wuninitialized,-Werror.
8991         * configure: Regenerate.
8992
8993         * MAINTAINERS: Add list of buildable targets.
8994
8995 Thu Jan 18 12:48:04 2001  Andrew Cagney  <cagney@b1.cygnus.com>
8996
8997         * defs.h (STRCMP): Delete macro.
8998
8999         * objfiles.c (objfile_relocate): Replace STRCMP with call to
9000         strcmp.
9001         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9002         * symfile.c (compare_symbols):  Ditto.
9003         * standalone.c (open):  Ditto.
9004         * remote-es.c (verify_break):  Ditto.
9005         * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
9006
9007         * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
9008
9009 Thu Jan 18 12:25:06 2001  Andrew Cagney  <cagney@b1.cygnus.com>
9010
9011         * varobj.c (FREEIF): Delete macro.
9012         (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
9013         call.
9014
9015 2001-01-18  Nick Clifton  <nickc@redhat.com>
9016
9017         * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
9018         (arc_print_insn): No bfd available, so pass NULL to
9019         arc_get_disassembler.
9020
9021 2001-01-09  James Ingham  <jingham@inghji.apple.com>
9022
9023          * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
9024          a mangled symbol rather than recursing into lookup_symbol, since
9025          this will just re-unmangle the name & call lookup_symbol_aux -
9026          leading to an infinite recursion.
9027
9028 2001-01-18  Mark Kettenis  <kettenis@gnu.org>
9029
9030         * infcmd.c (print_return_value): Restore another space lost by
9031         switch to UIOUT. ``$NN='' should be ``$NN =''.
9032
9033 Fri Jan 19 02:31:40 2001  Andrew Cagney  <cagney@b1.cygnus.com>
9034
9035         * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
9036         * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
9037         definition in parenthesis.
9038
9039 Fri Jan 19 02:13:40 2001  Andrew Cagney  <cagney@b1.cygnus.com>
9040
9041         From 2000-10-27 Mark Salter <msalter@redhat.com>:
9042         * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
9043         packet.
9044         (remote_insert_hw_breakpoint): Ditto.
9045
9046 2001-01-17  J.T. Conklin  <jtc@redback.com>
9047
9048         * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
9049         (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
9050         * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
9051         * m68knbsd-tdep.c: New file.
9052
9053         * i386nbsd-tdep.c: Remove #if 0'd out #includes.
9054
9055         * m68knbsd-nat.c: #include gdbcore.h.
9056
9057 Wed Jan 17 09:41:58 2001  Andrew Cagney  <cagney@b1.cygnus.com>
9058
9059         * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
9060
9061 2001-01-16  Michael Snyder  <msnyder@cleaver.cygnus.com>
9062
9063         * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
9064         goes away -- just return false (ie. not stopped by watchpoint).
9065         * source.c (openp): Fix typo in comment.
9066
9067 2001-01-12  Nicholas Duffek  <nsd@redhat.com>
9068
9069         * blockframe.c (generic_get_saved_register): Spelling fix.
9070         * frame.h (FRAME_FP): Spelling fix.
9071
9072 Fri Jan 12 18:29:46 2001  Andrew Cagney  <cagney@b1.cygnus.com>
9073
9074         * infcmd.c (print_return_value): Restore space lost by switch to
9075         UIOUT. ``$NN='' should be ``$NN =''.
9076         
9077 2001-01-08  Nicholas Duffek  <nsd@redhat.com>
9078
9079         * regcache.c (set_register_cached, register_buffer,
9080         real_register, pseudo_register fetch_register, store_register):
9081         New functions.
9082         (register_changed, read_relative_register_raw_bytes_for_frame,
9083         registers_changed, registers_fetched, read_register_bytes,
9084         read_register_gen, write_register_gen, read_register,
9085         read_signed_register, write_register, supply_register): Replace
9086         register_valid[] with register_cached() and
9087         set_register_cached().
9088         (read_register_bytes, read_register_gen, write_register_gen,
9089         read_register, read_signed_register, write_register,
9090         supply_register): Replace registers[] with register_buffer().
9091         (read_register_bytes, read_register_gen, read_register,
9092         read_signed_register): Call fetch_register().
9093         (write_register_gen, write_register): Call real_register() and
9094         store_register().
9095         (write_register_bytes): Call store_register().
9096         * value.h (set_register_cached, register_buffer): Prototype.
9097         * remote.c (remote_fetch_registers): Allocate regs[] with a
9098         run-time size.  Replace register_valid[] with
9099         set_register_cached().
9100         (store_register_using_P, remote_store_registers): Replace
9101         registers[] with register_buffer().
9102
9103 2001-01-08  Nicholas Duffek  <nsd@redhat.com>
9104
9105         * regcache.c: Change "write-back" comment to "write-through".
9106         Change "regno" to "regnum".
9107         (read_register, read_signed_register): Remove "raw" from return
9108         value description.
9109         (supply_register): Spelling fix.
9110         * value.h: Change "regno" to "regnum".
9111
9112 2001-01-08  Fernando Nasser  <fnasser@redhat.com>
9113
9114         * Makefile.in (install-gdbtk): Add .itcl files to the list of files
9115         to be installed.
9116
9117 2001-01-04  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
9118
9119         * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
9120
9121 2001-01-04  Nicholas Duffek  <nsd@redhat.com>
9122
9123         * valops.c (VALUE_SUBSTRING_START): Delete.
9124
9125 2001-01-04  Nicholas Duffek  <nsd@redhat.com>
9126
9127         * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
9128         (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
9129         (cli_utils_h): New variable.
9130         (cli/cli-utils.o): New rule.
9131         * cli/cli-utils.c: New file.
9132         * cli/cli-utils.h: New file.
9133
9134 2001-01-04  Nicholas Duffek  <nsd@redhat.com>
9135
9136         * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
9137         REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
9138
9139 2001-01-03  J.T. Conklin  <jtc@redback.com>
9140
9141         * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
9142         comment.
9143
9144 2001-01-02  Michael Snyder  <msnyder@cleaver.cygnus.com>
9145
9146         * sh-tdep.c (sh_default_store_return_value):  Allow for small return type.
9147         (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
9148         non-float types.
9149         * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
9150         Update copyright notice.
9151         
9152 For older changes see ChangeLog-2000
9153 \f
9154 Local Variables:
9155 mode: change-log
9156 left-margin: 8
9157 fill-column: 74
9158 version-control: never
9159 End: