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