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