forked from srinirad/Test3Session1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
p1output.txt
40 lines (39 loc) · 1.34 KB
/
p1output.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
clang version 7.0.0-3~ubuntu0.18.04.1 (tags/RELEASE_700/final)
gcc -g p1original.c
gdb a.out
GNU gdb (Ubuntu 8.1.1-0ubuntu1) 8.1.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from a.out...done.
(gdb) b main
Breakpoint 1 at 0x8b3: file p1original.c, line 24.
(gdb) r
Starting program: /home/runner/Test3Session1/a.out
warning: Error disabling address space randomization: Operation not permitted
Breakpoint 1, main () at p1original.c:24
24 {
(gdb) n
26 input(&num1,&den1,&num2,&den2);
(gdb) c
Continuing.
enter the first numerator
1
enter the first dinominator
2
enter the second numerator
1
enter the second numerator
4
sum of 1/2 + 1/4 is 6/8[Inferior 1 (process 4911) exited normally]
(gdb)