Programming :: Coverage Testing With Gcov - Terminal Not Accepting Copy Paste?

Jun 1, 2010

I have this treacherous program in C which uses external static libraries (extern etc), and want to do a coverage test of it. The libraries are written in fortran. I compile like this Code: gcc -fprofile-arcs -ftest-coverage -o main main.c library.o I run my nice program like that

Code: ./main Then I do the magic stuff
Code: gcov main.c library.f

Ok 98% of the lines were used in main.c, and I get a file with line counts and all that. Great! But, I need to know the coverage in my library too! It says 0.0% and that's impossible. So what can I do? I can't run it like an executable because it's a library.

And why is the terminal not accepting my copy paste? I copy some lines from my IDE, then I want to paste it into the terminal (with ctrl-v of course, not some crazy local application non-standard counter-intuitive key combo made just to cause agony among honest users!), and that could've been the only problem here, but it isn't. I can't even paste with that right click menu. So, if I was crazy before, I went nuts after that. My great "solution" was to paste it into the firefox URL field (not the search field ) and then copy that and paste it into the terminal. Is that common practice for you all while dealing with that unburied DOS-window?

View 1 Replies


ADVERTISEMENT

Programming :: GCOV : Produces Empty .c.gcov Files

Nov 29, 2010

I am trying to use gcov on a library (.so) with GCC 4.5. When I compile it does produce the .gcno file. When I run the test it does produce .gcda files corresponding to the library source files. But when I run gcov on source file it produces an empty .c.gcov file.

View 8 Replies View Related

Ubuntu Networking :: Copy Files From XP Infact Folders Using TERMINAL In Netbook, Not Copy And Paste Using Mouse?

Jul 9, 2010

just installed ubuntu couple of days back on my netbook. I am still a beginner, enjoying my adventure exploring ubuntu. I have another desktop which runs on XP. I am able to access XP shared folders through my netbook(linux). However, i wanted to copy files from XP infact folders using TERMINAL in my netbook, not copy and paste using my mouse. Are there any commands for it?

View 1 Replies View Related

Ubuntu :: Can't Copy Or Paste In Terminal ?

Jul 14, 2010

I'm running Lucid, and whenever I run a program in gnome-terminal that captures the mouse (dvtm, elinks, mc) I cannot highlight any text, which prevents me from copying any text from the terminal.

View 2 Replies View Related

General :: Copy And Paste Text Among Documents In Terminal

Mar 28, 2010

What is the best way to copy and paste some text among text documents in Linux terminal environment? Suppose I have 2 documents, A and B, and I want to copy some part of A to B. What is the way to achieve this?

View 5 Replies View Related

General :: Copy / Paste Output From Shell (not Terminal)?

Jul 15, 2010

I often have issues starting my window manager--xfce. My computer misbehaves in one of 3 ways, one of which is to fail to open X, but generate several screens of info. I want to paste that info to this site, but since I'm in the shell, not the terminal (please correct my vocabulary if it's wrong here), I don't know how to copy and paste the output, since right-clicking doesn't give me a menu. Even if I could copy I'm not sure the information would be accessible in X. Are there any other options?

View 13 Replies View Related

General :: Cannot Use Ctrl-Ins And Shift-Ins Shortcuts For Copy And Paste In Console Terminal

Jun 29, 2011

I installed Slackware 13.37 current 32 bit (kernel 2.6.38.7-smp) last saturday and almost everything works fine. I don't understand why I cannot use Ctrl-Ins and Shift-Ins shortcuts for copy and paste in console terminal. Shortcuts works fine in X terminal (fluxbox) Konsole... but they don't in text console.

View 2 Replies View Related

General :: Make Ubuntu's Terminal Program Automatically Copy To Clipboard Selected Text / Paste

Jul 6, 2011

i'm used to using putty on a window's machine.With putty whatever you select is automatically on the clipboard without having to right click and select copy.And right click just pastes.

View 1 Replies View Related

Programming :: Automate Copy And Paste Of Files From The Internet?

Jul 28, 2010

Here is what I currently do and want to automate:

1) I manually enter a particular web site address in the browser.

2) When the page displays on my machine, it shows a number of links I need to visit, one after the other.

3) Each of these links display another page (file) from which I "cut and paste" information. I do this by highlighting manually the wanted info, click "copy" then select an open file on my computer, select "undo" if necessary to remove any previous content, click "paste" and then "save".

4) I then call a Yabasic program that reads the saved file and trims unwanted info.

5) At the completion of the Yabasic program, I click the web page tag, click the "back" button to return to the first page (since I am in the second) and click the next link in this first page till all links have been visited.

6) visit the next known web site and repeat 1 to 5

In an automated program, what I need to do is:

1) Visit the known page of the web site showing the links
2) save the page showing the links (the first page)
3) make a list of those links
4) visit each link one after the other and save its page from which I will programmatically (Yabasic) select info.
5) repeat 1 to 4

I can do this in "Yabasic" (which can issue Linux commands) or PHP although I do not know PHP much.the purpose of this is to associate towns and cities of the world with their respective political/geographical divisions and their respective time zone. This has to be done often because that data changes regularly.

View 3 Replies View Related

Programming :: Locating Copy & Paste Source Code?

Mar 20, 2011

I've never really taken advantage of Linux being open source before but I was wondering how the copy and paste functions look like. So far I have found out that they are handled by the X Window System (by reading this thread).But I don't seem to get much further than that.

View 1 Replies View Related

Ubuntu Networking :: Copy / Paste From Terminal Window To Another Window?

Mar 1, 2011

I have problem with internet connection on my Ubuntu, but the major problem is that i can't copy the message from my terminal while I type:ifgonfig and paste it here to show you what is the problem.

View 9 Replies View Related

Programming :: Script To Copy Paste Text From One File To Another (overwriting Part Of The File)?

Apr 19, 2011

I have a .txt-file with ~50.000 lines of numbers, generated by a mathematics program. From this file, I need line ~ 1.100 to line ~16.000 (these lines are always the same btw, this may make the solution easier, dunno) to be copy/pasted to another file, where the lines ~500 to ~15.000 (also, every time the same) should be overwritten by the aforementioned lines...I haven't found or come up with anything that works yet, mostly I find solutions to copy everything from one file to another but I can't find something to specifically overwrite a part of a file with part of another.

View 4 Replies View Related

Programming :: Running Gcov When Executable Has Command Line Input Options

Mar 3, 2011

I have an executable with input options, like so:
Code:
./executable -n 42 -s 42
I've added gcov to the makefiles (compiling with --coverage, -fprofile-arcs, and -ftest-coverage, and linking with -lgcov). It builds fine and creates executable.gcno.

When I try to run gcov, gcov things the options belong to it:
Code:
$ gcov ./executable -n 42 -s 42
gcov: invalid option -- 's'
Usage: gcov [OPTION]... SOURCEFILE...
When I use quotes this happens:

Code:
$ gcov './executable -n 42 -s 42'
executable -n 42 -s 42.gcno:cannot open graph file

The command line options must remain. How can I get gcov to generate the same .gcno file it later looks for?

View 2 Replies View Related

Programming :: Copy At Terminal With Progress Bar

Mar 9, 2009

After searching I cant find script that can deal with directories. All the found scripts work file to file and not directory to directory. Someone know script that can deal with all this situation?

View 8 Replies View Related

Ubuntu :: No Copy No Paste In 10.04

Jun 28, 2010

Anyone know why, my copy & paste in the terminal doesn't work....it's there, just not highlighted, I need to install Sun Java and can copy the command lines from the forum I just can't paste them into the terminal. Also is there a way to check that my Ubuntu download to my USB stick is error free?

View 3 Replies View Related

General :: Can't Copy And Paste Into Cygwin

May 7, 2010

I can't copy and paste into Cygwin... is there a good alternative to Cygwin that will let me do this?

View 7 Replies View Related

General :: Vim Copy-paste Across Terminals?

Jan 19, 2011

The usual vim yank and paste works only in the same window (but does work across files and close/save commands). Is it possible to make it work across terminals (yank from window in one terminal and paste in another) and if so, how?

View 1 Replies View Related

Ubuntu :: No Cut, Copy, Paste Commands In 9.10?

Jan 11, 2010

I can't Copy, paste, select all, or find with my keyboard... pretty much all the commands that involve the Control key don't work. in firefox... the edit> copy, paste , etc commands are actually grayed out too.

View 7 Replies View Related

Ubuntu :: Copy & Paste Not Working?

Aug 15, 2010

I can't copy & paste text from an Evolution email message without first pasting the text into an editor like gedit or a word processor and recopying it a second time... Then it works fine... I thought the problem may have been a Delphi forum specific problem, but it also does the same thing on this board...

I running 10.04 with the default Evolution mail program.

BTW on Delphi I can turn off the wysiwyg editor and paste as "source" and it works just fine without the paste and recopy step...

View 7 Replies View Related

Ubuntu :: 10.10 Copy/Paste - Garble ?

Oct 21, 2010

I am experiencing an issue where the first time I copy and paste it works fine. But after that it just pastes garble. I've installed glipper and if I clear the clipboard after every copy/paste its fine.

At first I upgraded from 10.04 and this came up so I thought I would just do a clean install of 10.10. It was still happening.

View 1 Replies View Related

Software :: How To Copy Paste From Vi To Browser

Dec 13, 2010

I'm trying to copy paste about 5k lines from a vi text file onto a website but obviously manually selecting the text from my screen and pasting it one page at a time is time consuming so I was wondering if there was an easier way to do this?

View 2 Replies View Related

Debian :: Can't Copy From A Web Browser And Paste Into A Shell

Feb 10, 2011

Why can't I copy from a web browser and paste into a shell?

Sometimes it works, other is does not.

I also used the right click menus to make 100% sure that COPY and then Paste were valid

View 12 Replies View Related

Fedora :: Copy And Paste From Window Vista?

May 29, 2010

I am trying to Copy and Paste a link on Fedora 8 (I am using Window Vista) and I can't find a way to do this.. I have tried "Right and Left" click at the same time... I have tried "Shift-Ctrl-C and Shift-Ctrl-V.. plus all the others with no results..
I am working from root on a Console...

View 8 Replies View Related

General :: GVim Via SSH -X Does Not Copy Paste On Selection

Nov 12, 2010

I'm using SSH (with -X specified) from a Ubuntu box to a RHEL4 box and running GVim. It opens as expected in my local X, but the copy and paste via select doesn't work. I cannot select text in GVim and paste in a local window, nor can I select text from a local window and paste in GVim. This works, however, when I SSH (with -X specified) to a different RHEL4 box. Is there something I need to install on the remote machine? I am running Parcellite 0.9.2 on the local box, but closing it doesn't make the problem go away, and it is not interfering with the other box.

View 1 Replies View Related

General :: VIm Copy & Paste Between Apps As A Non-superuser?

Sep 13, 2011

I'm using a work computer so i don't have a root access. I've tried "+y, "*y, set clipboard=unnamed. It looks like my vim doesn't support +clipboard (version 7.0).I'm using Linux Centos 5 so fakeclips doesn't actually help (i think)It's a pain to type stuff manually from firefox to vim or other apps and vice versa.

View 3 Replies View Related

Ubuntu :: Copy And Paste Does Not Work Much Of The Time

Mar 7, 2010

In Ubuntu, why does copy and past not work for most applications. I can't tell you how many times I have copied some text and went to a new application and Past is greyed out. For example, in Firefox I can highlight some text like "Belmont Diner", then right click and choose "Copy". Then go up to the Google search bar and right click and Paste is not an option. I have tried doing this using Crtl C to copy and Ctrl V to paste. It does not work...most of the time. Every once in a while it will but most of the time it does not. I can repeat the action to make sure I really copied the data and still no luck. Sometimes it works but many times it does not.

View 4 Replies View Related

Ubuntu :: Enable Copy - Paste To Www Directory?

Mar 28, 2010

How to enable copy/paste to www directory or how to copy files to www directory?

View 7 Replies View Related

Ubuntu :: Copy Paste Is Not Working While Using Rdesktop?

Apr 23, 2010

I've tried rdesktop and grdesktop.. But i can't do copy and paste operation within windows XP machine.

View 4 Replies View Related

Ubuntu :: Copy - Paste Causes 1 Or 2 Second Freeze Of Touchpad

Jul 7, 2010

I'm using Ubuntu 10.04 64bit on a Toshiba Satellite L500 series laptop.

Every time I press ctrl c or v the touchpad freezes for a few seconds and the cursor won't move.

View 2 Replies View Related

Ubuntu :: Copy & Paste Not Working Between Apps?

Aug 17, 2010

I can copy and paste text within a document but can't seem to do so between applications. It just doesn't work.

This problem did not exist on earlier versions of Ubuntu.

Running: 10.04 dual boot on a Dell Latitude D510 with 2gig RAM.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved