• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Viewing and Editing Anonymous Namespace Variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Viewing and Editing Anonymous Namespace Variables


  • Subject: Re: Viewing and Editing Anonymous Namespace Variables
  • From: "Duane Murphy" <email@hidden>
  • Date: Tue, 16 May 2006 16:02:50 -0700

--- At Tue, 16 May 2006 12:54:53 -0700, Rush Manbert wrote:

>Duane Murphy wrote:
>> Howdy Xcoders,
>> How do I view variables that are in the anonymous namespace?
>>
>> I use C++ anonymous namespaces for many things (ie it's the modern
>> static). Unfortunately, I can't seem to work out how to view a viariable
>> in an anonymous namespace in Xcode (or gdb for that matter).
>>
>> The gdb show variables command lists the variable as (anonymous
>> namespace)::the_variable. I tried print ::the_variable but get
>>
>> Address of symbol "the_variable" is unknown.
>>
>> On a related subject, I have a char* variable displayed in Xcode that
>> points to a null-terminated string of characters (do we remember
>> those :-). How do I edit it? I'd like to be able to change the
>> characters from the debugger to see how it affects the program (also in
>> this case, the string is incorrect, and I'd like to fix it without
>> having to restart).
>>
>Hi Duane,
>
>Don't know about the first one, but for the related subject I think the
>way to go is to use the Memory Browser tool (available on the
>Debug|Tools submenu) and change it there.

Thanks for the idea Rush. I tried this, but for the life of me I can't
work out how to change anything.

Is there a magic key stroke to allow editing in the Memory Browser?

 ...Duane

 ...Duane

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Viewing and Editing Anonymous Namespace Variables (From: "Duane Murphy" <email@hidden>)
 >Re: Viewing and Editing Anonymous Namespace Variables (From: Rush Manbert <email@hidden>)

  • Prev by Date: Re: -weak_framework CHUD
  • Next by Date: how to link to separate libs for i386 (10.4) and PPC (10.3.9) link
  • Previous by thread: Re: Viewing and Editing Anonymous Namespace Variables
  • Next by thread: how to link to separate libs for i386 (10.4) and PPC (10.3.9) link
  • Index(es):
    • Date
    • Thread