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