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