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