Giter Club home page Giter Club logo

Comments (5)

sorear avatar sorear commented on July 25, 2024 1

Thanks! I'm actually not sure right now how to compile gdb myself — when I get that working I'll get back to you.

from riscv-binutils-gdb.

aswaterman avatar aswaterman commented on July 25, 2024

When you get a chance, can you confirm that 9a8cb24 fixes gdb?

from riscv-binutils-gdb.

sorear avatar sorear commented on July 25, 2024

@aswaterman This is half fixed in 1cc4048 (it looks like there was a big rebase earlier and I can't easily tell what has been changed since that commit). Specifically, set arch riscv:rv64 now works, but gdb still isn't automatically picking up the bitness from the ELF file. (I ran gdb against a ld.so file, then did disas _start)

EDIT: this test was done on gdb as built by riscv-collab/riscv-gnu-toolchain@f670e2f5

from riscv-binutils-gdb.

aswaterman avatar aswaterman commented on July 25, 2024

Thanks for the update. I don't have the time to look into the ELF class detection issue; ideally one of the people working on GDB could do so.

from riscv-binutils-gdb.

jim-wilson avatar jim-wilson commented on July 25, 2024

This has had no comment for almost a year. I am unable to reproduce the gdb problem using a toolchain built today.

Bisecting on the riscv-gnu-toolchain project narrowed the fix down between these two commits
commit 5dac17852d746f6ea26736a7cdbd073b201ce08f
Author: Palmer Dabbelt [email protected]
Date: Wed May 3 23:56:31 2017 -0700
and
commit 19ddd4d6f42bddaa29a76f926fea9ee5be177766
Merge: ef9bf99 43a55a8
Author: Palmer Dabbelt [email protected]
Date: Wed May 3 22:36:55 2017 -0700

Then looking at riscv-binutils-gdb git log the fix was obvious.
commit d6f218e
Author: Kuan-Lin Chen [email protected]
Date: Tue Jan 17 09:46:28 2017 +0800

RISC-V/bfd: Hook elf_backend_object_p to set the mach type.

I did builds before and after to verify that this commit fixes it. So closing.

from riscv-binutils-gdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.