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