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