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