question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug in registers viewer

See original GitHub issue

Hello everybody!

I believe have found a bug in the registers viewer.

Steps to reproduce:

  1. A simple Boot Sector program:
[org 0x7c00]
[bits 16]

%define NULL 0x00

%define NEWLINE 0x0a
%define RETURN 0x0d

%define BIOS_VIDEO 0x10
%define BIOS_VIDEO_TTY 0x0e

sub_start:
  mov si, cstr_hello_world
  call sub_pcstr

sub_end:
  jmp $; To Infinity and Beyond!

sub_pcstr: ; print cstring subroutine
  mov ah, BIOS_VIDEO_TTY
  pcstr_1:
    lodsb
    or al, NULL
    jnz pcstr_2
    ret
  pcstr_2:
    int BIOS_VIDEO
    jmp pcstr_1

cstr_hello_world: db "hello world!",NEWLINE,RETURN,NULL

times 510-($-$$) db 0x00 ; padding
dw 0xaa55 ; magic

compilation

  1. Emulating
$ qemu-system-i386 hello-world.bin -S -s
  1. Debugging

no_registers_remote_debug_8086_bare_metal

As you can see, no registers are not displayed here, but…

registers_remote_debug_8086_bare_metal

OBS.: My program seems to work fine 😬

this_works

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
cyrus-andcommented, Jan 12, 2020

For some reason your output of info registers is more similar to the output of my info all-registers, this is weird and I’m not sure why is that, I’m going to try with GDB version 8.3 soon but I doubt that’s the reason… In the mean time you can fix this with:

dashboard registers -style list 'eax ecx edx ebx esp ebp esi edi eip eflags cs ss ds es fs gs'
0reactions
cyrus-andcommented, Jan 15, 2020

So I’m closing this, feel free to post here the link to the upstream issue (in case you decide to file it) or anything else you may want to add.

Read more comments on GitHub >

github_iconTop Results From Across the Web

308052 – Registers view's content disappear when ... - Bugs
The content of the Registers view disappear when stepping out of a function.
Read more >
File a bug against the document viewer
To file a bug, go to https://gitlab.gnome.org/GNOME/evince/issues/. This is a bug tracking system where users and developers can file details about bugs, ...
Read more >
Possible Bug Peripheral registers STM32F303VC - Keil forum ...
Hello, When debugging, selecting Peripherals -> System Viewer -> ADC -> ADC1, ADVREGEN is [29:28] bits, see Reference Manual RM0316 but in Keil...
Read more >
Bug Check Code Reference - Windows drivers - Microsoft Learn
This section contains descriptions of the common bug checks, including the parameters passed to the blue screen.
Read more >
Reading bug reports | Android Open Source Project
Low memory can cause the system to thrash as it kills some processes to free memory but continues to start other processes. To...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found