ec08affe090af4127a8893c5d1a69aa445bc0706
[external/binutils.git] / gdb / ChangeLog
1 2001-05-22  Michael Snyder  <msnyder@redhat.com>
2
3         * thread-db.c: Allow for defunct zombie threads.        
4         (attach_thread): Do not attempt to attach zombie thread.
5         (thread_db_thread_alive): Return false for defunct zombie thread.
6         (find_new_threads_callback): Don't add defunct zombie thread to list.
7
8 2001-05-22  Jim Blandy  <jimb@redhat.com>
9
10         Add support for the GNU V3 C++ ABI.
11         (Includes changes by Dan Berlin.)
12
13         * gnu-v3-abi.c: New file.
14         * minsyms.c: #include "value.h" and "cp-abi.h".
15         (install_minimal_symbols): Check the minimal symbol table for
16         symbols that look mangled in the V3 style, and select the V3 ABI
17         if we find any.
18         * Makefile.in (SFILES): Add gnu-v3-abi.c.
19         (COMMON_OBS): Add gnu-v3-abi.o.
20         (gnu-v3-abi.o): Add new rule.
21         (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
22
23 2001-05-21  Jim Blandy  <jimb@redhat.com>
24
25         * values.c (value_primitive_field): If we're extracting a base
26         class, then the type of the result should be the base class being
27         extracted, not the type of which it is a base class.
28
29         * value.h (struct value): Doc fix, and rearrange members to place
30         them near their explanations.
31
32 2001-05-21  Michael Snyder  <msnyder@redhat.com>
33
34         * remote.c (remote_async_wait): Added new variable fieldsize.
35         Add fieldsize (return value of hex2bin) to string pointer p.
36
37 2001-05-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
38
39         * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
40         (m68hc11_analyze_instruction): Update the pc correctly.
41         (m68hc11_guess_from_prologue): Take into account the stack correction
42         for the saving address.
43
44 2001-05-07  Daniel Berlin  <dan@cgsoftware.com>
45
46         Changes by Jim Ingham:
47         
48         * values.c (value_change_enclosing_type): New function.  If the
49         new enclosing type is larger than the old one, we need to allocate
50         more space.
51         * value.h: Add value_change_enclosing_type prototype.
52         * valops.c (value_cast): Use it.
53         (value_assign): Use it.
54         (value_addr): Use it.
55         (value_ind): Use it.
56         (value_full_object): Use it.
57         
58 2001-05-07  Daniel Berlin  <dan@cgsoftware.com>
59
60         * values.c (value_static_field): Handle static fields that have a
61         constant value.
62
63 2001-05-17  Michael Snyder  <msnyder@redhat.com>
64
65         * blockframe.c (create_new_frame): Zero all the fields via memset,
66         rather than zeroing them one by one.
67
68 2001-05-17  Eli Zaretskii  <eliz@is.elta.co.il>
69
70         * top.c (user_args): Remove unused declaration.
71
72 2001-05-16  Michael Snyder  <msnyder@redhat.com>
73
74         * infcmd.c (do_registers_info): Move alloca outside of loop.
75
76 2001-05-15  John S Kallal  <jskallal@home.com>
77
78         * remote.c (remote_wait): Added new variable fieldsize.
79         Add fieldsize (return value of hex2bin) to string pointer p.
80
81 2001-05-15  Mark Kettenis  <kettenis@gnu.org>
82
83         * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
84         info.bfd_arch_info.
85
86 2001-05-14  Kevin Buettner  <kevinb@redhat.com>
87
88         * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
89         Adjust format strings for printing LWPs to account for the fact
90         that the type returned by GET_LWP() is now a long instead of an
91         int.
92
93 2001-05-14  Kevin Buettner  <kevinb@redhat.com>
94
95         * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
96         (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
97         (ptid_get_tid, ptid_equal): New function declarations.
98         * infrun.c (null_ptid, minus_one_ptid): New variables.
99         (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
100         (ptid_get_tid, ptid_equal): New functions.
101         (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
102         inferior_ptid, and target_last_wait_ptid.
103
104         * defs.h (ptid_t): Redefine to be a struct rather than an int.
105         (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
106         (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
107         new ptid accessors and constructor.
108
109         * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
110         MKLID, MKTID, ISTID): Provide new definitions for these macros.
111         The old macros are retained, but disabled via #if 0 in order
112         to aid in future restructuring.  See FIXME.
113
114         * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
115         * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
116         * infptrace.c (PIDGET, TIDGET): Likewise.
117         * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
118         * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
119         * proc-service.c (MERGEPID): Likewise.
120         * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
121         * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
122         * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
123         * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
124         Likewise.
125         * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
126         Likewise.
127
128         * lin-lwp.c (THREAD_FLAG): Delete macro definition.
129         (GET_LWP): Redefine in terms of ptid_get_lwp().
130         (GET_PID): Redefine in terms of ptid_get_pid().
131         (is_lwp): Redefine without the need for THREAD_FLAG.
132         (BUILD_LWP): Redefine in terms of ptid_build().
133         * lin-thread.c (THREAD_FLAG): Delete macro definition.
134         (GET_LWP): Redefine in terms of ptid_get_lwp().
135         (GET_PID): Redefine in terms of ptid_get_pid().
136         (GET_THREAD): Redefine in terms of ptid_get_tid().
137         (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
138         (is_lwp, is_thread): Redefine.
139         (linux_child_wait, check_all_signal_numbers)
140         (linuxthreads_discard_global_state, attach_thread): Declare these
141         functions to squash warnings about missing declarations.
142         * sol-thread.c (THREAD_FLAG): Delete macro definition.
143         (GET_PID): Redefine in terms of ptid_get_pid().
144         (GET_LWP): Redefine in terms of ptid_get_lwp().
145         (GET_THREAD): Redefine in terms of ptid_get_tid().
146         (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
147         (is_lwp, is_thread): Redefine.
148         * thread-db.c (THREAD_FLAG): Delete macro definition.
149         (GET_PID): Redefine in terms of ptid_get_pid().
150         (GET_LWP): Redefine in terms of ptid_get_lwp().
151         (GET_THREAD): Redefine in terms of ptid_get_tid().
152         (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
153         (is_lwp, is_thread): Redefine.
154
155         * corelow.c (add_to_thread_list, get_core_register_section):
156         Eliminate hacks needed to prevent regressions when inferior_ptid
157         wasn't wide enough to hold the core file thread id in the pid
158         component of inferior_ptid.
159
160 2001-05-14  Michael Snyder  <msnyder@redhat.com>
161
162         * remote.c (hex2bin):   Make first argument const.
163         Require explicit count, don't accept null-terminated str.
164         (remote_resume, remote_async_resume): White space fix-up.
165         (remote_write_bytes): Set nr_bytes to return value of bin2hex.
166
167 2001-05-13  Mark Kettenis  <kettenis@gnu.org>
168
169         * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
170         basename (NAME).  The FreeBSD basename returns a pointer to a
171         static buffer, even if it's simply returning a string identical to
172         its argument.
173         (lookup_partial_symtab): Likewise.
174
175 2001-05-14  Michael Snyder  <msnyder@redhat.com>
176
177         * solib.c, solib.h: Add comment for function no_shared_libraries.
178         
179 2001-05-14  Kevin Buettner  <kevinb@redhat.com>
180
181         * solib.h (no_shared_libraries): Make declaration match definition
182         in solib.c.
183
184 2001-05-14  Andrew Cagney  <ac131313@redhat.com>
185
186         * remote.c (remote_write_bytes): Set nr_bytes before returning it.
187         * solib.h (no_shared_libraries): Declare.
188
189 2001-05-12  Andrew Cagney  <ac131313@redhat.com>
190
191         * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
192         (gdbarch_update_p): Rewrite logic filling in INFO struct.  Use
193         user specified values when available.
194         * rs6000-tdep.c (rs6000_gdbarch_init): Update.  Get the
195         architecture from info.bfd_arch_info.
196         * gdbarch.c, gdbarch.h: Regenerate.
197
198 2001-05-12  Fernando Nasser  <fnasser@redhat.com>
199
200         * remote-e7000.c (e7000_open): Check for bad baud rate.
201         * remote-st.c (st2000_open): Ditto.
202
203 2001-05-11  Jim Blandy  <jimb@redhat.com>
204
205         * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
206         and ui_out_tuple_end instead of ui_out_list_begin and
207         ui_out_list_end.
208
209         * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
210         dependencies.  Reorder dependencies to match #includes in file,
211         for easier verification.
212         
213 Fri May 11 13:32:50 2001  Andrew Cagney  <cagney@b1.cygnus.com>
214
215         * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
216         make_cleanup_ui_out_list_end with ui_out_tuple_begin,
217         ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
218         * cli/cli-setshow.c: Ditto.
219         * printcmd.c: Ditto.
220         * stack.c: Ditto.
221
222         * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
223         * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
224         (ui_out_tuple_begin): New function.
225         (ui_out_tuple_end): New function.
226         (ui_out_tuple_begin_end): New function.
227         (make_cleanup_ui_out_list_begin_end): Replace
228         make_cleanup_ui_out_list_end function.
229         * ui-out.h (ui_out_list_begin): Update declaration.
230         (make_cleanup_ui_out_list_begin_end): Replace
231         make_cleanup_ui_out_list_end declaration.
232         (ui_out_tuple_begin, ui_out_tuple_end): Declare.
233         (ui_out_tuple_begin_end): Declare.
234
235 2001-05-11  Jim Blandy  <jimb@redhat.com>
236
237         * gnu-v2-abi.c: Don't #include "gdb_regex.h".  We don't use it.
238
239 2001-05-11  Andrew Cagney  <ac131313@redhat.com>
240
241         From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
242         * config/pa/tm-hppa.h: Remove trigraph.
243         * hp-symtab-read.c (hpread_type_translate): Provide return value.
244         (hpread_read_struct_type): Remove trigraph. Add parameter in
245         `warning'.
246         (hpread_read_array_type): Provide return value.
247         (hpread_type_lookup): Avoid ambiguous `else'. Provide return
248         value.
249         * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
250         trigraph.
251
252 2001-05-11  Jim Blandy  <jimb@redhat.com>
253
254         * mips-tdep.c (mips_store_return_value,
255         mips_extract_return_value): Pass arguments to
256         return_value_location in the proper order.
257
258 2001-05-11  Andrew Cagney  <ac131313@redhat.com>
259
260         * Makefile.in (VERSION): Delete.  Moved to file ``version.in''.
261         (version.c): Depends on file ``version.in''.  Extract version
262         number from ``version.in'' file.
263         (clean mostlyclean): Update.
264         * version.in: New file.
265         * NEWS: Update.
266         
267 2001-05-11  Kevin Buettner  <kevinb@redhat.com>
268
269         * breakpoint.c (set_raw_breakpoint): Add new parameter
270         representing the breakpoint's type.  Adjust all callers.
271         (create_longjmp_breakpoint, create_temp_exception_breakpoint)
272         (create_thread_event_breakpoint): Don't test for zero return
273         value from set_raw_breakpoint().  It can never be zero.
274         (create_exception_catchpoint, watch_command_1): Move logic
275         which calculates the breakpoint type prior to the call to
276         set_raw_breakpoint().
277
278 2001-05-11  Fernando Nasser  <fnasser@redhat.com>
279
280         * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
281         (hardwire_setbaudrate): Set errno to EINVAL and return with error
282         if the conversion of the baud rate to code fails.
283
284 2001-05-10  Andrew Cagney  <ac131313@redhat.com>
285
286         * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
287         * ui-out.c (struct ui_out_end_cleanup_data): Define.
288         (do_cleanup_end): New function.  Replace do_list_end.
289         (make_cleanup_ui_out_end): New function.
290         (make_cleanup_ui_out_begin_end): New function.
291         (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
292
293 2001-05-10  Elena Zannoni  <ezannoni@redhat.com>
294
295         * MAINTAINERS: Declare xcoffread.c open to all maintainers,
296         and make Kevin Buettner (kevinb@redhat.com) the reference person.
297
298 2001-05-10  Elena Zannoni  <ezannoni@redhat.com>
299
300         * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
301
302 2001-05-10  Fernando Nasser  <fnasser@redhat.com>
303
304         * MAINTAINERS: Add testsuite subdirectory co-maintainers.
305
306 Thu May 10 16:26:47 2001  Andrew Cagney  <cagney@b1.cygnus.com>
307
308         * Makefile.in (mi-main.o): Compile with -Werror.
309
310 2001-05-10  Michael Snyder  <msnyder@redhat.com>
311
312         * remote.c (remote_open_1): Call no_shared_libraries, so that
313         symbols for shared libraries can be reloaded per session.
314         (remote_async_open_1): Ditto.
315         * remote.c (bin2hex, hex2bin): New functions.  Factor out these
316         two conversions which are coded for repeatedly in this module.
317         (remote_threads_extra_info, remote_wait, remote_async_wait, 
318         store_register_using_P, remote_store_registers, remote_write_bytes,
319         remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
320         of coding the conversions inline.
321         (fromhex): Not exported, change from extern to static.
322
323 2001-05-10  Andrew Cagney  <ac131313@redhat.com>
324
325         * arch-utils.c (initialize_current_architecture): Delete obsolete
326         ``info architecture'' command.
327         (info_architecture): Delete function.
328
329 2001-05-10  Andrew Cagney  <ac131313@redhat.com>
330
331         * TODO (5.1, 5.2): Update.
332
333 2001-05-09  Andrew Cagney  <ac131313@redhat.com>
334
335         * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
336         stuff.
337
338 2001-05-10  Keith Seitz  <keiths@cygnus.com>
339
340         * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
341         and gdbtk-stack.o.
342         (SUBDIR_GDBTK_SRCS): Ditto for the sources.
343         (gdbtk-bp.o): New rule.
344         (gdbtk-register.o): New rule.
345         (gdbtk-stack.o): New rule.
346         (gdbtk-cmds.o): Update dependencies.
347         (gdbtk.o): Ditto.
348         (gdbtk-hooks.o): Ditto.
349         (gdbtk-varobj.o): Ditto.
350
351 2001-05-10  Fernando Nasser  <fnasser@redhat.com>
352
353         * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
354         variables, not just unregister them.
355
356 2001-05-10  Fernando Nasser  <fnasser@redhat.com>
357
358         * varobj.c (c_number_of_children): Check for target type of void*,
359         not the target type name.  Allow dereferencing char*.
360
361 2001-05-10  Fernando Nasser  <fnasser@redhat.com>
362
363         * symfile.c (symbol_file_add_main_1): New static function. 
364         Passes the flags arguments to  symbol_file_add() and takes care
365         of any necessary reinitializations.
366         (symbol_file_command): Call symbol_file_add_main_1() instead of
367         symbol_file_add().  
368         (symbol_file_add_main): Ditto.
369
370 2001-05-09  Kevin Buettner  <kevinb@redhat.com>
371
372         * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
373         string change in 2001-05-03 changes.
374         (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
375         changes.
376
377 2001-05-09  Kevin Buettner  <kevinb@redhat.com>
378
379         * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
380         component from inferior_ptid.
381         (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
382         ptid.
383
384 2001-05-09  Elena Zannoni  <ezannoni@redhat.com>
385
386         * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
387         conditional for help with connections through parallel ports,
388         given that the actual code for downloading through a parallel port
389         is not conditionalized.
390
391         * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
392         unmaintaned, and probably on its way to obsolescence.
393         
394 2001-05-09  Mark Kettenis  <kettenis@gnu.org>
395
396         * i386-tdep.c (i386_frame_saved_pc): New function.
397         * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
398         i386_frame_saved_pc.
399         (i386_frame_saved_pc): New prototype.
400
401         * i386-tdep.c (i386_register_virtual_type): New function.
402         (i386_register_convertible): New function.
403         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
404         of i386_register_virtual_type.
405         (REGISTER_CONVERTIBLE): Redefine in terms of
406         i386_register_convertible.
407         (i386_register_virtual_type, i386_register_convertible): New
408         prototypes.
409
410 2001-05-08  Jim Blandy  <jimb@redhat.com>
411
412         * Makefile.in (mn10300-tdep.o): New rule.
413
414         * Makefile.in (gdb_string_h): Define.  Use it throughout.
415         Some rules were already using this, even though it isn't defined.
416
417         * Makefile.in (obstack_h, target_h): Define; these are already
418         used elsewhere, but have been expanding to the empty string.
419         (memattr_h): Define; needed by target_h.
420
421         * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
422         static.  (This was accidentally omitted from the earlier patch.)
423         
424         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
425         (mn10300_gdbarch_init): Register it as the architecture's
426         dwarf2_reg_to_regnum method.
427
428         Correct and expand handling of `movm' instruction, and register
429         saves in general.
430         * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
431         MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
432         (enum movm_register_bits): New enum.
433         * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
434         bits, not hex literals.  Handle the `other', `exreg0', and
435         `exother' bits.  Correct handling of `exreg1': it saves r4, r5,
436         r6, and r7, not r2, r3, r4, and r5.
437         (saved_regs_size): New function.
438         (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
439         of computing the same thing inline, incorrectly.
440
441         * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
442         dummy_breakpoint_offset; it's zero.
443
444         * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
445         stuff out into mn10300_pop_frame_regular, and use
446         generic_pop_current_frame.  This lets us share code, and also
447         makes this function's prototype match that expected by gdbarch.
448         Make this function static.
449         (mn10300_pop_frame_regular): New function.
450         (mn10300_gdbarch_init): Register mn10300_pop_frame as the
451         gdbarch's pop_frame method.
452         * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
453         (mn10300_pop_frame): Delete declaration.
454
455         * mn10300-tdep.c (mn10300_saved_pc_after_call,
456         mn10300_extract_return_value,
457         mn10300_extract_struct_value_address, mn10300_store_return_value,
458         mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
459         mn10300_frame_chain, mn10300_skip_prologue,
460         mn10300_push_arguments, mn10300_push_return_address,
461         mn10300_store_struct_return, mn10300_frame_saved_pc,
462         mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
463         Make these functions static; they should only be visible to the
464         outside world as gdbarch methods.
465
466         * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
467         unused declaration.
468         
469         * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
470         in some rational order.
471
472         * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
473         generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
474
475         Use gdbarch for most target parameters for the MN10300, rather
476         than the tm-*.h file.
477         * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
478         REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
479         FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
480         SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
481         FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
482         EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
483         STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
484         FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
485         FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
486         CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
487         CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
488         TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
489         SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
490         REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
491         Delete definitions.  We register gdbarch methods for these now.
492         (struct frame_info, struct type, struct value): Delete forward
493         declarations of these types; they're no longer necessary, since we
494         don't have function declarations here any more.
495         * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
496         some default gdbarch methods.
497         (mn10300_store_struct_return): Return void, as expected by
498         gdbarch.
499         (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
500         as expected by gdbarch.
501         (mn10300_frame_init_saved_regs): Provide dummy definition for
502         this, as required by gdbarch.
503         (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
504         by gdbarch.  Register gdbarch methods or values for all the stuff
505         removed from tm-10300.h, listed above.
506
507 2001-05-08  Andrew Cagney  <ac131313@redhat.com>
508
509         * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
510         cli_list_end.
511         (cli_ui_out_impl): Update.
512
513         * ui-out.c (default_begin, default_end): Replace
514         default_list_begin and default_list_end.
515         (default_ui_out_impl): Update.
516         (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
517         (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
518         ui_out_list_end.
519         (ui_out_list_begin, ui_out_list_end): New.  Compatibility
520         functions.
521         (struct ui_out_level): Add field type.
522         (push_level, pop_level): Update.  Add type parameter.
523
524         * ui-out.h (enum ui_out_type): Declare.
525         (ui_out_begin, ui_out_end): Declare.
526         (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
527         and list_end_ftype.
528         (struct ui_out_impl): Update.
529
530 2001-05-07  Andrew Cagney  <ac131313@redhat.com>
531
532         * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
533         ``list_flag'' to ``depth''.
534         * ui-out.c (default_list_begin, default_list_end): Update.
535         (uo_list_begin, uo_list_end): Update.
536         (MAX_UI_OUT_LEVELS): Define.
537         (struct ui_out_level): Define.
538         (top-level): Include "gdb_assert.h".
539         (struct ui_out): Add fields ``level'' and ``levels''.  Delete
540         fields ``list_flag'' and ``field_count''.
541         (ui_out_new): Update.
542         (verify_field_proper_position): Update.
543         (current_level, push_level, pop_level): New functions.
544         (ui_out_list_begin): Use push_level.
545         (ui_out_list_end): Use pop_level.
546         (ui_out_field_int): Use current_level.
547         (ui_out_field_skip): Ditto.
548         (ui_out_field_fmt): Ditto.
549
550 2001-05-08  Michael Snyder  <msnyder@redhat.com>
551
552         * language.c (longest_local_hex_string_custom): Strlen test is 
553         inverted -- reverse the sense of the test.
554
555 2001-05-08  Mark Kettenis  <kettenis@gnu.org>
556
557         * config/i386/tm-i386v.h (struct frame_info, struct
558         frame_saved_regs):  Remove declarations.
559         (i386_frame_num_args): Remove prototype.
560
561 2001-05-07  Andrew Cagney  <ac131313@redhat.com>
562
563         * MAINTAINERS: I'm no longer actively maintaining the mn10300
564         target.
565
566 2001-05-04  Andrew Cagney  <ac131313@redhat.com>
567  
568         * main.c (captured_main): Delete #ifndef _WIN32 conditional for
569         WinGDB.
570  
571 2001-05-06  Kevin Buettner  <kevinb@redhat.com>
572
573         * inferior.h (save_inferior_ptid): Declare.
574         * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
575
576         * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
577         Delete these functions.
578         * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
579         * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
580         * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
581         Likewise.
582         * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
583         Likewise.
584         * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
585         * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
586
587         * somsolib.c (reset_inferior_ptid): Delete.
588         (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
589         build the cleanup struct.
590
591         * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
592         a cleanup to save/restore inferior_ptid.
593
594 2001-05-06  Mark Kettenis  <kettenis@gnu.org>
595
596         Implement attach/detach for multi-threaded programs on Linux.
597         * thread-db.c (keep_thread_db): Adjust comment.
598         (deactivate_target): Removed.
599         (thread_db_new_objfile): Don't call deactivate_target.  Implement
600         guts of deactivate_target inline instead.
601         (attach_thread): Call ATTACH_LWP unconditionally if defined.
602         (thread_db_attach): New function.
603         (thread_db_detach): Don't call deactivate_target.  Do necessary
604         cleanup inline instead.  Set inferior_ptid to LWP corresponding to
605         the current user-level thread.
606         (thread_db_kill): Set inferior_ptid to LWP corresponding to the
607         current user-level thread.
608         (thread_db_create_inferior): Deactivate target vector if
609         KEEP_THREAD_DB is zero.
610         (thread_db_mourn_inferior): Don't call deactivate_target.  Do
611         necessary cleanup inline instead.
612         (init_thread_db_ops): Initialize to_attach field to
613         thread_db_attach.
614         * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
615         (stop_wait_callback): Add prototype.
616         (init_lwp_list): Add comment about when to re-initialize the LWP
617         list.
618         (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
619         Avoid adding publicates to the LWP list.  Only mark an LWP as
620         signalled if it doesn't correspond to a cloned process.
621         (lin_lwp_attach): Add initial process to the LWP list.  Make sure
622         it's stopped and fake a SIGSTOP.
623         (detach_callback): New function.
624         (lin_lwp_detach): Implement.
625         (lin_lwp_create_inferior): Don't re-initialize LWP list here.
626         Call child_ops.to_create_inferior directly instead of via
627         target_beneath local.
628         (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
629         directly instead of via target_beneath local.
630
631 2001-05-06  Eli Zaretskii  <eliz@is.elta.co.il>
632
633         * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
634         instead of non-portable search for `/'.  Use FILENAME_CMP instead
635         of STREQ, to account for case-insensitive filesystems.
636         (top-level): #include "filenames.h".
637
638 2001-05-05  Jim Blandy  <jimb@redhat.com>
639
640         * breakpoint.c (check_duplicates): Use the breakpoint's type, not
641         its address, to decide whether it's a watchpoint or not.  Zero
642         is a valid code address.
643         (update_breakpoints_after_exec): Admonishing comments.
644         * breakpoint.h (struct breakpoint): Doc fixes.
645
646         * breakpoint.c (check_duplicates): Take a breakpoint object as an
647         argument, rather than an address and section.  All callers changed.
648
649 2001-05-03  Kevin Buettner  <kevinb@redhat.com>
650
651         * defs.h (ptid_t): New typedef.
652         (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
653
654         * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
655         blockframe.c, breakpoint.c, breakpoint.h,
656         config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
657         config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
658         config/mips/nm-irix4.h, config/mips/nm-irix5.h,
659         config/pa/nm-hppah.h, config/pa/tm-hppa.h,
660         config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
661         corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
662         dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
663         hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
664         hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
665         i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
666         infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
667         inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
668         linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
669         m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
670         mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
671         ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
672         regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
673         remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
674         remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
675         remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
676         remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
677         solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
678         standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
679         target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
680         uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
681         (inferior_pid):  Rename to inferior_ptid everywhere - even in
682         comments and obsolete ports.  In cases where this variable
683         really is supposed to be used as a process id, use PIDGET() to
684         extract the process id component from inferior_ptid.  The
685         other cases, either involving other variables whose types had
686         to be changed or functions whose signatures had to changed
687         are listed separately below.
688
689         * arm-linux-nat.c (get_thread_id): Change type of argument
690         representing a combined process/thread id from ``int'' to
691         ``ptid_t''.  Also change parameter name to ptid.
692         * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
693         * corelow.c (core_file_thread_alive): Likewise.
694         * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
695         * defs.h (*target_wait_hook): Likewise.
696         * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
697         (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
698         * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
699         (gnu_resume): Likewise.
700         * go32-nat.c (go32_wait, go32_resume): Likewise.
701         * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
702         * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
703         * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
704         (hppa_pid_or_tid_to_str, child_post_startup_inferior)
705         (child_thread_alive): Likewise.
706         * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
707         (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
708         * i386-linux-nat.c (child_resume): Likewise.
709         * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
710         (store_debug_register, fetch_debug_register_pair)
711         (store_debug_register_pair, ia64_linux_insert_watchpoint)
712         (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
713         Likewise.
714         * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
715         * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
716         (generic_target_write_pc, ptrace_wait, child_resume)
717         (get_last_target_status): Likewise.
718         * infptrace.c (ptrace_wait, child_resume): Likewise.
719         * inftarg.c (child_wait, child_post_wait, child_thread_live)
720         (child_pid_to_str): Likewise.
721         * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
722         (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
723         * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
724         (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
725         (lin_lwp_pid_to_str): Likewise.
726         * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
727         (thread_db_resume, thread_db_wait): Likewise.
728         * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
729         (linuxthreads_resume, linuxthreads_wait): Likewise.
730         * lynx-nat.c (child_wait, child_thread_alive, child_resume)
731         (child_pid_to_str): Likewise.
732         * m3-nat.c (mach_really_wait, m3_resume): Likewise.
733         * mac-nat.c (child_wait, child_resume): Likewise.
734         * mips-tdep.c (mips_read_pc): Likewise.
735         * monitor.c (monitor_wait, monitor_resume): Likewise.
736         * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
737         * ppc-bdm.c (bdm_ppc_wait): Likewise.
738         * procfs.c (do_attach, procfs_wait, procfs_resume)
739         (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
740         (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
741         (procfs_find_LDT_entry): Likewise.
742         * regcache.c (read_register_pid, read_signed_register_pid)
743         (write_register_pid, generic_target_read_pc, read_pc_pid)
744         (generic_target_write_pc, write_pc_pid): Likewise.
745         * regcache.h (read_register_pid, read_signed_register_pid)
746         (write_register_pid): Likewise.
747         * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
748         * remote-array.c (array_wait, array_resume): Likewise.
749         * remote-bug.c (bug_wait, bug_resume): Likewise.
750         * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
751         * remote-eb.c (eb_wait, eb_resume): Likewise.
752         * remote-es.c (es1800_wait, es1800_resume): Likewise.
753         * remote-mips.c (mips_wait, mips_resume): Likewise.
754         * remote-mm.c (mm_wait, mm_resume): Likewise.
755         * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
756         * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
757         * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
758         * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
759         * remote-sds.c (sds_wait, sds_resume): Likewise.
760         * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
761         * remote-st.c (st2000_wait, st2000_resume): Likewise.
762         * remote-udi.c (udi_wait, udi_resume): Likewise.
763         * remote-vx.c (vx_wait, vx_resume): Likewise.
764         * remote.c (remote_current_thread, remote_resume, remote_wait)
765         (remote_async_resume, remote_async_wait, remote_cisco_wait)
766         (remote_thread_alive): Likewise.
767         * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
768         (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
769         (solaris_pid_to_str): Likewise.
770         * symm-nat.c (child_wait, child_resume): Likewise.
771         * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
772         (debug_to_notice_signals, debug_to_thread_alive)
773         (normal_target_post_startup_inferior, normal_pid_to_str)
774         (debug_to_post_startup_inferior): Likewise.
775         * target.h (to_resume, to_wait, to_post_wait)
776         (to_post_startup_inferior, to_notice_signals, to_thread_alive)
777         (to_pid_to_str [all in struct target_ops]): Likewise.
778         (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
779         * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
780         (attach_thread, detach_thread, thread_db_resume, check_event)
781         (thread_db_post_startup_inferior, thread_db_thread_alive)
782         (thread_db_pid_to_str): Likewise.
783         * thread.c (add_thread, delete_thread, find_thread_pid)
784         (pid_to_thread_id, in_thread_list, load_infrun_state)
785         (save_infrun_state, switch_to_thread, restore_current_thread)
786         (make_cleanup_restore_current_thread): Likewise.
787         * top.c (target_wait_hook): Likewise.
788         * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
789         (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
790         (uw_thread_pid_to_str): Likewise.
791         * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
792         * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
793         (cywin_pid_to_str): Likewise.
794         * wince.c (child_wait, child_resume, win32_child_thread_alive):
795         Likewise.
796         * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
797         * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
798         * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
799         * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
800         * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
801         * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
802         (procfs_set_watchpoint): Likewise.
803         * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
804         * config/i386/nm-ptx4.h (child_wait): Likewise.
805         * config/i386/nm-symmetry.h (child_wait): Likewise.
806         * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
807         * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
808         (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
809         (lin_lwp_attach_lwp): Likewise.
810         * config/mips/nm-irix4.h, config/mips/nm-irix5.h
811         (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
812         * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
813         (hppa_pid_or_tid_to_str): Likewise.
814         * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
815         * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
816         * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
817         (procfs_set_watchpoint): Likewise.
818
819         * gdbthread.h (thread_id_to_pid): Change return type which
820         represents a combined process/thread id from ``int'' to
821         ``ptid_t''.
822         * gnu-nat.c (gnu_wait): Likewise.
823         * go32-nat.c (go32_wait): Likewise.
824         * hpux-thread.c (hpux_thread_wait): Likewise.
825         * inferior.h (procfs_first_available): Likewise.
826         * inftarg.c (child_wait): Likewise.
827         * infttrace.c (ptrace_wait): Likewise.
828         * lin-lwp.c (lin_lwp_wait): Likewise.
829         * lin-thread.c (thread_db_wait): Likewise.
830         * linux-thread.c (linuxthreads_wait): Likewise.
831         * lynx-nat.c (child_wait): Likewise.
832         * m3-nat.c (mach_really_wait): Likewise.
833         * mac-nat.c (child_wait): Likewise.
834         * monitor.c (monitor_wait): Likewise.
835         * ppc-bdm.c (bdm_ppc_wait): Likewise.
836         * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
837         * remote-adapt.c (adapt_wait): Likewise.
838         * remote-array.c (array_wait): Likewise.
839         * remote-bug.c (bug_wait): Likewise.
840         * remote-e7000.c (e7000_wait): Likewise.
841         * remote-eb.c (eb_wait): Likewise.
842         * remote-es.c (es1800_wait): Likewise.
843         * remote-mips.c (mips_wait): Likewise.
844         * remote-mm.c (mm_wait): Likewise.
845         * remote-nindy.c (nindy_wait): Likewise.
846         * remote-os9k (rombug_wait): Likewise.
847         * remote-rdi.c (arm_rdi_wait): Likewise.
848         * remote-rdp.c (remote_rdp_wait): Likewise.
849         * remote-sds.c (sds_wait): Likewise.
850         * remote-sim.c (gdbsim_wait): Likewise.
851         * remote-st.c (st2000_wait): Likewise.
852         * remote-udi.c (udi_wait): Likewise.
853         * remote-vx.c (vx_wait): Likewise.
854         * remote.c (remote_wait, remote_async_wait, remote_current_thread)
855         (remote_cisco_wait): Likewise.
856         * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
857         Likewise.
858         * symm-nat.c (child_wait): Likewise.
859         * target.c (debug_to_wait): Likewise.
860         * target.h (to_wait [in struct target_ops]): Likewise.
861         * thread.c (thread_id_to_pid): Likewise.
862         * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
863         Likewise.
864         * top.c (*target_wait_hook): Likewise.
865         * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
866         * v850ice.c (v850ice_wait): Likewise.
867         * win32-nat.c (child_wait): Likewise.
868         * wince.c (child_wait): Likewise.
869         * config/nm-lynx.h (child_wait): Likewise.
870         * config/i386/nm-ptx4.h (child_wait): Likewise.
871         * config/i386/nm-symmetry.h (child_wait): Likewise.
872
873         * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
874         to wait_ptid and change its type from ``int'' to ``ptid_t''.
875         * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
876         but rename saved_inferior_pid to saved_inferior_ptid.
877         * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
878         save_pid to save_ptid.
879         * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
880         * hppah-nat.c (child_pid_to_exec): Likewise, but rename
881         saved_inferior_pid to saved_inferior_ptid.
882         * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
883         * infrun.c (previous_inferior_pid [static global]): Likewise,
884         but rename to previous_inferior_ptid.
885         (resume): Likewise, but rename resume_pid to resume_ptid.
886         (struct execution_control_state): Likewise, but rename
887         pid to ptid, saved_inferior_pid to saved_inferior_ptid,
888         and waiton_pid to waiton_ptid.
889         (target_last_wait_pid): Likewise, but rename to
890         target_last_wait_ptid.
891         * infttrace.c (saved_real_pid): Likewise, but rename to
892         saved_real_ptid.
893         (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
894         to saved_inferior_ptid.
895         * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
896         (trap_ptid): Likewise, but renamed from trap_pid.
897         * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
898         to gdb_ptid.
899         * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
900         (thread_db_wait): Likewise, but rename ret_pid to retptid.
901         * procfs.c (procfs_wait): Likewise, for retval whose name
902         doesn't change.  Also, ``temp'' becomes two separate variables,
903         one named temp_tid (an int) and the other temp_ptid.
904         (procfs_notice_thread): Likewise (type change) for gdb_threadid
905         whose name does not change.
906         * regcache.c (registers_ptid): Likewise, but renamed from
907         registers_pid.
908         (read_register_pid, read_signed_register_pid, write_register_pid):
909         Likewise, but rename save_pid to save_ptid.
910         (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
911         to saved_inferior_ptid.
912         * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
913         * sol-thread.c (struct ps_prochandle): Likewise.
914         (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
915         (sol_thread_wait): Likewise, for rtnval whose name does not
916         change, and for save_pid which becomes save_ptid.
917         (solaris_pid_to_str): Likewise for lwp whose name does not change.
918         (sol_find_new_threads_callback): Likewise, for pid which becomes
919         ptid.
920         * target.h (target_resume, target_wait, target_post_wait)
921         (target_post_startup_inferior, target_notice_signals)
922         (target_thread_alive): Likewise.
923         * thread.c (info_threads_command): Likewise, but rename
924         current_pid to current_ptid.
925         (struct current_thread_cleanup): Likewise, but rename field
926         inferior_pid to inferior_ptid.
927         * thread-db.c (find_new_threads_callback): Likewise, but rename
928         pid to ptid.
929         * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
930         change.
931         (lwp_to_tr): Likewise fo tid whose name remains unchanged.
932         (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
933         but rename pid to ptid.
934         * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
935         * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
936         * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
937         * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
938         * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
939         * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
940
941         * arch-utils.c (generic_prepare_to_proceed):  Test for the
942         "zero" ptid by using ptid_equal() to test to see if variable
943         in question is the same as null_ptid.  This replaces a direct
944         test against zero.
945         * cxux-nat.c (add_shared_symbol_files): Likewise.
946         * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
947         * infcmd.c (run_command): Likewise.
948         * inflow.c (kill_command): Likewise.
949         * infttrace.c (call_ttrace): Likewise.
950         * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
951         * lin-thread.c (thread_db_kill): Likewise.
952         * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
953         * remote-es.c (es1800_kill): Likewise.
954         * sol-thread.c (sol_thread_create_inferior): Likewise.
955         * solib.c (locate_base): Likewise.
956         * target.c (nosupport_runtime): Likewise.
957         * thread-db.c (thread_db_wait): Likewise.
958         * top.c (quit_confirm, quit_force): Likewise.
959         * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
960
961         * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
962         Use ptid_equal to compare value of process/thread ids instead of
963         ``=='' and ``!='' operators.
964         lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
965         (stop_wait_callback, lin_lwp_wait): Likewise.
966         * procfs.c (procfs_wait): Likewise.
967         * regcache.c (read_register_bytes, read_register_gen)
968         (write_register_gen, read_register, read_register_pid)
969         (read_signed_register, read_signed_register_pid, write_register)
970         (write_register_pid, supply_register): Likewise.
971         * remote-vx.c (vx_resume): Likewise.
972         * sol-thread.c (sol_thread_wait): Likewise.
973         * symm-nat.c (kill_inferior): Likewise.
974         * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
975         (in_thread_list, info_threads_command, switch_to_thread)
976         (restore_current_thread): Likewise.
977         * uw-thread (libtread_stub): Likewise.
978
979         * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
980
981         * corelow.c (add_to_thread_list): Convert argument in add_thread()
982         call to a ptid_t.
983         * gnu-nat.c (inf_validate_procs): Likewise.
984         * linux-thread.c (stop_thread, update_stop_threads): Likewise.
985         * remote.c (record_currthread, remote_threads_info): Likewise.
986         * win32-nat.c (child_add_thread): Likewise.
987
988         * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
989         respectively, to save_inferior_ptid() and restore_inferior_ptid().
990         Adjust implementations to operate on ``ptid_t'' instead of ``int''.
991         * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
992         * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
993         * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
994         * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
995         * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
996         * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
997
998         * infrun.c (RESUME_ALL): New macro representing the -1 ptid
999         to be passed to target_resume() when all threads should resume.
1000         (resume): Set resume_ptid to RESUME_ALL rather than -1.
1001         (handle_inferior_event): Invoke target_resume() with RESUME_ALL
1002         instead of -1.
1003         * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
1004         a ptid_t in target_resume() call.
1005         * osfsolib.c (solib_create_inferior_hook): Likewise.
1006         * solib-svr4.c (solib_create_inferior_hook): Likewise.
1007
1008         * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
1009         PIDGET0.  Define new PIDGET macro which uses PIDGET0, the only
1010         difference being that the 0xffff pattern will be interpreted
1011         as -1.
1012         * lin-thread.c (PIDGET, PIDGET0): Likewise.
1013         * thread-db.c (PIDGET, PIDGET0): Likewise.
1014         * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
1015         * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
1016         * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
1017         * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
1018
1019         * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
1020         mach_really_wait rather than mach_really__wait.
1021         * lin-thread.c (check_for_thread_event): Fix warning; make function
1022         actually return a value.
1023
1024         * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
1025         ``pid'' arguments from ``int'' to ``ptid_t''.  Also renamed
1026         pid to ptid.
1027         * gdbarch.h, gdbarch.c: Regenerated.
1028
1029 2001-05-03  Jonathan Larmour  <jlarmour@redhat.com>
1030
1031         * rdi-share/devsw.c: Include <time.h> for struct tm
1032
1033 2001-05-03  Eli Zaretskii  <eliz@is.elta.co.il>
1034
1035         * config/djgpp/fnchange.lst: Add mappings for the new
1036         opcodes/openrisc-* files.
1037
1038 2001-05-01  Michael Snyder  <msnyder@redhat.com>
1039
1040         * lin-lwp.c: Change printf to fprintf_unfiltered.
1041         * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
1042
1043 2001-05-01  Nicholas Duffek  <nsd@redhat.com>
1044
1045         * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
1046         (rs6000_in_solib_return_trampoline): Declare.
1047         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
1048         function.
1049         (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
1050         * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
1051         check after the CSECT check rather than before it.  Allocate
1052         separate symtabs for CSECTs whose names begin with '@'.
1053         (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
1054         Activate the misc_func_recorded mechanism for whose names begin
1055         with '@'.
1056
1057 2001-04-30  J.T. Conklin  <jtc@redback.com>
1058
1059         * ppcnbsd-nat.c (fetch_inferior_registers)
1060         (store_inferior_registers, fetch_core_registers): Changed to use
1061         fpreg[] instead of r_regs[] to access floating point registers.
1062
1063 2001-04-30  Elena Zannoni  <ezannoni@redhat.com>
1064
1065         * sh-tdep.c: Get rid of the function prototypes.
1066         (sh_sh4_build_float_register_type): Move earlier in file.
1067         (fv_reg_base_num): Ditto.
1068         (dr_reg_base_num): Ditto.
1069
1070 2001-04-30  Michael Snyder  <msnyder@redhat.com>
1071
1072         * thread-db.c: Revert 2001-04-26 change for debugging output.
1073         * lin-lwp.c: Ditto.
1074         * lin-lwp.c: Add set/show debug lin-lwp command.  Use this
1075         command to turn extra debugging output on / off.
1076
1077 2001-04-30  Eli Zaretskii  <eliz@is.elta.co.il>
1078
1079         * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
1080         (top-level): #include filenames.h.
1081
1082         * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
1083         FILENAME_CMP, to DTRT on non-Posix platforms.
1084         (top-level): #include filenames.h.
1085
1086
1087 2001-04-27  Andrew Cagney  <ac131313@redhat.com>
1088
1089         * gdbtypes.c (check_stub_method): Always initialize ``p''.
1090
1091 2001-04-27  Andrew Cagney  <ac131313@redhat.com>
1092
1093         * configure.host: Delete romp host.
1094         * TODO: Update.
1095
1096 2001-04-27  Andrew Cagney  <ac131313@redhat.com>
1097
1098         * TODO: Updates to 5.1.  No more targets to obsolete.
1099
1100 2001-04-27  Don Howard  <dhoward@redhat.com>
1101
1102         (Changes from Kevin Buettner, with minor update by Don Howard.)
1103         
1104         * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
1105         typos in which hexadecimal constants were really intended to be
1106         binary constants.
1107         (i387_tag): Swap logic regarding zero vs non-zero exponents.
1108         * MAINTAINERS (Misc): Added myself to the write-after-approval
1109         list.
1110
1111 2001-04-26  Jim Blandy  <jimb@redhat.com>
1112
1113         (Changes from Daniel Berlin, with revisions by Jim Blandy.)
1114         
1115         Abstract out operations specific to particular C++ ABI's, and
1116         invoke them through a function table.  This removes the C++ ABI
1117         dependencies scattered throughout the code, and allows us to
1118         cleanly add support for new C++ ABI's.
1119         * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
1120         * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
1121         jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
1122         #include "cp-abi.h".  These files all use functions now declared
1123         there.
1124         * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
1125         Deleted.  These services are now provided by functions declared in
1126         cp-abi.h.
1127         * value.h (value_rtti_type, value_virtual_fn_field): Same.
1128         * values.c (value_virtual_fn_field): Same, for this definition.
1129         * valops.c (value_rtti_type): Same.     
1130         * c-typeprint.c (c_type_print_base): Use the functions from
1131         "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
1132         tests.
1133         * dbxread.c (record_minimal_symbol): Same.
1134         * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
1135         virtual_base_index_skip_primaries): Same.
1136         * jv-typeprint.c (java_type_print_base): Same.
1137         * linespec.c (find_methods, decode_line_1): Same.
1138         * symtab.c (gdb_mangle_name): Same.
1139         * Makefile.in (SFILES): Add the new .c files mentioned above.
1140         (cp_abi_h): New variable.
1141         (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
1142         (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
1143         (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
1144         jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
1145         dependency on $(cp_abi_h).
1146
1147 2001-04-26  Michael Snyder  <msnyder@redhat.com>
1148
1149         * thread-db.c (_initialize_thread_db): Add set/show command
1150         "debug-linux-threads" for debugging output.
1151         * lin-lwp.c (various): Use global "debug_linux_threads to 
1152         turn on extra debugging output.
1153         * lin-lwp.c: Minor cleanups in comments.
1154         * target.c (normal_pid_to_str): Get rid of an ancient hack.
1155         * remote.c (remote_pid_to_str): New function for remote target.
1156
1157 2001-04-24  Jim Blandy  <jimb@redhat.com>
1158
1159         * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
1160         qualifier on C++ references; all references are innately const.
1161
1162 2001-04-20  Mark Kettenis  <kettenis@gnu.org>
1163
1164         * event-top.h: Fix formatting.
1165
1166 2001-04-17  Andrew Cagney  <ac131313@redhat.com>
1167
1168         * source.c (openp): Obsolete #ifdef MPW code.
1169         (open_source_file): Ditto.
1170         * event-top.c (display_gdb_prompt): Ditto.
1171         * utils.c (query): Ditto.
1172         (init_page_info): Ditto.
1173         (init_page_info): Delete #ifndef MPW.
1174         * top.c (gdb_readline): Ditto.
1175         * mac-xdep.c: Obsolete.
1176         * mac-gdb.r: Obsolete.
1177         * config/powerpc/xm-mpw.h: Obsolete.
1178         * config/xm-mpw.h: Obsolete.
1179         * mpw-make.sed: Obsolete.
1180         * mpw-config.in: Obsolete.
1181         * TODO: Update
1182         * NEWS: Update
1183
1184 2001-04-19  Mark Kettenis  <kettenis@gnu.org>
1185
1186         * i386-tdep.c (i386_frameless_function_invocation): New function.
1187         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
1188         in terms of i386_frameless_function_invocation.  Adjust comment.
1189         (i386_frameless_function_invocation): New prototype.
1190
1191 2001-04-18  Martin M. Hunt  <hunt@redhat.com>
1192
1193         * top.c (gdb_init): Don't call cli_out_new() to
1194         create global uiout if init_ui_hook is set.  uiout will
1195         have to be initialized there.
1196
1197 2001-04-18  Andrew Cagney  <ac131313@redhat.com>
1198
1199         * arch-utils.c: Include "regcache.h".
1200
1201 2001-04-18  Mark Kettenis  <kettenis@gnu.org>
1202
1203         * i386-tdep.c (i386_saved_pc_after_call): New function.
1204         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
1205         of i386_saved_pc_after_call.
1206         (i386_saved_pc_after_call): New prototype.
1207
1208 2001-04-17  Michael Snyder  <msnyder@redhat.com>
1209
1210         * i386-nat.c: Fix typo in comment.
1211         * solib.c (no_shared_libraries): New function.  Discard all symbols
1212         from shared libraries.
1213         (_initialize_solib): Add command "nosharedlibrary" as complement
1214         to the command "sharedlibrary".  Unloads symbols for all solibs.
1215
1216 2001-04-16  Andrew Cagney  <ac131313@redhat.com>
1217
1218         * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
1219         * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
1220         (m68*-est-*, m68*-sony-*, m68*-isi-*):
1221         * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
1222         * config/m68k/xm-news.h: Obsolete.
1223         * config/m68k/tm-news.h: 
1224         * config/m68k/xm-news1000.h: Obsolete.
1225         * config/m68k/news.mh: Obsolete.
1226         * config/m68k/news.mt: Obsolete.
1227         * config/m68k/nm-news.h: Obsolete.
1228         * config/m68k/news1000.mh: Obsolete.
1229         * news-xdep.c: Obsolete.
1230         * Makefile.in (isi-xdep.o): Obsolete.
1231         (ALLDEPFILES): Delete isi-xdep.c.
1232         (tm-isi.h): Obsolete.
1233         * m68k-tdep.c (altos_skip_prologue): Update comments.
1234         (isi_skip_prologue): Obsolete.
1235         * isi-xdep.c: Obsolete.
1236         * config/m68k/xm-isi.h: Obsolete.
1237         * config/m68k/isi.mh: Obsolete.
1238         * config/m68k/tm-isi.h: Obsolete.
1239         * config/m68k/isi.mt: Obsolete.
1240
1241         * TODO: Update.
1242         * NEWS: Update.
1243
1244 2001-04-17  Michael Snyder  <msnyder@redhat.com>
1245         
1246         * remote.c (remote_open_1): On opening the remote target, activate
1247         the solib_create_inferior_hook, so that it can detect when the
1248         target loads shared libraries.
1249         (remote_async_open_1): Ditto.
1250
1251 2001-04-17  Michael Snyder  <msnyder@redhat.com>
1252         
1253         * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
1254         * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
1255         * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
1256         * testsuite/gdb.trace/infotrace.exp: Ditto.
1257         * testsuite/gdb.trace/passcount.exp: Ditto.
1258         * testsuite/gdb.trace/while-stepping.exp: Ditto.
1259
1260 2001-04-17  Michael Snyder  <msnyder@redhat.com>
1261
1262         * thread-db.c (check_thread_signals): When looping over all
1263         signals, ignore signal zero.
1264         (disable_thread_signals): Ditto.
1265
1266 2001-04-17  Eirik Fuller <eirik@netapp.com>
1267
1268         * thread.c (do_captured_thread_select): Allow the argument to the
1269         thread command to be an expression rather than a literal integer.
1270
1271 2001-04-17  Mark Kettenis  <kettenis@gnu.org>
1272
1273         * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
1274         read_memory_unsigned_integer instead of read_memory_integer.
1275
1276 2001-04-16  Kevin Buettner  <kevinb@redhat.com>
1277
1278         * solib-aix5.c (map_index_vs_section_name_okay): New function.
1279         (aix5_relocate_main_executable): Don't use file offsets for
1280         determining corresponding sections and map file entries.  Call
1281         map_index_vs_section_name_okay() to do this instead.
1282
1283 2001-04-16  Kevin Buettner  <kevinb@redhat.com>
1284
1285         * procfs.c (open_with_retry): New function.
1286         (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
1287         (proc_get_LDT_entry): Call open_with_retry() instead of open().
1288
1289 2001-04-16  Kevin Buettner  <kevinb@redhat.com>
1290
1291         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
1292         comparison against TRAP_HWBKPT constant yet again to account
1293         for the various values used by different kernel versions.
1294
1295 2001-04-16  Daniel Berlin  <dan@cgsoftware.com>
1296
1297         * demangle.c (_initialize_demangler): Use xcalloc on the
1298         demangling_style_names, and make it a null terminated array of
1299         names, to avoid a crash.
1300
1301 2001-04-16  Mark Kettenis  <kettenis@gnu.org>
1302
1303         * i386-tdep.c (i386_frame_chain): New function.
1304         * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
1305         i386_frame_chain.
1306         (i386_frame_chain): New prototype.
1307
1308 2001-04-14  J.T. Conklin  <jtc@redback.com>
1309         
1310         * target.h (target_ops): Removed to_core_file_to_sym_file vector
1311         function.
1312         * corelow.c (core_ops): Updated for above change.
1313         * gnu-nat.c (core_ops): Likewise.
1314         * inftarg.c (child_ops): Likewise.
1315         * monitor.c (monitor_ops): Likewise.
1316         * ppc-bdm.c (bdm_ppc_ops): Likewise.
1317         * remote-adapt.c (adapt_ops): Likewise.
1318         * remote-bug.c (bug_ops): Likewise.
1319         * remote-e7000.c (e7000_ops): Likewise.
1320         * remote-eb.c (eb_ops): Likewise.
1321         * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
1322         * remote-mm.c (mm_ops): Likewise.
1323         * remote-nindy.c (nindy_ops): Likewise.
1324         * remote-nrom.c (nrom_ops): Likewise.
1325         * remote-os9k.c (rombug_ops): Likewise.
1326         * remote-rdp.c (remote_rdp_ops): Likewise.
1327         * remote-sim.c (gdbsim_ops): Likewise.
1328         * remote-st.c (st2000_ops): Likewise.
1329         * v850ice.c (v850ice_ops): Likewise.
1330         * target.c (cleanup_target): Likewise
1331         (update_current_target): Likewise.
1332         (setup_target_debug): Likewise
1333         (debug_to_core_file_to_sym_file): Removed.
1334
1335         * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
1336         sets symbol file from information obtained from the core file.
1337         * corelow.c (core_file_to_sym_file): Removed.
1338         
1339 2001-04-13  Fernando Nasser  <fnasser@redhat.com>
1340
1341         From  Adam Mirowski  <Adam.Mirowski@Sun.COM>
1342         Fixed Insight on Solaris. It was not possible to debug a process
1343         because of EINTR "errors".
1344         * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
1345         with EINTR, retry the call.
1346
1347 2001-04-12  Kevin Buettner  <kevinb@redhat.com>
1348
1349         * solib-aix5.c (enum maptype): Delete.
1350         (struct lm_info): Add new member ``nmappings''.  Make ``mapping''
1351         member a pointer instead of a statically sized array.
1352         (build_so_list_from_mapfile): Dynamically allocate ``mapping''
1353         array.
1354         (aix5_relocate_main_executable, aix5_relocate_section_addresses,
1355         aix5_find_global_pointer): Search for correct mapping to use
1356         based on file offset instead of knowledge of whether the section
1357         is read-only or read/write.
1358         (aix5_find_gate_addresses): Use the first mapping instead of
1359         the (now defunct) MT_READONLY mapping.
1360
1361 2001-04-12  Nicholas Duffek  <nsd@redhat.com>
1362
1363         * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
1364         "@".
1365
1366 2001-04-12  Kevin Buettner  <kevinb@redhat.com>
1367
1368         * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
1369
1370 2001-04-09  Andrew Cagney  <ac131313@redhat.com>
1371
1372         Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
1373         * config/i386/sun386.mh: Obsolete.
1374         * config/i386/sun386.mt: Obsolete.
1375         * config/i386/xm-sun386.h: Obsolete.
1376         * config/i386/tm-sun386.h: Obsolete.
1377         * config/i386/nm-sun386.h: Obsolete.
1378         * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
1379         (sun386-nat.o): Target is obsolete.
1380         * sun386-nat.c: Obsolete.
1381         * configure.tgt (i[3456]86-*-sunos*): Obsolete.
1382         * configure.host (i[3456]86-*-sunos*): Obsolete.
1383         * NEWS: Update.
1384         * TODO: Update.
1385
1386 2001-04-10  J.T. Conklin  <jtc@redback.com>
1387
1388         * maint.c: Fix typo in comment.
1389
1390 2001-04-09  Keith Seitz  <keiths@cygnus.com>
1391
1392         * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
1393
1394 2001-04-08  Kevin Buettner  <kevinb@redhat.com>
1395
1396         * fork-child.c (fork_inferior, clone_and_follow_inferior): 
1397         Document fact that apparent call to vfork() might actually be
1398         a call to fork() instead.
1399         * ser-pipe.c (pipe_open): Likewise.
1400
1401 2001-04-08  Kevin Buettner  <kevinb@redhat.com>
1402
1403         * printcmd.c (print_frame_args): Use a cleanup to invoke
1404         ui_out_list_end() so that the list count nesting flag will
1405         be decremented properly when an error occurs.
1406         * stack.c (print_frame): Likewise.
1407
1408 2001-04-06  J.T. Conklin  <jtc@redback.com>
1409
1410         * dcache.c (dcache_write_line): Fixed bugs where cache line was
1411         not written to target correctly.
1412
1413         * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit 
1414         void return value;
1415         * gdbserver/low-nbsd.c: Likewise.
1416         * gdbserver/low-sparc.c: Likewise.
1417         * gdbserver/low-sun3.c: Likewise.
1418
1419 2001-04-06  Geoffrey Keating  <geoffk@redhat.com>
1420
1421         * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
1422         (PTRACE_DETACH): Don't define.
1423
1424 2001-04-06  David Smith  <dsmith@redhat.com>
1425
1426         * arch-utils.c (default_prepare_to_proceed)
1427         (generic_prepare_to_proceed): Added new functions.
1428         * arch-utils.h: New function declarations for
1429         default_prepare_to_proceed() and generic_prepare_to_proceed().
1430         * gdbarch.sh: Added PREPARE_TO_PROCEED.
1431         * gdbarch.c: Regenerated.
1432         * gdbarch.h: Regenerated.
1433         * inferior.h: Added get_last_target_status() declaration.
1434         * infrun.c (get_last_target_status): Added new function.
1435         (handle_inferior_event): Saves last pid and waitstatus, which will
1436         get returned by get_last_target_status(). 
1437
1438         * hppa-tdep.c (prepare_to_proceed):  Added comment stating that
1439         prepare_to_proceed() is potentially redundant since
1440         default_prepare_to_proceed() has been added.
1441         * linux-thread.c (prepare_to_proceed): Ditto.
1442         * lin-lwp.c (prepare_to_proceed): Ditto.
1443         * m3-nat.c (prepare_to_proceed): Ditto.
1444         
1445 2001-04-05  Andrew Cagney  <ac131313@redhat.com>
1446
1447         Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
1448         and powerpc-*-netware* target.
1449         * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
1450         Obsolete.
1451         * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
1452         (powerpcle-*-solaris*): Obsolete.
1453         * config/powerpc/tm-cygwin.h: Obsolete.
1454         * config/powerpc/cygwin.mt: Obsolete.
1455         * config/powerpc/xm-cygwin.h: Obsolete.
1456         * config/powerpc/cygwin.mh: Obsolete.
1457         * config/powerpc/nm-solaris.h: Obsolete.
1458         * config/powerpc/xm-solaris.h: Obsolete.
1459         * config/powerpc/tm-solaris.h: Obsolete.
1460         * config/powerpc/solaris.mt: Obsolete.
1461         * config/powerpc/tm-ppc-nw.h: Obsolete.
1462         * config/powerpc/ppc-nw.mt: Obsolete.
1463         * TODO: Update.
1464         * NEWS: Update.
1465
1466 2001-04-06  Fernando Nasser  <fnasser@redhat.com>
1467
1468         * buildsym.c (record_line): Turn off unused addr bits.
1469
1470 2001-04-06  Fernando Nasser  <fnasser@redhat.com>
1471
1472         From David Deephanphongs <deephan@telocity.com>
1473         * inferior.h:   Fix declarations of get_inferior_args and 
1474         set_inferior_args, which were missing the trailing 's'.
1475
1476 2001-04-05  Jeff Holcomb  <jeffh@redhat.com>
1477
1478         * monitor.c (monitor_supply_register): Only report an error if we
1479         don't get a valid value.
1480
1481 2001-04-05  Eli Zaretskii  <eliz@is.elta.co.il>
1482
1483         * README: Don't mention gdba.el.
1484
1485 2001-04-05  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1486
1487         From  Jimmy Guo  <guo@cup.hp.com>
1488         * top.c (init_main): set prompt if annotation_level>1,
1489         this is necessary when annotation_level is set to 2 via
1490         --annotate=2 command line option.
1491
1492 2001-04-04  Andrew Cagney  <ac131313@redhat.com>
1493
1494         Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
1495         * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
1496         * configure.host (a29k-*-*): Obsolete.
1497         * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
1498         ultra3-xdep.c.
1499         (ultra3-nat.o, ultra3-xdep.o): Obsolete.
1500         * config/a29k/tm-ultra3.h: Obsolete.
1501         * config/a29k/ultra3.mt: Obsolete.
1502         * config/a29k/ultra3.mh: Obsolete.
1503         * config/a29k/nm-ultra3.h: Obsolete.
1504         * config/a29k/xm-ultra3.h: Obsolete.
1505         * ultra3-xdep.c: Obsolete.
1506         * ultra3-nat.c: Obsolete.
1507         * config/a29k/a29k-kern.mt: Obsolete.
1508         * NEWS: Update.
1509         * TODO: Update.
1510
1511 Wed Apr  4 21:48:42 2001  Christopher Faylor <cgf@cygnus.com>
1512
1513         * main.c: Remove windows.h use.
1514         (gdbtk_test): Use PATH_MAX for home var calculation.
1515         * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
1516         Win32 in colon test.
1517         * ser-tcp.c: Use modern __CYGWIN__ conditional.
1518         * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
1519         (openp): Ditto.
1520         * symfile.c (symfile_bfd_open): Ditto.
1521
1522 2001-04-04  Martin M. Hunt  <hunt@redhat.com>
1523
1524         * main.c (captured_main): For GDBtk, don't use tui_fileopen().
1525         Handle all stream setup in gdbtk_init
1526
1527 2001-04-04  Mark Kettenis  <kettenis@gnu.org>
1528
1529         * i386-tdep.c (i386_extract_return_value): Don't return the return
1530         value of a void function.
1531         (i386_store_return_value): Likewise.
1532
1533 2001-04-03  Andrew Cagney  <ac131313@redhat.com>
1534
1535         Obsolete w65-*-* target.
1536         * configure.tgt (w65-*-*): Obsolete.
1537         * config/w65/w65.mt: Obsolete.
1538         * config/w65/tm-w65.h: Obsolete.
1539         * w65-tdep.c: Obsolete.
1540         * NEWS: Update.  Fix TiC80 description.
1541         * TODO: Update.
1542
1543 2001-04-03  Andrew Cagney  <ac131313@redhat.com>
1544
1545         Obsolete tic80-*-* target.
1546         * configure.tgt (tic80-*-*): Obsolete.
1547         * config/tic80/tic80.mt: Obsolete.
1548         * config/tic80/tm-tic80.h: Obsolete.
1549         * tic80-tdep.c: Obsolete.
1550         * TODO: Update
1551         * NEWS: Update.
1552
1553 2001-04-02  J.T. Conklin  <jtc@redback.com>
1554
1555         * remote-mips.c (S_IROTH): Moved definition from here.
1556         * gdb_stat.h (S_IROTH): to here.
1557
1558         * remote.c (remote_protocol_e, remote_protocol_E): Define.
1559         (set_remote_protocol_e_packet_cmd)
1560         (set_remote_protocol_E_packet_cmd)
1561         (show_remote_protocol_e_packet_command)
1562         (show_remote_protocol_E_packet_command): New functions.
1563         (init_all_packet_configs): Initialize remote_protocol_e and
1564         remote_protocol_E.
1565         (remote_resume, remote_async_resume): Support e/E command
1566         packets.
1567         (show_remote_cmd): Show state of remote_protocol_e and 
1568         remote_protocol_E.
1569         (_initialize_remote): Add "set remote step-over-range-packet" 
1570         and "set remote step-over-range-w-signal-packet" to CLI.
1571
1572 2001-04-01  Andrew Cagney  <ac131313@redhat.com>
1573
1574         Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
1575         ns32k-utek-*.
1576         * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
1577         (umax-xdep.o, ns32km3-nat.o): Obsolete.
1578         * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
1579         Obsolete.
1580         * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
1581         Obsolete.
1582         * config/ns32k/merlin.mh: Obsolete.
1583         * config/ns32k/merlin.mt: Obsolete.
1584         * config/ns32k/xm-merlin.h: Obsolete.
1585         * config/ns32k/tm-merlin.h: Obsolete.
1586         * config/ns32k/nm-umax.h: Obsolete.
1587         * config/ns32k/umax.mh: Obsolete.
1588         * config/ns32k/umax.mt: Obsolete.
1589         * config/ns32k/xm-umax.h: Obsolete.
1590         * umax-xdep.c: Obsolete.
1591         * config/ns32k/ns32km3.mh: Obsolete.
1592         * config/ns32k/ns32km3.mt: Obsolete.
1593         * config/ns32k/tm-ns32km3.h: Obsolete.
1594         * config/ns32k/xm-ns32km3.h: Obsolete.
1595         * ns32km3-nat.c: Obsolete.
1596         * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
1597         (merlin_frame_num_args): Ditto.
1598         * NEWS: Update.
1599         * TODO: Update.
1600
1601 2001-04-02  Eli Zaretskii  <eliz@is.elta.co.il>
1602
1603         * config/djgpp/fnchange.lst: Tweak due to
1604         expect/example/chesslib.c.
1605
1606 2001-04-02  Kevin Buettner  <kevinb@redhat.com>
1607
1608         * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
1609         unsigned int to unsigned long.  Also, fix format string.
1610         (pop_frame):  Fix PC_IN_CALL_DUMMY() call so that it doesn't
1611         use an undeclared variable.  Also, delete declaration and
1612         initialization of ``fp'' because it is otherwise unused.
1613         * remote-bug.c (sleep): Delete declaration.
1614         (bug_store_register, bug_write_memory, bug_read_memory)
1615         (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
1616         format statements and cast certain sprintf() arguments to
1617         eliminate warnings.
1618         (bug_load): Likewise for call to printf_filtered().
1619         * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
1620         assignment to ``pc''.  The necessary assignment is done in
1621         hand_function_call() after the invocation of FIX_CALL_DUMMY().
1622
1623 2001-03-20  Daniel Berlin  <dberlin@redhat.com>
1624         
1625         * symtab.c (completion_list_add_name): Remove duplicate string checks,
1626         readline already does this, and it's much faster at it, too.
1627
1628 2001-04-01  Eli Zaretskii  <eliz@is.elta.co.il>
1629
1630         * go32-nat.c: Minor tweaks, to pacify the ari script.
1631
1632 2001-04-01  Mark Kettenis  <kettenis@gnu.org>
1633
1634         * i386-tdep.c (i386_extract_struct_value_address): New function.
1635         * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
1636         in terms of i386_extract_struct_value_address.
1637         (i386_extract_struct_value_address): New prototype.
1638
1639         * i386-linux-nat.c (i386_linux_dr_get): Change type of return
1640         value to `unsigned long'.  Change type of `value' to `unsigned
1641         long'.
1642         (i386_linux_dr_set): Change type of second argument to `unsigned
1643         long'.
1644         (i386_linux_dr_set_control): Change type of first argument to
1645         `unsigned long'.
1646         (i386_linux_dr_get_status): Change type of return value to
1647         unsigned long.
1648         * config/i386/nm-linux.h (i386_linux_dr_set_control,
1649         i386_linux_dr_get_status): Adjust prototypes accordingly. 
1650
1651 2001-03-31  Kevin Buettner  <kevinb@redhat.com>
1652
1653         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
1654         TRAP_HWBKPT constant to match that in the kernel headers for
1655         Linux/IA-64.
1656
1657 2001-03-31  Mark Kettenis  <kettenis@gnu.org>
1658
1659         * i386bsd-nat.c: Include "gdb_assert.h".
1660         [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
1661         already defined.
1662         [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
1663         i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
1664         i386bsd_dr_get_status): New functions.
1665         * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
1666         (I386_USE_GENERIC_WATCHPOINTS): Define.
1667         Include "i386/nm-i386.h".
1668         (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
1669         I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
1670         (i386bsd_dr_set_control, i386bsd_dr_set_addr,
1671         i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
1672         * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
1673         * configure.in: Cleanup a few comments.  Check for PT_GETDBREGS
1674         ptrace request.
1675         * config.in, configure: Regenerate.
1676
1677         * i386-nat.c (i386_insert_aligned_watchpoint): Set address
1678         register before enabling it by setting the control register.
1679         (i386_remove_aligned_watchpoint): Reset address register after
1680         disabling it by setting the control register.
1681
1682         * i386-tdep.c (i386_extract_return_value): If the type of the
1683         return value is TYPE_STRUCT and the number of fields is one, call
1684         ourselves with TYPE set tp the type of the first field.
1685         (i386_store_return_value): Likewise.
1686         This fixes a problem with returning structs consisting of a single
1687         `float' or `double' on *BSD.
1688
1689 2001-03-30  Mark Kettenis  <kettenis@gnu.org>
1690
1691         * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
1692         we're absolutely sure we're going to resume it.
1693
1694         * thread-db.c (check_event): Don't report an error if we encounter
1695         a thread creation event for a thread that's already in the thread
1696         list, since that may legitemately happen.  Instead only call
1697         attach_thread if it's not already in the thread list.
1698
1699 2001-03-28  Andrew Cagney  <ac131313@redhat.com>
1700
1701         * config/pa/xm-hppah.h (malloc): Really delete declaration
1702         (MALLOC_INCOMPATIBLE): Really delete macro.
1703         * cli/cli-cmds.c (apropos_command): Use xcalloc.
1704
1705 2001-03-28  Andrew Cagney  <ac131313@redhat.com>
1706
1707         * configure.in (build_warnings): Add -Wuninitialized.
1708         * configure: Regenerate.
1709
1710         * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
1711         * sparc-tdep.c (sparc64_push_arguments): Add default case to
1712         switch.
1713         * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
1714         expression with if statement.
1715         * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
1716         ``stack_size''.
1717         * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
1718         (mips_dump_tdep): Fix setting of ef_mips_arch.
1719         * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
1720         * dsrec.c (make_srec): Always initialize ``binbuf''.
1721         * monitor.c (monitor_read_memory_single): Do not pass an
1722         uninitialized buffer to monitor_error. Make ``i'' more local.
1723
1724 2001-03-28  Andrew Cagney  <ac131313@redhat.com>
1725
1726         * MAINTAINERS: Change ns32k target to ,-Werror.
1727
1728         * ns32k-tdep.c: Include "gdbcore.h"
1729         (flip_bytes): Change first argument to void*. Add forward
1730         declaration.
1731         (sign_extend): Add declaration.
1732         (merlin_frame_num_args): Add final else clause to if-else chain.
1733         (umax_frame_num_args): Ditto.
1734         * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
1735         (flip_bytes): Ditto.
1736
1737 2001-03-28  Mark Kettenis  <kettenis@gnu.org>
1738
1739         * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
1740         config/i386/nm-linux.h (including comment).
1741         (i386_linux_frame_chain): New function implementing guts of the
1742         former FRAME_CHAIN macro, but using read_memory_unsigned_integer
1743         instead of read_memory_integer.
1744         (i386_linux_frame_saved_pc): Removed doc pointing to
1745         i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
1746         now lives in this file.
1747         * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
1748         i386-linux-tdep.c (including comment).
1749         (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
1750         (i386_linux_frame_chain): New prototype.
1751
1752         * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
1753         make it work again.
1754         (NUM_FREGS): Redefine to 0.
1755         (NUM_REGS): Redefine as NUM_GREGS.
1756         (i386_register_byte, i386_register_raw_size): Update from
1757         i386-tdep.c.  Add comment about their origin.
1758         (regmap, register_u_addr): Take these from i386-linux-nat.c.
1759         (i386_register_u_addr): Removed.
1760
1761         * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
1762         fails instead of calling perror_with_name.  This should fix
1763         debugging remote i386 targets with a native Linux/x86 GDB.  Add
1764         FIXME for this hack.
1765
1766 2001-03-19  J.T. Conklin  <jtc@redback.com>
1767
1768         * arch-utils.c (#include "gdbthread.h"): Removed.
1769         (#include "symfile.h"): Removed. 
1770         (XMALLOC): Removed unused macro.
1771         * breakpoint.c (tbreak_command): Removed local declaration.
1772         (awatch_command, do_enable_breakpoint, set_breakpoint_count):
1773         Remove duplicate declarations.
1774         (bpstat_should_step, bpstat_have_active_hw_watchpoints)
1775         (remove_solib_event_breakpoints): Fix indentation botch.
1776         * c-typeprint.c (#include "command.h"): Removed.
1777         (#include "gdbcmd.h"): Removed.
1778         * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
1779         (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
1780         Removed duplicate declarations.
1781         * ch-typeprint.c (#include "command.h"): Removed.
1782         (#include "gdbcmd.h"): Removed.
1783         * corefile.c (#include "frame.h"): Removed
1784         (#include "symfile.h"): Removed.
1785         (#include "language.h"): Removed.
1786         * dbxread.c (#include "command.h"): Removed.
1787         * environ.c (#include "gdbcore.h"): Removed.
1788         * event-loop.c (#include "top.h"): Removed.
1789         * f-typeprint.c (#include "command.h"): Removed.
1790         (#include "gdbcmd.h"): Removed.
1791         (#include "language.h"): Removed.
1792         (#include "typeprint.h"): Removed.
1793         (#include "frame.h"): Removed.
1794         * gdbtypes.h (print_type_scalar): Removed declaration.
1795         * infcmd.c (#include "completer.h"): Removed.
1796         * language.c (#include "frame.h"): Removed.
1797         * m2-typeprint.c (#include "command.h"): Removed.
1798         (#include "gdbcmd.h"): Removed.
1799         (#include "language.h"): Removed.
1800         * m2-valprint.c (#include "valprint.h"): Removed.
1801         * p-typeprint.c (#include "command.h"): Removed.
1802         (#include "gdbcmd.h"): Removed.
1803         * p-valprint.c (#include "typeprint.h"): Removed.
1804         * parse.c (#include "linespec.h"): Removed.
1805         * regcache.c (#include "frame.h"): Removed.
1806         * remote.c (#include "frame.h"): Removed.
1807         (getpkt_sane): Make static.
1808         * source.c (#include "completer.h"): Removed.
1809         * stack.c (#include "symfile.h"): Removed.
1810         (#include "objfiles.h"): Removed.
1811         * symfile.c (#include "completer.h"): Removed.
1812         * tracepoint.c (#include "completer.h"): Removed.
1813         * values.c (#include "frame.h"): Removed.
1814         * varobj.c (#include "valprint.h"): Removed.
1815         * wrapper.c (#include "frame.h"): Removed.
1816         
1817         * memattr.c (create_mem_region): Removed unused variable.
1818         * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
1819
1820 2001-03-27  Nick Clifton  <nickc@redhat.com>
1821
1822         * remote-rdp.c (rdp_set_command_line): Add missing double quote.
1823
1824 2001-03-27  Kevin Buettner  <kevinb@redhat.com>
1825
1826         * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
1827         of free().
1828
1829 2001-03-27  Eli Zaretskii  <eliz@is.elta.co.il>
1830
1831         * TODO (Cleanups): Remove the item about converting docs to GFDL.
1832
1833 2001-03-26  Kevin Buettner  <kevinb@redhat.com>
1834
1835         * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
1836         type of ``bundle'' from unsigned char * to char *.
1837         (ia64_get_saved_register): Use alloca() to allocate register
1838         buffers.
1839
1840         * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
1841
1842 2001-03-26  Kevin Buettner  <kevinb@redhat.com>
1843
1844         * proc-utils.h (procfs_ctl_t): New typedef.
1845         * proc-api.c (write_with_trace): Change type of ``opcode'' from
1846         long to procfs_ctl_t.  Don't assume that the target has defined
1847         BREAKPOINT.  Handle case in which PCRESET is the same as PCUNSET.
1848         * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
1849         * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
1850         (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
1851         (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
1852         Conditionally define as appropriate for AIX/non-AIX systems.  Use
1853         these defines/typedefs as appropriate elsewhere in file.
1854         (struct procinfo): Change type of saved_sigset and saved_sighold
1855         from sigset_t to gdb_sigset_t.  Make saved_exitset and
1856         saved_entryset pointer variables.  Add two new fields, num_syscalls
1857         and syscall_names.
1858         (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
1859         (sysset_t_size, sysset_t_alloc): New functions.
1860         (load_syscalls, free_syscalls, find_syscall): New functions for
1861         platforms which define DYNAMIC_SYSCALLS.
1862         (create_procinfo): Call load_syscalls.
1863         (destroy_one_procinfo): Call free_syscalls.
1864         (GDBRESET): Don't define twice.
1865         (proc_modify_flag): Change type of operation code array `arg'
1866         from long to procfs_ctl_t.
1867         (proc_stop_process, proc_wait_for_stop, proc_run_process)
1868         (proc_set_traced_signals, proc_set_traced_faults)
1869         (proc_set_traced_sysentry, proc_set_traced_sysexit)
1870         (proc_set_held_signals, proc_clear_current_fault)
1871         (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
1872         (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
1873         (proc_set_traced_sysentry): Dynamically allocate variable sized
1874         struct gdb_proc_ctl_pcsentry.  Also, free it at function exit.
1875         (proc_set_traced_sysexit): Dynamically allocate variable
1876         sized struct gdb_proc_ctl_pcsexit.  Also, free it at
1877         function exit.
1878         (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
1879         for reading the sysset_t struct on AIX5.
1880         (procfs_debug_inferior): Don't assume that SYS_exit will be
1881         defined.  Add new code for finding certain syscalls on AIX5.
1882         (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
1883         (syscall_is_lwp_create): New functions.
1884         (procfs_wait): Restructured code which checks for certain
1885         system calls to use the new syscall_is_... functions.
1886         (procfs_notice_signals): Account for the fact that saved_entryset
1887         and saved_exitset in struct procinfo are now pointers.
1888
1889 2001-03-26  Kevin Buettner  <kevinb@redhat.com>
1890
1891         * symtab.c (find_pc_sect_line): Revise method used for finding
1892         the ending pc.
1893
1894 2001-03-26  Mark Kettenis  <kettenis@gnu.org>
1895
1896         * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
1897         i386_linux_sigtramp_saved_sp): Make static.
1898         (i386_linux_frame_saved_pc): New function based on the old
1899         FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
1900         of read_memory_integer.
1901         * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
1902         (i386_linux_sigtramp_saved_pc): Remove prototype.
1903         (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
1904         (i386_linux_frame_saved_pc): New prototype.
1905
1906 2001-03-26  Andrew Cagney  <ac131313@redhat.com>
1907
1908         * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
1909         * TODO (GDB 5.1 - Cleanups): Update.
1910
1911 2001-03-26  Andrew Cagney  <ac131313@redhat.com>
1912
1913         * fork-child.c (clone_and_follow_inferior): Delete #ifdef
1914         HAVE_VFORK.
1915
1916 2001-03-26  Mark Kettenis  <kettenis@gnu.org>
1917
1918         * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
1919
1920         * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
1921         functions.
1922         * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
1923         (STORE_STRUCT_RETURN): Redefine in terms of
1924         i386_store_struct_return.
1925         (i386_push_arguments, i386_store_struct_return): New prototypes.
1926         * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove.  It's
1927         definition was identical to the definition in "i386/tm-i386.h" so
1928         the new definition should suffice too.
1929
1930 2001-03-26  Eli Zaretskii  <eliz@is.elta.co.il>
1931
1932         * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
1933         definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
1934
1935         * config/djgpp/djconfig.sh: Add copyright notice.
1936
1937         * ser-go32.c (rawclock): Remove prototype; include time.h instead.
1938         (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
1939         (top level) <string.h>: Include gdb_string.h instead.
1940         (dos_noop, dos_raw, dos_noflush_set_tty_state) 
1941         (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
1942
1943         * go32-nat.c (go32_create_inferior): Move the declaration of
1944         `environ' to here from the top level.
1945         (top level) <_initialize_go32_nat>: Remove redundant prototype.
1946         <gdb_string.h>: Include it instead of string.h.
1947         (store_register): Call register_buffer instead of accessing
1948         registers[] directly.
1949         (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger) 
1950         (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
1951         the function names at the start of the line.
1952         (go32_set_dr): Throw internal_error if the argument is not a valid
1953         debug register number.
1954         (go32_open, go32_close, go32_attach, go32_detach, go32_resume) 
1955         (go32_wait, go32_xfer_memory, go32_files_info) 
1956         (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
1957
1958 2001-03-25  Jim Blandy  <jimb@redhat.com>
1959
1960         * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
1961
1962 2001-03-25  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1963
1964         From  Andrew Cagney  <ac131313@redhat.com>
1965
1966         * coffread.c: Include "gdb_assert.h".
1967         (coff_symtab_read): Cast the integer s_sclass to a long before
1968         casting it to a pointer.
1969
1970 2001-03-25  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
1971
1972         From  Andrew Cagney  <ac131313@redhat.com>
1973         
1974         * coffread.c (coff_symtab_read): Initialize
1975         ``fcn_first_line_addr''.  Check that the ``.bf'' always preceeds
1976         the ``.ef'' info.
1977         * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
1978
1979 2001-03-23  Andrew Cagney  <ac131313@redhat.com>
1980
1981         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
1982         GDB_MULTI_ARCH_PARTIAL from two.  SOFTWARE_SINGLE_STEP is not
1983         multi-arch.
1984
1985         * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
1986         * gdbarch.h, gdbarch.c: Re-generate.
1987
1988         * target.h (SOFTWARE_SINGLE_STEP_P)
1989         (SOFTWARE_SINGLE_STEP): Delete macro definitions.
1990
1991 2001-03-23  Andrew Cagney  <ac131313@redhat.com>
1992
1993         * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
1994         * gdbarch.h, gdbarch.c: Regenerate.
1995         
1996         * regcache.h (regcache_read, regcache_write): Declare.
1997         (registers, register_valid, register_buffer): Add note that these
1998         interfaces are deprecated.
1999         
2000         * regcache.c: Include "gdb_assert.h".
2001         (legacy_write_register_gen): Rename write_register_gen.
2002         (legacy_read_register_gen): Rename read_register_gen.
2003         (regcache_read, regcache_write): New function.
2004         (read_register_gen, write_register_gen): New function.
2005         (write_register): Simplify.  Use write_register_gen.
2006         (read_register): Ditto using read_register_gen.
2007         (read_signed_register): Ditto.
2008         (read_register_bytes): Ditto!!!!
2009         (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
2010         replaced by gdbarch_register_read.
2011
2012         * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
2013         deprecate.
2014
2015 2001-03-23  Jim Blandy  <jimb@redhat.com>
2016
2017         Fix from Dan Berlin:
2018
2019         * stabsread.c (read_cpp_abbrev): Properly construct the names of
2020         virtual function table pointer fields.
2021
2022 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
2023
2024         * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
2025         xmrealloc): Move existing declarations to the one place and
2026         re-order to be consistent.
2027         (xmcalloc, xmfree): Declare.
2028         (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
2029         declaration.
2030         
2031         * utils.c (size_t): Delete #ifdef defining size_t.
2032         (mmalloc, mrealloc, mcalloc, mfree): Re-order.
2033         (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
2034         corresponding malloc, realloc, calloc.
2035         (mfree): Call free directly.
2036         (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
2037         (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
2038         function bodies to here.
2039         (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
2040         
2041 2001-03-23  Andrew Cagney  <ac131313@redhat.com>
2042
2043         * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
2044         ``shell_file'' static locals.
2045
2046         * jv-lang.c (java_link_class_type): Initialize ``field'' and
2047         ``method''.
2048         
2049         * jv-valprint.c (java_value_print): Initialize ``next_element''.
2050
2051 2001-03-23  Mark Kettenis  <kettenis@gnu.org>
2052
2053         * config/i386/nm-i386.h: Fix formatting and change reference to
2054         i386-tdep.c to i386-nat.c.
2055
2056 2001-03-23  David Smith  <dsmith@redhat.com>
2057
2058         * configure.in: Corrected spelling errors.
2059         * configure: Regenerated.
2060
2061 2001-03-22  Andrew Cagney  <ac131313@redhat.com>
2062
2063         * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
2064
2065 2001-03-22  Andrew Cagney  <ac131313@redhat.com>
2066
2067         * Makefile.in (NTSSTART): Delete.
2068         (NTSOBS): Delete.
2069         (kdb): Delete target.
2070         * kdb-start.c, stuff.c: Mark as obsolete.
2071         * NEWS: Update.
2072
2073 2001-03-22  Andrew Cagney  <ac131313@redhat.com>
2074
2075         * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
2076         compiles using an ISO-C compiler.
2077         (MALLOC_INCOMPATIBLE): Ditto.
2078         * linespec.c (decode_line_1): Delete hack to work around
2079         HPPA_COMPILER_BUG.
2080
2081 2001-03-22  Andrew Cagney  <ac131313@redhat.com>
2082
2083         * exec.c (xfer_memory): Always initialize section.
2084         * infrun.c (normal_stop): Always initialize source_flag.
2085
2086 2001-03-22  Andrew Cagney  <ac131313@redhat.com>
2087
2088         * TODO (Remote Protocol Support): Review.  Add notes about ``!'',
2089         non-use of a continue address and typical use of ``q'' packet.
2090
2091 2001-03-22  Eli Zaretskii  <eliz@is.elta.co.il>
2092
2093         Make DJGPP use the new unified support for hardware
2094         breakpoints and watchpoints on x86 targets:
2095
2096         * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
2097         include nm-i386.h instead.
2098         (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
2099         (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
2100         (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
2101         (target_stopped_data_address, target_insert_watchpoint)
2102         (target_remove_watchpoint, target_insert_hw_breakpoint)
2103         (target_remove_hw_breakpoint): Don't define.
2104         (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
2105         (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
2106         (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
2107         functions from go32-nat.c.
2108
2109         * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
2110
2111         * go32-nat.c <top level>: Remove prototypes for watchpoint-
2112         related functions.  Remove definitions of watchpoint-related
2113         macros.
2114         (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
2115         private cleanup_dregs function.
2116         (cleanup_dregs, go32_insert_watchpoint)
2117         (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
2118         (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
2119         (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
2120         (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
2121         (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
2122
2123 2001-03-21  Kevin Buettner  <kevinb@redhat.com>
2124
2125         * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
2126         than two instead of generating an error.
2127         
2128 2001-03-21  Jim Blandy  <jimb@redhat.com>
2129
2130         * cp-valprint.c: Reformat to bring into line with GNU coding
2131         standards.
2132
2133 2001-03-21  Mark Kettenis  <kettenis@gnu.org>
2134
2135         Make Linux use the new unified support for hardware breakpoints
2136         and watchpoints on x86 targets.
2137         * i386-linux-nat.c: Doc fixes.  Include "gdb_assert.h".
2138         [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
2139         (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
2140         appropriate value if not already defined.
2141         (register_u_addr): New function.
2142         (kernel_u_size): New function.
2143         (i386_linux_dr_get, i386_linux_dr_set): New functions.
2144         (i386_linux_dr_set_control, i386_linux_dr_set_addr,
2145         i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
2146         * config/i386/nm-linux.h: Don't include "nm-i386v.h".
2147         (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
2148         (TARGET_HAS_HARDWARE_WATCHPOINTS,
2149         TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
2150         STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
2151         target_remove_watchpoint): Remove macros.
2152         (i386_stopped_by_watchpoint, i386_insert_watchpoint,
2153         i386_remove_watchpoint): Remove prototypes.
2154         (register_u_addr): New prototype.
2155         (REGISTER_U_ADDR): Define in terms of register_u_addr.
2156         (i386_linux_dr_set_control, i386_linux_dr_set_addr,
2157         i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
2158         (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
2159         I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
2160         * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
2161         i386-nat.o.
2162
2163 2001-03-21  Jim Blandy  <jimb@redhat.com>
2164
2165         Fix from Dan Berlin:
2166
2167         * linespec.c (find_methods): Whitespace differences aren't
2168         significant in *un*mangled method names.  Use strcmp_iw to compare
2169         them, not STREQ.
2170
2171 2001-03-21  Andrew Cagney  <ac131313@redhat.com>
2172
2173         * gdbarch.sh: Allow a non- multi-arch target to override a
2174         predicate.
2175         * gdbarch.h: Regenerate.
2176
2177 2001-03-21  Andrew Cagney  <ac131313@redhat.com>
2178
2179         * gdbarch.sh: Avoid use of ``!''.
2180
2181 2001-03-20  Andrew Cagney  <ac131313@redhat.com>
2182
2183         * target.h (enum target_signal): Move definition from here.
2184         * defs.h (enum target_signal): To here.
2185
2186         * config/arc/tm-arc.h (arc_software_single_step): Change type of
2187         first parameter to enum target_signal.
2188         * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
2189         * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
2190         * rs6000-tdep.c (rs6000_software_single_step): Update.
2191         
2192 2001-03-20  Andrew Cagney  <ac131313@redhat.com>
2193
2194         * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
2195         already defined.
2196         
2197         From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2198         * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
2199         or a reference ('a') can be in a pseudo register.
2200         * infcmd.c (do_registers_info): Must take into account the pseudo
2201         registers to print their value.
2202         (registers_info): Likewise.
2203         * stack.c (frame_info): Likewise.
2204         * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
2205
2206 2001-03-21  Eli Zaretskii  <eliz@is.elta.co.il>
2207
2208         Unified support for hardware breakpoints and watchpoints on
2209         x86 targets:
2210
2211         * config/i386/nm-i386.h: New file.
2212
2213         * config/i386/nm-i386.h: (i386_cleanup_dregs)
2214         (i386_insert_watchpoint, i386_remove_watchpoint)
2215         (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
2216         (i386_stopped_data_address, i386_insert_hw_breakpoint)
2217         (i386_remove_hw_breakpoint): Declare prototypes.
2218         [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2219         Define if not already defined.
2220         (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
2221         (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
2222         (target_insert_watchpoint, target_remove_watchpoint)
2223         (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
2224         to call the appropriate i386_* functions.
2225
2226         * i386-nat.c: New file.
2227
2228         * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
2229         (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
2230         (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
2231         (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
2232         (maint_show_dr): New variables.
2233         (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
2234         (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
2235         (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
2236         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
2237         (i386_stopped_data_address, i386_stopped_by_hwbp)
2238         (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
2239         functions.
2240         (_initialize_i386_nat): New function.
2241         [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
2242         `show-debug-regs', sets maint_show_dr to non-zero value and
2243         activates debugging print-outs in functions which insert, remove,
2244         and test watchpoints and hardware breakpoints.
2245
2246         * Makefile.in (i386-nat.o): New target.
2247         (ALLDEPFILES): Add i386-nat.o.
2248
2249 2001-03-21  Mark Kettenis  <kettenis@gnu.org>
2250
2251         * i386-tdep.c: Add back _initialize_i386_tdep prototype with
2252         appropriate comment.
2253
2254 2001-03-20  Kevin Buettner  <kevinb@redhat.com>
2255
2256         * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
2257         thread-db.o, and lin-lwp.o for thread support instead of
2258         linux-thread.o and lin-thread.o.
2259         * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
2260         (ATTACH_LWP): Define to use the following lin-lwp.c functions...
2261         (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
2262         (lin_lwp_attach_lwp): Declare.
2263
2264 2001-03-20  Jim Blandy  <jimb@redhat.com>
2265
2266         Fix from Dan Berlin:
2267         
2268         * Makefile.in: Clean up dependencies on ../include/demangle.h.
2269         (demangle_h): New variable.
2270         (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
2271
2272 2001-03-20  Andrew Cagney  <ac131313@redhat.com>
2273
2274         * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
2275         * breakpoint.c (bpstat_stop_status): Update.
2276         * infrun.c (handle_inferior_event): Ditto.
2277         * mips-tdep.c (mips_dump_tdep): Ditto.
2278         * infrun.c (resume): Ditto.
2279         * infptrace.c (child_resume): Ditto.
2280         * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2281         * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2282         * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2283         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2284         * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2285         * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2286         * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2287
2288 2001-03-20  Andrew Cagney  <ac131313@redhat.com>
2289
2290         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
2291         with internal_error.
2292
2293 2001-03-20  Jim Blandy  <jimb@redhat.com>
2294
2295         Fix from Dan Berlin:
2296         
2297         * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
2298         than asking for sym_class's type; that's circuitous.  Remove
2299         sym_class, since the last use of it is gone.
2300
2301 2001-03-20  Eli Zaretskii  <eliz@is.elta.co.il>
2302
2303         * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
2304         Correct the order of calls to ui_out_field_string and
2305         ui_out_list_begin when bs->old_val is NULL.
2306
2307 2001-03-19  Kevin Buettner  <kevinb@redhat.com>
2308
2309         * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
2310         * configure: Regenerate.
2311         * config.in: Regenerate.
2312         * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
2313
2314 2001-03-19  Kevin Buettner  <kevinb@redhat.com>
2315
2316         * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
2317         same line to avoid problems with Unixware 7's make when building
2318         a cross debugger.
2319
2320 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
2321
2322         * defs.h (malloc): Move declaration from here.
2323         * utils.c (malloc): To here.
2324         * config/pa/xm-hppah.h (malloc): Delete declaration.
2325
2326         * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
2327         * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
2328         (hpread_quick_traverse): Ditto.
2329         * infttrace.c (create_thread_info): Ditto.
2330         (kill_inferior): Ditto.
2331         * gnu-nat.c (make_inf): Ditto, and don't check return value.
2332         * procfs.c (proc_update_threads): Ditto.
2333         * valprint.c (print_decimal_chars): Ditto.
2334         * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
2335         malloc and sprintf.
2336         * remote-rdp.c (rdp_set_command_line): Ditto.
2337
2338 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
2339
2340         * defs.h (realloc): Move declaration from here.
2341         * utils.c (realloc): To here.
2342         * config/pa/xm-hppah.h (realloc): Delete declaration.
2343         * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
2344         * symfile.c (add_filename_language): Ditto.
2345         * event-loop.c (create_file_handler): Ditto.
2346
2347 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
2348
2349         * defs.h (free): Move declaration from here.
2350         * utils.c (free): To here.
2351         (xfree): Document as the only call to free().
2352         * config/pa/xm-hppah.h (free): Delete declaration.
2353
2354 2001-03-19  Kevin Buettner  <kevinb@redhat.com>
2355
2356         * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
2357         this list.
2358
2359 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
2360
2361         * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
2362         * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
2363         * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
2364
2365 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
2366
2367         * TODO: List known problems with TUI.
2368
2369 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
2370
2371         * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
2372         gdb.hp).
2373
2374 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
2375
2376         * remote.c (remote_cisco_section_offsets): Do not cast result from
2377         bfd_get_section_name.
2378         (compare_sections_command): Ditto.
2379         (remote_cisco_section_offsets): Make ``p'' a const pointer.
2380         (compare_sections_command): Ditto for ``sectname''.
2381
2382 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
2383
2384         From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
2385         * valops.c (hand_function_call): Simplify computation of the
2386         address of the pushed argument.
2387  
2388 2001-03-17  Andrew Cagney  <ac131313@redhat.com>
2389
2390         * p-exp.y (parse_number): Avoid shift overflow when ``long''.
2391         Code copied from c-exp.y.
2392
2393 2001-03-18  Kevin Buettner  <kevinb@redhat.com>
2394
2395         * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
2396         (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
2397         (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
2398         * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
2399         of the Solaris procfs testing section.  Instead, group with...
2400         (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
2401         (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
2402         (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
2403         * configure: Regenerate.
2404         * config.in: Regenerate.
2405
2406         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
2407         new configure macros to choose which (if any) code to
2408         compile in.  Added code to explicitly handle *BSD systems;
2409         these systems were previously handled only through macro
2410         redefinition.  Also, due to the way the autoconf tests are set
2411         up, this function will no longer return a non-zero value when
2412         GDB is configured as a cross debugger.  I.e, cross debuggers
2413         will no longer be able to "accidentally" get the host system's
2414         link map offsets.
2415
2416 2001-03-18  Kevin Buettner  <kevinb@redhat.com>
2417
2418         * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
2419         line to avoid build problem on NetBSD 1.4.
2420
2421 2001-03-17  Michael Chastain  <chastain@redhat.com>
2422
2423         * win32-nat.c (child_attach): check args for NULL before passing
2424         to strtoul.  This fixes PR gdb/43.
2425
2426 2001-03-17  Mark Kettenis  <kettenis@gnu.org>
2427
2428         * i387-nat.h: Doc Fix.
2429
2430         * i386-tdep.c: Fix formatting.
2431         (i386_get_frame_setup, i386_follow_jump, codestream_read,
2432         codestream_seek, codestream_fill, skip_trampoline_code,
2433         gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
2434         prototypoes.
2435
2436 2001-03-17  Mark Kettenis  <kettenis@gnu.org>
2437
2438         * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove.  It's
2439         no longer used.  Also remove associated FIXME.
2440
2441 2001-03-16  Andrew Cagney  <ac131313@redhat.com>
2442
2443         * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch.  Do
2444         not generate macro wrappers for multi-arch functions or
2445         predicates.
2446         (class_is_info_p, class_is_predicate_p): Update.
2447         (class_is_function_p, class_is_variable_p): Ditto.
2448         (class_is_multiarch_p): New class function.
2449
2450 2001-03-16  J.T. Conklin  <jtc@redback.com>
2451
2452         * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
2453         h8300_frame_args_address from frame_args_address.
2454         (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
2455         from frame_locals_address.
2456         (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
2457         from print_register_hook.
2458         (h8300_frame_args_address): Declare.
2459         (h8300_frame_find_saved_regs): Declare.
2460         (h8300_frame_locals_address): Declare.
2461         (h8300_frame_saved_pc): Declare.
2462         (h8300_pop_frame): Declare.
2463         (h8300_print_register_hook): Declare.
2464         * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
2465         (h8300_frame_args_address): Renamed from frame_args_address.
2466         (h8300_frame_locals_address): Renamed from frame_locals_address.
2467         (h8300_pop_frame): Renamed from pop_frame.
2468         (h8300_print_register_hook): Renamed from print_register_hook.
2469
2470 2001-03-16  Kevin Buettner  <kevinb@redhat.com>
2471
2472         * solib-svr4.c (bfd_lookup_symbol):  Change type of
2473         ``storage_needed'' from unsigned int to long in order to
2474         match return type of bfd_get_symtab_upper_bound() and
2475         bfd_get_dynamic_symtab_upper_bound().
2476         * solib-aix5.c (bfd_lookup_symbol): Likewise.  Also, eliminate
2477         REASONABLE_LIMIT hack which had been added to work around this
2478         problem.
2479
2480 2001-03-15  Kevin Buettner  <kevinb@redhat.com>
2481
2482         * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
2483         (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
2484         to free() with calls to xfree().
2485         (bfd_lookup_symbol): Eliminate use of PTR.
2486         (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
2487
2488 2001-03-15  Martin Hunt  <hunt@redhat.com>
2489
2490         * linespec.c (decode_line_1): Remove trailing quote
2491         when parsing double quotes.
2492
2493 2001-03-15  Kevin Buettner  <kevinb@redhat.com>
2494
2495         * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
2496         (libthread_stub, libthread_init): Pass NULL for the mem_attrib
2497         argument in the to_xfer_memory calls.
2498
2499 2001-03-15  Andrew Cagney  <ac131313@redhat.com>
2500
2501         * MAINTAINERS: Fix typo - w65 not w64.  Still doesn't build.
2502         * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
2503
2504 2001-03-15  Andrew Cagney  <ac131313@redhat.com>
2505
2506         * wince.c (child_xfer_memory): Add attrib parameter.
2507         * symm-nat.c (child_xfer_memory): Ditto.
2508         * mac-nat.c (child_xfer_memory): Ditto.
2509         * infttrace.c (child_xfer_memory): Ditto.
2510         * procfs.c (procfs_xfer_memory): Ditto.
2511         * lin-thread.c (thread_db_xfer_memory): Ditto.
2512         * gnu-nat.c (gnu_xfer_memory): Ditto.
2513
2514 2001-03-14  Andrew Cagney  <ac131313@redhat.com>
2515
2516         * NEWS: Mention that Harris/CXUX m88k is obsolete.
2517
2518 2001-03-13  Andrew Cagney  <ac131313@redhat.com>
2519
2520         * config/mips/tm-mips.h: Include "regcache.h" for macros refering
2521         to regcache functions.
2522         * config/m68k/tm-m68k.h: Ditto.
2523         * config/i386/tm-i386v.h: Ditto.
2524         * config/mcore/tm-mcore.h: Ditto.
2525         * config/m88k/tm-m88k.h: Ditto.
2526         * config/m68k/tm-news.h: Ditto.
2527         * config/m68k/tm-linux.h: Ditto.
2528         * config/m68k/tm-delta68.h: Ditto.
2529         * config/m68k/nm-sun3.h: Ditto.
2530         * config/m32r/tm-m32r.h: Ditto.
2531         * config/i386/tm-symmetry.h: Ditto.
2532         * config/i386/tm-sun386.h: Ditto.
2533         * config/i386/tm-i386.h: Ditto.
2534         * config/i386/nm-symmetry.h: Ditto.
2535         * config/i386/nm-sun386.h: Ditto.
2536         * config/i386/nm-ptx4.h: Ditto.
2537         * config/i386/nm-i386mach.h: Ditto.
2538         * config/h8500/tm-h8500.h: Ditto.
2539         * config/h8300/tm-h8300.h: Ditto.
2540         * config/fr30/tm-fr30.h: Ditto.
2541         * config/d30v/tm-d30v.h: Ditto.
2542         * config/arm/tm-arm.h: Ditto.
2543         * config/arc/tm-arc.h: Ditto.
2544         * config/alpha/tm-alpha.h: Ditto.
2545         * config/a29k/tm-vx29k.h: Ditto.
2546         * config/a29k/tm-a29k.h: Ditto.
2547         * config/w65/tm-w65.h: Ditto.
2548         * config/vax/tm-vax.h: Ditto.
2549         * config/v850/tm-v850.h: Ditto.
2550         * config/tic80/tm-tic80.h: Ditto.
2551         * config/sparc/tm-sparclite.h: Ditto.
2552         * config/sparc/tm-sparclet.h: Ditto.
2553         * config/sparc/tm-sparc.h: Ditto.
2554         * config/sparc/nm-sun4sol2.h: Ditto.
2555         * config/sparc/nm-sun4os4.h: Ditto.
2556         * config/sparc/nm-nbsd.h: Ditto.
2557         * config/powerpc/nm-solaris.h: Ditto.
2558         * config/pa/tm-hppao.h: Ditto.
2559         * config/pa/tm-hppa.h: Ditto.
2560         * config/pa/nm-hppab.h: Ditto.
2561         * config/ns32k/tm-umax.h: Ditto.
2562         * config/ns32k/tm-merlin.h: Ditto.
2563         * config/nm-m3.h: Ditto.
2564         * config/nm-gnu.h: Ditto.
2565
2566 2001-03-14  Andrew Cagney  <ac131313@redhat.com>
2567
2568         * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
2569         broken.  Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
2570         Specify an m88k target.  Include sample GAWK script to generate
2571         target list.  Delete non-existant romp target.
2572         * TODO (GDB 5.1 - Cleanups): Update.
2573
2574 2001-03-14  Keith Seitz  <keiths@cygnus.com>
2575
2576         * linespec.c (decode_line_1): Skip argptr over a leading
2577         double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
2578
2579 2001-03-14  Kevin Buettner  <kevinb@redhat.com>
2580
2581         * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
2582
2583 2001-03-13  Andrew Cagney  <ac131313@redhat.com>
2584
2585         * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
2586         * m3-nat.c: Ditto.
2587         * p-lang.h: Ditto.
2588         * printcmd.c (printf_command): Ditto.
2589         * ch-exp.c (match_integer_literal): Ditto.
2590         * scm-tags.h: Ditto.
2591         * ser-go32.c: Ditto.
2592         * hppa-tdep.c (unwind_command): Ditto.
2593         * defs.h (volatile): Delete macro definition.  Assume __STDC__.
2594         * remote-adapt.c (volatile): Ditto.
2595         * remote-eb.c (volatile): Ditto.
2596         * remote-mm.c (volatile): Ditto.
2597         * defs.h (alloca): Assume __STDC__, declare returning void *.
2598
2599 2001-03-08  Andrew Cagney  <ac131313@redhat.com>
2600
2601         * inferior.h (ARCH_NUM_REGS): Delete definition.
2602         * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
2603         * regcache.c (registers_changed): Ditto.
2604         (registers_fetched): Ditto.
2605         * infptrace.c (fetch_inferior_registers): Ditto.
2606         (store_inferior_registers): Ditto.
2607         * infcmd.c (do_registers_info): Ditto.
2608         (registers_info): Ditto.
2609         * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
2610         (old_store_inferior_registers): Ditto.
2611         * gdbserver/low-linux.c (register_addr): Ditto.
2612         * gdbserver/low-hppabsd.c (register_addr): Ditto.
2613         * core-aout.c: Don't include "inferior.h".
2614         (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
2615         (register_addr): Ditto.
2616
2617 2001-03-13  Fernando Nasser  <fnasser@redhat.com>
2618
2619         From Steven Johnson <sjohnson@neurizon.net>
2620         * cli/cli-script.c (define_command): Fix setting of post hooks.
2621
2622 2001-03-13  Mark Kettenis  <kettenis@gnu.org>
2623
2624         * i386-linux-tdep.c: Fix formatting and clarify comments.
2625         (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
2626         where appropriate.
2627
2628 2001-03-12  Andrew Cagney  <ac131313@redhat.com>
2629
2630         * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
2631         (proc_update_sc): Use gdb_assert instead of assert.
2632         (proc_abort): Ditto.
2633         (inf_set_step_thread): Ditto.
2634         (gnu_wait): Ditto.
2635         (S_exception_raise_request): Ditto.
2636         (gnu_terminal_init_inferior): Ditto.
2637
2638 2001-03-09  Kevin Buettner  <kevinb@redhat.com>
2639
2640         * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
2641         (solib-legacy.o): New makefile target.
2642         * solib-legacy.c: New file.
2643         * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2644         (default_svr4_fetch_link_map_offsets): Delete.
2645         (set_solib_svr4_fetch_link_map_offsets): Declare.
2646         (legacy_svr4_fetch_link_map_offsets_hook): Declare.
2647         * solib-svr4.c (elf/common.h): Include.
2648         (link.h): Only include for SunOS shared library support.
2649         (_SYSCALL32): Don't define.
2650         (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
2651         (default_svr4_fetch_link_map_offsets): Made static; added forward
2652         declaration.
2653         (fetch_link_map_offsets): New static global.
2654         (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
2655         (default_svr4_fetch_link_map_offsets):  Rewritten.  The guts
2656         of what used to be in this function now reside in
2657         legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
2658         (open_symbol_file_object): Fix declaration in SunOS section
2659         of the code.
2660         (set_solib_svr4_fetch_link_map_offsets): New extern function.
2661         (init_fetch_link_map_offsets): New static function.
2662         (_initialize_svr4_solib): Put static global fetch_link_map_offsets
2663         under multiarch control.
2664
2665         * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
2666         list.
2667         * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
2668         * config/arm/linux.mt (TDEPFILES): Likewise.
2669         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2670         * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
2671         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
2672         * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
2673         * config/i386/i386sol2.mt (TDEPFILES): Likewise.
2674         * config/i386/i386v4.mh (NATDEPFILES): Likewise.
2675         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
2676         * config/i386/linux.mt (TDEPFILES): Likewise.
2677         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
2678         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2679         * config/i386/ncr3000.mt (TDEPFILES): Likewise.
2680         * config/i386/ptx4.mh (XDEPFILES): Likewise.
2681         * config/i386/sun386.mt (TDEPFILES): Likewise.
2682         * config/ia64/linux.mt (TDEPFILES): Likewise.
2683         * config/m68k/linux.mt (TDEPFILES): Likewise.
2684         * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
2685         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
2686         * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
2687         * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
2688         * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
2689         * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
2690         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
2691         * config/powerpc/linux.mt (TDEPFILES): Likewise.
2692         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
2693         * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
2694         * config/sh/linux.mt (TDEPFILES): Likewise.
2695         * config/sparc/linux.mt (TDEPFILES): Likewise.
2696         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
2697         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
2698         * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
2699         * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
2700         * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
2701
2702 2001-03-09  Kevin Buettner  <kevinb@redhat.com>
2703
2704         * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
2705
2706 2001-03-09  Andrew Cagney  <ac131313@redhat.com>
2707
2708         * MAINTAINERS (Write After Approval): Update Philip Blundell.
2709
2710 2001-03-09  Keith Seitz  <keiths@cygnus.com>
2711
2712         * MAINTAINERS: Add myself to write after approval list.
2713
2714 2001-03-09  Mark Kettenis  <kettenis@gnu.org>
2715
2716         * i387-tdep.c (print_i387_status_word): Fix printing of Stack
2717         fault flag.  It is bit 6 of the x87 FPU status word, not bit 7.
2718
2719 2001-03-08  Andrew Cagney  <ac131313@redhat.com>
2720
2721         * configure.host (m88*-harris-cxux*): Mark as obsolete.
2722         * configure.tgt: Ditto.
2723         * config/m88k/xm-cxux.h: Ditto.
2724         * config/m88k/tm-cxux.h: Ditto.
2725         * config/m88k/nm-cxux.h: Ditto.
2726         * config/m88k/cxux.mt: Ditto.
2727         * config/m88k/cxux.mh: Ditto.
2728
2729 2001-03-08  Andrew Cagney  <ac131313@redhat.com>
2730
2731         * Makefile.in: Delete rules for obsolete files.
2732
2733 Thu Mar  8 15:43:40 2001  David Taylor  <taylor@redhat.com>
2734
2735         * stack.c (parse_frame_specification): For one argument case,
2736         handle the situation where the argument is an integer, not an
2737         address -- arguably the most common case.  This matters on
2738         targets where pointers and addresses are different.
2739
2740 2001-03-08  Andrew Cagney  <ac131313@redhat.com>
2741
2742         * TODO: Revise 5.1 list.  Delete PARAMS task.  Add coding standard
2743         review.  Clarify GNU/LINUX/sparc.  Move other tasks to 5.2 or
2744         general.
2745
2746 2001-03-07  Andrew Cagney  <ac131313@redhat.com>
2747
2748         * TODO (GDB 5.1 Known Problems): Document problem of building GDB
2749         with SID on Solaris 8.
2750
2751 2001-03-07  Mark Kettenis  <kettenis@gnu.org>
2752
2753         * defs.h: Provide prototypes for floatformat_is_negative,
2754         floatformat_is_nan and floatformat_mantissa.
2755         * utils.c: Include "gdb_assert.h".
2756         (floatformat_is_negative): New function.
2757         (floatformat_is_nan): New function.
2758         (floatformat_mantissa): New function.
2759         * valprint.c: Include "floatformat.h".
2760         (print_floating): Get rid of the Linux-specific
2761         TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
2762         help these new functions.  Print NaN's in a format conforming to
2763         ISO C99.
2764
2765 2001-03-07  Eli Zaretskii  <eliz@is.elta.co.il>
2766
2767         * top.c (init_main): Make `set history file name' complete on file
2768         names.
2769
2770 2001-03-06  J.T. Conklin  <jtc@redback.com>
2771
2772         * Makefile.in (LINTFLAGS): Update to contain all of the macros
2773         which define include paths used when compiling.
2774
2775         * util.c (savestring, msavestring): Change type of length argument.
2776         * defs.h (savestring, msavestring): Update to match.
2777
2778         * symtab.h (decode_line_1): Removed declaration.
2779
2780         * symfile.c (#include <assert.h>): Removed.
2781
2782         * arch-utils.c (#include <ctype.h>): Removed.
2783         * c-typeprint.c: Likewise.
2784         * dbxread.c: Likewise.
2785         * gdbtypes.c: Likewise.
2786         * target.c: Likewise.
2787         * os9kread.c: Likewise.
2788
2789         * c-valprint.c (#include "demangle.h"): Removed.
2790         * ch-typeprint.c: Likewise.
2791         * eval.c: Likewise.
2792         * f-typeprint.c: Likewise.
2793         * f-valprint.c: Likewise.
2794         * m2-typeprint.c: Likewise.
2795         * typeprint.c: Likewise.
2796         * p-typeprint.c: Likewise.
2797         * valarith.c: Likewise.
2798         * valprint.c: Likewise.
2799
2800         * m2-typeprint.c (#include "gdb_string.h"): Removed.
2801         * nlmread.c: Likewise.
2802
2803         * mdebugread.c (#include "gdb-stabs.h"): Removed.
2804         * minsyms.c: Likewise.
2805         * mipsread.c: Likewise.
2806         * nlmread.c: Likewise.
2807
2808         * m2-typeprint.c (#include "obstack.h"): Removed.
2809         * m2-valprint.c: Likewise.
2810
2811         * event-loop.c (#include <setjmp.h>): Removed.
2812
2813 2001-03-06  Stan Shebs  <shebs@apple.com>
2814
2815         * MAINTAINERS: Remove self from specific maintenance domains
2816         (macos, gdbserver, documentation, testsuite).
2817
2818 2001-03-06  Kevin Buettner  <kevinb@redhat.com>
2819
2820         * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
2821         a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
2822         annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
2823         arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
2824         ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
2825         breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
2826         c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
2827         ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
2828         cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
2829         cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
2830         cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
2831         coff-solib.h, coffread.c, command.h, complaints.c,
2832         complaints.h, completer.c, completer.h,
2833         config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
2834         config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
2835         config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
2836         config/alpha/nm-linux.h, config/alpha/nm-osf.h,
2837         config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
2838         config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
2839         config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
2840         config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
2841         config/arm/nm-linux.h, config/arm/tm-arm.h,
2842         config/arm/tm-embed.h, config/d10v/tm-d10v.h,
2843         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
2844         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
2845         config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
2846         config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
2847         config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
2848         config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
2849         config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
2850         config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
2851         config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
2852         config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
2853         config/i386/tm-fbsd.h, config/i386/tm-i386.h,
2854         config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
2855         config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
2856         config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
2857         config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
2858         config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
2859         config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
2860         config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
2861         config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
2862         config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
2863         config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
2864         config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
2865         config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
2866         config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
2867         config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
2868         config/i386/xm-linux.h, config/i386/xm-nbsd.h,
2869         config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
2870         config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
2871         config/i960/tm-i960.h, config/i960/tm-mon960.h,
2872         config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
2873         config/ia64/nm-aix.h, config/ia64/nm-linux.h,
2874         config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
2875         config/ia64/tm-linux.h, config/ia64/xm-aix.h,
2876         config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
2877         config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
2878         config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
2879         config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
2880         config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
2881         config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
2882         config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
2883         config/m68k/tm-isi.h, config/m68k/tm-linux.h,
2884         config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
2885         config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
2886         config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
2887         config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
2888         config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
2889         config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
2890         config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
2891         config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
2892         config/m68k/xm-mpw.h, config/m68k/xm-news.h,
2893         config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
2894         config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
2895         config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
2896         config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
2897         config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
2898         config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
2899         config/mips/nm-irix3.h, config/mips/nm-irix4.h,
2900         config/mips/nm-irix5.h, config/mips/nm-mips.h,
2901         config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
2902         config/mips/tm-embed.h, config/mips/tm-embed64.h,
2903         config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
2904         config/mips/tm-irix3.h, config/mips/tm-irix5.h,
2905         config/mips/tm-mips.h, config/mips/tm-mips64.h,
2906         config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
2907         config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
2908         config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
2909         config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
2910         config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
2911         config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
2912         config/mips/xm-irix4.h, config/mips/xm-irix5.h,
2913         config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
2914         config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
2915         config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
2916         config/mn10300/tm-mn10300.h, config/nm-gnu.h,
2917         config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
2918         config/nm-sysv4.h, config/none/nm-none.h,
2919         config/none/tm-none.h, config/none/xm-none.h,
2920         config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
2921         config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
2922         config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
2923         config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
2924         config/pa/nm-hppab.h, config/pa/nm-hppah.h,
2925         config/pa/nm-hppao.h, config/pa/tm-hppa.h,
2926         config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
2927         config/pa/xm-hppab.h, config/pa/xm-hppah.h,
2928         config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
2929         config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
2930         config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
2931         config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
2932         config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
2933         config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
2934         config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
2935         config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
2936         config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
2937         config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
2938         config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
2939         config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
2940         config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
2941         config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
2942         config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
2943         config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
2944         config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
2945         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
2946         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
2947         config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
2948         config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
2949         config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
2950         config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
2951         config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
2952         config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
2953         core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
2954         cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
2955         dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
2956         delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
2957         dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
2958         elfread.c, environ.c, environ.h, eval.c, event-loop.c,
2959         event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
2960         f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
2961         fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
2962         gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
2963         gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
2964         gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
2965         gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
2966         gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
2967         gdbserver/low-sim.c, gdbserver/low-sparc.c,
2968         gdbserver/low-sun3.c, gdbserver/remote-utils.c,
2969         gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
2970         gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
2971         gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
2972         hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
2973         hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
2974         hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
2975         i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
2976         i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
2977         i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
2978         inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
2979         irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
2980         jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
2981         kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
2982         linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
2983         m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
2984         m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
2985         m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
2986         mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
2987         mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
2988         mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
2989         mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
2990         monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
2991         nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
2992         ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
2993         op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
2994         pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
2995         ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
2996         ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
2997         proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
2998         rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
2999         regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
3000         remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
3001         remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
3002         remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
3003         remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
3004         remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
3005         remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
3006         rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
3007         scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
3008         ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
3009         sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
3010         solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
3011         source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
3012         sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
3013         standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
3014         symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
3015         symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
3016         tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
3017         typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
3018         ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
3019         valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
3020         vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
3021         vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
3022         vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
3023         wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
3024         xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
3025         notices.
3026
3027 2001-03-05  Kevin Buettner  <kevinb@redhat.com>
3028
3029         * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
3030         HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
3031         macros.
3032         * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
3033         pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
3034         (sys/fault.h, sys/select.h): Test for presence of these
3035         header files.
3036         (ia64-*-aix*): Define NEW_PROC_API for this host.
3037         * configure: Regenerate.
3038         * config.in: Regenerate.
3039
3040         * configure.host (ia64-*-aix*): New host.
3041         * configure.tgt (ia64-*-aix*): New target.
3042
3043 2001-03-05  Andrew Cagney  <ac131313@redhat.com>
3044
3045         * TODO (GDB 5.1 Known Problems): Document z8k as broken.
3046
3047 Mon Mar  5 11:56:09 2001  Christopher Faylor <cgf@cygnus.com>
3048
3049         * wince.c: Change realloc to xrealloc throughout.
3050         (handle_load_dll): Use void * rather than PTR in argument.
3051
3052 2001-03-04  Andrew Cagney  <ac131313@redhat.com>
3053
3054         * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
3055         * ocd.c (ocd_xfer_memory): Ditto.
3056         * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
3057         * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
3058         buildable with ,-Werror.
3059
3060         * Makefile.in (symfile_h): Define.
3061         (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
3062         * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
3063         * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
3064         ,-Werror.
3065
3066         * dsrec.c (make_srec): Fix internal_error fmt arg.
3067         * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
3068
3069 2001-03-03  Kevin Buettner  <kevinb@redhat.com>
3070
3071         * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
3072         as an lvalue.
3073
3074 2001-03-02  Andrew Cagney  <ac131313@redhat.com>
3075
3076         * MAINTAINERS (paper trail): Update.
3077
3078         * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
3079
3080 2001-03-02  Andrew Cagney  <ac131313@redhat.com>
3081
3082         From 2001-03-01 Tom Rix <trix@redhat.com>:
3083         * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
3084         parameter to mn10200_analyze_prologue.
3085
3086         * config/mn10200/tm-mn10200.h: Include "regcache.h".
3087         * MAINTAINERS: Document that mn10200-elf target is buildable.
3088
3089 2001-03-02  Kevin Buettner  <kevinb@redhat.com>
3090
3091         * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
3092         from here...
3093         * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
3094         (MONTEREY): Don't define.
3095         (AIX5): Define.
3096
3097 2001-03-02  Matt Hiller  <hiller@redhat.com>
3098
3099         * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
3100
3101 2001-03-02  Kevin Buettner  <kevinb@redhat.com>
3102
3103         * sparc-nat.c (sparc-nat.c): Don't include self.
3104
3105 2001-03-01  J.T. Conklin  <jtc@redback.com>
3106
3107         * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
3108         if __CYGWIN32__ is set from here.
3109         * config/i386/xm-cygwin.h: To here.
3110         * config/powerpc/xm-cygwin.h: To here.
3111
3112         * i386-stub.c (handle_exception): Use 'T' response packet.
3113
3114 2001-03-01  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
3115
3116         * m32r-tdep.c: Fix cut and paste error in comment.
3117
3118 2001-02-28  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
3119
3120         * symtab.c (print_msymbol_info): Print addresses by portable method
3121         longest_local_hex_string_custom.  Allow for 64-bit addresses.
3122
3123 2001-03-01  J.T. Conklin  <jtc@redback.com>
3124
3125         * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
3126         (MAX_OF_TYPE): Wrap macro definition in parenthesis.
3127         (MIN_OF_TYPE): Likewise.
3128         
3129         * memattr.h (mem_access_mode): Removed extraneous trailing comma.
3130
3131 2001-03-01  Andrew Cagney  <ac131313@redhat.com>
3132
3133         * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
3134         * os9kread.c (os9k_process_one_symbol): Add assert to detect
3135         ``loses if sizeof (char *) > sizeof (int)''.
3136
3137 2001-03-01  Andrew Cagney  <ac131313@redhat.com>
3138
3139         * gdb_assert.h: Document pragmatics behind gdb_assert's case.
3140
3141 2001-03-01  Andrew Cagney  <ac131313@redhat.com>
3142
3143         * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
3144         lists.
3145         (mi-main.o): Ditto.
3146
3147 2001-03-01  Andrew Cagney  <ac131313@redhat.com>
3148
3149         * Makefile.in (regcache_h): Define. Add $(regcache_h) to
3150         dependency lists.
3151
3152 2001-02-28  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
3153
3154         * printcmd.c (print_address_numeric): Update comments to refer
3155         to sizeof addr, not sizeof pointer.
3156         (x_command): Remove needless whitespace (shorten long line).
3157         
3158         * breakpoint.c (print_one_breakpoint): Formatting clean-up.
3159         (read_memory_nobpt): Ditto.
3160         (ep_is_catchpoint): Ditto.
3161         (ep_is_shlib_catchpoint): Ditto.
3162         (ep_is_exception_catchpoint): Ditto.
3163         (describe_other_breakpoints): Ditto.
3164
3165 Wed Feb 28 20:37:36 2001  Andrew Cagney  <ac131313@redhat.com>
3166
3167         * regcache.h (register_valid): Fix comment documenting valid
3168         states.
3169
3170 Tue Feb 27 23:56:23 2001  Andrew Cagney  <ac131313@redhat.com>
3171
3172         From Steven Johnson:
3173         * regcache.h: New file.
3174         
3175         * value.h (read_register_bytes, read_register_gen)
3176         (write_register_gen, write_register_bytes)
3177         (read_register, read_register_pid)
3178         (read_signed_register, read_signed_register_pid)
3179         (write_register, write_register_pid)
3180         (register_cached, set_register_cached)
3181         (register_changed, register_buffer)
3182         (registers_changed, supply_register): Move declaration from here.
3183         * regcache.h: To here.
3184         * gdbcore.h (registers_fetched): Ditto.
3185         * inferior.h (registers, registers_valid): Ditto.
3186
3187         * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
3188         generic_target_write_pc, write_pc_pid, write_pc,
3189         generic_target_read_sp, read_sp, generic_target_write_sp,
3190         write_sp, generic_target_read_fp, read_fp,
3191         generic_target_write_fp, write_fp): Add note that these functions
3192         will be moved from this file.
3193         
3194         * a29k-tdep.c: Include "regcache.h".
3195         * a68v-nat.c: Ditto.
3196         * abug-rom.c: Ditto.
3197         * alpha-nat.c: Ditto.
3198         * alpha-tdep.c: Ditto.
3199         * alphabsd-nat.c: Ditto.
3200         * arc-tdep.c: Ditto.
3201         * arm-linux-nat.c: Ditto.
3202         * arm-linux-tdep.c: Ditto.
3203         * arm-tdep.c: Ditto.
3204         * blockframe.c: Ditto.
3205         * core-aout.c: Ditto.
3206         * core-sol2.c: Ditto.
3207         * corelow.c: Ditto.
3208         * cpu32bug-rom.c: Ditto.
3209         * cxux-nat.c: Ditto.
3210         * d10v-tdep.c: Ditto.
3211         * d30v-tdep.c: Ditto.
3212         * dbug-rom.c: Ditto.
3213         * dink32-rom.c: Ditto.
3214         * dve3900-rom.c: Ditto.
3215         * findvar.c: Ditto.
3216         * fr30-tdep.c: Ditto.
3217         * frame.c: Ditto.
3218         * go32-nat.c: Ditto.
3219         * h8300-tdep.c: Ditto.
3220         * h8500-tdep.c: Ditto.
3221         * hp300ux-nat.c: Ditto.
3222         * hppa-tdep.c: Ditto.
3223         * hppab-nat.c: Ditto.
3224         * hppah-nat.c: Ditto.
3225         * hppam3-nat.c: Ditto.
3226         * hpux-thread.c: Ditto.
3227         * i386-linux-nat.c: Ditto.
3228         * i386-linux-tdep.c: Ditto.
3229         * i386-tdep.c: Ditto.
3230         * i386aix-nat.c: Ditto.
3231         * i386b-nat.c: Ditto.
3232         * i386bsd-nat.c: Ditto.
3233         * i386gnu-nat.c: Ditto.
3234         * i386ly-tdep.c: Ditto.
3235         * i386m3-nat.c: Ditto.
3236         * i386mach-nat.c: Ditto.
3237         * i386nbsd-nat.c: Ditto.
3238         * i386v4-nat.c: Ditto.
3239         * i387-nat.c: Ditto.
3240         * i387-tdep.c: Ditto.
3241         * i960-tdep.c: Ditto.
3242         * ia64-aix-nat.c: Ditto.
3243         * ia64-linux-nat.c: Ditto.
3244         * ia64-tdep.c: Ditto.
3245         * infptrace.c: Ditto.
3246         * infrun.c: Ditto.
3247         * irix4-nat.c: Ditto.
3248         * irix5-nat.c: Ditto.
3249         * lin-lwp.c: Ditto.
3250         * lin-thread.c: Ditto.
3251         * lynx-nat.c: Ditto.
3252         * m3-nat.c: Ditto.
3253         * m32r-rom.c: Ditto.
3254         * m32r-tdep.c: Ditto.
3255         * m68hc11-tdep.c: Ditto.
3256         * m68k-tdep.c: Ditto.
3257         * m68klinux-nat.c: Ditto.
3258         * m68knbsd-nat.c: Ditto.
3259         * m68knbsd-tdep.c: Ditto.
3260         * m88k-nat.c: Ditto.
3261         * m88k-tdep.c: Ditto.
3262         * mac-nat.c: Ditto.
3263         * mcore-rom.c: Ditto.
3264         * mcore-tdep.c: Ditto.
3265         * mi/mi-main.c: Ditto.
3266         * mips-nat.c: Ditto.
3267         * mips-tdep.c: Ditto.
3268         * mipsm3-nat.c: Ditto.
3269         * mipsv4-nat.c: Ditto.
3270         * mn10200-tdep.c: Ditto.
3271         * mn10300-tdep.c: Ditto.
3272         * monitor.c: Ditto.
3273         * ns32km3-nat.c: Ditto.
3274         * ns32knbsd-nat.c: Ditto.
3275         * ocd.c: Ditto.
3276         * pa64solib.c: Ditto.
3277         * ppc-bdm.c: Ditto.
3278         * ppc-linux-nat.c: Ditto.
3279         * ppc-linux-tdep.c: Ditto.
3280         * ppcbug-rom.c: Ditto.
3281         * ppcnbsd-nat.c: Ditto.
3282         * ptx4-nat.c: Ditto.
3283         * regcache.c: Ditto.
3284         * remote-adapt.c: Ditto.
3285         * remote-array.c: Ditto.
3286         * remote-bug.c: Ditto.
3287         * remote-e7000.c: Ditto.
3288         * remote-eb.c: Ditto.
3289         * remote-es.c: Ditto.
3290         * remote-est.c: Ditto.
3291         * remote-hms.c: Ditto.
3292         * remote-mips.c: Ditto.
3293         * remote-mm.c: Ditto.
3294         * remote-nindy.c: Ditto.
3295         * remote-os9k.c: Ditto.
3296         * remote-rdi.c: Ditto.
3297         * remote-rdp.c: Ditto.
3298         * remote-sds.c: Ditto.
3299         * remote-sim.c: Ditto.
3300         * remote-st.c: Ditto.
3301         * remote-udi.c: Ditto.
3302         * remote-utils.c: Ditto.
3303         * remote-vx.c: Ditto.
3304         * remote-vx29k.c: Ditto.
3305         * remote-vx68.c: Ditto.
3306         * remote-vx960.c: Ditto.
3307         * remote-vxmips.c: Ditto.
3308         * remote-vxsparc.c: Ditto.
3309         * remote.c: Ditto.
3310         * rom68k-rom.c: Ditto.
3311         * rs6000-nat.c: Ditto.
3312         * rs6000-tdep.c: Ditto.
3313         * sh-tdep.c: Ditto.
3314         * sh3-rom.c: Ditto.
3315         * sol-thread.c: Ditto.
3316         * solib-svr4.c: Ditto.
3317         * somsolib.c: Ditto.
3318         * sparc-nat.c: Ditto.
3319         * sparc-tdep.c: Ditto.
3320         * sparcl-tdep.c: Ditto.
3321         * sparclet-rom.c: Ditto.
3322         * sun3-nat.c: Ditto.
3323         * sun386-nat.c: Ditto.
3324         * symm-nat.c: Ditto.
3325         * target.c: Ditto.
3326         * thread-db.c: Ditto.
3327         * thread.c: Ditto.
3328         * tic80-tdep.c: Ditto.
3329         * tracepoint.c: Ditto.
3330         * ultra3-nat.c: Ditto.
3331         * umax-xdep.c: Ditto.
3332         * uw-thread.c: Ditto.
3333         * v850-tdep.c: Ditto.
3334         * v850ice.c: Ditto.
3335         * valops.c: Ditto.
3336         * w65-tdep.c: Ditto.
3337         * w89k-rom.c: Ditto.
3338         * win32-nat.c: Ditto.
3339         * wince.c: Ditto.
3340         * z8k-tdep.c: Ditto.
3341
3342 2001-02-28  Matt Hiller  <hiller@redhat.com>    
3343         
3344         * MAINTAINERS: Add Matt Hiller to Write After Approval list.
3345
3346 2001-02-27  Matt Hiller  <hiller@redhat.com>
3347
3348         * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
3349         (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
3350         mn10300_stab_reg_to_regnum.
3351
3352 Tue Feb 27 16:56:13 2001  David Taylor  <taylor@redhat.com>
3353
3354         * symtab.c (search_symbols): Fix off by one error in test for
3355         error.
3356
3357 2001-02-23  Andrew Cagney  <ac131313@redhat.com>
3358
3359         * config/sparc/sp64linux.mt: New file.
3360         * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
3361         * configure.host: Recognize sparc64-*-linux* as a linux host.
3362
3363         From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
3364         * config/sparc/tm-sp64linux.h: New file.
3365         
3366 2001-02-24  Kevin Buettner  <kevinb@redhat.com>
3367
3368         * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
3369         with call to internal_error().
3370         * dbxread.c (process_one_symbol): Likewise.
3371         * exec.c (build_section_table, xfer_memory): Likewise.
3372         * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
3373         Likewise.
3374         * hpread.c (hpread_type_translate, hpread_read_array_type)
3375         (hpread_type_lookup): Likewise.
3376         * i386-tdep.c (gdb_print_insn_i386): Likewise.
3377         * i960-tdep.c (mem): Likewise
3378         * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
3379         * infptrace.c (child_resume): Likewise.
3380         * infttrace.c (_initialize_infttrace): Likewise.
3381         * language.c (binop_result_type, add_language): Likewise.
3382         * lynx-nat.c (store_inferior_registers): Likewise.
3383         * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
3384         * mdebugread.c (parse_partial_symbols): Likewise.
3385         * monitor.c (monitor_printf_noecho, monitor_printf)
3386         (monitor_dump_regs): Likewise.
3387         * ocd.c (stu_put_packet): Likewise.
3388         * printcmd.c (decode_format, print_scalar_formatted): Likewise.
3389         * remote-bug.c (bug_open): Likewise.
3390         * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
3391         * remote-es.c (es1800_read_bytes): Likewise.
3392         * remote-mips.c (common_breakpoint): Likewise.
3393         * remote-rdp.c (send_rdp): Likewise.
3394         * remote-sds.c (putmessage): Likewise.
3395         * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
3396         Likewise.
3397         * sparcl-tdep.c (sparclite_download): Likewise.
3398         * symtab.c (lookup_partial_symbol): Likewise.
3399         * target.c (push_target, pop_target, initialize_targets): Likewise.
3400         * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
3401         Likewise.
3402         * valprint.c (print_decimal, print_longest, print_longest)
3403         (strcat_longest): Likewise.
3404         * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
3405         * xmodem.c (xmodem_send_packet): Likewise.
3406         * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
3407         * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
3408         * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
3409         (STORE_RETURN_VALUE): Likewise.
3410         * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
3411         * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
3412         * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
3413         Likewise.
3414
3415 2001-02-23  Andrew Cagney  <ac131313@redhat.com>
3416
3417         * CONTRIBUTE: Document how to cite a problem report.
3418         * TODO: Note need to replace CONTRIBUTE with generated file.
3419
3420         * CONTRIBUTE: Mention that patches do not need to include the
3421         generated files gdbarch.h and gdbarch.c.
3422         
3423 2001-02-21  Andrew Cagney  <ac131313@redhat.com>
3424
3425         * value.h (get_saved_register): Move from here.
3426         * frame.h: To here.
3427
3428 2001-02-21  Kevin Buettner  <kevinb@redhat.com>
3429
3430         * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
3431         (in_solib_dynsym_resolve_code): Add declaration.
3432         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
3433         in_solib_dynsym_resolve_code() rather than
3434         in_svr4_dynsym_resolve_code().  Also, removed the ifdefs
3435         which caused this macro to only be defined when
3436         SVR4_SHARED_LIBS is defined.
3437         * solib.c (in_solib_dynsym_resolve_code): New function.
3438         * solist.h (struct target_so_ops): Add new member
3439         in_dynsym_resolve_code.
3440         * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
3441         in_svr4_dynsym_resolve_code.  Also, made static.
3442         (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
3443         member in aix5_so_ops.
3444         * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
3445         in_svr4_dynsym_resolve_code.  Also, added second version
3446         of this function which will be used when SVR4_SHARED_LIBS
3447         is not defined.
3448         (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
3449         member in svr4_so_ops.
3450
3451         * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
3452         config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
3453         config/ia64/xm-aix.h: New files.
3454         * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
3455         (ia64_aix_sigcontext_register_address): New declaration.
3456         (ia64_gdbarch_init): Provide for initialization of 
3457         sigcontext_register_address member of struct tdep when
3458         on target is detected to be running AIX.
3459         * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
3460         this list.
3461
3462 2001-02-20  Kevin Buettner  <kevinb@redhat.com>
3463
3464         * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
3465         * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
3466         for thread support instead of linux-thread.o and lin-thread.o.
3467         * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
3468         ATTACH_LWP): Define to use the following lin-lwp.c functions...
3469         (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
3470         lin_lwp_attach_lwp): Declare.
3471
3472 2001-02-20  Andrew Cagney  <ac131313@redhat.com>
3473
3474         * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
3475         formatting.
3476
3477 2001-02-20  Kevin Buettner  <kevinb@redhat.com>
3478
3479         * solib-aix5.c (solib-svr4.h): Remove include.
3480         (solib_break_names): Delete names which aren't actually
3481         used by AIX5.
3482         (bkpt_names): Remove.
3483         (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
3484         to STREQ() with equivalent calls to strcmp().
3485         (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
3486         aix5_solib_create_inferior_hook): Revise comments.
3487         (enable_break): Remove old ``bkpt_names'' code.
3488
3489 2001-02-19  Andrew Cagney  <ac131313@redhat.com>
3490
3491         * Makefile.in (SFILES): Add frame.c .
3492         (COMMON_OBS): Add frame.o .
3493         (frame.o): New target.
3494
3495         * frame.c (find_saved_register): 
3496         (default_get_saved_register): 
3497         (get_saved_register): 
3498         (read_relative_register_raw_bytes_for_frame): 
3499         (read_relative_register_raw_bytes): Moved to here.
3500         * regcache.c: From here.
3501
3502 2001-02-20  Kevin Buettner  <kevinb@redhat.com>
3503
3504         * solib-aix5.c: New file.
3505
3506 2001-02-20  Martin M. Hunt  <hunt@redhat.com>
3507
3508         * solib.c (info_sharedlibrary_command): Don't assume pointers
3509         are the same size of long, call longest_local_hex_string_custom().
3510
3511         * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
3512         extract_signed_integer() should be called instead of
3513         extract_address().
3514
3515 2001-02-20  Martin M. Hunt  <hunt@redhat.com>   
3516         
3517         * MAINTAINERS: Add Martin Hunt to Write After Approval list.
3518
3519 2001-02-19  Andrew Cagney  <ac131313@redhat.com>
3520
3521         Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
3522         * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
3523         then floating point registers are 8 bytes.
3524
3525 2001-02-19  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
3526
3527         * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to 
3528         accomodate 64-bit addresses.
3529
3530 2001-02-19  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
3531
3532         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
3533         * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
3534         lookup_symbol, when trying to find a symbol with a mangled name,
3535         to avoid infinite recursion.
3536
3537 2001-02-18  Andrew Cagney  <ac131313@redhat.com>
3538
3539         * TODO (5.2): Mention G++ 3.0 ABI.  General cleanups.
3540
3541 2001-02-19  Jonathan Larmour  <jlarmour@redhat.com>
3542
3543         * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
3544         (save_prologue_cache): Ditto.
3545
3546 2001-02-19  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
3547
3548         From: innadadadavida@yahoo.com:
3549         * partial-stab.h (switch): Check that pst is not null
3550         before dereferencing it.
3551
3552 2001-02-19  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
3553
3554         From Andrew Cagney  <cagney@b1.cygnus.com>:
3555         * symfile.c (add_symbol_file_command): Always initialize
3556         my_cleanup using a NULL cleanup.
3557
3558 2001-02-19  Eli Zaretskii  <eliz@is.elta.co.il>
3559
3560         * demangle.c (demangling_style_names): New variable.
3561         (_initialize_demangler): Fill demangling_style_names with the
3562         names of known demangling styles from libiberty_demanglers[].  Use
3563         add_set_enum_cmd instead of add_set_cmd, to get completion on
3564         demangling style names.
3565
3566         * proc-api.c (_initialize_proc_api): Make `procfs-file' use
3567         file-name completion.
3568
3569         * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
3570
3571         * solib.c (_initialize_solib): Ditto for `solib-search-path' and
3572         `solib-absolute-prefix'.
3573
3574         * tracepoint.c (_initialize_tracepoint): Ditto for
3575         `save-tracepoints'.
3576
3577         * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
3578
3579         * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
3580         file-name completion.
3581
3582         * infcmd.c (_initialize_infcmd): Make the following commands use
3583         the file-name completer: `tty', `args', `path', `paths', and
3584         `run'.
3585
3586 2001-02-18  Eli Zaretskii  <eliz@is.elta.co.il>
3587
3588         * go32-nat.c: Include i387-nat.h.
3589         (fetch_register): New function, uses some of the guts of
3590         go32_fetch_registers and calls i387_supply_register.
3591         (go32_fetch_registers): Most of the code moved into
3592         fetch_register.  Use i387_supply_fsave.
3593         (store_register): Use i387_fill_fsave instead of custom code.
3594         (go32_store_registers): Use i387_fill_fsave.
3595
3596         * Makefile.in (go32-nat.o): Depend on i387-nat.h.
3597
3598         * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
3599
3600         * completer.c (gdb_completer_file_name_break_characters): Remove
3601         slash from file-name break characters.
3602         [__MSDOS__]: Special definition for DOS/Windows file names.
3603         (line_completion_function): When completing on file names, bump
3604         `p' to the first file-name constituent character of `word', before
3605         invoking the completer.
3606
3607 2001-02-17  Mark Kettenis  <kettenis@gnu.org>
3608
3609         * i387-nat.c: Include "i387-nat.h".  Use regnum instead of regno
3610         consistently for parameter names.  Fix comments accordingly.
3611         (i387_supply_register): New function.
3612         (i387_supply_fsave): Implement using i387_supply_register.
3613         * i387-nat.h: Use regnum instead of regno consistently for
3614         parameter names.  Fix comments accordingly.
3615         (i387_supply_register): New prototype.
3616
3617 2001-02-16  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
3618
3619         * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT 
3620         instead of TARGET_PTR_BIT (to support Harvard architectures).
3621
3622 2001-02-16  Andrew Cagney  <ac131313@redhat.com>
3623
3624         From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
3625         * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib 
3626         argument to parameter list and to call in order to conform to 
3627         to_xfer_memory field of struct target_ops.
3628
3629 2001-02-12  Michael Chastain  <chastain@redhat.com>
3630
3631         * somsolib.c (som_solib_add_solib_objfile): Do not use
3632         section relocation feature of syms_from_objfile.  Do my own
3633         section relocation, offsetting each section of the som by
3634         either text_addr - text_link_addr or data_start.
3635
3636 2001-02-16  Andrew Cagney  <ac131313@redhat.com>
3637
3638         * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
3639
3640 2001-02-16  Andrew Cagney  <ac131313@redhat.com>
3641
3642         * MAINTAINERS (paper trail): Update.
3643
3644 2001-02-16  Mark Kettenis  <kettenis@gnu.org>
3645
3646         * target.h (target_fetch_registers): Fix comment.
3647
3648 2001-02-15  Andrew Cagney  <ac131313@redhat.com>
3649
3650         * f-exp.y: Include <ctype.h>.
3651         (parse_number): Ensure that ``i'' is always initialized.
3652
3653 2001-02-14  Jim Kingdon  <jkingdon@engr.sgi.com>
3654
3655         * MAINTAINERS: Add myself to paper trail section.
3656
3657 2001-02-14  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3658
3659         * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
3660         * configure, config.in: Regenerate.
3661         * corelow.c: Include <sys/file.h> if present.
3662
3663 2001-02-14  Andrew Cagney  <ac131313@redhat.com>
3664
3665         * inflow.c (terminal_ours_1): Initialize ``osigtou''.  Only
3666         declare when have SIGTTOU.
3667
3668 2001-02-14  Eli Zaretskii  <eliz@is.elta.co.il>
3669
3670         * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
3671
3672 2001-02-12  Jim Kingdon  <jkingdon@engr.sgi.com>
3673
3674         * MAINTAINERS: Update my email address.
3675
3676 2001-02-11  Eli Zaretskii  <eliz@is.elta.co.il>
3677
3678         * NEWS: Document that "info symbol" works with COFF debug info and
3679         its variants.
3680
3681         * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
3682         symbols whose SYMBOL_BFD_SECTION is NULL.
3683
3684 2001-02-10  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
3685
3686         Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
3687         * xcoffsolib.c (xcoff_solib_address):  Renamed from
3688         pc_load_segment_name.  Return NULL if address is not in a shared
3689         library.  Cleanup shared library name construction, using xasprintf.
3690         Format shared library member names consistent with format in exec.c.
3691         (solib_info):  Format shared library member names consistent with
3692         format in exec.c.
3693         * config/rs6000/nm-rs6000.h:  Replace PC_LOAD_SEGMENT with PC_SOLIB,
3694         using xcoff_solib_address for PC_SOLIB definition.
3695         * stack.c (print_frame):  Remove PC_LOAD_SEGMENT code, no longer
3696         needed.
3697
3698 2001-02-10  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
3699
3700         * mipsread.c (read_alphacoff_dynamic_symtab):  Replace alloca calls
3701         with xmalloc calls and cleanups.
3702
3703 2001-02-10  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
3704
3705         * rs6000-nat.c (child_xfer_memory):  Add missing parameter
3706         'struct mem_attrib *' required by 2001-01-23 change.
3707
3708 2001-02-08  Jim Kingdon  <jkingdon@engr.sgi.com>
3709
3710         Updates to "make TAGS":
3711         * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
3712         arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
3713         tahoe-tdep.c.
3714         (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
3715
3716 2001-02-08  Eli Zaretskii  <eliz@is.elta.co.il>
3717
3718         * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
3719
3720 Wed Feb  7 22:39:26 2001  Andrew Cagney  <cagney@redhat.com>
3721
3722         From Dean Luick <luick@cray.com>:
3723         * defs.h (continuation): Remove unused global variable.
3724
3725 Wed Feb  7 22:28:31 2001  Andrew Cagney  <cagney@redhat.com>
3726
3727         * configure.tgt: Remove references to convex, pyramid, altos and
3728         tahoe.
3729         * configure.host: Ditto.
3730         * MAINTAINERS: Ditto.
3731         * NEWS: Update.
3732
3733         * tahoe-tdep.c: Delete obsolete file.
3734         * pyr-xdep.c: Ditto.
3735         * pyr-tdep.c: Ditto.
3736         * convex-tdep.c: Ditto.
3737         * convex-xdep.c: Ditto.
3738         * config/tahoe/xm-tahoe.h: Ditto.
3739         * config/tahoe/tm-tahoe.h: Ditto.
3740         * config/tahoe/tahoe.mt: Ditto.
3741         * config/tahoe/tahoe.mh: Ditto.
3742         * config/pyr/xm-pyr.h: Ditto.
3743         * config/pyr/tm-pyr.h: Ditto.
3744         * config/pyr/pyramid.mt: Ditto.
3745         * config/pyr/pyramid.mh: Ditto.
3746         * config/m68k/xm-altos.h: Ditto.
3747         * config/m68k/tm-altos.h: Ditto.
3748         * config/m68k/altos.mt: Ditto.
3749         * config/m68k/altos.mh: Ditto.
3750         * config/convex/xm-convex.h: Ditto.
3751         * config/convex/tm-convex.h: Ditto.
3752         * config/convex/convex.mt: Ditto.
3753         * config/convex/convex.mh: Ditto.
3754         * config/convex/Convex.notes: Ditto.
3755         * config/arm/xm-arm.h: Ditto.
3756         * config/arm/nm-arm.h: Ditto.
3757         * config/arm/arm.mt: Ditto.
3758         * config/arm/arm.mh: Ditto.
3759         * arm-convert.s: Ditto.
3760         * arm-xdep.c: Ditto.
3761         * altos-xdep.c: Ditto.
3762
3763 Wed Feb  7 19:41:21 2001  Andrew Cagney  <cagney@redhat.com>
3764
3765         * defs.h (internal_error, internal_verror): Add __FILE__ and
3766         __LINE__ parameter.
3767         * utils.c (internal_error, internal_verror): Update.
3768
3769         * v850-tdep.c: Update calls to internal_error.
3770         * utils.c: Ditto.
3771         * ui-out.c: Ditto.
3772         * ui-file.c: Ditto.
3773         * target.h: Ditto.
3774         * symtab.h: Ditto.
3775         * symm-nat.c: Ditto.
3776         * sparc-tdep.c: Ditto.
3777         * source.c: Ditto.
3778         * serial.c: Ditto.
3779         * rs6000-tdep.c: Ditto.
3780         * rs6000-nat.c: Ditto.
3781         * remote.c: Ditto.
3782         * remote-vx.c: Ditto.
3783         * remote-sim.c: Ditto.
3784         * remote-mips.c: Ditto.
3785         * regcache.c: Ditto.
3786         * objfiles.h: Ditto.
3787         * objfiles.c: Ditto.
3788         * mn10300-tdep.c: Ditto.
3789         * mips-tdep.c: Ditto.
3790         * maint.c: Ditto.
3791         * m68k-tdep.c: Ditto.
3792         * m3-nat.c: Ditto.
3793         * language.c: Ditto.
3794         * infptrace.c: Ditto.
3795         * inferior.h: Ditto.
3796         * infcmd.c: Ditto.
3797         * ia64-tdep.c: Ditto.
3798         * i386-tdep.c: Ditto.
3799         * i386-linux-nat.c: Ditto.
3800         * hppah-nat.c: Ditto.
3801         * go32-nat.c: Ditto.
3802         * findvar.c: Ditto.
3803         * f-lang.c: Ditto.
3804         * elfread.c: Ditto.
3805         * event-loop.c: Ditto.
3806         * dwarf2read.c: Ditto.
3807         * dsrec.c: Ditto.
3808         * d30v-tdep.c: Ditto.
3809         * d10v-tdep.c: Ditto.
3810         * cli/cli-setshow.c: Ditto.
3811         * cli/cli-script.c: Ditto.
3812         * ch-exp.c: Ditto.
3813         * breakpoint.c: Ditto.
3814         * ax-gdb.c: Ditto.
3815         * arch-utils.c: Ditto.
3816         * a29k-tdep.c: Ditto.
3817         * gdb_assert.h: Ditto.
3818         * gdbarch.sh: Ditto.
3819         * gdbarch.h, gdbarch.c: Re-generate.
3820         
3821 2001-02-07  Andrew Cagney  <ac131313@redhat.com>
3822
3823         From Mark Kettenis <kettenis@gnu.org>:
3824         * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
3825
3826 2001-02-07  Andrew Cagney  <ac131313@redhat.com>
3827
3828         * remote-sim.c (dump_mem): Cleanup printf format argument.
3829         * MAINTAINERS: Update, mn10300-elf now builds.
3830
3831 2001-02-07  Mark Kettenis  <kettenis@gnu.org>
3832
3833         * event-top.c: Remove duplicate #include <signal.h>.
3834
3835 2001-02-06  Andrew Cagney  <ac131313@redhat.com>
3836
3837         * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
3838         allocated buffer.
3839         (save_inferior_pid): Restore the PID from that tempoary
3840         buffer. Delete the buffer.
3841         * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
3842
3843 2001-02-06  Andrew Cagney  <ac131313@redhat.com>
3844
3845         * MAINTAINERS: Add ``The Obvious Fix Rule''.
3846
3847 2001-02-06  Andrew Cagney  <ac131313@redhat.com>
3848
3849         * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
3850
3851 2001-02-06  Andrew Cagney  <ac131313@cygnus.com>
3852
3853         * gdbarch.sh: Include "gdb_assert.h".
3854         (struct gdbarch): Change ``nr_data'' to unsigned.
3855         (alloc_gdbarch_data, free_gdbarch_data): New functions.
3856         (gdbarch_free): Free the data-pointer vector.  Use xfree to delete
3857         architecture vector.
3858         (struct gdbarch_data, struct gdbarch_data_registration): Move init
3859         method to gdbarch_data.  Add free method, make index unsigned.
3860         (struct gdbarch_data_registry): Make nr unsigned.
3861         (register_gdbarch_data): Add free parameter. Store in
3862         gdbarch_data.
3863         (init_gdbarch_data): Use set_gdbarch_data.
3864         (set_gdbarch_data): New function.
3865         
3866         * gdbarch.h, gdbarch.c: Re-generate.
3867         
3868 2001-02-06  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3869
3870         * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
3871         fprintf_filtered with correct arguments.
3872
3873 2001-02-06  Michael Snyder  <msnyder@makita.cygnus.com>
3874         Submitted by Paul Hilfinger (hilfingr@gnat.com) 
3875         and Andrei Petrov (and@genesyslab.com).
3876         * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
3877         must be allocated dynamically, since these are no longer constants.
3878         * infcmd.c: Ditto.
3879         * regcache.c: Ditto.
3880         * remote.c: Ditto.
3881         * sol-thread.c: Ditto.
3882         * valops.c: Ditto.
3883         * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
3884         work-around for a missing Sun header file in solaris for sparc64.
3885
3886 2001-02-04  Philip Blundell  <philb@gnu.org>
3887
3888         * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
3889         thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
3890         * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
3891         GET_THREAD_SIGNALS): Define.
3892         * arm-linux-nat.c (fill_gregset): Correct type of argument.
3893         (supply_gregset): Likewise.
3894         (fill_fpregset): Likewise.
3895         (supply_fpregset): Likewise.
3896
3897 Tue Feb  6 11:58:57 2001  David Taylor  <taylor@redhat.com>
3898
3899         * valops.c (value_cast): If casting a scalar to a pointer, do not
3900         issue a message about truncation unless it exceeds the length of
3901         an address, not the length of a pointer.  This is because what the
3902         user gives us is an address, not a pointer, and we will ultimately
3903         convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
3904         to a pointer.  This allows things like "print *(int *)0x01000234"
3905         to work without generating a misleading message on a target having
3906         two byte pointers and four byte addresses.
3907
3908 2001-02-05  Christopher Faylor  <cgf@cygnus.com>
3909
3910         * win32-nat.c: Change PTR to void * throughout.
3911
3912 2001-02-05  J.T. Conklin  <jtc@redback.com>
3913
3914         * signals.h: Removed.
3915         * event-top.c (#include <signal.h>): Changed from signals.h.
3916         * inflow.c: Likewise.
3917         * mac-xdep.c: Likewise.
3918         * ser-pipe.c: Likewise.
3919         * ser-tcp.c: Likewise.
3920         * standalone.c: Likewise.
3921         * top.c: Likewise.
3922         * utils.c: Likewise.
3923         * Makefile.in: Removed signals.h from dependencies.
3924
3925 2001-02-05  Christopher Faylor  <cgf@cygnus.com>
3926
3927         Change suggested by Dean Luick <luick@cray.com>
3928         * inferior.h (step_over_calls_kind): Remove trailing comma from
3929         last enum element.
3930         (step_over_calls): Declare as extern rather than global.
3931
3932 2001-02-05  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
3933
3934         * sh-tdep.c: Update copyright.
3935         (sh_extract_return_value): Rewrite.
3936         (sh3e_sh4_extract_return_value): New function.
3937         (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
3938         version of the function for sh3e and sh4 CPUs.
3939
3940 2001-02-05  Michael Chastain  <chastain@redhat.com>
3941
3942         * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
3943         to conform with interface change.
3944
3945 2001-02-04  Eli Zaretskii  <eliz@is.elta.co.il>
3946
3947         * config/djgpp/fnchange.lst: Tweak to make consistent with the
3948         new files.
3949
3950         * config/djgpp/djconfig.sh: Use explicit absolute file name when
3951         invoking `find'.
3952
3953         * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
3954         UART_FIFO_WORKS is defined.  Otherwise use outportb.
3955         From Francisco Pastor <fpastor.etra-id@etra.es>
3956
3957         * go32-nat.c (go32_xfer_memory): Make the argument list consistent
3958         with target.h's `to_xfer_memory' member.
3959
3960 2001-02-02  J.T. Conklin  <jtc@redback.com>
3961
3962         * ppc-bdm.c (#include <signal.h>): Removed.
3963         * remote-array.c: Likewise.
3964         * remote-bug.c: Likewise.
3965         * remote-e7000.c: Likewise.
3966         * remote-mips.c: Likewise.
3967         * remote-os9k.c: Likewise.
3968         * remote-st.c: Likewise.
3969         * remote-udi.c: Likewise.
3970         * remote-vx29k.c: Likewise.
3971         * remote-vx68.c: Likewise.
3972         * remote-vx960.c: Likewise.
3973         * remote-vxmips.c: Likewise.
3974         * remote-vxsparc.c: Likewise.
3975
3976 2001-02-02  John Moore  <jmoore@redhat.com>
3977
3978         * remote-utils.h (sr_set_device): Changed free() to xfree() where 
3979         appropriate.  Also changed Copyright to include 2001.
3980         * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
3981         * value.h (value_free): Likewise.
3982         * gdbarch.sh (gdbarch_free): Likewise.
3983         * gdbarch.c, gdbarch.h: Regenerated.
3984
3985 2001-02-02  John Moore  <jmoore@redhat.com>
3986
3987         * cli/cli-cmds.c (apropos_command): Changed occurance of free() to 
3988         xfree().  Also changed Copyright to include 2001.
3989
3990 2001-02-02  J.T. Conklin  <jtc@redback.com>
3991
3992         * monitor.c (#include "gdb_wait.h"): Removed.
3993         * ocd.c: Likewise.
3994         * ppc-bdm.c: Likewise.
3995         * remote-adapt.c: Likewise.
3996         * remote-array.c: Likewise.
3997         * remote-bug.c: Likewise.
3998         * remote-e7000.c: Likewise.
3999         * remote-eb.c: Likewise.
4000         * remote-es.c: Likewise.
4001         * remote-mips.c: Likewise.
4002         * remote-mm.c: Likewise.
4003         * remote-nindy.c: Likewise.
4004         * remote-os9k.c: Likewise.
4005         * remote-rdi.c: Likewise.
4006         * remote-rdp.c: Likewise.
4007         * remote-sds.c: Likewise.
4008         * remote-sim.c: Likewise.
4009         * remote-st.c: Likewise.
4010         * remote-udi.c: Likewise.
4011         * remote-vx.c: Likewise.
4012         * remote-vx29k.c: Likewise.
4013         * remote-vx68.c: Likewise.
4014         * remote-vx960.c: Likewise.
4015         * remote-vxmips.c: Likewise.
4016         * remote-vxsparc.c: Likewise.
4017         * remote.c: Likewise.
4018         * ser-pipe.c: Likewise.
4019         * ser-unix.c: Likewise.
4020         * Makefile.in: Updated dependencies.
4021
4022 2001-01-31  David Smith  <dsmith@redhat.com>
4023
4024         * event-loop.c: Change inclusion of string.h to gdb_string.h and
4025         updated the copyright notice.
4026         * ser-pipe.c: Ditto.
4027         * mi/mi-cmds.c: Ditto.
4028         * mi/mi-console.c: Ditto.
4029         * mi/mi-getopt.c: Ditto.
4030         * mi/mi-parse.c: Ditto.
4031
4032 2001-01-31  David Smith  <dsmith@redhat.com>
4033
4034         * MAINTAINERS: Add David Smith to Write After Approval list.
4035
4036 Tue Jan 30 15:43:08 2001  Andrew Cagney  <cagney@cygnus.com>
4037
4038         * cli/cli-utils.c (putchar_filtered): Move function from here.
4039         * utils.c (putchar_filtered): To here.
4040         * cli/cli-utils.h (putchar_filtered): Move declaration from here.
4041         * defs.h (putchar_filtered): To here.
4042         
4043 Tue Jan 30 17:27:11 2001  Andrew Cagney  <cagney@redhat.com>
4044
4045         * configure.in (AC_CHECK_FUNCS): Replace vfork test with
4046         AC_FUNC_VFORK macro.
4047         * config.in, configure: Re-generate.
4048
4049         * gdb_vfork.h: New file.
4050         * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
4051         * fork-child.c (fork_inferior): Ditto.
4052         
4053 Tue Jan 30 17:09:07 2001  Andrew Cagney  <cagney@redhat.com>
4054
4055         * defs.h (strsave): Delete declaration.
4056         * utils.c (strsave): Delete definition.
4057         * TODO (strsave): Update
4058
4059         * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
4060         * sparcl-tdep.c (sparclite_open): Ditto.
4061         * mips-tdep.c (mips_set_processor_type_command):  Ditto.
4062         (_initialize_mips_tdep):  Ditto.
4063         * solib.c (solib_open):  Ditto.
4064         * symfile.c (add_filename_language):  Ditto.
4065         (set_ext_lang_command):  Ditto.
4066         * source.c (init_source_path):  Ditto.
4067         (mod_path):  Ditto.
4068         * sh3-rom.c (sh3_open):  Ditto.
4069         (sh3e_open):  Ditto.
4070         * serial.c (serial_open):  Ditto.
4071         * remote-mips.c (common_open):  Ditto.
4072         * monitor.c (monitor_open):  Ditto.
4073         * m32r-rom.c (m32r_upload_command):  Ditto.
4074         * infcmd.c (path_command):  Ditto.
4075         * f-exp.y (parse_number):  Ditto.
4076         * breakpoint.c (create_longjmp_breakpoint):  Ditto.
4077         (create_thread_event_breakpoint):  Ditto.
4078         * arc-tdep.c (arc_set_cpu_type_command):  Ditto.
4079         (_initialize_arc_tdep):  Ditto.
4080
4081 Tue Jan 30 15:14:26 2001  Andrew Cagney  <cagney@skil>
4082
4083         * cli/cli-script.c (define_command): Check for a bad hook value in
4084         switch statement.
4085
4086 2001-01-30  J.T. Conklin  <jtc@redback.com>
4087
4088         * configure/sh/embed.mt: New file.
4089         * configure/sh/linux.mt: New file.
4090         * configure/sh/sh.mt: Removed.
4091         * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
4092         (sh-*-*): Removed.
4093
4094 2001-01-29  Michael Chastain  <chastain@redhat.com>
4095
4096         * symtab.c (block_lookup_symbol): Use 'namespace' parameter in
4097         symbol comparisons in binary search.
4098
4099 2001-01-27  Christopher Faylor  <cgf@cygnus.com>
4100
4101         * win32-nat.c (child_xfer_memory): Add missing argument required by
4102         2001-01-23 change.
4103
4104 2001-01-27  Mark Kettenis  <kettenis@gnu.org>
4105
4106         * ui-out.c (do_list_end): New function.
4107         (make_cleanup_ui_out_list_end): New function.
4108         * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
4109         * stack.c (print_frame) [UI_OUT]: Call
4110         make_cleanup_ui_out_list_end to make sure we mark the end of the
4111         list if we do a non-local exit.  At the end of the function,
4112         instead of calling ui_out_list_end directly, let do_cleanups
4113         handle it.
4114
4115 2001-01-26  Fernando Nasser  <fnasser@redhat.com>
4116
4117         Fix double parsing of filenames passed as command line arguments
4118         to GDB (causes weird handling of escape characters).
4119         Also, remove dependencies on the CLI from libgdb.
4120         * call-cmds.h: Remove declaration of exec_file_command().
4121         * gdbcore.h: Remove declaration of exec_file_command().
4122         Add declarations for exec_open() and exec_file_clear().
4123         * symfile.h: Add declarations for symbol_file_add_main() and
4124         symbol_file_clear().
4125         * exec.c (exec_open): New function. Implements to_open for exec
4126         targets.
4127         (exec_file_clear): New function. Makes GDB forget about a previously
4128         specified executable file.
4129         (exec_file_attach): Move parsing of arguments from here ...
4130         (exec_file_command): ... to here.
4131         (init_exec_ops): Use exec_open(), not exec_file_command() to
4132         implement to_open for exec targets.
4133         * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
4134         with default values.  Used when the file name has already been parsed.
4135         (symbol_file_clear): New function. Makes GDB forget about previously
4136         read symbols.
4137         (symbol_file_command): Call the above function instead of inline code.
4138         * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
4139         "call-cmds.h".
4140         (captured_main): Call exec_file_attach() and symbol_file_add_main()
4141         instead of exec_file_command() and symbol_file_command().
4142         (captured_main): Add comment.
4143         * corefile.c: Include "symfile.h".
4144         (core_file_command): Call symbol_file_add_main() instead of
4145         symbol_file_command().
4146         (reopen_exec_file): Call exec_open() instead of exec_file_command().
4147         * infcmd.c: Include "symfile.h".
4148         (attach_command): Call symbol_file_add_main() instead of 
4149         symbol_file_command().
4150         * infrun.c: Remove comment about the inclusion of "symfile.h",
4151         not any longer appropriate.
4152         (follow_exec): Call symbol_file_add_main() instead of 
4153         symbol_file_command().
4154         * remote-es.c: Include "symfile.h".
4155         (es1800_load): Call symbol_file_add_main() instead of 
4156         symbol_file_command().
4157         * remote-vx.c: Remove comment about the inclusion of "symfile.h",
4158         not any longer appropriate.
4159         (vx-wait): Call symbol_file_add_main() instead of 
4160         symbol_file_command().
4161         * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
4162         instead of symbol_file_command().
4163         * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
4164         symbol_file_add_main() instead of exec_file_command() and
4165         symbol_file_command().
4166         * Makefile.in: Update dependencies.
4167
4168 2001-01-26  Jeff Holcomb  <jeffh@redhat.com>
4169
4170         * remote-udi.c (udi_open): Change strdup to xstrdup.
4171         * thread.c (thread_apply_all_command): Change strdup to xstrdup.
4172         Update copyright message.
4173         * varobj.c (delete_variable_1): Likewise.
4174
4175         * gdb_string.h: Remove declaration of strdup.  Update copyright
4176         message.
4177         * config/xm-mpw.h: Likewise.
4178         * config/i386/xm-i386mach.h: Likewise.
4179         * config/m68k/xm-apollo68b.h: Likewise.
4180         * config/m68k/xm-hp300bsd.h: Likewise.
4181         * config/rs6000/xm-rs6000.h: Likewise.
4182         * config/vax/xm-vaxult.h: Remove declaration of strdup.
4183         * config/vax/xm-vaxult2.h: Likewise.
4184
4185 2001-01-26  Jeff Holcomb  <jeffh@redhat.com>
4186
4187         * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
4188
4189 2001-01-25  J.T. Conklin  <jtc@redback.com>
4190
4191         * target.c (target_xfer_memory_partial): Return -1 on failure due
4192         to invalid access mode attribute.
4193
4194 2001-01-25  Christopher Faylor  <cgf@cygnus.com>
4195
4196         * win32-nat.c (_initialize_core_win32): Prototype correctly.
4197
4198 2001-01-25  Mark Kettenis  <kettenis@gnu.org>
4199
4200         * config/alpha/tm-fbsd.h: Update copyright.
4201         (USE_STRUCT_CONVENTION): Define in terms of
4202         alphabsd_use_struct_convention.
4203         * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
4204         * alphafbsd-tdep.c: New file.
4205
4206 2001-01-24  Fernando Nasser  <fnasser@redhat.com>
4207
4208         * top.c (print_gdb_version): Update Copyright year.
4209
4210 2001-01-24  J.T. Conklin  <jtc@redback.com>
4211
4212         * dcache.c (dcache_write_line): Fix typo.
4213
4214         * memattr.c (delete_mem_region): Replace free() with xfree().
4215         (mem_number): Add explicit type.
4216
4217         * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
4218         (rw_common): Likewise.
4219
4220 2001-01-24  Fernando Nasser  <fnasser@redhat.com>
4221
4222         * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
4223         for the inferior program arguments.
4224         (run_command, run_no_args_command, init_infcmd)): Use accessor
4225         functions to set the inferior program arguments.
4226         * inferior.h: Add definitions to the accessor functions above.
4227
4228 2001-01-23  Jim Blandy  <jimb@redhat.com>
4229
4230         * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
4231         Implement these correctly, using make_cv_type.
4232
4233 2001-01-23  J.T. Conklin  <jtc@redback.com>
4234
4235         * exec.c (xfer_memory): Add attrib argument.
4236         * infptrace.c (child_xfer_memory): Likewise.
4237         * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
4238         * monitor.c (monitor_xfer_memory): Likewise.
4239         * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
4240         * remote-array.c (array_xfer_memory): Likewise.
4241         * remote-bug.c (bug_xfer_memory): Likewise.
4242         * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
4243         * remote-eb.c (eb_xfer_inferior_memory): Likewise.
4244         * remote-es.c (es1800_xfer_inferior_memory): Likewise.
4245         * remote-mips.c (mips_xfer_memory): Likewise.
4246         * remote-mm.c (mm_xfer_inferior_memory): Likewise.
4247         * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
4248         * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
4249         * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
4250         * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
4251         * remote-sds.c (sds_xfer_memory): Likewise.
4252         * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
4253         * remote-st.c (st2000_xfer_inferior_memory): Likewise.
4254         * remote-udi.c (udi_xfer_inferior_memory): Likewise.
4255         * remote-vx.c (vx_xfer_memory): Likewise.
4256         * remote.c (remote_xfer_memory): Likewise.
4257         * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
4258         * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
4259         * thread-db.c (thread_db_xfer_memory): Likewise.
4260
4261         * target.h (#include "memattr.h"): Added.
4262         (target_ops.to_xfer_memory): Add attrib argument.
4263
4264         * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
4265         * dcache.h (set_dcache_state): Removed declaration.
4266         * dcache.c (set_dcache_state): Removed definition
4267         
4268         * dcache.c: Update module comment, as dcache is now enabled and
4269         disabled with memory region attributes instead of by the global
4270         variable "remotecache".  Add comment describing the interaction
4271         between dcache and memory region attributes.
4272         (dcache_xfer_memory): Add comment describing benefits of moving
4273         cache writeback to a higher level.
4274         (dcache_struct): Removed cache_has_stuff field.  This was used to
4275         record whether the cache had been accessed in order to invalidate
4276         it when it was disabled.  However, this is not needed because the
4277         cache is write through and the code that enables, disables, and
4278         deletes memory regions invalidate the cache.  Add comment which
4279         suggests that we could be more selective and only invalidate those
4280         cache lines containing data from those memory regions.
4281         (dcache_invalidate): Updated.
4282         (dcache_xfer_memory): Updated.
4283         
4284         (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
4285         (dcache_xfer_memory): Removed code that called do_xfer_memory() to
4286         perform a uncached transfer if dcache_enabled_p was clear.  This
4287         function is now only called if caching is enabled for the memory
4288         region.
4289         (dcache_info): Always print cache info.
4290
4291         * target.c (do_xfer_memory): Add attrib argument.
4292         (target_xfer_memory, target_xfer_memory_partial): Break transfer
4293         into chunks defined by memory regions, pass region attributes to
4294         do_xfer_memory().
4295         * dcache.c (dcache_read_line, dcache_write_line): Likewise.
4296
4297         * Makefile.in (SFILES): Add memattr.c.
4298         (COMMON_OBS): Add memattr.o.
4299         (dcache.o): Add target.h to dependencies.
4300         * memattr.c: New file.
4301         * memattr.h: Likewise.
4302
4303         * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
4304         * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
4305         * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
4306         * gdbserver/low-sim.c (#include "defs.h"): Removed.
4307         (mygeneric_load): Rename from generic_load.
4308         
4309         * gdbserver/low-hppabsd.c (#include "server.h"): Added.
4310         (#include "defs.h"): Removed.
4311         (inferior_pid, perror_with_name): Remove declarations.
4312         * gdbserver/low-linux.c: Likewise.
4313         * gdbserver/low-nbsd.c: Likewise.
4314         * gdbserver/low-sparc.c: Likewise.
4315         * gdbserver/low-sun3.c: Likewise.
4316
4317         * i386-stub.c: Re-indent.
4318         * m68k-stub.c: Re-indent.
4319
4320 2001-01-22  Nicholas Duffek  <nsd@redhat.com>
4321
4322         * gdbarch.sh (PARM_BOUNDARY): Define.
4323         * gdbarch.c: Regenerate.
4324         * gdbarch.h: Regenerate.
4325
4326 2001-01-22  J.T. Conklin  <jtc@redback.com>
4327
4328         * ns32k-tdep.c: #include "frame.h"
4329         * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore.  It
4330         appears to have been inadvertantly removed sometime in May 1999.
4331
4332         * Revert 2000-11-09 changes where shared library objects were
4333         moved from NATDEPFILES to TDEPFILES on NetBSD targets.  While
4334         we'd like to be able to debug dynamically linked executables,
4335         this makes it impossible to build a cross debugger on a many
4336         hosts.
4337
4338         * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
4339         * config/i386/nbsdelf.mt: Likewise.
4340         * config/m68k/nbsd.mt: Likewise.
4341         * config/ns32k/nbsd.mt: Likewise.
4342         * config/powerpc/nbsd.mt: Likewise.
4343         * config/sparc/nbsd.mt: Likewise.
4344         * config/sparc/nbsdelf.mt: Likewise.
4345         * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
4346         * config/i386/nbsdelf.mh: Likewise. 
4347         * config/m68k/nbsd.mh: Likewise.
4348         * config/ns32k/nbsd.mh: Likewise.
4349         * config/powerpc/nbsd.mh: Likewise.
4350         * config/sparc/nbsd.mh: Likewise.
4351
4352 2001-01-19  Jason Merrill  <jason@redhat.com>
4353
4354         * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
4355         (process_one_symbol): Likewise.
4356         * dwarfread.c (handle_producer): Likewise.
4357
4358 Thu Jan 18 12:08:57 2001  Andrew Cagney  <cagney@b1.cygnus.com>
4359
4360         * configure.in (build_warnings): Disable -Wuninitialized until GDB
4361         compiles with -Wuninitialized,-Werror.
4362         * configure: Regenerate.
4363
4364         * MAINTAINERS: Add list of buildable targets.
4365
4366 Thu Jan 18 12:48:04 2001  Andrew Cagney  <cagney@b1.cygnus.com>
4367
4368         * defs.h (STRCMP): Delete macro.
4369
4370         * objfiles.c (objfile_relocate): Replace STRCMP with call to
4371         strcmp.
4372         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
4373         * symfile.c (compare_symbols):  Ditto.
4374         * standalone.c (open):  Ditto.
4375         * remote-es.c (verify_break):  Ditto.
4376         * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
4377
4378         * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
4379
4380 Thu Jan 18 12:25:06 2001  Andrew Cagney  <cagney@b1.cygnus.com>
4381
4382         * varobj.c (FREEIF): Delete macro.
4383         (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
4384         call.
4385
4386 2001-01-18  Nick Clifton  <nickc@redhat.com>
4387
4388         * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
4389         (arc_print_insn): No bfd available, so pass NULL to
4390         arc_get_disassembler.
4391
4392 2001-01-09  James Ingham  <jingham@inghji.apple.com>
4393
4394          * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
4395          a mangled symbol rather than recursing into lookup_symbol, since
4396          this will just re-unmangle the name & call lookup_symbol_aux -
4397          leading to an infinite recursion.
4398
4399 2001-01-18  Mark Kettenis  <kettenis@gnu.org>
4400
4401         * infcmd.c (print_return_value): Restore another space lost by
4402         switch to UIOUT. ``$NN='' should be ``$NN =''.
4403
4404 Fri Jan 19 02:31:40 2001  Andrew Cagney  <cagney@b1.cygnus.com>
4405
4406         * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
4407         * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
4408         definition in parenthesis.
4409
4410 Fri Jan 19 02:13:40 2001  Andrew Cagney  <cagney@b1.cygnus.com>
4411
4412         From 2000-10-27 Mark Salter <msalter@redhat.com>:
4413         * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
4414         packet.
4415         (remote_insert_hw_breakpoint): Ditto.
4416
4417 2001-01-17  J.T. Conklin  <jtc@redback.com>
4418
4419         * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
4420         (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
4421         * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
4422         * m68knbsd-tdep.c: New file.
4423
4424         * i386nbsd-tdep.c: Remove #if 0'd out #includes.
4425
4426         * m68knbsd-nat.c: #include gdbcore.h.
4427
4428 Wed Jan 17 09:41:58 2001  Andrew Cagney  <cagney@b1.cygnus.com>
4429
4430         * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
4431
4432 2001-01-16  Michael Snyder  <msnyder@cleaver.cygnus.com>
4433
4434         * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
4435         goes away -- just return false (ie. not stopped by watchpoint).
4436         * source.c (openp): Fix typo in comment.
4437
4438 2001-01-12  Nicholas Duffek  <nsd@redhat.com>
4439
4440         * blockframe.c (generic_get_saved_register): Spelling fix.
4441         * frame.h (FRAME_FP): Spelling fix.
4442
4443 Fri Jan 12 18:29:46 2001  Andrew Cagney  <cagney@b1.cygnus.com>
4444
4445         * infcmd.c (print_return_value): Restore space lost by switch to
4446         UIOUT. ``$NN='' should be ``$NN =''.
4447         
4448 2001-01-08  Nicholas Duffek  <nsd@redhat.com>
4449
4450         * regcache.c (set_register_cached, register_buffer,
4451         real_register, pseudo_register fetch_register, store_register):
4452         New functions.
4453         (register_changed, read_relative_register_raw_bytes_for_frame,
4454         registers_changed, registers_fetched, read_register_bytes,
4455         read_register_gen, write_register_gen, read_register,
4456         read_signed_register, write_register, supply_register): Replace
4457         register_valid[] with register_cached() and
4458         set_register_cached().
4459         (read_register_bytes, read_register_gen, write_register_gen,
4460         read_register, read_signed_register, write_register,
4461         supply_register): Replace registers[] with register_buffer().
4462         (read_register_bytes, read_register_gen, read_register,
4463         read_signed_register): Call fetch_register().
4464         (write_register_gen, write_register): Call real_register() and
4465         store_register().
4466         (write_register_bytes): Call store_register().
4467         * value.h (set_register_cached, register_buffer): Prototype.
4468         * remote.c (remote_fetch_registers): Allocate regs[] with a
4469         run-time size.  Replace register_valid[] with
4470         set_register_cached().
4471         (store_register_using_P, remote_store_registers): Replace
4472         registers[] with register_buffer().
4473
4474 2001-01-08  Nicholas Duffek  <nsd@redhat.com>
4475
4476         * regcache.c: Change "write-back" comment to "write-through".
4477         Change "regno" to "regnum".
4478         (read_register, read_signed_register): Remove "raw" from return
4479         value description.
4480         (supply_register): Spelling fix.
4481         * value.h: Change "regno" to "regnum".
4482
4483 2001-01-08  Fernando Nasser  <fnasser@redhat.com>
4484
4485         * Makefile.in (install-gdbtk): Add .itcl files to the list of files
4486         to be installed.
4487
4488 2001-01-04  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
4489
4490         * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
4491
4492 2001-01-04  Nicholas Duffek  <nsd@redhat.com>
4493
4494         * valops.c (VALUE_SUBSTRING_START): Delete.
4495
4496 2001-01-04  Nicholas Duffek  <nsd@redhat.com>
4497
4498         * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
4499         (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
4500         (cli_utils_h): New variable.
4501         (cli/cli-utils.o): New rule.
4502         * cli/cli-utils.c: New file.
4503         * cli/cli-utils.h: New file.
4504
4505 2001-01-04  Nicholas Duffek  <nsd@redhat.com>
4506
4507         * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
4508         REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
4509
4510 2001-01-03  J.T. Conklin  <jtc@redback.com>
4511
4512         * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
4513         comment.
4514
4515 2001-01-02  Michael Snyder  <msnyder@cleaver.cygnus.com>
4516
4517         * sh-tdep.c (sh_default_store_return_value):  Allow for small return type.
4518         (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
4519         non-float types.
4520         * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
4521         Update copyright notice.
4522         
4523 For older changes see ChangeLog-2000
4524 \f
4525 Local Variables:
4526 mode: change-log
4527 left-margin: 8
4528 fill-column: 74
4529 version-control: never
4530 End: