@@ -202,56 +202,46 @@ Debugging With UFM Flashed Image
202
202
You can debug an application in the usual way. Here is an example.
203
203
204
204
.. zephyr-app-commands ::
205
- :zephyr-app: tests/crypto/test_sha256
205
+ :zephyr-app: samples/hello_world
206
206
:board: altera_max10
207
207
:goals: debug
208
208
209
209
You will see output similar to the following:
210
210
211
211
.. code-block :: console
212
212
213
- Nios II GDB server running on port 14777
213
+ Nios II GDB server running on port 3335
214
214
Ignoring --stop option because --tcpport also specified
215
- Python Exception <type 'exceptions.ImportError'> No module named gdb:
216
- /opt/zephyr-sdk/sysroots/i686-pokysdk-linux/usr/bin/nios2-poky-elf/nios2-poky-elf-gdb: warning:
217
- Could not load the Python gdb module from `/opt/zephyr-sdk/2.0.1/sysroots/i686-pokysdk-linux/usr/share/gdb/python'.
218
- Limited Python support is available from the _gdb module.
219
- Suggest passing --data-directory=/path/to/gdb/data-directory.
220
-
221
- GNU gdb (GDB) 7.9.1
222
- Copyright (C) 2015 Free Software Foundation, Inc.
215
+ GNU gdb (GDB) 7.11.0.20160511-git
216
+ Copyright (C) 2016 Free Software Foundation, Inc.
223
217
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
224
218
This is free software: you are free to change and redistribute it.
225
219
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
226
220
and "show warranty" for details.
227
- This GDB was configured as "--host=i686 -pokysdk-linux --target=nios2-poky -elf".
221
+ This GDB was configured as "--host=x86_64 -pokysdk-linux --target=nios2-zephyr -elf".
228
222
Type "show configuration" for configuration details.
229
223
For bug reporting instructions, please see:
230
224
<http://www.gnu.org/software/gdb/bugs/>.
231
225
Find the GDB manual and other documentation resources online at:
232
226
<http://www.gnu.org/software/gdb/documentation/>.
233
227
For help, type "help".
234
228
Type "apropos word" to search for commands related to "word"...
235
- Reading symbols from /projects/zephyr2/tests/crypto/test_sha256/outdir /zephyr.elf...done.
236
- Remote debugging using :14777
237
- Using cable "USB-BlasterII [1 -1.6.1 ]", device 1, instance 0x00
229
+ Reading symbols from /projects/zephyr/samples/hello_world/build/zephyr /zephyr.elf...done.
230
+ Remote debugging using :3335
231
+ Using cable "USB-BlasterII [3 -1.3 ]", device 1, instance 0x00
238
232
Resetting and pausing target processor: OK
239
- Listening on port 14777 for connection from GDB: accepted
240
- vprintf (format=<optimized out>, vargs=<optimized out>)
241
- at /projects/zephyr2/lib/libc/minimal/source/stdout/fprintf.c:61
242
- 61 {
243
- (gdb) b nano_init
244
- Breakpoint 1 at 0x1de8: file /projects/zephyr2/kernel/nanokernel/nano_init.c, line 207.
233
+ Listening on port 3335 for connection from GDB: accepted
234
+ isr_tables_syms () at /projects/zephyr/arch/common/isr_tables.c:63
235
+ 63 GEN_ABSOLUTE_SYM(__ISR_LIST_SIZEOF, sizeof(struct _isr_list));
236
+ (gdb) b _PrepC
237
+ Breakpoint 1 at 0xdf0: file /projects/zephyr/arch/nios2/core/prep_c.c, line 36.
238
+ (gdb) b _Cstart
239
+ Breakpoint 2 at 0x1254: file /projects/zephyr/kernel/init.c, line 348.
245
240
(gdb) c
246
241
Continuing.
247
242
248
- Breakpoint 1, _Cstart () at /projects/zephyr2/kernel/nanokernel/nano_init.c:323
249
- 323 nano_init((struct tcs *)&dummyTCS);
250
- (gdb) bt
251
- Python Exception <type 'exceptions.ImportError'> No module named gdb.frames:
252
- #0 _Cstart () at /projects/zephyr2/kernel/nanokernel/nano_init.c:323
253
- #1 0x00003ca4 in _PrepC () at /projects/zephyr2/arch/nios2/core/prep_c.c:61
254
- #2 0x00003ccc in __start () at /projects/zephyr2/arch/nios2/core/crt0.S:155
243
+ Breakpoint 2, _Cstart () at /projects/zephyr/kernel/init.c:348
244
+ 348 {
255
245
(gdb)
256
246
257
247
To start debugging manually:
0 commit comments