On 07/08/2014 07:25 AM, Zhang, Guansong wrote: > Hi > > I got > > E740: Too many arguments for function <SNR>34_nbcommand > > when I Crun > > :Crun -cc1 -fopenmp -omptargets=r600-unknown-unkown -omp-target-mode > -omp-module-id=19c0c37_811 -triple r600-unknown-unkown -S -disable-free > -main-file-name a1.c -mrelocation-model static > -mdisable-fp-elim -fmath-errno –mconstructor-aliases -target-linker-version > 2.24 -v -coverage-file > /home/guansong/Projects/working/target/a1-tgt-r600-unknown-unkown.s > -resource-dir > /data/guansong/Projects/clang-omp.latest/build/Debug+Asserts/bin/../lib/clang/3.4 > -fno-dwarf-directory-asm -fdebug-compilation-dir > /home/guansong/Projects/working/target -ferror-limit 19 > -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc > -fdiagnostics-show-option -vectorize-slp -o a1-tgt-r600-unknown-unkown.s -x > cpp-output a1-tgt-r600-unknown-unkown.i > > this is a clang command line arg. > > So not sure where is this limit? In pyclewn or vim? How to increase it? If I > remove some of them, clang can run inside pyclewn as expected …
This is a Vim error message. Type ":help E740" to read its description (a vim function is limited to 20 arguments). To overcome this limitation, try passing the arguments to the gdb command line by setting the "pyclewn_args" vim global variable *before* running the ":Pyclewn" command. For example (note that the 'clang' executable to debug is the first item of the list): :let pyclewn_args="--args=\"--args clang arg1 arg2 arg3 ... arg21 arg22\"" The first '--args' is the pyclewn command line option. The second '--args' is the gdb command line option. Changes to "pyclewn_args" are ignored after the plugin has been loaded, so it is necessary to start a new instance of Vim if you need to start clang with different options, Xavier ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ Pyclewn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyclewn-general
