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