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

Unified Diff: gdb/testsuite/gdb.linespec/base/two/thefile.cc

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 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.linespec/base/two/header.h ('k') | gdb/testsuite/gdb.linespec/break-ask.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.linespec/base/two/thefile.cc
diff --git a/gdb/testsuite/gdb.linespec/base/two/thefile.cc b/gdb/testsuite/gdb.linespec/base/two/thefile.cc
index ffca87a4e8752874d0a8d735d19c077049604c95..88188a5e0d124303c5bd9fef3d117e60e38af905 100644
--- a/gdb/testsuite/gdb.linespec/base/two/thefile.cc
+++ b/gdb/testsuite/gdb.linespec/base/two/thefile.cc
@@ -9,9 +9,15 @@ static int dupname(int y)
label: return y;
}
+static int twodup ()
+{
+ return 0;
+}
+
int n(int y)
{
- return dupname(y) - 23; /* thefile breakpoint */
+ int v = dupname(y) - 23; /* thefile breakpoint */
+ return v + twodup (); /* after dupname */
}
int NameSpace::overload(double x)
« no previous file with comments | « gdb/testsuite/gdb.linespec/base/two/header.h ('k') | gdb/testsuite/gdb.linespec/break-ask.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698