This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug corefiles/11511] New: gcore doesn't work with orig_rax on Linux/amd64


(gdb) b main
Breakpoint 1 at 0x4005d2: file gcore.c, line 68.
(gdb) r
Starting program: /export/home/hjl/bugs/gdb/core/64 

Breakpoint 1, main () at gcore.c:68
68	  factorial_func (6);
(gdb) info reg system
orig_rax       0xffffffffffffffff	-1
(gdb) gcore
Saved corefile core.26537
(gdb) 

[hjl@gnu-6 core]$ ./gdb 64 core.26537 
GNU gdb (GDB) 7.1.50.20100417-cvs
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 "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /export/home/hjl/bugs/gdb/core/64...done.
[New Thread 26537]

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `/export/home/hjl/bugs/gdb/core/64'.
Program terminated with signal 5, Trace/breakpoint trap.
#0  main () at gcore.c:68
68	  factorial_func (6);
Setting up the environment for debugging gdb.
Function "internal_error" not defined.
Make breakpoint pending on future shared library load? (y or [n]) [answered N;
input not from terminal]
Function "info_command" not defined.
Make breakpoint pending on future shared library load? (y or [n]) [answered N;
input not from terminal]
.gdbinit:8: Error in sourced command file:
Argument required (one or more breakpoint numbers).
(gdb) info reg system
orig_rax       0x0	0
(gdb)

-- 
           Summary: gcore doesn't work with orig_rax on Linux/amd64
           Product: gdb
           Version: 7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: corefiles
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: hjl dot tools at gmail dot com
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=11511

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]