• David Chase's avatar
    cmd/compile: ensure first instruction of function is stmt · eda22a06
    David Chase authored
    In gdb, "b f" gets confused if the first instruction of "f"
    is not marked as a statement in the DWARF line table.
    
    To ensure gdb is not confused, move the first statement
    marker in "f" to its first instruction.
    
    The screwy-looking conditional for "what's the first
    instruction with a statement marker" will become simpler in
    the future.
    
    Fixes #24695.
    
    Change-Id: I2eef81676b64d1bd9bff5da03b89b9dc0c18f44f
    Reviewed-on: https://go-review.googlesource.com/104955
    Run-TryBot: David Chase <drchase@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarCherry Zhang <cherryyz@google.com>
    eda22a06
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...