diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-06-05 06:55:18 +0000 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-06-05 06:55:18 +0000 |
| commit | 993a7c1ea28968a4479a87ad6c2637a7045d2d51 (patch) | |
| tree | 024d7266fc695c4f93ab6ce0fcd52326f3ac379d /results/classifier/108/other/1488 | |
| parent | 2773b5e236e2217a35a53dbc298757610c7bbbc6 (diff) | |
| download | qemu-analysis-993a7c1ea28968a4479a87ad6c2637a7045d2d51.tar.gz qemu-analysis-993a7c1ea28968a4479a87ad6c2637a7045d2d51.zip | |
add new classifier result
Diffstat (limited to 'results/classifier/108/other/1488')
| -rw-r--r-- | results/classifier/108/other/1488 | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/results/classifier/108/other/1488 b/results/classifier/108/other/1488 new file mode 100644 index 000000000..b25393c57 --- /dev/null +++ b/results/classifier/108/other/1488 @@ -0,0 +1,50 @@ +graphic: 0.783 +device: 0.724 +PID: 0.656 +semantic: 0.654 +debug: 0.615 +performance: 0.592 +socket: 0.564 +permissions: 0.402 +vnc: 0.330 +network: 0.287 +files: 0.259 +boot: 0.152 +other: 0.122 +KVM: 0.068 + +Memory not accessible from GDB when using mps3-an547 +Description of problem: +Memory (including variables) is not accessible when connecting to the emulated machine via GDB +Steps to reproduce: +1. Create minimal program `main.c`: + ```c + int main(void) { + int myvar = 42; + for(;;) + } + ``` +2. Compile + ```bash + arm-none-eabi-gcc -c -o build/main.o -c -mcpu=cortex-m55 -mfloat-abi=hard -mthumb -funsigned-char -mlittle-endian -O0 -g -std=c11 main.c + ``` + (ARM startup files and include directories omitted for brevity) +3. Link + ```bash + arm-none-eabi-g++ -o build/test.elf build/main.o -mcpu=cortex-m55 -mfloat-abi=hard -mthumb -funsigned-char -mlittle-endian --entry=Reset_Handler -static -T./platform.ld -O0 -g + ``` + (ARM startup files omitted for brevity) +4. Run binary in QEMU: + ```bash + qemu-system-arm --machine mps3-an547 -serial mon:stdio -kernel test.elf -gdb tcp::1234 -S + ``` +5. Attach using GDB `arm-none-eabi-gdb build/test.elf` and set break point to infinite loop + ```gdb + target remote :1234 + break main.c:18 + continue + print myvar + ``` + +Expected Output: 42 +Actual Output: `Cannot access memory at address 0x11fffe4` |