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