62381a863eb9787f8388d01968985b17e5d460e3
[binutils-gdb.git] / gdb / ChangeLog
1 2001-08-20 Andrew Cagney <ac131313@redhat.com>
2
3 * gdbtypes.h (struct type): Clarify meaning of field ``length''.
4
5 2001-08-17 Keith Seitz <keiths@redhat.com>
6
7 * varobj.c (varobj_update): Change first parameter to
8 pointer to struct varobj*. This function can delete
9 varobjs, so we need to give callers the new varobj
10 when this happens.
11 (value_of_root): Update "var", too, if "var_handle"
12 changes.
13 * varobj.h (varobj_update): Likewise.
14
15 2001-08-17 Keith Seitz <keiths@redhat.com>
16
17 * Makefile.in (varobj_h): Define.
18 (mi-cmd-var.o): Depends on varobj_h.
19 (gdbtk-varobj.o): Change varobj.h to $(varobj_h).
20
21 2001-08-16 Keith Seitz <keiths@redhat.com>
22
23 * configure.in (GDBTK_SRC_DIR): We must have autoconf
24 give us the absolute path to the source directory.
25 * configure: Regenerated.
26 * Makefile.in (GDBTK_SRC_DIR): Add variable so that
27 autoconf can substitue it in for us.
28 (gdbtk.o): Pass in GDBTK_SRC_DIR instead of srcdir. We
29 really do need an absolute pathname.
30
31 2001-08-15 Keith Seitz <keiths@redhat.com>
32
33 * Makefile.in (GDBTK_VERSION): Set a version number.
34 (GDBTK_LIBRARY): New variable to point to location where
35 gdbtk will install its tcl library. Changed all refereneces
36 to $(datadir)/insight1.0 to $(GDBTK_LIBRARY).
37 (SUBDIR_GDBTK_ALL): Remove "all-gdbtk". No longer needed.
38 (SUBDIR_GDBTK_CLEAN): Remove "clean-gdbtk". No longer needed.
39 (all-gdbtk): Remove.
40 (install-gdbtk): Remove.
41 (gdbtk.o): Pass srcdir to file when compiling.
42
43 2001-08-15 Ian Roxborough <irox@redhat.com>
44
45 * Makefile.in: Changed all references to the install directory
46 "gdbtcl" to read "insight1.0".
47
48 2001-08-15 Corinna Vinschen <vinschen@redhat.com>
49
50 * arch-utils.c (generic_skip_trampoline_code): New function.
51 * arch-utils.h (generic_skip_trampoline_code): Declare external.
52 * gdbarch.c: Regeberated from gdbarch.sh.
53 * gdbarch.h: Ditto.
54 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Multi-arch.
55 * infrun.c: Remove default setting of SKIP_TRAMPOLINE_CODE macro.
56
57 2001-08-14 Daniel Jacobowitz <drow@mvista.com>
58 H.J. Lu (hjl@gnu.org)
59
60 * partial-stab.h: valu should be a CORE_ADDR.
61
62 2001-08-14 H.J. Lu (hjl@gnu.org)
63
64 * dbxread.c (SWAP_SYMBOL): Removed.
65 (INTERNALIZE_SYMBOL): Check sign extended vma.
66
67 2001-08-13 Christopher Faylor <cgf@cygnus.com>
68
69 * top.c (SIGSETJMP): Protect env argument with parentheses.
70 (SIGLONGJMP): Protect env argument with parentheses.
71
72 2001-08-11 Andrew Cagney <ac131313@redhat.com>
73
74 * config/mn10300/mn10300.mt (TM_FILE): Delete.
75 * configure.tgt: Add mn10300 to list of mulit-arch targets.
76 * config/mn10300/tm-mn10300.h: Delete file. Move contents ...
77 * mn10300-tdep.c: To here.
78
79 2001-08-11 Andrew Cagney <ac131313@redhat.com>
80
81 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_VIRTUAL): Make
82 val a DOUBLEST. Use floatformat_to_doublest.
83 (REGISTER_CONVERT_TO_RAW): Ditto. Use foatformat_from_doublest.
84 * config/m88k/tm-m88k.h (REGISTER_CONVERT_TO_VIRTUAL): Ditto.
85 (REGISTER_CONVERT_TO_RAW): Ditto.
86
87 2001-08-11 Andrew Cagney <ac131313@redhat.com>
88
89 * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
90 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and
91 sp_regnum.
92
93 2001-08-11 Andrew Cagney <ac131313@redhat.com>
94
95 * doublest.c (convert_doublest_to_floatformat): Rename
96 floatformat_from_doublest. Make static.
97 (convert_floatformat_to_doublest): Rename floatformat_to_doublest.
98 Make static.
99 (floatformat_to_doublest): New function.
100 (floatformat_from_doublest): New function.
101 (host_float_format, host_double_format, host_long_double_format):
102 New static variables.
103 (store_floating, extract_floating): Always use
104 floatformat_to_doublest and floatformat_from_doublest.
105 * doublest.h (HOST_LONG_DOUBLE_FORMAT): Delete macro.
106
107 2001-08-11 Andrew Cagney <ac131313@redhat.com>
108
109 * config/mn10300/tm-mn10300.h (INIT_FRAME_PC): Delete.
110 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize init_frame_pc.
111
112 2001-08-07 Andrew Cagney <ac131313@redhat.com>
113
114 * target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.
115 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Add.
116 * gdbarch.h, gdbarch.c: Regenerate.
117
118 * arch-utils.h (legacy_virtual_frame_pointer): Declare.
119 * arch-utils.c: Include "gdb_assert.h".
120 (legacy_virtual_frame_pointer): Define.
121 * Makefile.in (arch-utils.o): Depends on gdb_assert.h.
122
123 * tracepoint.c (encode_actions): Make frame_reg an int. Make
124 frame_offset a LONGEST.
125 * ax-gdb.c (gen_frame_args_address): Ditto.
126 (gen_frame_locals_address): Ditto.
127 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize
128 virtual_frame_pointer.
129 (mn10300_virtual_frame_pointer): Make static. Update parameter
130 list to match function signature.
131 * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER): Delete.
132
133 2001-08-10 Keith Seitz <keiths@redhat.com>
134
135 * gdb-events.sh: Add architecture_changed event.
136 * gdbarch.sh: Include gdb-event.h.
137 (gdbarch_update_p): Notify UIs when architecture changes.
138 * gdb-events.h: Regenerated.
139 * gdb-events.c: Regenerated.
140 * gdbarch.c: Regenerated.
141
142 2001-08-10 Michael Snyder <msnyder@redhat.com>
143
144 * regcache.c (legacy_write_register_gen): Don't 'optimize out'
145 a write_register to a pseudo-reg. Target_store_pseudo_register
146 needs to get called, because these regs may be computed and may
147 have side-effects.
148
149 2001-08-10 Keith Seitz <keiths@redhat.com>
150
151 * gdb-events.sh: Deal with event notifications with no
152 arguments.
153
154 2001-08-10 Orjan Friberg <orjanf@axis.com>
155
156 * remote.c (read_frame): Correct off-by-one error in condition.
157
158 2001-08-08 Don Howard <dhoward@redhat.com>
159
160 * stabsread.c (read_type): Add support for const and volatile
161 modifiers.
162
163 2001-08-02 Daniel Jacobowitz <drow@mvista.com>
164
165 * core-regset.c (fetch_core_registers): Remove HAVE_GREGSET_T
166 and HAVE_FPREGSET_T checks. Use gdb_gregset_t and gdb_fpregset_t.
167
168 2001-08-02 Keith Seitz <keiths@redhat.com>
169
170 * defs.h (SLASH_STRING): If not defined, set
171 to "/", regardless of _WIN32, __CYGWIN__, or
172 whatnot.
173
174 2001-08-02 Mark Kettenis <kettenis@gnu.org>
175
176 * cli/cli-decode.h: Include "gdb_regex.h" instead of
177 "gnu-regex.h".
178
179 * NEWS: Update.
180
181 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
182
183 * config/i386/xm-go32.h: Include xm-i386.h.
184 (HOST_BYTE_ORDER, HOST_LONG_DOUBLE_FORMAT): Remove definitions.
185
186 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
187
188 The following changes avoid polluting global namespace with the
189 `enable' and `disable' identifiers, because some platforms define
190 in their system headers symbols with global scope that go by those
191 names.
192
193 * breakpoint.h (enum enable_state): Rename from `enum enable'.
194 Also rename all the enum members to have the "bp_" prefix.
195 (struct breakpoint): Rename the `enable' member to `enable_state'.
196 (enum bpdisp): Rename all members to have the "disp_" prefix.
197
198 * breakpoint.c: All users of `enum enable' and `enum bpdisp'
199 changed.
200 (args_for_catchpoint_enable): Rename the `enable' member to
201 `enable_p'. All users changed.
202
203 * tracepoint.h (enum enable): Remove.
204 (struct tracepoint): The member `enabled' is now `int enabled_p'.
205
206 * tracepoint.c: All users of the `enabled' member changed.
207
208 * printcmd.c (struct display): The `status' member is now an int.
209
210 * memattr.h (struct mem_region): Rename the `status' member to
211 `enabled_p'.
212 (enum enable): Remove.
213
214 * memattr.c: Change all users of the `status' member of struct
215 mem_region to use `enabled_p' instead.
216
217 * infcmd.c (run_stack_dummy): Use disp_del instead of del.
218
219 * go32-nat.c: Remove the kludgey work-around for conflicts between
220 <dos.h> and "breakpoint.h".
221
222 2001-08-02 Corinna Vinschen <vinschen@redhat.com>
223
224 * MAINTAINERS: Add myself to the write-after-approval list.
225 * ser-tcp.c (tcp_open): Use `localhost' as default host if no
226 hostname is given.
227
228 2001-08-01 Andrew Cagney <ac131313@redhat.com>
229
230 * doublest.h (store_floating, floatformat_to_doublest): Make IN
231 paramter a const void pointer.
232 (floatformat_from_doublest): Make IN const, Make OUT a void
233 pointer.
234 * doublest.c (floatformat_to_doublest): Update.
235 (floatformat_from_doublest): Update.
236 (extract_floating): Update.
237
238 2001-07-31 Andrew Cagney <ac131313@redhat.com>
239
240 * defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
241 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
242 (HOST_LONG_DOUBLE_FORMAT, DOUBLEST)
243 (floatformat_to_doublest, floatformat_from_doublest)
244 (floatformat_is_negative, floatformat_is_nan)
245 (floatformat_mantissa, store_floating)
246 (extract_floating): Move declaration from here.
247 * doublest.h: To here. New file.
248 * utils.c (get_field, floatformat_to_doublest, put_field)
249 (ldfrexp, floatformat_from_doublest, floatformat_is_negative)
250 (floatformat_is_nan, floatformat_mantissa)
251 (FLOATFORMAT_CHAR_BIT): Move from here.
252 * doublest.c: To here. New file.
253 * findvar.c (store_floating, extract_floating): Move from here.
254 * doublest.c: To here.
255 * Makefile.in (SFILES): Add doublest.c.
256 (COMMON_OBS): Add doublest.o.
257 (doublest.o): Specify dependencies.
258 (doublest_h): Define.
259
260 * config/m88k/tm-m88k.h: Include "doublest.h".
261 * config/i960/tm-i960.h: Ditto.
262 * config/i386/tm-symmetry.h: Ditto.
263 * rs6000-tdep.c, valarith.c: Ditto.
264 * valprint.c, stabsread.c, sh-tdep.c: Ditto.
265 * ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto.
266 * values.c, arm-tdep.c, arm-linux-tdep.c: Ditto.
267 * alpha-tdep.c, ax.h, expression.h: Ditto.
268 * sh-tdep.c, parse.c, top.c, value.h: Ditto.
269
270 * Makefile.in (arm-tdep.o): Add $(doublest_h).
271 (i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto.
272 (rs6000-tdep.o, stabsread.o, valarith.o): Ditto.
273 (values.o, valprint.o, arm-linux-tdep.o): Ditto.
274 (alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto.
275 (parser_defs_h): Ditto.
276 (expression_h): Add $(doublest_h) and $(symtab_h).
277
278 2001-08-01 Andrew Cagney <ac131313@redhat.com>
279
280 * Makefile.in: Sort header definitions.
281 (parser_defs_h, dis_asm_h, annotate_h, gdbthread_h): Define.
282 Replace parser-defs.h with $(parser_defs_h). Replace $(dis-asm_h)
283 and $(dis-asm.h) with $(dis_asm_h). Replace annotate.h with
284 $(annotate_h). Replace target.h with $(target_h). Replace
285 gdbthread.h with $(gdb_thread_h). Replace symfile.h with $(symfile_h).
286
287 2001-07-31 Mark Kettenis <kettenis@gnu.org>
288
289 * config/i386/xm-i386.h: New file.
290 * config/i386/xm-fbsd.h: Removed.
291 * config/i386/xm-linux.h: Removed.
292 * config/i386/fbsd.mh: Reorganize a bit.
293 (XM_FILE): Set to xm-i386.h instead of xm-fbsd.h.
294 * config/i386/linux.mh (XM_FILE): Set to xm-i386.h insread of
295 xm-linux.h.
296
297 2001-07-30 Jim Blandy <jimb@redhat.com>
298
299 * dwarf2read.c (dwarf2_build_psymtabs_hard): Doc fix.
300
301 2001-07-27 Daniel Jacobowitz <drow@mvista.com>
302
303 * configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
304 Check for SETPGRP_VOID separately if cross-compiling and ISO C
305 headers are available.
306
307 2001-07-30 Mark Kettenis <kettenis@gnu.org>
308
309 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
310 i386_dwarf_reg_to_regnum.
311
312 * i386-tdep.c (i386_register_convert_to_virtual): Replace
313 assertion with a warning if we're asked to convert towards a
314 non-floating-point type. Zero out the the buffer where the data
315 is supposed to be stored in that case.
316
317 2001-07-29 Eli Zaretskii <eliz@is.elta.co.il>
318
319 * config/djgpp/djconfig.sh: Unset CDPATH.
320
321 * go32-nat.c (get_cr3): Temporary disable support for page tables
322 in UMBs, as it is incomplete.
323
324 Support for stepping through longjmp in DJGPP programs:
325
326 * config/i386/tm-go32.h (JB_ELEMENT_SIZE, JB_PC): New macros.
327 (GET_LONGJMP_TARGET): Define to call get_longjmp_target.
328 (get_longjmp_target): Add prototype.
329
330 2001-07-28 Andrew Cagney <ac131313@redhat.com>
331
332 Fix some PID/TPID fallout for HP/UX.
333 From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>:
334 * infttrace.c (ptrace_wait): Match external declaration,
335 and match target_post_wait declaration.
336
337 2001-07-28 Andrew Cagney <ac131313@redhat.com>
338
339 * MAINTAINERS: Add Orjan Friberg as cris target maintainer.
340 (cris): Set --enable-gdb-build-warnings flag to -w.
341
342 2001-07-28 Andrew Cagney <ac131313@redhat.com>
343
344 From 2001-07-23 Andreas Schwab <schwab@suse.de>:
345 * config/m68k/tm-m68k.h (TARGET_LONG_DOUBLE_FORMAT): Define.
346 (TARGET_LONG_DOUBLE_BIT): Define.
347 (REGISTER_VIRTUAL_SIZE): Return 12 for floating point registers.
348 (MAX_REGISTER_VIRTUAL_SIZE): Increase to 12.
349 (REGISTER_VIRTUAL_TYPE): Return builtin_type_long_double for
350 floating point registers.
351 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL)
352 (REGISTER_CONVERT_TO_RAW): Remove.
353 * config/m68k/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define.
354
355 2001-07-26 Andrew Cagney <ac131313@redhat.com>
356
357 * thread.c, breakpoint.c: Include "gdb.h".
358 * Makefile.in (gdb_h): Define.
359 (HFILES_NO_SRCDIR): Add gdb.h.
360 (mi-cmd-break.o, mi-main.o, thread.o)
361 (breakpoint.o): Add dependency on $(gdb_h).
362
363 * defs.h (enum gdb_rc, gdb_breakpoint_query)
364 (gdb_breakpoint, gdb_thread_select)
365 (gdb_list_thread_ids): Move declaration from here ...
366 * gdb.h: To here. New file.
367
368 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
369
370 * Makefile.in (SUBDIR_TUI_OBS): Add tui-out.o, tui-hooks.o.
371 (SUBDIR_TUI_SRCS): Add tui-out.c tui-hooks.c
372 (SFILES): Likewise.
373 (tui-out.o): Define dependencies.
374 (tui-hooks.o): Likewise.
375
376 2001-07-28 Andrew Cagney <ac131313@redhat.com>
377
378 * MAINTAINERS: Update e-mail address of active @cygnus.com
379 maintainers to @redhat.com.
380
381 2001-07-28 Andrew Cagney <ac131313@redhat.com>
382
383 * README (Known bugs): Delete section.
384 (Kernel debugging): Delete section.
385 (Languages other than C): Delete section.
386 (Host/target specific installation notes) New section.
387
388 2001-07-28 Mark Kettenis <kettenis@gnu.org>
389
390 * config/i386/tm-i386.h (STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
391 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): New defines.
392 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New
393 prototypes.
394 * config/i386/tm-fbsd.h, config/i386/tm-i386gnu.h,
395 config/i386/tm-linux.h (STAB_REG_TO_REGNUM): Redefine to call
396 i386_dwarf_reg_to_regnum.
397 * i386-tdep.c (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum):
398 New functions.
399
400 * i386-tdep.c: Include "gdb_assert.h"
401 (i386_register_convert_to_virtual): Fix such that it can handle
402 conversion to any floating-point type. Assert that we are dealing
403 with a floating-point first.
404 (i386_register_convert_to_raw): Assert that TYPE is a
405 floating-point type with length 12.
406
407 2001-07-27 John R. Moore <jmoore@redhat.com>
408
409 * configure.in: Added dependency of gdb on tcl/tk libraries.
410 * Makefile.in: Likewise.
411 * configure: Regenerated with the above using autoconf.
412
413 2001-07-26 Elena Zannoni <ezannoni@redhat.com>
414
415 * sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of
416 NUM_REGS.
417 (SH_DEFAULT_NUM_REGS): Define.
418
419 2001-07-26 Eli Zaretskii <eliz@is.elta.co.il>
420
421 * go32-nat.c (read_memory_region): Make sure the segment limit was
422 indeed set, to work around a Windows 2000 bug.
423
424 2001-07-25 Daniel Jacobowitz <drow@mvista.com>
425
426 * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.
427 * infttrace.c (child_xfer_memory): Likewise.
428 * symm-nat.c (child_xfer_memory): Likewise.
429 * gdbserver/low-hppabsd.c (read_inferior_memory): Likewise.
430 (write_inferior_memory): Likewise.
431 * gdbserver/low-linux.c (read_inferior_memory): Likewise.
432 (write_inferior_memory): Likewise.
433 * gdbserver/low-lynx.c (read_inferior_memory): Likewise.
434 (write_inferior_memory): Likewise.
435 * gdbserver/low-nbsd.c (read_inferior_memory): Likewise.
436 (write_inferior_memory): Likewise.
437 * gdbserver/low-sparc.c (read_inferior_memory): Likewise.
438 (write_inferior_memory): Likewise.
439 * gdbserver/low-sun3.c (read_inferior_memory): Likewise.
440 (write_inferior_memory): Likewise.
441
442 2001-07-25 Eli Zaretskii <eliz@is.elta.co.il>
443
444 * README: Mention how to make gdb.pdf.
445
446 * NEWS: Update.
447
448 2001-07-24 Stephen P. Smith <ischis2@home.com>
449
450 * MAINTAINERS (Stephen P. Smith): Added to write after approval
451 list.
452
453 2001-07-23 Andrew Cagney <ac131313@redhat.com>
454
455 * mips-tdep.c (mips_push_arguments): Add comment explaining
456 problem with LE o32 GCC.
457
458 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
459
460 * config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
461 doesn't understand them.
462
463 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
464
465 * memattr.c (mem_info_command): Reformat output to look more like
466 'info break' output.
467 (_initialize_mem): Improve help.
468
469 2001-07-23 Mark Kettenis <kettenis@gnu.org>
470
471 * configure.in (AC_CHECK_FUNCS): Add setpggrp.
472 (AC_FUNC_SETPGRP): Add.
473 * aclocal.m4, configure, config.in: Regenerated.
474 * inflow.c (gdb_setpgid): Get rid of NEED_POSIX_SETPGID and
475 SETPGRP_ARGS. Always use setpgid if it is available, fall back on
476 setpgrp if it isn't. Use SETPGRP_VOID (defined by autoconf) to
477 distinguish between the two setpgrp flavours.
478 * config/xm-sysv4.h, config/arm/xm-linux.h,
479 config/i386/xm-i386aix.h, config/i386/xm-sco.h,
480 config/i386/xm-linux.h, config/i386/xm-ptx.h,
481 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
482 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h,
483 config/ia64/xm-linux.h (NEED_POSIX_SETPGID): Remove.
484 * config/rs6000/xm-rs6000.h (SETPGRP_ARGS): Remove.
485
486 2001-07-23 Eli Zaretskii <eliz@is.elta.co.il>
487
488 * go32-nat.c (read_memory_region): Set the granularity bit of the
489 allocated segment according to its size, and adjust the limit to
490 be page-aligned if the segment is page-granular.
491
492 * (get_cr3, get_pde, get_pte, display_ptable_entry, go32_pde)
493 (display_page_table, go32_pte, go32_pte_for_address): New functions.
494 (_initialize_go32_nat): Initialize and document them.
495
496 2001-07-22 Mark Kettenis <kettenis@gnu.org>
497
498 * i386gnu-nat.c: Include "i387-nat.h".
499 (struct env387): Removed.
500 (reg_offset): Fix comment.
501 (fetch_fpregs): Use FCTRL_REGNUM and FOP_REGNUM instead of
502 FIRST_FPU_CONTROL_REGNUM and LAST_FPU_CONTROL_REGNUM. Rewrite to
503 use i387_supply_fsave.
504 (gnu_fetch_registers): Remove spurious whitespace.
505 (convert_to_env387): Remove.
506 (store_fpregs): Add argument regno. Use i387_fill_fsave instead
507 of convert_to_env387.
508 (gnu_store_registers): Remove spurious whitespace. Pass REGNO to
509 store_fpregs.
510 * config/i386/i386gnu.mt (TDEPFILES): Add i387-tdep.o.
511 * config/i386/i386gnu.mh (XDEPFILES): Remove i387-tdep.o.
512 (NATDEPFILES): Add i387-nat.o.
513
514 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
515
516 * Makefile.in (ALLDEPFILES): Add m68hc11-tdep.c.
517 (m68hc11-tdep.o): Define dependencies.
518
519 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
520
521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
522
523 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
524
525 * utils.c (init_page_info): Use tui_get_command_dimension.
526 * printcmd.c (disassemble_command): Simplify tui specific code,
527 use tui_is_window_visible, tui_show_assembly.
528
529 2001-07-21 Mark Kettenis <kettenis@gnu.org>
530
531 * i386bsd-nat.c: Do not include <sys/sysctl.h>.
532 (_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific
533 code to ...
534 * i386fbsd-nat.c: ... here. New file.
535 * config/i386/fbsd.mh (NATDEPFILES): Add i386-fbsd.o.
536 * config/i386/nm-fbsd.h (CHILD_RESUME): Define.
537 * Makefile.in (ALLDEPFILES): Add i386fbsd-nat.c.
538 (i386fbsd-nat.o): Add dependencies.
539
540 2001-07-19 Daniel Jacobowitz <drow@mvista.com>
541
542 * signals.c: New file.
543 * Makefile.in: Add signals.o.
544 * target.c (struct signals, target_signal_to_name)
545 (target_signal_from_name, target_signal_from_host)
546 (do_target_signal_to_host, target_signal_to_host_p)
547 (target_signal_to_host, target_signal_from_command): Move to
548 signals.c.
549 (initialize_targets): Move check of struct signals to...
550 * signals.c (_initialize_signals): Here.
551
552 2001-07-19 Andrew Cagney <ac131313@redhat.com>
553
554 * MAINTAINERS: Add Michael Chastain as C++ testsuite maintainer.
555
556 2001-07-19 Andrew Cagney <ac131313@redhat.com>
557
558 From Stephen Smith:
559 * configure.tgt (i*86-*-pe*): New target.
560
561 2001-07-19 Andrew Cagney <ac131313@redhat.com>
562
563 From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:
564 * infttrace.c (child_thread_alive): Fix gdb_tid typo.
565 * somsolib.c (no_shared_libraries): Provide stub.
566 * xcoffsolib.c (no_shared_libraries): Provide stub.
567
568 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
569
570 * Makefile.in (COMMON_OBS): Remove tui-file.o.
571 (SUBDIR_TUI_OBS): Add it here.
572 (SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
573 (main.o): Remove dependency with tui-file.h.
574
575 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
576
577 * Makefile.in (tui-file.o): Update dependencies.
578
579 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
580
581 * top.c (catch_errors): Convert PTR to void * in parameters list.
582 (quit_cover): Ditto.
583
584 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
585
586 * source.c (find_source_lines): Remove tui test, must be replaced
587 by appropriate warning hook.
588 (print_source_lines): Remove tui hacks, must be replaced by cli.
589 (forward_search_command): Remove tui hacks, can be replaced by
590 appropriate calls to identify_source_line when tui scrolls.
591 (reverse_search_command): Likewise.
592
593 2001-07-16 Nick Duffek <nsd@redhat.com>
594
595 * remote.c (init_remote_ops, init_remote_cisco_ops,
596 init_remote_async_ops): Set to_pid_to_str and
597 to_extra_thread_info correctly and in the same order as declared
598 in target.h.
599
600 2001-07-16 Andrew Cagney <ac131313@redhat.com>
601
602 * remote.c: Revert below. Included more than intended.
603
604 2001-07-16 Nick Duffek <nsd@redhat.com>
605
606 * remote.c (init_remote_ops, init_remote_cisco_ops,
607 init_remote_async_ops): Set to_pid_to_str and
608 to_extra_thread_info correctly and in the same order as declared
609 in target.h.
610
611 2001-07-16 Nick Duffek <nsd@redhat.com>
612
613 * findvar.c (read_var_value): Apply value_as_pointer() to
614 addresses retrieved from the target for LOC_BASEREG and
615 LOC_BASEREG_ARG variables.
616
617 2001-07-16 Orjan Friberg <orjanf@axis.com>
618
619 * NEWS: New target CRIS.
620
621 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
622
623 * top.c (show_commands): Remove extern decl of history_get, it's
624 already in readline/history.h.
625
626 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
627
628 * top.c (is_complete_command, init_cmd_lists, init_cli_cmds,
629 execute_user_command, do_setshow_command, get_prompt, init_proc,
630 serial_log_command): Remove extern declarations. Include
631 cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h.
632 * gdbcmd.h (execute_user_command): Remove declaration, it's already
633 in cli/cli-script.h.
634 * command.h (do_setshow_command): Remove declaration, it's already
635 in cli/cli-setshow.h.
636 * infrun.c: Include "cli/cli-script.h" for execute_user_command.
637 * Makefile.in (infrun.o): Update dependencies.
638 (top.o): Ditto.
639 * cli/cli-setshow.h: Add comment for do_setshow_command.
640
641 2001-07-16 Eli Zaretskii <eliz@is.elta.co.il>
642
643 * cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
644 call to chdir on this symbol rather than on __DJGPP__.
645 (CANT_FORK) [__MSDOS__]: Move from here...
646 * defs.h (CANT_FORK) [__MSDOS__]: ...to here.
647 (GLOBAL_CURDIR) [__MSDOS__]: Define.
648
649 2001-07-16 Orjan Friberg <orjanf@axis.com>
650
651 * configure.tgt: Recognise the CRIS architecture.
652 * config/cris/cris.mt: New file for CRIS target.
653 * cris-tdep.c: New file for CRIS target.
654
655 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
656
657 * top.c (quit_cover, float_handler): Move definition up before use.
658 (gdb_init): Move to end of file, to avoid calls to not yet defined
659 functions.
660 Delete prototypes.
661
662 2001-07-14 Andrew Cagney <ac131313@redhat.com>
663
664 * serial.h (SERIAL_ASYNC): Delete.
665 (DEPRECATED_SERIAL_FD): Delete.
666 (SERIAL_DEBUG): Delete.
667 (SERIAL_DEBUG_P): Delete.
668 (SERIAL_DRAIN_OUTPUT): Delete.
669 (SERIAL_FLUSH_OUTPUT): Delete.
670 (SERIAL_FLUSH_INPUT): Delete.
671 (SERIAL_SEND_BREAK): Delete.
672 (SERIAL_RAW): Delete.
673 (SERIAL_GET_TTY_STATE): Delete.
674 (SERIAL_SET_TTY_STATE): Delete.
675 (SERIAL_PRINT_TTY_STATE): Delete.
676 (SERIAL_NOFLUSH_SET_TTY_STATE): Delete.
677 (SERIAL_SETBAUDRATE): Delete.
678 (SERIAL_SETSTOPBITS): Delete.
679 (SERIAL_CAN_ASYNC_P): Delete.
680 (SERIAL_IS_ASYNC_P): Delete.
681 (SERIAL_UN_FDOPEN): Delete.
682 (SERIAL_READCHAR): Delete.
683 (SERIAL_CLOSE): Delete.
684 (SERIAL_FDOPEN): Delete.
685 (SERIAL_OPEN): Delete.
686 * ser-unix.c: Update.
687 * sparclet-rom.c: Update.
688 * remote-bug.c: Update.
689 * dsrec.c: Update.
690 * xmodem.c: Update.
691 * nindy-share/ttyflush.c: Update.
692 * nindy-share/Onindy.c: Update.
693 * utils.c: Update.
694 * serial.c: Update.
695 * remote-nindy.c: Update.
696 * inflow.c: Update.
697 * sparcl-tdep.c: Update.
698 * sh3-rom.c: Update.
699 * remote.c: Update.
700 * remote-utils.c: Update.
701 * remote-st.c: Update.
702 * remote-sds.c: Update.
703 * remote-rdp.c: Update.
704 * remote-os9k.c: Update.
705 * remote-nrom.c: Update.
706 * remote-mips.c: Update.
707 * remote-es.c: Update.
708 * remote-e7000.c: Update.
709 * remote-array.c: Update.
710 * ocd.c: Update.
711 * nindy-share/nindy.c: Update.
712 * monitor.c: Update.
713
714 2001-07-14 Andrew Cagney <ac131313@redhat.com>
715
716 * mn10200-tdep.c: Replace value_ptr with ``struct value *''.
717 * mcore-tdep.c: Ditto.
718 * sparc-tdep.c: Ditto.
719 * sh-tdep.c: Ditto.
720 * rs6000-tdep.c: Ditto.
721 * ppc-linux-tdep.c: Ditto.
722 * m68hc11-tdep.c: Ditto.
723 * ia64-tdep.c: Ditto.
724 * i386-tdep.c: Ditto.
725 * arm-linux-tdep.c: Ditto.
726 * hppa-tdep.c: Ditto.
727 * h8500-tdep.c: Ditto.
728 * fr30-tdep.c: Ditto.
729 * arm-tdep.c: Ditto.
730 * alpha-tdep.c: Ditto.
731 * d30v-tdep.c: Ditto.
732 * d10v-tdep.c: Ditto.
733 * m32r-tdep.c: Ditto.
734 * mips-tdep.c: Ditto.
735 * v850-tdep.c: Ditto.
736
737 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
738
739 * top.c (readline_line_completion_function, noop_completer): Move
740 from here...
741 * completer.c (readline_line_completion_function, noop_completer):
742 ...to here.
743 * gdbcmd.h (readline_line_completion_function, noop_completer):
744 Move declarations from here...
745 * completer.h (readline_line_completion_function, noop_completer):
746 ...to here.
747 * corefile.c: Include completer.h.
748 * source.c: Ditto.
749 * symfile.c: Ditto.
750 * Makefile.in: Update dependencies.
751
752 2001-07-15 Eli Zaretskii <eliz@is.elta.co.il>
753
754 * go32-nat.c (go32_create_inferior): Support command lines longer
755 than 126 characters.
756
757 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
758
759 * NEWS: New target 68HC11/68HC12.
760
761 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
762
763 * utils.c (query): Remove tui hacks; tui must use the query_hook.
764 * top.c (command_loop): Remove tui insert_mode hacks; don't call
765 tuiCleanUp because this must be made with atexit by tui.
766 * symfile.c (symbol_file_command): Remove call to TUIDO
767 * stack.c (show_and_print_stack_frame_stub): Remove tui check;
768 not necessary when using the selected frame hooks.
769 (print_stack_frame_stub): Likewise.
770 (print_frame_info_base): Likewise.
771 (print_frame_info): Likewise.
772 (up_silently_command): Likewise.
773 (down_silently_command): Likewise.
774 (show_stack_frame): Likewise for TUIDO.
775 (select_frame): Likewise.
776 (select_and_print_frame): Likewise.
777 (stack_publish_stopped_with_no_frame): Remove.
778 (select_and_maybe_print_frame): Remove.
779 * main.c (captured_main): Remove tui_fileopen and tuiInit; tui
780 must use the initialize ui hook.
781 * infrun.c (normal_stop): Remove call to TUIDO; tui must use the
782 selected frame hooks.
783 * event-top.c (command_handler): Remove tui insert_mode hack.
784 * defs.h: Remove TUIDO; Only include tui.h.
785 * breakpoint.c (mention): Remove calls to TUIDO.
786 (delete_breakpoint): Remove tui hacks; tui must install
787 the breakpoint hooks.
788
789 2001-07-14 Mark Kettenis <kettenis@gnu.org>
790
791 * config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
792 * config/i386/nm-linux.h: ...to here. Change comments about user
793 area/struct a bit.
794
795 * config/i386/xm-linux.h (HAVE_TERMIOS): Really remove.
796
797 * Makefile.in (ALLDEPFILES): Add i386bsd-nat.c and i386bsd-tdep.c
798 (i386bsd-tdep.o, i386bsd-nat.o): New targets.
799
800 2001-07-13 Elena Zannoni <ezannoni@redhat.com>
801
802 * remote-e7000.c (fetch_regs_from_dump): If register set is null,
803 generate an internal error.
804 (e7000_fetch_registers): Initialize variable 'wanted'.
805 (e7000_wait): Initialize variable 'wanted_nopc'.
806 (e7000_store_register): Fix sprintf compiler warnings.
807 (sub2_from_pc): Ditto.
808 (e7000_open): Close the descriptor, not the name.
809 (e7000_load): Fix compiler warnings.
810 (sub2_from_pc): Ditto.
811 * Makefile.in (remote-e7000.o): Can now compile with -Werror.
812
813 2001-07-13 Mark Kettenis <kettenis@gnu.org>
814
815 * i386bsd-nat.c: Include <signal.h>, <stddef.h> and
816 <sys/sysctl.h>.
817 (store_inferior_registers): Wrap long line.
818 (i386bsd_dr_get_status): Fix typo in comment.
819 (_initialize_i386bsd_nat): New function. * i386bsd-tdep.c: New
820 file. * config/i386/tm-fbsd.h (IN_SIGTRAMP): New define.
821 (i386bsd_in_sigtramp): New prototype.
822 (SIGTRAMP_START, SIGTRAMP_END): Redefine in terms...
823 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): ...these new
824 (external) variables.
825 (SIGCONTEXT_PC_OFFSET): Removed.
826 (FRAME_SAVED_PC): New define.
827 (i386bsd_frame_saved_pc): New function. * config/i386/fbsd.mt
828 (TDEPFILES): Add i386bsd-tdep.o.
829
830 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
831
832 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Use ISO C
833 definition.
834
835 2001-07-13 Mark Kettenis <kettenis@gnu.org>
836
837 * lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
838 are no registered LWPs yet.
839
840 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
841
842 * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
843 function.
844 (CANNOT_STORE_REGISTER): Likewise.
845
846 2001-07-12 Keith Seitz <keiths@redhat.com>
847
848 * remote-rdp.c: Include "serial.h"
849
850 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
851
852 * gdbserver/remote-utils.c (remote_open): Set VMIN to 1
853 in HAVE_TERMIO/HAVE_TERMIOS cases.
854
855 2001-07-12 Mark Kettenis <kettenis@gnu.org>
856
857 * lin-lwp.c (stop_wait_callback): Add support for flushing
858 signals. Use that in favour of the old code to get rid of
859 superfluous SIGINTs.
860 (lin_lwp_wait): Use the new support in stop_wait_callback to
861 flush all but one SIGINT.
862
863 * i386-tdep.c (i386_extract_return_value): Undo 2001-07-11 changes
864 to comment.
865 (i386_store_return_value): Improve comments about storing
866 floating-point return values.
867
868 * config/arm/xm-linux.h, config/i386/xm-linux.h,
869 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
870 config/sparc/xm-linux.h, config/ia64/xm-linux.h (HAVE_TERMIOS):
871 Removed. Taken care of by autoconf and terminal.h.
872
873 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
874
875 * mips-tdep.c (mips_type_needs_double_align): New function.
876 (mips_push_arguments): Align o32 structs to even argument
877 registers if necessary.
878
879 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
880
881 * config/djgpp/fnchange.lst: Add entries for
882 mips-linux-nat.c and mips-linux-tdep.c.
883
884 2001-07-12 Mark Kettenis <kettenis@gnu.org>
885
886 * config/powerpc/xm-linux.h: Fix corrupted file.
887
888 * configure.in: Add check for sigsetjmp.
889 * config/m68k/xm-linux.h (HAVE_SIGSETJMP): Removed.
890 * config/xm-sysv4.h (HAVE_SIGSETJMP): Removed.
891 * configure, config.in: Regenerated.
892
893 2001-07-11 Elena Zannoni <ezannoni@redhat.com>
894
895 * config/sh/tm-sh.h (struct gdbarch_tdep): Add
896 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
897 PR_REGNUM fields.
898
899 * sh-tdep.c (sh_skip_prologue_hard_way): Rename from
900 skip_prologue_hard_way().
901 (skip_prologue_hard_way): Make it a function pointer.
902 (sh_print_register): Use function pointer do_pseudo_register,
903 instead of sh_do_pseudo_register.
904 (sh_do_registers_info): Ditto.
905 (sh_gdbarch_init): Initialize do_pseudo_register.
906 (IS_MOV_TO_R14): Rename from IS_MOV_R14.
907 (skip_prologue_hard_way): Update.
908 (sh_gdbarch_init): Move setting of frame_chain,
909 get_saved_register, init_extra_frame_info, push_arguments,
910 extract_return_value, pop_frame, store_struct_return,
911 extract_struct_value_address, use_struct_convention,
912 init_extra_frame_info to before target specific settings.
913 (sh_gdbarch_init): Initialize new tdep fields
914 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
915 PR_REGNUM.
916 (sh_push_arguments): Use new gdbarch_tdep fields
917 {ARG0,ARGLAST}_REGNUM.
918 (sh_saved_pc_after_call, sh_nofp_frame_init_saved_regs,
919 sh_init_extra_frame_info, sh_push_return_address,
920 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
921 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update to use
922 gdbarch_tdep->PR_REGNUM.
923 (dr_reg_base_num, fv_reg_base_num): Move to earlier in the file.
924
925 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
926
927 * config/mips/tm-linux.h: Include "tm-linux.h" instead of copying
928 from it. Move definitions of REALTIME_LO and REALTIME_HI above
929 include.
930
931 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
932
933 * MAINTAINERS: List myself for MIPS/Linux
934 port.
935
936 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
937
938 * gdbserver/remote-utils.c (remote_open): Only
939 check for F_SETOWN if we had F_SETFL and FASYNC.
940
941 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
942
943 From Michael Fedrowitz <michael.fedrowitz@informatik.uni-ulm.de>:
944
945 * config/m68k/linux.mh: Remove core-regset.o.
946 * m68klinux-nat.c: Fix comment.
947 (supply_gregset): Change argument to elf_gregset_t *.
948 (supply_fpregset): Change argument to elf_fpregset_t *.
949 (fetch_core_registers): New function.
950 (linux_elf_core_fns): Define.
951 (_initialize_m68k_linux_nat): New function.
952
953 2001-07-11 Andrew Cagney <ac131313@redhat.com>
954
955 * configure.tgt: Mark d10v as pure multi-arch.
956 * config/d10v/tm-d10v.h: Delete file.
957 * config/d10v/d10v.mt (TM_FILE): Delete.
958
959 2001-07-10 Andrew Cagney <ac131313@redhat.com>
960
961 * serial.h (typedef serial_t): Delete. Replace all references to
962 serial_t with `struct serial *'.
963 * serial.c: Update.
964 * nindy-share/ttyflush.c: Update.
965 * nindy-share/ttyflush.c: Update.
966 * nindy-share/Onindy.c: Update.
967 * nindy-share/nindy.c: Update.
968 * remote-rdp.c: Update.
969 * remote-sds.c: Update.
970 * remote-st.c: Update.
971 * remote-nindy.c: Update.
972 * remote-mips.c: Update.
973 * remote-e7000.c: Update.
974 * remote-os9k.c: Update.
975 * remote-nrom.c: Update.
976 * remote-es.c: Update.
977 * remote-array.c: Update.
978 * ocd.c: Update.
979 * mon960-rom.c: Update.
980 * dsrec.c: Update.
981 * inflow.c: Update.
982 * ser-e7kpc.c: Update.
983 * sparclet-rom.c: Update.
984 * srec.h: Update.
985 * ser-tcp.c: Update.
986 * ser-go32.c: Update.
987 * sparcl-tdep.c: Update.
988 * w89k-rom.c: Update.
989 * utils.c: Update.
990 * sh3-rom.c: Update.
991 * remote.c: Update.
992 * ser-pipe.c: Update.
993 * ser-unix.c: Update.
994 * ser-unix.h: Update.
995 * xmodem.c: Update.
996 * xmodem.h: Update.
997
998 2001-07-11 J.T. Conklin <jtc@redback.com>
999
1000 From Greg McGary <greg@mcgary.org>:
1001 * gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
1002 of SIGIO.
1003 (input_interrupt): Don't block on read, in case we got redundant
1004 SIGIO. Don't gripe about redundant SIGIO.
1005 * gdbserver/low-hppabsd.c (mywait): Use waitpid(). Enable SIGIO
1006 handler while waiting.
1007 * gdbserver/low-linux.c (mywait): Likewise.
1008 * gdbserver/low-nbsd.c (mywait): Likewise.
1009 * gdbserver/low-sparc.c (mywait): Likewise.
1010
1011 2001-07-11 Keith Seitz <keiths@redhat.com>
1012
1013 * infrun.c (print_stop_reason): Add missing uiout field
1014 "reason" for SIGNAL_RECEIVED case.
1015
1016 2001-07-11 Mark Kettenis <kettenis@gnu.org>
1017
1018 * config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
1019 Remove unused macro's.
1020
1021 * config/powerpc/nm-linux.h (NO_SYS_REG_H): Remove, it's no longer
1022 used.
1023
1024 2001-07-11 Eli Zaretskii <eliz@is.elta.co.il>
1025
1026 * go32-nat.c (info_dos_cmdlist): New variable.
1027 (go32_info_dos_command): New function.
1028 (_initialize_go32_nat): Convert all DOS-specific commands into
1029 subcommands of "info dos". Suggested by Andrew Cagney
1030 <ac131313@redhat.com>.
1031
1032 2001-07-11 Mark Kettenis <kettenis@gnu.org>
1033
1034 * config/nm-linux.h: Fix comments.
1035
1036 * thread-db.c (enable_thread_event_reporting): Correct warning
1037 message about getting thread death breakpoint.
1038 Reported by John S Kallal <jskallal@home.com>.
1039
1040 * i386-tdep.c (i386_extract_return_value): "Fix" comment.
1041 (i386_store_return_value): Frob FPU status and tag word to make
1042 sure the return value is the only value on the FPU stack.
1043
1044 * config/tm-linux.h: Do not include <signal.h>. Instead provide
1045 reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
1046 already defined.
1047 * config/nm-linux.h: Include <signal.h>.
1048 [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
1049 (__SIGRTMAX + 1) respectively.
1050
1051 2001-07-10 Andrew Cagney <ac131313@redhat.com>
1052
1053 * mcore-rom.c: Include "serial.h".
1054 * Makefile.in (mcore-rom.o): Depends on "serial.h".
1055
1056 2001-07-10 Andrew Cagney <ac131313@redhat.com>
1057
1058 * Makefile.in (remote-bug.o): Depends on serial.h.
1059 * remote-bug.c: Include "serial.h".
1060 * MAINTAINERS: Mark m88k target as buildable.
1061 * TODO: Update.
1062
1063 2001-07-10 Jim Blandy <jimb@redhat.com>
1064
1065 Clean up the D10V port so that GDB and the target program no
1066 longer disagree on how big pointers are.
1067 * findvar.c (value_from_register): Remove special case code for D10V.
1068 * printcmd.c (print_frame_args): Same.
1069 * valops.c (value_at, value_fetch_lazy): Same.
1070 * values.c (unpack_long): Same.
1071 * gdbarch.sh: Changes to effect the following:
1072 * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
1073 gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
1074 set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
1075 gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
1076 set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
1077 gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
1078 set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
1079 gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
1080 set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
1081 gdbarch_d10v_convert_daddr_to_raw_ftype,
1082 gdbarch_d10v_convert_daddr_to_raw,
1083 set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
1084 gdbarch_d10v_convert_iaddr_to_raw_ftype,
1085 gdbarch_d10v_convert_iaddr_to_raw,
1086 set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
1087 * gdbarch.c: Delete the corresponding definitions.
1088 (struct gdbarch): Delete members d10v_make_daddr,
1089 d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
1090 d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
1091 (startup_gdbarch): Remove initializers for the above.
1092 (verify_gdbarch, gdbarch_dump): Don't verify or dump them any
1093 more.
1094 * d10v-tdep.c (d10v_register_virtual_type): Rather that
1095 claiming the stack pointer and PC are 32 bits long (which they
1096 aren't), say that the stack pointer is an int16_t, and the
1097 program counter is a function pointer. This allows the rest
1098 of GDB to make the appropriate conversions between the code
1099 pointer format and real addresses.
1100 (d10v_register_convertible, d10v_register_convert_to_virtual,
1101 d10v_register_convert_to_raw): Delete function; no registers
1102 are convertible now, so we use
1103 generic_register_convertible_not instead.
1104 (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
1105 methods.
1106 (d10v_push_arguments, d10v_extract_return_value): Remove special
1107 cases for code and data pointers.
1108 (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
1109 the target agree on how large pointers are. Say that addresses
1110 are 32 bits long. Register the address_to_pointer and
1111 pointer_to_address conversion functions. Since no registers are
1112 convertible now, register generic_register_convertible_not as the
1113 gdbarch_register_convertible method instead of
1114 d10v_register_convertible. Remove registrations for
1115 d10v_register_convert_to_virtual,
1116 d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
1117 gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
1118 gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
1119 gdbarch_d10v_convert_iaddr_to_raw.
1120
1121 * printcmd.c (print_scalar_formatted): If we are printing an
1122 address, remember that TARGET_ADDR_BIT is not always equal to
1123 TARGET_PTR_BIT.
1124
1125 * valops.c (value_cast): When casting a pointer to an integer,
1126 don't convert it to an address.
1127
1128 2001-07-10 Andrew Cagney <ac131313@redhat.com>
1129
1130 * remote-utils.h (struct serial): Declare as opaque. Remove
1131 include of "serial.h".
1132 * Makefile.in (remote_utils_h): Update.
1133
1134 * monitor.h (struct serial): Declare as opaque. Remove include of
1135 "serial.h".
1136 (struct monitor_ops): Replace serial_t with `struct serial *'.
1137 * monitor.c (monitor_desc): Ditto.
1138
1139 2001-07-10 Daniel Jacobowitz <drow@mvista.com>
1140
1141 * mips-linux-tdep.c: New file.
1142 * mips-linux-nat.c: New file.
1143 * config/mips/linux.mh: New file.
1144 * config/mips/linux.mt: New file.
1145 * config/mips/xm-linux.h: New file.
1146 * config/mips/nm-linux.h: New file.
1147 * config/mips/tm-linux.h: New file.
1148 * configure.host: Recognize mips*-*-linux*.
1149 * configure.tgt: Likewise.
1150 * NEWS: Mention mips*-*-linux* port.
1151
1152 2001-07-09 Andrew Cagney <ac131313@redhat.com>
1153
1154 * serial.h (struct serial): Rename `struct _serial_t'.
1155 * serial.c (XMALLOC): Define.
1156 (serial_open): Update. Use XMALLOC.
1157 (serial_fdopen): Ditto.
1158
1159 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1160
1161 * gdbtypes.h (builtin_type_void_data_ptr): Rename
1162 builtin_type_ptr.
1163 * gdbtypes.c (builtin_type_void_data_ptr): Update.
1164 (build_gdbtypes): Update.
1165 (_initialize_gdbtypes): Update.
1166 * values.c (value_as_pointer): Update.
1167 * utils.c (host_pointer_to_address): Update.
1168 (address_to_host_pointer): Update.
1169
1170 2001-07-08 Andrew Cagney <ac131313@redhat.com>
1171
1172 * remote-udi.c (udi_wait): Make type, instead of name, of first
1173 parameter a ptid_t.
1174
1175 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1176
1177 * ser-mac.c: Make obsolete.
1178 * Makefile.in (ser-mac.o): Ditto.
1179
1180 2001-07-08 Eli Zaretskii <eliz@is.elta.co.il>
1181
1182 * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
1183 (read_memory_region, get_descriptor, display_descriptor)
1184 (go32_sldt, go32_sgdt, go32_sidt): New functions.
1185 (top-level): Include ctype.h, utsname.h, dos.h, and go32.h. Ifdef
1186 away `disable' from dos.h, since breakpoint.h defines an enum
1187 member of the same name, and GCC 2.7.2 barfs.
1188 (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
1189 dos-gdt, and dos-idt, all of them in the "info" class
1190
1191 2001-07-07 Kevin Buettner <kevinb@redhat.com>
1192
1193 * procfs.c (create_procinfo): Allocate space for saved_entryset
1194 and saved_exitset.
1195 (destroy_one_procinfo): Free space allocated to saved_entryset
1196 and saved_exitset.
1197
1198 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1199
1200 * TODO (5.1): Update.
1201
1202 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1203
1204 * symtab.c (main_name): New function.
1205 (set_main_name): New function.
1206 * symtab.h: Declare.
1207 * TODO: Update
1208
1209 From 2000-03-05 Anthony Green <green@redhat.com>:
1210 * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
1211 setting main_name.
1212 * blockframe.c (inside_main_func): Use main_name instead of
1213 "main".
1214 * symtab.c (find_main_psymtab): Ditto.
1215 * source.c (select_source_symtab): Ditto.
1216 * nlmread.c (nlm_symfile_read): Ditto.
1217 * rs6000-tdep.c (skip_prologue): Ditto.
1218
1219 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1220
1221 * TODO: Convert most items into PRs.
1222
1223 2001-07-07 Mark Kettenis <kettenis@gnu.org>
1224
1225 * lin-lwp.c (status_to_str): New function.
1226 (lin_lwp_wait): Use it to print debug messages where appropriate.
1227
1228 2001-07-06 Michael Chastain <chastain@redhat.com>
1229
1230 * i387-tdep.c (print_i387_value): Fix pointer glitch.
1231
1232 2001-07-07 Mark Kettenis <kettenis@gnu.org>
1233
1234 * lin-lwp.c (count_events_callback): Fix formatting. Turn check
1235 commented with "paranoia" into gdb_assert.
1236 (select_event_lwp_callback): Likewise.
1237 (cancel_breakpoints_callback): Bail out early if LP is the event
1238 LWP. Add comment about backup up breakpoints. Fix formatting and
1239 debug message.
1240 (select_event_lwp): Make solely repsonsible for switching event
1241 LWP. Fix formatting and remove bogus "ERROR" debug message.
1242 Don't backup breakpoints from here.
1243 (lin_lwp_wait): Don't touch LP->status, let select_event_lwp
1244 handle that. Only call select_event_lwp if we're not waiting for
1245 a specific LWP, i.e. when PID == -1. Backup breakpoints from here.
1246
1247 2001-07-06 Michael Snyder <msnyder@redhat.com>
1248
1249 * procfs.c (procfs_resume): Silence noisy warning.
1250
1251 2001-06-12 Michael Snyder <msnyder@redhat.com>
1252
1253 * lin-lwp.c: Prevent thread starvation by using a monte carlo
1254 method to choose which of several event threads to handle next.
1255
1256 (stop_wait_callback): Defer pushback of breakpoint events until
1257 later; add SIGTRAP events to the queue of unhandled events.
1258 Keep calling waitpid until SIGSTOP retrieved. If more than one
1259 non-SIGSTOP event is retrieved, push them back onto the process
1260 queue using kill.
1261 (count_events_callback, select_singlestep_lwp_callback,
1262 select_event_lwp_callback, cancel_breakpoints_callback,
1263 select_event_lwp): New functions. Implement monte carlo method
1264 for selecting which of several SIGTRAP threads to handle next.
1265 Push back the breakpoint event for all threads other than the
1266 selected one.
1267 (lin_lwp_wait): Call select_event_lwp to decide which of several
1268 sigtrapped lwps to handle next.
1269 (resume_callback): Disable code that attempts to handle
1270 step_resume breakpoints. Let core gdb handle this.
1271
1272 2001-07-06 Jim Blandy <jimb@redhat.com>
1273
1274 * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
1275 * gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
1276 (build_gdbtypes): Initialize it.
1277 (_initialize_gdbtypes): Swap it.
1278
1279 2001-07-04 Daniel Jacobowitz <drow@mvista.com>
1280
1281 * mips-tdep.c (mips32_op): Correct offset.
1282 (itype_op): Likewise.
1283 (itype_rs): Fix formatting.
1284 (itype_immediate): Fix formatting.
1285 (jtype_op): Correct offset.
1286 (jtype_target): Fix formatting.
1287 (rtype_op): Correct offset.
1288 (rtype_rs): Fix formatting.
1289 (rtype_rt): Likewise.
1290 (rtype_rd): Likewise.
1291 (rtype_shamt): Likewise.
1292 (rtype_funct): Likewise.
1293
1294 (mips32_next_pc): Fix formatting and comments. Recognize
1295 coprocessor 1 branches. Check the correct field for BLT family
1296 branches. Use itype_rt instead of itype_rs for the second register
1297 of a BNE or BNEL branch. Move (unreachable) default case.
1298
1299 2001-07-04 Andrew Cagney <ac131313@redhat.com>
1300
1301 * ui-out.h (struct ui_out_impl): Add field is_mi_like_p.
1302 (ui_out_is_mi_like_p): Declare.
1303 * ui-out.c (ui_out_is_mi_like_p): Define.
1304 (default_ui_out_impl): Initialize is_mi_like_p to zero.
1305 * cli-out.c (cli_ui_out_impl): Ditto.
1306 * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p.
1307 (watchpoint_check, print_one_breakpoint, mention): Ditto.
1308 * infrun.c (print_stop_reason, normal_stop): Ditto.
1309
1310 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
1311
1312 * mips-tdep.c (mips_software_single_step): New function.
1313 * config/mips/tm-mips.h: Add prototype for
1314 mips_software_single_step.
1315
1316 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
1317
1318 * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
1319 of greg_t.
1320 (fill_gregset): Likewise.
1321
1322 2001-07-05 Andrew Cagney <ac131313@redhat.com>
1323
1324 * objfiles.c (open_mapped_file): Use lbasename instead of
1325 basename.
1326
1327 2001-07-05 Jim Blandy <jimb@redhat.com>
1328
1329 * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
1330 show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
1331 d10v_write_sp, d10v_write_fp, d10v_read_fp,
1332 d10v_push_return_address): Call the functions d10v_make_daddr,
1333 d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
1334 d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
1335 D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
1336 D10V_CONVERT_DADDR_TO_RAW.
1337
1338 * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
1339
1340 2001-07-05 Mark Kettenis <kettenis@gnu.org>
1341
1342 * config/i386/xm-go32.h (HOST_I386): Removed.
1343 * config/i386/xm-linux.h (HOST_I386): Removed.
1344
1345 2001-07-04 Mark Kettenis <kettenis@gnu.org>
1346
1347 * i387-tdep.c (print_i387_value): Add extra space after final full
1348 stop in comment.
1349
1350 2001-07-04 Andrew Cagney <ac131313@redhat.com>
1351
1352 * TODO (5.1): Update. Doco changes committed.
1353
1354 2001-06-29 Andrew Cagney <ac131313@redhat.com>
1355
1356 * config/arm/tm-arm.h: Include "floatformat.h".
1357
1358 2001-06-29 Andrew Cagney <ac131313@redhat.com>
1359
1360 * i387-tdep.c: Include "gdb_assert.h".
1361 (print_i387_value): Use extract_floating to extract the FP value
1362 from a zero padded local buffer.
1363
1364 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1365
1366 * TODO: Delete all thread items. The thread code was overhauled.
1367
1368 2001-07-04 Elena Zannoni <ezannoni@redhat.com>
1369
1370 * memattr.c (create_mem_region): Move n to next memory region,
1371 to avoid infinite loop.
1372
1373 * memattr.h: Add copyright statement.
1374 * memattr.c: Ditto.
1375
1376 2001-07-04 Jim Blandy <jimb@redhat.com>
1377
1378 * dwarf2read.c (struct partial_die_info): New member: has_pc_info.
1379 (read_partial_die): Delete fourth argument; we return this info in
1380 the struct partial_die_info object itself now.
1381 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
1382 has_pc_info field of the partial die struct, rather than passing a
1383 variable by reference to read_partial_die.
1384
1385 * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
1386 code in loop condition.
1387
1388 2001-07-03 Michael Snyder <msnyder@redhat.com>
1389
1390 * thread_db (find_new_threads_callback, thread_db_thread_alive,
1391 attach_thread): Update comments.
1392
1393 2001-06-29 Ken Whaley <ken@believe.com>
1394
1395 * thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
1396 to TD_THR_UNKNOWN when looking for defunct zombie threads.
1397 (thread_db_thread_alive): Ditto.
1398 (find_new_threads_callback): Ditto.
1399
1400 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
1401
1402 * MAINTAINERS: Add myself to the write-after-approval list.
1403
1404 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
1405
1406 * solib-svr4.c: Include "elf/mips.h".
1407 (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
1408
1409 2001-07-02 Jim Blandy <jimb@redhat.com>
1410
1411 * dwarf2read.c (read_comp_unit, sibling_die, dump_die,
1412 dump_die_list, store_in_ref_table, follow_die_ref): Make these
1413 static; they're private functions.
1414
1415 2001-07-01 Mark Elbrecht <snowball@bigfoot.com>
1416
1417 * coffread.c (coff_symfile_read): Parse DWARF2 info if present.
1418
1419 2001-06-28 Elena Zannoni <ezannoni@redhat.com>
1420
1421 * TODO: Add import of readline 4.2 as a gdb 5.2 task.
1422
1423 2001-06-29 Andrew Cagney <ac131313@redhat.com>
1424
1425 * config/djgpp/fnchange.lst: Sort.
1426
1427 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1428
1429 * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
1430 mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
1431
1432 2001-06-29 Andreas Jaeger <aj@suse.de>
1433
1434 * MAINTAINERS: Add myself to the write-after-approval list.
1435
1436 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1437
1438 * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro.
1439 (get_hex_word): Don't use HOST_BYTE_ORDER.
1440 (array_fetch_registers): Add variable ``reg''. Use
1441 store_unsigned_integer to byte-swap the register. Delete unused
1442 local ``regs''.
1443
1444 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1445
1446 * MAINTAINERS: Add Per Bothner to Java maintainers.
1447
1448 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1449
1450 * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
1451 * rdi-share/hostchan.h (__unix): Hack, provide a default value.
1452 * rdi-share/host.h (__unix): Hack, define when __NetBSD__.
1453 * TODO: Update.
1454 * MAINTAINERS: Update. arm-elf builds.
1455
1456 2001-06-28 Jim Blandy <jimb@redhat.com>
1457
1458 * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.
1459
1460 * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention,
1461 d10v_breakpoint_from_pc, d10v_register_byte,
1462 d10v_register_raw_size, d10v_register_virtual_size,
1463 d10v_register_virtual_type, d10v_register_convertible,
1464 d10v_register_convert_to_virtual, d10v_register_convert_to_raw,
1465 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
1466 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
1467 d10v_store_struct_return, d10v_store_return_value,
1468 d10v_extract_struct_value_address, d10v_frame_saved_pc,
1469 d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue,
1470 d10v_frame_chain, d10v_frame_init_saved_regs,
1471 d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc,
1472 d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp,
1473 d10v_push_return_address, d10v_push_arguments,
1474 d10v_extract_return_value): Make these functions static.
1475
1476 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1477
1478 From Fernando Nasser:
1479 * infrun.c (handle_inferior_event): Handle "nexti" inside function
1480 prologues.
1481
1482 2001-06-28 Michael Snyder <msnyder@redhat.com>
1483
1484 * infrun.c (handle_inferior_event): Replace prev_pc test in all
1485 calls to bpstat_stop_status (removed in 1999-09-24). This test
1486 helps distinguish stepping over a breakpoint trap from stepping
1487 thru a jump to the instruction after a breakpoint trap.
1488 (handle_inferior_event): Don't bother writing the PC if
1489 DECR_PC_AFTER_BREAK is zero (optimization).
1490 * breakpoint.c (bpstat_stop_status): Add comment explaining the
1491 purpose and usage of the "not_a_breakpoint" argument in computing
1492 the breakpoint address.
1493
1494 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1495
1496 From 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
1497 * monitor.c (setmem_resp_delim_pattern): New regexp pattern.
1498 (setreg_resp_delim_pattern): Likewise.
1499 (setmem_resp_delim_fastmap): New buffer.
1500 (setreg_resp_delim_fastmap): Likewise.
1501 (monitor_open): Initialize above regexp if they are defined.
1502 (monitor_write_memory): Use regexp to check the result of write.
1503 (monitor_store_register): Likewise to check result of register set.
1504
1505 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1506
1507 From 2000-06-14 John Marshall <john_w_marshall@palm.com>:
1508 * coff-solib.c: Include symfile.h and objfiles.h to make
1509 OBJF_SHARED visible.
1510
1511 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1512
1513 * configure.in (--enable-gdbmi): Enable by default.
1514 * configure: Regenerate.
1515 * TODO: Update.
1516 * NEWS: Update
1517
1518 2001-06-28 Joel Brobecker <brobecker@act-europe.fr>
1519
1520 * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment
1521 explaining the consequences of always returning zero. No code
1522 change.
1523
1524 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1525
1526 From 2001-06-08 Daniel Jacobowitz <djacobowitz@mvista.com>:
1527 * defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65
1528 to TARGET_SIGNAL_REALTIME_127.
1529 * target.c (struct signals): Add SIG63 to SIG127.
1530 (target_signal_from_host): Handle up to 127 signals.
1531 (do_target_signal_to_host): Likewise.
1532
1533 2001-06-27 Andrew Cagney <ac131313@redhat.com>
1534
1535 * remote-sds.c (sds_start_remote): Change type of ``c'' to int
1536 from possibly unsigned char.
1537
1538 2001-06-27 Andrew Cagney <ac131313@redhat.com>
1539
1540 * ser-ocd.c: Delete file.
1541 * Makefile.in (ALLDEPFILES): Remove ser-ocd.c
1542 (ser-ocd.o): Delete target.
1543 * TODO: Update.
1544 * NEWS: Update.
1545
1546 2001-06-27 Andrew Cagney <ac131313@redhat.com>
1547
1548 * MAINTAINERS (Write After Approval): Sort.
1549 (Past Maintainers): Daniel Berlin stepped down as C++ maintainer.
1550
1551 2001-06-26 Andrew Cagney <ac131313@redhat.com>
1552
1553 * breakpoint.c (breakpoint_1): Always output the breakpoint
1554 headings. Leave it to ui-out to decide which
1555
1556 2001-06-25 Andrew Cagney <ac131313@redhat.com>
1557
1558 * stack.c (print_frame): For ui_out, output a list of arguments.
1559
1560 2001-06-25 Kevin Buettner <kevinb@redhat.com>
1561
1562 * MAINTAINERS (paper trail): Update.
1563
1564 2001-06-25 Michael Snyder <msnyder@redhat.com>
1565
1566 * infrun.c: Eliminate the "thread_step_needed" state variable,
1567 and replace it with a relatively simple test in resume.
1568 (resume): Replace thread_step_needed logic with a test for
1569 stepping, breakpoint_here_p and breakpoints_inserted.
1570 Move CANNOT_STEP_BREAKPOINT logic to after thread_step logic.
1571 (proceed): Discard thread_step_needed logic.
1572 (wait_for_inferior, fetch_inferior_event, handle_inferior_event):
1573 Discard thread_step_needed logic.
1574
1575 2001-06-24 Fernando Nasser <fnasser@redhat.com>
1576
1577 * remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
1578 * rdi-share/host.h: Add missing parenthesis in conditional.
1579
1580 2001-06-22 J.T. Conklin <jtc@redback.com>
1581
1582 * configure.in: include nlist.h when checking for member som_addr
1583 in struct so_map.
1584 * configure: regenerate.
1585
1586 2001-06-21 Keith Seitz <keiths@redhat.com>
1587
1588 * cli-out.c (cli_out_new): Initialize new structure member
1589 "suppress_output".
1590
1591 2001-06-20 Andrew Cagney <ac131313@redhat.com>
1592
1593 * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
1594 (table_header_ftype): Ditto.
1595 * cli-out.c (cli_table_header): Update.
1596 * ui-out.c (ui_out_table_header): Update.
1597 (uo_table_header): Update.
1598 (default_table_header): Update.
1599 (append_header_to_list): Update.
1600 (struct ui_out_header): Add field ``col_name''.
1601 (append_header_to_list): Use xstrdup. Initialize col_name.
1602 * breakpoint.c (breakpoint_1): Pass COL_NAME to
1603 ui_out_table_header.
1604
1605 2001-06-19 Andrew Cagney <ac131313@redhat.com>
1606
1607 * cli-out.c: Include "gdb_assert.h'.
1608 (struct ui_out_data): Add field ``suppress_output.
1609 (cli_table_begin): When NR_ROWS is zero, suppress_output.
1610 (cli_table_end): Clear suppress_output.
1611 (cli_table_body): Check suppress_output.
1612 (cli_table_header, cli_begin): Ditto.
1613 (cli_end, cli_field_int, cli_field_skip): Ditto.
1614 (cli_field_string, cli_field_fmt, cli_spaces): Ditto.
1615 (cli_text, cli_message, cli_wrap_hint): Ditto.
1616 * breakpoint.c (breakpoint_1): Close the ui_out table before
1617 printing the breakpoint not found message.
1618
1619 2001-06-18 Andrew Cagney <ac131313@redhat.com>
1620
1621 * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
1622 (default_table_begin): Ditto.
1623 (uo_table_begin): Ditto.
1624 * cli-out.c (cli_table_begin): Ditto.
1625 * ui-out.h (ui_out_table_begin): Update
1626 (table_begin_ftype): Update.
1627 * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
1628 ui_out_table_begin.
1629
1630 2001-06-16 Andrew Cagney <ac131313@redhat.com>
1631
1632 * breakpoint.c (breakpoint_1): Restructure. Compute the
1633 nr_printable_breakpoints. Move the header output to before the
1634 main print breakpoints loop.
1635 (user_settable_breakpoint): New function.
1636
1637 2001-06-18 Andrew Cagney <ac131313@redhat.com>
1638
1639 * infrun.c, breakpoint.c: Use strncmp as the "mi" test. Allow,
1640 "mi", "mi0" and "mi1".
1641
1642 2001-06-17 Andrew Cagney <ac131313@redhat.com>
1643
1644 * gdbarch.sh: Generate an error when conflicting macro
1645 definitions. Generate an error when both pure multi-arch and
1646 "tm.h".
1647 * gdbarch.h, gdbarch.c: Regenerate.
1648 * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
1649
1650 2001-06-17 Andrew Cagney <ac131313@redhat.com>
1651
1652 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
1653 GDB_MULTI_ARCH_PARTIAL from two.
1654
1655 2001-06-17 Fernando Nasser <fnasser@redhat.com>
1656
1657 From 2001-06-15 Eirik Fuller <eirik@hackrat.com>
1658 * cli/cli-script.c (free_command_lines): Reset list pointer.
1659
1660 2001-06-16 Andrew Cagney <ac131313@redhat.com>
1661
1662 * arch-utils.c (init_frame_pc_default): New function
1663 * arch-utils.h (init_frame_pc_default): Declare.
1664 * gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
1665 not init_frame_pc_noop.
1666 * gdbarch.h, gdbarch.c: Re-generate.
1667 * blockframe.c (INIT_FRAME_PC): Delete macro definition.
1668 * mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
1669 init_frame_pc_noop.
1670
1671 2001-06-16 Andrew Cagney <ac131313@redhat.com>
1672
1673 * gdbarch.c: Regenerate. Out-of-sync with gdbarch.sh.
1674
1675 2001-06-15 Andrew Cagney <ac131313@redhat.com>
1676
1677 * gdbarch.sh (CANNOT_FETCH_REGISTER): Multi-arch.
1678 (CANNOT_STORE_REGISTER): Ditto.
1679 * infptrace.c (CANNOT_FETCH_REGISTER): Delete definition.
1680 (CANNOT_STORE_REGISTER): Ditto.
1681 * regcache.c (CANNOT_STORE_REGISTER): Ditto.
1682 * lynx-nat.c (CANNOT_STORE_REGISTER): Ditto.
1683 * arch-utils.h (cannot_register_not): Define.
1684 * arch-utils.c (cannot_register_not): Declare.
1685
1686 2001-06-15 Andrew Cagney <ac131313@redhat.com>
1687
1688 * gdbarch.sh: Clarify pre/post default
1689 (INIT_FRAME_PC_FIRST, INIT_FRAME_PC): Multiarch.
1690 * blockframe.c (get_prev_frame): Remove #ifdef from around
1691 INIT_FRAME_PC_FIRST call.
1692 * arch-utils.c (init_frame_pc_noop): Define.
1693 * arch-utils.h (init_frame_pc_noop): Declare.
1694 * config/mips/tm-mips.h (INIT_FRAME_PC_FIRST): Delete.
1695 (INIT_FRAME_PC, mips_init_frame_pc_first): Ditto.
1696 * mips-tdep.c (mips_init_frame_pc_first): Make static.
1697 (mips_gdbarch_init): Initialize init_frame_pc_first.
1698 (mips_dump_tdep): Update.
1699
1700 2001-06-15 Michael Snyder <msnyder@redhat.com>
1701
1702 * infrun.c (context_switch): New function. Abstract the operation
1703 of saving and restoring infrun's state when switching threads.
1704 (handle_inferior_event): Normalize the handling of the 'thread hop'
1705 event (when the wrong thread hits a thread-specific breakpoint,
1706 and we need to solo-step that thread past the breakpoint).
1707 Call keep_going, instead of target_resume. Handle the subsequent
1708 singlestep-trap as a normal event instead of just resuming.
1709
1710 2001-06-15 Andrew Cagney <ac131313@redhat.com>
1711
1712 * arch-utils.c (core_addr_identity): New function. Rename
1713 default_convert_from_func_ptr_addr.
1714 * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Update.
1715 (ADDR_BITS_REMOVE): Define. Default to core_addr_identity.
1716 * defs.h (ADDR_BITS_REMOVE): Delete macro definition.
1717 * config/mips/tm-mips.h (ADDR_BITS_REMOVE): Delete definition.
1718 * mips-tdep.c (mips_addr_bits_remove): Make static.
1719 (mips_gdbarch_init): Initialize addr_bits_remove.
1720
1721 2001-06-15 Andrew Cagney <ac131313@redhat.com>
1722
1723 From 2001-02-26 D.J. Barrow <djbarrow@de.ibm.com>:
1724 * configure.tgt: Add S/390 31 & 64 bit target configuration.
1725 * configure.host: Ditto for host.
1726
1727 2001-06-15 Andrew Cagney <ac131313@redhat.com>
1728
1729 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
1730 (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
1731 predicate.
1732 * gdbarch.h, gdbarch.c: Regenerate.
1733 * values.c (value_being_returned): Change the reference to
1734 EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
1735
1736 2001-06-15 Joel Brobecker <brobecker@act-europe.fr>
1737
1738 * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
1739 Write After Approval list.
1740
1741 2001-06-14 Michael Snyder <msnyder@redhat.com>
1742
1743 * remote.c (show_remote_protocol_qSymbol_packet_cmd,
1744 set_remote_protocol_qSymbol_packet_cmd): New functions.
1745 (init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
1746 (remote_check_symbols): New function. Implement qSymbol packet,
1747 allowing target to request symbol lookup service from gdb.
1748 (remote_open_1, remote_async_open_1): Call remote_check_symbols,
1749 allowing symbol lookup from exec_bfd on connection to target.
1750 (remote_new_objfile): New function. Catch new objfile notifications
1751 from shared library module, and call remote_check_symbols.
1752 (_initialize_remote): Hook remote_new_objfile into the shared
1753 library notification chain. Add "set remote symbol-lookup" command.
1754
1755 2001-06-14 Keith Seitz <keiths@redhat.com>
1756
1757 * tracepoint.c (trace_command): We now have tracepoint
1758 events. Get rid of those ugly hooks.
1759 (tracepoint_operation): Likewise.
1760 (trace_pass_command): Likewise.
1761
1762 2001-06-13 Michael Snyder <msnyder@redhat.com>
1763
1764 * gdbthread.h (struct thread_info): Add new fields:
1765 current_line, current_symtab, step_sp, for saved infrun state.
1766 * thread.c (save_infrun_state, load_infrun_state): Save and
1767 restore current_line, current_symtab, and step_sp.
1768 (add_thread): Rather than adding assignments to initialize
1769 the new fields, just use memset (tp, 0, sizeof (*tp).
1770 This way future new fields will not be overlooked.
1771 * infrun.c (handle_inferior_event): Save and restore save_sp,
1772 current_line, and current_symtab when switching threads.
1773
1774 2001-06-13 Elena Zannoni <ezannoni@redhat.com>
1775
1776 * MAINTAINERS: Add Andrew Cagney as co-maintainer of
1777 testsuite/gdb.mi.
1778
1779 2001-06-11 Andrew Cagney <ac131313@redhat.com>
1780
1781 * symtab.c (lookup_symtab_1): Replace basename with lbasename.
1782 (lookup_partial_symtab, file_matches): Ditto.
1783 (make_source_files_completion_list): Ditto.
1784 (make_file_symbol_completion_list): Ditto. Make local char*
1785 variable ``tail'' constant.
1786 (make_source_files_completion_list): Ditto with ``base_name''.
1787 * source.c (open_source_file): Use lbasename. Make ``p'' const
1788 char *.
1789
1790 2001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
1791
1792 * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
1793 (SLASH_STRING): Remove unused definitions.
1794 * config/i386/xm-cygwin.h: Likewise.
1795
1796 2001-06-12 Andrew Cagney <ac131313@redhat.com>
1797
1798 * ui-out.c (ui_out_list_begin): Add parameter ``id''.
1799 (make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
1800 * ui-out.h: Update declarations.
1801
1802 Mon Jun 11 17:26:43 2001 Andrew Cagney <cagney@b1.cygnus.com>
1803
1804 * source.c (openp): Make parameters ``path'' and ``string''
1805 constant.
1806 (openp): Use alloca to safely duplicate ``string''. Make local
1807 variables ``p'' and ``p1'' constant. Delete char* casts.
1808 * defs.h: Update.
1809
1810 * symtab.c (lookup_symtab_1): Make parameter ``name'' constant.
1811 (lookup_symtab, lookup_partial_symtab): Ditto.
1812 * symtab.h (lookup_symtab, lookup_partial_symtab): Update.
1813
1814 2001-06-11 Andrew Cagney <ac131313@redhat.com>
1815
1816 * ui-out.h (ui_out_table_begin): Make char* parameters constant.
1817 (ui_out_table_header, ui_out_field_int): Ditto.
1818 (ui_out_field_core_addr, ui_out_field_string): Ditto.
1819 (ui_out_field_stream, ui_out_field_fmt): Ditto.
1820 (ui_out_field_skip, ui_out_text, ui_out_message): Ditto.
1821 * ui-out.c (ui_out_table_begin, ui_out_table_header): Update.
1822 (ui_out_field_core_addr, ui_out_field_stream): Update.
1823 (ui_out_field_string, ui_out_field_fmt): Update.
1824 (ui_out_text, ui_out_message): Update.
1825 (append_header_to_list): Make char* parameters constant.
1826 (uo_table_header, uo_table_begin): Ditto.
1827 (uo_field_int, uo_field_skip): Ditto.
1828 (uo_field_string, uo_field_fmt): Ditto.
1829 (uo_text, uo_message): Ditto.
1830
1831 2001-06-11 Eli Zaretskii <eliz@is.elta.co.il>
1832
1833 * completer.c (gdb_completer_loc_break_characters): New variable.
1834 (line_completion_function): If we are completing on locations,
1835 back up the start of word pointer past all characters which can
1836 appear in a location spec.
1837 (location_completer): New function.
1838
1839 * completer.h: Add prototype for location_completer.
1840
1841 * symtab.c (make_source_files_completion_list)
1842 (add_filename_to_list, not_interesting_fname): New functions.
1843 (filename_seen): New function, body extracted from
1844 output_source_filename.
1845 (output_source_filename): Call filename_seen to check if the file
1846 was already printed.
1847 (make_symbol_completion_list): If TEXT includes a
1848 double-quoted string, return an empty list, not NULL.
1849 (make_file_symbol_completion_list): New function, similar to
1850 make_symbol_completion_list but with an additional argument
1851 SRCFILE.
1852
1853 * symtab.h (make_file_symbol_completion_list)
1854 (make_source_files_completion_list): Add prototypes.
1855
1856 * breakpoint.c (_initialize_breakpoint): Make location_completer
1857 be the completion function for all commands which set breakpoints
1858 and watchpoints.
1859 (top-level): #include "completer.h".
1860
1861 * tracepoint.c (_initialize_tracepoint): Make location_completer
1862 be the completion function for the "trace" command.
1863 (top-level): #include "completer.h".
1864
1865 * printcmd.c (_initialize_printcmd): Make location_completer be
1866 the completion function for the "print", "inspect", "call", and
1867 "disassemble" commands.
1868 (top-level): #include "completer.h".
1869
1870 * infcmd.c (_initialize_infcmd): Make location_completer be the
1871 completion function for the "go", "jump", and "until" commands.
1872 (top-level): #include "completer.h".
1873
1874 2001-06-10 Christopher Faylor <cgf@redhat.com>
1875
1876 * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
1877 * utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
1878 * values.c (unpack_double): Remove obsolete check for _MSC_VER.
1879 * defs.h: Ditto.
1880 * m32r-rom.c: Ditto.
1881 * p-exp.y: Ditto.
1882 * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for
1883 faster compilation.
1884 (get_ds_base): Remove _MSC_VER version of this function.
1885 * nindy-share/ttyflush.c: Ditto.
1886 * rdi-share/host.h: Ditto.
1887 * ser-go32.c (dos_readchar): Remove call to obsolete function.
1888 * remote-sim.c (gdb_os_poll_quit): Ditto.
1889 * remote-e7000.c (expect): Remove obsolete #if 0'ed code.
1890
1891 * main.c (captured_main): Eliminate special Cygwin checks.
1892 * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
1893
1894 2001-06-09 Andrew Cagney <ac131313@redhat.com>
1895
1896 * Makefile.in (gdbcmd_h): Add ui_out_h.
1897 (breakpoint.o, infcmd.o, main.o, printcmd.o, stack.o): Ditto.
1898 (thread.o, top.o): Ditto.
1899
1900 * ui-out.h (table_begin_ftype): Make string parameters constant.
1901 (table_header_ftype): Ditto.
1902 (field_int_ftype): Ditto.
1903 (field_skip_ftype): Ditto.
1904 (field_string_ftype): Ditto.
1905 (field_fmt_ftype): Ditto.
1906 (text_ftype): Ditto.
1907 (message_ftype): Ditto.
1908 * cli-out.c (cli_table_begin): Ditto.
1909 (cli_table_header): Ditto.
1910 (cli_field_int): Ditto.
1911 (cli_field_skip): Ditto.
1912 (cli_field_string): Ditto.
1913 (cli_field_fmt): Ditto.
1914 (cli_text): Ditto.
1915 (cli_message): Ditto.
1916 (out_field_fmt): Ditto.
1917 * ui-out.c (default_table_begin): Ditto.
1918 (default_table_header): Ditto.
1919 (default_field_int): Ditto.
1920 (default_field_skip): Ditto.
1921 (default_field_string): Ditto.
1922 (default_field_fmt): Ditto.
1923 (default_text): Ditto.
1924 (default_message): Ditto.
1925
1926 2001-06-08 Michael Snyder <msnyder@redhat.com>
1927
1928 * breakpoint.c (delete_breakpoint): Pass mark_inserted to
1929 remove_breakpoint, so that the subsequent test for
1930 bpt->inserted will succeed, and duplicates will be fixed up.
1931
1932 2001-06-08 Per Bothner <per@bothner.com>
1933
1934 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java.
1935
1936 2001-06-07 Keith Seitz <keiths@redhat.com>
1937
1938 * tracepoint.c (tracepoint_opertation): Add ui event
1939 notifications.
1940 (trace_pass_command): Ditto.
1941
1942 2001-06-07 Andrew Cagney <ac131313@redhat.com>
1943
1944 * MAINTAINERS (Write After Approval): Note the entry criteria.
1945 (HP/PA): Jeff Law stepped down
1946
1947 2001-06-07 Jim Blandy <jimb@redhat.com>
1948
1949 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
1950 variable values as operators.
1951
1952 2001-06-07 Keith Seitz <keiths@redhat.com>
1953
1954 * gdb-events.sh: Fix quote escaping which was obsoleted
1955 by last patch.
1956
1957 2001-06-07 Keith Seitz <keiths@redhat.com>
1958
1959 * gdb-events.sh: Make if statements and tests
1960 a little more portable.
1961 Don't use shell's echo command to put strings containing
1962 escaped characeters into a file -- different flavors of /bin/sh
1963 require differnt levels of escaping. Use cat <<EOF instead.
1964 Our internal field separator is a colon. Change all
1965 commands which assume it is a space.
1966
1967 2001-06-06 Mark Kettenis <kettenis@gnu.org>
1968
1969 * lin-lwp.c (struct lwp_info): Add member `resumed'.
1970 (iterate_over_lwps): Make sure we can handle CALLBACK deleting the
1971 LWP it's called for.
1972 (lin_lwp_attach): Mark LWP as resumed to make sure the fake
1973 SIGSTOP is reported.
1974 (resume_clear_callback): New function.
1975 (resume_set_callback): New function.
1976 (lin_lwp_resume): Mark all LWP's that we're going to resume as
1977 resumed, and unmark all others.
1978 (status_callback): Only report a pending wait status if we pretend
1979 that LP has been resumed.
1980 (resumed_callback): New function.
1981 (lin_lwp_wait): Add assertions to check that LWP's are properly
1982 marked as resumed. Partially revert 2001-05-25 patch by Michael
1983 Snyder: do not resume all threads. Add comment explaining the
1984 problems associated with this bit of code.
1985
1986 2001-06-07 Keith Seitz <keiths@redhat.com>
1987
1988 * MAINTAINTERS: Syd Polk is stepping down from
1989 maintaining libgui. I am replacing him.
1990
1991 2001-06-07 Eli Zaretskii <elis@is.elta.co.il>
1992
1993 * config/mips/tm-irix6.h: New file.
1994
1995 * config/mips/irix6.mh: New file.
1996
1997 * config/mips/irix6.mt: New file.
1998
1999 * config/mips/xm-irix6.h: New file.
2000
2001 * config/mips/nm-irix6.h: New file.
2002
2003 * mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
2004 disassembler info in tm_print_insn_info as appropriate for the N32
2005 ABI. Force N32 ABI to be the default if the CPU is R8000 or
2006 R10000.
2007
2008 * configure.tgt (mips*-sgi-irix6*): Map to irix6.
2009
2010 * configure.host (mips*-sgi-irix6*): Ditto.
2011
2012 2001-06-07 Andrew Cagney <ac131313@redhat.com>
2013
2014 * gnu-v3-abi.c: Include "gdb_assert.h".
2015 (build_gdb_vtable_type): Replace abort() with gdb_assert().
2016
2017 2001-06-06 Jim Blandy <jimb@redhat.com>
2018
2019 * cp-abi.h: Rearrange code to put documentation comments above the
2020 functions we export. The actual function table itself simply
2021 refers to those functions. Minor doc fixes.
2022
2023 * gdbarch.sh: Changes to effect the following:
2024 * gdbarch.c (initialize_non_multiarch): New function.
2025 * gdbarch.h (initialize_non_multiarch): New declaration.
2026 * arch-utils.c (initialize_current_architecture): For
2027 non-multiarch configurations, call initialize_non_multiarch.
2028
2029 2001-06-06 Andrew Cagney <ac131313@redhat.com>
2030
2031 * symfile.c (compare_psymbols): Replace PTR with void*. Delete
2032 declaration.
2033 (compare_symbols): Ditto.
2034
2035 2001-06-06 Jonathan Larmour <jlarmour@redhat.com>
2036
2037 * arch-utils.c (generic_prepare_to_proceed): Allow for having
2038 stopped due to a Ctrl-C as well as breakpoints.
2039
2040 * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
2041 support thread switches after Ctrl-C.
2042 * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
2043 * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
2044 * m3-nat.c (mach3_prepare_to_proceed): Ditto.
2045
2046 2001-06-06 Jim Blandy <jimb@redhat.com>
2047
2048 * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
2049 per-architecture data should be registered at initialization time,
2050 before any gdbarch objects get used, so the generality is
2051 unnecessary.
2052
2053 2001-06-06 Keith Seitz <keiths@redhat.com>
2054
2055 * gdb-events.sh (function_list): Add tracepoint_create,
2056 tracepoint_delete, and tracepoint_modify events.
2057 * gdb-events.c: Regenerated.
2058 * gdb-events.h: Regenerated.
2059
2060 2001-06-06 Keith Seitz <keiths@redhat.com>
2061
2062 * gdb-events.sh: Update copyrights.
2063 Change free to xfree.
2064 * gdb-events.c: Regenerated.
2065 * gdb-events.h: Regenerated.
2066
2067 2001-06-06 Eli Zaretskii <eliz@is.elta.co.il>
2068
2069 * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
2070 instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
2071 * completer.c: Ditto.
2072 * cli/cli-cmds.c (cd_command): Ditto.
2073
2074 2001-06-04 Eli Zaretskii <eliz@is.elta.co.il>
2075
2076 * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
2077 (mips_set_processor_type_command): Remove unused variable j.
2078 (mips_breakpoint_from_pc): Declare breakpoint instruction
2079 sequences as unsigned char, to avoid compiler warnings.
2080
2081 * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
2082 instead of system-specific define's like _WIN32 and __MSDOS__.
2083 Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
2084 ROOTED_P.
2085 (top-level): #include "filenames.h".
2086
2087 * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
2088 instead of SLASH_CHAR, ROOTED_P and SLASH_P.
2089 (top-level): #include "filenames.h".
2090
2091 * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
2092 (SLASH_STRING): Define only for _WIN32.
2093
2094 * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
2095 __MSDOS_.
2096
2097 * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
2098 IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P. Replace
2099 system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
2100 (top-level): #include "filenames.h".
2101
2102 * go32-nat.c (go32_wait): Change the return value to ptid_t.
2103
2104 * config/djgpp/fnchange.lst: Add two new files in the
2105 gdb/testsuite/gdb.c++/ directory to the remapped names.
2106
2107 * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
2108
2109 2001-06-01 Jim Blandy <jimb@redhat.com>
2110
2111 Expand the gdbarch per-architecture data vector as needed, rather
2112 than requiring that all per-architecture data be registered before
2113 the first gdbarch object is allocated.
2114 * gdbarch.sh: Changes to effect the following:
2115 * gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
2116 declarations and definitions.
2117 (check_gdbarch_data): New function, and declaration.
2118 (gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
2119 zero is good enough.
2120 (free_gdbarch_data): Tolerate a null data pointer. Free only
2121 those data items gdbarch->data actually has allocated.
2122 (set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
2123 (gdbarch_update_p): No need to call init_gdbarch_data.
2124
2125 2001-06-01 Kevin Buettner <kevinb@redhat.com>
2126
2127 * ia64-tdep.c (is_float_or_hfa_type_recurse): Call check_typedef()
2128 on types that we wish to recurse on.
2129 (slot_alignment_is_next_even): New function.
2130 (ia64_push_arguments): Call slot_alignment_is_next_even() to
2131 examine the type in order to decide if it's necessary to skip
2132 an odd slot.
2133
2134 2001-06-01 Michael Snyder <msnyder@redhat.com>
2135
2136 * thread.c (delete_step_resume_breakpoint): New function.
2137 Maintain internal consistency of the thread list while deleting
2138 a step_resume_breakpoint.
2139 * gdbthread.h (delete_step_resume_breakpoint): Export.
2140 * breakpoint.c (bpstat_find_step_resume_breakpoint):
2141 Make thread-aware: don't return a step_resume_breakpoint
2142 for the wrong thread.
2143 * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
2144 instead of delete_breakpoint_current_contents.
2145 (fetch_inferior_event): Ditto.
2146 (handle_inferior_event): Call delete_step_resume_breakpoint
2147 instead of delete_breakpoint.
2148 * infrun.c (handle_inferior_event): After singlestepping over a
2149 thread-specific breakpoint, use currently_stepping() to decide
2150 whether to step or continue.
2151
2152 2001-06-01 Jim Blandy <jimb@redhat.com>
2153
2154 * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
2155 these static --- there's no reason other files should use these.
2156
2157 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
2158 Fix memory leak.
2159
2160 * partial-stab.h: New complaint: function_outside_compilation_unit.
2161 (case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
2162 complain, and don't try to set pst's start address.
2163
2164 2001-05-31 Kevin Buettner <kevinb@redhat.com>
2165
2166 * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
2167 match the location at which the kernel is placing the sigcontext
2168 struct.
2169
2170 * ia64-tdep.c (max_skip_non_prologue_insns): New static global.
2171 (refine_prologue_limit): New function.
2172 (examine_prologue): Further limit number of instructions
2173 scanned by calling refine_prologue_limit(). Revise way in
2174 which the end of prologue address is computed for frameless
2175 functions.
2176
2177 2001-05-29 Christopher Faylor <cgf@redhat.com>
2178
2179 * partial-stab.h: Revert previous patch.
2180
2181 2001-05-29 Christopher Faylor <cgf@redhat.com>
2182
2183 * partial-stab.h: Consistently guard against pst being NULL.
2184
2185 2001-05-29 Alexandre Oliva <aoliva@redhat.com>
2186
2187 * symfile.c (compare_psymbols, compare_symbols): Declare using
2188 PTR, as in the definition.
2189 * minsyms.c (compare_minimal_symbols): Likewise.
2190 * coffread.c (find_targ_sec): Likewise.
2191 * elfread.c (free_elfinfo, elf_locate_sections): Likewise.
2192 * mipsread.c (alphacoff_locate_sections): Likewise.
2193 * mdebugread.c (compare_blocks): Likewise.
2194
2195 2001-05-25 Nick Duffek <nsd@redhat.com>
2196
2197 * solib.c (update_solib_list): Move target_resize_to_sections()
2198 into solib_map_sections() loop.
2199 (info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
2200 bfd_get_arch_size() fails.
2201
2202 2001-05-25 Nick Duffek <nsd@redhat.com>
2203
2204 * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
2205 solib-osf.o.
2206 * config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
2207 with solib-osf.o and solib.o.
2208 * config/alpha/alpha-osf2.mh: Likewise.
2209 * config/alpha/alpha-osf3.mh: Likewise.
2210 * solib-osf.c: New file, renamed and largely rewritten from
2211 osfsolib.c.
2212
2213 2001-05-25 Michael Snyder <msnyder@redhat.com>
2214
2215 * lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
2216 to consume the SIGSTOP generated by PTRACE_ATTACH.
2217 (stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
2218 try again to get the SIGSTOP event.
2219 (lin_lwp_wait): Resume all threads when ignoring a signal.
2220 This will insure that newly attached threads get resumed.
2221 * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
2222 * remote.c (remote_write_bytes): Update 'p' packet pointer.
2223
2224 2001-05-25 Jim Blandy <jimb@redhat.com>
2225
2226 * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
2227 VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
2228 useful value, then we should fix that instead.
2229
2230 2001-05-24 Nick Duffek <nsd@redhat.com>
2231
2232 * solist.h (struct so_list): Document the requirement that
2233 current_sos initialize some fields to 0.
2234
2235 2001-05-24 Mark Kettenis <kettenis@gnu.org>
2236
2237 * gnu-nat.c: Include <ctype.h>.
2238 (gnu_pid_to_exec_file): Add PID parameter.
2239 (set_sig_thread_cmd): Use PIDGET on return value from
2240 thread_id_to_pid.
2241 (proc_string): Use MERGEPID to construct argument to
2242 pid_to_thread_id.
2243
2244 2001-05-22 Kevin Buettner <kevinb@redhat.com>
2245
2246 * breakpoint.c (breakpoint_address_is_meaningful): New function.
2247 (check_duplicates): Don't compare non-meaningful addresses.
2248
2249 2001-05-22 Michael Snyder <msnyder@redhat.com>
2250
2251 * thread-db.c: Allow for defunct zombie threads.
2252 (attach_thread): Do not attempt to attach zombie thread.
2253 (thread_db_thread_alive): Return false for defunct zombie thread.
2254 (find_new_threads_callback): Don't add defunct zombie thread to list.
2255
2256 2001-05-22 Jim Blandy <jimb@redhat.com>
2257
2258 Add support for the GNU V3 C++ ABI.
2259 (Includes changes by Dan Berlin.)
2260
2261 * gnu-v3-abi.c: New file.
2262 * minsyms.c: #include "value.h" and "cp-abi.h".
2263 (install_minimal_symbols): Check the minimal symbol table for
2264 symbols that look mangled in the V3 style, and select the V3 ABI
2265 if we find any.
2266 * Makefile.in (SFILES): Add gnu-v3-abi.c.
2267 (COMMON_OBS): Add gnu-v3-abi.o.
2268 (gnu-v3-abi.o): Add new rule.
2269 (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
2270
2271 2001-05-21 Jim Blandy <jimb@redhat.com>
2272
2273 * values.c (value_primitive_field): If we're extracting a base
2274 class, then the type of the result should be the base class being
2275 extracted, not the type of which it is a base class.
2276
2277 * value.h (struct value): Doc fix, and rearrange members to place
2278 them near their explanations.
2279
2280 2001-05-21 Michael Snyder <msnyder@redhat.com>
2281
2282 * remote.c (remote_async_wait): Added new variable fieldsize.
2283 Add fieldsize (return value of hex2bin) to string pointer p.
2284
2285 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2286
2287 * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
2288 (m68hc11_analyze_instruction): Update the pc correctly.
2289 (m68hc11_guess_from_prologue): Take into account the stack correction
2290 for the saving address.
2291
2292 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
2293
2294 Changes by Jim Ingham:
2295
2296 * values.c (value_change_enclosing_type): New function. If the
2297 new enclosing type is larger than the old one, we need to allocate
2298 more space.
2299 * value.h: Add value_change_enclosing_type prototype.
2300 * valops.c (value_cast): Use it.
2301 (value_assign): Use it.
2302 (value_addr): Use it.
2303 (value_ind): Use it.
2304 (value_full_object): Use it.
2305
2306 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
2307
2308 * values.c (value_static_field): Handle static fields that have a
2309 constant value.
2310
2311 2001-05-17 Michael Snyder <msnyder@redhat.com>
2312
2313 * blockframe.c (create_new_frame): Zero all the fields via memset,
2314 rather than zeroing them one by one.
2315
2316 2001-05-17 Eli Zaretskii <eliz@is.elta.co.il>
2317
2318 * top.c (user_args): Remove unused declaration.
2319
2320 2001-05-16 Michael Snyder <msnyder@redhat.com>
2321
2322 * infcmd.c (do_registers_info): Move alloca outside of loop.
2323
2324 2001-05-15 John S Kallal <jskallal@home.com>
2325
2326 * remote.c (remote_wait): Added new variable fieldsize.
2327 Add fieldsize (return value of hex2bin) to string pointer p.
2328
2329 2001-05-15 Mark Kettenis <kettenis@gnu.org>
2330
2331 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
2332 info.bfd_arch_info.
2333
2334 2001-05-14 Kevin Buettner <kevinb@redhat.com>
2335
2336 * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
2337 Adjust format strings for printing LWPs to account for the fact
2338 that the type returned by GET_LWP() is now a long instead of an
2339 int.
2340
2341 2001-05-14 Kevin Buettner <kevinb@redhat.com>
2342
2343 * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
2344 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
2345 (ptid_get_tid, ptid_equal): New function declarations.
2346 * infrun.c (null_ptid, minus_one_ptid): New variables.
2347 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
2348 (ptid_get_tid, ptid_equal): New functions.
2349 (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
2350 inferior_ptid, and target_last_wait_ptid.
2351
2352 * defs.h (ptid_t): Redefine to be a struct rather than an int.
2353 (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
2354 (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
2355 new ptid accessors and constructor.
2356
2357 * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
2358 MKLID, MKTID, ISTID): Provide new definitions for these macros.
2359 The old macros are retained, but disabled via #if 0 in order
2360 to aid in future restructuring. See FIXME.
2361
2362 * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
2363 * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
2364 * infptrace.c (PIDGET, TIDGET): Likewise.
2365 * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
2366 * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
2367 * proc-service.c (MERGEPID): Likewise.
2368 * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
2369 * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
2370 * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
2371 * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
2372 Likewise.
2373 * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
2374 Likewise.
2375
2376 * lin-lwp.c (THREAD_FLAG): Delete macro definition.
2377 (GET_LWP): Redefine in terms of ptid_get_lwp().
2378 (GET_PID): Redefine in terms of ptid_get_pid().
2379 (is_lwp): Redefine without the need for THREAD_FLAG.
2380 (BUILD_LWP): Redefine in terms of ptid_build().
2381 * lin-thread.c (THREAD_FLAG): Delete macro definition.
2382 (GET_LWP): Redefine in terms of ptid_get_lwp().
2383 (GET_PID): Redefine in terms of ptid_get_pid().
2384 (GET_THREAD): Redefine in terms of ptid_get_tid().
2385 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
2386 (is_lwp, is_thread): Redefine.
2387 (linux_child_wait, check_all_signal_numbers)
2388 (linuxthreads_discard_global_state, attach_thread): Declare these
2389 functions to squash warnings about missing declarations.
2390 * sol-thread.c (THREAD_FLAG): Delete macro definition.
2391 (GET_PID): Redefine in terms of ptid_get_pid().
2392 (GET_LWP): Redefine in terms of ptid_get_lwp().
2393 (GET_THREAD): Redefine in terms of ptid_get_tid().
2394 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
2395 (is_lwp, is_thread): Redefine.
2396 * thread-db.c (THREAD_FLAG): Delete macro definition.
2397 (GET_PID): Redefine in terms of ptid_get_pid().
2398 (GET_LWP): Redefine in terms of ptid_get_lwp().
2399 (GET_THREAD): Redefine in terms of ptid_get_tid().
2400 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
2401 (is_lwp, is_thread): Redefine.
2402
2403 * corelow.c (add_to_thread_list, get_core_register_section):
2404 Eliminate hacks needed to prevent regressions when inferior_ptid
2405 wasn't wide enough to hold the core file thread id in the pid
2406 component of inferior_ptid.
2407
2408 2001-05-14 Michael Snyder <msnyder@redhat.com>
2409
2410 * remote.c (hex2bin): Make first argument const.
2411 Require explicit count, don't accept null-terminated str.
2412 (remote_resume, remote_async_resume): White space fix-up.
2413 (remote_write_bytes): Set nr_bytes to return value of bin2hex.
2414
2415 2001-05-13 Mark Kettenis <kettenis@gnu.org>
2416
2417 * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
2418 basename (NAME). The FreeBSD basename returns a pointer to a
2419 static buffer, even if it's simply returning a string identical to
2420 its argument.
2421 (lookup_partial_symtab): Likewise.
2422
2423 2001-05-14 Michael Snyder <msnyder@redhat.com>
2424
2425 * solib.c, solib.h: Add comment for function no_shared_libraries.
2426
2427 2001-05-14 Kevin Buettner <kevinb@redhat.com>
2428
2429 * solib.h (no_shared_libraries): Make declaration match definition
2430 in solib.c.
2431
2432 2001-05-14 Andrew Cagney <ac131313@redhat.com>
2433
2434 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
2435 * solib.h (no_shared_libraries): Declare.
2436
2437 2001-05-12 Andrew Cagney <ac131313@redhat.com>
2438
2439 * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
2440 (gdbarch_update_p): Rewrite logic filling in INFO struct. Use
2441 user specified values when available.
2442 * rs6000-tdep.c (rs6000_gdbarch_init): Update. Get the
2443 architecture from info.bfd_arch_info.
2444 * gdbarch.c, gdbarch.h: Regenerate.
2445
2446 2001-05-12 Fernando Nasser <fnasser@redhat.com>
2447
2448 * remote-e7000.c (e7000_open): Check for bad baud rate.
2449 * remote-st.c (st2000_open): Ditto.
2450
2451 2001-05-11 Jim Blandy <jimb@redhat.com>
2452
2453 * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
2454 and ui_out_tuple_end instead of ui_out_list_begin and
2455 ui_out_list_end.
2456
2457 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
2458 dependencies. Reorder dependencies to match #includes in file,
2459 for easier verification.
2460
2461 Fri May 11 13:32:50 2001 Andrew Cagney <cagney@b1.cygnus.com>
2462
2463 * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
2464 make_cleanup_ui_out_list_end with ui_out_tuple_begin,
2465 ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
2466 * cli/cli-setshow.c: Ditto.
2467 * printcmd.c: Ditto.
2468 * stack.c: Ditto.
2469
2470 * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
2471 * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
2472 (ui_out_tuple_begin): New function.
2473 (ui_out_tuple_end): New function.
2474 (ui_out_tuple_begin_end): New function.
2475 (make_cleanup_ui_out_list_begin_end): Replace
2476 make_cleanup_ui_out_list_end function.
2477 * ui-out.h (ui_out_list_begin): Update declaration.
2478 (make_cleanup_ui_out_list_begin_end): Replace
2479 make_cleanup_ui_out_list_end declaration.
2480 (ui_out_tuple_begin, ui_out_tuple_end): Declare.
2481 (ui_out_tuple_begin_end): Declare.
2482
2483 2001-05-11 Jim Blandy <jimb@redhat.com>
2484
2485 * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it.
2486
2487 2001-05-11 Andrew Cagney <ac131313@redhat.com>
2488
2489 From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
2490 * config/pa/tm-hppa.h: Remove trigraph.
2491 * hp-symtab-read.c (hpread_type_translate): Provide return value.
2492 (hpread_read_struct_type): Remove trigraph. Add parameter in
2493 `warning'.
2494 (hpread_read_array_type): Provide return value.
2495 (hpread_type_lookup): Avoid ambiguous `else'. Provide return
2496 value.
2497 * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
2498 trigraph.
2499
2500 2001-05-11 Jim Blandy <jimb@redhat.com>
2501
2502 * mips-tdep.c (mips_store_return_value,
2503 mips_extract_return_value): Pass arguments to
2504 return_value_location in the proper order.
2505
2506 2001-05-11 Andrew Cagney <ac131313@redhat.com>
2507
2508 * Makefile.in (VERSION): Delete. Moved to file ``version.in''.
2509 (version.c): Depends on file ``version.in''. Extract version
2510 number from ``version.in'' file.
2511 (clean mostlyclean): Update.
2512 * version.in: New file.
2513 * NEWS: Update.
2514
2515 2001-05-11 Kevin Buettner <kevinb@redhat.com>
2516
2517 * breakpoint.c (set_raw_breakpoint): Add new parameter
2518 representing the breakpoint's type. Adjust all callers.
2519 (create_longjmp_breakpoint, create_temp_exception_breakpoint)
2520 (create_thread_event_breakpoint): Don't test for zero return
2521 value from set_raw_breakpoint(). It can never be zero.
2522 (create_exception_catchpoint, watch_command_1): Move logic
2523 which calculates the breakpoint type prior to the call to
2524 set_raw_breakpoint().
2525
2526 2001-05-11 Fernando Nasser <fnasser@redhat.com>
2527
2528 * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
2529 (hardwire_setbaudrate): Set errno to EINVAL and return with error
2530 if the conversion of the baud rate to code fails.
2531
2532 2001-05-10 Andrew Cagney <ac131313@redhat.com>
2533
2534 * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
2535 * ui-out.c (struct ui_out_end_cleanup_data): Define.
2536 (do_cleanup_end): New function. Replace do_list_end.
2537 (make_cleanup_ui_out_end): New function.
2538 (make_cleanup_ui_out_begin_end): New function.
2539 (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
2540
2541 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
2542
2543 * MAINTAINERS: Declare xcoffread.c open to all maintainers,
2544 and make Kevin Buettner (kevinb@redhat.com) the reference person.
2545
2546 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
2547
2548 * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
2549
2550 2001-05-10 Fernando Nasser <fnasser@redhat.com>
2551
2552 * MAINTAINERS: Add testsuite subdirectory co-maintainers.
2553
2554 Thu May 10 16:26:47 2001 Andrew Cagney <cagney@b1.cygnus.com>
2555
2556 * Makefile.in (mi-main.o): Compile with -Werror.
2557
2558 2001-05-10 Michael Snyder <msnyder@redhat.com>
2559
2560 * remote.c (remote_open_1): Call no_shared_libraries, so that
2561 symbols for shared libraries can be reloaded per session.
2562 (remote_async_open_1): Ditto.
2563 * remote.c (bin2hex, hex2bin): New functions. Factor out these
2564 two conversions which are coded for repeatedly in this module.
2565 (remote_threads_extra_info, remote_wait, remote_async_wait,
2566 store_register_using_P, remote_store_registers, remote_write_bytes,
2567 remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
2568 of coding the conversions inline.
2569 (fromhex): Not exported, change from extern to static.
2570
2571 2001-05-10 Andrew Cagney <ac131313@redhat.com>
2572
2573 * arch-utils.c (initialize_current_architecture): Delete obsolete
2574 ``info architecture'' command.
2575 (info_architecture): Delete function.
2576
2577 2001-05-10 Andrew Cagney <ac131313@redhat.com>
2578
2579 * TODO (5.1, 5.2): Update.
2580
2581 2001-05-09 Andrew Cagney <ac131313@redhat.com>
2582
2583 * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
2584 stuff.
2585
2586 2001-05-10 Keith Seitz <keiths@cygnus.com>
2587
2588 * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
2589 and gdbtk-stack.o.
2590 (SUBDIR_GDBTK_SRCS): Ditto for the sources.
2591 (gdbtk-bp.o): New rule.
2592 (gdbtk-register.o): New rule.
2593 (gdbtk-stack.o): New rule.
2594 (gdbtk-cmds.o): Update dependencies.
2595 (gdbtk.o): Ditto.
2596 (gdbtk-hooks.o): Ditto.
2597 (gdbtk-varobj.o): Ditto.
2598
2599 2001-05-10 Fernando Nasser <fnasser@redhat.com>
2600
2601 * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
2602 variables, not just unregister them.
2603
2604 2001-05-10 Fernando Nasser <fnasser@redhat.com>
2605
2606 * varobj.c (c_number_of_children): Check for target type of void*,
2607 not the target type name. Allow dereferencing char*.
2608
2609 2001-05-10 Fernando Nasser <fnasser@redhat.com>
2610
2611 * symfile.c (symbol_file_add_main_1): New static function.
2612 Passes the flags arguments to symbol_file_add() and takes care
2613 of any necessary reinitializations.
2614 (symbol_file_command): Call symbol_file_add_main_1() instead of
2615 symbol_file_add().
2616 (symbol_file_add_main): Ditto.
2617
2618 2001-05-09 Kevin Buettner <kevinb@redhat.com>
2619
2620 * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
2621 string change in 2001-05-03 changes.
2622 (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
2623 changes.
2624
2625 2001-05-09 Kevin Buettner <kevinb@redhat.com>
2626
2627 * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
2628 component from inferior_ptid.
2629 (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
2630 ptid.
2631
2632 2001-05-09 Elena Zannoni <ezannoni@redhat.com>
2633
2634 * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
2635 conditional for help with connections through parallel ports,
2636 given that the actual code for downloading through a parallel port
2637 is not conditionalized.
2638
2639 * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
2640 unmaintaned, and probably on its way to obsolescence.
2641
2642 2001-05-09 Mark Kettenis <kettenis@gnu.org>
2643
2644 * i386-tdep.c (i386_frame_saved_pc): New function.
2645 * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
2646 i386_frame_saved_pc.
2647 (i386_frame_saved_pc): New prototype.
2648
2649 * i386-tdep.c (i386_register_virtual_type): New function.
2650 (i386_register_convertible): New function.
2651 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
2652 of i386_register_virtual_type.
2653 (REGISTER_CONVERTIBLE): Redefine in terms of
2654 i386_register_convertible.
2655 (i386_register_virtual_type, i386_register_convertible): New
2656 prototypes.
2657
2658 2001-05-08 Jim Blandy <jimb@redhat.com>
2659
2660 * Makefile.in (mn10300-tdep.o): New rule.
2661
2662 * Makefile.in (gdb_string_h): Define. Use it throughout.
2663 Some rules were already using this, even though it isn't defined.
2664
2665 * Makefile.in (obstack_h, target_h): Define; these are already
2666 used elsewhere, but have been expanding to the empty string.
2667 (memattr_h): Define; needed by target_h.
2668
2669 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
2670 static. (This was accidentally omitted from the earlier patch.)
2671
2672 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
2673 (mn10300_gdbarch_init): Register it as the architecture's
2674 dwarf2_reg_to_regnum method.
2675
2676 Correct and expand handling of `movm' instruction, and register
2677 saves in general.
2678 * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
2679 MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
2680 (enum movm_register_bits): New enum.
2681 * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
2682 bits, not hex literals. Handle the `other', `exreg0', and
2683 `exother' bits. Correct handling of `exreg1': it saves r4, r5,
2684 r6, and r7, not r2, r3, r4, and r5.
2685 (saved_regs_size): New function.
2686 (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
2687 of computing the same thing inline, incorrectly.
2688
2689 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
2690 dummy_breakpoint_offset; it's zero.
2691
2692 * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
2693 stuff out into mn10300_pop_frame_regular, and use
2694 generic_pop_current_frame. This lets us share code, and also
2695 makes this function's prototype match that expected by gdbarch.
2696 Make this function static.
2697 (mn10300_pop_frame_regular): New function.
2698 (mn10300_gdbarch_init): Register mn10300_pop_frame as the
2699 gdbarch's pop_frame method.
2700 * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
2701 (mn10300_pop_frame): Delete declaration.
2702
2703 * mn10300-tdep.c (mn10300_saved_pc_after_call,
2704 mn10300_extract_return_value,
2705 mn10300_extract_struct_value_address, mn10300_store_return_value,
2706 mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
2707 mn10300_frame_chain, mn10300_skip_prologue,
2708 mn10300_push_arguments, mn10300_push_return_address,
2709 mn10300_store_struct_return, mn10300_frame_saved_pc,
2710 mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
2711 Make these functions static; they should only be visible to the
2712 outside world as gdbarch methods.
2713
2714 * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
2715 unused declaration.
2716
2717 * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
2718 in some rational order.
2719
2720 * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
2721 generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
2722
2723 Use gdbarch for most target parameters for the MN10300, rather
2724 than the tm-*.h file.
2725 * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
2726 REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
2727 FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
2728 SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
2729 FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
2730 EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
2731 STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
2732 FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2733 FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
2734 CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2735 CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
2736 TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2737 SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
2738 REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
2739 Delete definitions. We register gdbarch methods for these now.
2740 (struct frame_info, struct type, struct value): Delete forward
2741 declarations of these types; they're no longer necessary, since we
2742 don't have function declarations here any more.
2743 * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
2744 some default gdbarch methods.
2745 (mn10300_store_struct_return): Return void, as expected by
2746 gdbarch.
2747 (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
2748 as expected by gdbarch.
2749 (mn10300_frame_init_saved_regs): Provide dummy definition for
2750 this, as required by gdbarch.
2751 (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
2752 by gdbarch. Register gdbarch methods or values for all the stuff
2753 removed from tm-10300.h, listed above.
2754
2755 2001-05-08 Andrew Cagney <ac131313@redhat.com>
2756
2757 * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
2758 cli_list_end.
2759 (cli_ui_out_impl): Update.
2760
2761 * ui-out.c (default_begin, default_end): Replace
2762 default_list_begin and default_list_end.
2763 (default_ui_out_impl): Update.
2764 (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
2765 (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
2766 ui_out_list_end.
2767 (ui_out_list_begin, ui_out_list_end): New. Compatibility
2768 functions.
2769 (struct ui_out_level): Add field type.
2770 (push_level, pop_level): Update. Add type parameter.
2771
2772 * ui-out.h (enum ui_out_type): Declare.
2773 (ui_out_begin, ui_out_end): Declare.
2774 (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
2775 and list_end_ftype.
2776 (struct ui_out_impl): Update.
2777
2778 2001-05-07 Andrew Cagney <ac131313@redhat.com>
2779
2780 * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
2781 ``list_flag'' to ``depth''.
2782 * ui-out.c (default_list_begin, default_list_end): Update.
2783 (uo_list_begin, uo_list_end): Update.
2784 (MAX_UI_OUT_LEVELS): Define.
2785 (struct ui_out_level): Define.
2786 (top-level): Include "gdb_assert.h".
2787 (struct ui_out): Add fields ``level'' and ``levels''. Delete
2788 fields ``list_flag'' and ``field_count''.
2789 (ui_out_new): Update.
2790 (verify_field_proper_position): Update.
2791 (current_level, push_level, pop_level): New functions.
2792 (ui_out_list_begin): Use push_level.
2793 (ui_out_list_end): Use pop_level.
2794 (ui_out_field_int): Use current_level.
2795 (ui_out_field_skip): Ditto.
2796 (ui_out_field_fmt): Ditto.
2797
2798 2001-05-08 Michael Snyder <msnyder@redhat.com>
2799
2800 * language.c (longest_local_hex_string_custom): Strlen test is
2801 inverted -- reverse the sense of the test.
2802
2803 2001-05-08 Mark Kettenis <kettenis@gnu.org>
2804
2805 * config/i386/tm-i386v.h (struct frame_info, struct
2806 frame_saved_regs): Remove declarations.
2807 (i386_frame_num_args): Remove prototype.
2808
2809 2001-05-07 Andrew Cagney <ac131313@redhat.com>
2810
2811 * MAINTAINERS: I'm no longer actively maintaining the mn10300
2812 target.
2813
2814 2001-05-04 Andrew Cagney <ac131313@redhat.com>
2815
2816 * main.c (captured_main): Delete #ifndef _WIN32 conditional for
2817 WinGDB.
2818
2819 2001-05-06 Kevin Buettner <kevinb@redhat.com>
2820
2821 * inferior.h (save_inferior_ptid): Declare.
2822 * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
2823
2824 * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
2825 Delete these functions.
2826 * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
2827 * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
2828 * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
2829 Likewise.
2830 * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
2831 Likewise.
2832 * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
2833 * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
2834
2835 * somsolib.c (reset_inferior_ptid): Delete.
2836 (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
2837 build the cleanup struct.
2838
2839 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
2840 a cleanup to save/restore inferior_ptid.
2841
2842 2001-05-06 Mark Kettenis <kettenis@gnu.org>
2843
2844 Implement attach/detach for multi-threaded programs on Linux.
2845 * thread-db.c (keep_thread_db): Adjust comment.
2846 (deactivate_target): Removed.
2847 (thread_db_new_objfile): Don't call deactivate_target. Implement
2848 guts of deactivate_target inline instead.
2849 (attach_thread): Call ATTACH_LWP unconditionally if defined.
2850 (thread_db_attach): New function.
2851 (thread_db_detach): Don't call deactivate_target. Do necessary
2852 cleanup inline instead. Set inferior_ptid to LWP corresponding to
2853 the current user-level thread.
2854 (thread_db_kill): Set inferior_ptid to LWP corresponding to the
2855 current user-level thread.
2856 (thread_db_create_inferior): Deactivate target vector if
2857 KEEP_THREAD_DB is zero.
2858 (thread_db_mourn_inferior): Don't call deactivate_target. Do
2859 necessary cleanup inline instead.
2860 (init_thread_db_ops): Initialize to_attach field to
2861 thread_db_attach.
2862 * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
2863 (stop_wait_callback): Add prototype.
2864 (init_lwp_list): Add comment about when to re-initialize the LWP
2865 list.
2866 (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
2867 Avoid adding publicates to the LWP list. Only mark an LWP as
2868 signalled if it doesn't correspond to a cloned process.
2869 (lin_lwp_attach): Add initial process to the LWP list. Make sure
2870 it's stopped and fake a SIGSTOP.
2871 (detach_callback): New function.
2872 (lin_lwp_detach): Implement.
2873 (lin_lwp_create_inferior): Don't re-initialize LWP list here.
2874 Call child_ops.to_create_inferior directly instead of via
2875 target_beneath local.
2876 (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
2877 directly instead of via target_beneath local.
2878
2879 2001-05-06 Eli Zaretskii <eliz@is.elta.co.il>
2880
2881 * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
2882 instead of non-portable search for `/'. Use FILENAME_CMP instead
2883 of STREQ, to account for case-insensitive filesystems.
2884 (top-level): #include "filenames.h".
2885
2886 2001-05-05 Jim Blandy <jimb@redhat.com>
2887
2888 * breakpoint.c (check_duplicates): Use the breakpoint's type, not
2889 its address, to decide whether it's a watchpoint or not. Zero
2890 is a valid code address.
2891 (update_breakpoints_after_exec): Admonishing comments.
2892 * breakpoint.h (struct breakpoint): Doc fixes.
2893
2894 * breakpoint.c (check_duplicates): Take a breakpoint object as an
2895 argument, rather than an address and section. All callers changed.
2896
2897 2001-05-03 Kevin Buettner <kevinb@redhat.com>
2898
2899 * defs.h (ptid_t): New typedef.
2900 (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
2901
2902 * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
2903 blockframe.c, breakpoint.c, breakpoint.h,
2904 config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
2905 config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
2906 config/mips/nm-irix4.h, config/mips/nm-irix5.h,
2907 config/pa/nm-hppah.h, config/pa/tm-hppa.h,
2908 config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
2909 corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
2910 dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
2911 hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
2912 hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
2913 i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
2914 infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
2915 inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
2916 linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
2917 m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
2918 mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
2919 ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
2920 regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
2921 remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
2922 remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
2923 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
2924 remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
2925 solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
2926 standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
2927 target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
2928 uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
2929 (inferior_pid): Rename to inferior_ptid everywhere - even in
2930 comments and obsolete ports. In cases where this variable
2931 really is supposed to be used as a process id, use PIDGET() to
2932 extract the process id component from inferior_ptid. The
2933 other cases, either involving other variables whose types had
2934 to be changed or functions whose signatures had to changed
2935 are listed separately below.
2936
2937 * arm-linux-nat.c (get_thread_id): Change type of argument
2938 representing a combined process/thread id from ``int'' to
2939 ``ptid_t''. Also change parameter name to ptid.
2940 * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
2941 * corelow.c (core_file_thread_alive): Likewise.
2942 * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
2943 * defs.h (*target_wait_hook): Likewise.
2944 * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
2945 (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
2946 * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
2947 (gnu_resume): Likewise.
2948 * go32-nat.c (go32_wait, go32_resume): Likewise.
2949 * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
2950 * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
2951 * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
2952 (hppa_pid_or_tid_to_str, child_post_startup_inferior)
2953 (child_thread_alive): Likewise.
2954 * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
2955 (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
2956 * i386-linux-nat.c (child_resume): Likewise.
2957 * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
2958 (store_debug_register, fetch_debug_register_pair)
2959 (store_debug_register_pair, ia64_linux_insert_watchpoint)
2960 (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
2961 Likewise.
2962 * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
2963 * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
2964 (generic_target_write_pc, ptrace_wait, child_resume)
2965 (get_last_target_status): Likewise.
2966 * infptrace.c (ptrace_wait, child_resume): Likewise.
2967 * inftarg.c (child_wait, child_post_wait, child_thread_live)
2968 (child_pid_to_str): Likewise.
2969 * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
2970 (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
2971 * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
2972 (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
2973 (lin_lwp_pid_to_str): Likewise.
2974 * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
2975 (thread_db_resume, thread_db_wait): Likewise.
2976 * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
2977 (linuxthreads_resume, linuxthreads_wait): Likewise.
2978 * lynx-nat.c (child_wait, child_thread_alive, child_resume)
2979 (child_pid_to_str): Likewise.
2980 * m3-nat.c (mach_really_wait, m3_resume): Likewise.
2981 * mac-nat.c (child_wait, child_resume): Likewise.
2982 * mips-tdep.c (mips_read_pc): Likewise.
2983 * monitor.c (monitor_wait, monitor_resume): Likewise.
2984 * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
2985 * ppc-bdm.c (bdm_ppc_wait): Likewise.
2986 * procfs.c (do_attach, procfs_wait, procfs_resume)
2987 (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
2988 (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
2989 (procfs_find_LDT_entry): Likewise.
2990 * regcache.c (read_register_pid, read_signed_register_pid)
2991 (write_register_pid, generic_target_read_pc, read_pc_pid)
2992 (generic_target_write_pc, write_pc_pid): Likewise.
2993 * regcache.h (read_register_pid, read_signed_register_pid)
2994 (write_register_pid): Likewise.
2995 * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
2996 * remote-array.c (array_wait, array_resume): Likewise.
2997 * remote-bug.c (bug_wait, bug_resume): Likewise.
2998 * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
2999 * remote-eb.c (eb_wait, eb_resume): Likewise.
3000 * remote-es.c (es1800_wait, es1800_resume): Likewise.
3001 * remote-mips.c (mips_wait, mips_resume): Likewise.
3002 * remote-mm.c (mm_wait, mm_resume): Likewise.
3003 * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
3004 * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
3005 * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
3006 * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
3007 * remote-sds.c (sds_wait, sds_resume): Likewise.
3008 * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
3009 * remote-st.c (st2000_wait, st2000_resume): Likewise.
3010 * remote-udi.c (udi_wait, udi_resume): Likewise.
3011 * remote-vx.c (vx_wait, vx_resume): Likewise.
3012 * remote.c (remote_current_thread, remote_resume, remote_wait)
3013 (remote_async_resume, remote_async_wait, remote_cisco_wait)
3014 (remote_thread_alive): Likewise.
3015 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
3016 (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
3017 (solaris_pid_to_str): Likewise.
3018 * symm-nat.c (child_wait, child_resume): Likewise.
3019 * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
3020 (debug_to_notice_signals, debug_to_thread_alive)
3021 (normal_target_post_startup_inferior, normal_pid_to_str)
3022 (debug_to_post_startup_inferior): Likewise.
3023 * target.h (to_resume, to_wait, to_post_wait)
3024 (to_post_startup_inferior, to_notice_signals, to_thread_alive)
3025 (to_pid_to_str [all in struct target_ops]): Likewise.
3026 (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
3027 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
3028 (attach_thread, detach_thread, thread_db_resume, check_event)
3029 (thread_db_post_startup_inferior, thread_db_thread_alive)
3030 (thread_db_pid_to_str): Likewise.
3031 * thread.c (add_thread, delete_thread, find_thread_pid)
3032 (pid_to_thread_id, in_thread_list, load_infrun_state)
3033 (save_infrun_state, switch_to_thread, restore_current_thread)
3034 (make_cleanup_restore_current_thread): Likewise.
3035 * top.c (target_wait_hook): Likewise.
3036 * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
3037 (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
3038 (uw_thread_pid_to_str): Likewise.
3039 * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
3040 * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
3041 (cywin_pid_to_str): Likewise.
3042 * wince.c (child_wait, child_resume, win32_child_thread_alive):
3043 Likewise.
3044 * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
3045 * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
3046 * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
3047 * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
3048 * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
3049 * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
3050 (procfs_set_watchpoint): Likewise.
3051 * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
3052 * config/i386/nm-ptx4.h (child_wait): Likewise.
3053 * config/i386/nm-symmetry.h (child_wait): Likewise.
3054 * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
3055 * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
3056 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
3057 (lin_lwp_attach_lwp): Likewise.
3058 * config/mips/nm-irix4.h, config/mips/nm-irix5.h
3059 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
3060 * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
3061 (hppa_pid_or_tid_to_str): Likewise.
3062 * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
3063 * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
3064 * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
3065 (procfs_set_watchpoint): Likewise.
3066
3067 * gdbthread.h (thread_id_to_pid): Change return type which
3068 represents a combined process/thread id from ``int'' to
3069 ``ptid_t''.
3070 * gnu-nat.c (gnu_wait): Likewise.
3071 * go32-nat.c (go32_wait): Likewise.
3072 * hpux-thread.c (hpux_thread_wait): Likewise.
3073 * inferior.h (procfs_first_available): Likewise.
3074 * inftarg.c (child_wait): Likewise.
3075 * infttrace.c (ptrace_wait): Likewise.
3076 * lin-lwp.c (lin_lwp_wait): Likewise.
3077 * lin-thread.c (thread_db_wait): Likewise.
3078 * linux-thread.c (linuxthreads_wait): Likewise.
3079 * lynx-nat.c (child_wait): Likewise.
3080 * m3-nat.c (mach_really_wait): Likewise.
3081 * mac-nat.c (child_wait): Likewise.
3082 * monitor.c (monitor_wait): Likewise.
3083 * ppc-bdm.c (bdm_ppc_wait): Likewise.
3084 * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
3085 * remote-adapt.c (adapt_wait): Likewise.
3086 * remote-array.c (array_wait): Likewise.
3087 * remote-bug.c (bug_wait): Likewise.
3088 * remote-e7000.c (e7000_wait): Likewise.
3089 * remote-eb.c (eb_wait): Likewise.
3090 * remote-es.c (es1800_wait): Likewise.
3091 * remote-mips.c (mips_wait): Likewise.
3092 * remote-mm.c (mm_wait): Likewise.
3093 * remote-nindy.c (nindy_wait): Likewise.
3094 * remote-os9k (rombug_wait): Likewise.
3095 * remote-rdi.c (arm_rdi_wait): Likewise.
3096 * remote-rdp.c (remote_rdp_wait): Likewise.
3097 * remote-sds.c (sds_wait): Likewise.
3098 * remote-sim.c (gdbsim_wait): Likewise.
3099 * remote-st.c (st2000_wait): Likewise.
3100 * remote-udi.c (udi_wait): Likewise.
3101 * remote-vx.c (vx_wait): Likewise.
3102 * remote.c (remote_wait, remote_async_wait, remote_current_thread)
3103 (remote_cisco_wait): Likewise.
3104 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
3105 Likewise.
3106 * symm-nat.c (child_wait): Likewise.
3107 * target.c (debug_to_wait): Likewise.
3108 * target.h (to_wait [in struct target_ops]): Likewise.
3109 * thread.c (thread_id_to_pid): Likewise.
3110 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
3111 Likewise.
3112 * top.c (*target_wait_hook): Likewise.
3113 * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
3114 * v850ice.c (v850ice_wait): Likewise.
3115 * win32-nat.c (child_wait): Likewise.
3116 * wince.c (child_wait): Likewise.
3117 * config/nm-lynx.h (child_wait): Likewise.
3118 * config/i386/nm-ptx4.h (child_wait): Likewise.
3119 * config/i386/nm-symmetry.h (child_wait): Likewise.
3120
3121 * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
3122 to wait_ptid and change its type from ``int'' to ``ptid_t''.
3123 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
3124 but rename saved_inferior_pid to saved_inferior_ptid.
3125 * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
3126 save_pid to save_ptid.
3127 * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
3128 * hppah-nat.c (child_pid_to_exec): Likewise, but rename
3129 saved_inferior_pid to saved_inferior_ptid.
3130 * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
3131 * infrun.c (previous_inferior_pid [static global]): Likewise,
3132 but rename to previous_inferior_ptid.
3133 (resume): Likewise, but rename resume_pid to resume_ptid.
3134 (struct execution_control_state): Likewise, but rename
3135 pid to ptid, saved_inferior_pid to saved_inferior_ptid,
3136 and waiton_pid to waiton_ptid.
3137 (target_last_wait_pid): Likewise, but rename to
3138 target_last_wait_ptid.
3139 * infttrace.c (saved_real_pid): Likewise, but rename to
3140 saved_real_ptid.
3141 (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
3142 to saved_inferior_ptid.
3143 * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
3144 (trap_ptid): Likewise, but renamed from trap_pid.
3145 * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
3146 to gdb_ptid.
3147 * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
3148 (thread_db_wait): Likewise, but rename ret_pid to retptid.
3149 * procfs.c (procfs_wait): Likewise, for retval whose name
3150 doesn't change. Also, ``temp'' becomes two separate variables,
3151 one named temp_tid (an int) and the other temp_ptid.
3152 (procfs_notice_thread): Likewise (type change) for gdb_threadid
3153 whose name does not change.
3154 * regcache.c (registers_ptid): Likewise, but renamed from
3155 registers_pid.
3156 (read_register_pid, read_signed_register_pid, write_register_pid):
3157 Likewise, but rename save_pid to save_ptid.
3158 (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
3159 to saved_inferior_ptid.
3160 * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
3161 * sol-thread.c (struct ps_prochandle): Likewise.
3162 (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
3163 (sol_thread_wait): Likewise, for rtnval whose name does not
3164 change, and for save_pid which becomes save_ptid.
3165 (solaris_pid_to_str): Likewise for lwp whose name does not change.
3166 (sol_find_new_threads_callback): Likewise, for pid which becomes
3167 ptid.
3168 * target.h (target_resume, target_wait, target_post_wait)
3169 (target_post_startup_inferior, target_notice_signals)
3170 (target_thread_alive): Likewise.
3171 * thread.c (info_threads_command): Likewise, but rename
3172 current_pid to current_ptid.
3173 (struct current_thread_cleanup): Likewise, but rename field
3174 inferior_pid to inferior_ptid.
3175 * thread-db.c (find_new_threads_callback): Likewise, but rename
3176 pid to ptid.
3177 * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
3178 change.
3179 (lwp_to_tr): Likewise fo tid whose name remains unchanged.
3180 (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
3181 but rename pid to ptid.
3182 * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
3183 * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
3184 * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
3185 * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
3186 * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
3187 * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
3188
3189 * arch-utils.c (generic_prepare_to_proceed): Test for the
3190 "zero" ptid by using ptid_equal() to test to see if variable
3191 in question is the same as null_ptid. This replaces a direct
3192 test against zero.
3193 * cxux-nat.c (add_shared_symbol_files): Likewise.
3194 * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
3195 * infcmd.c (run_command): Likewise.
3196 * inflow.c (kill_command): Likewise.
3197 * infttrace.c (call_ttrace): Likewise.
3198 * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
3199 * lin-thread.c (thread_db_kill): Likewise.
3200 * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
3201 * remote-es.c (es1800_kill): Likewise.
3202 * sol-thread.c (sol_thread_create_inferior): Likewise.
3203 * solib.c (locate_base): Likewise.
3204 * target.c (nosupport_runtime): Likewise.
3205 * thread-db.c (thread_db_wait): Likewise.
3206 * top.c (quit_confirm, quit_force): Likewise.
3207 * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
3208
3209 * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
3210 Use ptid_equal to compare value of process/thread ids instead of
3211 ``=='' and ``!='' operators.
3212 lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
3213 (stop_wait_callback, lin_lwp_wait): Likewise.
3214 * procfs.c (procfs_wait): Likewise.
3215 * regcache.c (read_register_bytes, read_register_gen)
3216 (write_register_gen, read_register, read_register_pid)
3217 (read_signed_register, read_signed_register_pid, write_register)
3218 (write_register_pid, supply_register): Likewise.
3219 * remote-vx.c (vx_resume): Likewise.
3220 * sol-thread.c (sol_thread_wait): Likewise.
3221 * symm-nat.c (kill_inferior): Likewise.
3222 * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
3223 (in_thread_list, info_threads_command, switch_to_thread)
3224 (restore_current_thread): Likewise.
3225 * uw-thread (libtread_stub): Likewise.
3226
3227 * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
3228
3229 * corelow.c (add_to_thread_list): Convert argument in add_thread()
3230 call to a ptid_t.
3231 * gnu-nat.c (inf_validate_procs): Likewise.
3232 * linux-thread.c (stop_thread, update_stop_threads): Likewise.
3233 * remote.c (record_currthread, remote_threads_info): Likewise.
3234 * win32-nat.c (child_add_thread): Likewise.
3235
3236 * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
3237 respectively, to save_inferior_ptid() and restore_inferior_ptid().
3238 Adjust implementations to operate on ``ptid_t'' instead of ``int''.
3239 * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
3240 * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
3241 * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
3242 * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
3243 * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
3244 * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
3245
3246 * infrun.c (RESUME_ALL): New macro representing the -1 ptid
3247 to be passed to target_resume() when all threads should resume.
3248 (resume): Set resume_ptid to RESUME_ALL rather than -1.
3249 (handle_inferior_event): Invoke target_resume() with RESUME_ALL
3250 instead of -1.
3251 * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
3252 a ptid_t in target_resume() call.
3253 * osfsolib.c (solib_create_inferior_hook): Likewise.
3254 * solib-svr4.c (solib_create_inferior_hook): Likewise.
3255
3256 * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
3257 PIDGET0. Define new PIDGET macro which uses PIDGET0, the only
3258 difference being that the 0xffff pattern will be interpreted
3259 as -1.
3260 * lin-thread.c (PIDGET, PIDGET0): Likewise.
3261 * thread-db.c (PIDGET, PIDGET0): Likewise.
3262 * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
3263 * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
3264 * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
3265 * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
3266
3267 * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
3268 mach_really_wait rather than mach_really__wait.
3269 * lin-thread.c (check_for_thread_event): Fix warning; make function
3270 actually return a value.
3271
3272 * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
3273 ``pid'' arguments from ``int'' to ``ptid_t''. Also renamed
3274 pid to ptid.
3275 * gdbarch.h, gdbarch.c: Regenerated.
3276
3277 2001-05-03 Jonathan Larmour <jlarmour@redhat.com>
3278
3279 * rdi-share/devsw.c: Include <time.h> for struct tm
3280
3281 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
3282
3283 * config/djgpp/fnchange.lst: Add mappings for the new
3284 opcodes/openrisc-* files.
3285
3286 2001-05-01 Michael Snyder <msnyder@redhat.com>
3287
3288 * lin-lwp.c: Change printf to fprintf_unfiltered.
3289 * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
3290
3291 2001-05-01 Nicholas Duffek <nsd@redhat.com>
3292
3293 * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
3294 (rs6000_in_solib_return_trampoline): Declare.
3295 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
3296 function.
3297 (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
3298 * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
3299 check after the CSECT check rather than before it. Allocate
3300 separate symtabs for CSECTs whose names begin with '@'.
3301 (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
3302 Activate the misc_func_recorded mechanism for whose names begin
3303 with '@'.
3304
3305 2001-04-30 J.T. Conklin <jtc@redback.com>
3306
3307 * ppcnbsd-nat.c (fetch_inferior_registers)
3308 (store_inferior_registers, fetch_core_registers): Changed to use
3309 fpreg[] instead of r_regs[] to access floating point registers.
3310
3311 2001-04-30 Elena Zannoni <ezannoni@redhat.com>
3312
3313 * sh-tdep.c: Get rid of the function prototypes.
3314 (sh_sh4_build_float_register_type): Move earlier in file.
3315 (fv_reg_base_num): Ditto.
3316 (dr_reg_base_num): Ditto.
3317
3318 2001-04-30 Michael Snyder <msnyder@redhat.com>
3319
3320 * thread-db.c: Revert 2001-04-26 change for debugging output.
3321 * lin-lwp.c: Ditto.
3322 * lin-lwp.c: Add set/show debug lin-lwp command. Use this
3323 command to turn extra debugging output on / off.
3324
3325 2001-04-30 Eli Zaretskii <eliz@is.elta.co.il>
3326
3327 * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
3328 (top-level): #include filenames.h.
3329
3330 * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
3331 FILENAME_CMP, to DTRT on non-Posix platforms.
3332 (top-level): #include filenames.h.
3333
3334
3335 2001-04-27 Andrew Cagney <ac131313@redhat.com>
3336
3337 * gdbtypes.c (check_stub_method): Always initialize ``p''.
3338
3339 2001-04-27 Andrew Cagney <ac131313@redhat.com>
3340
3341 * configure.host: Delete romp host.
3342 * TODO: Update.
3343
3344 2001-04-27 Andrew Cagney <ac131313@redhat.com>
3345
3346 * TODO: Updates to 5.1. No more targets to obsolete.
3347
3348 2001-04-27 Don Howard <dhoward@redhat.com>
3349
3350 (Changes from Kevin Buettner, with minor update by Don Howard.)
3351
3352 * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
3353 typos in which hexadecimal constants were really intended to be
3354 binary constants.
3355 (i387_tag): Swap logic regarding zero vs non-zero exponents.
3356 * MAINTAINERS (Misc): Added myself to the write-after-approval
3357 list.
3358
3359 2001-04-26 Jim Blandy <jimb@redhat.com>
3360
3361 (Changes from Daniel Berlin, with revisions by Jim Blandy.)
3362
3363 Abstract out operations specific to particular C++ ABI's, and
3364 invoke them through a function table. This removes the C++ ABI
3365 dependencies scattered throughout the code, and allows us to
3366 cleanly add support for new C++ ABI's.
3367 * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
3368 * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
3369 jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
3370 #include "cp-abi.h". These files all use functions now declared
3371 there.
3372 * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
3373 Deleted. These services are now provided by functions declared in
3374 cp-abi.h.
3375 * value.h (value_rtti_type, value_virtual_fn_field): Same.
3376 * values.c (value_virtual_fn_field): Same, for this definition.
3377 * valops.c (value_rtti_type): Same.
3378 * c-typeprint.c (c_type_print_base): Use the functions from
3379 "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
3380 tests.
3381 * dbxread.c (record_minimal_symbol): Same.
3382 * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
3383 virtual_base_index_skip_primaries): Same.
3384 * jv-typeprint.c (java_type_print_base): Same.
3385 * linespec.c (find_methods, decode_line_1): Same.
3386 * symtab.c (gdb_mangle_name): Same.
3387 * Makefile.in (SFILES): Add the new .c files mentioned above.
3388 (cp_abi_h): New variable.
3389 (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
3390 (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
3391 (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
3392 jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
3393 dependency on $(cp_abi_h).
3394
3395 2001-04-26 Michael Snyder <msnyder@redhat.com>
3396
3397 * thread-db.c (_initialize_thread_db): Add set/show command
3398 "debug-linux-threads" for debugging output.
3399 * lin-lwp.c (various): Use global "debug_linux_threads to
3400 turn on extra debugging output.
3401 * lin-lwp.c: Minor cleanups in comments.
3402 * target.c (normal_pid_to_str): Get rid of an ancient hack.
3403 * remote.c (remote_pid_to_str): New function for remote target.
3404
3405 2001-04-24 Jim Blandy <jimb@redhat.com>
3406
3407 * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
3408 qualifier on C++ references; all references are innately const.
3409
3410 2001-04-20 Mark Kettenis <kettenis@gnu.org>
3411
3412 * event-top.h: Fix formatting.
3413
3414 2001-04-17 Andrew Cagney <ac131313@redhat.com>
3415
3416 * source.c (openp): Obsolete #ifdef MPW code.
3417 (open_source_file): Ditto.
3418 * event-top.c (display_gdb_prompt): Ditto.
3419 * utils.c (query): Ditto.
3420 (init_page_info): Ditto.
3421 (init_page_info): Delete #ifndef MPW.
3422 * top.c (gdb_readline): Ditto.
3423 * mac-xdep.c: Obsolete.
3424 * mac-gdb.r: Obsolete.
3425 * config/powerpc/xm-mpw.h: Obsolete.
3426 * config/xm-mpw.h: Obsolete.
3427 * mpw-make.sed: Obsolete.
3428 * mpw-config.in: Obsolete.
3429 * TODO: Update
3430 * NEWS: Update
3431
3432 2001-04-19 Mark Kettenis <kettenis@gnu.org>
3433
3434 * i386-tdep.c (i386_frameless_function_invocation): New function.
3435 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
3436 in terms of i386_frameless_function_invocation. Adjust comment.
3437 (i386_frameless_function_invocation): New prototype.
3438
3439 2001-04-18 Martin M. Hunt <hunt@redhat.com>
3440
3441 * top.c (gdb_init): Don't call cli_out_new() to
3442 create global uiout if init_ui_hook is set. uiout will
3443 have to be initialized there.
3444
3445 2001-04-18 Andrew Cagney <ac131313@redhat.com>
3446
3447 * arch-utils.c: Include "regcache.h".
3448
3449 2001-04-18 Mark Kettenis <kettenis@gnu.org>
3450
3451 * i386-tdep.c (i386_saved_pc_after_call): New function.
3452 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
3453 of i386_saved_pc_after_call.
3454 (i386_saved_pc_after_call): New prototype.
3455
3456 2001-04-17 Michael Snyder <msnyder@redhat.com>
3457
3458 * i386-nat.c: Fix typo in comment.
3459 * solib.c (no_shared_libraries): New function. Discard all symbols
3460 from shared libraries.
3461 (_initialize_solib): Add command "nosharedlibrary" as complement
3462 to the command "sharedlibrary". Unloads symbols for all solibs.
3463
3464 2001-04-16 Andrew Cagney <ac131313@redhat.com>
3465
3466 * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
3467 * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
3468 (m68*-est-*, m68*-sony-*, m68*-isi-*):
3469 * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
3470 * config/m68k/xm-news.h: Obsolete.
3471 * config/m68k/tm-news.h:
3472 * config/m68k/xm-news1000.h: Obsolete.
3473 * config/m68k/news.mh: Obsolete.
3474 * config/m68k/news.mt: Obsolete.
3475 * config/m68k/nm-news.h: Obsolete.
3476 * config/m68k/news1000.mh: Obsolete.
3477 * news-xdep.c: Obsolete.
3478 * Makefile.in (isi-xdep.o): Obsolete.
3479 (ALLDEPFILES): Delete isi-xdep.c.
3480 (tm-isi.h): Obsolete.
3481 * m68k-tdep.c (altos_skip_prologue): Update comments.
3482 (isi_skip_prologue): Obsolete.
3483 * isi-xdep.c: Obsolete.
3484 * config/m68k/xm-isi.h: Obsolete.
3485 * config/m68k/isi.mh: Obsolete.
3486 * config/m68k/tm-isi.h: Obsolete.
3487 * config/m68k/isi.mt: Obsolete.
3488
3489 * TODO: Update.
3490 * NEWS: Update.
3491
3492 2001-04-17 Michael Snyder <msnyder@redhat.com>
3493
3494 * remote.c (remote_open_1): On opening the remote target, activate
3495 the solib_create_inferior_hook, so that it can detect when the
3496 target loads shared libraries.
3497 (remote_async_open_1): Ditto.
3498
3499 2001-04-17 Michael Snyder <msnyder@redhat.com>
3500
3501 * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
3502 * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
3503 * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
3504 * testsuite/gdb.trace/infotrace.exp: Ditto.
3505 * testsuite/gdb.trace/passcount.exp: Ditto.
3506 * testsuite/gdb.trace/while-stepping.exp: Ditto.
3507
3508 2001-04-17 Michael Snyder <msnyder@redhat.com>
3509
3510 * thread-db.c (check_thread_signals): When looping over all
3511 signals, ignore signal zero.
3512 (disable_thread_signals): Ditto.
3513
3514 2001-04-17 Eirik Fuller <eirik@netapp.com>
3515
3516 * thread.c (do_captured_thread_select): Allow the argument to the
3517 thread command to be an expression rather than a literal integer.
3518
3519 2001-04-17 Mark Kettenis <kettenis@gnu.org>
3520
3521 * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
3522 read_memory_unsigned_integer instead of read_memory_integer.
3523
3524 2001-04-16 Kevin Buettner <kevinb@redhat.com>
3525
3526 * solib-aix5.c (map_index_vs_section_name_okay): New function.
3527 (aix5_relocate_main_executable): Don't use file offsets for
3528 determining corresponding sections and map file entries. Call
3529 map_index_vs_section_name_okay() to do this instead.
3530
3531 2001-04-16 Kevin Buettner <kevinb@redhat.com>
3532
3533 * procfs.c (open_with_retry): New function.
3534 (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
3535 (proc_get_LDT_entry): Call open_with_retry() instead of open().
3536
3537 2001-04-16 Kevin Buettner <kevinb@redhat.com>
3538
3539 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
3540 comparison against TRAP_HWBKPT constant yet again to account
3541 for the various values used by different kernel versions.
3542
3543 2001-04-16 Daniel Berlin <dan@cgsoftware.com>
3544
3545 * demangle.c (_initialize_demangler): Use xcalloc on the
3546 demangling_style_names, and make it a null terminated array of
3547 names, to avoid a crash.
3548
3549 2001-04-16 Mark Kettenis <kettenis@gnu.org>
3550
3551 * i386-tdep.c (i386_frame_chain): New function.
3552 * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
3553 i386_frame_chain.
3554 (i386_frame_chain): New prototype.
3555
3556 2001-04-14 J.T. Conklin <jtc@redback.com>
3557
3558 * target.h (target_ops): Removed to_core_file_to_sym_file vector
3559 function.
3560 * corelow.c (core_ops): Updated for above change.
3561 * gnu-nat.c (core_ops): Likewise.
3562 * inftarg.c (child_ops): Likewise.
3563 * monitor.c (monitor_ops): Likewise.
3564 * ppc-bdm.c (bdm_ppc_ops): Likewise.
3565 * remote-adapt.c (adapt_ops): Likewise.
3566 * remote-bug.c (bug_ops): Likewise.
3567 * remote-e7000.c (e7000_ops): Likewise.
3568 * remote-eb.c (eb_ops): Likewise.
3569 * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
3570 * remote-mm.c (mm_ops): Likewise.
3571 * remote-nindy.c (nindy_ops): Likewise.
3572 * remote-nrom.c (nrom_ops): Likewise.
3573 * remote-os9k.c (rombug_ops): Likewise.
3574 * remote-rdp.c (remote_rdp_ops): Likewise.
3575 * remote-sim.c (gdbsim_ops): Likewise.
3576 * remote-st.c (st2000_ops): Likewise.
3577 * v850ice.c (v850ice_ops): Likewise.
3578 * target.c (cleanup_target): Likewise
3579 (update_current_target): Likewise.
3580 (setup_target_debug): Likewise
3581 (debug_to_core_file_to_sym_file): Removed.
3582
3583 * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
3584 sets symbol file from information obtained from the core file.
3585 * corelow.c (core_file_to_sym_file): Removed.
3586
3587 2001-04-13 Fernando Nasser <fnasser@redhat.com>
3588
3589 From Adam Mirowski <Adam.Mirowski@Sun.COM>
3590 Fixed Insight on Solaris. It was not possible to debug a process
3591 because of EINTR "errors".
3592 * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
3593 with EINTR, retry the call.
3594
3595 2001-04-12 Kevin Buettner <kevinb@redhat.com>
3596
3597 * solib-aix5.c (enum maptype): Delete.
3598 (struct lm_info): Add new member ``nmappings''. Make ``mapping''
3599 member a pointer instead of a statically sized array.
3600 (build_so_list_from_mapfile): Dynamically allocate ``mapping''
3601 array.
3602 (aix5_relocate_main_executable, aix5_relocate_section_addresses,
3603 aix5_find_global_pointer): Search for correct mapping to use
3604 based on file offset instead of knowledge of whether the section
3605 is read-only or read/write.
3606 (aix5_find_gate_addresses): Use the first mapping instead of
3607 the (now defunct) MT_READONLY mapping.
3608
3609 2001-04-12 Nicholas Duffek <nsd@redhat.com>
3610
3611 * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
3612 "@".
3613
3614 2001-04-12 Kevin Buettner <kevinb@redhat.com>
3615
3616 * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
3617
3618 2001-04-09 Andrew Cagney <ac131313@redhat.com>
3619
3620 Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
3621 * config/i386/sun386.mh: Obsolete.
3622 * config/i386/sun386.mt: Obsolete.
3623 * config/i386/xm-sun386.h: Obsolete.
3624 * config/i386/tm-sun386.h: Obsolete.
3625 * config/i386/nm-sun386.h: Obsolete.
3626 * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
3627 (sun386-nat.o): Target is obsolete.
3628 * sun386-nat.c: Obsolete.
3629 * configure.tgt (i[3456]86-*-sunos*): Obsolete.
3630 * configure.host (i[3456]86-*-sunos*): Obsolete.
3631 * NEWS: Update.
3632 * TODO: Update.
3633
3634 2001-04-10 J.T. Conklin <jtc@redback.com>
3635
3636 * maint.c: Fix typo in comment.
3637
3638 2001-04-09 Keith Seitz <keiths@cygnus.com>
3639
3640 * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
3641
3642 2001-04-08 Kevin Buettner <kevinb@redhat.com>
3643
3644 * fork-child.c (fork_inferior, clone_and_follow_inferior):
3645 Document fact that apparent call to vfork() might actually be
3646 a call to fork() instead.
3647 * ser-pipe.c (pipe_open): Likewise.
3648
3649 2001-04-08 Kevin Buettner <kevinb@redhat.com>
3650
3651 * printcmd.c (print_frame_args): Use a cleanup to invoke
3652 ui_out_list_end() so that the list count nesting flag will
3653 be decremented properly when an error occurs.
3654 * stack.c (print_frame): Likewise.
3655
3656 2001-04-06 J.T. Conklin <jtc@redback.com>
3657
3658 * dcache.c (dcache_write_line): Fixed bugs where cache line was
3659 not written to target correctly.
3660
3661 * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
3662 void return value;
3663 * gdbserver/low-nbsd.c: Likewise.
3664 * gdbserver/low-sparc.c: Likewise.
3665 * gdbserver/low-sun3.c: Likewise.
3666
3667 2001-04-06 Geoffrey Keating <geoffk@redhat.com>
3668
3669 * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
3670 (PTRACE_DETACH): Don't define.
3671
3672 2001-04-06 David Smith <dsmith@redhat.com>
3673
3674 * arch-utils.c (default_prepare_to_proceed)
3675 (generic_prepare_to_proceed): Added new functions.
3676 * arch-utils.h: New function declarations for
3677 default_prepare_to_proceed() and generic_prepare_to_proceed().
3678 * gdbarch.sh: Added PREPARE_TO_PROCEED.
3679 * gdbarch.c: Regenerated.
3680 * gdbarch.h: Regenerated.
3681 * inferior.h: Added get_last_target_status() declaration.
3682 * infrun.c (get_last_target_status): Added new function.
3683 (handle_inferior_event): Saves last pid and waitstatus, which will
3684 get returned by get_last_target_status().
3685
3686 * hppa-tdep.c (prepare_to_proceed): Added comment stating that
3687 prepare_to_proceed() is potentially redundant since
3688 default_prepare_to_proceed() has been added.
3689 * linux-thread.c (prepare_to_proceed): Ditto.
3690 * lin-lwp.c (prepare_to_proceed): Ditto.
3691 * m3-nat.c (prepare_to_proceed): Ditto.
3692
3693 2001-04-05 Andrew Cagney <ac131313@redhat.com>
3694
3695 Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
3696 and powerpc-*-netware* target.
3697 * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
3698 Obsolete.
3699 * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
3700 (powerpcle-*-solaris*): Obsolete.
3701 * config/powerpc/tm-cygwin.h: Obsolete.
3702 * config/powerpc/cygwin.mt: Obsolete.
3703 * config/powerpc/xm-cygwin.h: Obsolete.
3704 * config/powerpc/cygwin.mh: Obsolete.
3705 * config/powerpc/nm-solaris.h: Obsolete.
3706 * config/powerpc/xm-solaris.h: Obsolete.
3707 * config/powerpc/tm-solaris.h: Obsolete.
3708 * config/powerpc/solaris.mt: Obsolete.
3709 * config/powerpc/tm-ppc-nw.h: Obsolete.
3710 * config/powerpc/ppc-nw.mt: Obsolete.
3711 * TODO: Update.
3712 * NEWS: Update.
3713
3714 2001-04-06 Fernando Nasser <fnasser@redhat.com>
3715
3716 * buildsym.c (record_line): Turn off unused addr bits.
3717
3718 2001-04-06 Fernando Nasser <fnasser@redhat.com>
3719
3720 From David Deephanphongs <deephan@telocity.com>
3721 * inferior.h: Fix declarations of get_inferior_args and
3722 set_inferior_args, which were missing the trailing 's'.
3723
3724 2001-04-05 Jeff Holcomb <jeffh@redhat.com>
3725
3726 * monitor.c (monitor_supply_register): Only report an error if we
3727 don't get a valid value.
3728
3729 2001-04-05 Eli Zaretskii <eliz@is.elta.co.il>
3730
3731 * README: Don't mention gdba.el.
3732
3733 2001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3734
3735 From Jimmy Guo <guo@cup.hp.com>
3736 * top.c (init_main): set prompt if annotation_level>1,
3737 this is necessary when annotation_level is set to 2 via
3738 --annotate=2 command line option.
3739
3740 2001-04-04 Andrew Cagney <ac131313@redhat.com>
3741
3742 Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
3743 * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
3744 * configure.host (a29k-*-*): Obsolete.
3745 * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
3746 ultra3-xdep.c.
3747 (ultra3-nat.o, ultra3-xdep.o): Obsolete.
3748 * config/a29k/tm-ultra3.h: Obsolete.
3749 * config/a29k/ultra3.mt: Obsolete.
3750 * config/a29k/ultra3.mh: Obsolete.
3751 * config/a29k/nm-ultra3.h: Obsolete.
3752 * config/a29k/xm-ultra3.h: Obsolete.
3753 * ultra3-xdep.c: Obsolete.
3754 * ultra3-nat.c: Obsolete.
3755 * config/a29k/a29k-kern.mt: Obsolete.
3756 * NEWS: Update.
3757 * TODO: Update.
3758
3759 Wed Apr 4 21:48:42 2001 Christopher Faylor <cgf@cygnus.com>
3760
3761 * main.c: Remove windows.h use.
3762 (gdbtk_test): Use PATH_MAX for home var calculation.
3763 * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
3764 Win32 in colon test.
3765 * ser-tcp.c: Use modern __CYGWIN__ conditional.
3766 * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
3767 (openp): Ditto.
3768 * symfile.c (symfile_bfd_open): Ditto.
3769
3770 2001-04-04 Martin M. Hunt <hunt@redhat.com>
3771
3772 * main.c (captured_main): For GDBtk, don't use tui_fileopen().
3773 Handle all stream setup in gdbtk_init
3774
3775 2001-04-04 Mark Kettenis <kettenis@gnu.org>
3776
3777 * i386-tdep.c (i386_extract_return_value): Don't return the return
3778 value of a void function.
3779 (i386_store_return_value): Likewise.
3780
3781 2001-04-03 Andrew Cagney <ac131313@redhat.com>
3782
3783 Obsolete w65-*-* target.
3784 * configure.tgt (w65-*-*): Obsolete.
3785 * config/w65/w65.mt: Obsolete.
3786 * config/w65/tm-w65.h: Obsolete.
3787 * w65-tdep.c: Obsolete.
3788 * NEWS: Update. Fix TiC80 description.
3789 * TODO: Update.
3790
3791 2001-04-03 Andrew Cagney <ac131313@redhat.com>
3792
3793 Obsolete tic80-*-* target.
3794 * configure.tgt (tic80-*-*): Obsolete.
3795 * config/tic80/tic80.mt: Obsolete.
3796 * config/tic80/tm-tic80.h: Obsolete.
3797 * tic80-tdep.c: Obsolete.
3798 * TODO: Update
3799 * NEWS: Update.
3800
3801 2001-04-02 J.T. Conklin <jtc@redback.com>
3802
3803 * remote-mips.c (S_IROTH): Moved definition from here.
3804 * gdb_stat.h (S_IROTH): to here.
3805
3806 * remote.c (remote_protocol_e, remote_protocol_E): Define.
3807 (set_remote_protocol_e_packet_cmd)
3808 (set_remote_protocol_E_packet_cmd)
3809 (show_remote_protocol_e_packet_command)
3810 (show_remote_protocol_E_packet_command): New functions.
3811 (init_all_packet_configs): Initialize remote_protocol_e and
3812 remote_protocol_E.
3813 (remote_resume, remote_async_resume): Support e/E command
3814 packets.
3815 (show_remote_cmd): Show state of remote_protocol_e and
3816 remote_protocol_E.
3817 (_initialize_remote): Add "set remote step-over-range-packet"
3818 and "set remote step-over-range-w-signal-packet" to CLI.
3819
3820 2001-04-01 Andrew Cagney <ac131313@redhat.com>
3821
3822 Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
3823 ns32k-utek-*.
3824 * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
3825 (umax-xdep.o, ns32km3-nat.o): Obsolete.
3826 * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
3827 Obsolete.
3828 * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
3829 Obsolete.
3830 * config/ns32k/merlin.mh: Obsolete.
3831 * config/ns32k/merlin.mt: Obsolete.
3832 * config/ns32k/xm-merlin.h: Obsolete.
3833 * config/ns32k/tm-merlin.h: Obsolete.
3834 * config/ns32k/nm-umax.h: Obsolete.
3835 * config/ns32k/umax.mh: Obsolete.
3836 * config/ns32k/umax.mt: Obsolete.
3837 * config/ns32k/xm-umax.h: Obsolete.
3838 * umax-xdep.c: Obsolete.
3839 * config/ns32k/ns32km3.mh: Obsolete.
3840 * config/ns32k/ns32km3.mt: Obsolete.
3841 * config/ns32k/tm-ns32km3.h: Obsolete.
3842 * config/ns32k/xm-ns32km3.h: Obsolete.
3843 * ns32km3-nat.c: Obsolete.
3844 * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
3845 (merlin_frame_num_args): Ditto.
3846 * NEWS: Update.
3847 * TODO: Update.
3848
3849 2001-04-02 Eli Zaretskii <eliz@is.elta.co.il>
3850
3851 * config/djgpp/fnchange.lst: Tweak due to
3852 expect/example/chesslib.c.
3853
3854 2001-04-02 Kevin Buettner <kevinb@redhat.com>
3855
3856 * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
3857 unsigned int to unsigned long. Also, fix format string.
3858 (pop_frame): Fix PC_IN_CALL_DUMMY() call so that it doesn't
3859 use an undeclared variable. Also, delete declaration and
3860 initialization of ``fp'' because it is otherwise unused.
3861 * remote-bug.c (sleep): Delete declaration.
3862 (bug_store_register, bug_write_memory, bug_read_memory)
3863 (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
3864 format statements and cast certain sprintf() arguments to
3865 eliminate warnings.
3866 (bug_load): Likewise for call to printf_filtered().
3867 * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
3868 assignment to ``pc''. The necessary assignment is done in
3869 hand_function_call() after the invocation of FIX_CALL_DUMMY().
3870
3871 2001-03-20 Daniel Berlin <dberlin@redhat.com>
3872
3873 * symtab.c (completion_list_add_name): Remove duplicate string checks,
3874 readline already does this, and it's much faster at it, too.
3875
3876 2001-04-01 Eli Zaretskii <eliz@is.elta.co.il>
3877
3878 * go32-nat.c: Minor tweaks, to pacify the ari script.
3879
3880 2001-04-01 Mark Kettenis <kettenis@gnu.org>
3881
3882 * i386-tdep.c (i386_extract_struct_value_address): New function.
3883 * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
3884 in terms of i386_extract_struct_value_address.
3885 (i386_extract_struct_value_address): New prototype.
3886
3887 * i386-linux-nat.c (i386_linux_dr_get): Change type of return
3888 value to `unsigned long'. Change type of `value' to `unsigned
3889 long'.
3890 (i386_linux_dr_set): Change type of second argument to `unsigned
3891 long'.
3892 (i386_linux_dr_set_control): Change type of first argument to
3893 `unsigned long'.
3894 (i386_linux_dr_get_status): Change type of return value to
3895 unsigned long.
3896 * config/i386/nm-linux.h (i386_linux_dr_set_control,
3897 i386_linux_dr_get_status): Adjust prototypes accordingly.
3898
3899 2001-03-31 Kevin Buettner <kevinb@redhat.com>
3900
3901 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
3902 TRAP_HWBKPT constant to match that in the kernel headers for
3903 Linux/IA-64.
3904
3905 2001-03-31 Mark Kettenis <kettenis@gnu.org>
3906
3907 * i386bsd-nat.c: Include "gdb_assert.h".
3908 [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
3909 already defined.
3910 [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
3911 i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
3912 i386bsd_dr_get_status): New functions.
3913 * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
3914 (I386_USE_GENERIC_WATCHPOINTS): Define.
3915 Include "i386/nm-i386.h".
3916 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
3917 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
3918 (i386bsd_dr_set_control, i386bsd_dr_set_addr,
3919 i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
3920 * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
3921 * configure.in: Cleanup a few comments. Check for PT_GETDBREGS
3922 ptrace request.
3923 * config.in, configure: Regenerate.
3924
3925 * i386-nat.c (i386_insert_aligned_watchpoint): Set address
3926 register before enabling it by setting the control register.
3927 (i386_remove_aligned_watchpoint): Reset address register after
3928 disabling it by setting the control register.
3929
3930 * i386-tdep.c (i386_extract_return_value): If the type of the
3931 return value is TYPE_STRUCT and the number of fields is one, call
3932 ourselves with TYPE set tp the type of the first field.
3933 (i386_store_return_value): Likewise.
3934 This fixes a problem with returning structs consisting of a single
3935 `float' or `double' on *BSD.
3936
3937 2001-03-30 Mark Kettenis <kettenis@gnu.org>
3938
3939 * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
3940 we're absolutely sure we're going to resume it.
3941
3942 * thread-db.c (check_event): Don't report an error if we encounter
3943 a thread creation event for a thread that's already in the thread
3944 list, since that may legitemately happen. Instead only call
3945 attach_thread if it's not already in the thread list.
3946
3947 2001-03-28 Andrew Cagney <ac131313@redhat.com>
3948
3949 * config/pa/xm-hppah.h (malloc): Really delete declaration
3950 (MALLOC_INCOMPATIBLE): Really delete macro.
3951 * cli/cli-cmds.c (apropos_command): Use xcalloc.
3952
3953 2001-03-28 Andrew Cagney <ac131313@redhat.com>
3954
3955 * configure.in (build_warnings): Add -Wuninitialized.
3956 * configure: Regenerate.
3957
3958 * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
3959 * sparc-tdep.c (sparc64_push_arguments): Add default case to
3960 switch.
3961 * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
3962 expression with if statement.
3963 * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
3964 ``stack_size''.
3965 * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
3966 (mips_dump_tdep): Fix setting of ef_mips_arch.
3967 * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
3968 * dsrec.c (make_srec): Always initialize ``binbuf''.
3969 * monitor.c (monitor_read_memory_single): Do not pass an
3970 uninitialized buffer to monitor_error. Make ``i'' more local.
3971
3972 2001-03-28 Andrew Cagney <ac131313@redhat.com>
3973
3974 * MAINTAINERS: Change ns32k target to ,-Werror.
3975
3976 * ns32k-tdep.c: Include "gdbcore.h"
3977 (flip_bytes): Change first argument to void*. Add forward
3978 declaration.
3979 (sign_extend): Add declaration.
3980 (merlin_frame_num_args): Add final else clause to if-else chain.
3981 (umax_frame_num_args): Ditto.
3982 * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
3983 (flip_bytes): Ditto.
3984
3985 2001-03-28 Mark Kettenis <kettenis@gnu.org>
3986
3987 * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
3988 config/i386/nm-linux.h (including comment).
3989 (i386_linux_frame_chain): New function implementing guts of the
3990 former FRAME_CHAIN macro, but using read_memory_unsigned_integer
3991 instead of read_memory_integer.
3992 (i386_linux_frame_saved_pc): Removed doc pointing to
3993 i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
3994 now lives in this file.
3995 * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
3996 i386-linux-tdep.c (including comment).
3997 (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
3998 (i386_linux_frame_chain): New prototype.
3999
4000 * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
4001 make it work again.
4002 (NUM_FREGS): Redefine to 0.
4003 (NUM_REGS): Redefine as NUM_GREGS.
4004 (i386_register_byte, i386_register_raw_size): Update from
4005 i386-tdep.c. Add comment about their origin.
4006 (regmap, register_u_addr): Take these from i386-linux-nat.c.
4007 (i386_register_u_addr): Removed.
4008
4009 * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
4010 fails instead of calling perror_with_name. This should fix
4011 debugging remote i386 targets with a native Linux/x86 GDB. Add
4012 FIXME for this hack.
4013
4014 2001-03-19 J.T. Conklin <jtc@redback.com>
4015
4016 * arch-utils.c (#include "gdbthread.h"): Removed.
4017 (#include "symfile.h"): Removed.
4018 (XMALLOC): Removed unused macro.
4019 * breakpoint.c (tbreak_command): Removed local declaration.
4020 (awatch_command, do_enable_breakpoint, set_breakpoint_count):
4021 Remove duplicate declarations.
4022 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
4023 (remove_solib_event_breakpoints): Fix indentation botch.
4024 * c-typeprint.c (#include "command.h"): Removed.
4025 (#include "gdbcmd.h"): Removed.
4026 * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
4027 (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
4028 Removed duplicate declarations.
4029 * ch-typeprint.c (#include "command.h"): Removed.
4030 (#include "gdbcmd.h"): Removed.
4031 * corefile.c (#include "frame.h"): Removed
4032 (#include "symfile.h"): Removed.
4033 (#include "language.h"): Removed.
4034 * dbxread.c (#include "command.h"): Removed.
4035 * environ.c (#include "gdbcore.h"): Removed.
4036 * event-loop.c (#include "top.h"): Removed.
4037 * f-typeprint.c (#include "command.h"): Removed.
4038 (#include "gdbcmd.h"): Removed.
4039 (#include "language.h"): Removed.
4040 (#include "typeprint.h"): Removed.
4041 (#include "frame.h"): Removed.
4042 * gdbtypes.h (print_type_scalar): Removed declaration.
4043 * infcmd.c (#include "completer.h"): Removed.
4044 * language.c (#include "frame.h"): Removed.
4045 * m2-typeprint.c (#include "command.h"): Removed.
4046 (#include "gdbcmd.h"): Removed.
4047 (#include "language.h"): Removed.
4048 * m2-valprint.c (#include "valprint.h"): Removed.
4049 * p-typeprint.c (#include "command.h"): Removed.
4050 (#include "gdbcmd.h"): Removed.
4051 * p-valprint.c (#include "typeprint.h"): Removed.
4052 * parse.c (#include "linespec.h"): Removed.
4053 * regcache.c (#include "frame.h"): Removed.
4054 * remote.c (#include "frame.h"): Removed.
4055 (getpkt_sane): Make static.
4056 * source.c (#include "completer.h"): Removed.
4057 * stack.c (#include "symfile.h"): Removed.
4058 (#include "objfiles.h"): Removed.
4059 * symfile.c (#include "completer.h"): Removed.
4060 * tracepoint.c (#include "completer.h"): Removed.
4061 * values.c (#include "frame.h"): Removed.
4062 * varobj.c (#include "valprint.h"): Removed.
4063 * wrapper.c (#include "frame.h"): Removed.
4064
4065 * memattr.c (create_mem_region): Removed unused variable.
4066 * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
4067
4068 2001-03-27 Nick Clifton <nickc@redhat.com>
4069
4070 * remote-rdp.c (rdp_set_command_line): Add missing double quote.
4071
4072 2001-03-27 Kevin Buettner <kevinb@redhat.com>
4073
4074 * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
4075 of free().
4076
4077 2001-03-27 Eli Zaretskii <eliz@is.elta.co.il>
4078
4079 * TODO (Cleanups): Remove the item about converting docs to GFDL.
4080
4081 2001-03-26 Kevin Buettner <kevinb@redhat.com>
4082
4083 * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
4084 type of ``bundle'' from unsigned char * to char *.
4085 (ia64_get_saved_register): Use alloca() to allocate register
4086 buffers.
4087
4088 * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
4089
4090 2001-03-26 Kevin Buettner <kevinb@redhat.com>
4091
4092 * proc-utils.h (procfs_ctl_t): New typedef.
4093 * proc-api.c (write_with_trace): Change type of ``opcode'' from
4094 long to procfs_ctl_t. Don't assume that the target has defined
4095 BREAKPOINT. Handle case in which PCRESET is the same as PCUNSET.
4096 * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
4097 * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
4098 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
4099 (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
4100 Conditionally define as appropriate for AIX/non-AIX systems. Use
4101 these defines/typedefs as appropriate elsewhere in file.
4102 (struct procinfo): Change type of saved_sigset and saved_sighold
4103 from sigset_t to gdb_sigset_t. Make saved_exitset and
4104 saved_entryset pointer variables. Add two new fields, num_syscalls
4105 and syscall_names.
4106 (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
4107 (sysset_t_size, sysset_t_alloc): New functions.
4108 (load_syscalls, free_syscalls, find_syscall): New functions for
4109 platforms which define DYNAMIC_SYSCALLS.
4110 (create_procinfo): Call load_syscalls.
4111 (destroy_one_procinfo): Call free_syscalls.
4112 (GDBRESET): Don't define twice.
4113 (proc_modify_flag): Change type of operation code array `arg'
4114 from long to procfs_ctl_t.
4115 (proc_stop_process, proc_wait_for_stop, proc_run_process)
4116 (proc_set_traced_signals, proc_set_traced_faults)
4117 (proc_set_traced_sysentry, proc_set_traced_sysexit)
4118 (proc_set_held_signals, proc_clear_current_fault)
4119 (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
4120 (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
4121 (proc_set_traced_sysentry): Dynamically allocate variable sized
4122 struct gdb_proc_ctl_pcsentry. Also, free it at function exit.
4123 (proc_set_traced_sysexit): Dynamically allocate variable
4124 sized struct gdb_proc_ctl_pcsexit. Also, free it at
4125 function exit.
4126 (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
4127 for reading the sysset_t struct on AIX5.
4128 (procfs_debug_inferior): Don't assume that SYS_exit will be
4129 defined. Add new code for finding certain syscalls on AIX5.
4130 (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
4131 (syscall_is_lwp_create): New functions.
4132 (procfs_wait): Restructured code which checks for certain
4133 system calls to use the new syscall_is_... functions.
4134 (procfs_notice_signals): Account for the fact that saved_entryset
4135 and saved_exitset in struct procinfo are now pointers.
4136
4137 2001-03-26 Kevin Buettner <kevinb@redhat.com>
4138
4139 * symtab.c (find_pc_sect_line): Revise method used for finding
4140 the ending pc.
4141
4142 2001-03-26 Mark Kettenis <kettenis@gnu.org>
4143
4144 * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
4145 i386_linux_sigtramp_saved_sp): Make static.
4146 (i386_linux_frame_saved_pc): New function based on the old
4147 FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
4148 of read_memory_integer.
4149 * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
4150 (i386_linux_sigtramp_saved_pc): Remove prototype.
4151 (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
4152 (i386_linux_frame_saved_pc): New prototype.
4153
4154 2001-03-26 Andrew Cagney <ac131313@redhat.com>
4155
4156 * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
4157 * TODO (GDB 5.1 - Cleanups): Update.
4158
4159 2001-03-26 Andrew Cagney <ac131313@redhat.com>
4160
4161 * fork-child.c (clone_and_follow_inferior): Delete #ifdef
4162 HAVE_VFORK.
4163
4164 2001-03-26 Mark Kettenis <kettenis@gnu.org>
4165
4166 * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
4167
4168 * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
4169 functions.
4170 * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
4171 (STORE_STRUCT_RETURN): Redefine in terms of
4172 i386_store_struct_return.
4173 (i386_push_arguments, i386_store_struct_return): New prototypes.
4174 * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove. It's
4175 definition was identical to the definition in "i386/tm-i386.h" so
4176 the new definition should suffice too.
4177
4178 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4179
4180 * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
4181 definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
4182
4183 * config/djgpp/djconfig.sh: Add copyright notice.
4184
4185 * ser-go32.c (rawclock): Remove prototype; include time.h instead.
4186 (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
4187 (top level) <string.h>: Include gdb_string.h instead.
4188 (dos_noop, dos_raw, dos_noflush_set_tty_state)
4189 (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
4190
4191 * go32-nat.c (go32_create_inferior): Move the declaration of
4192 `environ' to here from the top level.
4193 (top level) <_initialize_go32_nat>: Remove redundant prototype.
4194 <gdb_string.h>: Include it instead of string.h.
4195 (store_register): Call register_buffer instead of accessing
4196 registers[] directly.
4197 (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger)
4198 (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
4199 the function names at the start of the line.
4200 (go32_set_dr): Throw internal_error if the argument is not a valid
4201 debug register number.
4202 (go32_open, go32_close, go32_attach, go32_detach, go32_resume)
4203 (go32_wait, go32_xfer_memory, go32_files_info)
4204 (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
4205
4206 2001-03-25 Jim Blandy <jimb@redhat.com>
4207
4208 * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
4209
4210 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4211
4212 From Andrew Cagney <ac131313@redhat.com>
4213
4214 * coffread.c: Include "gdb_assert.h".
4215 (coff_symtab_read): Cast the integer s_sclass to a long before
4216 casting it to a pointer.
4217
4218 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4219
4220 From Andrew Cagney <ac131313@redhat.com>
4221
4222 * coffread.c (coff_symtab_read): Initialize
4223 ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds
4224 the ``.ef'' info.
4225 * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
4226
4227 2001-03-23 Andrew Cagney <ac131313@redhat.com>
4228
4229 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
4230 GDB_MULTI_ARCH_PARTIAL from two. SOFTWARE_SINGLE_STEP is not
4231 multi-arch.
4232
4233 * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
4234 * gdbarch.h, gdbarch.c: Re-generate.
4235
4236 * target.h (SOFTWARE_SINGLE_STEP_P)
4237 (SOFTWARE_SINGLE_STEP): Delete macro definitions.
4238
4239 2001-03-23 Andrew Cagney <ac131313@redhat.com>
4240
4241 * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
4242 * gdbarch.h, gdbarch.c: Regenerate.
4243
4244 * regcache.h (regcache_read, regcache_write): Declare.
4245 (registers, register_valid, register_buffer): Add note that these
4246 interfaces are deprecated.
4247
4248 * regcache.c: Include "gdb_assert.h".
4249 (legacy_write_register_gen): Rename write_register_gen.
4250 (legacy_read_register_gen): Rename read_register_gen.
4251 (regcache_read, regcache_write): New function.
4252 (read_register_gen, write_register_gen): New function.
4253 (write_register): Simplify. Use write_register_gen.
4254 (read_register): Ditto using read_register_gen.
4255 (read_signed_register): Ditto.
4256 (read_register_bytes): Ditto!!!!
4257 (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
4258 replaced by gdbarch_register_read.
4259
4260 * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
4261 deprecate.
4262
4263 2001-03-23 Jim Blandy <jimb@redhat.com>
4264
4265 Fix from Dan Berlin:
4266
4267 * stabsread.c (read_cpp_abbrev): Properly construct the names of
4268 virtual function table pointer fields.
4269
4270 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4271
4272 * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
4273 xmrealloc): Move existing declarations to the one place and
4274 re-order to be consistent.
4275 (xmcalloc, xmfree): Declare.
4276 (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
4277 declaration.
4278
4279 * utils.c (size_t): Delete #ifdef defining size_t.
4280 (mmalloc, mrealloc, mcalloc, mfree): Re-order.
4281 (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
4282 corresponding malloc, realloc, calloc.
4283 (mfree): Call free directly.
4284 (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
4285 (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
4286 function bodies to here.
4287 (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
4288
4289 2001-03-23 Andrew Cagney <ac131313@redhat.com>
4290
4291 * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
4292 ``shell_file'' static locals.
4293
4294 * jv-lang.c (java_link_class_type): Initialize ``field'' and
4295 ``method''.
4296
4297 * jv-valprint.c (java_value_print): Initialize ``next_element''.
4298
4299 2001-03-23 Mark Kettenis <kettenis@gnu.org>
4300
4301 * config/i386/nm-i386.h: Fix formatting and change reference to
4302 i386-tdep.c to i386-nat.c.
4303
4304 2001-03-23 David Smith <dsmith@redhat.com>
4305
4306 * configure.in: Corrected spelling errors.
4307 * configure: Regenerated.
4308
4309 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4310
4311 * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
4312
4313 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4314
4315 * Makefile.in (NTSSTART): Delete.
4316 (NTSOBS): Delete.
4317 (kdb): Delete target.
4318 * kdb-start.c, stuff.c: Mark as obsolete.
4319 * NEWS: Update.
4320
4321 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4322
4323 * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
4324 compiles using an ISO-C compiler.
4325 (MALLOC_INCOMPATIBLE): Ditto.
4326 * linespec.c (decode_line_1): Delete hack to work around
4327 HPPA_COMPILER_BUG.
4328
4329 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4330
4331 * exec.c (xfer_memory): Always initialize section.
4332 * infrun.c (normal_stop): Always initialize source_flag.
4333
4334 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4335
4336 * TODO (Remote Protocol Support): Review. Add notes about ``!'',
4337 non-use of a continue address and typical use of ``q'' packet.
4338
4339 2001-03-22 Eli Zaretskii <eliz@is.elta.co.il>
4340
4341 Make DJGPP use the new unified support for hardware
4342 breakpoints and watchpoints on x86 targets:
4343
4344 * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
4345 include nm-i386.h instead.
4346 (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
4347 (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
4348 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
4349 (target_stopped_data_address, target_insert_watchpoint)
4350 (target_remove_watchpoint, target_insert_hw_breakpoint)
4351 (target_remove_hw_breakpoint): Don't define.
4352 (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
4353 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
4354 (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
4355 functions from go32-nat.c.
4356
4357 * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
4358
4359 * go32-nat.c <top level>: Remove prototypes for watchpoint-
4360 related functions. Remove definitions of watchpoint-related
4361 macros.
4362 (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
4363 private cleanup_dregs function.
4364 (cleanup_dregs, go32_insert_watchpoint)
4365 (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
4366 (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
4367 (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
4368 (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
4369 (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
4370
4371 2001-03-21 Kevin Buettner <kevinb@redhat.com>
4372
4373 * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
4374 than two instead of generating an error.
4375
4376 2001-03-21 Jim Blandy <jimb@redhat.com>
4377
4378 * cp-valprint.c: Reformat to bring into line with GNU coding
4379 standards.
4380
4381 2001-03-21 Mark Kettenis <kettenis@gnu.org>
4382
4383 Make Linux use the new unified support for hardware breakpoints
4384 and watchpoints on x86 targets.
4385 * i386-linux-nat.c: Doc fixes. Include "gdb_assert.h".
4386 [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
4387 (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
4388 appropriate value if not already defined.
4389 (register_u_addr): New function.
4390 (kernel_u_size): New function.
4391 (i386_linux_dr_get, i386_linux_dr_set): New functions.
4392 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
4393 i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
4394 * config/i386/nm-linux.h: Don't include "nm-i386v.h".
4395 (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
4396 (TARGET_HAS_HARDWARE_WATCHPOINTS,
4397 TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
4398 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
4399 target_remove_watchpoint): Remove macros.
4400 (i386_stopped_by_watchpoint, i386_insert_watchpoint,
4401 i386_remove_watchpoint): Remove prototypes.
4402 (register_u_addr): New prototype.
4403 (REGISTER_U_ADDR): Define in terms of register_u_addr.
4404 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
4405 i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
4406 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
4407 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
4408 * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
4409 i386-nat.o.
4410
4411 2001-03-21 Jim Blandy <jimb@redhat.com>
4412
4413 Fix from Dan Berlin:
4414
4415 * linespec.c (find_methods): Whitespace differences aren't
4416 significant in *un*mangled method names. Use strcmp_iw to compare
4417 them, not STREQ.
4418
4419 2001-03-21 Andrew Cagney <ac131313@redhat.com>
4420
4421 * gdbarch.sh: Allow a non- multi-arch target to override a
4422 predicate.
4423 * gdbarch.h: Regenerate.
4424
4425 2001-03-21 Andrew Cagney <ac131313@redhat.com>
4426
4427 * gdbarch.sh: Avoid use of ``!''.
4428
4429 2001-03-20 Andrew Cagney <ac131313@redhat.com>
4430
4431 * target.h (enum target_signal): Move definition from here.
4432 * defs.h (enum target_signal): To here.
4433
4434 * config/arc/tm-arc.h (arc_software_single_step): Change type of
4435 first parameter to enum target_signal.
4436 * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
4437 * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
4438 * rs6000-tdep.c (rs6000_software_single_step): Update.
4439
4440 2001-03-20 Andrew Cagney <ac131313@redhat.com>
4441
4442 * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
4443 already defined.
4444
4445 From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
4446 * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
4447 or a reference ('a') can be in a pseudo register.
4448 * infcmd.c (do_registers_info): Must take into account the pseudo
4449 registers to print their value.
4450 (registers_info): Likewise.
4451 * stack.c (frame_info): Likewise.
4452 * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
4453
4454 2001-03-21 Eli Zaretskii <eliz@is.elta.co.il>
4455
4456 Unified support for hardware breakpoints and watchpoints on
4457 x86 targets:
4458
4459 * config/i386/nm-i386.h: New file.
4460
4461 * config/i386/nm-i386.h: (i386_cleanup_dregs)
4462 (i386_insert_watchpoint, i386_remove_watchpoint)
4463 (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
4464 (i386_stopped_data_address, i386_insert_hw_breakpoint)
4465 (i386_remove_hw_breakpoint): Declare prototypes.
4466 [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4467 Define if not already defined.
4468 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
4469 (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
4470 (target_insert_watchpoint, target_remove_watchpoint)
4471 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
4472 to call the appropriate i386_* functions.
4473
4474 * i386-nat.c: New file.
4475
4476 * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
4477 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4478 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
4479 (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
4480 (maint_show_dr): New variables.
4481 (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
4482 (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
4483 (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
4484 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
4485 (i386_stopped_data_address, i386_stopped_by_hwbp)
4486 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
4487 functions.
4488 (_initialize_i386_nat): New function.
4489 [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
4490 `show-debug-regs', sets maint_show_dr to non-zero value and
4491 activates debugging print-outs in functions which insert, remove,
4492 and test watchpoints and hardware breakpoints.
4493
4494 * Makefile.in (i386-nat.o): New target.
4495 (ALLDEPFILES): Add i386-nat.o.
4496
4497 2001-03-21 Mark Kettenis <kettenis@gnu.org>
4498
4499 * i386-tdep.c: Add back _initialize_i386_tdep prototype with
4500 appropriate comment.
4501
4502 2001-03-20 Kevin Buettner <kevinb@redhat.com>
4503
4504 * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
4505 thread-db.o, and lin-lwp.o for thread support instead of
4506 linux-thread.o and lin-thread.o.
4507 * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
4508 (ATTACH_LWP): Define to use the following lin-lwp.c functions...
4509 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
4510 (lin_lwp_attach_lwp): Declare.
4511
4512 2001-03-20 Jim Blandy <jimb@redhat.com>
4513
4514 Fix from Dan Berlin:
4515
4516 * Makefile.in: Clean up dependencies on ../include/demangle.h.
4517 (demangle_h): New variable.
4518 (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
4519
4520 2001-03-20 Andrew Cagney <ac131313@redhat.com>
4521
4522 * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
4523 * breakpoint.c (bpstat_stop_status): Update.
4524 * infrun.c (handle_inferior_event): Ditto.
4525 * mips-tdep.c (mips_dump_tdep): Ditto.
4526 * infrun.c (resume): Ditto.
4527 * infptrace.c (child_resume): Ditto.
4528 * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4529 * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4530 * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4531 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4532 * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4533 * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4534 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4535
4536 2001-03-20 Andrew Cagney <ac131313@redhat.com>
4537
4538 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
4539 with internal_error.
4540
4541 2001-03-20 Jim Blandy <jimb@redhat.com>
4542
4543 Fix from Dan Berlin:
4544
4545 * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
4546 than asking for sym_class's type; that's circuitous. Remove
4547 sym_class, since the last use of it is gone.
4548
4549 2001-03-20 Eli Zaretskii <eliz@is.elta.co.il>
4550
4551 * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
4552 Correct the order of calls to ui_out_field_string and
4553 ui_out_list_begin when bs->old_val is NULL.
4554
4555 2001-03-19 Kevin Buettner <kevinb@redhat.com>
4556
4557 * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
4558 * configure: Regenerate.
4559 * config.in: Regenerate.
4560 * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
4561
4562 2001-03-19 Kevin Buettner <kevinb@redhat.com>
4563
4564 * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
4565 same line to avoid problems with Unixware 7's make when building
4566 a cross debugger.
4567
4568 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4569
4570 * defs.h (malloc): Move declaration from here.
4571 * utils.c (malloc): To here.
4572 * config/pa/xm-hppah.h (malloc): Delete declaration.
4573
4574 * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
4575 * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
4576 (hpread_quick_traverse): Ditto.
4577 * infttrace.c (create_thread_info): Ditto.
4578 (kill_inferior): Ditto.
4579 * gnu-nat.c (make_inf): Ditto, and don't check return value.
4580 * procfs.c (proc_update_threads): Ditto.
4581 * valprint.c (print_decimal_chars): Ditto.
4582 * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
4583 malloc and sprintf.
4584 * remote-rdp.c (rdp_set_command_line): Ditto.
4585
4586 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4587
4588 * defs.h (realloc): Move declaration from here.
4589 * utils.c (realloc): To here.
4590 * config/pa/xm-hppah.h (realloc): Delete declaration.
4591 * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
4592 * symfile.c (add_filename_language): Ditto.
4593 * event-loop.c (create_file_handler): Ditto.
4594
4595 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4596
4597 * defs.h (free): Move declaration from here.
4598 * utils.c (free): To here.
4599 (xfree): Document as the only call to free().
4600 * config/pa/xm-hppah.h (free): Delete declaration.
4601
4602 2001-03-19 Kevin Buettner <kevinb@redhat.com>
4603
4604 * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
4605 this list.
4606
4607 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4608
4609 * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
4610 * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
4611 * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
4612
4613 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4614
4615 * TODO: List known problems with TUI.
4616
4617 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4618
4619 * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
4620 gdb.hp).
4621
4622 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4623
4624 * remote.c (remote_cisco_section_offsets): Do not cast result from
4625 bfd_get_section_name.
4626 (compare_sections_command): Ditto.
4627 (remote_cisco_section_offsets): Make ``p'' a const pointer.
4628 (compare_sections_command): Ditto for ``sectname''.
4629
4630 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4631
4632 From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
4633 * valops.c (hand_function_call): Simplify computation of the
4634 address of the pushed argument.
4635
4636 2001-03-17 Andrew Cagney <ac131313@redhat.com>
4637
4638 * p-exp.y (parse_number): Avoid shift overflow when ``long''.
4639 Code copied from c-exp.y.
4640
4641 2001-03-18 Kevin Buettner <kevinb@redhat.com>
4642
4643 * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
4644 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
4645 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
4646 * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
4647 of the Solaris procfs testing section. Instead, group with...
4648 (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
4649 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
4650 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
4651 * configure: Regenerate.
4652 * config.in: Regenerate.
4653
4654 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
4655 new configure macros to choose which (if any) code to
4656 compile in. Added code to explicitly handle *BSD systems;
4657 these systems were previously handled only through macro
4658 redefinition. Also, due to the way the autoconf tests are set
4659 up, this function will no longer return a non-zero value when
4660 GDB is configured as a cross debugger. I.e, cross debuggers
4661 will no longer be able to "accidentally" get the host system's
4662 link map offsets.
4663
4664 2001-03-18 Kevin Buettner <kevinb@redhat.com>
4665
4666 * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
4667 line to avoid build problem on NetBSD 1.4.
4668
4669 2001-03-17 Michael Chastain <chastain@redhat.com>
4670
4671 * win32-nat.c (child_attach): check args for NULL before passing
4672 to strtoul. This fixes PR gdb/43.
4673
4674 2001-03-17 Mark Kettenis <kettenis@gnu.org>
4675
4676 * i387-nat.h: Doc Fix.
4677
4678 * i386-tdep.c: Fix formatting.
4679 (i386_get_frame_setup, i386_follow_jump, codestream_read,
4680 codestream_seek, codestream_fill, skip_trampoline_code,
4681 gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
4682 prototypoes.
4683
4684 2001-03-17 Mark Kettenis <kettenis@gnu.org>
4685
4686 * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
4687 no longer used. Also remove associated FIXME.
4688
4689 2001-03-16 Andrew Cagney <ac131313@redhat.com>
4690
4691 * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch. Do
4692 not generate macro wrappers for multi-arch functions or
4693 predicates.
4694 (class_is_info_p, class_is_predicate_p): Update.
4695 (class_is_function_p, class_is_variable_p): Ditto.
4696 (class_is_multiarch_p): New class function.
4697
4698 2001-03-16 J.T. Conklin <jtc@redback.com>
4699
4700 * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
4701 h8300_frame_args_address from frame_args_address.
4702 (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
4703 from frame_locals_address.
4704 (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
4705 from print_register_hook.
4706 (h8300_frame_args_address): Declare.
4707 (h8300_frame_find_saved_regs): Declare.
4708 (h8300_frame_locals_address): Declare.
4709 (h8300_frame_saved_pc): Declare.
4710 (h8300_pop_frame): Declare.
4711 (h8300_print_register_hook): Declare.
4712 * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
4713 (h8300_frame_args_address): Renamed from frame_args_address.
4714 (h8300_frame_locals_address): Renamed from frame_locals_address.
4715 (h8300_pop_frame): Renamed from pop_frame.
4716 (h8300_print_register_hook): Renamed from print_register_hook.
4717
4718 2001-03-16 Kevin Buettner <kevinb@redhat.com>
4719
4720 * solib-svr4.c (bfd_lookup_symbol): Change type of
4721 ``storage_needed'' from unsigned int to long in order to
4722 match return type of bfd_get_symtab_upper_bound() and
4723 bfd_get_dynamic_symtab_upper_bound().
4724 * solib-aix5.c (bfd_lookup_symbol): Likewise. Also, eliminate
4725 REASONABLE_LIMIT hack which had been added to work around this
4726 problem.
4727
4728 2001-03-15 Kevin Buettner <kevinb@redhat.com>
4729
4730 * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
4731 (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
4732 to free() with calls to xfree().
4733 (bfd_lookup_symbol): Eliminate use of PTR.
4734 (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
4735
4736 2001-03-15 Martin Hunt <hunt@redhat.com>
4737
4738 * linespec.c (decode_line_1): Remove trailing quote
4739 when parsing double quotes.
4740
4741 2001-03-15 Kevin Buettner <kevinb@redhat.com>
4742
4743 * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
4744 (libthread_stub, libthread_init): Pass NULL for the mem_attrib
4745 argument in the to_xfer_memory calls.
4746
4747 2001-03-15 Andrew Cagney <ac131313@redhat.com>
4748
4749 * MAINTAINERS: Fix typo - w65 not w64. Still doesn't build.
4750 * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
4751
4752 2001-03-15 Andrew Cagney <ac131313@redhat.com>
4753
4754 * wince.c (child_xfer_memory): Add attrib parameter.
4755 * symm-nat.c (child_xfer_memory): Ditto.
4756 * mac-nat.c (child_xfer_memory): Ditto.
4757 * infttrace.c (child_xfer_memory): Ditto.
4758 * procfs.c (procfs_xfer_memory): Ditto.
4759 * lin-thread.c (thread_db_xfer_memory): Ditto.
4760 * gnu-nat.c (gnu_xfer_memory): Ditto.
4761
4762 2001-03-14 Andrew Cagney <ac131313@redhat.com>
4763
4764 * NEWS: Mention that Harris/CXUX m88k is obsolete.
4765
4766 2001-03-13 Andrew Cagney <ac131313@redhat.com>
4767
4768 * config/mips/tm-mips.h: Include "regcache.h" for macros refering
4769 to regcache functions.
4770 * config/m68k/tm-m68k.h: Ditto.
4771 * config/i386/tm-i386v.h: Ditto.
4772 * config/mcore/tm-mcore.h: Ditto.
4773 * config/m88k/tm-m88k.h: Ditto.
4774 * config/m68k/tm-news.h: Ditto.
4775 * config/m68k/tm-linux.h: Ditto.
4776 * config/m68k/tm-delta68.h: Ditto.
4777 * config/m68k/nm-sun3.h: Ditto.
4778 * config/m32r/tm-m32r.h: Ditto.
4779 * config/i386/tm-symmetry.h: Ditto.
4780 * config/i386/tm-sun386.h: Ditto.
4781 * config/i386/tm-i386.h: Ditto.
4782 * config/i386/nm-symmetry.h: Ditto.
4783 * config/i386/nm-sun386.h: Ditto.
4784 * config/i386/nm-ptx4.h: Ditto.
4785 * config/i386/nm-i386mach.h: Ditto.
4786 * config/h8500/tm-h8500.h: Ditto.
4787 * config/h8300/tm-h8300.h: Ditto.
4788 * config/fr30/tm-fr30.h: Ditto.
4789 * config/d30v/tm-d30v.h: Ditto.
4790 * config/arm/tm-arm.h: Ditto.
4791 * config/arc/tm-arc.h: Ditto.
4792 * config/alpha/tm-alpha.h: Ditto.
4793 * config/a29k/tm-vx29k.h: Ditto.
4794 * config/a29k/tm-a29k.h: Ditto.
4795 * config/w65/tm-w65.h: Ditto.
4796 * config/vax/tm-vax.h: Ditto.
4797 * config/v850/tm-v850.h: Ditto.
4798 * config/tic80/tm-tic80.h: Ditto.
4799 * config/sparc/tm-sparclite.h: Ditto.
4800 * config/sparc/tm-sparclet.h: Ditto.
4801 * config/sparc/tm-sparc.h: Ditto.
4802 * config/sparc/nm-sun4sol2.h: Ditto.
4803 * config/sparc/nm-sun4os4.h: Ditto.
4804 * config/sparc/nm-nbsd.h: Ditto.
4805 * config/powerpc/nm-solaris.h: Ditto.
4806 * config/pa/tm-hppao.h: Ditto.
4807 * config/pa/tm-hppa.h: Ditto.
4808 * config/pa/nm-hppab.h: Ditto.
4809 * config/ns32k/tm-umax.h: Ditto.
4810 * config/ns32k/tm-merlin.h: Ditto.
4811 * config/nm-m3.h: Ditto.
4812 * config/nm-gnu.h: Ditto.
4813
4814 2001-03-14 Andrew Cagney <ac131313@redhat.com>
4815
4816 * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
4817 broken. Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
4818 Specify an m88k target. Include sample GAWK script to generate
4819 target list. Delete non-existant romp target.
4820 * TODO (GDB 5.1 - Cleanups): Update.
4821
4822 2001-03-14 Keith Seitz <keiths@cygnus.com>
4823
4824 * linespec.c (decode_line_1): Skip argptr over a leading
4825 double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
4826
4827 2001-03-14 Kevin Buettner <kevinb@redhat.com>
4828
4829 * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
4830
4831 2001-03-13 Andrew Cagney <ac131313@redhat.com>
4832
4833 * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
4834 * m3-nat.c: Ditto.
4835 * p-lang.h: Ditto.
4836 * printcmd.c (printf_command): Ditto.
4837 * ch-exp.c (match_integer_literal): Ditto.
4838 * scm-tags.h: Ditto.
4839 * ser-go32.c: Ditto.
4840 * hppa-tdep.c (unwind_command): Ditto.
4841 * defs.h (volatile): Delete macro definition. Assume __STDC__.
4842 * remote-adapt.c (volatile): Ditto.
4843 * remote-eb.c (volatile): Ditto.
4844 * remote-mm.c (volatile): Ditto.
4845 * defs.h (alloca): Assume __STDC__, declare returning void *.
4846
4847 2001-03-08 Andrew Cagney <ac131313@redhat.com>
4848
4849 * inferior.h (ARCH_NUM_REGS): Delete definition.
4850 * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
4851 * regcache.c (registers_changed): Ditto.
4852 (registers_fetched): Ditto.
4853 * infptrace.c (fetch_inferior_registers): Ditto.
4854 (store_inferior_registers): Ditto.
4855 * infcmd.c (do_registers_info): Ditto.
4856 (registers_info): Ditto.
4857 * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
4858 (old_store_inferior_registers): Ditto.
4859 * gdbserver/low-linux.c (register_addr): Ditto.
4860 * gdbserver/low-hppabsd.c (register_addr): Ditto.
4861 * core-aout.c: Don't include "inferior.h".
4862 (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
4863 (register_addr): Ditto.
4864
4865 2001-03-13 Fernando Nasser <fnasser@redhat.com>
4866
4867 From Steven Johnson <sjohnson@neurizon.net>
4868 * cli/cli-script.c (define_command): Fix setting of post hooks.
4869
4870 2001-03-13 Mark Kettenis <kettenis@gnu.org>
4871
4872 * i386-linux-tdep.c: Fix formatting and clarify comments.
4873 (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
4874 where appropriate.
4875
4876 2001-03-12 Andrew Cagney <ac131313@redhat.com>
4877
4878 * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
4879 (proc_update_sc): Use gdb_assert instead of assert.
4880 (proc_abort): Ditto.
4881 (inf_set_step_thread): Ditto.
4882 (gnu_wait): Ditto.
4883 (S_exception_raise_request): Ditto.
4884 (gnu_terminal_init_inferior): Ditto.
4885
4886 2001-03-09 Kevin Buettner <kevinb@redhat.com>
4887
4888 * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
4889 (solib-legacy.o): New makefile target.
4890 * solib-legacy.c: New file.
4891 * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4892 (default_svr4_fetch_link_map_offsets): Delete.
4893 (set_solib_svr4_fetch_link_map_offsets): Declare.
4894 (legacy_svr4_fetch_link_map_offsets_hook): Declare.
4895 * solib-svr4.c (elf/common.h): Include.
4896 (link.h): Only include for SunOS shared library support.
4897 (_SYSCALL32): Don't define.
4898 (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
4899 (default_svr4_fetch_link_map_offsets): Made static; added forward
4900 declaration.
4901 (fetch_link_map_offsets): New static global.
4902 (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
4903 (default_svr4_fetch_link_map_offsets): Rewritten. The guts
4904 of what used to be in this function now reside in
4905 legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
4906 (open_symbol_file_object): Fix declaration in SunOS section
4907 of the code.
4908 (set_solib_svr4_fetch_link_map_offsets): New extern function.
4909 (init_fetch_link_map_offsets): New static function.
4910 (_initialize_svr4_solib): Put static global fetch_link_map_offsets
4911 under multiarch control.
4912
4913 * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
4914 list.
4915 * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
4916 * config/arm/linux.mt (TDEPFILES): Likewise.
4917 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4918 * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
4919 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
4920 * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
4921 * config/i386/i386sol2.mt (TDEPFILES): Likewise.
4922 * config/i386/i386v4.mh (NATDEPFILES): Likewise.
4923 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
4924 * config/i386/linux.mt (TDEPFILES): Likewise.
4925 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
4926 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4927 * config/i386/ncr3000.mt (TDEPFILES): Likewise.
4928 * config/i386/ptx4.mh (XDEPFILES): Likewise.
4929 * config/i386/sun386.mt (TDEPFILES): Likewise.
4930 * config/ia64/linux.mt (TDEPFILES): Likewise.
4931 * config/m68k/linux.mt (TDEPFILES): Likewise.
4932 * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
4933 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4934 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
4935 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
4936 * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
4937 * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
4938 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4939 * config/powerpc/linux.mt (TDEPFILES): Likewise.
4940 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4941 * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
4942 * config/sh/linux.mt (TDEPFILES): Likewise.
4943 * config/sparc/linux.mt (TDEPFILES): Likewise.
4944 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4945 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4946 * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
4947 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
4948 * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
4949
4950 2001-03-09 Kevin Buettner <kevinb@redhat.com>
4951
4952 * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
4953
4954 2001-03-09 Andrew Cagney <ac131313@redhat.com>
4955
4956 * MAINTAINERS (Write After Approval): Update Philip Blundell.
4957
4958 2001-03-09 Keith Seitz <keiths@cygnus.com>
4959
4960 * MAINTAINERS: Add myself to write after approval list.
4961
4962 2001-03-09 Mark Kettenis <kettenis@gnu.org>
4963
4964 * i387-tdep.c (print_i387_status_word): Fix printing of Stack
4965 fault flag. It is bit 6 of the x87 FPU status word, not bit 7.
4966
4967 2001-03-08 Andrew Cagney <ac131313@redhat.com>
4968
4969 * configure.host (m88*-harris-cxux*): Mark as obsolete.
4970 * configure.tgt: Ditto.
4971 * config/m88k/xm-cxux.h: Ditto.
4972 * config/m88k/tm-cxux.h: Ditto.
4973 * config/m88k/nm-cxux.h: Ditto.
4974 * config/m88k/cxux.mt: Ditto.
4975 * config/m88k/cxux.mh: Ditto.
4976
4977 2001-03-08 Andrew Cagney <ac131313@redhat.com>
4978
4979 * Makefile.in: Delete rules for obsolete files.
4980
4981 Thu Mar 8 15:43:40 2001 David Taylor <taylor@redhat.com>
4982
4983 * stack.c (parse_frame_specification): For one argument case,
4984 handle the situation where the argument is an integer, not an
4985 address -- arguably the most common case. This matters on
4986 targets where pointers and addresses are different.
4987
4988 2001-03-08 Andrew Cagney <ac131313@redhat.com>
4989
4990 * TODO: Revise 5.1 list. Delete PARAMS task. Add coding standard
4991 review. Clarify GNU/LINUX/sparc. Move other tasks to 5.2 or
4992 general.
4993
4994 2001-03-07 Andrew Cagney <ac131313@redhat.com>
4995
4996 * TODO (GDB 5.1 Known Problems): Document problem of building GDB
4997 with SID on Solaris 8.
4998
4999 2001-03-07 Mark Kettenis <kettenis@gnu.org>
5000
5001 * defs.h: Provide prototypes for floatformat_is_negative,
5002 floatformat_is_nan and floatformat_mantissa.
5003 * utils.c: Include "gdb_assert.h".
5004 (floatformat_is_negative): New function.
5005 (floatformat_is_nan): New function.
5006 (floatformat_mantissa): New function.
5007 * valprint.c: Include "floatformat.h".
5008 (print_floating): Get rid of the Linux-specific
5009 TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
5010 help these new functions. Print NaN's in a format conforming to
5011 ISO C99.
5012
5013 2001-03-07 Eli Zaretskii <eliz@is.elta.co.il>
5014
5015 * top.c (init_main): Make `set history file name' complete on file
5016 names.
5017
5018 2001-03-06 J.T. Conklin <jtc@redback.com>
5019
5020 * Makefile.in (LINTFLAGS): Update to contain all of the macros
5021 which define include paths used when compiling.
5022
5023 * util.c (savestring, msavestring): Change type of length argument.
5024 * defs.h (savestring, msavestring): Update to match.
5025
5026 * symtab.h (decode_line_1): Removed declaration.
5027
5028 * symfile.c (#include <assert.h>): Removed.
5029
5030 * arch-utils.c (#include <ctype.h>): Removed.
5031 * c-typeprint.c: Likewise.
5032 * dbxread.c: Likewise.
5033 * gdbtypes.c: Likewise.
5034 * target.c: Likewise.
5035 * os9kread.c: Likewise.
5036
5037 * c-valprint.c (#include "demangle.h"): Removed.
5038 * ch-typeprint.c: Likewise.
5039 * eval.c: Likewise.
5040 * f-typeprint.c: Likewise.
5041 * f-valprint.c: Likewise.
5042 * m2-typeprint.c: Likewise.
5043 * typeprint.c: Likewise.
5044 * p-typeprint.c: Likewise.
5045 * valarith.c: Likewise.
5046 * valprint.c: Likewise.
5047
5048 * m2-typeprint.c (#include "gdb_string.h"): Removed.
5049 * nlmread.c: Likewise.
5050
5051 * mdebugread.c (#include "gdb-stabs.h"): Removed.
5052 * minsyms.c: Likewise.
5053 * mipsread.c: Likewise.
5054 * nlmread.c: Likewise.
5055
5056 * m2-typeprint.c (#include "obstack.h"): Removed.
5057 * m2-valprint.c: Likewise.
5058
5059 * event-loop.c (#include <setjmp.h>): Removed.
5060
5061 2001-03-06 Stan Shebs <shebs@apple.com>
5062
5063 * MAINTAINERS: Remove self from specific maintenance domains
5064 (macos, gdbserver, documentation, testsuite).
5065
5066 2001-03-06 Kevin Buettner <kevinb@redhat.com>
5067
5068 * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
5069 a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
5070 annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
5071 arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
5072 ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
5073 breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
5074 c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
5075 ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
5076 cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
5077 cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
5078 cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
5079 coff-solib.h, coffread.c, command.h, complaints.c,
5080 complaints.h, completer.c, completer.h,
5081 config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
5082 config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
5083 config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
5084 config/alpha/nm-linux.h, config/alpha/nm-osf.h,
5085 config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
5086 config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
5087 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
5088 config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
5089 config/arm/nm-linux.h, config/arm/tm-arm.h,
5090 config/arm/tm-embed.h, config/d10v/tm-d10v.h,
5091 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5092 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5093 config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
5094 config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
5095 config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
5096 config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
5097 config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
5098 config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
5099 config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
5100 config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
5101 config/i386/tm-fbsd.h, config/i386/tm-i386.h,
5102 config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
5103 config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
5104 config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
5105 config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
5106 config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
5107 config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
5108 config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
5109 config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
5110 config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
5111 config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
5112 config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
5113 config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
5114 config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
5115 config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
5116 config/i386/xm-linux.h, config/i386/xm-nbsd.h,
5117 config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
5118 config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
5119 config/i960/tm-i960.h, config/i960/tm-mon960.h,
5120 config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
5121 config/ia64/nm-aix.h, config/ia64/nm-linux.h,
5122 config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
5123 config/ia64/tm-linux.h, config/ia64/xm-aix.h,
5124 config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
5125 config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
5126 config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
5127 config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
5128 config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
5129 config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
5130 config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
5131 config/m68k/tm-isi.h, config/m68k/tm-linux.h,
5132 config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
5133 config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
5134 config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
5135 config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
5136 config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
5137 config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
5138 config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
5139 config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
5140 config/m68k/xm-mpw.h, config/m68k/xm-news.h,
5141 config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
5142 config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
5143 config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
5144 config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
5145 config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
5146 config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
5147 config/mips/nm-irix3.h, config/mips/nm-irix4.h,
5148 config/mips/nm-irix5.h, config/mips/nm-mips.h,
5149 config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
5150 config/mips/tm-embed.h, config/mips/tm-embed64.h,
5151 config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
5152 config/mips/tm-irix3.h, config/mips/tm-irix5.h,
5153 config/mips/tm-mips.h, config/mips/tm-mips64.h,
5154 config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
5155 config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
5156 config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
5157 config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
5158 config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
5159 config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
5160 config/mips/xm-irix4.h, config/mips/xm-irix5.h,
5161 config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
5162 config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
5163 config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
5164 config/mn10300/tm-mn10300.h, config/nm-gnu.h,
5165 config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
5166 config/nm-sysv4.h, config/none/nm-none.h,
5167 config/none/tm-none.h, config/none/xm-none.h,
5168 config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
5169 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
5170 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
5171 config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
5172 config/pa/nm-hppab.h, config/pa/nm-hppah.h,
5173 config/pa/nm-hppao.h, config/pa/tm-hppa.h,
5174 config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
5175 config/pa/xm-hppab.h, config/pa/xm-hppah.h,
5176 config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
5177 config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
5178 config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
5179 config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
5180 config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
5181 config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
5182 config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
5183 config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
5184 config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
5185 config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
5186 config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
5187 config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
5188 config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
5189 config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
5190 config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
5191 config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
5192 config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
5193 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
5194 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
5195 config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
5196 config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
5197 config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
5198 config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
5199 config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
5200 config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
5201 core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
5202 cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
5203 dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
5204 delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
5205 dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
5206 elfread.c, environ.c, environ.h, eval.c, event-loop.c,
5207 event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
5208 f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
5209 fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
5210 gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
5211 gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
5212 gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
5213 gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
5214 gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
5215 gdbserver/low-sim.c, gdbserver/low-sparc.c,
5216 gdbserver/low-sun3.c, gdbserver/remote-utils.c,
5217 gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
5218 gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
5219 gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
5220 hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
5221 hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
5222 hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
5223 i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
5224 i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
5225 i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
5226 inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
5227 irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
5228 jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
5229 kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
5230 linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
5231 m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
5232 m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
5233 m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
5234 mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
5235 mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
5236 mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
5237 mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
5238 monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
5239 nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
5240 ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
5241 op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
5242 pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
5243 ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
5244 ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
5245 proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
5246 rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
5247 regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
5248 remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
5249 remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
5250 remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5251 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
5252 remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
5253 remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
5254 rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
5255 scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
5256 ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
5257 sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
5258 solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
5259 source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
5260 sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
5261 standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
5262 symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
5263 symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
5264 tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
5265 typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
5266 ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
5267 valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
5268 vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
5269 vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
5270 vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
5271 wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
5272 xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
5273 notices.
5274
5275 2001-03-05 Kevin Buettner <kevinb@redhat.com>
5276
5277 * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
5278 HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
5279 macros.
5280 * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
5281 pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
5282 (sys/fault.h, sys/select.h): Test for presence of these
5283 header files.
5284 (ia64-*-aix*): Define NEW_PROC_API for this host.
5285 * configure: Regenerate.
5286 * config.in: Regenerate.
5287
5288 * configure.host (ia64-*-aix*): New host.
5289 * configure.tgt (ia64-*-aix*): New target.
5290
5291 2001-03-05 Andrew Cagney <ac131313@redhat.com>
5292
5293 * TODO (GDB 5.1 Known Problems): Document z8k as broken.
5294
5295 Mon Mar 5 11:56:09 2001 Christopher Faylor <cgf@cygnus.com>
5296
5297 * wince.c: Change realloc to xrealloc throughout.
5298 (handle_load_dll): Use void * rather than PTR in argument.
5299
5300 2001-03-04 Andrew Cagney <ac131313@redhat.com>
5301
5302 * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
5303 * ocd.c (ocd_xfer_memory): Ditto.
5304 * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
5305 * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
5306 buildable with ,-Werror.
5307
5308 * Makefile.in (symfile_h): Define.
5309 (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
5310 * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
5311 * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
5312 ,-Werror.
5313
5314 * dsrec.c (make_srec): Fix internal_error fmt arg.
5315 * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
5316
5317 2001-03-03 Kevin Buettner <kevinb@redhat.com>
5318
5319 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
5320 as an lvalue.
5321
5322 2001-03-02 Andrew Cagney <ac131313@redhat.com>
5323
5324 * MAINTAINERS (paper trail): Update.
5325
5326 * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
5327
5328 2001-03-02 Andrew Cagney <ac131313@redhat.com>
5329
5330 From 2001-03-01 Tom Rix <trix@redhat.com>:
5331 * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
5332 parameter to mn10200_analyze_prologue.
5333
5334 * config/mn10200/tm-mn10200.h: Include "regcache.h".
5335 * MAINTAINERS: Document that mn10200-elf target is buildable.
5336
5337 2001-03-02 Kevin Buettner <kevinb@redhat.com>
5338
5339 * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
5340 from here...
5341 * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
5342 (MONTEREY): Don't define.
5343 (AIX5): Define.
5344
5345 2001-03-02 Matt Hiller <hiller@redhat.com>
5346
5347 * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
5348
5349 2001-03-02 Kevin Buettner <kevinb@redhat.com>
5350
5351 * sparc-nat.c (sparc-nat.c): Don't include self.
5352
5353 2001-03-01 J.T. Conklin <jtc@redback.com>
5354
5355 * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
5356 if __CYGWIN32__ is set from here.
5357 * config/i386/xm-cygwin.h: To here.
5358 * config/powerpc/xm-cygwin.h: To here.
5359
5360 * i386-stub.c (handle_exception): Use 'T' response packet.
5361
5362 2001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
5363
5364 * m32r-tdep.c: Fix cut and paste error in comment.
5365
5366 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
5367
5368 * symtab.c (print_msymbol_info): Print addresses by portable method
5369 longest_local_hex_string_custom. Allow for 64-bit addresses.
5370
5371 2001-03-01 J.T. Conklin <jtc@redback.com>
5372
5373 * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
5374 (MAX_OF_TYPE): Wrap macro definition in parenthesis.
5375 (MIN_OF_TYPE): Likewise.
5376
5377 * memattr.h (mem_access_mode): Removed extraneous trailing comma.
5378
5379 2001-03-01 Andrew Cagney <ac131313@redhat.com>
5380
5381 * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
5382 * os9kread.c (os9k_process_one_symbol): Add assert to detect
5383 ``loses if sizeof (char *) > sizeof (int)''.
5384
5385 2001-03-01 Andrew Cagney <ac131313@redhat.com>
5386
5387 * gdb_assert.h: Document pragmatics behind gdb_assert's case.
5388
5389 2001-03-01 Andrew Cagney <ac131313@redhat.com>
5390
5391 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
5392 lists.
5393 (mi-main.o): Ditto.
5394
5395 2001-03-01 Andrew Cagney <ac131313@redhat.com>
5396
5397 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
5398 dependency lists.
5399
5400 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
5401
5402 * printcmd.c (print_address_numeric): Update comments to refer
5403 to sizeof addr, not sizeof pointer.
5404 (x_command): Remove needless whitespace (shorten long line).
5405
5406 * breakpoint.c (print_one_breakpoint): Formatting clean-up.
5407 (read_memory_nobpt): Ditto.
5408 (ep_is_catchpoint): Ditto.
5409 (ep_is_shlib_catchpoint): Ditto.
5410 (ep_is_exception_catchpoint): Ditto.
5411 (describe_other_breakpoints): Ditto.
5412
5413 Wed Feb 28 20:37:36 2001 Andrew Cagney <ac131313@redhat.com>
5414
5415 * regcache.h (register_valid): Fix comment documenting valid
5416 states.
5417
5418 Tue Feb 27 23:56:23 2001 Andrew Cagney <ac131313@redhat.com>
5419
5420 From Steven Johnson:
5421 * regcache.h: New file.
5422
5423 * value.h (read_register_bytes, read_register_gen)
5424 (write_register_gen, write_register_bytes)
5425 (read_register, read_register_pid)
5426 (read_signed_register, read_signed_register_pid)
5427 (write_register, write_register_pid)
5428 (register_cached, set_register_cached)
5429 (register_changed, register_buffer)
5430 (registers_changed, supply_register): Move declaration from here.
5431 * regcache.h: To here.
5432 * gdbcore.h (registers_fetched): Ditto.
5433 * inferior.h (registers, registers_valid): Ditto.
5434
5435 * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
5436 generic_target_write_pc, write_pc_pid, write_pc,
5437 generic_target_read_sp, read_sp, generic_target_write_sp,
5438 write_sp, generic_target_read_fp, read_fp,
5439 generic_target_write_fp, write_fp): Add note that these functions
5440 will be moved from this file.
5441
5442 * a29k-tdep.c: Include "regcache.h".
5443 * a68v-nat.c: Ditto.
5444 * abug-rom.c: Ditto.
5445 * alpha-nat.c: Ditto.
5446 * alpha-tdep.c: Ditto.
5447 * alphabsd-nat.c: Ditto.
5448 * arc-tdep.c: Ditto.
5449 * arm-linux-nat.c: Ditto.
5450 * arm-linux-tdep.c: Ditto.
5451 * arm-tdep.c: Ditto.
5452 * blockframe.c: Ditto.
5453 * core-aout.c: Ditto.
5454 * core-sol2.c: Ditto.
5455 * corelow.c: Ditto.
5456 * cpu32bug-rom.c: Ditto.
5457 * cxux-nat.c: Ditto.
5458 * d10v-tdep.c: Ditto.
5459 * d30v-tdep.c: Ditto.
5460 * dbug-rom.c: Ditto.
5461 * dink32-rom.c: Ditto.
5462 * dve3900-rom.c: Ditto.
5463 * findvar.c: Ditto.
5464 * fr30-tdep.c: Ditto.
5465 * frame.c: Ditto.
5466 * go32-nat.c: Ditto.
5467 * h8300-tdep.c: Ditto.
5468 * h8500-tdep.c: Ditto.
5469 * hp300ux-nat.c: Ditto.
5470 * hppa-tdep.c: Ditto.
5471 * hppab-nat.c: Ditto.
5472 * hppah-nat.c: Ditto.
5473 * hppam3-nat.c: Ditto.
5474 * hpux-thread.c: Ditto.
5475 * i386-linux-nat.c: Ditto.
5476 * i386-linux-tdep.c: Ditto.
5477 * i386-tdep.c: Ditto.
5478 * i386aix-nat.c: Ditto.
5479 * i386b-nat.c: Ditto.
5480 * i386bsd-nat.c: Ditto.
5481 * i386gnu-nat.c: Ditto.
5482 * i386ly-tdep.c: Ditto.
5483 * i386m3-nat.c: Ditto.
5484 * i386mach-nat.c: Ditto.
5485 * i386nbsd-nat.c: Ditto.
5486 * i386v4-nat.c: Ditto.
5487 * i387-nat.c: Ditto.
5488 * i387-tdep.c: Ditto.
5489 * i960-tdep.c: Ditto.
5490 * ia64-aix-nat.c: Ditto.
5491 * ia64-linux-nat.c: Ditto.
5492 * ia64-tdep.c: Ditto.
5493 * infptrace.c: Ditto.
5494 * infrun.c: Ditto.
5495 * irix4-nat.c: Ditto.
5496 * irix5-nat.c: Ditto.
5497 * lin-lwp.c: Ditto.
5498 * lin-thread.c: Ditto.
5499 * lynx-nat.c: Ditto.
5500 * m3-nat.c: Ditto.
5501 * m32r-rom.c: Ditto.
5502 * m32r-tdep.c: Ditto.
5503 * m68hc11-tdep.c: Ditto.
5504 * m68k-tdep.c: Ditto.
5505 * m68klinux-nat.c: Ditto.
5506 * m68knbsd-nat.c: Ditto.
5507 * m68knbsd-tdep.c: Ditto.
5508 * m88k-nat.c: Ditto.
5509 * m88k-tdep.c: Ditto.
5510 * mac-nat.c: Ditto.
5511 * mcore-rom.c: Ditto.
5512 * mcore-tdep.c: Ditto.
5513 * mi/mi-main.c: Ditto.
5514 * mips-nat.c: Ditto.
5515 * mips-tdep.c: Ditto.
5516 * mipsm3-nat.c: Ditto.
5517 * mipsv4-nat.c: Ditto.
5518 * mn10200-tdep.c: Ditto.
5519 * mn10300-tdep.c: Ditto.
5520 * monitor.c: Ditto.
5521 * ns32km3-nat.c: Ditto.
5522 * ns32knbsd-nat.c: Ditto.
5523 * ocd.c: Ditto.
5524 * pa64solib.c: Ditto.
5525 * ppc-bdm.c: Ditto.
5526 * ppc-linux-nat.c: Ditto.
5527 * ppc-linux-tdep.c: Ditto.
5528 * ppcbug-rom.c: Ditto.
5529 * ppcnbsd-nat.c: Ditto.
5530 * ptx4-nat.c: Ditto.
5531 * regcache.c: Ditto.
5532 * remote-adapt.c: Ditto.
5533 * remote-array.c: Ditto.
5534 * remote-bug.c: Ditto.
5535 * remote-e7000.c: Ditto.
5536 * remote-eb.c: Ditto.
5537 * remote-es.c: Ditto.
5538 * remote-est.c: Ditto.
5539 * remote-hms.c: Ditto.
5540 * remote-mips.c: Ditto.
5541 * remote-mm.c: Ditto.
5542 * remote-nindy.c: Ditto.
5543 * remote-os9k.c: Ditto.
5544 * remote-rdi.c: Ditto.
5545 * remote-rdp.c: Ditto.
5546 * remote-sds.c: Ditto.
5547 * remote-sim.c: Ditto.
5548 * remote-st.c: Ditto.
5549 * remote-udi.c: Ditto.
5550 * remote-utils.c: Ditto.
5551 * remote-vx.c: Ditto.
5552 * remote-vx29k.c: Ditto.
5553 * remote-vx68.c: Ditto.
5554 * remote-vx960.c: Ditto.
5555 * remote-vxmips.c: Ditto.
5556 * remote-vxsparc.c: Ditto.
5557 * remote.c: Ditto.
5558 * rom68k-rom.c: Ditto.
5559 * rs6000-nat.c: Ditto.
5560 * rs6000-tdep.c: Ditto.
5561 * sh-tdep.c: Ditto.
5562 * sh3-rom.c: Ditto.
5563 * sol-thread.c: Ditto.
5564 * solib-svr4.c: Ditto.
5565 * somsolib.c: Ditto.
5566 * sparc-nat.c: Ditto.
5567 * sparc-tdep.c: Ditto.
5568 * sparcl-tdep.c: Ditto.
5569 * sparclet-rom.c: Ditto.
5570 * sun3-nat.c: Ditto.
5571 * sun386-nat.c: Ditto.
5572 * symm-nat.c: Ditto.
5573 * target.c: Ditto.
5574 * thread-db.c: Ditto.
5575 * thread.c: Ditto.
5576 * tic80-tdep.c: Ditto.
5577 * tracepoint.c: Ditto.
5578 * ultra3-nat.c: Ditto.
5579 * umax-xdep.c: Ditto.
5580 * uw-thread.c: Ditto.
5581 * v850-tdep.c: Ditto.
5582 * v850ice.c: Ditto.
5583 * valops.c: Ditto.
5584 * w65-tdep.c: Ditto.
5585 * w89k-rom.c: Ditto.
5586 * win32-nat.c: Ditto.
5587 * wince.c: Ditto.
5588 * z8k-tdep.c: Ditto.
5589
5590 2001-02-28 Matt Hiller <hiller@redhat.com>
5591
5592 * MAINTAINERS: Add Matt Hiller to Write After Approval list.
5593
5594 2001-02-27 Matt Hiller <hiller@redhat.com>
5595
5596 * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
5597 (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
5598 mn10300_stab_reg_to_regnum.
5599
5600 Tue Feb 27 16:56:13 2001 David Taylor <taylor@redhat.com>
5601
5602 * symtab.c (search_symbols): Fix off by one error in test for
5603 error.
5604
5605 2001-02-23 Andrew Cagney <ac131313@redhat.com>
5606
5607 * config/sparc/sp64linux.mt: New file.
5608 * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
5609 * configure.host: Recognize sparc64-*-linux* as a linux host.
5610
5611 From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
5612 * config/sparc/tm-sp64linux.h: New file.
5613
5614 2001-02-24 Kevin Buettner <kevinb@redhat.com>
5615
5616 * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
5617 with call to internal_error().
5618 * dbxread.c (process_one_symbol): Likewise.
5619 * exec.c (build_section_table, xfer_memory): Likewise.
5620 * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
5621 Likewise.
5622 * hpread.c (hpread_type_translate, hpread_read_array_type)
5623 (hpread_type_lookup): Likewise.
5624 * i386-tdep.c (gdb_print_insn_i386): Likewise.
5625 * i960-tdep.c (mem): Likewise
5626 * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
5627 * infptrace.c (child_resume): Likewise.
5628 * infttrace.c (_initialize_infttrace): Likewise.
5629 * language.c (binop_result_type, add_language): Likewise.
5630 * lynx-nat.c (store_inferior_registers): Likewise.
5631 * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
5632 * mdebugread.c (parse_partial_symbols): Likewise.
5633 * monitor.c (monitor_printf_noecho, monitor_printf)
5634 (monitor_dump_regs): Likewise.
5635 * ocd.c (stu_put_packet): Likewise.
5636 * printcmd.c (decode_format, print_scalar_formatted): Likewise.
5637 * remote-bug.c (bug_open): Likewise.
5638 * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
5639 * remote-es.c (es1800_read_bytes): Likewise.
5640 * remote-mips.c (common_breakpoint): Likewise.
5641 * remote-rdp.c (send_rdp): Likewise.
5642 * remote-sds.c (putmessage): Likewise.
5643 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
5644 Likewise.
5645 * sparcl-tdep.c (sparclite_download): Likewise.
5646 * symtab.c (lookup_partial_symbol): Likewise.
5647 * target.c (push_target, pop_target, initialize_targets): Likewise.
5648 * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
5649 Likewise.
5650 * valprint.c (print_decimal, print_longest, print_longest)
5651 (strcat_longest): Likewise.
5652 * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
5653 * xmodem.c (xmodem_send_packet): Likewise.
5654 * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
5655 * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
5656 * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
5657 (STORE_RETURN_VALUE): Likewise.
5658 * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
5659 * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
5660 * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
5661 Likewise.
5662
5663 2001-02-23 Andrew Cagney <ac131313@redhat.com>
5664
5665 * CONTRIBUTE: Document how to cite a problem report.
5666 * TODO: Note need to replace CONTRIBUTE with generated file.
5667
5668 * CONTRIBUTE: Mention that patches do not need to include the
5669 generated files gdbarch.h and gdbarch.c.
5670
5671 2001-02-21 Andrew Cagney <ac131313@redhat.com>
5672
5673 * value.h (get_saved_register): Move from here.
5674 * frame.h: To here.
5675
5676 2001-02-21 Kevin Buettner <kevinb@redhat.com>
5677
5678 * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
5679 (in_solib_dynsym_resolve_code): Add declaration.
5680 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
5681 in_solib_dynsym_resolve_code() rather than
5682 in_svr4_dynsym_resolve_code(). Also, removed the ifdefs
5683 which caused this macro to only be defined when
5684 SVR4_SHARED_LIBS is defined.
5685 * solib.c (in_solib_dynsym_resolve_code): New function.
5686 * solist.h (struct target_so_ops): Add new member
5687 in_dynsym_resolve_code.
5688 * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
5689 in_svr4_dynsym_resolve_code. Also, made static.
5690 (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
5691 member in aix5_so_ops.
5692 * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
5693 in_svr4_dynsym_resolve_code. Also, added second version
5694 of this function which will be used when SVR4_SHARED_LIBS
5695 is not defined.
5696 (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
5697 member in svr4_so_ops.
5698
5699 * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
5700 config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
5701 config/ia64/xm-aix.h: New files.
5702 * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
5703 (ia64_aix_sigcontext_register_address): New declaration.
5704 (ia64_gdbarch_init): Provide for initialization of
5705 sigcontext_register_address member of struct tdep when
5706 on target is detected to be running AIX.
5707 * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
5708 this list.
5709
5710 2001-02-20 Kevin Buettner <kevinb@redhat.com>
5711
5712 * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
5713 * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
5714 for thread support instead of linux-thread.o and lin-thread.o.
5715 * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
5716 ATTACH_LWP): Define to use the following lin-lwp.c functions...
5717 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
5718 lin_lwp_attach_lwp): Declare.
5719
5720 2001-02-20 Andrew Cagney <ac131313@redhat.com>
5721
5722 * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
5723 formatting.
5724
5725 2001-02-20 Kevin Buettner <kevinb@redhat.com>
5726
5727 * solib-aix5.c (solib-svr4.h): Remove include.
5728 (solib_break_names): Delete names which aren't actually
5729 used by AIX5.
5730 (bkpt_names): Remove.
5731 (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
5732 to STREQ() with equivalent calls to strcmp().
5733 (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
5734 aix5_solib_create_inferior_hook): Revise comments.
5735 (enable_break): Remove old ``bkpt_names'' code.
5736
5737 2001-02-19 Andrew Cagney <ac131313@redhat.com>
5738
5739 * Makefile.in (SFILES): Add frame.c .
5740 (COMMON_OBS): Add frame.o .
5741 (frame.o): New target.
5742
5743 * frame.c (find_saved_register):
5744 (default_get_saved_register):
5745 (get_saved_register):
5746 (read_relative_register_raw_bytes_for_frame):
5747 (read_relative_register_raw_bytes): Moved to here.
5748 * regcache.c: From here.
5749
5750 2001-02-20 Kevin Buettner <kevinb@redhat.com>
5751
5752 * solib-aix5.c: New file.
5753
5754 2001-02-20 Martin M. Hunt <hunt@redhat.com>
5755
5756 * solib.c (info_sharedlibrary_command): Don't assume pointers
5757 are the same size of long, call longest_local_hex_string_custom().
5758
5759 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
5760 extract_signed_integer() should be called instead of
5761 extract_address().
5762
5763 2001-02-20 Martin M. Hunt <hunt@redhat.com>
5764
5765 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
5766
5767 2001-02-19 Andrew Cagney <ac131313@redhat.com>
5768
5769 Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
5770 * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
5771 then floating point registers are 8 bytes.
5772
5773 2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
5774
5775 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
5776 accomodate 64-bit addresses.
5777
5778 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5779
5780 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
5781 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
5782 lookup_symbol, when trying to find a symbol with a mangled name,
5783 to avoid infinite recursion.
5784
5785 2001-02-18 Andrew Cagney <ac131313@redhat.com>
5786
5787 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
5788
5789 2001-02-19 Jonathan Larmour <jlarmour@redhat.com>
5790
5791 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
5792 (save_prologue_cache): Ditto.
5793
5794 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5795
5796 From: innadadadavida@yahoo.com:
5797 * partial-stab.h (switch): Check that pst is not null
5798 before dereferencing it.
5799
5800 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5801
5802 From Andrew Cagney <cagney@b1.cygnus.com>:
5803 * symfile.c (add_symbol_file_command): Always initialize
5804 my_cleanup using a NULL cleanup.
5805
5806 2001-02-19 Eli Zaretskii <eliz@is.elta.co.il>
5807
5808 * demangle.c (demangling_style_names): New variable.
5809 (_initialize_demangler): Fill demangling_style_names with the
5810 names of known demangling styles from libiberty_demanglers[]. Use
5811 add_set_enum_cmd instead of add_set_cmd, to get completion on
5812 demangling style names.
5813
5814 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
5815 file-name completion.
5816
5817 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
5818
5819 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
5820 `solib-absolute-prefix'.
5821
5822 * tracepoint.c (_initialize_tracepoint): Ditto for
5823 `save-tracepoints'.
5824
5825 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
5826
5827 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
5828 file-name completion.
5829
5830 * infcmd.c (_initialize_infcmd): Make the following commands use
5831 the file-name completer: `tty', `args', `path', `paths', and
5832 `run'.
5833
5834 2001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
5835
5836 * go32-nat.c: Include i387-nat.h.
5837 (fetch_register): New function, uses some of the guts of
5838 go32_fetch_registers and calls i387_supply_register.
5839 (go32_fetch_registers): Most of the code moved into
5840 fetch_register. Use i387_supply_fsave.
5841 (store_register): Use i387_fill_fsave instead of custom code.
5842 (go32_store_registers): Use i387_fill_fsave.
5843
5844 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
5845
5846 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
5847
5848 * completer.c (gdb_completer_file_name_break_characters): Remove
5849 slash from file-name break characters.
5850 [__MSDOS__]: Special definition for DOS/Windows file names.
5851 (line_completion_function): When completing on file names, bump
5852 `p' to the first file-name constituent character of `word', before
5853 invoking the completer.
5854
5855 2001-02-17 Mark Kettenis <kettenis@gnu.org>
5856
5857 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
5858 consistently for parameter names. Fix comments accordingly.
5859 (i387_supply_register): New function.
5860 (i387_supply_fsave): Implement using i387_supply_register.
5861 * i387-nat.h: Use regnum instead of regno consistently for
5862 parameter names. Fix comments accordingly.
5863 (i387_supply_register): New prototype.
5864
5865 2001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
5866
5867 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
5868 instead of TARGET_PTR_BIT (to support Harvard architectures).
5869
5870 2001-02-16 Andrew Cagney <ac131313@redhat.com>
5871
5872 From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
5873 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
5874 argument to parameter list and to call in order to conform to
5875 to_xfer_memory field of struct target_ops.
5876
5877 2001-02-12 Michael Chastain <chastain@redhat.com>
5878
5879 * somsolib.c (som_solib_add_solib_objfile): Do not use
5880 section relocation feature of syms_from_objfile. Do my own
5881 section relocation, offsetting each section of the som by
5882 either text_addr - text_link_addr or data_start.
5883
5884 2001-02-16 Andrew Cagney <ac131313@redhat.com>
5885
5886 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
5887
5888 2001-02-16 Andrew Cagney <ac131313@redhat.com>
5889
5890 * MAINTAINERS (paper trail): Update.
5891
5892 2001-02-16 Mark Kettenis <kettenis@gnu.org>
5893
5894 * target.h (target_fetch_registers): Fix comment.
5895
5896 2001-02-15 Andrew Cagney <ac131313@redhat.com>
5897
5898 * f-exp.y: Include <ctype.h>.
5899 (parse_number): Ensure that ``i'' is always initialized.
5900
5901 2001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
5902
5903 * MAINTAINERS: Add myself to paper trail section.
5904
5905 2001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5906
5907 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
5908 * configure, config.in: Regenerate.
5909 * corelow.c: Include <sys/file.h> if present.
5910
5911 2001-02-14 Andrew Cagney <ac131313@redhat.com>
5912
5913 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
5914 declare when have SIGTTOU.
5915
5916 2001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
5917
5918 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
5919
5920 2001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
5921
5922 * MAINTAINERS: Update my email address.
5923
5924 2001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
5925
5926 * NEWS: Document that "info symbol" works with COFF debug info and
5927 its variants.
5928
5929 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
5930 symbols whose SYMBOL_BFD_SECTION is NULL.
5931
5932 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5933
5934 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
5935 * xcoffsolib.c (xcoff_solib_address): Renamed from
5936 pc_load_segment_name. Return NULL if address is not in a shared
5937 library. Cleanup shared library name construction, using xasprintf.
5938 Format shared library member names consistent with format in exec.c.
5939 (solib_info): Format shared library member names consistent with
5940 format in exec.c.
5941 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
5942 using xcoff_solib_address for PC_SOLIB definition.
5943 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
5944 needed.
5945
5946 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5947
5948 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
5949 with xmalloc calls and cleanups.
5950
5951 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5952
5953 * rs6000-nat.c (child_xfer_memory): Add missing parameter
5954 'struct mem_attrib *' required by 2001-01-23 change.
5955
5956 2001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
5957
5958 Updates to "make TAGS":
5959 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
5960 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
5961 tahoe-tdep.c.
5962 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
5963
5964 2001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
5965
5966 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
5967
5968 Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
5969
5970 From Dean Luick <luick@cray.com>:
5971 * defs.h (continuation): Remove unused global variable.
5972
5973 Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
5974
5975 * configure.tgt: Remove references to convex, pyramid, altos and
5976 tahoe.
5977 * configure.host: Ditto.
5978 * MAINTAINERS: Ditto.
5979 * NEWS: Update.
5980
5981 * tahoe-tdep.c: Delete obsolete file.
5982 * pyr-xdep.c: Ditto.
5983 * pyr-tdep.c: Ditto.
5984 * convex-tdep.c: Ditto.
5985 * convex-xdep.c: Ditto.
5986 * config/tahoe/xm-tahoe.h: Ditto.
5987 * config/tahoe/tm-tahoe.h: Ditto.
5988 * config/tahoe/tahoe.mt: Ditto.
5989 * config/tahoe/tahoe.mh: Ditto.
5990 * config/pyr/xm-pyr.h: Ditto.
5991 * config/pyr/tm-pyr.h: Ditto.
5992 * config/pyr/pyramid.mt: Ditto.
5993 * config/pyr/pyramid.mh: Ditto.
5994 * config/m68k/xm-altos.h: Ditto.
5995 * config/m68k/tm-altos.h: Ditto.
5996 * config/m68k/altos.mt: Ditto.
5997 * config/m68k/altos.mh: Ditto.
5998 * config/convex/xm-convex.h: Ditto.
5999 * config/convex/tm-convex.h: Ditto.
6000 * config/convex/convex.mt: Ditto.
6001 * config/convex/convex.mh: Ditto.
6002 * config/convex/Convex.notes: Ditto.
6003 * config/arm/xm-arm.h: Ditto.
6004 * config/arm/nm-arm.h: Ditto.
6005 * config/arm/arm.mt: Ditto.
6006 * config/arm/arm.mh: Ditto.
6007 * arm-convert.s: Ditto.
6008 * arm-xdep.c: Ditto.
6009 * altos-xdep.c: Ditto.
6010
6011 Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
6012
6013 * defs.h (internal_error, internal_verror): Add __FILE__ and
6014 __LINE__ parameter.
6015 * utils.c (internal_error, internal_verror): Update.
6016
6017 * v850-tdep.c: Update calls to internal_error.
6018 * utils.c: Ditto.
6019 * ui-out.c: Ditto.
6020 * ui-file.c: Ditto.
6021 * target.h: Ditto.
6022 * symtab.h: Ditto.
6023 * symm-nat.c: Ditto.
6024 * sparc-tdep.c: Ditto.
6025 * source.c: Ditto.
6026 * serial.c: Ditto.
6027 * rs6000-tdep.c: Ditto.
6028 * rs6000-nat.c: Ditto.
6029 * remote.c: Ditto.
6030 * remote-vx.c: Ditto.
6031 * remote-sim.c: Ditto.
6032 * remote-mips.c: Ditto.
6033 * regcache.c: Ditto.
6034 * objfiles.h: Ditto.
6035 * objfiles.c: Ditto.
6036 * mn10300-tdep.c: Ditto.
6037 * mips-tdep.c: Ditto.
6038 * maint.c: Ditto.
6039 * m68k-tdep.c: Ditto.
6040 * m3-nat.c: Ditto.
6041 * language.c: Ditto.
6042 * infptrace.c: Ditto.
6043 * inferior.h: Ditto.
6044 * infcmd.c: Ditto.
6045 * ia64-tdep.c: Ditto.
6046 * i386-tdep.c: Ditto.
6047 * i386-linux-nat.c: Ditto.
6048 * hppah-nat.c: Ditto.
6049 * go32-nat.c: Ditto.
6050 * findvar.c: Ditto.
6051 * f-lang.c: Ditto.
6052 * elfread.c: Ditto.
6053 * event-loop.c: Ditto.
6054 * dwarf2read.c: Ditto.
6055 * dsrec.c: Ditto.
6056 * d30v-tdep.c: Ditto.
6057 * d10v-tdep.c: Ditto.
6058 * cli/cli-setshow.c: Ditto.
6059 * cli/cli-script.c: Ditto.
6060 * ch-exp.c: Ditto.
6061 * breakpoint.c: Ditto.
6062 * ax-gdb.c: Ditto.
6063 * arch-utils.c: Ditto.
6064 * a29k-tdep.c: Ditto.
6065 * gdb_assert.h: Ditto.
6066 * gdbarch.sh: Ditto.
6067 * gdbarch.h, gdbarch.c: Re-generate.
6068
6069 2001-02-07 Andrew Cagney <ac131313@redhat.com>
6070
6071 From Mark Kettenis <kettenis@gnu.org>:
6072 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
6073
6074 2001-02-07 Andrew Cagney <ac131313@redhat.com>
6075
6076 * remote-sim.c (dump_mem): Cleanup printf format argument.
6077 * MAINTAINERS: Update, mn10300-elf now builds.
6078
6079 2001-02-07 Mark Kettenis <kettenis@gnu.org>
6080
6081 * event-top.c: Remove duplicate #include <signal.h>.
6082
6083 2001-02-06 Andrew Cagney <ac131313@redhat.com>
6084
6085 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
6086 allocated buffer.
6087 (save_inferior_pid): Restore the PID from that tempoary
6088 buffer. Delete the buffer.
6089 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
6090
6091 2001-02-06 Andrew Cagney <ac131313@redhat.com>
6092
6093 * MAINTAINERS: Add ``The Obvious Fix Rule''.
6094
6095 2001-02-06 Andrew Cagney <ac131313@redhat.com>
6096
6097 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
6098
6099 2001-02-06 Andrew Cagney <ac131313@cygnus.com>
6100
6101 * gdbarch.sh: Include "gdb_assert.h".
6102 (struct gdbarch): Change ``nr_data'' to unsigned.
6103 (alloc_gdbarch_data, free_gdbarch_data): New functions.
6104 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
6105 architecture vector.
6106 (struct gdbarch_data, struct gdbarch_data_registration): Move init
6107 method to gdbarch_data. Add free method, make index unsigned.
6108 (struct gdbarch_data_registry): Make nr unsigned.
6109 (register_gdbarch_data): Add free parameter. Store in
6110 gdbarch_data.
6111 (init_gdbarch_data): Use set_gdbarch_data.
6112 (set_gdbarch_data): New function.
6113
6114 * gdbarch.h, gdbarch.c: Re-generate.
6115
6116 2001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6117
6118 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
6119 fprintf_filtered with correct arguments.
6120
6121 2001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
6122 Submitted by Paul Hilfinger (hilfingr@gnat.com)
6123 and Andrei Petrov (and@genesyslab.com).
6124 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
6125 must be allocated dynamically, since these are no longer constants.
6126 * infcmd.c: Ditto.
6127 * regcache.c: Ditto.
6128 * remote.c: Ditto.
6129 * sol-thread.c: Ditto.
6130 * valops.c: Ditto.
6131 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
6132 work-around for a missing Sun header file in solaris for sparc64.
6133
6134 2001-02-04 Philip Blundell <philb@gnu.org>
6135
6136 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
6137 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
6138 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
6139 GET_THREAD_SIGNALS): Define.
6140 * arm-linux-nat.c (fill_gregset): Correct type of argument.
6141 (supply_gregset): Likewise.
6142 (fill_fpregset): Likewise.
6143 (supply_fpregset): Likewise.
6144
6145 Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
6146
6147 * valops.c (value_cast): If casting a scalar to a pointer, do not
6148 issue a message about truncation unless it exceeds the length of
6149 an address, not the length of a pointer. This is because what the
6150 user gives us is an address, not a pointer, and we will ultimately
6151 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
6152 to a pointer. This allows things like "print *(int *)0x01000234"
6153 to work without generating a misleading message on a target having
6154 two byte pointers and four byte addresses.
6155
6156 2001-02-05 Christopher Faylor <cgf@cygnus.com>
6157
6158 * win32-nat.c: Change PTR to void * throughout.
6159
6160 2001-02-05 J.T. Conklin <jtc@redback.com>
6161
6162 * signals.h: Removed.
6163 * event-top.c (#include <signal.h>): Changed from signals.h.
6164 * inflow.c: Likewise.
6165 * mac-xdep.c: Likewise.
6166 * ser-pipe.c: Likewise.
6167 * ser-tcp.c: Likewise.
6168 * standalone.c: Likewise.
6169 * top.c: Likewise.
6170 * utils.c: Likewise.
6171 * Makefile.in: Removed signals.h from dependencies.
6172
6173 2001-02-05 Christopher Faylor <cgf@cygnus.com>
6174
6175 Change suggested by Dean Luick <luick@cray.com>
6176 * inferior.h (step_over_calls_kind): Remove trailing comma from
6177 last enum element.
6178 (step_over_calls): Declare as extern rather than global.
6179
6180 2001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6181
6182 * sh-tdep.c: Update copyright.
6183 (sh_extract_return_value): Rewrite.
6184 (sh3e_sh4_extract_return_value): New function.
6185 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
6186 version of the function for sh3e and sh4 CPUs.
6187
6188 2001-02-05 Michael Chastain <chastain@redhat.com>
6189
6190 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
6191 to conform with interface change.
6192
6193 2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
6194
6195 * config/djgpp/fnchange.lst: Tweak to make consistent with the
6196 new files.
6197
6198 * config/djgpp/djconfig.sh: Use explicit absolute file name when
6199 invoking `find'.
6200
6201 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
6202 UART_FIFO_WORKS is defined. Otherwise use outportb.
6203 From Francisco Pastor <fpastor.etra-id@etra.es>
6204
6205 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
6206 with target.h's `to_xfer_memory' member.
6207
6208 2001-02-02 J.T. Conklin <jtc@redback.com>
6209
6210 * ppc-bdm.c (#include <signal.h>): Removed.
6211 * remote-array.c: Likewise.
6212 * remote-bug.c: Likewise.
6213 * remote-e7000.c: Likewise.
6214 * remote-mips.c: Likewise.
6215 * remote-os9k.c: Likewise.
6216 * remote-st.c: Likewise.
6217 * remote-udi.c: Likewise.
6218 * remote-vx29k.c: Likewise.
6219 * remote-vx68.c: Likewise.
6220 * remote-vx960.c: Likewise.
6221 * remote-vxmips.c: Likewise.
6222 * remote-vxsparc.c: Likewise.
6223
6224 2001-02-02 John Moore <jmoore@redhat.com>
6225
6226 * remote-utils.h (sr_set_device): Changed free() to xfree() where
6227 appropriate. Also changed Copyright to include 2001.
6228 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
6229 * value.h (value_free): Likewise.
6230 * gdbarch.sh (gdbarch_free): Likewise.
6231 * gdbarch.c, gdbarch.h: Regenerated.
6232
6233 2001-02-02 John Moore <jmoore@redhat.com>
6234
6235 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
6236 xfree(). Also changed Copyright to include 2001.
6237
6238 2001-02-02 J.T. Conklin <jtc@redback.com>
6239
6240 * monitor.c (#include "gdb_wait.h"): Removed.
6241 * ocd.c: Likewise.
6242 * ppc-bdm.c: Likewise.
6243 * remote-adapt.c: Likewise.
6244 * remote-array.c: Likewise.
6245 * remote-bug.c: Likewise.
6246 * remote-e7000.c: Likewise.
6247 * remote-eb.c: Likewise.
6248 * remote-es.c: Likewise.
6249 * remote-mips.c: Likewise.
6250 * remote-mm.c: Likewise.
6251 * remote-nindy.c: Likewise.
6252 * remote-os9k.c: Likewise.
6253 * remote-rdi.c: Likewise.
6254 * remote-rdp.c: Likewise.
6255 * remote-sds.c: Likewise.
6256 * remote-sim.c: Likewise.
6257 * remote-st.c: Likewise.
6258 * remote-udi.c: Likewise.
6259 * remote-vx.c: Likewise.
6260 * remote-vx29k.c: Likewise.
6261 * remote-vx68.c: Likewise.
6262 * remote-vx960.c: Likewise.
6263 * remote-vxmips.c: Likewise.
6264 * remote-vxsparc.c: Likewise.
6265 * remote.c: Likewise.
6266 * ser-pipe.c: Likewise.
6267 * ser-unix.c: Likewise.
6268 * Makefile.in: Updated dependencies.
6269
6270 2001-01-31 David Smith <dsmith@redhat.com>
6271
6272 * event-loop.c: Change inclusion of string.h to gdb_string.h and
6273 updated the copyright notice.
6274 * ser-pipe.c: Ditto.
6275 * mi/mi-cmds.c: Ditto.
6276 * mi/mi-console.c: Ditto.
6277 * mi/mi-getopt.c: Ditto.
6278 * mi/mi-parse.c: Ditto.
6279
6280 2001-01-31 David Smith <dsmith@redhat.com>
6281
6282 * MAINTAINERS: Add David Smith to Write After Approval list.
6283
6284 Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
6285
6286 * cli/cli-utils.c (putchar_filtered): Move function from here.
6287 * utils.c (putchar_filtered): To here.
6288 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
6289 * defs.h (putchar_filtered): To here.
6290
6291 Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
6292
6293 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
6294 AC_FUNC_VFORK macro.
6295 * config.in, configure: Re-generate.
6296
6297 * gdb_vfork.h: New file.
6298 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
6299 * fork-child.c (fork_inferior): Ditto.
6300
6301 Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
6302
6303 * defs.h (strsave): Delete declaration.
6304 * utils.c (strsave): Delete definition.
6305 * TODO (strsave): Update
6306
6307 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
6308 * sparcl-tdep.c (sparclite_open): Ditto.
6309 * mips-tdep.c (mips_set_processor_type_command): Ditto.
6310 (_initialize_mips_tdep): Ditto.
6311 * solib.c (solib_open): Ditto.
6312 * symfile.c (add_filename_language): Ditto.
6313 (set_ext_lang_command): Ditto.
6314 * source.c (init_source_path): Ditto.
6315 (mod_path): Ditto.
6316 * sh3-rom.c (sh3_open): Ditto.
6317 (sh3e_open): Ditto.
6318 * serial.c (serial_open): Ditto.
6319 * remote-mips.c (common_open): Ditto.
6320 * monitor.c (monitor_open): Ditto.
6321 * m32r-rom.c (m32r_upload_command): Ditto.
6322 * infcmd.c (path_command): Ditto.
6323 * f-exp.y (parse_number): Ditto.
6324 * breakpoint.c (create_longjmp_breakpoint): Ditto.
6325 (create_thread_event_breakpoint): Ditto.
6326 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
6327 (_initialize_arc_tdep): Ditto.
6328
6329 Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
6330
6331 * cli/cli-script.c (define_command): Check for a bad hook value in
6332 switch statement.
6333
6334 2001-01-30 J.T. Conklin <jtc@redback.com>
6335
6336 * configure/sh/embed.mt: New file.
6337 * configure/sh/linux.mt: New file.
6338 * configure/sh/sh.mt: Removed.
6339 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
6340 (sh-*-*): Removed.
6341
6342 2001-01-29 Michael Chastain <chastain@redhat.com>
6343
6344 * symtab.c (block_lookup_symbol): Use 'namespace' parameter in
6345 symbol comparisons in binary search.
6346
6347 2001-01-27 Christopher Faylor <cgf@cygnus.com>
6348
6349 * win32-nat.c (child_xfer_memory): Add missing argument required by
6350 2001-01-23 change.
6351
6352 2001-01-27 Mark Kettenis <kettenis@gnu.org>
6353
6354 * ui-out.c (do_list_end): New function.
6355 (make_cleanup_ui_out_list_end): New function.
6356 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
6357 * stack.c (print_frame) [UI_OUT]: Call
6358 make_cleanup_ui_out_list_end to make sure we mark the end of the
6359 list if we do a non-local exit. At the end of the function,
6360 instead of calling ui_out_list_end directly, let do_cleanups
6361 handle it.
6362
6363 2001-01-26 Fernando Nasser <fnasser@redhat.com>
6364
6365 Fix double parsing of filenames passed as command line arguments
6366 to GDB (causes weird handling of escape characters).
6367 Also, remove dependencies on the CLI from libgdb.
6368 * call-cmds.h: Remove declaration of exec_file_command().
6369 * gdbcore.h: Remove declaration of exec_file_command().
6370 Add declarations for exec_open() and exec_file_clear().
6371 * symfile.h: Add declarations for symbol_file_add_main() and
6372 symbol_file_clear().
6373 * exec.c (exec_open): New function. Implements to_open for exec
6374 targets.
6375 (exec_file_clear): New function. Makes GDB forget about a previously
6376 specified executable file.
6377 (exec_file_attach): Move parsing of arguments from here ...
6378 (exec_file_command): ... to here.
6379 (init_exec_ops): Use exec_open(), not exec_file_command() to
6380 implement to_open for exec targets.
6381 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
6382 with default values. Used when the file name has already been parsed.
6383 (symbol_file_clear): New function. Makes GDB forget about previously
6384 read symbols.
6385 (symbol_file_command): Call the above function instead of inline code.
6386 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
6387 "call-cmds.h".
6388 (captured_main): Call exec_file_attach() and symbol_file_add_main()
6389 instead of exec_file_command() and symbol_file_command().
6390 (captured_main): Add comment.
6391 * corefile.c: Include "symfile.h".
6392 (core_file_command): Call symbol_file_add_main() instead of
6393 symbol_file_command().
6394 (reopen_exec_file): Call exec_open() instead of exec_file_command().
6395 * infcmd.c: Include "symfile.h".
6396 (attach_command): Call symbol_file_add_main() instead of
6397 symbol_file_command().
6398 * infrun.c: Remove comment about the inclusion of "symfile.h",
6399 not any longer appropriate.
6400 (follow_exec): Call symbol_file_add_main() instead of
6401 symbol_file_command().
6402 * remote-es.c: Include "symfile.h".
6403 (es1800_load): Call symbol_file_add_main() instead of
6404 symbol_file_command().
6405 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
6406 not any longer appropriate.
6407 (vx-wait): Call symbol_file_add_main() instead of
6408 symbol_file_command().
6409 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
6410 instead of symbol_file_command().
6411 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
6412 symbol_file_add_main() instead of exec_file_command() and
6413 symbol_file_command().
6414 * Makefile.in: Update dependencies.
6415
6416 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
6417
6418 * remote-udi.c (udi_open): Change strdup to xstrdup.
6419 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
6420 Update copyright message.
6421 * varobj.c (delete_variable_1): Likewise.
6422
6423 * gdb_string.h: Remove declaration of strdup. Update copyright
6424 message.
6425 * config/xm-mpw.h: Likewise.
6426 * config/i386/xm-i386mach.h: Likewise.
6427 * config/m68k/xm-apollo68b.h: Likewise.
6428 * config/m68k/xm-hp300bsd.h: Likewise.
6429 * config/rs6000/xm-rs6000.h: Likewise.
6430 * config/vax/xm-vaxult.h: Remove declaration of strdup.
6431 * config/vax/xm-vaxult2.h: Likewise.
6432
6433 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
6434
6435 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
6436
6437 2001-01-25 J.T. Conklin <jtc@redback.com>
6438
6439 * target.c (target_xfer_memory_partial): Return -1 on failure due
6440 to invalid access mode attribute.
6441
6442 2001-01-25 Christopher Faylor <cgf@cygnus.com>
6443
6444 * win32-nat.c (_initialize_core_win32): Prototype correctly.
6445
6446 2001-01-25 Mark Kettenis <kettenis@gnu.org>
6447
6448 * config/alpha/tm-fbsd.h: Update copyright.
6449 (USE_STRUCT_CONVENTION): Define in terms of
6450 alphabsd_use_struct_convention.
6451 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
6452 * alphafbsd-tdep.c: New file.
6453
6454 2001-01-24 Fernando Nasser <fnasser@redhat.com>
6455
6456 * top.c (print_gdb_version): Update Copyright year.
6457
6458 2001-01-24 J.T. Conklin <jtc@redback.com>
6459
6460 * dcache.c (dcache_write_line): Fix typo.
6461
6462 * memattr.c (delete_mem_region): Replace free() with xfree().
6463 (mem_number): Add explicit type.
6464
6465 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
6466 (rw_common): Likewise.
6467
6468 2001-01-24 Fernando Nasser <fnasser@redhat.com>
6469
6470 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
6471 for the inferior program arguments.
6472 (run_command, run_no_args_command, init_infcmd)): Use accessor
6473 functions to set the inferior program arguments.
6474 * inferior.h: Add definitions to the accessor functions above.
6475
6476 2001-01-23 Jim Blandy <jimb@redhat.com>
6477
6478 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
6479 Implement these correctly, using make_cv_type.
6480
6481 2001-01-23 J.T. Conklin <jtc@redback.com>
6482
6483 * exec.c (xfer_memory): Add attrib argument.
6484 * infptrace.c (child_xfer_memory): Likewise.
6485 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
6486 * monitor.c (monitor_xfer_memory): Likewise.
6487 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
6488 * remote-array.c (array_xfer_memory): Likewise.
6489 * remote-bug.c (bug_xfer_memory): Likewise.
6490 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
6491 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
6492 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
6493 * remote-mips.c (mips_xfer_memory): Likewise.
6494 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
6495 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
6496 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
6497 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
6498 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
6499 * remote-sds.c (sds_xfer_memory): Likewise.
6500 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
6501 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
6502 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
6503 * remote-vx.c (vx_xfer_memory): Likewise.
6504 * remote.c (remote_xfer_memory): Likewise.
6505 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
6506 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
6507 * thread-db.c (thread_db_xfer_memory): Likewise.
6508
6509 * target.h (#include "memattr.h"): Added.
6510 (target_ops.to_xfer_memory): Add attrib argument.
6511
6512 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
6513 * dcache.h (set_dcache_state): Removed declaration.
6514 * dcache.c (set_dcache_state): Removed definition
6515
6516 * dcache.c: Update module comment, as dcache is now enabled and
6517 disabled with memory region attributes instead of by the global
6518 variable "remotecache". Add comment describing the interaction
6519 between dcache and memory region attributes.
6520 (dcache_xfer_memory): Add comment describing benefits of moving
6521 cache writeback to a higher level.
6522 (dcache_struct): Removed cache_has_stuff field. This was used to
6523 record whether the cache had been accessed in order to invalidate
6524 it when it was disabled. However, this is not needed because the
6525 cache is write through and the code that enables, disables, and
6526 deletes memory regions invalidate the cache. Add comment which
6527 suggests that we could be more selective and only invalidate those
6528 cache lines containing data from those memory regions.
6529 (dcache_invalidate): Updated.
6530 (dcache_xfer_memory): Updated.
6531
6532 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
6533 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
6534 perform a uncached transfer if dcache_enabled_p was clear. This
6535 function is now only called if caching is enabled for the memory
6536 region.
6537 (dcache_info): Always print cache info.
6538
6539 * target.c (do_xfer_memory): Add attrib argument.
6540 (target_xfer_memory, target_xfer_memory_partial): Break transfer
6541 into chunks defined by memory regions, pass region attributes to
6542 do_xfer_memory().
6543 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
6544
6545 * Makefile.in (SFILES): Add memattr.c.
6546 (COMMON_OBS): Add memattr.o.
6547 (dcache.o): Add target.h to dependencies.
6548 * memattr.c: New file.
6549 * memattr.h: Likewise.
6550
6551 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
6552 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
6553 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
6554 * gdbserver/low-sim.c (#include "defs.h"): Removed.
6555 (mygeneric_load): Rename from generic_load.
6556
6557 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
6558 (#include "defs.h"): Removed.
6559 (inferior_pid, perror_with_name): Remove declarations.
6560 * gdbserver/low-linux.c: Likewise.
6561 * gdbserver/low-nbsd.c: Likewise.
6562 * gdbserver/low-sparc.c: Likewise.
6563 * gdbserver/low-sun3.c: Likewise.
6564
6565 * i386-stub.c: Re-indent.
6566 * m68k-stub.c: Re-indent.
6567
6568 2001-01-22 Nicholas Duffek <nsd@redhat.com>
6569
6570 * gdbarch.sh (PARM_BOUNDARY): Define.
6571 * gdbarch.c: Regenerate.
6572 * gdbarch.h: Regenerate.
6573
6574 2001-01-22 J.T. Conklin <jtc@redback.com>
6575
6576 * ns32k-tdep.c: #include "frame.h"
6577 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
6578 appears to have been inadvertantly removed sometime in May 1999.
6579
6580 * Revert 2000-11-09 changes where shared library objects were
6581 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
6582 we'd like to be able to debug dynamically linked executables,
6583 this makes it impossible to build a cross debugger on a many
6584 hosts.
6585
6586 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
6587 * config/i386/nbsdelf.mt: Likewise.
6588 * config/m68k/nbsd.mt: Likewise.
6589 * config/ns32k/nbsd.mt: Likewise.
6590 * config/powerpc/nbsd.mt: Likewise.
6591 * config/sparc/nbsd.mt: Likewise.
6592 * config/sparc/nbsdelf.mt: Likewise.
6593 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
6594 * config/i386/nbsdelf.mh: Likewise.
6595 * config/m68k/nbsd.mh: Likewise.
6596 * config/ns32k/nbsd.mh: Likewise.
6597 * config/powerpc/nbsd.mh: Likewise.
6598 * config/sparc/nbsd.mh: Likewise.
6599
6600 2001-01-19 Jason Merrill <jason@redhat.com>
6601
6602 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
6603 (process_one_symbol): Likewise.
6604 * dwarfread.c (handle_producer): Likewise.
6605
6606 Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
6607
6608 * configure.in (build_warnings): Disable -Wuninitialized until GDB
6609 compiles with -Wuninitialized,-Werror.
6610 * configure: Regenerate.
6611
6612 * MAINTAINERS: Add list of buildable targets.
6613
6614 Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
6615
6616 * defs.h (STRCMP): Delete macro.
6617
6618 * objfiles.c (objfile_relocate): Replace STRCMP with call to
6619 strcmp.
6620 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
6621 * symfile.c (compare_symbols): Ditto.
6622 * standalone.c (open): Ditto.
6623 * remote-es.c (verify_break): Ditto.
6624 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
6625
6626 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
6627
6628 Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
6629
6630 * varobj.c (FREEIF): Delete macro.
6631 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
6632 call.
6633
6634 2001-01-18 Nick Clifton <nickc@redhat.com>
6635
6636 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
6637 (arc_print_insn): No bfd available, so pass NULL to
6638 arc_get_disassembler.
6639
6640 2001-01-09 James Ingham <jingham@inghji.apple.com>
6641
6642 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
6643 a mangled symbol rather than recursing into lookup_symbol, since
6644 this will just re-unmangle the name & call lookup_symbol_aux -
6645 leading to an infinite recursion.
6646
6647 2001-01-18 Mark Kettenis <kettenis@gnu.org>
6648
6649 * infcmd.c (print_return_value): Restore another space lost by
6650 switch to UIOUT. ``$NN='' should be ``$NN =''.
6651
6652 Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
6653
6654 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
6655 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
6656 definition in parenthesis.
6657
6658 Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
6659
6660 From 2000-10-27 Mark Salter <msalter@redhat.com>:
6661 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
6662 packet.
6663 (remote_insert_hw_breakpoint): Ditto.
6664
6665 2001-01-17 J.T. Conklin <jtc@redback.com>
6666
6667 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
6668 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
6669 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
6670 * m68knbsd-tdep.c: New file.
6671
6672 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
6673
6674 * m68knbsd-nat.c: #include gdbcore.h.
6675
6676 Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
6677
6678 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
6679
6680 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
6681
6682 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
6683 goes away -- just return false (ie. not stopped by watchpoint).
6684 * source.c (openp): Fix typo in comment.
6685
6686 2001-01-12 Nicholas Duffek <nsd@redhat.com>
6687
6688 * blockframe.c (generic_get_saved_register): Spelling fix.
6689 * frame.h (FRAME_FP): Spelling fix.
6690
6691 Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
6692
6693 * infcmd.c (print_return_value): Restore space lost by switch to
6694 UIOUT. ``$NN='' should be ``$NN =''.
6695
6696 2001-01-08 Nicholas Duffek <nsd@redhat.com>
6697
6698 * regcache.c (set_register_cached, register_buffer,
6699 real_register, pseudo_register fetch_register, store_register):
6700 New functions.
6701 (register_changed, read_relative_register_raw_bytes_for_frame,
6702 registers_changed, registers_fetched, read_register_bytes,
6703 read_register_gen, write_register_gen, read_register,
6704 read_signed_register, write_register, supply_register): Replace
6705 register_valid[] with register_cached() and
6706 set_register_cached().
6707 (read_register_bytes, read_register_gen, write_register_gen,
6708 read_register, read_signed_register, write_register,
6709 supply_register): Replace registers[] with register_buffer().
6710 (read_register_bytes, read_register_gen, read_register,
6711 read_signed_register): Call fetch_register().
6712 (write_register_gen, write_register): Call real_register() and
6713 store_register().
6714 (write_register_bytes): Call store_register().
6715 * value.h (set_register_cached, register_buffer): Prototype.
6716 * remote.c (remote_fetch_registers): Allocate regs[] with a
6717 run-time size. Replace register_valid[] with
6718 set_register_cached().
6719 (store_register_using_P, remote_store_registers): Replace
6720 registers[] with register_buffer().
6721
6722 2001-01-08 Nicholas Duffek <nsd@redhat.com>
6723
6724 * regcache.c: Change "write-back" comment to "write-through".
6725 Change "regno" to "regnum".
6726 (read_register, read_signed_register): Remove "raw" from return
6727 value description.
6728 (supply_register): Spelling fix.
6729 * value.h: Change "regno" to "regnum".
6730
6731 2001-01-08 Fernando Nasser <fnasser@redhat.com>
6732
6733 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
6734 to be installed.
6735
6736 2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
6737
6738 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
6739
6740 2001-01-04 Nicholas Duffek <nsd@redhat.com>
6741
6742 * valops.c (VALUE_SUBSTRING_START): Delete.
6743
6744 2001-01-04 Nicholas Duffek <nsd@redhat.com>
6745
6746 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
6747 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
6748 (cli_utils_h): New variable.
6749 (cli/cli-utils.o): New rule.
6750 * cli/cli-utils.c: New file.
6751 * cli/cli-utils.h: New file.
6752
6753 2001-01-04 Nicholas Duffek <nsd@redhat.com>
6754
6755 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
6756 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
6757
6758 2001-01-03 J.T. Conklin <jtc@redback.com>
6759
6760 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
6761 comment.
6762
6763 2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
6764
6765 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
6766 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
6767 non-float types.
6768 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
6769 Update copyright notice.
6770
6771 For older changes see ChangeLog-2000
6772 \f
6773 Local Variables:
6774 mode: change-log
6775 left-margin: 8
6776 fill-column: 74
6777 version-control: never
6778 End: