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