binutils-gdb.git
20 years ago2004-01-01 Michael Chastain <mec.gnu@mindspring.com>
Michael Chastain [Thu, 1 Jan 2004 23:05:12 +0000 (23:05 +0000)]
2004-01-01  Michael Chastain  <mec.gnu@mindspring.com>

* gdb.cp/virtfunc.exp: Modify some patterns to avoid a
mysterious bug with sourceware version of expect.

20 years agodaily update
Alan Modra [Thu, 1 Jan 2004 23:00:05 +0000 (23:00 +0000)]
daily update

20 years ago * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
Alan Modra [Thu, 1 Jan 2004 10:01:45 +0000 (10:01 +0000)]
* elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
* elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
(elf32_h8_gc_sweep_hook): New function.
(elf_backend_gc_mark_hook): Define.
(elf_backend_gc_sweep_hook): Define.
(elf_backend_can_gc_sections): Define.

20 years ago2004-01-01 Michael Chastain <mec.gnu@mindspring.com>
Michael Chastain [Thu, 1 Jan 2004 09:46:21 +0000 (09:46 +0000)]
2004-01-01  Michael Chastain  <mec.gnu@mindspring.com>

* gdb.cp/overload.exp: Rewrite.  Clean up patterns to match
current versions of gcc, including gcc abi 2.  Remove gratuitous
restart of test program.  Use gdb_test_multiple and gdb_test for
all tests.  Add patterns to xfail missing "const" in "const char *"
and kfail PR gdb/1155.

20 years ago2004-01-01 Michael Chastain <mec.gnu@mindspring.com>
Michael Chastain [Thu, 1 Jan 2004 06:58:44 +0000 (06:58 +0000)]
2004-01-01  Michael Chastain  <mec.gnu@mindspring.com>

* gdb.cp/derivation.exp: Rewrite.  Clean up patterns to match
current versions of gcc, including gcc abi 2.  Remove gratuitous
restart of test program.  Use gdb_test_multiple and gdb_test for
all tests.  Add patterns to kfail PR gdb/1498.

20 years ago2003-12-31 Michael Chastain <mec.gnu@mindspring.com>
Michael Chastain [Thu, 1 Jan 2004 02:30:59 +0000 (02:30 +0000)]
2003-12-31  Michael Chastain  <mec.gnu@mindspring.com>

* gdb.cp/virtfunc.exp: Rewrite.  Clean up patterns to match
current versions of gcc, including gcc abi 2.  Use "breakpoint"
and "continue" instead of restarting the target program.  Use
gdb_test_multiple and gdb_test for all tests.

20 years ago* gdb.asm/asm-source.exp: Update copyright year. Link statically
Mark Kettenis [Thu, 1 Jan 2004 01:13:42 +0000 (01:13 +0000)]
* gdb.asm/asm-source.exp: Update copyright year.  Link statically
for *-*-solaris2*.

20 years ago* configure.in (ia64*-*-hpux*): Disable building java libraries.
DJ Delorie [Thu, 1 Jan 2004 00:07:51 +0000 (00:07 +0000)]
* configure.in (ia64*-*-hpux*): Disable building java libraries.
* configure: Regenerated.

20 years ago*** empty log message ***
gdbadmin [Thu, 1 Jan 2004 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***

20 years agodaily update
Alan Modra [Wed, 31 Dec 2003 23:00:05 +0000 (23:00 +0000)]
daily update

20 years ago2003-12-31 Michael Chastain <mec.gnu@mindspring.com>
Michael Chastain [Wed, 31 Dec 2003 20:59:11 +0000 (20:59 +0000)]
2003-12-31  Michael Chastain  <mec.gnu@mindspring.com>

* gdb.cp/classes.exp: Rewrite.  Clean up patterns to match
current versions of gcc, including gcc abi 2.  Use "breakpoint"
and "continue" instead of restarting the target program several
times.  Use gdb_test_multiple and gdb_test for all tests.

20 years ago * MAINTAINERS: Rename CONFIGURE to BUILD SYSTEM and add myself.
Daniel Jacobowitz [Wed, 31 Dec 2003 14:24:55 +0000 (14:24 +0000)]
* MAINTAINERS: Rename CONFIGURE to BUILD SYSTEM and add myself.

20 years ago*** empty log message ***
gdbadmin [Wed, 31 Dec 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

20 years agodaily update
Alan Modra [Tue, 30 Dec 2003 23:00:05 +0000 (23:00 +0000)]
daily update

20 years ago * ld-srec/srec.exp (run_srec_test): Remove -fgnu-linker, since GCC
Mark Mitchell [Tue, 30 Dec 2003 16:53:31 +0000 (16:53 +0000)]
* ld-srec/srec.exp (run_srec_test): Remove -fgnu-linker, since GCC
3.4 does not support it.

20 years ago * configure.in: Check for st_blocks member in struct stat and
Eli Zaretskii [Tue, 30 Dec 2003 10:33:37 +0000 (10:33 +0000)]
* configure.in: Check for st_blocks member in struct stat and
define HAVE_STRUCT_STAT_ST_BLOCKS accordingly.

* acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): New undef.

* configure, config.in: Regenerated.

20 years ago * readline.c (rl_save_state, rl_restore_state): Support systems
Eli Zaretskii [Tue, 30 Dec 2003 07:25:18 +0000 (07:25 +0000)]
* readline.c (rl_save_state, rl_restore_state): Support systems
that don't define SIGWINCH.

* terminal.c (_rl_get_screen_size) [__DJGPP__]: Compute the
screen width and height using console I/O.
(_rl_init_terminal_io) [__MSDOS__]: Zero out all the _rl_term_*
variables.  Convert to _rl_* naming scheme.
(_rl_set_cursor) [__MSDOS__]: Ifdef away this function.

* display.c (_rl_move_vert) [__MSDOS__]: Don't use undeclared
variable `l'.  Use `delta' instead recomputing its value anew.
Assign -delta to i instead of the other way around.

20 years agoRemove entry for reverted change to configure.in.
Eli Zaretskii [Tue, 30 Dec 2003 07:10:50 +0000 (07:10 +0000)]
Remove entry for reverted change to configure.in.

20 years agoTemporary fix for last change.
Eli Zaretskii [Tue, 30 Dec 2003 07:05:21 +0000 (07:05 +0000)]
Temporary fix for last change.

20 years ago * remote-fileio.c (remote_fileio_to_fio_stat)
Eli Zaretskii [Tue, 30 Dec 2003 06:52:09 +0000 (06:52 +0000)]
* remote-fileio.c (remote_fileio_to_fio_stat)
(remote_fileio_func_fstat) [HAVE_STRUCT_STAT_ST_BLOCKS]: Support
systems that don't have `st_blocks' member in `struct stat'.

* configure.in (HAVE_STRUCT_STAT_ST_BLOCKS): Ditto.

20 years ago*** empty log message ***
gdbadmin [Tue, 30 Dec 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

20 years agodaily update
Alan Modra [Mon, 29 Dec 2003 23:00:05 +0000 (23:00 +0000)]
daily update

20 years ago * armos.c (fcntl.h): Do not include it.
Mark Mitchell [Mon, 29 Dec 2003 19:52:57 +0000 (19:52 +0000)]
* armos.c (fcntl.h): Do not include it.
(O_RDONLY): Do not define.
(O_WRONLY): Likewise.
(O_RDWR): Likewise.
(targ-vals.h): Include it.
(translate_open_mode): Use TARGET_O_* instead of O_*.
(SWIopen): Likewise.
* Makefile.in (armos.o): Depend on targ-vals.h.

20 years ago * gas/config/tc-arm.c (arm_cpus): Add 926ejs and 1026ejs.
Paul Brook [Mon, 29 Dec 2003 16:43:37 +0000 (16:43 +0000)]
* gas/config/tc-arm.c (arm_cpus): Add 926ejs and 1026ejs.
* gas/doc/c-arm.texi: Document them.

20 years agoUpdate pointer_size patch
Nick Clifton [Mon, 29 Dec 2003 14:22:07 +0000 (14:22 +0000)]
Update pointer_size patch

20 years ago * go32-nat.c (go32_sldt, go32_sgdt, go32_sidt, go32_pte): Fix
Eli Zaretskii [Mon, 29 Dec 2003 07:42:43 +0000 (07:42 +0000)]
* go32-nat.c (go32_sldt, go32_sgdt, go32_sidt, go32_pte): Fix
mismatches between format string and arguments (avoids compiler
warnings).

20 years ago* configure.in: Set ac_cv_search_tgetent to "none required" for
Eli Zaretskii [Mon, 29 Dec 2003 07:35:35 +0000 (07:35 +0000)]
* configure.in: Set ac_cv_search_tgetent to "none required" for
"*djgpp*" targets as well (DJGPP doesn't have termcap and doesn't
need one).

* config/djgpp/config.sed: Tweak to adapt to the changes in
configury.

* config/djgpp/djconfig.sh: Fix the test of unpacked
distribution, since there's no gdb.cxx directory anymore.

20 years ago*** empty log message ***
gdbadmin [Mon, 29 Dec 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

20 years agodaily update
Alan Modra [Sun, 28 Dec 2003 23:00:05 +0000 (23:00 +0000)]
daily update

20 years ago* i386-sol2-tdep.c (i386_sol2_mcontext_addr): New function.
Mark Kettenis [Sun, 28 Dec 2003 19:48:15 +0000 (19:48 +0000)]
* i386-sol2-tdep.c (i386_sol2_mcontext_addr): New function.
(i386_sol2_init_abi): Initialize TDEP->sigcontext_addr,
TDEP->sc_reg_offset and TDEP->sc_num_regs.

20 years ago* i386-tdep.h (i386_regnum): Add I386_CS_REGNUM and
Mark Kettenis [Sun, 28 Dec 2003 19:45:35 +0000 (19:45 +0000)]
* i386-tdep.h (i386_regnum): Add I386_CS_REGNUM and
I386_SS_REGNUM.

20 years ago*** empty log message ***
gdbadmin [Sun, 28 Dec 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

20 years ago* dwarf2-frame.c (dwarf2_reg_rule): Add REG_RA and REG_CFA.
Mark Kettenis [Sat, 27 Dec 2003 23:15:00 +0000 (23:15 +0000)]
* dwarf2-frame.c (dwarf2_reg_rule): Add REG_RA and REG_CFA.
(dwarf2_frame_cache): Initialize PC_REGNUM with REG_RA and
SP_REGNUM with REG_CFA.  Don't overwrite the initialized register
rule for registers left unspecified by the CFI.  Remove the
special handling of PC_REGNUM.  Add code to eleminate any REG_RA
rules.
(dwarf2_frame_prev_register): Remove the special handling of
SP_REGNUM.  Add support for the REG_CFA rule.

20 years agodaily update
Alan Modra [Sat, 27 Dec 2003 23:00:05 +0000 (23:00 +0000)]
daily update

20 years ago*** empty log message ***
gdbadmin [Sat, 27 Dec 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

20 years agodaily update
Alan Modra [Fri, 26 Dec 2003 23:00:07 +0000 (23:00 +0000)]
daily update

20 years ago* i386obsd-tdep.c: Include "regset.h", "gdb_assert.h" and
Mark Kettenis [Fri, 26 Dec 2003 18:07:00 +0000 (18:07 +0000)]
* i386obsd-tdep.c: Include "regset.h", "gdb_assert.h" and
"gdb_string.h".
(i386obsd_r_reg_offset): New variable.
(i386obsd_aout_supply_regset)
(i386obsd_aout_regset_from_core_section): New functions.
(i386obsd_supply_reg, fetch_core_registers): Remove functions.
(i286obsd_core_fns): Remove variable.
(i386obsd_init_abi): Initialize TDEP->gregset_reg_offset,
TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Set
regset_from_core_section.  Use ARRAY_SIZE to initialize
TDEP->sc_num_regs.
(_initialize_i386obsd_tdep): Don't call add_core_fns.

20 years ago* i386bsd-tdep.c (i386bsd_core_osabi_sniffer): New function.
Mark Kettenis [Fri, 26 Dec 2003 17:59:48 +0000 (17:59 +0000)]
* i386bsd-tdep.c (i386bsd_core_osabi_sniffer): New function.
(_initialize_i386bsd_tdep): Register i386bsd_core_osabi_sniffer.

20 years agomerge from gcc
DJ Delorie [Fri, 26 Dec 2003 16:27:37 +0000 (16:27 +0000)]
merge from gcc

20 years ago* i386-linux-nat.c: Add comment.
Mark Kettenis [Fri, 26 Dec 2003 15:42:58 +0000 (15:42 +0000)]
* i386-linux-nat.c: Add comment.

20 years ago* win32-nat.c: Add some comments about below change.
Christopher Faylor [Fri, 26 Dec 2003 14:56:45 +0000 (14:56 +0000)]
* win32-nat.c: Add some comments about below change.

20 years agoFix for PR threads/1048
Christopher Faylor [Fri, 26 Dec 2003 04:29:22 +0000 (04:29 +0000)]
Fix for PR threads/1048
* win32-nat.c (thread_info_struct): Add reload_context flag.
(thread_rec): Don't reload thread context here.  Just set a flag.
(do_child_fetch_inferior_registers): Reload thread context here if appropriate.
Avoid doing anything if current_thread is NULL thanks to strange Windows
behavior.
(child_fetch_inferior_registers): Avoid doing anything if current_thread is
NULL.
(do_child_store_inferior_registers): Ditto.
(child_store_inferior_registers): Ditto.
(child_kill_inferior): Ditto.
(fake_create_process): Pretend to create a process for pathological windows
attach situation.
(get_child_debug_event): Call fake_create_process when the first event noticed
is thread creation rather than process creation.
(child_attach): Always set attach_flag when attaching.
(child_create_inferior): Set attach_flag to zero since we're not attaching.

20 years ago* win32-nat.c (get_child_debug_event): Keep main thread id around even after
Christopher Faylor [Fri, 26 Dec 2003 00:39:04 +0000 (00:39 +0000)]
* win32-nat.c (get_child_debug_event): Keep main thread id around even after
thread exits since Windows insists on continuing to report events against it.

20 years ago*** empty log message ***
gdbadmin [Fri, 26 Dec 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

20 years agodaily update
Alan Modra [Thu, 25 Dec 2003 23:00:06 +0000 (23:00 +0000)]
daily update

20 years ago*** empty log message ***
gdbadmin [Thu, 25 Dec 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***

20 years agodaily update
Alan Modra [Wed, 24 Dec 2003 23:00:05 +0000 (23:00 +0000)]
daily update

20 years ago*** empty log message ***
gdbadmin [Wed, 24 Dec 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

20 years agodaily update
Alan Modra [Tue, 23 Dec 2003 23:00:04 +0000 (23:00 +0000)]
daily update

20 years ago * doc/c-arm.texi: Document -march=armv6.
Paul Brook [Tue, 23 Dec 2003 18:48:02 +0000 (18:48 +0000)]
* doc/c-arm.texi: Document -march=armv6.

20 years ago * config/tc-arm.c (arm_archs): Add armv6.
Paul Brook [Tue, 23 Dec 2003 18:41:58 +0000 (18:41 +0000)]
* config/tc-arm.c (arm_archs): Add armv6.

20 years ago* objcopy.c (bfd_flags_to_set, bfd_flags_to_clear): New variables
Maciej W. Rozycki [Tue, 23 Dec 2003 13:01:11 +0000 (13:01 +0000)]
* objcopy.c (bfd_flags_to_set, bfd_flags_to_clear): New variables
to handle flags for tweaking.
(copy_options): New options: impure, pure, readonly-text,
writable-text.
(copy_usage, copy_object, command_line_switch): Handle the new
options.
* doc/binutils.texi: Document the new options.

20 years ago*** empty log message ***
gdbadmin [Tue, 23 Dec 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

20 years agodaily update
Alan Modra [Mon, 22 Dec 2003 23:00:04 +0000 (23:00 +0000)]
daily update

20 years ago* dwarf2-frame.c (dwarf2_frame_cache): Don't skip the return
Mark Kettenis [Mon, 22 Dec 2003 20:32:51 +0000 (20:32 +0000)]
* dwarf2-frame.c (dwarf2_frame_cache): Don't skip the return
address column.

20 years ago * Makefile.in (lbasename.o): Depend on filenames.h.
Daniel Jacobowitz [Mon, 22 Dec 2003 19:22:57 +0000 (19:22 +0000)]
* Makefile.in (lbasename.o): Depend on filenames.h.
* lbasename.c: Include "filenames.h" instead of defining
its macros locally.

20 years agomerge from gcc
DJ Delorie [Mon, 22 Dec 2003 16:03:32 +0000 (16:03 +0000)]
merge from gcc

20 years ago * objdump.c (disassemble_bytes): Subtract rel_offset from printed
Jakub Jelinek [Mon, 22 Dec 2003 10:49:59 +0000 (10:49 +0000)]
* objdump.c (disassemble_bytes): Subtract rel_offset from printed
reloc address.
(disassemble_section): Set rel_offset to section->vma instead of
pinfo->buffer_vma.

20 years agoFix tests to eliminated unexpected failures
Nick Clifton [Mon, 22 Dec 2003 09:01:48 +0000 (09:01 +0000)]
Fix tests to eliminated unexpected failures

20 years agoFor v6 tests use -march=armv6j
Nick Clifton [Mon, 22 Dec 2003 08:43:41 +0000 (08:43 +0000)]
For v6 tests use -march=armv6j

20 years ago* breakpoint.c (bpstat_do_actions): To ensure that
Jim Blandy [Mon, 22 Dec 2003 03:43:19 +0000 (03:43 +0000)]
* breakpoint.c (bpstat_do_actions): To ensure that
clear_proceed_status doesn't free the command tree we're
evaluating out from under us, zero the bpstat's pointer to it, and
take care of freeing it ourselves.
* cli/cli-script.c (make_cleanup_free_command_lines): Make this
function externally visible.
* cli/cli-script.h (make_cleanup_free_command_lines): New
declaration.

20 years ago* configure.in (*-*-uclinux): Exclude newlib, libgloss and rda.
DJ Delorie [Mon, 22 Dec 2003 00:59:55 +0000 (00:59 +0000)]
* configure.in (*-*-uclinux): Exclude newlib, libgloss and rda.
* configure: Regenerated.

20 years ago*** empty log message ***
gdbadmin [Mon, 22 Dec 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***

20 years agodaily update
Alan Modra [Sun, 21 Dec 2003 23:00:04 +0000 (23:00 +0000)]
daily update

20 years ago*** empty log message ***
gdbadmin [Sun, 21 Dec 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

20 years agodaily update
Alan Modra [Sat, 20 Dec 2003 23:00:05 +0000 (23:00 +0000)]
daily update

20 years agomerge from gcc
DJ Delorie [Sat, 20 Dec 2003 16:06:10 +0000 (16:06 +0000)]
merge from gcc

20 years ago* x86-64-tdep.c (x86_64_dwarf_regmap): Map the Return Address to
Mark Kettenis [Sat, 20 Dec 2003 13:36:00 +0000 (13:36 +0000)]
* x86-64-tdep.c (x86_64_dwarf_regmap): Map the Return Address to
RIP.

20 years ago(md_apply_fix3): Handle the case where a .byte directive generates a
Nick Clifton [Sat, 20 Dec 2003 08:01:47 +0000 (08:01 +0000)]
(md_apply_fix3): Handle the case where a .byte directive generates a
pc-relative relocation.

20 years ago*** empty log message ***
gdbadmin [Sat, 20 Dec 2003 00:00:34 +0000 (00:00 +0000)]
*** empty log message ***

20 years agodaily update
Alan Modra [Fri, 19 Dec 2003 23:00:35 +0000 (23:00 +0000)]
daily update

20 years agomerge from gcc
DJ Delorie [Fri, 19 Dec 2003 22:03:41 +0000 (22:03 +0000)]
merge from gcc

20 years agomerge from gcc
DJ Delorie [Fri, 19 Dec 2003 16:50:48 +0000 (16:50 +0000)]
merge from gcc

20 years agoFix calls to as_perror() so that the errno system message will be printed.
Nick Clifton [Fri, 19 Dec 2003 15:23:41 +0000 (15:23 +0000)]
Fix calls to as_perror() so that the errno system message will be printed.
Fix as_perror() so that errno is not corrupted.

20 years ago2003-12-19 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Fri, 19 Dec 2003 15:13:56 +0000 (15:13 +0000)]
2003-12-19  Nathanael Nerode  <neroden@gcc.gnu.org>

Port change over from GCC:
2003-11-20  Kelley Cook  <kcook@gcc.gnu.org>
* Makefile.tpl (BASE_FLAGS_TO_PASS): Pass along CONFIG_SHELL.
(configure-build-[+module+], configure-[+module+]): Likewise.
(configure-target-[+module+], configure-gcc, config.status): Likewise.
* Makefile.in: Regenerate.

20 years agooops - omitted from the previous checkin.
Nick Clifton [Fri, 19 Dec 2003 11:59:20 +0000 (11:59 +0000)]
oops - omitted from the previous checkin.

20 years agoAdd support for m32r-linux target, including a RELA ABI and PIC.
Nick Clifton [Fri, 19 Dec 2003 11:44:01 +0000 (11:44 +0000)]
Add support for m32r-linux target, including a RELA ABI and PIC.

20 years agoDo not mark .reloc sections as containing debug info.
Nick Clifton [Fri, 19 Dec 2003 10:01:59 +0000 (10:01 +0000)]
Do not mark .reloc sections as containing debug info.

20 years ago2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
Michael Chastain [Fri, 19 Dec 2003 06:45:03 +0000 (06:45 +0000)]
2003-12-18  Michael Chastain  <mec.gnu@mindspring.com>

* hppa-tdep.c (hppa_gdbarch_init): Set long double floating
point type to floatformat_ia64_quad_big.

20 years agomerge from gcc
DJ Delorie [Fri, 19 Dec 2003 04:04:44 +0000 (04:04 +0000)]
merge from gcc

20 years ago * frv-tdep.c (skip_prologue_using_sal): New function. Taken verbatim
Kevin Buettner [Fri, 19 Dec 2003 00:34:26 +0000 (00:34 +0000)]
* frv-tdep.c (skip_prologue_using_sal): New function.  Taken verbatim
from mips-tdep.c.
(frv_analyze_prologue): Rework to account for intermixed prologue /
body instructions.

20 years ago*** empty log message ***
gdbadmin [Fri, 19 Dec 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

20 years agodaily update
Alan Modra [Thu, 18 Dec 2003 23:00:05 +0000 (23:00 +0000)]
daily update

20 years ago2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
Michael Chastain [Thu, 18 Dec 2003 22:13:48 +0000 (22:13 +0000)]
2003-12-18  Michael Chastain  <mec.gnu@mindspring.com>

* hppa-tdep.c (hppa_gdbarch_init): Set sizeof(long_double) to 128.
Document type sizes for hppa*-*-hpux* compilers available to me.

20 years ago2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
Michael Chastain [Thu, 18 Dec 2003 18:22:35 +0000 (18:22 +0000)]
2003-12-18  Michael Chastain  <mec.gnu@mindspring.com>

* hppam3-nat.c: Delete obsolete file.
* hppab-nat.c: Delete obsolete file.
* Makefile.in: Remove references.

20 years ago(input_file_open): Remove call to stat(). Add a check for getc() failing, and
Nick Clifton [Thu, 18 Dec 2003 18:03:08 +0000 (18:03 +0000)]
(input_file_open): Remove call to stat().  Add a check for getc() failing, and
catch the case where the failure is due to an attempt to read a directory.

20 years ago2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
Michael Chastain [Thu, 18 Dec 2003 16:25:21 +0000 (16:25 +0000)]
2003-12-18  Michael Chastain  <mec.gnu@mindspring.com>

* gdb.base/sect-cmd.exp: Handle compiling test case from multiple
source files.

20 years agoWhen scanning MS import libraries allow for the possible presence of static
Nick Clifton [Thu, 18 Dec 2003 14:56:44 +0000 (14:56 +0000)]
When scanning MS import libraries allow for the possible presence of static
objects.

20 years ago * ld-mips-elf/reloc-1[ab].s: New source files.
Richard Sandiford [Thu, 18 Dec 2003 10:25:12 +0000 (10:25 +0000)]
* ld-mips-elf/reloc-1[ab].s: New source files.
* ld-mips-elf/reloc-1-{n32,n64,rel}.d: New tests.
* ld-mips-elf/reloc-2[ab].s: New source files.
* ld-mips-elf/reloc-2.{d,ld}: New test.
* ld-mips-elf/reloc-3[ab].s: New source files.
* ld-mips-elf/reloc-3-{r,srec}.d: New tests.
* ld-mips-elf/mips-elf.exp: Run them.

20 years agobfd/
Richard Sandiford [Thu, 18 Dec 2003 10:23:10 +0000 (10:23 +0000)]
bfd/
* elf32-mips.c (elf_mips_howto_table_rel): Replace all uses of
mips_elf_generic_reloc with _bfd_mips_elf_generic_reloc.  Use
_bfd_mips_elf_hi16_reloc for R_MIPS_HI16 and R_MIPS_GNU_REL_HI16,
_bfd_mips_elf_lo16_reloc for R_MIPS_LO16 and R_MIPS_GNU_REL_LO16,
and _bfd_mips_elf_got16_reloc for R_MIPS_GOT16.  Change rightshift
to 16 for R_MIPS_HI16 and R_MIPS_GNU_REL_HI16.
(mips_elf_generic_reloc, struct mips_hi16, mips_elf_hi16_reloc)
(mips_elf_lo16_reloc, mips_elf_got16_reloc): Delete.
(_bfd_mips_elf32_gprel16_reloc): Remove special case.
(mips_elf_gprel32_reloc, mips32_64bit_reloc): Likewise.

* elf64-mips.c (mips_elf64_howto_table_rel): Replace all uses of
mips_elf_generic_reloc with _bfd_mips_elf_generic_reloc.  Use
_bfd_mips_elf_hi16_reloc for R_MIPS_HI16, _bfd_mips_elf_lo16_reloc
for R_MIPS_LO16 and _bfd_mips_elf_got16_reloc for R_MIPS_GOT16.
Change R_MIPS_HI16's rightshift to 16.
(mips_elf64_howto_table_rela): Replace all uses of
mips_elf_generic_reloc with _bfd_mips_elf_generic_reloc.
Use _bfd_mips_elf_generic_reloc for R_MIPS_GOT16 as well.
(mips_elf64_hi16_reloc, mips_elf64_got16_reloc): Delete.
(mips_elf64_shift6_reloc): Remove special case.  Use
_bfd_mips_elf_generic_reloc instead of returning bfd_reloc_continue.

* elfn32-mips.c (prev_reloc_section): Delete.
(prev_reloc_address, prev_reloc_addend): Delete.
(elf_mips_howto_table_rel, elf_mips_howto_table_rela): As for
elf64-mips.c
(GET_RELOC_ADDEND, SET_RELOC_ADDEND): Delete.
(mips_elf_generic_reloc, struct mips_hi16, mips_elf_hi16_reloc)
(mips_elf_lo16_reloc, mips_elf_got16_reloc): Delete.
(mips_elf_gprel16_reloc): Delete use of GET_RELOC_ADDEND.
(mips_elf_literal_reloc, mips_elf_gprel32_reloc): Likewise.
(mips16_jump_reloc, mips16_gprel_reloc): Likewise.
(mips_elf_shift6_reloc): Likewise.  Delete use of SET_RELOC_ADDEND.

* elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp): Use
_bfd_relocate_contents to install an in-place addend.
(mips_hi16): New structure.
(mips_hi16_list): Moved from elf32-mips.c.
(_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_got16_reloc): New functions.
(_bfd_mips_elf_lo16_reloc, _bfd_mips_elf_generic_reloc): New functions.
(mips_elf_calculate_relocation): Assume addend is unshifted.
(_bfd_mips_elf_relocate_section): Don't apply the howto rightshift
on top of the usual high-part shift.  Don't shift the addend right
before calling mips_elf_calculate_relocation.

* elfxx-mips.h (_bfd_mips_elf_hi16_reloc): Declare.
(_bfd_mips_elf_got16_reloc, _bfd_mips_elf_lo16_reloc): Declare.
(_bfd_mips_elf_generic_reloc): Declare.

gas/
* config/tc-mips.c (mips_need_elf_addend_fixup): Delete.
(md_apply_fix3): Remove bfd_install_relocation workarounds.
(tc_gen_reloc): Likewise. Factor handling of pc-relative relocations
and treat fx_addnumber as relative to the relocation address.

gas/testsuite/
* gas/mips/mips16-jalx.d: Use -mabi=o64.
* gas/mips/mips16.d: Likewise.
* gas/mips/elf-rel17.[sd]: New test.
* gas/mips/mips.exp: Run it.

20 years ago * config/tc-mips.c (s_change_section): When parsing the MIPS-specific
Richard Sandiford [Thu, 18 Dec 2003 10:18:17 +0000 (10:18 +0000)]
* config/tc-mips.c (s_change_section): When parsing the MIPS-specific
.section syntax, map SHT_MIPS_DWARF to SHT_PROGBITS.

20 years ago2003-12-16 Michael Chastain <mec.gnu@mindspring.com>
Michael Chastain [Thu, 18 Dec 2003 07:48:37 +0000 (07:48 +0000)]
2003-12-16  Michael Chastain  <mec.gnu@mindspring.com>

* gdb.base/environ.exp: Handle compiling test case from multiple
source files.

20 years ago * config/tc-arm.c (arm_archs): Change "armv6" to "armv6j".
Mark Mitchell [Thu, 18 Dec 2003 05:45:13 +0000 (05:45 +0000)]
* config/tc-arm.c (arm_archs): Change "armv6" to "armv6j".
* doc/c-arm.texi (ARM Options): Likewise.

20 years ago*** empty log message ***
gdbadmin [Thu, 18 Dec 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

20 years agodaily update
Alan Modra [Wed, 17 Dec 2003 23:00:04 +0000 (23:00 +0000)]
daily update

20 years ago2003-12-16 Michael Chastain <mec.gnu@mindspring.com>
Michael Chastain [Wed, 17 Dec 2003 22:32:18 +0000 (22:32 +0000)]
2003-12-16  Michael Chastain  <mec.gnu@mindspring.com>

* gdb.base/structs.exp: Call gdb_exit as well as gdb_start.

20 years ago2003-12-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 17 Dec 2003 22:21:02 +0000 (22:21 +0000)]
2003-12-17  Jeff Johnston  <jjohnstn@redhat.com>

        * symtab.c (decode_line_spec): Change call to decode_line_1.

20 years ago2003-12-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 17 Dec 2003 21:47:47 +0000 (21:47 +0000)]
2003-12-17  Jeff Johnston  <jjohnstn@redhat.com>

        * linespec.h (decode_line_1): Add new not_found_ptr parameter.
        * linespec.c (decode_line_1): Add new parameter.  Pass on
        new parameter to decode_variable and symtab_from_filename
        functions.
        (decode_variable): Add new not_found_ptr parameter.  Throw exception
        rather than failing if the not_found_ptr is non-null and the
        function is not found.
        (symtab_from_filename): Add new not_found_ptr parametr.   Throw
        exception rather than failing if the not_found_ptr is non-null and
        the source file is not found.
        * breakpoint.c: Change all callers of decode_line_1 to add default
        extra parameter for decode_line_1 calls.
        * tracepoint.c: Ditto.
        * cli/cli-cmds.c: Ditto.

20 years ago* gdb.base/freebpcmd.c: Add copyright notice.
Jim Blandy [Wed, 17 Dec 2003 21:34:51 +0000 (21:34 +0000)]
* gdb.base/freebpcmd.c: Add copyright notice.

20 years ago* gdb.base/freebpcmd.exp: Mark the interesting failure as known.
Jim Blandy [Wed, 17 Dec 2003 21:28:40 +0000 (21:28 +0000)]
* gdb.base/freebpcmd.exp: Mark the interesting failure as known.