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