* remote_debug defined in m68k-stub.c and top.c
@ 2004-05-19 18:03 Bob Rossi
2004-05-21 15:08 ` Andrew Cagney
2004-05-21 22:57 ` Stan Shebs
0 siblings, 2 replies; 3+ messages in thread
From: Bob Rossi @ 2004-05-19 18:03 UTC (permalink / raw)
To: gdb
Hi,
Does m68k-stub.c and top.c ever get linked into the same exe?
Or do you just get one or the other?
I am noticing that the global remote_debug is defined in both of these files.
Thanks,
Bob Rossi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: remote_debug defined in m68k-stub.c and top.c
2004-05-19 18:03 remote_debug defined in m68k-stub.c and top.c Bob Rossi
@ 2004-05-21 15:08 ` Andrew Cagney
2004-05-21 22:57 ` Stan Shebs
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2004-05-21 15:08 UTC (permalink / raw)
To: Bob Rossi; +Cc: gdb
> Hi,
>
> Does m68k-stub.c and top.c ever get linked into the same exe?
> Or do you just get one or the other?
>
> I am noticing that the global remote_debug is defined in both of these files.
The *-stub.c files are all standalone examples of a remote stub so
aren't linked into GDB proper.
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: remote_debug defined in m68k-stub.c and top.c
2004-05-19 18:03 remote_debug defined in m68k-stub.c and top.c Bob Rossi
2004-05-21 15:08 ` Andrew Cagney
@ 2004-05-21 22:57 ` Stan Shebs
1 sibling, 0 replies; 3+ messages in thread
From: Stan Shebs @ 2004-05-21 22:57 UTC (permalink / raw)
To: Bob Rossi; +Cc: gdb
Bob Rossi wrote:
>Hi,
>
>Does m68k-stub.c and top.c ever get linked into the same exe?
>Or do you just get one or the other?
>
>I am noticing that the global remote_debug is defined in both of these files.
>
They're different variables - m68k-stub.c is for a debugging stub that
gets linked into your program, while top.c is part of GDB proper.
It *is* a little confusing to have stubs, which are as much example
code as anything else, mixed in with GDB sources.
Stan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-21 22:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-19 18:03 remote_debug defined in m68k-stub.c and top.c Bob Rossi
2004-05-21 15:08 ` Andrew Cagney
2004-05-21 22:57 ` Stan Shebs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox