Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to do debug breakpoint #85

Open
fatalfeel opened this issue Nov 30, 2021 · 8 comments
Open

how to do debug breakpoint #85

fatalfeel opened this issue Nov 30, 2021 · 8 comments

Comments

@fatalfeel
Copy link

as title i want to break at a line and see the variable value

@fatalfeel
Copy link
Author

fatalfeel commented Nov 30, 2021

done.

https://www.mediafire.com/view/vi5fojxvh99vdxi/awtk_demo.png

  1. gdb debug [option]
    gedit ./awtk_config.py
    OS_FLAGS='-Wall -Os -fno-strict-aliasing '
    ~change to
    OS_FLAGS='-Wall -fno-strict-aliasing '

gedit ./SConstruct
env = DefaultEnvironment(
ENV = os.environ,
CCFLAGS = awtk.CCFLAGS + APP_CCFLAGS + ' -O0 -g', #########add this by stone#########
CFLAGS = awtk.CFLAGS + ' -O0 -g', #########add this by stone#########
CC=awtk.CC,
CXX=awtk.CXX,
LD=awtk.LD,
AR=awtk.AR,
RANLIB=awtk.RANLIB,
STRIP=awtk.STRIP,
LIBS = awtk.LIBS,
LIBPATH = awtk.LIBPATH,
CPPPATH = awtk.CPPPATH + [awtk.joinPath(awtk.TK_ROOT, 'res')],
LINKFLAGS = awtk.LINKFLAGS,
OS_SUBSYSTEM_CONSOLE=awtk.OS_SUBSYSTEM_CONSOLE,
OS_SUBSYSTEM_WINDOWS=awtk.OS_SUBSYSTEM_WINDOWS
)

in target
root@NVTEVM:
/release/bin$ arm-ca9-linux-gnueabihf-gdbserver :5039 ./demoui

~in x86 pc
(gdb) target remote 192.168.0.4:5039

@fatalfeel
Copy link
Author

if in eclipse u need gdb command before debug

set solib-absolute-prefix /root/nt9832x/na51068_sdk_nand/gui/awtk-linux-fb

set solib-search-path /opt/ivot/arm-ca9-linux-gnueabihf-6.5/arm-ca9-linux-gnueabihf/sysroot/lib:/opt/ivot/arm-ca9-linux-gnueabihf-6.5/arm-ca9-linux-gnueabihf/sysroot/usr/lib:/root/nt9832x/na51068_sdk_nand/gui/awtk-linux-fb/lib:/root/nt9832x/na51068_sdk_nand/gui/awtk-linux-fb/bin

@xianjimli
Copy link
Member

好的,谢谢。

@fatalfeel
Copy link
Author

for u debug my man~using eclipse Luna SR2 and openjdk 8
http://fatalfeel.blogspot.com/2013/12/awtk-framebuffer-gui.html

@fatalfeel
Copy link
Author

very good~~~
https://www.zlg.cn/index/pub/awtk.html

@xianjimli
Copy link
Member

谢谢支持

@fatalfeel
Copy link
Author

most arm target support tftp upload this is a sample may be you can use it~
https://fatalfeel.blogspot.com/2013/12/build-tftp-upload-to-ipmi-board.html

@zlgopen zlgopen deleted a comment from fatalfeel Dec 3, 2021
@xianjimli
Copy link
Member

好的,谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants