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