Sun Sudio C++: Local Variables and Watches Values Not Initialized in Debug

Hi All,
I am trying to debug my program (using dbx). I have put break points in various functions. However, I have the following problems:
- when the program runs to the break points, all arguments have in the functions shown in the callstack have values '???';
- NOTHING is shown in the 'Local Variables' windows;
- if I put the local variables in the 'Watches' window, the 'value' simply says <unset value>;
what am I doing wrong?
Thanks in advance

Well, first things that comes to my mind is that your app was not compiled with debug info. Could you please post output of the following three commands here:
$ dwarfdump -l <your app> | wc -l
$ dumpstabs -s <your app> | wc -l
$ file <your app>
(if the first two would print small number, remove "wc -l" and post real output here, please)

Similar Messages

  • What is difference between local variable and property node ?

    What is difference between local variable and property node ?
    " 一天到晚游泳的鱼"
    [email protected]
    我的个人网站:LabVIEW——北方客栈 http://www.labview365.com
    欢迎加入《LabVIEW编程思想》组——http://decibel.ni.com/content/groups/thinking-in-labview

    To make things clear, here are two small examples that show how nasty locals and value properties can be to the naive programmer.
    - Open the diagram of the race condition.vi before running it and try to predict what will be the values of the two counters after the third run.
    - Use the Compare Locals Properties and Wires.vi to find out how slow locals and value properties can be (times 1000+).
    This being demonstrated, I must add that I use globals and value properties quite often, because they are often very convenient
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Race condition.vi ‏9 KB
    Compare Locals Properties and Wires.vi ‏18 KB

  • Whats the difference betweeen passing the table variable and table valued parameter?

    Hi Everbody
      Can someone one tell me what's the difference between passing a table variable and table valued parameter to a stored procedure or function? Can both be used to pass a table to a stored procedure/function?
    Regards
    Regards

    They are essentially the same. What we call a table variable is a local
    variable. A table-valued parameter is an incoming parameter to the
    procedure. The only difference is that the parameter is readonly.
    When you call a stored procedure, you can pass a table variable as the
    actual parameter. Or a table-valued parameter that you pass on.
    CREATE PROCEDURE nisse_sp @tvp sometype READONLY AS
    DECLARE @local someothertabletype
    EXEC pelle_sp @tvp, @local
    Erland Sommarskog, SQL Server MVP, [email protected]

  • When should I use static variable and when should not? Java essential

    When should I use static variable and when should not? Java essential

    Static => same value for all instances of the class.
    Non-static => each instance can have its own value.
    Which you need in which circumstances is completely up to you.

  • Jaxb Integer and Boolean types not initialized

    I just converted from using JWSDP 1.6 to 2.0. I noticed that when I used Jaxb to generate my beans the default types for int and boolean are now the wrapper classes Integer and Boolean. With version 1.6 I did not initialize my ints or booleans. Now with version 2.0 I find I have null issues because the fields that have the types Boolean and Integer are not initialized.
    I would like to change how Jaxb generates the beans so that one of the two options listed below will occur:
    1) The field types that need integers and booleans would be primitive types instead of the wrapper classes.
    or
    2) I would like to change the declaration from:
    protected Boolean someboolean;
    protected Integer someinteger;
    to:
    protected Boolean someboolean=new Boolean(true);
    protected Integer someinteger = new Integer(0);
    How can I do this?
    Message was edited by:
    [email protected]
    Message was edited by:
    [email protected]

    I found the answer: The problem was that I had used the attribute minOccurs="0". This caused the code generator to make the types either Boolean or Integer. I removed the attribute minOccurs="0" then the system generated the fields with the primatives int and boolean. Now my fields are initialized.

  • Sampling local variable and synchroniz​e with DAQmx

    Hello, 
    I made a small change in the set-up I used with labview and now when I wanted to change the code I'm having a rather complicated problem.
    In my old set-up I was measuring three variables: x and y with a QPD and the power of a laser with a power detector. I was using the DAQmx and I was getting a matrix with three columns with n (sample rate) values. Now, for various reasons I had to take out the second detector. So now I want to build the same matrix as constructed before, but instead of putting the measured values of the laser power I want to put the theoretical values (they are in a local variable) as I cannot measure them. The problem is that this local variable, in general, changes during the DAQmx acquisition time and I would need to sample it at the same rate as I acquire the data from DAQ and then combine all them. How I could sample this variable and attach it to my DAQ results? DAQmx doesn't accept local variables.
    Thanks

    A local variable is not something standalone. It is always associated with a control or indicator. Hows is it updated?
    From your description, it is not clear what you are doing. Can you show us some code instead?
    (Also be more clear when using acronyms. QPD cound mean many things)
    LabVIEW Champion . Do more with less code and in less time .

  • No difference between using a local variable and a notifier in timed parallel loops?

    The example code "Pass Data With Notifiers.vi" that came with LV 7.1 illustrates using notifiers with parallel loops.  Just looking at two of the loops, the one that generates the sine wave and the one for "User 1", you can change the timing of the two loops and you can change the condition of the "Ignore Previous" status on the "Wait on Notification".  I have a special case of this to consider, where I'm wondering if there's any reason not to use a local variable instead of the notifier:
    Set the delay on the generator portion (which contains the Send Notification) to something very short, say 5 ms.  Set the delay on the User 1 (which contains the Wait on Notification) to something relatively longer, say 200 ms.  Set the Wait on Notification to False.  Now you have a situation where the User 1 loop action is contingent only upon the loop delay time, since each time the loop timer runs the loop there will always be a value in the notifier.  In this case it seems to behave just like the case where you update a local variable in the fast loop and read it in the slow one.
    Is my understanding correct?  Would there be a performance difference between the two methods?  What do you prefer in this situation and why?
    Thanks,
    Hosehead

    Hi H.,
    I think your idea is to write to a Global Variable in the data-producer VI, and read it in the data-consumer VI(?)
    One reason this might be less efficient than using Notifiers is if you want to graph every new value in the "consumer" - or make sure the value read in the consumer has changed at least once since the last loop.
    > since each time the [consumer] loop timer runs the loop there will always be a value in the notifier...
    > Would there be a performance difference between the two methods? 
    If you don't use the Notification "event" to synchronize the producer and consumer, then to be sure the consumer gets a new vaue, you've made the producer loop faster - every 5 ms - a waste of cpu-cycles.  More often the situation is reversed, that is, there's a consumer that needs to see every single new value, and (without events) the consumer must loop faster than the producer (to catch every new value) - this is called polling and it wastes cpu-cycles.
    Just about anytime one's tempted to make a loop execute "fast" to check on some value (or to make sure there's a fresh value,) there's an opportunity to improve performance through synchronization with events (including notifiers, queues, occurrances, semaphores, and rendezvous')
    tbd
    Message Edited by tbd on 07-09-2006 03:51 AM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

  • Local variable versus 'properity value'

    Hi,
    can anybody explain me the (dis-)advantages of using 'properity:value'
    instead of using a local variable when I want to read (write) a control
    at a second location.
    Thanks for any input
    Urs Bögli

    First : Greetings from another "Bögli" on the Developer Exchange.
    I don't think there are other issues. But, like Dan said, the property node will be much slower. This is because it will force LV to switch to the user interface every time you read the property.
    I have just made a little test to give you some figures. Simple for loop with 1000000 iterations in which the value is read.
    Local variable = 15 times slower than Terminal
    Property node = 653 (!!!) times slower than Terminal
    If performance is an issue, the property node is not the way to go !

  • Local Variables and INLINING

    LV2013SP1
    When making a VI that originates a TYPEDEF'ed cluster, I have always used a local variable of that output cluster, and a BUNDLE BY NAME function to insert the various pieces.
    Like this:
    Now, when I try to INLINE the VI that does this, I get an error message: "This object is not allowed in a VI on which you enable inlining".
    I can replace it with a constant easily enough:
    My questions are these:
    1... Why is the first method illegal?  I suspect something to do with thread-switching into the UI thread, is that it?  Or maybe there really isn't a front panel if it is INLINEd?
    2... Is the constant pattern better, in terms of memory usage?
    3... Is the constant pattern better, in terms of speed of execution?
    4... Should I adopt that pattern anyway, regardless of INLINE or not?
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

     the exact why is not explained
    I believe the "why" IS explained. This all makes sense to me now.
    There can be no instance of the control/indicator, because it's never been placed on the caller's panel.
    If it existed, it would have to have properties like POSITION and BOUNDS, and those have never been set.
    They COULD NOT be set, since they would have to be set (differently) for each instance of the inlined VI.
    The INLINEd VI requires REENTRANCY, that means there is a separate dataspace for each instance.
    I suppose that dataspace now would come from the caller.
    The point of the INLINE is to connect the caller's output wire to the VI's input wire AS IF the VI's code were copied into the caller.
    That means that the CONTROL/INDICATOR is totally unnecessary, and can be removed.
    It therefore cannot be accessed.  Not by property nodes. Not by local vars.
    AND, ON A HUNCH, I tested this:  NOT BY REFERENCE.
    With a REFERENCE to a control/indicator on an INLINEd VI, I get the same error: this object is not allowed in a VI on which you enabled INLINING.
    Because it doesn't exist.
    The control/indicator is a metaphor for the interface between the code and the screen display.  It ceases to exist when INLINEd.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • On Sympatico homepage, my local weather and news does not come up unless I refresh the page. But when I return to the homepage during the same session, local news/weather is gone again. Is this correctable?

    When I first open the browser and it goes my homepage, Sympatico.ca, there are 2 areas of the homepage you can personalize. On the left hand side "News" Column, the bottom box "Local News" allows you to select a location (Toronto, Ontario Canada for me) to display news from that area. On the far right hand column, below the advertising bar, is "Weather" where you select your city (Brantford in my case) and it will display the 4 day forecast in C or F degrees. Once you close the homepage the settings are saved. The problem is that when I leave the homepage to any other website, if I return to the homepage the weather and local news is back to the default setting of having to select the city again. I did find if I just refreshed the page, the personalized settings appear. I have Firefox 4 and it seemed to correct the problem when I installed 4 as the same problem had been occurring with my previous version of Firefox. But now it's back to having to refresh the page to get the saved location for local weather and news. My wife uses IE8 on the same PC and has not had this problem on her Sympatico homepage.

    aha!
    Wed Feb 14 12:29:16 2007
    PUSH:
    Received control message:
    'PUSH_REPLY,
    route 192.168.100.3 255.255.255.255,
    route 192.168.1.0 255.255.255.0,
    route 192.168.3.0 255.255.255.0,
    route 172.16.0.0 255.255.0.0,
    route 10.123.123.0 255.255.255.0,
    redirect-gateway,
    dhcp-option DNS 172.16.70.12,
    dhcp-option WINS 172.16.70.2,
    dhcp-option DOMAIN timberline.int,
    route-gateway 172.16.70.254,
    ping 10,ping-restart 120,
    ifconfig 172.16.70.216 255.255.255.0'
    The ifconfig line the server is pushing is not right. That is meant for a point to point connection. That is why the local client is puking on it...it is not correct. At least for a tun type device. If it was a tap, then it would be fine.
    http://openvpn.net/man.html
    (look for "--ifconfig l rn" )
    so.... change the line to dev tap, and then do this stuff..
    http://wiki.archlinux.org/index.php/OpenVPN_Bridge

  • I purchased a Macbook Air 11" in January 2011. It has one key on the keyboard which sticks making an irritating clicking sound that I would like to get fixed. I took it into my local iStore and they were not at all encouraging, saying they doubt that the

    I purchased a Macbook Air 11" in January 2011. It has one key on the keyboard which sticks making an irritating clicking sound that I would like to get fixed. I took it into my local iStore but they were not at all encouraging, saying they doubt that Apple warranty will cover something like this, and also that the whole keyboard would have to be replaced as they don't do individual key repairs.
    This is very unreasonable to me. Firstly, the keyboard does work (is not actually broken) although the intermittent clicking sound of a single key is very irritating to me and I expect more from an Apple product than a flawed keyboard.
    Any thoughts, tips and insight on this greatly appreciated.

    Just wanted to conclude by saying that I did go to an Apple store and after supplying proof of purchase and verifying the warranty etc, I had my MacBook checked out by one of the technicians who (after finding that my machine was immaculate bar the sticky keyboard of course) they replaced the entire keyboard within a week.
    I was so happy with the helpful and prompt service and am now so happy with my new silent keyboard!
    Also wanted to add that the young guy who told me at the iStore that he doubted Apple would support this and guessed Apple likely say it was due to user damage was being a tool, and he was obviously assuming  that I had done something wrong to break my keyboard.
    This was my first Mac purchase and I was delighted to find that the support is genuine and not just a rumor... I have since gone on to purchase an iPad2 will probably buy the iMac too once my trusty PC needs replacing. I was never a PC hater and got on well with windows, and was actually reluctant to make the change - but so far so good :)
    Thanks for all the help!

  • BED,ECS and SECess value not defaulted in J1IS for return purchase order.

    1)I have created return purchase orde for an excisable material.
    2) In the purchase order i am able to view the BED,ECS and SEcess values.
    3) I have created MIGO, for the return purchase order with excise as part 1 only.
    4) While doing J1is or the 161 material document number, the BED, ECS and SEcess values are not defaulted.
    Kindly help me to solve this issue.
    Regards,
    jayakumar

    Hi,
    Check the settings in
    Tax on Goods Movements  --> India --> Account Determination
    Specify Excise Accounts per Excise Transaction - Check for ETT OTHR
    OTHR          CR Credit     PLAAED PLA AED account
    OTHR          CR Credit     PLABED PLA BED account
    OTHR          CR Credit     PLAECS PLA ECS Account
    OTHR          CR Credit     PLASED PLA SED account
    OTHR          CR Credit     RG23AED RG 23 AED account
    OTHR          CR Credit     RG23AT1 RG 23 AT1 Account
    OTHR          CR Credit     RG23BED RG 23 BED account
    OTHR          CR Credit     RG23ECS RG 23 ECS Account
    OTHR          DR Debit     MSUSP CENVAT suspense account
    also check for Specify G/L Accounts per Excise Transaction
    Regards,
    Vikas Mayekar

  • I get a pop up of "adobe flash player settings" requesting local storage and it will not respond to either deny or accept.  Help please

    I get a pop up of "adobe flash player settings" requesting local storage.  It will not respond to either deny or accept.  Please help.

    From the menu bar, select
               ▹ System Preferences... ▹ Flash Player ▹ Storage
    Select either one of the radio buttons marked
              Allow sites to save information on this computer
              Block all sites from storing information on this computer
    according to your preference. The usual display of Flash content doesn't require that you allow it to save information. Note also that this setting only affects Flash; it has no effect on web cookies or AutoFill.

  • Pro*c referenced variable "sqlstm", which was not initialized in its declar

    This i get in every compilation of the Pro*C Code .Can anyone be able to help out how to switch off this Compilation Warning and is it worthwhile to switch off this (I)
    referenced Warning.

    It's a couple of years since I worked in Pro*C but I have worked with Pro*C fairly recently and even once worked in the Unix, pre-Ansi Pro*c environment. Pro*C is just a pre-compiler, so you can take a look at the generated C code and see what it is doing. That can be very helpful. It generates a bunch of function calls to replace each SQL statement.
    The declare section just tells Oracle to recognise those variables and their types, it doesn't change the actual declaration, so I'd say the 2nd foo is indeed local to gag.
    I would worry about any references to foo below gag in that source file - they may use the type etc. of the local variable, but since they are the same data type, it may well work (more by luck than good management).
    As I recall a varchar is a struct, so they can change the value inside gag, but it won't take effect outside the function. You can pass *foo if you want to - you're passing a pointer to the struct.
    I hope this helps (and is right)
    David

  • How to update bind variable and restrict values in a Model Driven LOV?

    Hi Guys,
    Using JDev 11.1.1.2.0
    I've recreated an excellent Frank Nimphius article about restricting values derived from a model driven LOV (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/44-restrict-lov-169186.pdf)
    But my bind variable isn't updating. Deleting the bind variable gets me the entire LOV. Activate the code below and insert a bind variable into the where clause like Frank says and I get nothing back. Bind variable is blank. Any ideas? Code wasn't supplied with the article. It seems simple enough but the bind variable isn't updating in the SQL, even though the updated value shows up here...
      public void onLovLaunch(LaunchPopupEvent launchPopupEvent)
        BindingContext bctx = BindingContext.getCurrent();
        BindingContainer bindings = bctx.getCurrentBindingsEntry();
        FacesCtrlLOVBinding lov = (FacesCtrlLOVBinding)bindings.get("DepartmentId");
        lov.getListIterBinding().getViewObject().setNamedWhereClauseParam("deptId","60");
        System.out.println("lov name: " + lov.getName().toString());
        System.out.println("lov Param Attrs: " + lov.getListIterBinding().getViewObject().getNamedWhereClauseParams().getAttribute("deptId").toString());
        System.out.println("lov View Object: " + lov.getListIterBinding().getViewObject().getName().toString());
        System.out.println("lov IterBinding: " + lov.getListIterBinding().getName().toString());
       }Gets me ...
    lov name: DepartmentId
    lov Param Attrs: 60
    lov View Object: _LOCAL_VIEW_USAGE_lov_model_queries_EmployeesView_DepartmentsView
    lov IterBinding: DepartmentIdList_2

    That's a good idea, but it's still not working. Here is how I implemented it. It might be different from your suggestion as I'm still pretty new to this.
    I have a recursive tree table. You select a node. You then click a button which calls the listener below. "findParents" is a method call to the AppModuleImpl class and it finds all parent nodes of your selection. "restrictPartBomLOV", also of the AppModuleImpl class, then modifies the model driven lists' View Object (partBomLOV) to exclude those parent node values.
    The resulting model driven LOV on the popup should be updated, yeah? But it still isn't udpating. If I manually type in the updated Where clause in PartBomLOV.xml query tab, it works, but it doesn't programmatically.
      public void insertPopupFetchListener(PopupFetchEvent popupFetchEvent)
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("findParents");
        parents = (List)operationBinding.execute();
        operationBinding = bindings.getOperationBinding("restrictPartBomLOV");
        operationBinding.execute();
       public void restrictPartBomLOV(List parents)
          ViewObjectImpl vo = getPartBomLOV();
          String wcl = "";
          Object[]   p = parents.toArray();
          for(int i = 0; i < p.length; i++)
             if (i == 0)
                wcl = wcl + "PNUM <> '" + p.toString() + "'";
    else
    wcl = wcl + "AND PNUM <> '" + p[i].toString() + "'";
    vo.setWhereClause(wcl);
    System.out.println(vo.getWhereClause().toString());
    vo.executeQuery();
    Edited by: LovettWB on Nov 11, 2010 11:23 PM

Maybe you are looking for

  • ITunes stopped working after 8.01 upgrade

    While running iTunes 8 on my xp pro box it asked to upgrade. I said yes. It did, but never appeared after upgrading. It is running in the task manager, but no application ever appears. Here's what I have tried: 1. repair install - no luck 2. remove i

  • InDesign Table Cell Strokes not appearing perfect

    How do you get row and column strokes in a table to appear perfectly joined? When I choose "Column Strokes in Front" (Under Table Setup) i still see a tiny row stroke, and vice versus.. it's really visible in the PDF almost can't see it in InDesign t

  • Intersecting Nodesets with XSLT

    I'm, using the 9.2.0.1.0 Oracle XDK for Java. We want to count some intersection nodes in XML files. An example of XSL to do this is at: http://www.vbxml.com/xsl/exampleunion_nodeset.asp. The results I get with the sample XML & XSL at the web site gi

  • Need help troubleshooting problem with shadow images

    Has anyone encountered this problem and found a way to resolve it - I'm working in Captivate 2. I've created a training project that includes screens (slides) where popup windows appear. These popups mysteriously appear as faint images in a subsequen

  • Max users

    Hi all. I would like to know what is the maximum number of concurrent users/sessions in oracle. Can i have 100 000 concurrent connections to my database and each one doing very low activity ( 1 small query each minute)?