diff options
author | gdb-3.1 <gdb@fsf.org> | 1989-01-31 17:56:40 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-06-03 15:36:31 +0100 |
commit | e91b87a36830d061ef87d67be5f309e4d4ed918f (patch) | |
tree | 3408ea913a9cccd51c9b7d0b3bc7d7897cac8a5b /gdb/testbpt.c | |
parent | bb7592f01006b09c846831a9fb9c306307ba34f6 (diff) | |
download | gdb-e91b87a36830d061ef87d67be5f309e4d4ed918f.zip gdb-e91b87a36830d061ef87d67be5f309e4d4ed918f.tar.gz gdb-e91b87a36830d061ef87d67be5f309e4d4ed918f.tar.bz2 |
gdb-3.1
Diffstat (limited to 'gdb/testbpt.c')
-rw-r--r-- | gdb/testbpt.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/gdb/testbpt.c b/gdb/testbpt.c deleted file mode 100644 index baa4e51..0000000 --- a/gdb/testbpt.c +++ /dev/null @@ -1,33 +0,0 @@ -/* Run this program straight. Then set a breakpoint in `dump', - run it again, and continue the program. Diff the outputs - and you will see what the supplied debugger does for a breakpoint. */ - -int dump (); -int after_dump (); - -main () -{ - printf ("main = 0x%x\ndump = 0x%x\nend = 0x%x\n", main, dump, after_dump); - - dump (main, after_dump); -} - -int dump (p, q) - int *p; - int *q; -{ - int cnt = 0; - printf ("dump: 0x%x-0x%x\n", p, q); - - while (p < q) - { - if ((cnt++ & 3) == 0) - printf ("\n0x%08x: ", p); - printf ("0x%08x ", *p++); - } - printf ("\n"); -} - -after_dump () -{ -} |