diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-12-05 00:16:59 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-12-05 00:16:59 +0000 |
| commit | 90ba81150ef36277659edcc880d5440bd00ba997 (patch) | |
| tree | b6f4584b58e3b66240b7ecee9a993f34c0801e10 /lldb/source/Plugins/Process/gdb-remote | |
| parent | d31802c1f6ee4018bf362a1034bab0802c07024b (diff) | |
| download | bcm5719-llvm-90ba81150ef36277659edcc880d5440bd00ba997.tar.gz bcm5719-llvm-90ba81150ef36277659edcc880d5440bd00ba997.zip | |
<rdar://problem/12649160>
Added the ability to debug through your process exec'ing itself to the same architecture.
llvm-svn: 169340
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote')
| -rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 11 | ||||
| -rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 475e6d2bddf..7bc03005b70 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -1058,6 +1058,17 @@ ProcessGDBRemote::DidAttach () DidLaunchOrAttach (); } +void +ProcessGDBRemote::DoDidExec () +{ + // The process exec'ed itself, figure out the dynamic loader, etc... + BuildDynamicRegisterInfo (true); + m_gdb_comm.ResetDiscoverableSettings(); + DidLaunchOrAttach (); +} + + + Error ProcessGDBRemote::WillResume () { diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h index 4cf2a4f94fb..d19878f4837 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h @@ -113,6 +113,9 @@ public: virtual void DidAttach (); + virtual void + DoDidExec (); + //------------------------------------------------------------------ // PluginInterface protocol //------------------------------------------------------------------ |

