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