Skip to content

Instantly share code, notes, and snippets.

@SteveLTN SteveLTN/gdb-uncommented
Last active Jan 4, 2016

Embed
What would you like to do?
GDB result of uncommented code
❯ gdb ./md task3 82ac80d ✗
GNU gdb (GDB) 7.5
Copyright (C) 2012 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-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /local/pcs_ua/pcs13_19/Labs/Lab2/MolDyn/md...done.
(gdb) watch f_accumulation[0][1394]
Hardware watchpoint 1: f_accumulation[0][1394]
(gdb) r
Starting program: /local/pcs_ua/pcs13_19/Labs/Lab2/MolDyn/md
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Molecular Dynamics Simulation example program
---------------------------------------------
number of particles is ............ 13500
side length of the box is ......... 25.323179
cut off is ........................ 3.750000
reduced temperature is ............ 0.722000
basic timestep is ................. 0.064000
temperature scale interval ........ 10
stop scaling at move .............. 20
print interval .................... 5
total no. of steps ................ 20
i ke pe e temp pres vel rp
----- ---------- ---------- ---------- -------- -------- -------- ----
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = <unreadable>
New value = 0
L_main_128__par_region0_2_75 () at main.c:135
135 for (i = 0; i < num_threads; i++)
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 0
New value = 3.2186704024134878e-57
0x00000035b2c8e6df in __memset_x86_64 () from /lib64/libc.so.6
(gdb) c
Continuing.
before forces in main: f[ii] = 0.00000000000000000000, f_a[ii] = 0.00000000000000000000
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 3.2186704024134878e-57
New value = 9.6628030960322677e-08
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 9.6628030960322677e-08
New value = 0.00075563692285537172
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 0.00075563692285537172
New value = -1.0562191859471437e-05
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -1.0562191859471437e-05
New value = -5.4163664839624227e-05
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -5.4163664839624227e-05
New value = 0.00010385563692257469
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 0.00010385563692257469
New value = -5.3089004413032744e-05
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -5.3089004413032744e-05
New value = -5.4253550936388433e-05
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -5.4253550936388433e-05
New value = 0.00010022927042627636
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 0.00010022927042627636
New value = -5.7336213366367551e-05
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -5.7336213366367551e-05
New value = -6.5739816946191063e-05
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -6.5739816946191063e-05
New value = 0.011350984887197787
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 0.011350984887197787
New value = 0.011450963157510274
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 0.011450963157510274
New value = 0.011350662605806954
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 0.011350662605806954
New value = -0.00034586502829251839
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -0.00034586502829251839
New value = -0.0078432182577748352
forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75) at forces.c:13
13 for (i=0; i<npart*3; i+=3) {
(gdb) c
Continuing.
=========f_a[0][1394] = -0.00784321825777483522
in forces : f[ii] = -0.00784321825777483522, f_a[ii] = -0.00784321825777483522
after forces in main : f[ii] = -0.00784321825777483522, f_a[ii] = -0.00784321825777483522
--------------------------------------------------
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -0.0078432182577748352
New value = 3.2186704024134878e-57
0x00000035b2c8e6df in __memset_x86_64 () from /lib64/libc.so.6
(gdb) c
Continuing.
before forces in main: f[ii] = 0.00000000000000000000, f_a[ii] = 0.00000000000000000000
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 3.2186704024134878e-57
New value = 1.938927633459364e-07
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 1.938927633459364e-07
New value = 0.00072209463806060105
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 0.00072209463806060105
New value = -2.0311409687721535e-05
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -2.0311409687721535e-05
New value = -0.00010060481489796058
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -0.00010060481489796058
New value = 5.7966601979057931e-05
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 5.7966601979057931e-05
New value = -9.8480318898034369e-05
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -9.8480318898034369e-05
New value = -0.00010070653318253138
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -0.00010070653318253138
New value = 5.0896085729059548e-05
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 5.0896085729059548e-05
New value = -0.00010677186065530752
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -0.00010677186065530752
New value = -0.00012308773638087297
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -0.00012308773638087297
New value = 0.011017920061816802
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 0.011017920061816802
New value = 0.011118022580452677
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 0.011118022580452677
New value = 0.011017227114749582
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 0.011017227114749582
New value = -0.00066401718458766745
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -0.00066401718458766745
New value = -0.016738278278316247
forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75) at forces.c:13
13 for (i=0; i<npart*3; i+=3) {
(gdb) c
Continuing.
=========f_a[0][1394] = -0.01673827827831624732
in forces : f[ii] = -0.01673827827831624732, f_a[ii] = -0.01673827827831624732
after forces in main : f[ii] = -0.01673827827831624732, f_a[ii] = -0.01673827827831624732
--------------------------------------------------
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -0.016738278278316247
New value = 3.2186704024134878e-57
0x00000035b2c8e6df in __memset_x86_64 () from /lib64/libc.so.6
(gdb) c
Continuing.
before forces in main: f[ii] = 0.00000000000000000000, f_a[ii] = 0.00000000000000000000
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 3.2186704024134878e-57
New value = 2.9338949131182376e-07
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 2.9338949131182376e-07
New value = 0.00069039606387593462
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 0.00069039606387593462
New value = -2.9227161792726728e-05
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -2.9227161792726728e-05
New value = -0.00014011914613065626
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -0.00014011914613065626
New value = 1.8960408092219517e-05
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 1.8960408092219517e-05
New value = -0.00013699905590998287
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -0.00013699905590998287
New value = -0.00014017772326436654
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -0.00014017772326436654
New value = 8.6250167081086714e-06
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 8.6250167081086714e-06
New value = -0.00014911557673938394
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -0.00014911557673938394
New value = -0.00017282172054241963
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = -0.00017282172054241963
New value = 0.010688840708506947
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Old value = 0.010688840708506947
New value = 0.010789019876857773
0x0000000000403277 in forces (npart=13500, x=0x7ffffff0fce0, f=0x7ffffffae020, side=25.323178916891326, rcoff=3.75)
at forces.c:59
59 f_accumulation[thread_num][j+2] -= zz*r148;
(gdb) c
Continuing.
Hardware watchpoint 1: f_accumulation[0][1394]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.