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