• 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
Viewing and Editing Anonymous Namespace Variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Viewing and Editing Anonymous Namespace Variables


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

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).

Thanks for your help,

 ...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

  • Follow-Ups:
    • Re: Viewing and Editing Anonymous Namespace Variables
      • From: Rush Manbert <email@hidden>
  • Prev by Date: Including command-line apps
  • Next by Date: Re: Info.plist preprocessor macro expansion, space between tokens
  • Previous by thread: Re: Including command-line apps
  • Next by thread: Re: Viewing and Editing Anonymous Namespace Variables
  • Index(es):
    • Date
    • Thread