Thread View: gnu.gdb.bug
1 messages
1 total messages
Started by David Fox
Sat, 21 Nov 1992 08:20
The Sun bug, after taking a deep breath and counting to 10...
Author: David Fox
Date: Sat, 21 Nov 1992 08:20
Date: Sat, 21 Nov 1992 08:20
26 lines
947 bytes
947 bytes
Compile the following program with g++-2.1 or later on a sparc,
invoke gdb-4.7, put a break point at the first statement of
main, and then do a "next". Instead of stopping at the second
line of the program the program finishes executing and exit:
#include <stdio.h>
struct foo {
int a;
int b;
};
foo bar(int x, int y)
{
foo r;
r.a = x;
r.b = y;
return r;
}
main()
{
foo i = bar(1, 2);
foo j = bar(3, 4);
printf("%d %d %d %d\n", i.a, i.b, j.a, j.b);
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads