This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/23374] [8.1 -> 8.2 regression] gdb.base/execl-update-breakpoints.exp, with --target_board=native-gdbserver


https://sourceware.org/bugzilla/show_bug.cgi?id=23374

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The gdb-8.2-branch branch has been updated by Joel Brobecker
<brobecke@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=83b6e2e989510db105c52a02c490ab2c284b5469

commit 83b6e2e989510db105c52a02c490ab2c284b5469
Author: Simon Marchi <simon.marchi@ericsson.com>
Date:   Sun Aug 26 11:46:45 2018 +0200

    Restore behavior of disabling address randomization by default on GDBserver

    Commit

      c12a508 ("Add client_state struct.")

    inadvertently changed the default behavior of GDBserver wrt address
    randomization.  The old disable_randomization global variable was
    initialized to 1, whereas the corresponding field in the client_state
    structure is initialized to 0.

    This fixes

      make check TESTS="gdb.base/jit-simple.exp"
RUNTESTFLAGS="--target_board=native-gdbserver"
      make check TESTS="gdb.base/execl-update-breakpoints.exp"
RUNTESTFLAGS="--target_board=native-gdbserver"

    Note that the execl-update-breakpoints.exp would only fail on systems
    where the toolchain emits position-independent executables by default
    (otherwise the main executable position is never randomized, so the
    value of disable_randomization didn't matter).

    gdb/gdbserver/ChangeLog:

        PR gdb/23374
        PR gdb/23375
        * server.h (struct client_state) <disable_randomization>:
        Initialize to 1.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]