{"action":"created","issue":{"url":"https://api.github.com/repos/riscv/riscv-isa-sim/issues/79","repository_url":"https://api.github.com/repos/riscv/riscv-isa-sim","labels_url":"https://api.github.com/repos/riscv/riscv-isa-sim/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/riscv/riscv-isa-sim/issues/79/comments","events_url":"https://api.github.com/repos/riscv/riscv-isa-sim/issues/79/events","html_url":"https://github.com/riscv/riscv-isa-sim/issues/79","id":195747323,"number":79,"title":"Debugging With Gdb not work","user":{"login":"colin4124","id":1255176,"avatar_url":"https://avatars.githubusercontent.com/u/1255176?v=3","gravatar_id":"","url":"https://api.github.com/users/colin4124","html_url":"https://github.com/colin4124","followers_url":"https://api.github.com/users/colin4124/followers","following_url":"https://api.github.com/users/colin4124/following{/other_user}","gists_url":"https://api.github.com/users/colin4124/gists{/gist_id}","starred_url":"https://api.github.com/users/colin4124/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colin4124/subscriptions","organizations_url":"https://api.github.com/users/colin4124/orgs","repos_url":"https://api.github.com/users/colin4124/repos","events_url":"https://api.github.com/users/colin4124/events{/privacy}","received_events_url":"https://api.github.com/users/colin4124/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-15T08:44:26Z","updated_at":"2016-12-19T08:25:55Z","closed_at":null,"body":"I use riscv tools version: 886d8131dbd23533fb04d2d76a80be21d5f9ee7a and riscv-isa-sim version: 53d74f4cc31ecf5bb6499b886d8fcbc992a17920\r\n\r\nFirst I compile `hello.c` with `-g` to `hello.rv`:\r\n```\r\n$ riscv64-unknown-elf-gcc -g hello.c -o hello.rv\r\n```\r\n\r\nThen I follow README https://github.com/riscv/riscv-isa-sim#debugging-with-gdb  in one shell run:\r\n```\r\n$ spike --gdb-port 9824 pk hello.rv\r\n```\r\nIt quickly prints \"hello, word!\"\r\n\r\nSo when I in a second shell I do that:\r\n```\r\n$riscv64-unknown-elf-gdb hello.rv\r\n(gdb) target remote localhost:9824\r\n```\r\nIt returns \"localhost:9824: Connection timed out.\"\r\n\r\nBy the way, can I use rocket-chip/emulator with riscv-gdb like the way spike do so?\r\n"},"comment":{"url":"https://api.github.com/repos/riscv/riscv-isa-sim/issues/comments/267907479","html_url":"https://github.com/riscv/riscv-isa-sim/issues/79#issuecomment-267907479","issue_url":"https://api.github.com/repos/riscv/riscv-isa-sim/issues/79","id":267907479,"user":{"login":"colin4124","id":1255176,"avatar_url":"https://avatars.githubusercontent.com/u/1255176?v=3","gravatar_id":"","url":"https://api.github.com/users/colin4124","html_url":"https://github.com/colin4124","followers_url":"https://api.github.com/users/colin4124/followers","following_url":"https://api.github.com/users/colin4124/following{/other_user}","gists_url":"https://api.github.com/users/colin4124/gists{/gist_id}","starred_url":"https://api.github.com/users/colin4124/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colin4124/subscriptions","organizations_url":"https://api.github.com/users/colin4124/orgs","repos_url":"https://api.github.com/users/colin4124/repos","events_url":"https://api.github.com/users/colin4124/events{/privacy}","received_events_url":"https://api.github.com/users/colin4124/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T08:25:55Z","updated_at":"2016-12-19T08:25:55Z","body":"@timsifive Thinks very much!\r\n\r\n [riscv-tests/debug](https://github.com/riscv/riscv-tests/tree/master/debug) demonstrates how to debug on these target (spike32/64, fe300 and fu500). I would take a look at it and learn how to debug.\r\n\r\nBy the way, there isn't C simulator target and VCS simulator target. Could I debug C simulator target (emulator-rocketchip-DefaultConfig) with openOCD( JTAG ) as target fe300/fu500 do so?"}}
{"actor":{"display_login":"colin4124"}}