Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* problem with creating variable object (gdb6.3)
@ 2007-06-22 10:07 Bogdan Slusarczyk
  2007-06-22 10:17 ` Bogdan Slusarczyk
  0 siblings, 1 reply; 4+ messages in thread
From: Bogdan Slusarczyk @ 2007-06-22 10:07 UTC (permalink / raw)
  To: gdb

Hi, maybe you can help me. I have some executable file where I want to 
set some variable value using gdb. I know this variable address, and try 
to create var-object for accessing. Problem is that gdb sometimes 
returns that it cannot create var-object. I try this: -var-create - * 
"*(bool *)0x028d7460" and gdb returns "No symbol "bool" in current 
context.". I noticed that it depends on dynamic loaded libraries - for 
some gdb works fine for others doesn't, but I don't understand why, 
because mentioned variable is from executable file not from loaded 
libraries. Can you tell me what is wrong?

Regards
Bogdan


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with creating variable object (gdb6.3)
  2007-06-22 10:07 problem with creating variable object (gdb6.3) Bogdan Slusarczyk
@ 2007-06-22 10:17 ` Bogdan Slusarczyk
  2007-06-22 11:05   ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Bogdan Slusarczyk @ 2007-06-22 10:17 UTC (permalink / raw)
  To: gdb

Additionally I noticed that if I use (short *) instead of (bool *) 
everything is fine What is wrong with 'bool'??

Regards
Bogdan


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with creating variable object (gdb6.3)
  2007-06-22 10:17 ` Bogdan Slusarczyk
@ 2007-06-22 11:05   ` Daniel Jacobowitz
  2007-06-22 11:54     ` Robert Dewar
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-06-22 11:05 UTC (permalink / raw)
  To: Bogdan Slusarczyk; +Cc: gdb

On Fri, Jun 22, 2007 at 12:16:54PM +0200, Bogdan Slusarczyk wrote:
> Additionally I noticed that if I use (short *) instead of (bool *) everything 
> is fine What is wrong with 'bool'??

Is it a C or C++ program?  GDB doesn't know anything about the bool
type in C, because it's not part of the C language.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with creating variable object (gdb6.3)
  2007-06-22 11:05   ` Daniel Jacobowitz
@ 2007-06-22 11:54     ` Robert Dewar
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Dewar @ 2007-06-22 11:54 UTC (permalink / raw)
  To: Bogdan Slusarczyk, gdb

Daniel Jacobowitz wrote:
> On Fri, Jun 22, 2007 at 12:16:54PM +0200, Bogdan Slusarczyk wrote:
>> Additionally I noticed that if I use (short *) instead of (bool *) everything 
>> is fine What is wrong with 'bool'??
> 
> Is it a C or C++ program?  GDB doesn't know anything about the bool
> type in C, because it's not part of the C language.

It would seem harmless for gdb to recognize bool rather than giving
an error, given it is such standard usage (gdb is not a C compiler,
it does not have to strenuously implement the standard :-))

Or, if you are not willing to make that junk, special casing the
error message might be helpful.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-06-22 11:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-22 10:07 problem with creating variable object (gdb6.3) Bogdan Slusarczyk
2007-06-22 10:17 ` Bogdan Slusarczyk
2007-06-22 11:05   ` Daniel Jacobowitz
2007-06-22 11:54     ` Robert Dewar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox