Programmargumente können entweder auf der Kommandozeile übergeben werden:
gdb --args ./prog arg1 arg2 arg3
oder als Teil des gdb-Befehls run:
gdb ./prog
| // Released into the public domain. | |
| // http://creativecommons.org/publicdomain/zero/1.0/ | |
| // converts a PKCS#8 PEM private key (as generated by OpenSSL's "genpkey") | |
| // and a corresponding certificate chain (X.509 PEM) to a Java keystore. | |
| // why can't keytool do this natively? | |
| // warning: requires JRE 8 because it uses java.util.Base64 | |
| import java.io.BufferedInputStream; |
| #!/usr/bin/env python3 | |
| import sys | |
| import hashlib | |
| def getint(data, offset, intsize): | |
| """Retrieve an integer (big-endian) and new offset from the current offset""" | |
| value = 0 | |
| while intsize > 0: | |
| value = (value << 8) | data[offset] | |
| offset += 1 |
| #include <iomanip> | |
| #include <iostream> | |
| #include <QByteArray> | |
| #include <QSet> | |
| #include <QString> | |
| #include <QTextCodec> | |
| static const QSet<QChar> urlSafeCharacters { | |
| 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', |
| #!/usr/bin/env python3 | |
| from math import floor | |
| import struct | |
| mp3_bit_rates = { | |
| 0b0001: 32000, | |
| 0b0010: 40000, | |
| 0b0011: 48000, | |
| 0b0100: 56000, | |
| 0b0101: 64000, |
| import io | |
| import struct | |
| container_chunks = {b"RIFF", b"LIST"} | |
| class RiffChunk: | |
| def __init__(self, tag, data): | |
| self.tag = tag | |
| self.data = data |
| // Released into the public domain. | |
| // http://creativecommons.org/publicdomain/zero/1.0/ | |
| #include <string> | |
| #include <cstdio> | |
| #include <fcntl.h> | |
| #include <io.h> | |
| #include <windows.h> |
| #include <linux/init.h> | |
| #include <linux/module.h> | |
| #include <linux/fs.h> | |
| #include <linux/device.h> | |
| #include <linux/cdev.h> | |
| #include <linux/semaphore.h> | |
| #include <linux/slab.h> | |
| #include <linux/uaccess.h> | |
| #include <linux/thread_info.h> | |
| #include <linux/sched.h> |
| import logging | |
| __author__ = 'ondra' | |
| logger = logging.getLogger("apples") | |
| class Apple: | |
| def __init__(self, number, name, bloom_time, good_donors=None, other_donors=None, | |
| triploid=False): | |
| """ |
| #include <QQueue> | |
| #include <QSet> | |
| #include <iostream> | |
| #include <cstdint> | |
| class Pixel | |
| { |