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