repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix: Null pointer dereference in ldlex.l
[binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.base
/
sum.c
blob
3e27fa1a41a19eba2d960078710ea482029da9a6
1
/* This is a sample program for the HP/DDE debugger. */
2
#include <stdio.h>
3
4
int
sum
(
int
*
list
,
int
low
,
int
high
)
5
{
6
int
i
=
0
,
s
=
0
;
/* stop-in-sum */
7
for
(
i
=
low
;
i
<=
high
;
i
++)
8
s
+=
list
[
i
];
9
return
(
s
);
10
}