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