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