Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

difference between nios2-debug & debug from IDE

Hi.

Is there anybody who knows a difference between nios2-debug and

debugging from IDE?

I'd like to open debugger by nios2-debug style (correctly saying, gdb on emacs).

I can debug from eclipse but it stopped when "jump _start" from gdb.

Do you have any idea?

Regards.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I've found an answer by myself.

    nios2-debug loads binary image through nios2-gdb-server, but

    debugger on IDE loads image by nios2-download.

    It failed when I invoked nios2-elf-gdb from Emacs

    because I wrote .gdbinit by copying from nios2-debug like below:

    file test.elf

    target remote localhost:2342

    load test.elf

    break main

    jump _start

    When I load by nios2-download (without -g option) and I remove "load test.elf" from .gdbinit, it succeeded to debug from nios2-elf-gdb on Emacs.

    Thanks.