Text / peter jiang (translated from newlc.com)
install the system
1
, Installed on your phone
GDBSudb.sis
. This file is
NOKIA SDK
Put in this default directory
C: /Symbian/6.1/series60/epoc32/Release/Armi/urel/
2
Turn off the phone, start
FEXPLORER
Or your file management program to create a name
C: / gdbstub
the catalog. Uploaded contains the following
GDBSTUD.INI
Document to our newly established directory.
[CommServ] PDD = EUART% D LDD = ECOMM CSY = IRCOMM Port = 0 rate = 115200
3
,in
PC
End creation
C: / yyy
And create one
C: /yyy/gdb.ini
Document, put the following
Ctrl V
Go in:
Symbian/6.1/series60/epoc32/release/Armi/udeb/xxx.sym epoc-exec-file c: /system/apps/xxxx/xxx.app target EPOC COM2 BREAK NewApplication Source // C /symbian/6.1/shared/epoc32/gcc/share/epoc-des.ini
4
, Replaced with appropriate content
xxx
with
YYY
. Put you
Irda
Port becomes
COM2.
You may need to install a computer
Irda
Mapping
COM
Software (for example
Ircomm2k
)
Compile
Abld Build Armi UDEB
If the connection fail is because it can't find the library (the first time is usually like this), just copy all the contents under EPOC32 / RELEASE / ARMI / UREL to EPOC32 / Release / Armi / UDEB is OK.
Package and install the app to your phone.
Start debugging
gdb.exe -nw
Start FEXPLORER and run the C: / System / Programs / GDBSTUB.EXE.IRDA (infrared) connection indicator will start flashing. Note that you don't need to do these things with Connection / Irda / Activate, because GDBSTUB will automatically open an infrared connection. Put your phone within the infrared range of the PC, then open the PC's DOS window. Go to C: / YYY and type the following command
The following information will appear:
GNU gdb 4.17-psion-98r2 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and / or distribute copies of it under certain conditions. Type "show copying "to see the conditions. There is absolutely no warranty for GDB. Type" show warranty "for details. This version of GDB has been modified by Symbian Ltd. to add EPOC support. Type" show epoc-version "to see the EPOC- Specific Version Number. this GDB WAS Configured AS "- Host = I686-PC-Cygwin32 - Target = ARM-EPOC-PE". Breakpoint 1 AT 0X (Some AdRess): Filenewapplication> (GDB) * Prompt *
Click "RUN" and will appear:
Starting program: warning: Application started but no document specified The application may panic at some point if it is document based and if there is no existing default document Breakpoint 1 0x (some adress):.. File
NewApplication>
Breakpoint 1, NewApplication ()
AT file
Current Language:
AUTO; Currently C
If your GDB displays "Starting Program", but there is no other thing in the next, then you have failed. I sometimes encounter such problems, can only solve the phone (and PC). If so Still solving, maybe your IRDA infrared device has a problem.
Use Bluetooth to perform device debugging
Text / peter jiang (translated from newlc.com)
1
,
installation
GDBSTUD.SIS
Go to the phone. This file is
NOKIA SDK
The default path in:
C: /Symbian/7.0s/series60_v20/epoc32/Release/Armi/urel/.
2
,
create
GDBSTUB.INI
You should create a C: / GDBSTUB on the target. And use Notepad to create a gdbstub.ini file in this directory, and the file is included in the file:
Standard Bluetooth [CommServ] [CommServ] PDD = EUART% D PDD = EUART1 LDD = ECOMM LDD = ECOMM CSY = IRCOMM CSY = BTCOMM Port = 0 port = 0 rate = 115200 rat = 9600
3
,
create
gdb.ini
Create a directory C: / BBB on your PC and put the gdb.ini file in. The following is the content of gdb.ini.
Symbian/7.0s/series60_v20/epoc32/Release/Armi/udeb/aaa.sym EPOC-EXEC-File C: /system/apps/aaa/aaa.app target EPOC COM3 BREAK NewApplication Source //// C / Symbian / 7.0s / shared / ePoc32 / gcc / share / epoc-des.ini Note: Use your programs to replace AAA and BBB
Check the port number of the third line and replace it with the appropriate port number
The COM port number can only be between 1 and 4
4
,
Compile
Applications should use ARMI UDEB to debug:
Abld Build Armi UDEB
If you are prompted or warned, copy the contents of EPOC32 / Release / ARMI / Urel to the EPOC32 / Release / ARMI / UDEB.
5
,
Update
PKG
file
Turning now to your application xxx.pkg file and changing all paths to get compiled code from the ARMI / UDEB directory.
6
,
Start debugging
1
Install on your phone
FEXPLORER
Software (the magazine additional kit is provided).
2
by
FEXPLORER
Software enters
C: /system/programs/gdbstub.exe
3
Check
C: / system / libs /
Below
GDBSEAL.DLL
with
GDBSENG.DLL
file
4
Start on your phone
GDBSTUB.EXE
.
5
in
PC
of
DOS
Prompt state entry
C: / bbb
Directory and run the following command
gdb.exe -nw
The following information will appear
GNU gdb 4.17-psion-98r2 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and / or Breakpoint 1 at 0x (some adress): file
NewApplication> GDB>
Then in the GDB prompt, type RUN, the following information will occur
Starting program: warning: Application started but no document specified The application may panic at some point if it is document based and if there is no existing default document Breakpoint 1 0x (some adress):.. File
NewApplication> BreakPoint 1, NewApplication () AT file
Current Language: AUTO; Currently C
system requirement
I hardware
1
,
PC
2
,
Bluetooth
/
Infrared adapter
3
,
Symbian
Mobile phone
II software
PC
1
,
Symbian SDK
2
,
VC 6.0
3
,
Bluetooth drive
4
,
Gdb.ini
Symbian mobile phone
1
,
GDBSTUB.SIS
2
,
GDBSTUD.INI
3
,
FEXPLORER.SIS