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

Unified Diff: gdb/testsuite/gdb.ada/bp_on_var/pck.adb

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.ada/bp_on_var/foo.adb ('k') | gdb/testsuite/gdb.ada/bp_on_var/pck.ads » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.ada/bp_on_var/pck.adb
diff --git a/gdb/testsuite/gdb.ada/arrayparam/pck.adb b/gdb/testsuite/gdb.ada/bp_on_var/pck.adb
similarity index 69%
copy from gdb/testsuite/gdb.ada/arrayparam/pck.adb
copy to gdb/testsuite/gdb.ada/bp_on_var/pck.adb
index e9765f4d86e4b7480f1dd26fad4dbe2dd854ae98..04ecd6f2f79600651b80e20a465e849fad620eed 100644
--- a/gdb/testsuite/gdb.ada/arrayparam/pck.adb
+++ b/gdb/testsuite/gdb.ada/bp_on_var/pck.adb
@@ -1,4 +1,4 @@
--- Copyright 2008-2012 Free Software Foundation, Inc.
+-- Copyright 2012 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
@@ -14,15 +14,14 @@
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
package body Pck is
-
- procedure Call_Me (Str : String) is
+ My_Hidden_Variable : Integer := 0;
+ procedure Do_Something (I : in out Integer) is
begin
- Length := Str'Length;
- if Length > 0 then
- First := Str (Str'First);
- Last := Str (Str'Last);
+ if My_Hidden_Variable > 10 then
+ My_Hidden_Variable := 0;
end if;
- end Call_Me;
-
+ I := I + My_Hidden_Variable;
+ My_Hidden_Variable := My_Hidden_Variable + 1;
+ end Do_Something;
end Pck;
« no previous file with comments | « gdb/testsuite/gdb.ada/bp_on_var/foo.adb ('k') | gdb/testsuite/gdb.ada/bp_on_var/pck.ads » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698