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