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