Using RVDS Debugger v3.1

0. Execute [RealView Debugger]

1. Connect target
[Target] -> [Connect to Target]
Select the the Arm architecture you are using.

2. Open executable file
[Target] -> [Load Image]
Select '*.axf'

3. Set break point (2 ways)
i) [View] -> [Symbols]
Find the symbol to set break-point and set break-point to it
ii) In the command window:
break jpgd_idct or
binstr S:0x00011B14

4. Run (F5)

-- Other Tips --
1. On RVCT 3.1 version, setting 'd' register by setreg command, like
setreg @d0=0x0000000000000034
makes wrong result.

2. command etc.
> reset
> load/r 'W:\SVN\jpg\app\jpgd_test.axf'
> break jpgd_idct
> go

by 참머루 | 2009/11/01 13:30 | IT | 트랙백 | 덧글(0)

How to use 'fromelf'

$ fromelf -c file.o
This command is similar to objdump

--
ARM FromELF, RVCT3.1 [Build 640]

ARM Executable ELF file translator
fromelf [options] input_file

Options:
       --help         display this help screen
       --vsn          display version information
       --output file  the output file. (defaults to stdout for -text format)
       --nodebug      do not put debug areas in the output image
       --nolinkview   do not put sections in the output image

Binary Output Formats:
       --bin          Plain Binary
       --m32          Motorola 32 bit Hex
       --i32          Intel 32 bit Hex
       --vhx          Byte Oriented Hex format

       --base addr    Optionally set base address for m32,i32

Output Formats Requiring Debug Information
       --fieldoffsets Assembly Language Description of Structures/Classes
       --expandarrays Arrays inside and outside structures are expanded

Other Output Formats:
       --elf         ELF
       --text        Text Information

                Flags for Text Information
                -v          verbose
                -a          print data addresses (For images built with debug)
                -c          disassemble code
                -d          print contents of data section
                -e          print exception tables
                -g          print debug tables
                -r          print relocation information
                -s          print symbol table
                -t          print string table
                -y          print dynamic segment contents
                -z          print code and data size information

by 참머루 | 2009/10/23 18:54 | 트랙백 | 덧글(0)

GCC Documents

From: http://gcc.gnu.org/onlinedocs/gcc/

This file documents the use of the GNU compilers.
Copyright © 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with the Invariant Sections being “Funding Free Software”, the Front-Cover Texts being (a) (see below), and with the Back-Cover Texts being (b) (see below). A copy of the license is included in the section entitled “GNU Free Documentation License”.

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU software. Copies published by the Free Software Foundation raise funds for GNU development.

Table of Contents

Next: , Up: (DIR)


Introduction

This manual documents how to use the GNU compilers, as well as their features and incompatibilities, and how to report bugs. It corresponds to the compilers (GCC) version 4.5.0. The internals of the GNU compilers, including how to port them to new targets and some information about how to write front ends for new languages, are documented in a separate manual. See Introduction.

by 참머루 | 2009/10/22 16:35 | IT | 트랙백 | 덧글(0)

Ubuntu 8.10 Setting

+ Disable 'Enable support to enter complex characters' Option
System -> 관리 -> 언어 -> Input method
I don't know the exact reason, but we can't use keyboard in VirtualBox with this option. And I like the system font shown when this option was disabled.

by 참머루 | 2009/10/20 09:00 | IT | 트랙백 | 덧글(0)

Luke 21:34

Be careful, or your hearts will be weighed down with dissipation, drunkenness and the anxieties of life, and that day will close on you unexpectedly like a trap.

by 참머루 | 2009/10/17 23:37 | 일기 | 트랙백 | 덧글(0)

How to present with powerpoint (Let's write here one by one)

1. Need to prepare what you will say at first in each slide.

by 참머루 | 2009/10/17 21:54 | 학업 | 트랙백 | 덧글(0)

<< 이전 페이지다음 페이지 >>