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