MnshSnghl

1

votes
1

answer
6.3k

views

Port status is always down and cant open UMAD port

I have newly installed ofed-1.5-3 on following machine : SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 1 Our admin has installed CX354A card (MCX354A-FCBT) card on the machine. $ lspci | grep -i mel 04:00.0 Network controller: Mellanox Technologies Device 1003 (Question 1: I don...
MnshSnghl
1

votes
1

answer
556

views

run a program with tcsetattr raw mode in background

I need to run a program as is in the background. The catch is that the program does a tcsetattr() call and sets the raw mode as following : struct termios tio; if (tcgetattr(fileno(stdin), &tio) == -1) { perror('tcgetattr'); return; } _saved_tio = tio; tio.c_iflag |= IGNPAR; tio.c_iflag &= ~(ISTRIP...
MnshSnghl
6

votes
4

answer
7.6k

views

g++ or gcc option to get warning message with warning id

By default gcc/g++ prints a warning message with the line number only. I am looking for the option by which g++ or gcc associates the build warning messages with the warning ids, so that the warning messages can be identified easily (without parsing). Also can there be any more option to get a more...
mnshsnghl
6

votes
7

answer
1.2k

views

How should application perform in 64-bit vs. 32-bit intel architectures?

I want to know the relative performances of a normal C++ application in the following scenarios: Built as 32-bit app, run on Intel 64-bit processor (x64-64) Built as 32-bit app, run on Intel 32-bit processor (x86) Built as 64-bit app. Also, what factors should I consider when modifying / developing...
MnshSnghl
35

votes
2

answer
18.2k

views

gdb, set breakpoint on all functions in a file

Is there a single command in gdb which can set breakpoints on all the functions in a given file ? I know about rbreak regex which sets breakpoints in matching regular expression functions, but my file doesnt have fixed patterned functions. In another way, is there a command by which I can set a bre...
MnshSnghl
1

votes
4

answer
488

views

How is the static function/variable protected

I want to know how a static variable or function is protected to be used only for the file it is defined in. I know that such variables and functions are declared in data section (heap area to be precise), but is it tagged with the file name ? Suppose I make a fool of the compiler by assigning such...
MnshSnghl
2

votes
3

answer
285

views

ddd gets inactive when mouse is moved out of its window

My ddd window doesn't take any keyboard input when my mouse cursor is moved out of the window. Although ddd window is still active, but it doesn't take any inputs. I will have to move my mouse over its window to make it work again. Is there a way to configure it in a way that it takes the input no m...
MnshSnghl
3

votes
1

answer
6.8k

views

Qwidget, how to highlight the widget under the cursor

I have created some QLabel type of widgets in QT, and added that to a QToolbar. I want to highlight the particular widget which is under the cursor. I am unable to understand how do I do that. Can somebody please help ? I need this information on QT 4. Thanks.
MnshSnghl