Programmargumente können entweder auf der Kommandozeile übergeben werden:
gdb --args ./prog arg1 arg2 arg3
oder als Teil des gdb-Befehls run
:
gdb ./prog
#!/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 | |
{ |
import java.util.Arrays; | |
public class Main { | |
public static void main(String[] args) { | |
int N = 10; | |
Wohnung[] wohnungen = new Wohnung[N]; | |
Wohnung klein = new Wohnung(3, 28); |
import java.util.Arrays; | |
public class Haus { | |
private Wohnung[] wohnungen; | |
public Haus() { | |
wohnungen = new Wohnung[0]; | |
} |
import java.util.Arrays; | |
public class Main { | |
public static void main(String[] args) { | |
int N = 10; | |
Wohnung[] wohnungen = new Wohnung[N]; | |
Wohnung klein = new Wohnung(3, 28); |