Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: gdb/testsuite/gdb.trace/strace.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.trace/status-stop.exp ('k') | gdb/testsuite/gdb.trace/strace.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.trace/strace.c
diff --git a/gdb/testsuite/gdb.trace/status-stop.c b/gdb/testsuite/gdb.trace/strace.c
similarity index 75%
copy from gdb/testsuite/gdb.trace/status-stop.c
copy to gdb/testsuite/gdb.trace/strace.c
index 01130b1f9470436a1b84c6e4fdd388761800e34d..f83c0def77c6d6c1001fc56ab83cc5fa0506bb30 100644
--- a/gdb/testsuite/gdb.trace/status-stop.c
+++ b/gdb/testsuite/gdb.trace/strace.c
@@ -15,15 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-static void
-func1 (void)
-{}
-
-int buf[1024];
-
-static void
-func2 (void)
-{}
+#include <ust/marker.h>
static void
end (void)
@@ -32,16 +24,13 @@ end (void)
int
main (void)
{
- int i;
-
- func1 ();
+ /* Some code to make sure that breakpoints on `main' and `ust/bar' marker
+ are set at different addresses. */
+ int a = 0;
+ int b = a;
- /* We call func2 as many times as possible to make sure that trace is
- stopped due to trace buffer is full. */
- for (i = 0; i < 10000; i++)
- {
- func2 ();
- }
+ trace_mark(ust, bar, "str %s", "FOOBAZ");
+ trace_mark(ust, bar2, "number1 %d number2 %d", 53, 9800);
end ();
return 0;
« no previous file with comments | « gdb/testsuite/gdb.trace/status-stop.exp ('k') | gdb/testsuite/gdb.trace/strace.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698