* RE: 64-bit debug on Solaris
@ 2002-12-19 9:11 Hillel (Sabba) Markowitz
2002-12-19 11:52 ` Roland Egger
0 siblings, 1 reply; 5+ messages in thread
From: Hillel (Sabba) Markowitz @ 2002-12-19 9:11 UTC (permalink / raw)
To: kevinb; +Cc: gdb
It turns out that a test program compiled on Solaris 8 will debug successfully
even when run on a Solaris 7 platform. A test program compiled on Solaris 7
(in 64-bit mode) will fail even when executed on a Solaris 8 platform. The
gdb result (also built in 64 bit mode on the correct platform - Solaris 7 or
Solaris 8) is as follows
gdb testit
break testit.c:43
Breakpoint 1 at 0x938: file testit.c, line 43
run
Starting program: testit
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0x938: I/O error.
The same program may be running in another process.
--
Said the fox to the fish, "Join me ashore".
The fish are the Jews, Torah is our water
Hillel (Sabba) Markowitz - sabbahem@bcpl.net
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 64-bit debug on Solaris
2002-12-19 9:11 64-bit debug on Solaris Hillel (Sabba) Markowitz
@ 2002-12-19 11:52 ` Roland Egger
0 siblings, 0 replies; 5+ messages in thread
From: Roland Egger @ 2002-12-19 11:52 UTC (permalink / raw)
To: Hillel (Sabba) Markowitz; +Cc: gdb
That's really strange.
Normally you can compile a programm on an older system e.g. solaris
2.5.1 and run it without any problems on solaris 2.8. The other way
doesn't work often but in this special case I haven't testet it.
Bye
Roland
On Thu, Dec 19, 2002 at 12:16:20PM -0500, Hillel (Sabba) Markowitz wrote:
> It turns out that a test program compiled on Solaris 8 will debug successfully
> even when run on a Solaris 7 platform. A test program compiled on Solaris 7
> (in 64-bit mode) will fail even when executed on a Solaris 8 platform. The
> gdb result (also built in 64 bit mode on the correct platform - Solaris 7 or
> Solaris 8) is as follows
>
> gdb testit
> break testit.c:43
>
> Breakpoint 1 at 0x938: file testit.c, line 43
>
> run
>
> Starting program: testit
> Warning:
> Cannot insert breakpoint 1.
> Error accessing memory address 0x938: I/O error.
> The same program may be running in another process.
>
> --
> Said the fox to the fish, "Join me ashore".
> The fish are the Jews, Torah is our water
>
> Hillel (Sabba) Markowitz - sabbahem@bcpl.net
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 64-bit debug on Solaris
2002-12-18 9:59 ` Kevin Buettner
@ 2002-12-19 4:24 ` Hillel (Sabba) Markowitz
0 siblings, 0 replies; 5+ messages in thread
From: Hillel (Sabba) Markowitz @ 2002-12-19 4:24 UTC (permalink / raw)
To: Kevin Buettner; +Cc: Hillel (Sabba) Markowitz, gdb
Kevin Buettner wrote:
> Has gdb itself been built in 64-bit mode? As I recall, this is necessary
> in order to debug 64-bit programs.
>
> Kevin
gdb built in 64-bit mode on Solaris 8 works correctly. On Solaris 7,
the set breakpoint fails. That is "break testit:43" (for example)
claims to have worked. However, a "run" will fail when attempted to
actually insert the breakpoint.
--
Said the fox to the fish, "Join me ashore".
The fish are the Jews, Torah is our water.
Hillel (Sabba) Markowitz
sabbahem@bcpl.net, Sabba.Hillel@verizon.net
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 64-bit debug on Solaris
2002-12-17 8:41 Hillel (Sabba) Markowitz
@ 2002-12-18 9:59 ` Kevin Buettner
2002-12-19 4:24 ` Hillel (Sabba) Markowitz
0 siblings, 1 reply; 5+ messages in thread
From: Kevin Buettner @ 2002-12-18 9:59 UTC (permalink / raw)
To: Hillel (Sabba) Markowitz, gdb
On Dec 17, 10:45am, Hillel (Sabba) Markowitz wrote:
> I am attempting to debug a program compiled in 64 bit mode using gcc on
> Solaris 7 or Solaris 8. Any sample program can be used such as a "hellow
> world".
>
> gcc -m64 -g testit.c -o testit
>
> gdb testit
>
> break "testit.c":43
> run
> procfs:4235 -- process not stopped
> procfs: ...giving up
>
> The same program compiled in 32 bit mode debugs properly.
Has gdb itself been built in 64-bit mode? As I recall, this is necessary
in order to debug 64-bit programs.
Kevin
^ permalink raw reply [flat|nested] 5+ messages in thread
* 64-bit debug on Solaris
@ 2002-12-17 8:41 Hillel (Sabba) Markowitz
2002-12-18 9:59 ` Kevin Buettner
0 siblings, 1 reply; 5+ messages in thread
From: Hillel (Sabba) Markowitz @ 2002-12-17 8:41 UTC (permalink / raw)
To: gdb
I am attempting to debug a program compiled in 64 bit mode using gcc on
Solaris 7 or Solaris 8. Any sample program can be used such as a "hellow
world".
gcc -m64 -g testit.c -o testit
gdb testit
break "testit.c":43
run
procfs:4235 -- process not stopped
procfs: ...giving up
The same program compiled in 32 bit mode debugs properly.
--
Said the fox to the fish, "Join me ashore".
The fish are the Jews, Torah is our water
Hillel (Sabba) Markowitz - sabbahem@bcpl.net
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-12-19 19:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-19 9:11 64-bit debug on Solaris Hillel (Sabba) Markowitz
2002-12-19 11:52 ` Roland Egger
-- strict thread matches above, loose matches on Subject: below --
2002-12-17 8:41 Hillel (Sabba) Markowitz
2002-12-18 9:59 ` Kevin Buettner
2002-12-19 4:24 ` Hillel (Sabba) Markowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox