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