19de94b926216dc5994a67dbfdd56ed36b37ae1a
[binutils-gdb.git] / gdb / ChangeLog
1 2001-02-20 Kevin Buettner <kevinb@redhat.com>
2
3 * solib-aix5.c: New file.
4
5 2001-02-20 Martin M. Hunt <hunt@redhat.com>
6
7 * solib.c (info_sharedlibrary_command): Don't assume pointers
8 are the same size of long, call longest_local_hex_string_custom().
9
10 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
11 extract_signed_integer() should be called instead of
12 extract_address().
13
14 2001-02-20 Martin M. Hunt <hunt@redhat.com>
15
16 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
17
18 2001-02-19 Andrew Cagney <ac131313@redhat.com>
19
20 Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
21 * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
22 then floating point registers are 8 bytes.
23
24 2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
25
26 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
27 accomodate 64-bit addresses.
28
29 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
30
31 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
32 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
33 lookup_symbol, when trying to find a symbol with a mangled name,
34 to avoid infinite recursion.
35
36 2001-02-18 Andrew Cagney <ac131313@redhat.com>
37
38 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
39
40 2001-02-19 Jonathan Larmour <jlarmour@redhat.com>
41
42 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
43 (save_prologue_cache): Ditto.
44
45 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
46
47 From: innadadadavida@yahoo.com:
48 * partial-stab.h (switch): Check that pst is not null
49 before dereferencing it.
50
51 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
52
53 From Andrew Cagney <cagney@b1.cygnus.com>:
54 * symfile.c (add_symbol_file_command): Always initialize
55 my_cleanup using a NULL cleanup.
56
57 2001-02-19 Eli Zaretskii <eliz@is.elta.co.il>
58
59 * demangle.c (demangling_style_names): New variable.
60 (_initialize_demangler): Fill demangling_style_names with the
61 names of known demangling styles from libiberty_demanglers[]. Use
62 add_set_enum_cmd instead of add_set_cmd, to get completion on
63 demangling style names.
64
65 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
66 file-name completion.
67
68 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
69
70 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
71 `solib-absolute-prefix'.
72
73 * tracepoint.c (_initialize_tracepoint): Ditto for
74 `save-tracepoints'.
75
76 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
77
78 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
79 file-name completion.
80
81 * infcmd.c (_initialize_infcmd): Make the following commands use
82 the file-name completer: `tty', `args', `path', `paths', and
83 `run'.
84
85 2001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
86
87 * go32-nat.c: Include i387-nat.h.
88 (fetch_register): New function, uses some of the guts of
89 go32_fetch_registers and calls i387_supply_register.
90 (go32_fetch_registers): Most of the code moved into
91 fetch_register. Use i387_supply_fsave.
92 (store_register): Use i387_fill_fsave instead of custom code.
93 (go32_store_registers): Use i387_fill_fsave.
94
95 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
96
97 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
98
99 * completer.c (gdb_completer_file_name_break_characters): Remove
100 slash from file-name break characters.
101 [__MSDOS__]: Special definition for DOS/Windows file names.
102 (line_completion_function): When completing on file names, bump
103 `p' to the first file-name constituent character of `word', before
104 invoking the completer.
105
106 2001-02-17 Mark Kettenis <kettenis@gnu.org>
107
108 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
109 consistently for parameter names. Fix comments accordingly.
110 (i387_supply_register): New function.
111 (i387_supply_fsave): Implement using i387_supply_register.
112 * i387-nat.h: Use regnum instead of regno consistently for
113 parameter names. Fix comments accordingly.
114 (i387_supply_register): New prototype.
115
116 2001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
117
118 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
119 instead of TARGET_PTR_BIT (to support Harvard architectures).
120
121 2001-02-16 Andrew Cagney <ac131313@redhat.com>
122
123 From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
124 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
125 argument to parameter list and to call in order to conform to
126 to_xfer_memory field of struct target_ops.
127
128 2001-02-12 Michael Chastain <chastain@redhat.com>
129
130 * somsolib.c (som_solib_add_solib_objfile): Do not use
131 section relocation feature of syms_from_objfile. Do my own
132 section relocation, offsetting each section of the som by
133 either text_addr - text_link_addr or data_start.
134
135 2001-02-16 Andrew Cagney <ac131313@redhat.com>
136
137 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
138
139 2001-02-16 Andrew Cagney <ac131313@redhat.com>
140
141 * MAINTAINERS (paper trail): Update.
142
143 2001-02-16 Mark Kettenis <kettenis@gnu.org>
144
145 * target.h (target_fetch_registers): Fix comment.
146
147 2001-02-15 Andrew Cagney <ac131313@redhat.com>
148
149 * f-exp.y: Include <ctype.h>.
150 (parse_number): Ensure that ``i'' is always initialized.
151
152 2001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
153
154 * MAINTAINERS: Add myself to paper trail section.
155
156 2001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
157
158 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
159 * configure, config.in: Regenerate.
160 * corelow.c: Include <sys/file.h> if present.
161
162 2001-02-14 Andrew Cagney <ac131313@redhat.com>
163
164 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
165 declare when have SIGTTOU.
166
167 2001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
168
169 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
170
171 2001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
172
173 * MAINTAINERS: Update my email address.
174
175 2001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
176
177 * NEWS: Document that "info symbol" works with COFF debug info and
178 its variants.
179
180 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
181 symbols whose SYMBOL_BFD_SECTION is NULL.
182
183 2000-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
184
185 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
186 * xcoffsolib.c (xcoff_solib_address): Renamed from
187 pc_load_segment_name. Return NULL if address is not in a shared
188 library. Cleanup shared library name construction, using xasprintf.
189 Format shared library member names consistent with format in exec.c.
190 (solib_info): Format shared library member names consistent with
191 format in exec.c.
192 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
193 using xcoff_solib_address for PC_SOLIB definition.
194 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
195 needed.
196
197 2000-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
198
199 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
200 with xmalloc calls and cleanups.
201
202 2000-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
203
204 * rs6000-nat.c (child_xfer_memory): Add missing parameter
205 'struct mem_attrib *' required by 2001-01-23 change.
206
207 2001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
208
209 Updates to "make TAGS":
210 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
211 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
212 tahoe-tdep.c.
213 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
214
215 2001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
216
217 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
218
219 Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
220
221 From Dean Luick <luick@cray.com>:
222 * defs.h (continuation): Remove unused global variable.
223
224 Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
225
226 * configure.tgt: Remove references to convex, pyramid, altos and
227 tahoe.
228 * configure.host: Ditto.
229 * MAINTAINERS: Ditto.
230 * NEWS: Update.
231
232 * tahoe-tdep.c: Delete obsolete file.
233 * pyr-xdep.c: Ditto.
234 * pyr-tdep.c: Ditto.
235 * convex-tdep.c: Ditto.
236 * convex-xdep.c: Ditto.
237 * config/tahoe/xm-tahoe.h: Ditto.
238 * config/tahoe/tm-tahoe.h: Ditto.
239 * config/tahoe/tahoe.mt: Ditto.
240 * config/tahoe/tahoe.mh: Ditto.
241 * config/pyr/xm-pyr.h: Ditto.
242 * config/pyr/tm-pyr.h: Ditto.
243 * config/pyr/pyramid.mt: Ditto.
244 * config/pyr/pyramid.mh: Ditto.
245 * config/m68k/xm-altos.h: Ditto.
246 * config/m68k/tm-altos.h: Ditto.
247 * config/m68k/altos.mt: Ditto.
248 * config/m68k/altos.mh: Ditto.
249 * config/convex/xm-convex.h: Ditto.
250 * config/convex/tm-convex.h: Ditto.
251 * config/convex/convex.mt: Ditto.
252 * config/convex/convex.mh: Ditto.
253 * config/convex/Convex.notes: Ditto.
254 * config/arm/xm-arm.h: Ditto.
255 * config/arm/nm-arm.h: Ditto.
256 * config/arm/arm.mt: Ditto.
257 * config/arm/arm.mh: Ditto.
258 * arm-convert.s: Ditto.
259 * arm-xdep.c: Ditto.
260 * altos-xdep.c: Ditto.
261
262 Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
263
264 * defs.h (internal_error, internal_verror): Add __FILE__ and
265 __LINE__ parameter.
266 * utils.c (internal_error, internal_verror): Update.
267
268 * v850-tdep.c: Update calls to internal_error.
269 * utils.c: Ditto.
270 * ui-out.c: Ditto.
271 * ui-file.c: Ditto.
272 * target.h: Ditto.
273 * symtab.h: Ditto.
274 * symm-nat.c: Ditto.
275 * sparc-tdep.c: Ditto.
276 * source.c: Ditto.
277 * serial.c: Ditto.
278 * rs6000-tdep.c: Ditto.
279 * rs6000-nat.c: Ditto.
280 * remote.c: Ditto.
281 * remote-vx.c: Ditto.
282 * remote-sim.c: Ditto.
283 * remote-mips.c: Ditto.
284 * regcache.c: Ditto.
285 * objfiles.h: Ditto.
286 * objfiles.c: Ditto.
287 * mn10300-tdep.c: Ditto.
288 * mips-tdep.c: Ditto.
289 * maint.c: Ditto.
290 * m68k-tdep.c: Ditto.
291 * m3-nat.c: Ditto.
292 * language.c: Ditto.
293 * infptrace.c: Ditto.
294 * inferior.h: Ditto.
295 * infcmd.c: Ditto.
296 * ia64-tdep.c: Ditto.
297 * i386-tdep.c: Ditto.
298 * i386-linux-nat.c: Ditto.
299 * hppah-nat.c: Ditto.
300 * go32-nat.c: Ditto.
301 * findvar.c: Ditto.
302 * f-lang.c: Ditto.
303 * elfread.c: Ditto.
304 * event-loop.c: Ditto.
305 * dwarf2read.c: Ditto.
306 * dsrec.c: Ditto.
307 * d30v-tdep.c: Ditto.
308 * d10v-tdep.c: Ditto.
309 * cli/cli-setshow.c: Ditto.
310 * cli/cli-script.c: Ditto.
311 * ch-exp.c: Ditto.
312 * breakpoint.c: Ditto.
313 * ax-gdb.c: Ditto.
314 * arch-utils.c: Ditto.
315 * a29k-tdep.c: Ditto.
316 * gdb_assert.h: Ditto.
317 * gdbarch.sh: Ditto.
318 * gdbarch.h, gdbarch.c: Re-generate.
319
320 2001-02-07 Andrew Cagney <ac131313@redhat.com>
321
322 From Mark Kettenis <kettenis@gnu.org>:
323 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
324
325 2001-02-07 Andrew Cagney <ac131313@redhat.com>
326
327 * remote-sim.c (dump_mem): Cleanup printf format argument.
328 * MAINTAINERS: Update, mn10300-elf now builds.
329
330 2001-02-07 Mark Kettenis <kettenis@gnu.org>
331
332 * event-top.c: Remove duplicate #include <signal.h>.
333
334 2001-02-06 Andrew Cagney <ac131313@redhat.com>
335
336 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
337 allocated buffer.
338 (save_inferior_pid): Restore the PID from that tempoary
339 buffer. Delete the buffer.
340 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
341
342 2001-02-06 Andrew Cagney <ac131313@redhat.com>
343
344 * MAINTAINERS: Add ``The Obvious Fix Rule''.
345
346 2001-02-06 Andrew Cagney <ac131313@redhat.com>
347
348 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
349
350 2001-02-06 Andrew Cagney <ac131313@cygnus.com>
351
352 * gdbarch.sh: Include "gdb_assert.h".
353 (struct gdbarch): Change ``nr_data'' to unsigned.
354 (alloc_gdbarch_data, free_gdbarch_data): New functions.
355 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
356 architecture vector.
357 (struct gdbarch_data, struct gdbarch_data_registration): Move init
358 method to gdbarch_data. Add free method, make index unsigned.
359 (struct gdbarch_data_registry): Make nr unsigned.
360 (register_gdbarch_data): Add free parameter. Store in
361 gdbarch_data.
362 (init_gdbarch_data): Use set_gdbarch_data.
363 (set_gdbarch_data): New function.
364
365 * gdbarch.h, gdbarch.c: Re-generate.
366
367 2001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
368
369 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
370 fprintf_filtered with correct arguments.
371
372 2001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
373 Submitted by Paul Hilfinger (hilfingr@gnat.com)
374 and Andrei Petrov (and@genesyslab.com).
375 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
376 must be allocated dynamically, since these are no longer constants.
377 * infcmd.c: Ditto.
378 * regcache.c: Ditto.
379 * remote.c: Ditto.
380 * sol-thread.c: Ditto.
381 * valops.c: Ditto.
382 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
383 work-around for a missing Sun header file in solaris for sparc64.
384
385 2001-02-04 Philip Blundell <philb@gnu.org>
386
387 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
388 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
389 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
390 GET_THREAD_SIGNALS): Define.
391 * arm-linux-nat.c (fill_gregset): Correct type of argument.
392 (supply_gregset): Likewise.
393 (fill_fpregset): Likewise.
394 (supply_fpregset): Likewise.
395
396 Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
397
398 * valops.c (value_cast): If casting a scalar to a pointer, do not
399 issue a message about truncation unless it exceeds the length of
400 an address, not the length of a pointer. This is because what the
401 user gives us is an address, not a pointer, and we will ultimately
402 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
403 to a pointer. This allows things like "print *(int *)0x01000234"
404 to work without generating a misleading message on a target having
405 two byte pointers and four byte addresses.
406
407 2001-02-05 Christopher Faylor <cgf@cygnus.com>
408
409 * win32-nat.c: Change PTR to void * throughout.
410
411 2001-02-05 J.T. Conklin <jtc@redback.com>
412
413 * signals.h: Removed.
414 * event-top.c (#include <signal.h>): Changed from signals.h.
415 * inflow.c: Likewise.
416 * mac-xdep.c: Likewise.
417 * ser-pipe.c: Likewise.
418 * ser-tcp.c: Likewise.
419 * standalone.c: Likewise.
420 * top.c: Likewise.
421 * utils.c: Likewise.
422 * Makefile.in: Removed signals.h from dependencies.
423
424 2001-02-05 Christopher Faylor <cgf@cygnus.com>
425
426 Change suggested by Dean Luick <luick@cray.com>
427 * inferior.h (step_over_calls_kind): Remove trailing comma from
428 last enum element.
429 (step_over_calls): Declare as extern rather than global.
430
431 2001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
432
433 * sh-tdep.c: Update copyright.
434 (sh_extract_return_value): Rewrite.
435 (sh3e_sh4_extract_return_value): New function.
436 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
437 version of the function for sh3e and sh4 CPUs.
438
439 2001-02-05 Michael Chastain <chastain@redhat.com>
440
441 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
442 to conform with interface change.
443
444 2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
445
446 * config/djgpp/fnchange.lst: Tweak to make consistent with the
447 new files.
448
449 * config/djgpp/djconfig.sh: Use explicit absolute file name when
450 invoking `find'.
451
452 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
453 UART_FIFO_WORKS is defined. Otherwise use outportb.
454 From Francisco Pastor <fpastor.etra-id@etra.es>
455
456 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
457 with target.h's `to_xfer_memory' member.
458
459 2001-02-02 J.T. Conklin <jtc@redback.com>
460
461 * ppc-bdm.c (#include <signal.h>): Removed.
462 * remote-array.c: Likewise.
463 * remote-bug.c: Likewise.
464 * remote-e7000.c: Likewise.
465 * remote-mips.c: Likewise.
466 * remote-os9k.c: Likewise.
467 * remote-st.c: Likewise.
468 * remote-udi.c: Likewise.
469 * remote-vx29k.c: Likewise.
470 * remote-vx68.c: Likewise.
471 * remote-vx960.c: Likewise.
472 * remote-vxmips.c: Likewise.
473 * remote-vxsparc.c: Likewise.
474
475 2001-02-02 John Moore <jmoore@redhat.com>
476
477 * remote-utils.h (sr_set_device): Changed free() to xfree() where
478 appropriate. Also changed Copyright to include 2001.
479 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
480 * value.h (value_free): Likewise.
481 * gdbarch.sh (gdbarch_free): Likewise.
482 * gdbarch.c, gdbarch.h: Regenerated.
483
484 2001-02-02 John Moore <jmoore@redhat.com>
485
486 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
487 xfree(). Also changed Copyright to include 2001.
488
489 2001-02-02 J.T. Conklin <jtc@redback.com>
490
491 * monitor.c (#include "gdb_wait.h"): Removed.
492 * ocd.c: Likewise.
493 * ppc-bdm.c: Likewise.
494 * remote-adapt.c: Likewise.
495 * remote-array.c: Likewise.
496 * remote-bug.c: Likewise.
497 * remote-e7000.c: Likewise.
498 * remote-eb.c: Likewise.
499 * remote-es.c: Likewise.
500 * remote-mips.c: Likewise.
501 * remote-mm.c: Likewise.
502 * remote-nindy.c: Likewise.
503 * remote-os9k.c: Likewise.
504 * remote-rdi.c: Likewise.
505 * remote-rdp.c: Likewise.
506 * remote-sds.c: Likewise.
507 * remote-sim.c: Likewise.
508 * remote-st.c: Likewise.
509 * remote-udi.c: Likewise.
510 * remote-vx.c: Likewise.
511 * remote-vx29k.c: Likewise.
512 * remote-vx68.c: Likewise.
513 * remote-vx960.c: Likewise.
514 * remote-vxmips.c: Likewise.
515 * remote-vxsparc.c: Likewise.
516 * remote.c: Likewise.
517 * ser-pipe.c: Likewise.
518 * ser-unix.c: Likewise.
519 * Makefile.in: Updated dependencies.
520
521 2001-01-31 David Smith <dsmith@redhat.com>
522
523 * event-loop.c: Change inclusion of string.h to gdb_string.h and
524 updated the copyright notice.
525 * ser-pipe.c: Ditto.
526 * mi/mi-cmds.c: Ditto.
527 * mi/mi-console.c: Ditto.
528 * mi/mi-getopt.c: Ditto.
529 * mi/mi-parse.c: Ditto.
530
531 2001-01-31 David Smith <dsmith@redhat.com>
532
533 * MAINTAINERS: Add David Smith to Write After Approval list.
534
535 Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
536
537 * cli/cli-utils.c (putchar_filtered): Move function from here.
538 * utils.c (putchar_filtered): To here.
539 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
540 * defs.h (putchar_filtered): To here.
541
542 Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
543
544 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
545 AC_FUNC_VFORK macro.
546 * config.in, configure: Re-generate.
547
548 * gdb_vfork.h: New file.
549 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
550 * fork-child.c (fork_inferior): Ditto.
551
552 Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
553
554 * defs.h (strsave): Delete declaration.
555 * utils.c (strsave): Delete definition.
556 * TODO (strsave): Update
557
558 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
559 * sparcl-tdep.c (sparclite_open): Ditto.
560 * mips-tdep.c (mips_set_processor_type_command): Ditto.
561 (_initialize_mips_tdep): Ditto.
562 * solib.c (solib_open): Ditto.
563 * symfile.c (add_filename_language): Ditto.
564 (set_ext_lang_command): Ditto.
565 * source.c (init_source_path): Ditto.
566 (mod_path): Ditto.
567 * sh3-rom.c (sh3_open): Ditto.
568 (sh3e_open): Ditto.
569 * serial.c (serial_open): Ditto.
570 * remote-mips.c (common_open): Ditto.
571 * monitor.c (monitor_open): Ditto.
572 * m32r-rom.c (m32r_upload_command): Ditto.
573 * infcmd.c (path_command): Ditto.
574 * f-exp.y (parse_number): Ditto.
575 * breakpoint.c (create_longjmp_breakpoint): Ditto.
576 (create_thread_event_breakpoint): Ditto.
577 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
578 (_initialize_arc_tdep): Ditto.
579
580 Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
581
582 * cli/cli-script.c (define_command): Check for a bad hook value in
583 switch statement.
584
585 2001-01-30 J.T. Conklin <jtc@redback.com>
586
587 * configure/sh/embed.mt: New file.
588 * configure/sh/linux.mt: New file.
589 * configure/sh/sh.mt: Removed.
590 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
591 (sh-*-*): Removed.
592
593 2001-01-29 Michael Chastain <chastain@redhat.com>
594
595 * symtab.c (block_lookup_symbol): Use 'namespace' parameter in
596 symbol comparisons in binary search.
597
598 2000-01-27 Christopher Faylor <cgf@cygnus.com>
599
600 * win32-nat.c (child_xfer_memory): Add missing argument required by
601 2001-01-23 change.
602
603 2001-01-27 Mark Kettenis <kettenis@gnu.org>
604
605 * ui-out.c (do_list_end): New function.
606 (make_cleanup_ui_out_list_end): New function.
607 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
608 * stack.c (print_frame) [UI_OUT]: Call
609 make_cleanup_ui_out_list_end to make sure we mark the end of the
610 list if we do a non-local exit. At the end of the function,
611 instead of calling ui_out_list_end directly, let do_cleanups
612 handle it.
613
614 2001-01-26 Fernando Nasser <fnasser@redhat.com>
615
616 Fix double parsing of filenames passed as command line arguments
617 to GDB (causes weird handling of escape characters).
618 Also, remove dependencies on the CLI from libgdb.
619 * call-cmds.h: Remove declaration of exec_file_command().
620 * gdbcore.h: Remove declaration of exec_file_command().
621 Add declarations for exec_open() and exec_file_clear().
622 * symfile.h: Add declarations for symbol_file_add_main() and
623 symbol_file_clear().
624 * exec.c (exec_open): New function. Implements to_open for exec
625 targets.
626 (exec_file_clear): New function. Makes GDB forget about a previously
627 specified executable file.
628 (exec_file_attach): Move parsing of arguments from here ...
629 (exec_file_command): ... to here.
630 (init_exec_ops): Use exec_open(), not exec_file_command() to
631 implement to_open for exec targets.
632 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
633 with default values. Used when the file name has already been parsed.
634 (symbol_file_clear): New function. Makes GDB forget about previously
635 read symbols.
636 (symbol_file_command): Call the above function instead of inline code.
637 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
638 "call-cmds.h".
639 (captured_main): Call exec_file_attach() and symbol_file_add_main()
640 instead of exec_file_command() and symbol_file_command().
641 (captured_main): Add comment.
642 * corefile.c: Include "symfile.h".
643 (core_file_command): Call symbol_file_add_main() instead of
644 symbol_file_command().
645 (reopen_exec_file): Call exec_open() instead of exec_file_command().
646 * infcmd.c: Include "symfile.h".
647 (attach_command): Call symbol_file_add_main() instead of
648 symbol_file_command().
649 * infrun.c: Remove comment about the inclusion of "symfile.h",
650 not any longer appropriate.
651 (follow_exec): Call symbol_file_add_main() instead of
652 symbol_file_command().
653 * remote-es.c: Include "symfile.h".
654 (es1800_load): Call symbol_file_add_main() instead of
655 symbol_file_command().
656 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
657 not any longer appropriate.
658 (vx-wait): Call symbol_file_add_main() instead of
659 symbol_file_command().
660 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
661 instead of symbol_file_command().
662 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
663 symbol_file_add_main() instead of exec_file_command() and
664 symbol_file_command().
665 * Makefile.in: Update dependencies.
666
667 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
668
669 * remote-udi.c (udi_open): Change strdup to xstrdup.
670 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
671 Update copyright message.
672 * varobj.c (delete_variable_1): Likewise.
673
674 * gdb_string.h: Remove declaration of strdup. Update copyright
675 message.
676 * config/xm-mpw.h: Likewise.
677 * config/i386/xm-i386mach.h: Likewise.
678 * config/m68k/xm-apollo68b.h: Likewise.
679 * config/m68k/xm-hp300bsd.h: Likewise.
680 * config/rs6000/xm-rs6000.h: Likewise.
681 * config/vax/xm-vaxult.h: Remove declaration of strdup.
682 * config/vax/xm-vaxult2.h: Likewise.
683
684 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
685
686 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
687
688 2001-01-25 J.T. Conklin <jtc@redback.com>
689
690 * target.c (target_xfer_memory_partial): Return -1 on failure due
691 to invalid access mode attribute.
692
693 2001-01-25 Christopher Faylor <cgf@cygnus.com>
694
695 * win32-nat.c (_initialize_core_win32): Prototype correctly.
696
697 2001-01-25 Mark Kettenis <kettenis@gnu.org>
698
699 * config/alpha/tm-fbsd.h: Update copyright.
700 (USE_STRUCT_CONVENTION): Define in terms of
701 alphabsd_use_struct_convention.
702 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
703 * alphafbsd-tdep.c: New file.
704
705 2001-01-24 Fernando Nasser <fnasser@redhat.com>
706
707 * top.c (print_gdb_version): Update Copyright year.
708
709 2001-01-24 J.T. Conklin <jtc@redback.com>
710
711 * dcache.c (dcache_write_line): Fix typo.
712
713 * memattr.c (delete_mem_region): Replace free() with xfree().
714 (mem_number): Add explicit type.
715
716 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
717 (rw_common): Likewise.
718
719 2001-01-24 Fernando Nasser <fnasser@redhat.com>
720
721 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
722 for the inferior program arguments.
723 (run_command, run_no_args_command, init_infcmd)): Use accessor
724 functions to set the inferior program arguments.
725 * inferior.h: Add definitions to the accessor functions above.
726
727 2001-01-23 Jim Blandy <jimb@redhat.com>
728
729 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
730 Implement these correctly, using make_cv_type.
731
732 2001-01-23 J.T. Conklin <jtc@redback.com>
733
734 * exec.c (xfer_memory): Add attrib argument.
735 * infptrace.c (child_xfer_memory): Likewise.
736 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
737 * monitor.c (monitor_xfer_memory): Likewise.
738 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
739 * remote-array.c (array_xfer_memory): Likewise.
740 * remote-bug.c (bug_xfer_memory): Likewise.
741 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
742 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
743 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
744 * remote-mips.c (mips_xfer_memory): Likewise.
745 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
746 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
747 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
748 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
749 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
750 * remote-sds.c (sds_xfer_memory): Likewise.
751 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
752 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
753 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
754 * remote-vx.c (vx_xfer_memory): Likewise.
755 * remote.c (remote_xfer_memory): Likewise.
756 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
757 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
758 * thread-db.c (thread_db_xfer_memory): Likewise.
759
760 * target.h (#include "memattr.h"): Added.
761 (target_ops.to_xfer_memory): Add attrib argument.
762
763 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
764 * dcache.h (set_dcache_state): Removed declaration.
765 * dcache.c (set_dcache_state): Removed definition
766
767 * dcache.c: Update module comment, as dcache is now enabled and
768 disabled with memory region attributes instead of by the global
769 variable "remotecache". Add comment describing the interaction
770 between dcache and memory region attributes.
771 (dcache_xfer_memory): Add comment describing benefits of moving
772 cache writeback to a higher level.
773 (dcache_struct): Removed cache_has_stuff field. This was used to
774 record whether the cache had been accessed in order to invalidate
775 it when it was disabled. However, this is not needed because the
776 cache is write through and the code that enables, disables, and
777 deletes memory regions invalidate the cache. Add comment which
778 suggests that we could be more selective and only invalidate those
779 cache lines containing data from those memory regions.
780 (dcache_invalidate): Updated.
781 (dcache_xfer_memory): Updated.
782
783 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
784 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
785 perform a uncached transfer if dcache_enabled_p was clear. This
786 function is now only called if caching is enabled for the memory
787 region.
788 (dcache_info): Always print cache info.
789
790 * target.c (do_xfer_memory): Add attrib argument.
791 (target_xfer_memory, target_xfer_memory_partial): Break transfer
792 into chunks defined by memory regions, pass region attributes to
793 do_xfer_memory().
794 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
795
796 * Makefile.in (SFILES): Add memattr.c.
797 (COMMON_OBS): Add memattr.o.
798 (dcache.o): Add target.h to dependencies.
799 * memattr.c: New file.
800 * memattr.h: Likewise.
801
802 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
803 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
804 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
805 * gdbserver/low-sim.c (#include "defs.h"): Removed.
806 (mygeneric_load): Rename from generic_load.
807
808 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
809 (#include "defs.h"): Removed.
810 (inferior_pid, perror_with_name): Remove declarations.
811 * gdbserver/low-linux.c: Likewise.
812 * gdbserver/low-nbsd.c: Likewise.
813 * gdbserver/low-sparc.c: Likewise.
814 * gdbserver/low-sun3.c: Likewise.
815
816 * i386-stub.c: Re-indent.
817 * m68k-stub.c: Re-indent.
818
819 2001-01-22 Nicholas Duffek <nsd@redhat.com>
820
821 * gdbarch.sh (PARM_BOUNDARY): Define.
822 * gdbarch.c: Regenerate.
823 * gdbarch.h: Regenerate.
824
825 2001-01-22 J.T. Conklin <jtc@redback.com>
826
827 * ns32k-tdep.c: #include "frame.h"
828 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
829 appears to have been inadvertantly removed sometime in May 1999.
830
831 * Revert 2000-11-09 changes where shared library objects were
832 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
833 we'd like to be able to debug dynamically linked executables,
834 this makes it impossible to build a cross debugger on a many
835 hosts.
836
837 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
838 * config/i386/nbsdelf.mt: Likewise.
839 * config/m68k/nbsd.mt: Likewise.
840 * config/ns32k/nbsd.mt: Likewise.
841 * config/powerpc/nbsd.mt: Likewise.
842 * config/sparc/nbsd.mt: Likewise.
843 * config/sparc/nbsdelf.mt: Likewise.
844 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
845 * config/i386/nbsdelf.mh: Likewise.
846 * config/m68k/nbsd.mh: Likewise.
847 * config/ns32k/nbsd.mh: Likewise.
848 * config/powerpc/nbsd.mh: Likewise.
849 * config/sparc/nbsd.mh: Likewise.
850
851 2001-01-19 Jason Merrill <jason@redhat.com>
852
853 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
854 (process_one_symbol): Likewise.
855 * dwarfread.c (handle_producer): Likewise.
856
857 Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
858
859 * configure.in (build_warnings): Disable -Wuninitialized until GDB
860 compiles with -Wuninitialized,-Werror.
861 * configure: Regenerate.
862
863 * MAINTAINERS: Add list of buildable targets.
864
865 Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
866
867 * defs.h (STRCMP): Delete macro.
868
869 * objfiles.c (objfile_relocate): Replace STRCMP with call to
870 strcmp.
871 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
872 * symfile.c (compare_symbols): Ditto.
873 * standalone.c (open): Ditto.
874 * remote-es.c (verify_break): Ditto.
875 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
876
877 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
878
879 Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
880
881 * varobj.c (FREEIF): Delete macro.
882 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
883 call.
884
885 2001-01-18 Nick Clifton <nickc@redhat.com>
886
887 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
888 (arc_print_insn): No bfd available, so pass NULL to
889 arc_get_disassembler.
890
891 2001-01-09 James Ingham <jingham@inghji.apple.com>
892
893 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
894 a mangled symbol rather than recursing into lookup_symbol, since
895 this will just re-unmangle the name & call lookup_symbol_aux -
896 leading to an infinite recursion.
897
898 2001-01-18 Mark Kettenis <kettenis@gnu.org>
899
900 * infcmd.c (print_return_value): Restore another space lost by
901 switch to UIOUT. ``$NN='' should be ``$NN =''.
902
903 Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
904
905 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
906 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
907 definition in parenthesis.
908
909 Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
910
911 From 2000-10-27 Mark Salter <msalter@redhat.com>:
912 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
913 packet.
914 (remote_insert_hw_breakpoint): Ditto.
915
916 2001-01-17 J.T. Conklin <jtc@redback.com>
917
918 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
919 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
920 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
921 * m68knbsd-tdep.c: New file.
922
923 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
924
925 * m68knbsd-nat.c: #include gdbcore.h.
926
927 Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
928
929 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
930
931 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
932
933 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
934 goes away -- just return false (ie. not stopped by watchpoint).
935 * source.c (openp): Fix typo in comment.
936
937 2001-01-12 Nicholas Duffek <nsd@redhat.com>
938
939 * blockframe.c (generic_get_saved_register): Spelling fix.
940 * frame.h (FRAME_FP): Spelling fix.
941
942 Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
943
944 * infcmd.c (print_return_value): Restore space lost by switch to
945 UIOUT. ``$NN='' should be ``$NN =''.
946
947 2001-01-08 Nicholas Duffek <nsd@redhat.com>
948
949 * regcache.c (set_register_cached, register_buffer,
950 real_register, pseudo_register fetch_register, store_register):
951 New functions.
952 (register_changed, read_relative_register_raw_bytes_for_frame,
953 registers_changed, registers_fetched, read_register_bytes,
954 read_register_gen, write_register_gen, read_register,
955 read_signed_register, write_register, supply_register): Replace
956 register_valid[] with register_cached() and
957 set_register_cached().
958 (read_register_bytes, read_register_gen, write_register_gen,
959 read_register, read_signed_register, write_register,
960 supply_register): Replace registers[] with register_buffer().
961 (read_register_bytes, read_register_gen, read_register,
962 read_signed_register): Call fetch_register().
963 (write_register_gen, write_register): Call real_register() and
964 store_register().
965 (write_register_bytes): Call store_register().
966 * value.h (set_register_cached, register_buffer): Prototype.
967 * remote.c (remote_fetch_registers): Allocate regs[] with a
968 run-time size. Replace register_valid[] with
969 set_register_cached().
970 (store_register_using_P, remote_store_registers): Replace
971 registers[] with register_buffer().
972
973 2001-01-08 Nicholas Duffek <nsd@redhat.com>
974
975 * regcache.c: Change "write-back" comment to "write-through".
976 Change "regno" to "regnum".
977 (read_register, read_signed_register): Remove "raw" from return
978 value description.
979 (supply_register): Spelling fix.
980 * value.h: Change "regno" to "regnum".
981
982 2001-01-08 Fernando Nasser <fnasser@redhat.com>
983
984 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
985 to be installed.
986
987 2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
988
989 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
990
991 2001-01-04 Nicholas Duffek <nsd@redhat.com>
992
993 * valops.c (VALUE_SUBSTRING_START): Delete.
994
995 2001-01-04 Nicholas Duffek <nsd@redhat.com>
996
997 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
998 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
999 (cli_utils_h): New variable.
1000 (cli/cli-utils.o): New rule.
1001 * cli/cli-utils.c: New file.
1002 * cli/cli-utils.h: New file.
1003
1004 2001-01-04 Nicholas Duffek <nsd@redhat.com>
1005
1006 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
1007 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
1008
1009 2001-01-03 J.T. Conklin <jtc@redback.com>
1010
1011 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
1012 comment.
1013
1014 2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
1015
1016 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
1017 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
1018 non-float types.
1019 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
1020 Update copyright notice.
1021
1022 For older changes see ChangeLog-2000
1023 \f
1024 Local Variables:
1025 mode: change-log
1026 left-margin: 8
1027 fill-column: 74
1028 version-control: never
1029 End: