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