shivm28[m] | Here, GDBserver asks for the specific core register list: http://repo.or.cz/openocd.git/blob/HEAD:/src/server/gdb_server.c#l1194 | 12:45 |
---|---|---|
shivm28[m] | I have followed a similar approach but without providing any register map: https://github.com/shivmgg/osd-sw/blob/86cef0fd98be352f7f34443b54ada3fd23c6432c/src/libosd/gdbserver.c#L391 | 12:48 |
shorne | shivm28[m]: yeah, I think you just need to undertsand the server working on the gdbserver to target interface | 18:01 |
---|
shivm28[m] | I went through the gdbserver in both qemu and openocd. IN QEMU, connection between gdb and gdbserver are implemented as: https://git.qemu.org/?p=qemu.git;a=blob;f=gdbstub.c#l1823 | 13:53 |
---|---|---|
shivm28[m] | 2. Regarding connections, gdbserver should first connect with GDB followed by the host controller in OSD or vice-versa. | 15:08 |
shivm28[m] | 3. For gdbserver implementation, I am trying to cover all the API to connect it with GDB, followed by read/write registers and memory and then complete RSP implementation. | 15:16 |
shivm28[m] | shorne: Hi, I tried using qemu from distro. But, I have qemu-system-or32 instead of qemu-system-or1k. So, couldn't follow the instructions. Finally, I went up building qemu from source following a bunch of links and resources. I was able to connect qemu gdbserver with gdb and also tried some commands. | 15:16 |
---|---|---|
shivm28[m] | Also, went through the implementation of gdbserver in qemu. | 15:23 |
shorne | I hope that gives you an idea of how the gdb->gdbserver connection is done | 19:48 |
shivm28[m] | shorne: Hi, I went through the implementation of gdbserver in openOCD. In openOCD, we can use GDB to program the board as well but that feature will be missing from the osd-gdb server, right? | 02:56 |
---|
wallento | the run control (gdbserver) stuff | 03:43 |
---|
shorne | wbx: someone has got gdbserver working before (to run on openrisc linux). But not me, and I dont have patches | 01:33 |
---|---|---|
wbx | shorne: i want to integrate openrisc support to buildroot, the sample defconfigs support uClibc-ng/musl toolchains and qemu-system-or32 bootup. but with musl i get a bus error in mksh on bootup. rich felker from #musl could debug this with gdbserver or gdb. | 02:04 |
wbx | shorne: hmm. is gdb or gdbserver for openrisc linux possible to cross-compile? | 18:57 |
---|
olofk | What's the deal with matchpoints and gdbserver? Are we ok with dropping that? At least for now | 07:43 |
---|---|---|
shorne | olofk: with gdbserver I think we need to have a build of gdb that runs on openrisc linux. I dont think we have what is needed for that. | 08:31 |
_franck_ | shorne: as for the current status you should check our documentation: http://juliusbaxter.net/openrisc-irc/search?q=gdbserver | 08:35 |
shorne | _franck_: as per your comment 2013: "blueCmd: you have no chance to compile gdbserver, we don't have or1k-linux-tdec.c ...." | 08:46 |
olofk | But we can live without gdbserver for the first patchset I guess? | 08:46 |
olofk | ZipCPU: I think he needs gdbserver actually | 06:04 |
---|---|---|
Hoolootwo | yeah, a gdbserver and/or stub of some sort seems like the best option here | 06:06 |
olofk | Unfortunately, gdbserver is not that much used, and people have reported problems compiling it lately | 06:10 |
irctc634 | Is there a link for the gdbserver source? | 16:02 |
olofk | cw200100: I haven't really used gdbserver myself, but perhaps you can cross-compile it. the other person who might know about this is jeremybennett | 01:51 |
---|---|---|
olofk | And as you say, gdbserver is your only option here | 01:52 |
shorne | ZipCPU: I would think using or1ksim and gdbserver would be a good first step for doing any debugging | 09:33 |
cw200100 | Hello! I have a question about setting a gdbserver within linux running or1k-sim. I am currently using the or1k-linux-musl toolchain and so far I was unable to compile the sources from https://github.com/openrisc/binutils-gdb/tree/or1k/gdb/gdbserver, as it does not support openrisc as a host. The old svn sources from https://github.com/openrisc/old-openrisc-svn/tree/old-svn/trunk/gnu-stable/gdb-7.2/gdb/gdbserver seem incompatible wi | 18:26 |
---|---|---|
cw200100 | Can anyone provide any pointers as to how I can setup gdbserver and have it within or1k linux? Is there any other repo I should use to compile it? Thanks! | 18:26 |
cw200100 | I see, it's good to hear that the next ORCONF will cover gdb as well. I have been looking for quite some time to figure out how to debug a linux process running on or1k-sim+vmlinux, and the only way (known to me) is to use a gdbserver. Unfortunately, the sources I found seem outdated/incompatible. | 19:33 |
ZipCPU|Laptop | shorne_ would you recommend gdbserver as a means of debugging? | 22:15 |
shorne | they probably also support a gdbserver more? | 04:42 |
---|---|---|
olofk | Previously we implemented a gdbserver as a VPI library so that you could connect gdb to the sim | 13:01 |
olofk | The benefit is that we don't have to keep our internal gdbserver in synce with upstream changes. Already a few years ago, there were a lot of unimplemented features | 13:03 |
olofk | So now we let openocd implement the gdbserver instead | 13:03 |
shorne | I need to setup gdb 'boards' explaining how to connect and load gdbserver on the target, but the simulator is already running gdbserver | 10:27 |
---|---|---|
_franck__ | shorne: I think what I did was not to connect to gdbserver on the target. I think I added or1ksim as an internal gdb sim and then run tests without any connection to the remote. | 11:01 |
wallento | olofk: which gdbserver? | 05:01 |
---|---|---|
olofk | Wanted to deprecate that whole page, but wasn't sure about what to say about gdbserver | 06:48 |
olofk | What's the status of gdbserver for OpenRISC? | 16:38 |
---|
olofk | Does the gdbserver for Linux work? | 10:54 |
---|
olofk | Me too, but I thought of gdbserver | 10:54 |
---|
_franck_ | did you get gdbserver and a native gdb working ? | 14:07 |
---|---|---|
blueCmd | _franck_: sort of. I got gdbserver working in that it could pause the program but not resume it IIRC | 14:08 |
stekern | but IIRC, debugging with gdbserver didn't work completely | 02:18 |
---|
jeremybennett | hno: Just back after the weekend. Linux gdbserver relies on ptrace, not strace, and ptrace is implemented in uClibc (although fundamentally it relies on corresponding support in Linux). | 07:42 |
---|
stekern | I did the mistake trying to build it from the top-level or1k-src directory, instead of inside gdb/gdbserver | 04:43 |
---|
hno | Is there strace support in uClibc? linux gdbserver relies on it. | 17:16 |
---|---|---|
_franck_ | the gdbserver should work | 19:15 |
blueCmd | I never got it to run 100% like I wanted but placing breakpoints and stuff like that using gdbserver works | 12:29 |
---|
jeremybennett | (Tested with GDB 7.5.1 for ARC and gdbserver on ARC linux) | 09:47 |
---|---|---|
jeremybennett | Looking at gdbserver it uses ptrace with PTRACE_PEEKTEXT to get the memory values. | 09:49 |
jeremybennett | What are you using as your GDB server? gdbserver on Linux? OpenOCD's server? | 09:52 |
jeremybennett | I've been working on gdbserver for Linux for the last few weeks, so my mindset is elsewhere. | 12:01 |
---|---|---|
jeremybennett | You could have a handler at 0xe00, but then you would not be truly bare metal. Like a RTOS version of gdbserver I suppose. | 12:01 |
blueCmd | _franck_: I have a rundamentary gdbserver for or1k*linux working quite nicely now | 17:40 |
---|
blueCmd | _franck_: cool, i'm debugging why i get a crash in gdbserver, the function i was in was called "inferior" something so I'm just checking :) | 22:26 |
---|
blueCmd | jonibo: btw, do you recall if you managed to build gdbserver? | 14:20 |
---|---|---|
jonibo | i'm 80% certain I didn't use gdbserver when doing the regset work | 14:21 |
blueCmd | I'm thinking of trying to port gdbserver | 13:53 |
---|---|---|
jeremybennett | _franck_: gdbserver was also ported for the old or32. There has been some recent debate on the linux-dev mailing list about how to do register access properly from gdbserver in the latest Linux. | 15:54 |
_franck_ | blueCmd: you have no chance to compile gdbserver, we don't have or1k-linux-tdec.c .... | 00:20 |
---|---|---|
blueCmd | I don't think I need gdbserver for that - not sure. | 00:22 |
LoneTech | for userspace debug, I guess we'd want to run gdbserver | 12:26 |
63 matches in 2795 log files with 136823 lines (1.5 seconds).
Generated by irclogsearch.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!