go/src
David Chase eda22a06fb cmd/compile: ensure first instruction of function is stmt
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: Cherry Zhang <cherryyz@google.com>
2018-04-06 16:05:42 +00:00
..
archive go/printer, gofmt: tuned table alignment for better results 2018-04-04 13:39:34 -07:00
bufio bufio: document ReadFrom/WriteTo calls to underlying methods 2018-03-28 22:21:52 +00:00
builtin
bytes
cmd cmd/compile: ensure first instruction of function is stmt 2018-04-06 16:05:42 +00:00
compress compress/gzip: do not count header bytes written in Write 2018-04-02 20:18:14 +00:00
container
context
crypto go/printer, gofmt: tuned table alignment for better results 2018-04-04 13:39:34 -07:00
database/sql database/sql: check to see if ctx is cancelable before await 2018-03-27 18:40:46 +00:00
debug
encoding go/printer, gofmt: tuned table alignment for better results 2018-04-04 13:39:34 -07:00
errors
expvar all: use strings.Builder instead of bytes.Buffer where appropriate 2018-03-26 23:05:53 +00:00
flag flag: correct zero values when printing defaults 2018-04-01 20:17:22 +00:00
fmt fmt: document the behaviour of %p on slices 2018-03-30 00:19:36 +00:00
go go/printer, gofmt: tuned table alignment for better results 2018-04-04 13:39:34 -07:00
hash
html go/printer, gofmt: tuned table alignment for better results 2018-04-04 13:39:34 -07:00
image
index/suffixarray
internal os/user: obtain a user GID on Windows 2018-04-04 09:28:39 +00:00
io io: document that ReadAtLeast and ReadFull can drop errors 2018-03-26 17:38:36 +00:00
log
math math/big: clean up z.div(z, x, y) calls 2018-04-05 22:02:33 +00:00
mime all: use strings.Builder instead of bytes.Buffer where appropriate 2018-03-26 23:05:53 +00:00
net net: use same sendFile for freebsd/dragonfly and solaris 2018-04-06 14:48:05 +00:00
os os/user: obtain a user GID on Windows 2018-04-04 09:28:39 +00:00
path path/filepath: change example to print the correct path on failure 2018-03-26 17:40:01 +00:00
plugin
reflect
regexp regexp: use sync.Pool to cache regexp.machine objects 2018-04-03 16:03:19 +00:00
runtime runtime: avoid calling adjustpointers unnecessarily 2018-04-05 21:43:23 +00:00
sort
strconv
strings strings: fix flaky TestBuilderGrow test 2018-04-03 00:11:46 +00:00
sync cmd/internal/obj/arm: add DMB instruction 2018-03-27 19:54:44 +00:00
syscall syscall: remove double Unlock from Dup2 on nacl 2018-03-30 21:37:21 +00:00
testing testing: fix testing flags link 2018-03-30 23:34:47 +00:00
text text/tabwriter: remove internal use of bytes.Buffer (cleanup) 2018-04-04 23:51:48 +00:00
time go/printer, gofmt: tuned table alignment for better results 2018-04-04 13:39:34 -07:00
unicode
unsafe
vendor/golang_org/x
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash src/run.bash: remove some trailing whitespace 2018-04-01 16:12:47 +00:00
run.bat
run.rc