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