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