The scroll wheel on my Logitech USB mouse was not working in the Ubuntu 7.10 guest running on VMware Fusion.
Fix: change the driver in the mouse section of /etc/X11/xorg.conf from ps/2 to imps/2
Ref : http://communities.vmware.com/message/780209
Thursday, December 27, 2007
Wednesday, September 5, 2007
uid and gid
use the id command to find out the uid and the gid of a user.
example:
% id root
uid=0(root) gid=0(root) groups=0(root)
example:
% id root
uid=0(root) gid=0(root) groups=0(root)
Friday, June 29, 2007
Printing code at a PC value in gdb
x /i $pc
Then you can
si
to continue stepping, along with a display of the instruction corresponding to the PC
Then you can
si
to continue stepping, along with a display of the instruction corresponding to the PC
Saturday, May 12, 2007
Problem in searching with Eclipse
Workspace/Project search for text, on my Eclipse CDT projects, returned "0 matches" in spite of the searched text being present.
The problem was that my default VM was set to the GNU Java VM.
Setting this to the Sun VM solved the problem.
http://ubuntuforums.org/showthread.php?t=201378 shows how to install the Sun VM on Ubutnu and make Eclipse use it.
The problem was that my default VM was set to the GNU Java VM.
Setting this to the Sun VM solved the problem.
http://ubuntuforums.org/showthread.php?t=201378 shows how to install the Sun VM on Ubutnu and make Eclipse use it.
Wednesday, May 9, 2007
Intel syntax in gdb
You can get gdb to use Intel syntax to display assembly code by using
set disassembly-flavor intel
Disassembing an elf binary on x86 Linux
An ELF binary can be disassembled on an x86 Linux machine using objdump .
1. compile your file using gcc
> gcc test.c -o test
2. get the objdump
>objdump test -f -D --disassembler-options intel
This would print the assembly equivalent of the elf binary test .
The -f option displays summary information from the section headers of the object file. This displays the starting address from where the program would begin execution.
--disassembler-options intel prints the output assembly in intel format
See the man pages of objdump for a comprehensive explanation of the options.
The target of instructions like
jmp DWORD PTR ds:0x80496b0
can be obtained by
>objdump -R test
I will post more information about disassembling in a future post.
1. compile your file using gcc
> gcc test.c -o test
2. get the objdump
>objdump test -f -D --disassembler-options intel
This would print the assembly equivalent of the elf binary test .
The -f option displays summary information from the section headers of the object file. This displays the starting address from where the program would begin execution.
--disassembler-options intel prints the output assembly in intel format
See the man pages of objdump for a comprehensive explanation of the options.
The target of instructions like
jmp DWORD PTR ds:0x80496b0
can be obtained by
>objdump -R test
I will post more information about disassembling in a future post.
Subscribe to:
Posts (Atom)