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