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