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