This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
backtrace/1494: info thread changes the frame level
- From: david at streamline-computing dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 22 Dec 2003 11:15:19 -0000
- Subject: backtrace/1494: info thread changes the frame level
- Reply-to: david at streamline-computing dot com
>Number: 1494
>Category: backtrace
>Synopsis: info thread changes the frame level
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Dec 22 11:18:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: david@streamline-computing.com
>Release: 5.3 and 6.0
>Organization:
>Environment:
>Description:
Setting the frame to #1 and then doing an
"info threads" causes the frame to move to level #2
- info surely shouldn't have this side effect??
The following gdb script and C program demonstrate (cc -g test.c, no other options) the problem.
b f
r
up
frame
info threads
frame
void f() {
}
void g() {
f();
}
void h() {
g();
}
int main(int argc, char** argv) {
h();
}
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: