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