* VxWorks Target
@ 2016-10-18 21:09 Stephen Pape
2016-10-19 8:17 ` Yao Qi
0 siblings, 1 reply; 8+ messages in thread
From: Stephen Pape @ 2016-10-18 21:09 UTC (permalink / raw)
To: gdb
Hello all,
Can anyone tell me the state of the VxWorks support in GDB? While
compiling, I see --configure can take a "-vxworks" target, but I can't
find much more information beyond that. Most of what I see is very
old, and doesn't seem to apply. For example, "target vxworks <host>"
does not work ("Undefined target command").
Is there documentation on the VxWorks implementation, or how to use it?
Thanks!
-Stephen
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: VxWorks Target 2016-10-18 21:09 VxWorks Target Stephen Pape @ 2016-10-19 8:17 ` Yao Qi 2016-10-19 14:36 ` Stephen Pape 0 siblings, 1 reply; 8+ messages in thread From: Yao Qi @ 2016-10-19 8:17 UTC (permalink / raw) To: Stephen Pape; +Cc: GDB On Tue, Oct 18, 2016 at 10:09 PM, Stephen Pape <srpape@gmail.com> wrote: > Hello all, > > Can anyone tell me the state of the VxWorks support in GDB? While > compiling, I see --configure can take a "-vxworks" target, but I can't > find much more information beyond that. Most of what I see is very > old, and doesn't seem to apply. For example, "target vxworks <host>" > does not work ("Undefined target command"). > > Is there documentation on the VxWorks implementation, or how to use it? > VxWorks support was removed in 2004. commit e84ecc995d6a5e4e9114d3cea61717b8a573afb6 Author: Andrew Cagney <cagney@redhat.com> Date: Sat Nov 13 23:10:02 2004 +0000 2004-11-13 Andrew Cagney <cagney@gnu.org> * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*, m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and sparc-*-vxworks*. * NEWS: Mention that vxworks was deleted. ..... -- Yao (齐尧) ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: VxWorks Target 2016-10-19 8:17 ` Yao Qi @ 2016-10-19 14:36 ` Stephen Pape 2016-10-19 15:45 ` Yao Qi 0 siblings, 1 reply; 8+ messages in thread From: Stephen Pape @ 2016-10-19 14:36 UTC (permalink / raw) To: Yao Qi; +Cc: GDB Wow, so it's ancient history. If that's the case, there is some leftover VxWork code hanging around. I was even able to compile gdb with "--target=powerpc-vxworks", and there are a few files with the name still in the source: ./include/elf/vxworks.h ./bfd/elf-vxworks.c ./bfd/elf-vxworks.h The configure script has some VxWorks leftovers as well: case "${target}" in *-*-vxworks*) # VxWorks uses the Dinkumware C++ library. noconfigdirs="$noconfigdirs target-libstdc++-v3" ;; Thanks for the reply. -Stephen ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: VxWorks Target 2016-10-19 14:36 ` Stephen Pape @ 2016-10-19 15:45 ` Yao Qi 2016-10-20 18:09 ` Stephen Pape 0 siblings, 1 reply; 8+ messages in thread From: Yao Qi @ 2016-10-19 15:45 UTC (permalink / raw) To: Stephen Pape; +Cc: GDB On Wed, Oct 19, 2016 at 3:36 PM, Stephen Pape <srpape@gmail.com> wrote: > Wow, so it's ancient history. If that's the case, there is some > leftover VxWork code hanging around. I was even able to compile gdb > with "--target=powerpc-vxworks", and there are a few files with the > name still in the source: > > ./include/elf/vxworks.h > ./bfd/elf-vxworks.c > ./bfd/elf-vxworks.h > > The configure script has some VxWorks leftovers as well: > > case "${target}" in > *-*-vxworks*) > # VxWorks uses the Dinkumware C++ library. > noconfigdirs="$noconfigdirs target-libstdc++-v3" > ;; > VxWorks support in GDB was removed, but its support in other components, like linker, are still there. They are not leftover. However, configure should be adjusted so that gdb shouldn't be configured at all if target is *-*-vxworks*. -- Yao (齐尧) ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: VxWorks Target 2016-10-19 15:45 ` Yao Qi @ 2016-10-20 18:09 ` Stephen Pape 2016-10-20 18:47 ` Yao Qi 2016-10-21 15:30 ` Joel Brobecker 0 siblings, 2 replies; 8+ messages in thread From: Stephen Pape @ 2016-10-20 18:09 UTC (permalink / raw) To: Yao Qi; +Cc: GDB Okay, thanks. That clears things up a little. I have another question, if you (or anyone else) can help. Is there any concept of a "bare" target? For example, just a "powerpc" target that isn't OS specific. The targets I've seen seem like they're OS specific ("-linux"). I was thinking of writing a stub that speaks the GDB serial protocol. I can implement the "add breakpoint", "remove breakpoint", "read memory", "write memory" type functionality myself, but I'm trying to figure out how that would work with GDB. Sorry if this doesn't make sense, I'm just beginning to learn about GDB internals. Thanks again, -Stephen On Wed, Oct 19, 2016 at 11:45 AM, Yao Qi <qiyaoltc@gmail.com> wrote: > On Wed, Oct 19, 2016 at 3:36 PM, Stephen Pape <srpape@gmail.com> wrote: >> Wow, so it's ancient history. If that's the case, there is some >> leftover VxWork code hanging around. I was even able to compile gdb >> with "--target=powerpc-vxworks", and there are a few files with the >> name still in the source: >> >> ./include/elf/vxworks.h >> ./bfd/elf-vxworks.c >> ./bfd/elf-vxworks.h >> >> The configure script has some VxWorks leftovers as well: >> >> case "${target}" in >> *-*-vxworks*) >> # VxWorks uses the Dinkumware C++ library. >> noconfigdirs="$noconfigdirs target-libstdc++-v3" >> ;; >> > > VxWorks support in GDB was removed, but its support in other > components, like linker, are still there. They are not leftover. > > However, configure should be adjusted so that gdb shouldn't > be configured at all if target is *-*-vxworks*. > > -- > Yao (齐尧) ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: VxWorks Target 2016-10-20 18:09 ` Stephen Pape @ 2016-10-20 18:47 ` Yao Qi 2016-10-21 15:30 ` Joel Brobecker 1 sibling, 0 replies; 8+ messages in thread From: Yao Qi @ 2016-10-20 18:47 UTC (permalink / raw) To: Stephen Pape; +Cc: GDB On Thu, Oct 20, 2016 at 2:08 PM, Stephen Pape <srpape@gmail.com> wrote: > > Is there any concept of a "bare" target? For example, just a "powerpc" > target that isn't OS specific. The targets I've seen seem like they're > OS specific ("-linux") There is a "bare metal" target, like powerpc-elf. > > I was thinking of writing a stub that speaks the GDB serial protocol. > I can implement the "add breakpoint", "remove breakpoint", "read > memory", "write memory" type functionality myself, but I'm trying to > figure out how that would work with GDB. Sorry if this doesn't make > sense, I'm just beginning to learn about GDB internals. > I don't know much about stubs, but you can take a look at gdb/stubs/*.c. -- Yao (齐尧) ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: VxWorks Target 2016-10-20 18:09 ` Stephen Pape 2016-10-20 18:47 ` Yao Qi @ 2016-10-21 15:30 ` Joel Brobecker 2016-10-26 15:51 ` Stephen Pape 1 sibling, 1 reply; 8+ messages in thread From: Joel Brobecker @ 2016-10-21 15:30 UTC (permalink / raw) To: Stephen Pape; +Cc: Yao Qi, GDB Hello, I just wanted to mention that I posted a patch at some point that added support for VxWorks 5.x and VxWorks 653 (using the WTX protocol via the target server to communicate with the target). It was quite a while ago, and we eventually abandoned the idea of having it in the GDB repository, but perhaps you can still take advantage of it. https://www.sourceware.org/ml/gdb-patches/2011-03/msg00251.html -- Joel ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: VxWorks Target 2016-10-21 15:30 ` Joel Brobecker @ 2016-10-26 15:51 ` Stephen Pape 0 siblings, 0 replies; 8+ messages in thread From: Stephen Pape @ 2016-10-26 15:51 UTC (permalink / raw) To: Joel Brobecker; +Cc: Yao Qi, GDB Thanks! I was hoping to use WDB to talk directly to the target, but I'll take a look. On Fri, Oct 21, 2016 at 11:29 AM, Joel Brobecker <brobecker@adacore.com> wrote: > Hello, > > I just wanted to mention that I posted a patch at some point that > added support for VxWorks 5.x and VxWorks 653 (using the WTX protocol > via the target server to communicate with the target). It was quite > a while ago, and we eventually abandoned the idea of having it in > the GDB repository, but perhaps you can still take advantage of it. > > https://www.sourceware.org/ml/gdb-patches/2011-03/msg00251.html > > -- > Joel ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-10-26 15:51 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-10-18 21:09 VxWorks Target Stephen Pape 2016-10-19 8:17 ` Yao Qi 2016-10-19 14:36 ` Stephen Pape 2016-10-19 15:45 ` Yao Qi 2016-10-20 18:09 ` Stephen Pape 2016-10-20 18:47 ` Yao Qi 2016-10-21 15:30 ` Joel Brobecker 2016-10-26 15:51 ` Stephen Pape
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox