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

Unified Diff: gdb/testsuite/gdb.base/callfuncs.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.base/callexit.exp ('k') | gdb/testsuite/gdb.base/callfuncs.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.base/callfuncs.c
diff --git a/gdb/testsuite/gdb.base/callfuncs.c b/gdb/testsuite/gdb.base/callfuncs.c
index 125dd39c76040f54ab3526343eaad8fe9cd29d3b..7fb5061866dc215a58a73283b518d879dde313e1 100644
--- a/gdb/testsuite/gdb.base/callfuncs.c
+++ b/gdb/testsuite/gdb.base/callfuncs.c
@@ -641,15 +641,18 @@ struct struct_with_fnptr function_struct = { doubleit };
struct struct_with_fnptr *function_struct_ptr = &function_struct;
+int *
+voidfunc (void)
+{
+ static int twentythree = 23;
+ return &twentythree;
+}
+
/* Gotta have a main to be able to generate a linked, runnable
executable, and also provide a useful place to set a breakpoint. */
int main ()
{
-#ifdef usestubs
- set_debug_traps();
- breakpoint();
-#endif
malloc(1);
t_double_values(double_val1, double_val2);
t_structs_c(struct_val1);
« no previous file with comments | « gdb/testsuite/gdb.base/callexit.exp ('k') | gdb/testsuite/gdb.base/callfuncs.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698