Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc/gdb: gdb "l" command displays wrong source file/line #7642

Open
alexbrainman opened this issue Mar 26, 2014 · 3 comments
Open

misc/gdb: gdb "l" command displays wrong source file/line #7642

alexbrainman opened this issue Mar 26, 2014 · 3 comments
Milestone

Comments

@alexbrainman
Copy link
Member

@alexbrainman alexbrainman commented Mar 26, 2014

I'm no windows/386 tip.

C:\go\path\mine\src\a>type main.go
package main

import "fmt"

func main() {
        fmt.Println("Hello")
}
C:\go\path\mine\src\a>go build main.go

C:\go\path\mine\src\a>gdb main.exe
GNU gdb (GDB) 7.2
Copyright (C) 2010 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 "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>;...
Reading symbols from C:\go\path\mine\src\a/main.exe...done.
(gdb) br 'runtime.stdcall'
Breakpoint 1 at 0x40c730
(gdb) r
Starting program: C:\go\path\mine\src\a/main.exe
[New Thread 5524.0x81c]

Breakpoint 1, 0x0040c730 in runtime.stdcall ()
    at C:/go/root/src/pkg/runtime/compiler.go:1
1       // Copyright 2012 The Go Authors.  All rights reserved.
(gdb) l
1       // Copyright 2012 The Go Authors.  All rights reserved.
2       // Use of this source code is governed by a BSD-style
3       // license that can be found in the LICENSE file.
4
5       package runtime
6
7       // Compiler is the name of the compiler toolchain that built the
8       // running binary.  Known toolchains are:
9       //
10      //      gc      The 5g/6g/8g compiler suite at code.google.com/p/go.
(gdb)
@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Mar 26, 2014

Comment 1:

Labels changed: added repo-main, release-go1.3.

@rsc
Copy link
Contributor

@rsc rsc commented Apr 3, 2014

Comment 2:

Status changed to Accepted.

@robpike
Copy link
Contributor

@robpike robpike commented May 19, 2014

Comment 3:

Labels changed: added release-none, removed release-go1.3.

@rsc rsc added this to the Unplanned milestone Apr 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants