Remote debugging of programs on the ARM board using GDB

Source: Internet
Author: User
Tags port number linux

Running Gdbserver on the arm board

[Root@51board usb]#./gdbserver 192.168.0.29:1234 Arm0702_8.out

Process Arm0702_8.out created; PID = 228

Wait for a request from the server

This is the debugging of the QTE program, first run the program and then debug the process number. The program name is the same on the PC computer.

./gdbserver 192.168.0.29:1234--attach 545

Description

Here the 192.168.0.29 is the IP of the PC (this should be on the ARM board IP in a network segment)

1234 The port number specified here, wait for the use of, of course, this can also use the other port number

Arm0702_8.out

Running ARM-LINUX-GDB Debug program for PC computer

[Root@zieckey collierymainsrc02]# arm-linux-gdb Arm0702_8.out

GNU GDB 5.3

Copyright 2002 Free Software Foundation, Inc.

The GDB is free software, covered by the GNU general public License, and your are

Welcome to change it and/or distribute copies of it under certain conditions.

Type ' show copying ' to the conditions.

There is absolutely no warranty for GDB. Type ' show warranty ' for details.

This is GDB was configured as "--host=i686-pc-linux-gnu--target=arm-linux" ...

(GDB)

Upper PC connected to arm board

[Root@zieckey collierymainsrc02]# arm-linux-gdb Arm0702_8.out

GNU GDB 5.3

Copyright 2002 Free Software Foundation, Inc.

The GDB is free software, covered by the GNU general public License, and your are

Welcome to change it and/or distribute copies of it under certain conditions.

Type ' show copying ' to the conditions.

There is absolutely no warranty for GDB. Type ' show warranty ' for details.

This is GDB was configured as "--host=i686-pc-linux-gnu--target=arm-linux" ...

(GDB) Target remote 192.168.0.50:1234

Remote Debugging using 192.168.0.50:1234

0x40001550 in?? ()

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.