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