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 tui/11392] New: Calling |layout next| before running the program under test causes error: Assertion gdbarch != NULL failed


STR:
* Create a simple program
    $ cat main.c
      int main() {
        return 42;
      }

    $ gcc -g main.c
    $ ./a.out; echo $?
    42

* Open the program in gdb:
    $ gdb a.out

* Enable TUI:
    (gdb) layout next

Expected results:
TUI starts.

Actual results:
gdb displays an error:
  /build/buildd/gdb-7.0/gdb/gdbarch.c:1428: internal-error: gdbarch_addr_bit:
    Assertion `gdbarch != NULL' failed.
  A problem internal to GDB has been detected,
  further debugging may prove unreliable.
  Quit this debugging session? (y or n)

-- 
           Summary: Calling |layout next| before running the program under
                    test causes error: Assertion gdbarch != NULL failed
           Product: gdb
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tui
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: justin dot lebar+gdb at gmail dot com
                CC: gdb-prs at sourceware dot org


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

------- 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]