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