Heinz Junkes commented: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/494#note_123156


Hello Jacob, thank you for your quick reply.
I run the whole thing in qemu. I blob the FDT from this version 1.20200601:
```
git clone -b '1.20200601' --single-branch --depth 1 
https://github.com/raspberrypi/firmware.git
```
I can find the symbol in my exe file:
```
junkes@Mac BHT_VE % grep arm_pl011_read_polled 
examples/./build/arm-rtems7-raspberrypi2/posix_api/hpj_example/hpj_example.exe
Binary file 
examples/./build/arm-rtems7-raspberrypi2/posix_api/hpj_example/hpj_example.exe 
matches
```
Das exe file mache ich zum img file um den qemu damit zu laden:
```
./rtems/7/bin/arm-rtems7-objcopy -O binary 
examples/build/arm-rtems7-raspberrypi2/posix_api/hpj_example/hpj_example.exe 
hpj_example.img
```
and start the qemu:
```
qemu-system-arm -M raspi2b -m 1G -kernel hpj_example.img -serial mon:stdio 
-nographic -no-reboot -dtb bcm2709-rpi-2-b.dtb -S -s
```
Und dann starte ich den debugger mit:
```
./rtems/7/bin/arm-rtems7-gdb 
examples/./build/arm-rtems7-raspberrypi2/posix_api/hpj_example/hpj_example.exe
GNU gdb (GDB) 16.2
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=arm64-apple-darwin24.4.0 
--target=arm-rtems7".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from 
examples/./build/arm-rtems7-raspberrypi2/posix_api/hpj_example/hpj_example.exe...
0x00000000 in ?? ()
Loading section .start, size 0x5d8 lma 0x200000
Loading section .text, size 0x26820 lma 0x200600
Loading section .init, size 0xc lma 0x226e20
Loading section .fini, size 0xc lma 0x226e2c
Loading section .rodata, size 0x4679c lma 0x226e38
Loading section .ARM.extab, size 0x18 lma 0x26d5d4
Loading section .ARM.exidx, size 0xc0 lma 0x26d5ec
Loading section .eh_frame, size 0x4 lma 0x26d6ac
Loading section .tdata, size 0xc lma 0x26d6b0
Loading section .init_array, size 0x4 lma 0x26d6c0
Loading section .fini_array, size 0x4 lma 0x26d6c4
Loading section .rtemsroset, size 0x8c lma 0x26d6c8
Loading section .data, size 0x2018 lma 0x300000
Start address 0x00200080, load size 456512
Transfer rate: 8 KB/sec, 1934 bytes/write.
Restoring binary file bcm2710-rpi-2-b.dtb into memory (0x2ef00000 to 0x2ef063e3)
RTEMS GDB Support
(gdb)
```
But I don't understand why I can't set a breakpoint on 'arm_pl011_read_polled' 
now?

```
(gdb) b arm_pl011_read_polled
Function "arm_pl011_read_polled" not defined.
Make breakpoint pending on future shared library load? (y or [n]) n
```
What are you doing wrong? Do you have any ideas? Danke Heinz

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/494#note_123156
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to