Gdb: Gdb now informs that stack has been trimed.

git-svn-id: svn://ultimatepp.org/upp/trunk@12030 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
klugier 2018-06-29 23:11:25 +00:00
parent 88dfd7f23d
commit 58e2a36f79
2 changed files with 9 additions and 3 deletions

View file

@ -227,6 +227,9 @@ public:
private:
bool CreateDbg(One<Host>& host, const String& exeFile, bool console);
private:
const int max_stack_trace_size;
};
#include "Gdb_MI2.h"

View file

@ -387,8 +387,6 @@ void Gdb::DisasFocus()
void Gdb::DropFrames()
{
const int max_stack_trace_size = 200;
int i = 0;
int q = ~frame;
frame.Clear();
@ -419,7 +417,11 @@ String Gdb::ObtainFrame(int frame_idx)
void Gdb::SwitchFrame()
{
int i = (int)~frame;
auto i = static_cast<int>(~frame);
if (i == max_stack_trace_size) {
i = 0;
}
Cmdp(Sprintf("frame %d", i), i);
}
@ -510,6 +512,7 @@ void Gdb::Periodic()
}
Gdb::Gdb()
: max_stack_trace_size(200)
{
locals.NoHeader();
locals.AddColumn("", 1);