| 1819 | } |
| 1820 | |
| 1821 | static void debug_mi_break_insert( int argc, const char * * argv ) |
| 1822 | { |
| 1823 | const char * inner_argv[ 2 ]; |
| 1824 | // int temporary = 0; /* FIXME: not supported yet */ |
| 1825 | // int hardware = 0; /* unsupported */ |
| 1826 | // int force = 1; /* We don't have global debug information... */ |
| 1827 | int disabled = 0; |
| 1828 | // int tracepoint = 0; /* unsupported */ |
| 1829 | // int thread_id = 0; |
| 1830 | // int ignore_count = 0; |
| 1831 | // const char * condition; /* FIXME: not supported yet */ |
| 1832 | const char * location; |
| 1833 | int id; |
| 1834 | for ( --argc, ++argv; argc; --argc, ++argv ) |
| 1835 | { |
| 1836 | if ( strcmp( *argv, "-t" ) == 0 ) |
| 1837 | { |
| 1838 | // temporary = 1; |
| 1839 | } |
| 1840 | else if ( strcmp( *argv, "-h" ) == 0 ) |
| 1841 | { |
| 1842 | // hardware = 1; |
| 1843 | } |
| 1844 | else if ( strcmp( *argv, "-f" ) == 0 ) |
| 1845 | { |
| 1846 | // force = 1; |
| 1847 | } |
| 1848 | else if ( strcmp( *argv, "-d" ) == 0 ) |
| 1849 | { |
| 1850 | disabled = 1; |
| 1851 | } |
| 1852 | else if ( strcmp( *argv, "-a" ) == 0 ) |
| 1853 | { |
| 1854 | // tracepoint = 1; |
| 1855 | } |
| 1856 | else if ( strcmp( *argv, "-c" ) == 0 ) |
| 1857 | { |
| 1858 | if ( argc < 2 ) |
| 1859 | { |
| 1860 | debug_mi_error( "Missing argument for -c." ); |
| 1861 | return; |
| 1862 | } |
| 1863 | |
| 1864 | // condition = argv[ 1 ]; |
| 1865 | --argc; |
| 1866 | ++argv; |
| 1867 | } |
| 1868 | else if ( strcmp( *argv, "-i" ) == 0 ) |
| 1869 | { |
| 1870 | if ( argc < 2 ) |
| 1871 | { |
| 1872 | debug_mi_error( "Missing argument for -i." ); |
| 1873 | return; |
| 1874 | } |
| 1875 | |
| 1876 | // ignore_count = atoi( argv[ 1 ] ); |
| 1877 | --argc; |
| 1878 | ++argv; |
nothing calls this directly
no test coverage detected