1 Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
3 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
5 * config.in, configure: Re-generate.
7 * gdb_vfork.h: New file.
8 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
9 * fork-child.c (fork_inferior): Ditto.
11 Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
13 * defs.h (strsave): Delete declaration.
14 * utils.c (strsave): Delete definition.
15 * TODO (strsave): Update
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.
26 * sh3-rom.c (sh3_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.
39 Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
41 * cli/cli-script.c (define_command): Check for a bad hook value in
44 2001-01-30 J.T. Conklin <jtc@redback.com>
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.
52 2001-01-29 Michael Chastain <chastain@redhat.com>
54 * symtab.c (block_lookup_symbol): Use 'namespace' parameter in
55 symbol comparisons in binary search.
57 2000-01-27 Christopher Faylor <cgf@cygnus.com>
59 * win32-nat.c (child_xfer_memory): Add missing argument required by
62 2001-01-27 Mark Kettenis <kettenis@gnu.org>
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
73 2001-01-26 Fernando Nasser <fnasser@redhat.com>
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
83 * exec.c (exec_open): New function. Implements to_open for exec
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
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
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.
126 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
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.
133 * gdb_string.h: Remove declaration of strdup. Update copyright
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.
143 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
145 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
147 2001-01-25 J.T. Conklin <jtc@redback.com>
149 * target.c (target_xfer_memory_partial): Return -1 on failure due
150 to invalid access mode attribute.
152 2001-01-25 Christopher Faylor <cgf@cygnus.com>
154 * win32-nat.c (_initialize_core_win32): Prototype correctly.
156 2001-01-25 Mark Kettenis <kettenis@gnu.org>
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.
164 2001-01-24 Fernando Nasser <fnasser@redhat.com>
166 * top.c (print_gdb_version): Update Copyright year.
168 2001-01-24 J.T. Conklin <jtc@redback.com>
170 * dcache.c (dcache_write_line): Fix typo.
172 * memattr.c (delete_mem_region): Replace free() with xfree().
173 (mem_number): Add explicit type.
175 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
176 (rw_common): Likewise.
178 2001-01-24 Fernando Nasser <fnasser@redhat.com>
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.
186 2001-01-23 Jim Blandy <jimb@redhat.com>
188 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
189 Implement these correctly, using make_cv_type.
191 2001-01-23 J.T. Conklin <jtc@redback.com>
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.
219 * target.h (#include "memattr.h"): Added.
220 (target_ops.to_xfer_memory): Add attrib argument.
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
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.
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
247 (dcache_info): Always print cache info.
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
253 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
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.
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.
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.
275 * i386-stub.c: Re-indent.
276 * m68k-stub.c: Re-indent.
278 2001-01-22 Nicholas Duffek <nsd@redhat.com>
280 * gdbarch.sh (PARM_BOUNDARY): Define.
281 * gdbarch.c: Regenerate.
282 * gdbarch.h: Regenerate.
284 2001-01-22 J.T. Conklin <jtc@redback.com>
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.
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
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.
310 2001-01-19 Jason Merrill <jason@redhat.com>
312 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
313 (process_one_symbol): Likewise.
314 * dwarfread.c (handle_producer): Likewise.
316 Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
318 * configure.in (build_warnings): Disable -Wuninitialized until GDB
319 compiles with -Wuninitialized,-Werror.
320 * configure: Regenerate.
322 * MAINTAINERS: Add list of buildable targets.
324 Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
326 * defs.h (STRCMP): Delete macro.
328 * objfiles.c (objfile_relocate): Replace STRCMP with call to
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.
336 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
338 Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
340 * varobj.c (FREEIF): Delete macro.
341 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
344 2001-01-18 Nick Clifton <nickc@redhat.com>
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.
350 2001-01-09 James Ingham <jingham@inghji.apple.com>
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.
357 2001-01-18 Mark Kettenis <kettenis@gnu.org>
359 * infcmd.c (print_return_value): Restore another space lost by
360 switch to UIOUT. ``$NN='' should be ``$NN =''.
362 Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
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.
368 Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
370 From 2000-10-27 Mark Salter <msalter@redhat.com>:
371 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
373 (remote_insert_hw_breakpoint): Ditto.
375 2001-01-17 J.T. Conklin <jtc@redback.com>
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.
382 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
384 * m68knbsd-nat.c: #include gdbcore.h.
386 Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
388 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
390 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
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.
396 2001-01-12 Nicholas Duffek <nsd@redhat.com>
398 * blockframe.c (generic_get_saved_register): Spelling fix.
399 * frame.h (FRAME_FP): Spelling fix.
401 Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
403 * infcmd.c (print_return_value): Restore space lost by switch to
404 UIOUT. ``$NN='' should be ``$NN =''.
406 2001-01-08 Nicholas Duffek <nsd@redhat.com>
408 * regcache.c (set_register_cached, register_buffer,
409 real_register, pseudo_register fetch_register, store_register):
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
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().
432 2001-01-08 Nicholas Duffek <nsd@redhat.com>
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
438 (supply_register): Spelling fix.
439 * value.h: Change "regno" to "regnum".
441 2001-01-08 Fernando Nasser <fnasser@redhat.com>
443 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
446 2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
448 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
450 2001-01-04 Nicholas Duffek <nsd@redhat.com>
452 * valops.c (VALUE_SUBSTRING_START): Delete.
454 2001-01-04 Nicholas Duffek <nsd@redhat.com>
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.
463 2001-01-04 Nicholas Duffek <nsd@redhat.com>
465 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
466 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
468 2001-01-03 J.T. Conklin <jtc@redback.com>
470 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
473 2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
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
478 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
479 Update copyright notice.
481 For older changes see ChangeLog-2000
487 version-control: never