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