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