platform/upstream/binutils.git
24 years ago2000-03-20 Eli Zaretskii <eliz@is.elta.co.il>
Michael Snyder [Tue, 21 Mar 2000 01:27:34 +0000 (01:27 +0000)]
2000-03-20  Eli Zaretskii  <eliz@is.elta.co.il>

        * breakpoint.c (insert_breakpoints, remove_breakpoint)
        (bpstat_stop_status, can_use_hardware_watchpoint): Don't insert,
        remove, or check status of hardware watchpoints for entire structs
        and arrays unless the user explicitly asked to watch that struct
        or array.
        (insert_breakpoints): Try to insert watchpoints for all the values
        on the value chain, even if some of them fail to insert.

        * values.c (value_primitive_field): Set the offset in struct value
        we return when the field is a packed bitfield.

24 years ago2000-03-20 Michael Snyder <msnyder@cleaver.cygnus.com>
Michael Snyder [Tue, 21 Mar 2000 01:22:05 +0000 (01:22 +0000)]
2000-03-20  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * remote.c (remote_threads_extra_info): new function.
        Implement the extra thread info query for "info threads".
        (remote_threads_info): clean up a bit.
        (use_threadinfo_query, use_threadextra_query): new variables.
        Control whether GDB will use the new or old protocol for
        thread info queries.
        (remote_open_1): initialize new variables.
        (remote_async_open_1): ditto.
        (remote_cisco_open): ditto.

24 years agoNew files for IA-64 port.
Kevin Buettner [Tue, 21 Mar 2000 00:11:10 +0000 (00:11 +0000)]
New files for IA-64 port.

24 years ago2000-03-20 Michael Snyder <msnyder@cleaver.cygnus.com>
Michael Snyder [Mon, 20 Mar 2000 22:51:36 +0000 (22:51 +0000)]
2000-03-20  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * gdb.texinfo: Add white space to prevent overprinting in
        two places.

24 years agoFixes for floatformat_from_doublest().
Kevin Buettner [Mon, 20 Mar 2000 22:15:58 +0000 (22:15 +0000)]
Fixes for floatformat_from_doublest().

24 years ago* i386-linux-nat.c: No need to #include "frame.h" any more.
Jim Blandy [Mon, 20 Mar 2000 20:38:29 +0000 (20:38 +0000)]
* i386-linux-nat.c: No need to #include "frame.h" any more.
(LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2, linux_sigtramp_code,
LINUX_SIGTRAMP_LEN, i386_linux_sigtramp_start,
LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1,
linux_rt_sigtramp_code, LINUX_RT_SIGTRAMP_LEN,
i386_linux_rt_sigtramp_start, i386_linux_in_sigtramp,
i386_linux_sigcontext_addr, LINUX_SIGCONTEXT_PC_OFFSET,
i386_linux_sigtramp_saved_pc, LINUX_SIGCONTEXT_SP_OFFSET,
i386_linux_sigtramp_saved_sp): Deleted.  Folks rightly pointed
out that these are target-dependent, and useful in non-native
configurations.  Moved to...
* i386-linux-tdep.c: ... Here, a new file.
* Makefile.in (ALLDEPFILES): Add i386-linux-tdep.c.
(i386-linux-tdep.o): New rule.
(i386-linux-nat.o): We no longer depend on frame.h.
* config/i386/linux.mt (TDEPFILES): Add i386-linux-tdep.o.

24 years ago2000-03-04 Eli Zaretskii <eliz@is.elta.co.il>
Elena Zannoni [Mon, 20 Mar 2000 19:59:38 +0000 (19:59 +0000)]
2000-03-04  Eli Zaretskii  <eliz@is.elta.co.il>

* event-loop.c (top-level) [NO_FD_SET]: Deprecate this branch.
Print an error at compile time if we are to use select, but FD_SET
is not available.
(SELECT_MASK, NBBY, FD_SETSIZE, NFDBITS, MASK_SIZE): Define only
if HAVE_POLL is not defined and NO_FD_SET *is* defined.
(create_file_handler) [!HAVE_POLL]: Use FD_SET and FD_CLR.
(delete_file_handler) [!HAVE_POLL]: Use FD_CLR and FD_ISSET.
(gdb_wait_for_event) [!HAVE_POLL]: Copy fd_set sets directly
instead of using memcpy and memset.  Use FD_ISSET.

* config/i386/xm-go32.h (fd_mask): Remove typedef.

24 years ago * Makefile.in (install): Append "n", not ".n" to libmmalloc.a,
Eli Zaretskii [Mon, 20 Mar 2000 10:31:58 +0000 (10:31 +0000)]
* Makefile.in (install): Append "n", not ".n" to libmmalloc.a,
since the latter loses on DOS 8+3 filesystems.

24 years agoDocument requirements on adding a ``!'' command.
Andrew Cagney [Mon, 20 Mar 2000 09:19:45 +0000 (09:19 +0000)]
Document requirements on adding a ``!'' command.

24 years agoAdd sh2 to list of known architectures.
Andrew Cagney [Mon, 20 Mar 2000 07:28:05 +0000 (07:28 +0000)]
Add sh2 to list of known architectures.

24 years agoFrom John David Anglin:
Andrew Cagney [Mon, 20 Mar 2000 06:41:24 +0000 (06:41 +0000)]
From John David Anglin:
Don't initialize HPUX thread twice.

24 years agofix bug detecting pc-rel overflow
Nick Clifton [Sun, 19 Mar 2000 22:09:23 +0000 (22:09 +0000)]
fix bug detecting pc-rel overflow

24 years ago * event-top.c (_initialize_event_loop): If instream is not
Eli Zaretskii [Sun, 19 Mar 2000 12:30:38 +0000 (12:30 +0000)]
* event-top.c (_initialize_event_loop): If instream is not
connected to a terminal device, turn editing off.

24 years ago Support for building GDB with DJGPP, and running the test suite on
Eli Zaretskii [Sun, 19 Mar 2000 11:53:24 +0000 (11:53 +0000)]
Support for building GDB with DJGPP, and running the test suite on
it:
* config/djgpp/djconfig.sh: New file.
* config/djgpp/config.sed: New file.
* config/djgpp/README: New file.
* config/djgpp/fnchange.lst: New file.
* config/djgpp/djcheck.sh: New file.

24 years ago*** empty log message ***
Eli Zaretskii [Sun, 19 Mar 2000 11:26:30 +0000 (11:26 +0000)]
*** empty log message ***

24 years ago * ser-go32.c (ports): Make the initializers complete, to pacify
Eli Zaretskii [Sun, 19 Mar 2000 11:24:41 +0000 (11:24 +0000)]
* ser-go32.c (ports): Make the initializers complete, to pacify
GCC 2.9X.

24 years ago*** empty log message ***
Jim Blandy [Sat, 18 Mar 2000 01:57:42 +0000 (01:57 +0000)]
*** empty log message ***

24 years ago* gdb_wait.h (WSETSTOP): Pass the appropriate number of arguments
Jim Blandy [Sat, 18 Mar 2000 01:57:00 +0000 (01:57 +0000)]
* gdb_wait.h (WSETSTOP): Pass the appropriate number of arguments
to W_STOPCODE.

24 years ago* linux-thread.c (linuxthreads_attach, linuxthreads_detach,
Jim Blandy [Sat, 18 Mar 2000 01:56:31 +0000 (01:56 +0000)]
* linux-thread.c (linuxthreads_attach, linuxthreads_detach,
linuxthreads_create_inferior): Fix typo in variable name: it's
linuxthreads_exit_status, not linux_exit_status.

24 years ago * gdb.texinfo: Many minor changes from Dmitry Sivachenko
Stan Shebs [Sat, 18 Mar 2000 00:40:12 +0000 (00:40 +0000)]
* gdb.texinfo: Many minor changes from Dmitry Sivachenko
<dima@Chg.RU>, also clarification of allowed content for
string constants.

24 years agoFix adr pseudo op for Thumb.
Nick Clifton [Fri, 17 Mar 2000 22:12:08 +0000 (22:12 +0000)]
Fix adr pseudo op for Thumb.

24 years ago*** empty log message ***
Jim Blandy [Fri, 17 Mar 2000 20:12:51 +0000 (20:12 +0000)]
*** empty log message ***

24 years ago* solib.c (solib_add): Delete debugging code.
Jim Blandy [Fri, 17 Mar 2000 20:12:23 +0000 (20:12 +0000)]
* solib.c (solib_add): Delete debugging code.

24 years agominor formatting improvements
Nick Clifton [Fri, 17 Mar 2000 20:00:36 +0000 (20:00 +0000)]
minor formatting improvements

24 years ago2000-03-17 Mark Kettenis <kettenis@gnu.org>
Michael Snyder [Fri, 17 Mar 2000 19:50:29 +0000 (19:50 +0000)]
2000-03-17  Mark Kettenis  <kettenis@gnu.org>

        * gdb_wait.h: add definitions of WSETSTOP and WSETEXIT for Linux.
        * linux-thread.c: Use WSETSTOP instead of W_STOPCODE.

24 years agofix compile time warning messages
Nick Clifton [Fri, 17 Mar 2000 19:44:41 +0000 (19:44 +0000)]
fix compile time warning messages

24 years agoHandle same-section relocations where the destination is at an address >=
Nick Clifton [Fri, 17 Mar 2000 19:35:44 +0000 (19:35 +0000)]
Handle same-section relocations where the destination is at an address >=
0x00400000.

24 years ago * language.c (set_lang_str): Do not call `free' for a null pointer.
Philippe De Muyter [Fri, 17 Mar 2000 10:19:22 +0000 (10:19 +0000)]
   * language.c (set_lang_str): Do not call `free' for a null pointer.
         (set_type_str, set_range_str): Ditto.

24 years agoExtend the allowed bitfield range (ie. that for which
Alan Modra [Fri, 17 Mar 2000 02:02:38 +0000 (02:02 +0000)]
Extend the allowed bitfield range (ie. that for which
complain_overflow_bitfield doesn't complain) from -2**(n-1)..2**n-1 to
-2**n..2**n.  This might mean that some reloc overflows are no longer
caught, but it solves the address wrap problem for 16-bit relocs
nicely.  In any case, ports that rely on complain_overflow_bitfield
for reloc overflow checking were not getting a very good check
previously.  A bitfield range in a machine instruction is typically
either the signed or unsigned n bit numbers, not the overlap of these
two ranges.

24 years ago* i386-linux-nat.c (i386_linux_saved_pc_after_call): Lost in the
Jim Blandy [Thu, 16 Mar 2000 23:53:35 +0000 (23:53 +0000)]
* i386-linux-nat.c (i386_linux_saved_pc_after_call): Lost in the
merge; reinstated.

24 years ago * config/tc-sh.c (md_begin): When encountering insn that are
Joern Rennecke [Thu, 16 Mar 2000 23:50:18 +0000 (23:50 +0000)]
* config/tc-sh.c (md_begin): When encountering insn that are
not supported by the current arch, only change the name if
its contents are the same as prev_name.
(get_specific): If the the architecture doesn't match, fail.

24 years ago*** empty log message ***
Jim Blandy [Thu, 16 Mar 2000 23:13:18 +0000 (23:13 +0000)]
*** empty log message ***

24 years ago* solib.c (current_sos): Be more careful about freeing the new
Jim Blandy [Thu, 16 Mar 2000 23:12:42 +0000 (23:12 +0000)]
* solib.c (current_sos): Be more careful about freeing the new
so_list node if an error occurs.

24 years agoDoc fix.
Jim Blandy [Thu, 16 Mar 2000 22:51:49 +0000 (22:51 +0000)]
Doc fix.

24 years ago* i386-tdep.c (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
Jim Blandy [Thu, 16 Mar 2000 22:46:30 +0000 (22:46 +0000)]
* i386-tdep.c (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2, linux_sigtramp_code,
LINUX_SIGTRAMP_LEN, i386_linux_sigtramp_start,
LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1,
linux_rt_sigtramp_code, LINUX_RT_SIGTRAMP_LEN,
i386_linux_rt_sigtramp_start, i386_linux_in_sigtramp,
i386_linux_sigcontext_addr, LINUX_SIGCONTEXT_PC_OFFSET,
i386_linux_sigtramp_saved_pc, LINUX_SIGCONTEXT_SP_OFFSET,
i386_linux_sigtramp_saved_sp): Deleted.  These all implement
Linux-specific signal trampoline detection, and should be moved to...
* i386-linux-nat.c: ... here.
* config/i386/tm-linux.h (I386_LINUX_SIGTRAMP): No need to define
this any more, since we're not enabling OS-specific code in a
OS-independent file.

24 years ago * config/tc-sh.c (IDENT_CHAR): Define.
Joern Rennecke [Thu, 16 Mar 2000 21:18:53 +0000 (21:18 +0000)]
* config/tc-sh.c (IDENT_CHAR): Define.
(parse_reg): Use it instead of isalnum.  Put r[0..7]_bank operand
matching back where it came from.

24 years ago * config/tc-sh.c (md_show_usage): Add description of -dsp.
Joern Rennecke [Thu, 16 Mar 2000 20:59:08 +0000 (20:59 +0000)]
* config/tc-sh.c (md_show_usage): Add description of -dsp.

24 years ago*** empty log message ***
Eli Zaretskii [Thu, 16 Mar 2000 12:05:12 +0000 (12:05 +0000)]
*** empty log message ***

24 years ago * gdb.texinfo (main menu): Add Annotations.
Eli Zaretskii [Thu, 16 Mar 2000 11:40:53 +0000 (11:40 +0000)]
* gdb.texinfo (main menu): Add Annotations.
(File Options): Add @cindex entries for each command-line option.
Document --epoch, --annotate, --async, --interpreter, --write,
--statistics, and --version.

* annotate.texi: Convert to a chapter.  Use @value{GDBN} instead
of GDB.

24 years agoTypo in spelling Makefile.in...
Eli Zaretskii [Thu, 16 Mar 2000 10:24:30 +0000 (10:24 +0000)]
Typo in spelling Makefile.in...

24 years ago(go32-nat.o): Add prerequisites.
Eli Zaretskii [Thu, 16 Mar 2000 10:23:38 +0000 (10:23 +0000)]
(go32-nat.o): Add prerequisites.
(ALLDEPFILES): Add go32-nat.c.

24 years agoMatch r[0..7]_bank operands before normal operands.
Nick Clifton [Thu, 16 Mar 2000 01:18:13 +0000 (01:18 +0000)]
Match r[0..7]_bank operands before normal operands.

24 years ago * internal.h: Fix a typo in the comment for R_MOVL2.
Jeff Law [Wed, 15 Mar 2000 21:29:17 +0000 (21:29 +0000)]
    * internal.h: Fix a typo in the comment for R_MOVL2.

24 years ago * config/tc-h8300.c: Add ATTRIBUTE_UNUSED as appropriate.
Jeff Law [Wed, 15 Mar 2000 21:28:47 +0000 (21:28 +0000)]
    * config/tc-h8300.c: Add ATTRIBUTE_UNUSED as appropriate.

24 years ago2000-03-15 Michael Snyder <msnyder@cleaver.cygnus.com>
Michael Snyder [Wed, 15 Mar 2000 19:43:57 +0000 (19:43 +0000)]
2000-03-15  Michael Snyder  <msnyder@cleaver.cygnus.com>

        From "Peter.Schauer" <Peter.Schauer@regent.e-technik.tu-muenchen.de>
        * symfile.c (reread_symbols):  Clear msymbol hash table.

24 years agoDeal with the inferior unloading shared objects.
Jim Blandy [Wed, 15 Mar 2000 16:55:07 +0000 (16:55 +0000)]
Deal with the inferior unloading shared objects.
* solib.c (current_sos): New function, replacing find_solib.
(find_solib): Deleted.
(free_so): New function.
(clear_solib): Call free_so, instead of writing it out.
(solib_add): Rewritten: compare the inferior's current list of
shared objects with GDB's list, and do the required loads and
unloads.
(info_sharedlibrary_command, solib_address): Don't use find_solib
to walk the list of shared libraries: call solib_add, and then
walk the list at so_list_head normally.
* objfiles.c (free_objfile): Don't call CLEAR_SOLIB, and don't
detach the core target.  These tasks are taken care of elsewhere.
* target.c (remove_target_sections): New function.
* target.h (remove_target_sections): New declaration.

* solib.c (symbol_add_stub): Check whether we've already created
an objfile for this shared object first, before doing all that
work to compute section addresses, etc.

* objfiles.c (unlink_objfile): Report an internal error if objfile
doesn't occur in the object_files list.

* solib.c (special_symbol_handling): Delete argument; it's not
used.

* solib.c (SOLIB_EXTRACT_ADDRESS):  New macro to extract addresses
from solib structures. Use it throughout solib.c, get rid of all
CORE_ADDR casts.
(struct so_list):  Change type of lmaddr to CORE_ADDR.
(first_link_map_member):  Change return value type to CORE_ADDR,
update callers.
(solib_add_common_symbols):  Change parameter type to CORE_ADDR,
update callers.
(open_symbol_file_object, find_solib):  Change type of lm variable
to CORE_ADDR.

24 years ago[__GO32__]: Include <pc.h>.
Eli Zaretskii [Wed, 15 Mar 2000 12:05:59 +0000 (12:05 +0000)]
[__GO32__]: Include <pc.h>.
Declare _rl_redisplay_after_sigwinch.
[__DJGPP__]: Don't declare term_buffer and term_string_buffer (they are
unused.)
(_rl_get_screen_size) [__DJGPP__]: Call ScreenRows and ScreenCols.
(_rl_init_terminal_io) [__GO32__]: Don't call them here.  Instead, call
_rl_get_screen_size.  Set terminal_name.  Return 0, to be consistent with
the function's declaration.
(ding) [__GO32__]: Support visual bell by calling ScreenVisualBell.

24 years ago[__GO32__]: Don't undef HANDLE_SIGNALS for DJGPP v2.x.
Eli Zaretskii [Wed, 15 Mar 2000 11:59:45 +0000 (11:59 +0000)]
[__GO32__]: Don't undef HANDLE_SIGNALS for DJGPP v2.x.
Don't declare sigwinch_set_flag if SIGWINCH is undefined.

24 years ago[__GO32__]: Don't undef HANDLE_SIGNALS if __DJGPP__ is defined.
Eli Zaretskii [Wed, 15 Mar 2000 11:57:42 +0000 (11:57 +0000)]
[__GO32__]: Don't undef HANDLE_SIGNALS if __DJGPP__ is defined.
(prepare_terminal_settings, rl_prep_terminal, rl_deprep_terminal)
[__GO32__]: Don't bypass termios code if HAVE_TERMIOS_H is defined.

24 years ago[__GO32__]: If HAVE_TEMIOS_H is defined, declare readline_default_bindings.
Eli Zaretskii [Wed, 15 Mar 2000 11:53:33 +0000 (11:53 +0000)]
[__GO32__]: If HAVE_TEMIOS_H is defined, declare readline_default_bindings.
Don't undef HANDLE_SIGNALS if __DJGPP__ is defined.
(readline_initialize_everything): [__GO32__]: Call readline_default_bindings
if HAVE_TERMIOS_H is defined.
(rl_refresh_line) [__GO32__]: Don't use this code if __DJGPP__ is defined.

24 years ago[__GO32__]: Include <pc.h> only if HAVE_SELECT is undefined.
Eli Zaretskii [Wed, 15 Mar 2000 11:47:46 +0000 (11:47 +0000)]
[__GO32__]: Include <pc.h> only if HAVE_SELECT is undefined.
(rl_unget_char, rl_getc) [__GO32__]: Use the go32-specific code only if
HAVE_SELECT is undefined.

24 years ago(read_history_range, history_truncate_file, history_do_write) [__MSDOS__]:
Eli Zaretskii [Wed, 15 Mar 2000 11:44:17 +0000 (11:44 +0000)]
(read_history_range, history_truncate_file, history_do_write) [__MSDOS__]:
Allow for a `_' to replace the leading dot in hard-wrired file names.

24 years ago(_rl_move_vert) [__GO32__]: fflush the stream, to make sure cursor position
Eli Zaretskii [Wed, 15 Mar 2000 11:41:26 +0000 (11:41 +0000)]
(_rl_move_vert) [__GO32__]: fflush the stream, to make sure cursor position
is up-to-date.
(space_to_eol) [__GO32__]: Clear the screen and home the cursor.
(insert_some_chars) [__GO32__]: Don't write directly to the screen in DJGPP
versions 2.x (it doesn't work).
(delete_chars) [__GO32__]: Ditto.

24 years ago(username_completion_function) [__GO32__]: Don't bypass getpw* calls.
Eli Zaretskii [Wed, 15 Mar 2000 11:36:20 +0000 (11:36 +0000)]
(username_completion_function) [__GO32__]: Don't bypass getpw* calls.
(filename_completion_function): Handle drive-relative file names d:foo.

24 years ago(_rl_read_file): Use O_BINARY in open. Enable the test for incomplete
Eli Zaretskii [Wed, 15 Mar 2000 11:32:18 +0000 (11:32 +0000)]
(_rl_read_file): Use O_BINARY in open.  Enable the test for incomplete
read.  Strip the CR characters by hand after readin the file.
(rl_read_init_file): Allow for ~/_intputrc on 8+3 filesystems.

24 years agoShared libraries are not supported on MS-DOS.
Eli Zaretskii [Wed, 15 Mar 2000 11:25:30 +0000 (11:25 +0000)]
Shared libraries are not supported on MS-DOS.

24 years ago*** empty log message ***
Eli Zaretskii [Wed, 15 Mar 2000 11:13:49 +0000 (11:13 +0000)]
*** empty log message ***

24 years ago* ser-go32.c (dos_noop, dos_raw, dos_noflush_set_tty_state)
Eli Zaretskii [Wed, 15 Mar 2000 11:11:41 +0000 (11:11 +0000)]
* ser-go32.c (dos_noop, dos_raw, dos_noflush_set_tty_state)
(dos_print_tty_state, dos_info, _initialize_ser_dos): Convert
to ISO C.  Use ATTRIBUTE_UNUSED to avoid compiler warnings.
(dos_info): Avoid compiler warning when printing a ptrdiff_t.

24 years ago* ser-go32.c (dos_get_tty_state): Fail if the (fake) handle was
Eli Zaretskii [Wed, 15 Mar 2000 11:10:52 +0000 (11:10 +0000)]
* ser-go32.c (dos_get_tty_state): Fail if the (fake) handle was
not opened by dos_open, but let the 3 standard handles go through
unharmed.

24 years agoFormatting fix.
Jim Blandy [Tue, 14 Mar 2000 19:58:02 +0000 (19:58 +0000)]
Formatting fix.

24 years ago * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
Catherine Moore [Tue, 14 Mar 2000 18:16:05 +0000 (18:16 +0000)]
    * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.

24 years ago * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
Jeff Law [Tue, 14 Mar 2000 17:50:00 +0000 (17:50 +0000)]
    * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
        of shrinks properly, including the last reloc.

24 years ago2000-03-14 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
Elena Zannoni [Tue, 14 Mar 2000 17:01:05 +0000 (17:01 +0000)]
2000-03-14  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>

* eval.c (evaluate_subexp_with_coercion): Add call to
  check_typedef, to handle typedeffed vars correctly.

* gdb.base/printcmds.c: Add typedeffed arrays.

* gdb.base/printcmds.exp (test_print_typedef_arrays): New
  procedure to test arrays that are typedef'd.

24 years agoAdd missing ChangeLog entry for:
Andrew Cagney [Tue, 14 Mar 2000 06:14:07 +0000 (06:14 +0000)]
Add missing ChangeLog entry for:
gdb.base/long_long.exp revision 1.2
date: 2000/03/09 21:55:40;  author: scottb;  state: Exp;  lines: +187 -99

24 years agoPoint MI testsuite files at MI testsuite ChangeLog.
Andrew Cagney [Tue, 14 Mar 2000 05:02:03 +0000 (05:02 +0000)]
Point MI testsuite files at MI testsuite ChangeLog.

24 years agoremove typo
Andrew Cagney [Tue, 14 Mar 2000 04:49:02 +0000 (04:49 +0000)]
remove typo

24 years agoAlmost, but not quite, deprecate STREQ, STREQN, STRCMP and QUIT.
Andrew Cagney [Tue, 14 Mar 2000 02:37:25 +0000 (02:37 +0000)]
Almost, but not quite, deprecate STREQ, STREQN, STRCMP and QUIT.

24 years agodiscard all unexpected sections.
Nick Clifton [Tue, 14 Mar 2000 01:40:30 +0000 (01:40 +0000)]
discard all unexpected sections.

24 years agofix to match latest readelf output
Nick Clifton [Tue, 14 Mar 2000 01:27:03 +0000 (01:27 +0000)]
fix to match latest readelf output

24 years ago * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
Jeff Law [Mon, 13 Mar 2000 23:57:25 +0000 (23:57 +0000)]
    * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
        check for R_MOVL2.

24 years ago2000-03-13 Jeff Johnston <jjohnstn@cygnus.com>
Jeff Johnston [Mon, 13 Mar 2000 23:51:48 +0000 (23:51 +0000)]
2000-03-13  Jeff Johnston <jjohnstn@cygnus.com>

        * cgen-ops.h: Added TRUNCSISI.

24 years ago2000-03-13 James Ingham <jingham@leda.cygnus.com>
Jim Ingham [Mon, 13 Mar 2000 21:51:46 +0000 (21:51 +0000)]
2000-03-13  James Ingham  <jingham@leda.cygnus.com>

Add support for a variable object that tries to evaluate itself in
the currently selected frame, rather than in a fixed frame.

* wrapper.c,h (gdb_parse_exp_1): Added a wrapper for
  gdb_parse_exp_1.
* varobj.h: Added USE_CURRENT_FRAME to varobj_type & changed def'n
of varobj_create.
* varobj.c (varobj_list): Return type indicates whether the
variable's type has changed (for current frame variables).
(varobj_update): Handle the case where the variable's type has
changed.
(delete_variable_1): Allow for deletion of variables that have not
been installed yet.
(new_root_variable): Initialize use_selected_frame variable.
(value_of_root): This is where most of the work to handle "current
frame" variables was added.  Most of the complexity involves
handling the case where the type of the variable has changed.
(varobj_create): Add a "type" argument, to tell if the
variable is one of these "current frame" variables.  Also protect
call to parse_exp_1 from long jumping.

* mi-var-block.exp: The error report from varobj_create changed
since I am now trapping parse_exp_1 errors.  Change the tests to
match the new error message.
* mi-var-child.exp: Ditto.
* mi-var-cmd.exp: Ditto.

* lib/gdb.exp: Fix the gdbtk_start routine to correctly find all
the library directories.

* gdbtk-varobj.c (variable_create): Pass the correct
"how_specified" flag to the varobj_create routine.

24 years ago * expr.c (operand) [case 'f']: When testing if '0f' can start a
Hans-Peter Nilsson [Mon, 13 Mar 2000 21:20:15 +0000 (21:20 +0000)]
* expr.c (operand) [case 'f']: When testing if '0f' can start a
floating-point-number, make sure 'f' is in FLT_CHARS.

24 years ago * read.c (TC_IMPLICIT_LCOMM_ALIGNMENT): New default-definition.
Hans-Peter Nilsson [Mon, 13 Mar 2000 20:46:07 +0000 (20:46 +0000)]
* read.c (TC_IMPLICIT_LCOMM_ALIGNMENT): New default-definition.
(s_lcomm_internal): Use it.
* doc/internals.texi (CPU backend): Document it.
* config/obj-evax.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Set to 2**3
bytes.

24 years ago * go32-nat.c (struct env387): Remove declaration.
Eli Zaretskii [Mon, 13 Mar 2000 15:59:02 +0000 (15:59 +0000)]
* go32-nat.c (struct env387): Remove declaration.
(print_387_status, i386_go32_float_info): Remove redundant
functions.
(regno_mapping, sig_map, excepn_map): Add braces around inner
initializers.
(many functions): Use ATTRIBUTE_UNUSED to shut up the compiler;
fix code which mixed signed with unsigned.
(go32_resume): Use TARGET_SIGNAL_LAST instead of -1.
(go32_wait): Initialize INT3_addr.
(go32_fetch_registers): Extend all FP registers that are shorter
than 4 bytes to 32 bits.  Support 32 standard FP registers defined
on config/i386/tm-i386.h.
(store_register): Support 32 FP registers.
(go32_create_inferior): Don't crash if handed a NULL pointer
instead of exec file name.
(ignore): Remove unused function.
(go32_insert_hw_breakpoint): Remove unused variables.
(init_go32_ops): Set value of processing_gcc_compilation to 2.

24 years agoFrom Daniel Berlin:
Andrew Cagney [Mon, 13 Mar 2000 10:01:23 +0000 (10:01 +0000)]
From Daniel Berlin:
Fix C++ overloading, add support for seeing through references.

24 years agoRevert: ``Fix C++ overload support, see through references''.
Andrew Cagney [Mon, 13 Mar 2000 07:30:00 +0000 (07:30 +0000)]
Revert: ``Fix C++ overload support, see through references''.
Change also contained numerous white-space changes.

24 years ago2000-03-11 Mark Kettenis <kettenis@gnu.org>
Mark Kettenis [Sun, 12 Mar 2000 21:16:09 +0000 (21:16 +0000)]
2000-03-11  Mark Kettenis  <kettenis@gnu.org>

* gnu-nat.c: Fix the formatting where indent misinterpreted `&' as
a binary operator.
(gnu_attach): Change error message for missing
argument to be identical to the corresponding message in
`inftarg.c'.  This makes the testsuite happy.

24 years agoReturn bfd_error_wrong_format on a format mismatch.
Alan Modra [Sat, 11 Mar 2000 23:09:42 +0000 (23:09 +0000)]
Return bfd_error_wrong_format on a format mismatch.

24 years ago* elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
Geoffrey Keating [Sat, 11 Mar 2000 02:23:10 +0000 (02:23 +0000)]
* elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
sign-extension and big-endian compensation for
R_MIPS_64 even in ld -r.

24 years agoIn bfd/:
Geoffrey Keating [Sat, 11 Mar 2000 02:16:25 +0000 (02:16 +0000)]
In bfd/:
* elf32-mips.c (mips_elf_next_relocation): Rename from
mips_elf_next_lo16_relocation, and generalize to look
for any relocation type.
(elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
(elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
(elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
(elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
(elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
(elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
(bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
(mips_rtype_to_howto): Likewise.
(mips_elf_calculate_relocation): Handle new relocs.
(_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
are paired.  The addend for R_MIPS_GNU_REL16_S2
is shifted right two bits.
In gas/:
* config/tc-mips.c (mips_ip): Don't put stuff in .rodata
when embedded-pic.

* config/tc-mips.c (SWITCH_TABLE): The ELF embedded-pic
  implementation doesn't have special handling for switch
  statements.
(macro_build): Allow for code in sections other than .text.
(macro): Likewise.
(mips_ip): Likewise.
(md_apply_fix): Do pc-relative relocation madness for MIPS ELF.
   Don't perform relocs if we will be outputting them.
(tc_gen_reloc): For ELF, just use fx_addnumber for pc-relative
  relocations.  Allow BFD_RELOC_16_PCREL_S2 relocs when
  embedded-pic.
In gas/testsuite/:
* gas/mips/empic.d: New file.
* gas/mips/empic.s: New file.
* gas/mips/mips16-e.d: New file.
* gas/mips/mips16-e.s: New file.
* gas/mips/mips16-f.d: New file.
* gas/mips/mips16-f.s: New file.
* gas/mips/mips.exp: Add empic, mips16-e.  Add mips16-f as an
expected failure.
In include/elf:
* mips.h: Add R_MIPS_GNU_REL_HI16, R_MIPS_GNU_REL_LO16,
  R_MIPS_GNU_REL16_S2, R_MIPS_PC64 and R_MIPS_PC32 relocation
  numbers.

24 years agoFix typos in comments, and restore comment formatting destroyed by emacs at
Alan Modra [Sat, 11 Mar 2000 01:16:52 +0000 (01:16 +0000)]
Fix typos in comments, and restore comment formatting destroyed by emacs at
some stage.

24 years ago2000-03-11 Mark Kettenis <kettenis@gnu.org>
Mark Kettenis [Sat, 11 Mar 2000 00:34:50 +0000 (00:34 +0000)]
2000-03-11  Mark Kettenis  <kettenis@gnu.org>

* i386gnu-nat.c (gnu_store_registers): Make sure the T bit in the
%eflags isn't modified.  This fixes a bug where every call to a
function in the program beyond the first call would fail.

24 years ago2000-03-10 H.J. Lu <hjl@gnu.org>
H.J. Lu [Fri, 10 Mar 2000 21:21:16 +0000 (21:21 +0000)]
2000-03-10  H.J. Lu  <hjl@gnu.org>

* Makefile.in (all-gcc): Backed out the last change.

24 years ago2000-03-10 H.J. Lu <hjl@gnu.org>
H.J. Lu [Fri, 10 Mar 2000 20:50:45 +0000 (20:50 +0000)]
2000-03-10  H.J. Lu  <hjl@gnu.org>

* Makefile.in (all-gcc): Run ld/ld-new if necessary.

24 years agoFix C++ overload support, see through references
Daniel Berlin [Fri, 10 Mar 2000 08:02:58 +0000 (08:02 +0000)]
Fix C++ overload support, see through references

24 years agoDevolve area maintaineship responsibilities.
Andrew Cagney [Fri, 10 Mar 2000 00:52:40 +0000 (00:52 +0000)]
Devolve area maintaineship responsibilities.

24 years ago2000-03-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
Elena Zannoni [Thu, 9 Mar 2000 22:58:49 +0000 (22:58 +0000)]
2000-03-06  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>

        * minsyms.c (prim_record_minimal_symbol_and_info): Add comment.

24 years ago * config/tc-m32r.c (m32r_fix_adjustable): Look up the
Catherine Moore [Thu, 9 Mar 2000 22:07:28 +0000 (22:07 +0000)]
    * config/tc-m32r.c (m32r_fix_adjustable):  Look up the
        relocation type based on the entry in the fixup structure.

24 years ago2000-02-25 Scott Bambrough <scottb@netwinder.org>
Scott Bambrough [Thu, 9 Mar 2000 21:55:40 +0000 (21:55 +0000)]
2000-02-25  Scott Bambrough <scottb@netwinder.org>

* gdb.base/long_long.exp: Correct test suite failure when printing
a long long value as a double on ARM platforms.

ARM doubles use a hybrid endian format.  It is not strictly little or big
endian.  It is little endian with the words swapped.

24 years ago2000-03-09 Andreas Jaeger <aj@suse.de>
H.J. Lu [Thu, 9 Mar 2000 16:41:21 +0000 (16:41 +0000)]
2000-03-09  Andreas Jaeger  <aj@suse.de>

* Makefile.am (check-DEJAGNU): Also unset LANG.
* Makefile.in: Rebuild.

24 years agoAnthony Green is Java maintainer.
Andrew Cagney [Thu, 9 Mar 2000 03:32:09 +0000 (03:32 +0000)]
Anthony Green is Java maintainer.

24 years ago2000-03-08 H.J. Lu (hjl@gnu.org)
H.J. Lu [Thu, 9 Mar 2000 03:14:44 +0000 (03:14 +0000)]
2000-03-08  H.J. Lu  (hjl@gnu.org)

* Makefile.am (install-exec-tooldir): Depend on
install-exec-bindir for parallel make.
* Makefile.in: Regenerated.

24 years ago2000-03-08 H.J. Lu <hjl@gnu.org>
H.J. Lu [Thu, 9 Mar 2000 03:13:21 +0000 (03:13 +0000)]
2000-03-08  H.J. Lu  <hjl@gnu.org>

* Makefile.am (install-exec-local): Depend on
install-binPROGRAMS for parallel make.
* Makefile.in: Regenerated.

24 years ago2000-03-08 Mark Kettenis <kettenis@gnu.org>
Mark Kettenis [Wed, 8 Mar 2000 22:34:19 +0000 (22:34 +0000)]
2000-03-08  Mark Kettenis  <kettenis@gnu.org>

* i386-tdep.c (i386_linux_saved_pc_after_call): New function.
* config/i386/tm-linux.h (SAVED_PC_AFTER_CALL): Define to call
i386_linux_saved_pc_after_call.

24 years ago* extension
Frank Ch. Eigler [Wed, 8 Mar 2000 21:09:41 +0000 (21:09 +0000)]
* extension

2000-03-08  Dave Brolley  <brolley@redhat.com>

* cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_SF_WRITE.
(CGEN_WRITE_QUEUE_ELEMENT): Add fn_sf_write.
(sim_queue_fn_si_write): Last argument is has type USI.
(sim_queue_fn_sf_write): New function.
* cgen-par.c (sim_queue_fn_si_write): Declare 'value' as USI.
(sim_queue_fn_sf_write): New function.
(cgen_write_queue_element_execute): Handle CGEN_FN_SF_WRITE.

24 years ago * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
Doug Evans [Tue, 7 Mar 2000 21:04:31 +0000 (21:04 +0000)]
* reloc.c (reloc_howto_struct): Fix partial_inplace comment.
* bfd-in2.h: Rebuild.

24 years ago* build fix
Frank Ch. Eigler [Tue, 7 Mar 2000 15:32:49 +0000 (15:32 +0000)]
* build fix

2000-03-07  Frank Ch. Eigler  <fche@redhat.com>

From John Dallaway  <jld@redhat.co.uk>:
* Makefile.in (install-sis): Add $(EXEEXT) for Windows host.

24 years agoFrom Tom Tromey <tromey@cygnus.com> and Keith Seitz <?>:
Jim Blandy [Tue, 7 Mar 2000 04:33:52 +0000 (04:33 +0000)]
From Tom Tromey <tromey@cygnus.com> and Keith Seitz <?>:

* minsyms.c: #include <ctype.h>, for msymbol_hash_iw.
(compact_minimal_symbols): Added `objfile' argument.
Put symbols in the objfile's hash table.
(install_minimal_symbols): Put symbols in the objfile's demangled
hash table.
(lookup_minimal_symbol): Use hash table to find symbol in
objfile.
(msymbol_hash_iw, msymbol_hash, add_minsym_to_hash_table): New
functions.
(prim_record_minimal_symbol_and_info): Initialize the
hash link fields of the new minimal symbol.
* symtab.h (struct minimal_symbol): New fields `hash_next',
`demangled_hash_next'.
(msymbol_hash_iw, msymbol_hash, add_minsym_to_hash_table): Declare.
* objfiles.h (MINIMAL_SYMBOL_HASH_SIZE): New define.
(struct objfile): New fields `msymbol_hash',
`msymbol_demangled_hash'.

24 years agoDocument new -m32r command line switch
Nick Clifton [Tue, 7 Mar 2000 00:06:52 +0000 (00:06 +0000)]
Document new -m32r command line switch