Move putchar_filtered() to utils.c.
[external/binutils.git] / gdb / ChangeLog
1 Tue Jan 30 15:43:08 2001  Andrew Cagney  <cagney@cygnus.com>
2
3         * cli/cli-utils.c (putchar_filtered): Move function from here.
4         * utils.c (putchar_filtered): To here.
5         * cli/cli-utils.h (putchar_filtered): Move declaration from here.
6         * defs.h (putchar_filtered): To here.
7         
8 Tue Jan 30 17:27:11 2001  Andrew Cagney  <cagney@redhat.com>
9
10         * configure.in (AC_CHECK_FUNCS): Replace vfork test with
11         AC_FUNC_VFORK macro.
12         * config.in, configure: Re-generate.
13
14         * gdb_vfork.h: New file.
15         * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
16         * fork-child.c (fork_inferior): Ditto.
17         
18 Tue Jan 30 17:09:07 2001  Andrew Cagney  <cagney@redhat.com>
19
20         * defs.h (strsave): Delete declaration.
21         * utils.c (strsave): Delete definition.
22         * TODO (strsave): Update
23
24         * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
25         * sparcl-tdep.c (sparclite_open): Ditto.
26         * mips-tdep.c (mips_set_processor_type_command):  Ditto.
27         (_initialize_mips_tdep):  Ditto.
28         * solib.c (solib_open):  Ditto.
29         * symfile.c (add_filename_language):  Ditto.
30         (set_ext_lang_command):  Ditto.
31         * source.c (init_source_path):  Ditto.
32         (mod_path):  Ditto.
33         * sh3-rom.c (sh3_open):  Ditto.
34         (sh3e_open):  Ditto.
35         * serial.c (serial_open):  Ditto.
36         * remote-mips.c (common_open):  Ditto.
37         * monitor.c (monitor_open):  Ditto.
38         * m32r-rom.c (m32r_upload_command):  Ditto.
39         * infcmd.c (path_command):  Ditto.
40         * f-exp.y (parse_number):  Ditto.
41         * breakpoint.c (create_longjmp_breakpoint):  Ditto.
42         (create_thread_event_breakpoint):  Ditto.
43         * arc-tdep.c (arc_set_cpu_type_command):  Ditto.
44         (_initialize_arc_tdep):  Ditto.
45
46 Tue Jan 30 15:14:26 2001  Andrew Cagney  <cagney@skil>
47
48         * cli/cli-script.c (define_command): Check for a bad hook value in
49         switch statement.
50
51 2001-01-30  J.T. Conklin  <jtc@redback.com>
52
53         * configure/sh/embed.mt: New file.
54         * configure/sh/linux.mt: New file.
55         * configure/sh/sh.mt: Removed.
56         * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
57         (sh-*-*): Removed.
58
59 2001-01-29  Michael Chastain  <chastain@redhat.com>
60
61         * symtab.c (block_lookup_symbol): Use 'namespace' parameter in
62         symbol comparisons in binary search.
63
64 2000-01-27  Christopher Faylor  <cgf@cygnus.com>
65
66         * win32-nat.c (child_xfer_memory): Add missing argument required by
67         2001-01-23 change.
68
69 2001-01-27  Mark Kettenis  <kettenis@gnu.org>
70
71         * ui-out.c (do_list_end): New function.
72         (make_cleanup_ui_out_list_end): New function.
73         * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
74         * stack.c (print_frame) [UI_OUT]: Call
75         make_cleanup_ui_out_list_end to make sure we mark the end of the
76         list if we do a non-local exit.  At the end of the function,
77         instead of calling ui_out_list_end directly, let do_cleanups
78         handle it.
79
80 2001-01-26  Fernando Nasser  <fnasser@redhat.com>
81
82         Fix double parsing of filenames passed as command line arguments
83         to GDB (causes weird handling of escape characters).
84         Also, remove dependencies on the CLI from libgdb.
85         * call-cmds.h: Remove declaration of exec_file_command().
86         * gdbcore.h: Remove declaration of exec_file_command().
87         Add declarations for exec_open() and exec_file_clear().
88         * symfile.h: Add declarations for symbol_file_add_main() and
89         symbol_file_clear().
90         * exec.c (exec_open): New function. Implements to_open for exec
91         targets.
92         (exec_file_clear): New function. Makes GDB forget about a previously
93         specified executable file.
94         (exec_file_attach): Move parsing of arguments from here ...
95         (exec_file_command): ... to here.
96         (init_exec_ops): Use exec_open(), not exec_file_command() to
97         implement to_open for exec targets.
98         * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
99         with default values.  Used when the file name has already been parsed.
100         (symbol_file_clear): New function. Makes GDB forget about previously
101         read symbols.
102         (symbol_file_command): Call the above function instead of inline code.
103         * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
104         "call-cmds.h".
105         (captured_main): Call exec_file_attach() and symbol_file_add_main()
106         instead of exec_file_command() and symbol_file_command().
107         (captured_main): Add comment.
108         * corefile.c: Include "symfile.h".
109         (core_file_command): Call symbol_file_add_main() instead of
110         symbol_file_command().
111         (reopen_exec_file): Call exec_open() instead of exec_file_command().
112         * infcmd.c: Include "symfile.h".
113         (attach_command): Call symbol_file_add_main() instead of 
114         symbol_file_command().
115         * infrun.c: Remove comment about the inclusion of "symfile.h",
116         not any longer appropriate.
117         (follow_exec): Call symbol_file_add_main() instead of 
118         symbol_file_command().
119         * remote-es.c: Include "symfile.h".
120         (es1800_load): Call symbol_file_add_main() instead of 
121         symbol_file_command().
122         * remote-vx.c: Remove comment about the inclusion of "symfile.h",
123         not any longer appropriate.
124         (vx-wait): Call symbol_file_add_main() instead of 
125         symbol_file_command().
126         * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
127         instead of symbol_file_command().
128         * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
129         symbol_file_add_main() instead of exec_file_command() and
130         symbol_file_command().
131         * Makefile.in: Update dependencies.
132
133 2001-01-26  Jeff Holcomb  <jeffh@redhat.com>
134
135         * remote-udi.c (udi_open): Change strdup to xstrdup.
136         * thread.c (thread_apply_all_command): Change strdup to xstrdup.
137         Update copyright message.
138         * varobj.c (delete_variable_1): Likewise.
139
140         * gdb_string.h: Remove declaration of strdup.  Update copyright
141         message.
142         * config/xm-mpw.h: Likewise.
143         * config/i386/xm-i386mach.h: Likewise.
144         * config/m68k/xm-apollo68b.h: Likewise.
145         * config/m68k/xm-hp300bsd.h: Likewise.
146         * config/rs6000/xm-rs6000.h: Likewise.
147         * config/vax/xm-vaxult.h: Remove declaration of strdup.
148         * config/vax/xm-vaxult2.h: Likewise.
149
150 2001-01-26  Jeff Holcomb  <jeffh@redhat.com>
151
152         * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
153
154 2001-01-25  J.T. Conklin  <jtc@redback.com>
155
156         * target.c (target_xfer_memory_partial): Return -1 on failure due
157         to invalid access mode attribute.
158
159 2001-01-25  Christopher Faylor  <cgf@cygnus.com>
160
161         * win32-nat.c (_initialize_core_win32): Prototype correctly.
162
163 2001-01-25  Mark Kettenis  <kettenis@gnu.org>
164
165         * config/alpha/tm-fbsd.h: Update copyright.
166         (USE_STRUCT_CONVENTION): Define in terms of
167         alphabsd_use_struct_convention.
168         * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
169         * alphafbsd-tdep.c: New file.
170
171 2001-01-24  Fernando Nasser  <fnasser@redhat.com>
172
173         * top.c (print_gdb_version): Update Copyright year.
174
175 2001-01-24  J.T. Conklin  <jtc@redback.com>
176
177         * dcache.c (dcache_write_line): Fix typo.
178
179         * memattr.c (delete_mem_region): Replace free() with xfree().
180         (mem_number): Add explicit type.
181
182         * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
183         (rw_common): Likewise.
184
185 2001-01-24  Fernando Nasser  <fnasser@redhat.com>
186
187         * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
188         for the inferior program arguments.
189         (run_command, run_no_args_command, init_infcmd)): Use accessor
190         functions to set the inferior program arguments.
191         * inferior.h: Add definitions to the accessor functions above.
192
193 2001-01-23  Jim Blandy  <jimb@redhat.com>
194
195         * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
196         Implement these correctly, using make_cv_type.
197
198 2001-01-23  J.T. Conklin  <jtc@redback.com>
199
200         * exec.c (xfer_memory): Add attrib argument.
201         * infptrace.c (child_xfer_memory): Likewise.
202         * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
203         * monitor.c (monitor_xfer_memory): Likewise.
204         * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
205         * remote-array.c (array_xfer_memory): Likewise.
206         * remote-bug.c (bug_xfer_memory): Likewise.
207         * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
208         * remote-eb.c (eb_xfer_inferior_memory): Likewise.
209         * remote-es.c (es1800_xfer_inferior_memory): Likewise.
210         * remote-mips.c (mips_xfer_memory): Likewise.
211         * remote-mm.c (mm_xfer_inferior_memory): Likewise.
212         * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
213         * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
214         * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
215         * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
216         * remote-sds.c (sds_xfer_memory): Likewise.
217         * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
218         * remote-st.c (st2000_xfer_inferior_memory): Likewise.
219         * remote-udi.c (udi_xfer_inferior_memory): Likewise.
220         * remote-vx.c (vx_xfer_memory): Likewise.
221         * remote.c (remote_xfer_memory): Likewise.
222         * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
223         * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
224         * thread-db.c (thread_db_xfer_memory): Likewise.
225
226         * target.h (#include "memattr.h"): Added.
227         (target_ops.to_xfer_memory): Add attrib argument.
228
229         * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
230         * dcache.h (set_dcache_state): Removed declaration.
231         * dcache.c (set_dcache_state): Removed definition
232         
233         * dcache.c: Update module comment, as dcache is now enabled and
234         disabled with memory region attributes instead of by the global
235         variable "remotecache".  Add comment describing the interaction
236         between dcache and memory region attributes.
237         (dcache_xfer_memory): Add comment describing benefits of moving
238         cache writeback to a higher level.
239         (dcache_struct): Removed cache_has_stuff field.  This was used to
240         record whether the cache had been accessed in order to invalidate
241         it when it was disabled.  However, this is not needed because the
242         cache is write through and the code that enables, disables, and
243         deletes memory regions invalidate the cache.  Add comment which
244         suggests that we could be more selective and only invalidate those
245         cache lines containing data from those memory regions.
246         (dcache_invalidate): Updated.
247         (dcache_xfer_memory): Updated.
248         
249         (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
250         (dcache_xfer_memory): Removed code that called do_xfer_memory() to
251         perform a uncached transfer if dcache_enabled_p was clear.  This
252         function is now only called if caching is enabled for the memory
253         region.
254         (dcache_info): Always print cache info.
255
256         * target.c (do_xfer_memory): Add attrib argument.
257         (target_xfer_memory, target_xfer_memory_partial): Break transfer
258         into chunks defined by memory regions, pass region attributes to
259         do_xfer_memory().
260         * dcache.c (dcache_read_line, dcache_write_line): Likewise.
261
262         * Makefile.in (SFILES): Add memattr.c.
263         (COMMON_OBS): Add memattr.o.
264         (dcache.o): Add target.h to dependencies.
265         * memattr.c: New file.
266         * memattr.h: Likewise.
267
268         * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
269         * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
270         * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
271         * gdbserver/low-sim.c (#include "defs.h"): Removed.
272         (mygeneric_load): Rename from generic_load.
273         
274         * gdbserver/low-hppabsd.c (#include "server.h"): Added.
275         (#include "defs.h"): Removed.
276         (inferior_pid, perror_with_name): Remove declarations.
277         * gdbserver/low-linux.c: Likewise.
278         * gdbserver/low-nbsd.c: Likewise.
279         * gdbserver/low-sparc.c: Likewise.
280         * gdbserver/low-sun3.c: Likewise.
281
282         * i386-stub.c: Re-indent.
283         * m68k-stub.c: Re-indent.
284
285 2001-01-22  Nicholas Duffek  <nsd@redhat.com>
286
287         * gdbarch.sh (PARM_BOUNDARY): Define.
288         * gdbarch.c: Regenerate.
289         * gdbarch.h: Regenerate.
290
291 2001-01-22  J.T. Conklin  <jtc@redback.com>
292
293         * ns32k-tdep.c: #include "frame.h"
294         * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore.  It
295         appears to have been inadvertantly removed sometime in May 1999.
296
297         * Revert 2000-11-09 changes where shared library objects were
298         moved from NATDEPFILES to TDEPFILES on NetBSD targets.  While
299         we'd like to be able to debug dynamically linked executables,
300         this makes it impossible to build a cross debugger on a many
301         hosts.
302
303         * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
304         * config/i386/nbsdelf.mt: Likewise.
305         * config/m68k/nbsd.mt: Likewise.
306         * config/ns32k/nbsd.mt: Likewise.
307         * config/powerpc/nbsd.mt: Likewise.
308         * config/sparc/nbsd.mt: Likewise.
309         * config/sparc/nbsdelf.mt: Likewise.
310         * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
311         * config/i386/nbsdelf.mh: Likewise. 
312         * config/m68k/nbsd.mh: Likewise.
313         * config/ns32k/nbsd.mh: Likewise.
314         * config/powerpc/nbsd.mh: Likewise.
315         * config/sparc/nbsd.mh: Likewise.
316
317 2001-01-19  Jason Merrill  <jason@redhat.com>
318
319         * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
320         (process_one_symbol): Likewise.
321         * dwarfread.c (handle_producer): Likewise.
322
323 Thu Jan 18 12:08:57 2001  Andrew Cagney  <cagney@b1.cygnus.com>
324
325         * configure.in (build_warnings): Disable -Wuninitialized until GDB
326         compiles with -Wuninitialized,-Werror.
327         * configure: Regenerate.
328
329         * MAINTAINERS: Add list of buildable targets.
330
331 Thu Jan 18 12:48:04 2001  Andrew Cagney  <cagney@b1.cygnus.com>
332
333         * defs.h (STRCMP): Delete macro.
334
335         * objfiles.c (objfile_relocate): Replace STRCMP with call to
336         strcmp.
337         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
338         * symfile.c (compare_symbols):  Ditto.
339         * standalone.c (open):  Ditto.
340         * remote-es.c (verify_break):  Ditto.
341         * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
342
343         * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
344
345 Thu Jan 18 12:25:06 2001  Andrew Cagney  <cagney@b1.cygnus.com>
346
347         * varobj.c (FREEIF): Delete macro.
348         (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
349         call.
350
351 2001-01-18  Nick Clifton  <nickc@redhat.com>
352
353         * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
354         (arc_print_insn): No bfd available, so pass NULL to
355         arc_get_disassembler.
356
357 2001-01-09  James Ingham  <jingham@inghji.apple.com>
358
359          * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
360          a mangled symbol rather than recursing into lookup_symbol, since
361          this will just re-unmangle the name & call lookup_symbol_aux -
362          leading to an infinite recursion.
363
364 2001-01-18  Mark Kettenis  <kettenis@gnu.org>
365
366         * infcmd.c (print_return_value): Restore another space lost by
367         switch to UIOUT. ``$NN='' should be ``$NN =''.
368
369 Fri Jan 19 02:31:40 2001  Andrew Cagney  <cagney@b1.cygnus.com>
370
371         * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
372         * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
373         definition in parenthesis.
374
375 Fri Jan 19 02:13:40 2001  Andrew Cagney  <cagney@b1.cygnus.com>
376
377         From 2000-10-27 Mark Salter <msalter@redhat.com>:
378         * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
379         packet.
380         (remote_insert_hw_breakpoint): Ditto.
381
382 2001-01-17  J.T. Conklin  <jtc@redback.com>
383
384         * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
385         (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
386         * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
387         * m68knbsd-tdep.c: New file.
388
389         * i386nbsd-tdep.c: Remove #if 0'd out #includes.
390
391         * m68knbsd-nat.c: #include gdbcore.h.
392
393 Wed Jan 17 09:41:58 2001  Andrew Cagney  <cagney@b1.cygnus.com>
394
395         * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
396
397 2001-01-16  Michael Snyder  <msnyder@cleaver.cygnus.com>
398
399         * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
400         goes away -- just return false (ie. not stopped by watchpoint).
401         * source.c (openp): Fix typo in comment.
402
403 2001-01-12  Nicholas Duffek  <nsd@redhat.com>
404
405         * blockframe.c (generic_get_saved_register): Spelling fix.
406         * frame.h (FRAME_FP): Spelling fix.
407
408 Fri Jan 12 18:29:46 2001  Andrew Cagney  <cagney@b1.cygnus.com>
409
410         * infcmd.c (print_return_value): Restore space lost by switch to
411         UIOUT. ``$NN='' should be ``$NN =''.
412         
413 2001-01-08  Nicholas Duffek  <nsd@redhat.com>
414
415         * regcache.c (set_register_cached, register_buffer,
416         real_register, pseudo_register fetch_register, store_register):
417         New functions.
418         (register_changed, read_relative_register_raw_bytes_for_frame,
419         registers_changed, registers_fetched, read_register_bytes,
420         read_register_gen, write_register_gen, read_register,
421         read_signed_register, write_register, supply_register): Replace
422         register_valid[] with register_cached() and
423         set_register_cached().
424         (read_register_bytes, read_register_gen, write_register_gen,
425         read_register, read_signed_register, write_register,
426         supply_register): Replace registers[] with register_buffer().
427         (read_register_bytes, read_register_gen, read_register,
428         read_signed_register): Call fetch_register().
429         (write_register_gen, write_register): Call real_register() and
430         store_register().
431         (write_register_bytes): Call store_register().
432         * value.h (set_register_cached, register_buffer): Prototype.
433         * remote.c (remote_fetch_registers): Allocate regs[] with a
434         run-time size.  Replace register_valid[] with
435         set_register_cached().
436         (store_register_using_P, remote_store_registers): Replace
437         registers[] with register_buffer().
438
439 2001-01-08  Nicholas Duffek  <nsd@redhat.com>
440
441         * regcache.c: Change "write-back" comment to "write-through".
442         Change "regno" to "regnum".
443         (read_register, read_signed_register): Remove "raw" from return
444         value description.
445         (supply_register): Spelling fix.
446         * value.h: Change "regno" to "regnum".
447
448 2001-01-08  Fernando Nasser  <fnasser@redhat.com>
449
450         * Makefile.in (install-gdbtk): Add .itcl files to the list of files
451         to be installed.
452
453 2001-01-04  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
454
455         * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
456
457 2001-01-04  Nicholas Duffek  <nsd@redhat.com>
458
459         * valops.c (VALUE_SUBSTRING_START): Delete.
460
461 2001-01-04  Nicholas Duffek  <nsd@redhat.com>
462
463         * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
464         (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
465         (cli_utils_h): New variable.
466         (cli/cli-utils.o): New rule.
467         * cli/cli-utils.c: New file.
468         * cli/cli-utils.h: New file.
469
470 2001-01-04  Nicholas Duffek  <nsd@redhat.com>
471
472         * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
473         REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
474
475 2001-01-03  J.T. Conklin  <jtc@redback.com>
476
477         * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
478         comment.
479
480 2001-01-02  Michael Snyder  <msnyder@cleaver.cygnus.com>
481
482         * sh-tdep.c (sh_extract_return_value):  Allow for small return type.
483         (sh_sh4_extract_return_value): Call sh_extract_return_value for
484         non-float types.
485         * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
486         Update copyright notice.
487         
488 For older changes see ChangeLog-2000
489 \f
490 Local Variables:
491 mode: change-log
492 left-margin: 8
493 fill-column: 74
494 version-control: never
495 End: