Replace strsave() with xstrdup().
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4fcf66da
AC
1Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
2
3 * defs.h (strsave): Delete declaration.
4 * utils.c (strsave): Delete definition.
5 * TODO (strsave): Update
6
7 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
8 * sparcl-tdep.c (sparclite_open): Ditto.
9 * mips-tdep.c (mips_set_processor_type_command): Ditto.
10 (_initialize_mips_tdep): Ditto.
11 * solib.c (solib_open): Ditto.
12 * symfile.c (add_filename_language): Ditto.
13 (set_ext_lang_command): Ditto.
14 * source.c (init_source_path): Ditto.
15 (mod_path): Ditto.
16 * sh3-rom.c (sh3_open): Ditto.
17 (sh3e_open): Ditto.
18 * serial.c (serial_open): Ditto.
19 * remote-mips.c (common_open): Ditto.
20 * monitor.c (monitor_open): Ditto.
21 * m32r-rom.c (m32r_upload_command): Ditto.
22 * infcmd.c (path_command): Ditto.
23 * f-exp.y (parse_number): Ditto.
24 * breakpoint.c (create_longjmp_breakpoint): Ditto.
25 (create_thread_event_breakpoint): Ditto.
26 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
27 (_initialize_arc_tdep): Ditto.
28
e191e0ab
AC
29Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
30
31 * cli/cli-script.c (define_command): Check for a bad hook value in
32 switch statement.
33
10214f55
C
342001-01-30 J.T. Conklin <jtc@redback.com>
35
36 * configure/sh/embed.mt: New file.
37 * configure/sh/linux.mt: New file.
38 * configure/sh/sh.mt: Removed.
39 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
40 (sh-*-*): Removed.
41
c9049fc9
MC
422001-01-29 Michael Chastain <chastain@redhat.com>
43
44 * symtab.c (block_lookup_symbol): Use 'namespace' parameter in
45 symbol comparisons in binary search.
46
aea02b6b
CF
472000-01-27 Christopher Faylor <cgf@cygnus.com>
48
49 * win32-nat.c (child_xfer_memory): Add missing argument required by
50 2001-01-23 change.
51
e6e0bfab
MK
522001-01-27 Mark Kettenis <kettenis@gnu.org>
53
54 * ui-out.c (do_list_end): New function.
55 (make_cleanup_ui_out_list_end): New function.
56 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
57 * stack.c (print_frame) [UI_OUT]: Call
58 make_cleanup_ui_out_list_end to make sure we mark the end of the
59 list if we do a non-local exit. At the end of the function,
60 instead of calling ui_out_list_end directly, let do_cleanups
61 handle it.
62
1adeb98a
FN
632001-01-26 Fernando Nasser <fnasser@redhat.com>
64
65 Fix double parsing of filenames passed as command line arguments
66 to GDB (causes weird handling of escape characters).
67 Also, remove dependencies on the CLI from libgdb.
68 * call-cmds.h: Remove declaration of exec_file_command().
69 * gdbcore.h: Remove declaration of exec_file_command().
70 Add declarations for exec_open() and exec_file_clear().
71 * symfile.h: Add declarations for symbol_file_add_main() and
72 symbol_file_clear().
73 * exec.c (exec_open): New function. Implements to_open for exec
74 targets.
75 (exec_file_clear): New function. Makes GDB forget about a previously
76 specified executable file.
77 (exec_file_attach): Move parsing of arguments from here ...
78 (exec_file_command): ... to here.
79 (init_exec_ops): Use exec_open(), not exec_file_command() to
80 implement to_open for exec targets.
81 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
82 with default values. Used when the file name has already been parsed.
83 (symbol_file_clear): New function. Makes GDB forget about previously
84 read symbols.
85 (symbol_file_command): Call the above function instead of inline code.
86 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
87 "call-cmds.h".
88 (captured_main): Call exec_file_attach() and symbol_file_add_main()
89 instead of exec_file_command() and symbol_file_command().
90 (captured_main): Add comment.
91 * corefile.c: Include "symfile.h".
92 (core_file_command): Call symbol_file_add_main() instead of
93 symbol_file_command().
94 (reopen_exec_file): Call exec_open() instead of exec_file_command().
95 * infcmd.c: Include "symfile.h".
96 (attach_command): Call symbol_file_add_main() instead of
97 symbol_file_command().
98 * infrun.c: Remove comment about the inclusion of "symfile.h",
99 not any longer appropriate.
100 (follow_exec): Call symbol_file_add_main() instead of
101 symbol_file_command().
102 * remote-es.c: Include "symfile.h".
103 (es1800_load): Call symbol_file_add_main() instead of
104 symbol_file_command().
105 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
106 not any longer appropriate.
107 (vx-wait): Call symbol_file_add_main() instead of
108 symbol_file_command().
109 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
110 instead of symbol_file_command().
111 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
112 symbol_file_add_main() instead of exec_file_command() and
113 symbol_file_command().
114 * Makefile.in: Update dependencies.
115
5b616ba1
JH
1162001-01-26 Jeff Holcomb <jeffh@redhat.com>
117
118 * remote-udi.c (udi_open): Change strdup to xstrdup.
119 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
120 Update copyright message.
121 * varobj.c (delete_variable_1): Likewise.
122
123 * gdb_string.h: Remove declaration of strdup. Update copyright
124 message.
125 * config/xm-mpw.h: Likewise.
126 * config/i386/xm-i386mach.h: Likewise.
127 * config/m68k/xm-apollo68b.h: Likewise.
128 * config/m68k/xm-hp300bsd.h: Likewise.
129 * config/rs6000/xm-rs6000.h: Likewise.
130 * config/vax/xm-vaxult.h: Remove declaration of strdup.
131 * config/vax/xm-vaxult2.h: Likewise.
132
b91d87cf
JH
1332001-01-26 Jeff Holcomb <jeffh@redhat.com>
134
135 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
136
873406a6
C
1372001-01-25 J.T. Conklin <jtc@redback.com>
138
139 * target.c (target_xfer_memory_partial): Return -1 on failure due
140 to invalid access mode attribute.
141
0613c401
CF
1422001-01-25 Christopher Faylor <cgf@cygnus.com>
143
144 * win32-nat.c (_initialize_core_win32): Prototype correctly.
145
efd59e3f
MK
1462001-01-25 Mark Kettenis <kettenis@gnu.org>
147
148 * config/alpha/tm-fbsd.h: Update copyright.
149 (USE_STRUCT_CONVENTION): Define in terms of
150 alphabsd_use_struct_convention.
151 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
152 * alphafbsd-tdep.c: New file.
153
388e1ff2
FN
1542001-01-24 Fernando Nasser <fnasser@redhat.com>
155
156 * top.c (print_gdb_version): Update Copyright year.
157
f4d650ec
C
1582001-01-24 J.T. Conklin <jtc@redback.com>
159
160 * dcache.c (dcache_write_line): Fix typo.
161
162 * memattr.c (delete_mem_region): Replace free() with xfree().
163 (mem_number): Add explicit type.
164
165 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
166 (rw_common): Likewise.
167
07091751
FN
1682001-01-24 Fernando Nasser <fnasser@redhat.com>
169
170 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
171 for the inferior program arguments.
172 (run_command, run_no_args_command, init_infcmd)): Use accessor
173 functions to set the inferior program arguments.
174 * inferior.h: Add definitions to the accessor functions above.
175
090c42a4
JB
1762001-01-23 Jim Blandy <jimb@redhat.com>
177
178 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
179 Implement these correctly, using make_cv_type.
180
f29d9b6d 1812001-01-23 J.T. Conklin <jtc@redback.com>
29e57380
C
182
183 * exec.c (xfer_memory): Add attrib argument.
184 * infptrace.c (child_xfer_memory): Likewise.
e5da8f38 185 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
29e57380
C
186 * monitor.c (monitor_xfer_memory): Likewise.
187 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
188 * remote-array.c (array_xfer_memory): Likewise.
189 * remote-bug.c (bug_xfer_memory): Likewise.
190 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
191 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
192 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
193 * remote-mips.c (mips_xfer_memory): Likewise.
194 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
195 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
196 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
197 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
198 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
199 * remote-sds.c (sds_xfer_memory): Likewise.
200 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
201 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
202 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
203 * remote-vx.c (vx_xfer_memory): Likewise.
204 * remote.c (remote_xfer_memory): Likewise.
205 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
206 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
e5da8f38 207 * thread-db.c (thread_db_xfer_memory): Likewise.
29e57380
C
208
209 * target.h (#include "memattr.h"): Added.
210 (target_ops.to_xfer_memory): Add attrib argument.
211
212 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
213 * dcache.h (set_dcache_state): Removed declaration.
214 * dcache.c (set_dcache_state): Removed definition
215
216 * dcache.c: Update module comment, as dcache is now enabled and
217 disabled with memory region attributes instead of by the global
218 variable "remotecache". Add comment describing the interaction
219 between dcache and memory region attributes.
220 (dcache_xfer_memory): Add comment describing benefits of moving
221 cache writeback to a higher level.
222 (dcache_struct): Removed cache_has_stuff field. This was used to
223 record whether the cache had been accessed in order to invalidate
224 it when it was disabled. However, this is not needed because the
225 cache is write through and the code that enables, disables, and
226 deletes memory regions invalidate the cache. Add comment which
227 suggests that we could be more selective and only invalidate those
228 cache lines containing data from those memory regions.
229 (dcache_invalidate): Updated.
230 (dcache_xfer_memory): Updated.
f29d9b6d 231
29e57380
C
232 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
233 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
234 perform a uncached transfer if dcache_enabled_p was clear. This
235 function is now only called if caching is enabled for the memory
236 region.
237 (dcache_info): Always print cache info.
238
239 * target.c (do_xfer_memory): Add attrib argument.
240 (target_xfer_memory, target_xfer_memory_partial): Break transfer
241 into chunks defined by memory regions, pass region attributes to
242 do_xfer_memory().
243 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
244
245 * Makefile.in (SFILES): Add memattr.c.
246 (COMMON_OBS): Add memattr.o.
247 (dcache.o): Add target.h to dependencies.
248 * memattr.c: New file.
249 * memattr.h: Likewise.
250
f29d9b6d
C
251 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
252 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
253 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
254 * gdbserver/low-sim.c (#include "defs.h"): Removed.
255 (mygeneric_load): Rename from generic_load.
256
257 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
258 (#include "defs.h"): Removed.
259 (inferior_pid, perror_with_name): Remove declarations.
260 * gdbserver/low-linux.c: Likewise.
261 * gdbserver/low-nbsd.c: Likewise.
262 * gdbserver/low-sparc.c: Likewise.
263 * gdbserver/low-sun3.c: Likewise.
264
265 * i386-stub.c: Re-indent.
266 * m68k-stub.c: Re-indent.
267
58d5518e
ND
2682001-01-22 Nicholas Duffek <nsd@redhat.com>
269
270 * gdbarch.sh (PARM_BOUNDARY): Define.
271 * gdbarch.c: Regenerate.
272 * gdbarch.h: Regenerate.
273
f6427ade
C
2742001-01-22 J.T. Conklin <jtc@redback.com>
275
276 * ns32k-tdep.c: #include "frame.h"
277 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
278 appears to have been inadvertantly removed sometime in May 1999.
279
280 * Revert 2000-11-09 changes where shared library objects were
281 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
282 we'd like to be able to debug dynamically linked executables,
283 this makes it impossible to build a cross debugger on a many
284 hosts.
285
286 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
287 * config/i386/nbsdelf.mt: Likewise.
288 * config/m68k/nbsd.mt: Likewise.
289 * config/ns32k/nbsd.mt: Likewise.
290 * config/powerpc/nbsd.mt: Likewise.
291 * config/sparc/nbsd.mt: Likewise.
292 * config/sparc/nbsdelf.mt: Likewise.
293 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
294 * config/i386/nbsdelf.mh: Likewise.
295 * config/m68k/nbsd.mh: Likewise.
296 * config/ns32k/nbsd.mh: Likewise.
297 * config/powerpc/nbsd.mh: Likewise.
298 * config/sparc/nbsd.mh: Likewise.
299
8052a17a
JM
3002001-01-19 Jason Merrill <jason@redhat.com>
301
302 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
303 (process_one_symbol): Likewise.
304 * dwarfread.c (handle_producer): Likewise.
305
21a6f6bb
AC
306Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
307
308 * configure.in (build_warnings): Disable -Wuninitialized until GDB
309 compiles with -Wuninitialized,-Werror.
310 * configure: Regenerate.
311
312 * MAINTAINERS: Add list of buildable targets.
313
494b7ec9
AC
314Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
315
316 * defs.h (STRCMP): Delete macro.
317
318 * objfiles.c (objfile_relocate): Replace STRCMP with call to
319 strcmp.
320 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
321 * symfile.c (compare_symbols): Ditto.
322 * standalone.c (open): Ditto.
323 * remote-es.c (verify_break): Ditto.
324 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
325
326 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
327
8038e1e2
AC
328Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
329
330 * varobj.c (FREEIF): Delete macro.
331 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
332 call.
333
ea8d0b28
NC
3342001-01-18 Nick Clifton <nickc@redhat.com>
335
336 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
337 (arc_print_insn): No bfd available, so pass NULL to
338 arc_get_disassembler.
339
5dbd9048
JB
3402001-01-09 James Ingham <jingham@inghji.apple.com>
341
342 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
343 a mangled symbol rather than recursing into lookup_symbol, since
344 this will just re-unmangle the name & call lookup_symbol_aux -
345 leading to an infinite recursion.
346
28ae27b1
MK
3472001-01-18 Mark Kettenis <kettenis@gnu.org>
348
349 * infcmd.c (print_return_value): Restore another space lost by
350 switch to UIOUT. ``$NN='' should be ``$NN =''.
351
6ab3a9c9
AC
352Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
353
354 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
355 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
356 definition in parenthesis.
357
ad6525fc
AC
358Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
359
360 From 2000-10-27 Mark Salter <msalter@redhat.com>:
361 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
362 packet.
363 (remote_insert_hw_breakpoint): Ditto.
364
6259c7e2
C
3652001-01-17 J.T. Conklin <jtc@redback.com>
366
367 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
9c95b27f 368 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
6259c7e2
C
369 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
370 * m68knbsd-tdep.c: New file.
371
372 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
373
374 * m68knbsd-nat.c: #include gdbcore.h.
375
abdcb2a5
AC
376Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
377
378 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
379
e7a8479f
MS
3802001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
381
aaeb7efa
MS
382 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
383 goes away -- just return false (ie. not stopped by watchpoint).
e7a8479f
MS
384 * source.c (openp): Fix typo in comment.
385
7036d6ce
ND
3862001-01-12 Nicholas Duffek <nsd@redhat.com>
387
388 * blockframe.c (generic_get_saved_register): Spelling fix.
389 * frame.h (FRAME_FP): Spelling fix.
390
9549d9c1
AC
391Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
392
393 * infcmd.c (print_return_value): Restore space lost by switch to
394 UIOUT. ``$NN='' should be ``$NN =''.
395
7302a204
ND
3962001-01-08 Nicholas Duffek <nsd@redhat.com>
397
398 * regcache.c (set_register_cached, register_buffer,
399 real_register, pseudo_register fetch_register, store_register):
400 New functions.
401 (register_changed, read_relative_register_raw_bytes_for_frame,
402 registers_changed, registers_fetched, read_register_bytes,
403 read_register_gen, write_register_gen, read_register,
404 read_signed_register, write_register, supply_register): Replace
405 register_valid[] with register_cached() and
406 set_register_cached().
407 (read_register_bytes, read_register_gen, write_register_gen,
408 read_register, read_signed_register, write_register,
409 supply_register): Replace registers[] with register_buffer().
410 (read_register_bytes, read_register_gen, read_register,
411 read_signed_register): Call fetch_register().
412 (write_register_gen, write_register): Call real_register() and
413 store_register().
414 (write_register_bytes): Call store_register().
415 * value.h (set_register_cached, register_buffer): Prototype.
416 * remote.c (remote_fetch_registers): Allocate regs[] with a
417 run-time size. Replace register_valid[] with
418 set_register_cached().
419 (store_register_using_P, remote_store_registers): Replace
420 registers[] with register_buffer().
421
5ebd2499
ND
4222001-01-08 Nicholas Duffek <nsd@redhat.com>
423
424 * regcache.c: Change "write-back" comment to "write-through".
425 Change "regno" to "regnum".
426 (read_register, read_signed_register): Remove "raw" from return
427 value description.
428 (supply_register): Spelling fix.
429 * value.h: Change "regno" to "regnum".
430
1302fd5e
FN
4312001-01-08 Fernando Nasser <fnasser@redhat.com>
432
433 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
434 to be installed.
435
9dcb560c
MS
4362001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
437
438 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
439
0e2fb98e
ND
4402001-01-04 Nicholas Duffek <nsd@redhat.com>
441
442 * valops.c (VALUE_SUBSTRING_START): Delete.
443
12cf3f1b
ND
4442001-01-04 Nicholas Duffek <nsd@redhat.com>
445
446 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
447 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
448 (cli_utils_h): New variable.
449 (cli/cli-utils.o): New rule.
450 * cli/cli-utils.c: New file.
451 * cli/cli-utils.h: New file.
452
cc533b9d
ND
4532001-01-04 Nicholas Duffek <nsd@redhat.com>
454
455 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
456 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
457
ad2a4d09
C
4582001-01-03 J.T. Conklin <jtc@redback.com>
459
460 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
461 comment.
462
8140e7ac
MS
4632001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
464
d19b71be
MS
465 * sh-tdep.c (sh_extract_return_value): Allow for small return type.
466 (sh_sh4_extract_return_value): Call sh_extract_return_value for
467 non-float types.
779e876b 468 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
72e22353
MS
469 Update copyright notice.
470
15f33b66 471For older changes see ChangeLog-2000
c906108c
SS
472\f
473Local Variables:
474mode: change-log
475left-margin: 8
476fill-column: 74
477version-control: never
478End:
This page took 0.151134 seconds and 4 git commands to generate.