public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug shlibs/11776] New: solib-svr4 with remote target assumes qOffsets packet is supported
@ 2010-06-30 19:48 mostrows at vmware dot com
  2010-06-30 20:37 ` [Bug shlibs/11776] " jan dot kratochvil at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mostrows at vmware dot com @ 2010-06-30 19:48 UTC (permalink / raw)
  To: gdb-prs

svr4_relocate_main_executable() bails out without doing anything if it detects
prior existing relocation offsets have been applied.  A comment there states
that this is done so that preference is given to relocation offsets specified by
qOffsets packet processing, which occurs earlier.

Now suppose I start gdb and do:

1. Issue "target remote /dev/ttyS0"
2. GDB attaches, reads auxv and relocates via svr4_relocate_main_executable()
3. Issue "detach"
4. Issue "target remote /dev/ttyS1"
5. GDB attaches, reads auxv (relocation is different than above)
6. GDB bails out of svr4_relocate_main_executable() without relocating.
7. GDB uses the relocation data from the original connection, not the current one.

Note that if the remote stub supports "qOffsets" (not required), then the
processing of that response relocates the executable using that mechanism.

-- 
           Summary: solib-svr4 with remote target assumes qOffsets packet is
                    supported
           Product: gdb
           Version: 7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: shlibs
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: mostrows at vmware dot com
                CC: gdb-prs at sourceware dot org,jan dot kratochvil at
                    redhat dot com,msnyder at vmware dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11776

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-07-05 18:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-30 19:48 [Bug shlibs/11776] New: solib-svr4 with remote target assumes qOffsets packet is supported mostrows at vmware dot com
2010-06-30 20:37 ` [Bug shlibs/11776] " jan dot kratochvil at redhat dot com
2010-06-30 21:45 ` msnyder at sonic dot net
2010-06-30 21:46 ` msnyder at sonic dot net
2010-07-01  4:21 ` jan dot kratochvil at redhat dot com
2010-07-05 18:05 ` jan dot kratochvil at redhat dot com
2010-07-05 18:07 ` jan dot kratochvil at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).