3c898b1b65c9c0bd100decb60c24ef6af4644239
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2001-02-17  Mark Kettenis  <kettenis@gnu.org>
2
3         * i387-nat.c: Include "i387-nat.h".  Use regnum instead of regno
4         consistently for parameter names.  Fix comments accordingly.
5         (i387_supply_register): New function.
6         (i387_supply_fsave): Implement using i387_supply_register.
7         * i387-nat.h: Use regnum instead of regno consistently for
8         parameter names.  Fix comments accordingly.
9         (i387_supply_register): New prototype.
10
11 2001-02-16  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
12
13         * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT 
14         instead of TARGET_PTR_BIT (to support Harvard architectures).
15
16 2001-02-16  Andrew Cagney  <ac131313@redhat.com>
17
18         From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
19         * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib 
20         argument to parameter list and to call in order to conform to 
21         to_xfer_memory field of struct target_ops.
22
23 2001-02-12  Michael Chastain  <chastain@redhat.com>
24
25         * somsolib.c (som_solib_add_solib_objfile): Do not use
26         section relocation feature of syms_from_objfile.  Do my own
27         section relocation, offsetting each section of the som by
28         either text_addr - text_link_addr or data_start.
29
30 2001-02-16  Andrew Cagney  <ac131313@redhat.com>
31
32         * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
33
34 2001-02-16  Andrew Cagney  <ac131313@redhat.com>
35
36         * MAINTAINERS (paper trail): Update.
37
38 2001-02-16  Mark Kettenis  <kettenis@gnu.org>
39
40         * target.h (target_fetch_registers): Fix comment.
41
42 2001-02-15  Andrew Cagney  <ac131313@redhat.com>
43
44         * f-exp.y: Include <ctype.h>.
45         (parse_number): Ensure that ``i'' is always initialized.
46
47 >>>>>>> 1.966
48 2001-02-14  Jim Kingdon  <jkingdon@engr.sgi.com>
49
50         * MAINTAINERS: Add myself to paper trail section.
51
52 2001-02-14  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
53
54         * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
55         * configure, config.in: Regenerate.
56         * corelow.c: Include <sys/file.h> if present.
57
58 2001-02-14  Andrew Cagney  <ac131313@redhat.com>
59
60         * inflow.c (terminal_ours_1): Initialize ``osigtou''.  Only
61         declare when have SIGTTOU.
62
63 2001-02-14  Eli Zaretskii  <eliz@is.elta.co.il>
64
65         * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
66
67 2001-02-12  Jim Kingdon  <jkingdon@engr.sgi.com>
68
69         * MAINTAINERS: Update my email address.
70
71 2001-02-11  Eli Zaretskii  <eliz@is.elta.co.il>
72
73         * NEWS: Document that "info symbol" works with COFF debug info and
74         its variants.
75
76         * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
77         symbols whose SYMBOL_BFD_SECTION is NULL.
78
79 2000-02-10  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
80
81         Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
82         * xcoffsolib.c (xcoff_solib_address):  Renamed from
83         pc_load_segment_name.  Return NULL if address is not in a shared
84         library.  Cleanup shared library name construction, using xasprintf.
85         Format shared library member names consistent with format in exec.c.
86         (solib_info):  Format shared library member names consistent with
87         format in exec.c.
88         * config/rs6000/nm-rs6000.h:  Replace PC_LOAD_SEGMENT with PC_SOLIB,
89         using xcoff_solib_address for PC_SOLIB definition.
90         * stack.c (print_frame):  Remove PC_LOAD_SEGMENT code, no longer
91         needed.
92
93 2000-02-10  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
94
95         * mipsread.c (read_alphacoff_dynamic_symtab):  Replace alloca calls
96         with xmalloc calls and cleanups.
97
98 2000-02-10  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
99
100         * rs6000-nat.c (child_xfer_memory):  Add missing parameter
101         'struct mem_attrib *' required by 2001-01-23 change.
102
103 2001-02-08  Jim Kingdon  <jkingdon@engr.sgi.com>
104
105         Updates to "make TAGS":
106         * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
107         arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
108         tahoe-tdep.c.
109         (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
110
111 2001-02-08  Eli Zaretskii  <eliz@is.elta.co.il>
112
113         * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
114
115 Wed Feb  7 22:39:26 2001  Andrew Cagney  <cagney@redhat.com>
116
117         From Dean Luick <luick@cray.com>:
118         * defs.h (continuation): Remove unused global variable.
119
120 Wed Feb  7 22:28:31 2001  Andrew Cagney  <cagney@redhat.com>
121
122         * configure.tgt: Remove references to convex, pyramid, altos and
123         tahoe.
124         * configure.host: Ditto.
125         * MAINTAINERS: Ditto.
126         * NEWS: Update.
127
128         * tahoe-tdep.c: Delete obsolete file.
129         * pyr-xdep.c: Ditto.
130         * pyr-tdep.c: Ditto.
131         * convex-tdep.c: Ditto.
132         * convex-xdep.c: Ditto.
133         * config/tahoe/xm-tahoe.h: Ditto.
134         * config/tahoe/tm-tahoe.h: Ditto.
135         * config/tahoe/tahoe.mt: Ditto.
136         * config/tahoe/tahoe.mh: Ditto.
137         * config/pyr/xm-pyr.h: Ditto.
138         * config/pyr/tm-pyr.h: Ditto.
139         * config/pyr/pyramid.mt: Ditto.
140         * config/pyr/pyramid.mh: Ditto.
141         * config/m68k/xm-altos.h: Ditto.
142         * config/m68k/tm-altos.h: Ditto.
143         * config/m68k/altos.mt: Ditto.
144         * config/m68k/altos.mh: Ditto.
145         * config/convex/xm-convex.h: Ditto.
146         * config/convex/tm-convex.h: Ditto.
147         * config/convex/convex.mt: Ditto.
148         * config/convex/convex.mh: Ditto.
149         * config/convex/Convex.notes: Ditto.
150         * config/arm/xm-arm.h: Ditto.
151         * config/arm/nm-arm.h: Ditto.
152         * config/arm/arm.mt: Ditto.
153         * config/arm/arm.mh: Ditto.
154         * arm-convert.s: Ditto.
155         * arm-xdep.c: Ditto.
156         * altos-xdep.c: Ditto.
157
158 Wed Feb  7 19:41:21 2001  Andrew Cagney  <cagney@redhat.com>
159
160         * defs.h (internal_error, internal_verror): Add __FILE__ and
161         __LINE__ parameter.
162         * utils.c (internal_error, internal_verror): Update.
163
164         * v850-tdep.c: Update calls to internal_error.
165         * utils.c: Ditto.
166         * ui-out.c: Ditto.
167         * ui-file.c: Ditto.
168         * target.h: Ditto.
169         * symtab.h: Ditto.
170         * symm-nat.c: Ditto.
171         * sparc-tdep.c: Ditto.
172         * source.c: Ditto.
173         * serial.c: Ditto.
174         * rs6000-tdep.c: Ditto.
175         * rs6000-nat.c: Ditto.
176         * remote.c: Ditto.
177         * remote-vx.c: Ditto.
178         * remote-sim.c: Ditto.
179         * remote-mips.c: Ditto.
180         * regcache.c: Ditto.
181         * objfiles.h: Ditto.
182         * objfiles.c: Ditto.
183         * mn10300-tdep.c: Ditto.
184         * mips-tdep.c: Ditto.
185         * maint.c: Ditto.
186         * m68k-tdep.c: Ditto.
187         * m3-nat.c: Ditto.
188         * language.c: Ditto.
189         * infptrace.c: Ditto.
190         * inferior.h: Ditto.
191         * infcmd.c: Ditto.
192         * ia64-tdep.c: Ditto.
193         * i386-tdep.c: Ditto.
194         * i386-linux-nat.c: Ditto.
195         * hppah-nat.c: Ditto.
196         * go32-nat.c: Ditto.
197         * findvar.c: Ditto.
198         * f-lang.c: Ditto.
199         * elfread.c: Ditto.
200         * event-loop.c: Ditto.
201         * dwarf2read.c: Ditto.
202         * dsrec.c: Ditto.
203         * d30v-tdep.c: Ditto.
204         * d10v-tdep.c: Ditto.
205         * cli/cli-setshow.c: Ditto.
206         * cli/cli-script.c: Ditto.
207         * ch-exp.c: Ditto.
208         * breakpoint.c: Ditto.
209         * ax-gdb.c: Ditto.
210         * arch-utils.c: Ditto.
211         * a29k-tdep.c: Ditto.
212         * gdb_assert.h: Ditto.
213         * gdbarch.sh: Ditto.
214         * gdbarch.h, gdbarch.c: Re-generate.
215         
216 2001-02-07  Andrew Cagney  <ac131313@redhat.com>
217
218         From Mark Kettenis <kettenis@gnu.org>:
219         * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
220
221 2001-02-07  Andrew Cagney  <ac131313@redhat.com>
222
223         * remote-sim.c (dump_mem): Cleanup printf format argument.
224         * MAINTAINERS: Update, mn10300-elf now builds.
225
226 2001-02-07  Mark Kettenis  <kettenis@gnu.org>
227
228         * event-top.c: Remove duplicate #include <signal.h>.
229
230 2001-02-06  Andrew Cagney  <ac131313@redhat.com>
231
232         * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
233         allocated buffer.
234         (save_inferior_pid): Restore the PID from that tempoary
235         buffer. Delete the buffer.
236         * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
237
238 2001-02-06  Andrew Cagney  <ac131313@redhat.com>
239
240         * MAINTAINERS: Add ``The Obvious Fix Rule''.
241
242 2001-02-06  Andrew Cagney  <ac131313@redhat.com>
243
244         * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
245
246 2001-02-06  Andrew Cagney  <ac131313@cygnus.com>
247
248         * gdbarch.sh: Include "gdb_assert.h".
249         (struct gdbarch): Change ``nr_data'' to unsigned.
250         (alloc_gdbarch_data, free_gdbarch_data): New functions.
251         (gdbarch_free): Free the data-pointer vector.  Use xfree to delete
252         architecture vector.
253         (struct gdbarch_data, struct gdbarch_data_registration): Move init
254         method to gdbarch_data.  Add free method, make index unsigned.
255         (struct gdbarch_data_registry): Make nr unsigned.
256         (register_gdbarch_data): Add free parameter. Store in
257         gdbarch_data.
258         (init_gdbarch_data): Use set_gdbarch_data.
259         (set_gdbarch_data): New function.
260         
261         * gdbarch.h, gdbarch.c: Re-generate.
262         
263 2001-02-06  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
264
265         * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
266         fprintf_filtered with correct arguments.
267
268 2001-02-06  Michael Snyder  <msnyder@makita.cygnus.com>
269         Submitted by Paul Hilfinger (hilfingr@gnat.com) 
270         and Andrei Petrov (and@genesyslab.com).
271         * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
272         must be allocated dynamically, since these are no longer constants.
273         * infcmd.c: Ditto.
274         * regcache.c: Ditto.
275         * remote.c: Ditto.
276         * sol-thread.c: Ditto.
277         * valops.c: Ditto.
278         * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
279         work-around for a missing Sun header file in solaris for sparc64.
280
281 2001-02-04  Philip Blundell  <philb@gnu.org>
282
283         * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
284         thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
285         * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
286         GET_THREAD_SIGNALS): Define.
287         * arm-linux-nat.c (fill_gregset): Correct type of argument.
288         (supply_gregset): Likewise.
289         (fill_fpregset): Likewise.
290         (supply_fpregset): Likewise.
291
292 Tue Feb  6 11:58:57 2001  David Taylor  <taylor@redhat.com>
293
294         * valops.c (value_cast): If casting a scalar to a pointer, do not
295         issue a message about truncation unless it exceeds the length of
296         an address, not the length of a pointer.  This is because what the
297         user gives us is an address, not a pointer, and we will ultimately
298         convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
299         to a pointer.  This allows things like "print *(int *)0x01000234"
300         to work without generating a misleading message on a target having
301         two byte pointers and four byte addresses.
302
303 2001-02-05  Christopher Faylor  <cgf@cygnus.com>
304
305         * win32-nat.c: Change PTR to void * throughout.
306
307 2001-02-05  J.T. Conklin  <jtc@redback.com>
308
309         * signals.h: Removed.
310         * event-top.c (#include <signal.h>): Changed from signals.h.
311         * inflow.c: Likewise.
312         * mac-xdep.c: Likewise.
313         * ser-pipe.c: Likewise.
314         * ser-tcp.c: Likewise.
315         * standalone.c: Likewise.
316         * top.c: Likewise.
317         * utils.c: Likewise.
318         * Makefile.in: Removed signals.h from dependencies.
319
320 2001-02-05  Christopher Faylor  <cgf@cygnus.com>
321
322         Change suggested by Dean Luick <luick@cray.com>
323         * inferior.h (step_over_calls_kind): Remove trailing comma from
324         last enum element.
325         (step_over_calls): Declare as extern rather than global.
326
327 2001-02-05  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
328
329         * sh-tdep.c: Update copyright.
330         (sh_extract_return_value): Rewrite.
331         (sh3e_sh4_extract_return_value): New function.
332         (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
333         version of the function for sh3e and sh4 CPUs.
334
335 2001-02-05  Michael Chastain  <chastain@redhat.com>
336
337         * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
338         to conform with interface change.
339
340 2001-02-04  Eli Zaretskii  <eliz@is.elta.co.il>
341
342         * config/djgpp/fnchange.lst: Tweak to make consistent with the
343         new files.
344
345         * config/djgpp/djconfig.sh: Use explicit absolute file name when
346         invoking `find'.
347
348         * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
349         UART_FIFO_WORKS is defined.  Otherwise use outportb.
350         From Francisco Pastor <fpastor.etra-id@etra.es>
351
352         * go32-nat.c (go32_xfer_memory): Make the argument list consistent
353         with target.h's `to_xfer_memory' member.
354
355 2001-02-02  J.T. Conklin  <jtc@redback.com>
356
357         * ppc-bdm.c (#include <signal.h>): Removed.
358         * remote-array.c: Likewise.
359         * remote-bug.c: Likewise.
360         * remote-e7000.c: Likewise.
361         * remote-mips.c: Likewise.
362         * remote-os9k.c: Likewise.
363         * remote-st.c: Likewise.
364         * remote-udi.c: Likewise.
365         * remote-vx29k.c: Likewise.
366         * remote-vx68.c: Likewise.
367         * remote-vx960.c: Likewise.
368         * remote-vxmips.c: Likewise.
369         * remote-vxsparc.c: Likewise.
370
371 2001-02-02  John Moore  <jmoore@redhat.com>
372
373         * remote-utils.h (sr_set_device): Changed free() to xfree() where 
374         appropriate.  Also changed Copyright to include 2001.
375         * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
376         * value.h (value_free): Likewise.
377         * gdbarch.sh (gdbarch_free): Likewise.
378         * gdbarch.c, gdbarch.h: Regenerated.
379
380 2001-02-02  John Moore  <jmoore@redhat.com>
381
382         * cli/cli-cmds.c (apropos_command): Changed occurance of free() to 
383         xfree().  Also changed Copyright to include 2001.
384
385 2001-02-02  J.T. Conklin  <jtc@redback.com>
386
387         * monitor.c (#include "gdb_wait.h"): Removed.
388         * ocd.c: Likewise.
389         * ppc-bdm.c: Likewise.
390         * remote-adapt.c: Likewise.
391         * remote-array.c: Likewise.
392         * remote-bug.c: Likewise.
393         * remote-e7000.c: Likewise.
394         * remote-eb.c: Likewise.
395         * remote-es.c: Likewise.
396         * remote-mips.c: Likewise.
397         * remote-mm.c: Likewise.
398         * remote-nindy.c: Likewise.
399         * remote-os9k.c: Likewise.
400         * remote-rdi.c: Likewise.
401         * remote-rdp.c: Likewise.
402         * remote-sds.c: Likewise.
403         * remote-sim.c: Likewise.
404         * remote-st.c: Likewise.
405         * remote-udi.c: Likewise.
406         * remote-vx.c: Likewise.
407         * remote-vx29k.c: Likewise.
408         * remote-vx68.c: Likewise.
409         * remote-vx960.c: Likewise.
410         * remote-vxmips.c: Likewise.
411         * remote-vxsparc.c: Likewise.
412         * remote.c: Likewise.
413         * ser-pipe.c: Likewise.
414         * ser-unix.c: Likewise.
415         * Makefile.in: Updated dependencies.
416
417 2001-01-31  David Smith  <dsmith@redhat.com>
418
419         * event-loop.c: Change inclusion of string.h to gdb_string.h and
420         updated the copyright notice.
421         * ser-pipe.c: Ditto.
422         * mi/mi-cmds.c: Ditto.
423         * mi/mi-console.c: Ditto.
424         * mi/mi-getopt.c: Ditto.
425         * mi/mi-parse.c: Ditto.
426
427 2001-01-31  David Smith  <dsmith@redhat.com>
428
429         * MAINTAINERS: Add David Smith to Write After Approval list.
430
431 Tue Jan 30 15:43:08 2001  Andrew Cagney  <cagney@cygnus.com>
432
433         * cli/cli-utils.c (putchar_filtered): Move function from here.
434         * utils.c (putchar_filtered): To here.
435         * cli/cli-utils.h (putchar_filtered): Move declaration from here.
436         * defs.h (putchar_filtered): To here.
437         
438 Tue Jan 30 17:27:11 2001  Andrew Cagney  <cagney@redhat.com>
439
440         * configure.in (AC_CHECK_FUNCS): Replace vfork test with
441         AC_FUNC_VFORK macro.
442         * config.in, configure: Re-generate.
443
444         * gdb_vfork.h: New file.
445         * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
446         * fork-child.c (fork_inferior): Ditto.
447         
448 Tue Jan 30 17:09:07 2001  Andrew Cagney  <cagney@redhat.com>
449
450         * defs.h (strsave): Delete declaration.
451         * utils.c (strsave): Delete definition.
452         * TODO (strsave): Update
453
454         * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
455         * sparcl-tdep.c (sparclite_open): Ditto.
456         * mips-tdep.c (mips_set_processor_type_command):  Ditto.
457         (_initialize_mips_tdep):  Ditto.
458         * solib.c (solib_open):  Ditto.
459         * symfile.c (add_filename_language):  Ditto.
460         (set_ext_lang_command):  Ditto.
461         * source.c (init_source_path):  Ditto.
462         (mod_path):  Ditto.
463         * sh3-rom.c (sh3_open):  Ditto.
464         (sh3e_open):  Ditto.
465         * serial.c (serial_open):  Ditto.
466         * remote-mips.c (common_open):  Ditto.
467         * monitor.c (monitor_open):  Ditto.
468         * m32r-rom.c (m32r_upload_command):  Ditto.
469         * infcmd.c (path_command):  Ditto.
470         * f-exp.y (parse_number):  Ditto.
471         * breakpoint.c (create_longjmp_breakpoint):  Ditto.
472         (create_thread_event_breakpoint):  Ditto.
473         * arc-tdep.c (arc_set_cpu_type_command):  Ditto.
474         (_initialize_arc_tdep):  Ditto.
475
476 Tue Jan 30 15:14:26 2001  Andrew Cagney  <cagney@skil>
477
478         * cli/cli-script.c (define_command): Check for a bad hook value in
479         switch statement.
480
481 2001-01-30  J.T. Conklin  <jtc@redback.com>
482
483         * configure/sh/embed.mt: New file.
484         * configure/sh/linux.mt: New file.
485         * configure/sh/sh.mt: Removed.
486         * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
487         (sh-*-*): Removed.
488
489 2001-01-29  Michael Chastain  <chastain@redhat.com>
490
491         * symtab.c (block_lookup_symbol): Use 'namespace' parameter in
492         symbol comparisons in binary search.
493
494 2000-01-27  Christopher Faylor  <cgf@cygnus.com>
495
496         * win32-nat.c (child_xfer_memory): Add missing argument required by
497         2001-01-23 change.
498
499 2001-01-27  Mark Kettenis  <kettenis@gnu.org>
500
501         * ui-out.c (do_list_end): New function.
502         (make_cleanup_ui_out_list_end): New function.
503         * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
504         * stack.c (print_frame) [UI_OUT]: Call
505         make_cleanup_ui_out_list_end to make sure we mark the end of the
506         list if we do a non-local exit.  At the end of the function,
507         instead of calling ui_out_list_end directly, let do_cleanups
508         handle it.
509
510 2001-01-26  Fernando Nasser  <fnasser@redhat.com>
511
512         Fix double parsing of filenames passed as command line arguments
513         to GDB (causes weird handling of escape characters).
514         Also, remove dependencies on the CLI from libgdb.
515         * call-cmds.h: Remove declaration of exec_file_command().
516         * gdbcore.h: Remove declaration of exec_file_command().
517         Add declarations for exec_open() and exec_file_clear().
518         * symfile.h: Add declarations for symbol_file_add_main() and
519         symbol_file_clear().
520         * exec.c (exec_open): New function. Implements to_open for exec
521         targets.
522         (exec_file_clear): New function. Makes GDB forget about a previously
523         specified executable file.
524         (exec_file_attach): Move parsing of arguments from here ...
525         (exec_file_command): ... to here.
526         (init_exec_ops): Use exec_open(), not exec_file_command() to
527         implement to_open for exec targets.
528         * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
529         with default values.  Used when the file name has already been parsed.
530         (symbol_file_clear): New function. Makes GDB forget about previously
531         read symbols.
532         (symbol_file_command): Call the above function instead of inline code.
533         * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
534         "call-cmds.h".
535         (captured_main): Call exec_file_attach() and symbol_file_add_main()
536         instead of exec_file_command() and symbol_file_command().
537         (captured_main): Add comment.
538         * corefile.c: Include "symfile.h".
539         (core_file_command): Call symbol_file_add_main() instead of
540         symbol_file_command().
541         (reopen_exec_file): Call exec_open() instead of exec_file_command().
542         * infcmd.c: Include "symfile.h".
543         (attach_command): Call symbol_file_add_main() instead of 
544         symbol_file_command().
545         * infrun.c: Remove comment about the inclusion of "symfile.h",
546         not any longer appropriate.
547         (follow_exec): Call symbol_file_add_main() instead of 
548         symbol_file_command().
549         * remote-es.c: Include "symfile.h".
550         (es1800_load): Call symbol_file_add_main() instead of 
551         symbol_file_command().
552         * remote-vx.c: Remove comment about the inclusion of "symfile.h",
553         not any longer appropriate.
554         (vx-wait): Call symbol_file_add_main() instead of 
555         symbol_file_command().
556         * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
557         instead of symbol_file_command().
558         * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
559         symbol_file_add_main() instead of exec_file_command() and
560         symbol_file_command().
561         * Makefile.in: Update dependencies.
562
563 2001-01-26  Jeff Holcomb  <jeffh@redhat.com>
564
565         * remote-udi.c (udi_open): Change strdup to xstrdup.
566         * thread.c (thread_apply_all_command): Change strdup to xstrdup.
567         Update copyright message.
568         * varobj.c (delete_variable_1): Likewise.
569
570         * gdb_string.h: Remove declaration of strdup.  Update copyright
571         message.
572         * config/xm-mpw.h: Likewise.
573         * config/i386/xm-i386mach.h: Likewise.
574         * config/m68k/xm-apollo68b.h: Likewise.
575         * config/m68k/xm-hp300bsd.h: Likewise.
576         * config/rs6000/xm-rs6000.h: Likewise.
577         * config/vax/xm-vaxult.h: Remove declaration of strdup.
578         * config/vax/xm-vaxult2.h: Likewise.
579
580 2001-01-26  Jeff Holcomb  <jeffh@redhat.com>
581
582         * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
583
584 2001-01-25  J.T. Conklin  <jtc@redback.com>
585
586         * target.c (target_xfer_memory_partial): Return -1 on failure due
587         to invalid access mode attribute.
588
589 2001-01-25  Christopher Faylor  <cgf@cygnus.com>
590
591         * win32-nat.c (_initialize_core_win32): Prototype correctly.
592
593 2001-01-25  Mark Kettenis  <kettenis@gnu.org>
594
595         * config/alpha/tm-fbsd.h: Update copyright.
596         (USE_STRUCT_CONVENTION): Define in terms of
597         alphabsd_use_struct_convention.
598         * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
599         * alphafbsd-tdep.c: New file.
600
601 2001-01-24  Fernando Nasser  <fnasser@redhat.com>
602
603         * top.c (print_gdb_version): Update Copyright year.
604
605 2001-01-24  J.T. Conklin  <jtc@redback.com>
606
607         * dcache.c (dcache_write_line): Fix typo.
608
609         * memattr.c (delete_mem_region): Replace free() with xfree().
610         (mem_number): Add explicit type.
611
612         * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
613         (rw_common): Likewise.
614
615 2001-01-24  Fernando Nasser  <fnasser@redhat.com>
616
617         * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
618         for the inferior program arguments.
619         (run_command, run_no_args_command, init_infcmd)): Use accessor
620         functions to set the inferior program arguments.
621         * inferior.h: Add definitions to the accessor functions above.
622
623 2001-01-23  Jim Blandy  <jimb@redhat.com>
624
625         * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
626         Implement these correctly, using make_cv_type.
627
628 2001-01-23  J.T. Conklin  <jtc@redback.com>
629
630         * exec.c (xfer_memory): Add attrib argument.
631         * infptrace.c (child_xfer_memory): Likewise.
632         * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
633         * monitor.c (monitor_xfer_memory): Likewise.
634         * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
635         * remote-array.c (array_xfer_memory): Likewise.
636         * remote-bug.c (bug_xfer_memory): Likewise.
637         * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
638         * remote-eb.c (eb_xfer_inferior_memory): Likewise.
639         * remote-es.c (es1800_xfer_inferior_memory): Likewise.
640         * remote-mips.c (mips_xfer_memory): Likewise.
641         * remote-mm.c (mm_xfer_inferior_memory): Likewise.
642         * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
643         * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
644         * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
645         * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
646         * remote-sds.c (sds_xfer_memory): Likewise.
647         * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
648         * remote-st.c (st2000_xfer_inferior_memory): Likewise.
649         * remote-udi.c (udi_xfer_inferior_memory): Likewise.
650         * remote-vx.c (vx_xfer_memory): Likewise.
651         * remote.c (remote_xfer_memory): Likewise.
652         * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
653         * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
654         * thread-db.c (thread_db_xfer_memory): Likewise.
655
656         * target.h (#include "memattr.h"): Added.
657         (target_ops.to_xfer_memory): Add attrib argument.
658
659         * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
660         * dcache.h (set_dcache_state): Removed declaration.
661         * dcache.c (set_dcache_state): Removed definition
662         
663         * dcache.c: Update module comment, as dcache is now enabled and
664         disabled with memory region attributes instead of by the global
665         variable "remotecache".  Add comment describing the interaction
666         between dcache and memory region attributes.
667         (dcache_xfer_memory): Add comment describing benefits of moving
668         cache writeback to a higher level.
669         (dcache_struct): Removed cache_has_stuff field.  This was used to
670         record whether the cache had been accessed in order to invalidate
671         it when it was disabled.  However, this is not needed because the
672         cache is write through and the code that enables, disables, and
673         deletes memory regions invalidate the cache.  Add comment which
674         suggests that we could be more selective and only invalidate those
675         cache lines containing data from those memory regions.
676         (dcache_invalidate): Updated.
677         (dcache_xfer_memory): Updated.
678         
679         (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
680         (dcache_xfer_memory): Removed code that called do_xfer_memory() to
681         perform a uncached transfer if dcache_enabled_p was clear.  This
682         function is now only called if caching is enabled for the memory
683         region.
684         (dcache_info): Always print cache info.
685
686         * target.c (do_xfer_memory): Add attrib argument.
687         (target_xfer_memory, target_xfer_memory_partial): Break transfer
688         into chunks defined by memory regions, pass region attributes to
689         do_xfer_memory().
690         * dcache.c (dcache_read_line, dcache_write_line): Likewise.
691
692         * Makefile.in (SFILES): Add memattr.c.
693         (COMMON_OBS): Add memattr.o.
694         (dcache.o): Add target.h to dependencies.
695         * memattr.c: New file.
696         * memattr.h: Likewise.
697
698         * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
699         * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
700         * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
701         * gdbserver/low-sim.c (#include "defs.h"): Removed.
702         (mygeneric_load): Rename from generic_load.
703         
704         * gdbserver/low-hppabsd.c (#include "server.h"): Added.
705         (#include "defs.h"): Removed.
706         (inferior_pid, perror_with_name): Remove declarations.
707         * gdbserver/low-linux.c: Likewise.
708         * gdbserver/low-nbsd.c: Likewise.
709         * gdbserver/low-sparc.c: Likewise.
710         * gdbserver/low-sun3.c: Likewise.
711
712         * i386-stub.c: Re-indent.
713         * m68k-stub.c: Re-indent.
714
715 2001-01-22  Nicholas Duffek  <nsd@redhat.com>
716
717         * gdbarch.sh (PARM_BOUNDARY): Define.
718         * gdbarch.c: Regenerate.
719         * gdbarch.h: Regenerate.
720
721 2001-01-22  J.T. Conklin  <jtc@redback.com>
722
723         * ns32k-tdep.c: #include "frame.h"
724         * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore.  It
725         appears to have been inadvertantly removed sometime in May 1999.
726
727         * Revert 2000-11-09 changes where shared library objects were
728         moved from NATDEPFILES to TDEPFILES on NetBSD targets.  While
729         we'd like to be able to debug dynamically linked executables,
730         this makes it impossible to build a cross debugger on a many
731         hosts.
732
733         * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
734         * config/i386/nbsdelf.mt: Likewise.
735         * config/m68k/nbsd.mt: Likewise.
736         * config/ns32k/nbsd.mt: Likewise.
737         * config/powerpc/nbsd.mt: Likewise.
738         * config/sparc/nbsd.mt: Likewise.
739         * config/sparc/nbsdelf.mt: Likewise.
740         * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
741         * config/i386/nbsdelf.mh: Likewise. 
742         * config/m68k/nbsd.mh: Likewise.
743         * config/ns32k/nbsd.mh: Likewise.
744         * config/powerpc/nbsd.mh: Likewise.
745         * config/sparc/nbsd.mh: Likewise.
746
747 2001-01-19  Jason Merrill  <jason@redhat.com>
748
749         * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
750         (process_one_symbol): Likewise.
751         * dwarfread.c (handle_producer): Likewise.
752
753 Thu Jan 18 12:08:57 2001  Andrew Cagney  <cagney@b1.cygnus.com>
754
755         * configure.in (build_warnings): Disable -Wuninitialized until GDB
756         compiles with -Wuninitialized,-Werror.
757         * configure: Regenerate.
758
759         * MAINTAINERS: Add list of buildable targets.
760
761 Thu Jan 18 12:48:04 2001  Andrew Cagney  <cagney@b1.cygnus.com>
762
763         * defs.h (STRCMP): Delete macro.
764
765         * objfiles.c (objfile_relocate): Replace STRCMP with call to
766         strcmp.
767         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
768         * symfile.c (compare_symbols):  Ditto.
769         * standalone.c (open):  Ditto.
770         * remote-es.c (verify_break):  Ditto.
771         * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
772
773         * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
774
775 Thu Jan 18 12:25:06 2001  Andrew Cagney  <cagney@b1.cygnus.com>
776
777         * varobj.c (FREEIF): Delete macro.
778         (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
779         call.
780
781 2001-01-18  Nick Clifton  <nickc@redhat.com>
782
783         * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
784         (arc_print_insn): No bfd available, so pass NULL to
785         arc_get_disassembler.
786
787 2001-01-09  James Ingham  <jingham@inghji.apple.com>
788
789          * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
790          a mangled symbol rather than recursing into lookup_symbol, since
791          this will just re-unmangle the name & call lookup_symbol_aux -
792          leading to an infinite recursion.
793
794 2001-01-18  Mark Kettenis  <kettenis@gnu.org>
795
796         * infcmd.c (print_return_value): Restore another space lost by
797         switch to UIOUT. ``$NN='' should be ``$NN =''.
798
799 Fri Jan 19 02:31:40 2001  Andrew Cagney  <cagney@b1.cygnus.com>
800
801         * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
802         * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
803         definition in parenthesis.
804
805 Fri Jan 19 02:13:40 2001  Andrew Cagney  <cagney@b1.cygnus.com>
806
807         From 2000-10-27 Mark Salter <msalter@redhat.com>:
808         * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
809         packet.
810         (remote_insert_hw_breakpoint): Ditto.
811
812 2001-01-17  J.T. Conklin  <jtc@redback.com>
813
814         * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
815         (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
816         * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
817         * m68knbsd-tdep.c: New file.
818
819         * i386nbsd-tdep.c: Remove #if 0'd out #includes.
820
821         * m68knbsd-nat.c: #include gdbcore.h.
822
823 Wed Jan 17 09:41:58 2001  Andrew Cagney  <cagney@b1.cygnus.com>
824
825         * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
826
827 2001-01-16  Michael Snyder  <msnyder@cleaver.cygnus.com>
828
829         * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
830         goes away -- just return false (ie. not stopped by watchpoint).
831         * source.c (openp): Fix typo in comment.
832
833 2001-01-12  Nicholas Duffek  <nsd@redhat.com>
834
835         * blockframe.c (generic_get_saved_register): Spelling fix.
836         * frame.h (FRAME_FP): Spelling fix.
837
838 Fri Jan 12 18:29:46 2001  Andrew Cagney  <cagney@b1.cygnus.com>
839
840         * infcmd.c (print_return_value): Restore space lost by switch to
841         UIOUT. ``$NN='' should be ``$NN =''.
842         
843 2001-01-08  Nicholas Duffek  <nsd@redhat.com>
844
845         * regcache.c (set_register_cached, register_buffer,
846         real_register, pseudo_register fetch_register, store_register):
847         New functions.
848         (register_changed, read_relative_register_raw_bytes_for_frame,
849         registers_changed, registers_fetched, read_register_bytes,
850         read_register_gen, write_register_gen, read_register,
851         read_signed_register, write_register, supply_register): Replace
852         register_valid[] with register_cached() and
853         set_register_cached().
854         (read_register_bytes, read_register_gen, write_register_gen,
855         read_register, read_signed_register, write_register,
856         supply_register): Replace registers[] with register_buffer().
857         (read_register_bytes, read_register_gen, read_register,
858         read_signed_register): Call fetch_register().
859         (write_register_gen, write_register): Call real_register() and
860         store_register().
861         (write_register_bytes): Call store_register().
862         * value.h (set_register_cached, register_buffer): Prototype.
863         * remote.c (remote_fetch_registers): Allocate regs[] with a
864         run-time size.  Replace register_valid[] with
865         set_register_cached().
866         (store_register_using_P, remote_store_registers): Replace
867         registers[] with register_buffer().
868
869 2001-01-08  Nicholas Duffek  <nsd@redhat.com>
870
871         * regcache.c: Change "write-back" comment to "write-through".
872         Change "regno" to "regnum".
873         (read_register, read_signed_register): Remove "raw" from return
874         value description.
875         (supply_register): Spelling fix.
876         * value.h: Change "regno" to "regnum".
877
878 2001-01-08  Fernando Nasser  <fnasser@redhat.com>
879
880         * Makefile.in (install-gdbtk): Add .itcl files to the list of files
881         to be installed.
882
883 2001-01-04  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
884
885         * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
886
887 2001-01-04  Nicholas Duffek  <nsd@redhat.com>
888
889         * valops.c (VALUE_SUBSTRING_START): Delete.
890
891 2001-01-04  Nicholas Duffek  <nsd@redhat.com>
892
893         * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
894         (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
895         (cli_utils_h): New variable.
896         (cli/cli-utils.o): New rule.
897         * cli/cli-utils.c: New file.
898         * cli/cli-utils.h: New file.
899
900 2001-01-04  Nicholas Duffek  <nsd@redhat.com>
901
902         * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
903         REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
904
905 2001-01-03  J.T. Conklin  <jtc@redback.com>
906
907         * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
908         comment.
909
910 2001-01-02  Michael Snyder  <msnyder@cleaver.cygnus.com>
911
912         * sh-tdep.c (sh_default_store_return_value):  Allow for small return type.
913         (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
914         non-float types.
915         * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
916         Update copyright notice.
917         
918 For older changes see ChangeLog-2000
919 \f
920 Local Variables:
921 mode: change-log
922 left-margin: 8
923 fill-column: 74
924 version-control: never
925 End: