Distinguishing debug from optimized libs and executables
I'm looking for a way to programmatically distinguish debug libs and executables from their optimized counterparts. It needs to be a way to, for example, parse the output of some utility that can produce information which distinguishes debug from optimized libs or executables.
I've looked at the system utilities nm, dump, and elfdump, but there is no documentation that describes how the information produced by these utilities might differ between debug and optimized code.
There are tantalizing hints in the on-line help here on the Sun site that the utility dumpstabs might provide this functionality, but that utility isn't available to me. Also, the version of nm that ships with RedHat7.2 claims to dump debug symbols only when used with a certain flag, so perhaps nm could be adapted to my needs, but I don't know how. If there is a way to parse the output of nm to distinguish debug from optimized libs and execs, could someone enlighten me?
Thanks,
Derrell
There is no easy way to do this - a symbol is a symbol. But if you are using file static symbols in the libraries, you are in luck.
Note, a file static symbol is like this:
foo.c:
static int foo_cnt = 100;
Given the fact our compilers would globalize the names of these symbols with the "$" prefix. It would be something like "$XAu8kkBEoje_yEX.foo_cnt" for the above symbol. Thus if you can find such names, it's safe to say the library was built with debug info.
If you only use global symbols and functions, well then I don't see how to tell these libraries apart.
- Rose
Similar Messages
-
Easy Question:Select many rows from a table and execute BAPI for these rows
Hi Experts,
I have created one WD project. The WD project fetches some records of backend using BAPI and displays in a table. I have to select some rows from the table and then execute BAPI for selected rows.
How I can select multiple records from the table and then execute another BAPI for selected rows.
Regards,
GaryHi,
In the Node which you binded to the table create one more attribute of type boolean.
For example your node is as below:
//Table Node
TableNode
> Att1
> Att2
> isSelected(boolean) - Newly created attribute for this requirement.
//Result Node contains the elements selected in TableNode
ResultNode
>Att1
>Att2
Now in the table create one more Column with Checkbox as tablecell editor. Now bind this boolean attribute to that check box.
Now in the code you can get the selected rows by user as below:
for(int i=0;i<TableNode().size();i++)
if(wdContext.nodeTableNode().getTableNodeElementAt(i).getIsSelected()==true)
IPrivateTestView.IResultNode element=wdContext.createResultNodeElement();
element.setAtt1(wdContext.nodeTableNode().getTableNodeElementAt(i).getAtt1());
element.setAtt2(wdContext.nodeTableNode().getTableNodeElementAt(i).getAtt2());
wdContext.nodeResultNode().addElement(element);
Regards,
Charan -
Read from a file and execute the statement
Hi
I have a .sql file that contains insert statements.
I would like to open the file, read a statement and execute it using a procedure.
Can sombody help me out?> I have a .sql file that contains insert statements.
I would like to ...<snipped> ... execute it ...<snipped>...
Go to SQL*Plus and type in "start <your file name>" ?
If the goal is to insert those records, and using a procedure is less important.
Regards,
Rob. -
Differences between Debug .exe file and Execute .exe file
We are very confused by the following problem when we are using
LabWindows/CVI to develop our application:
Our program is for retrieving data from real time and process the data to
get the statistic results. If we run the program using "Run >> Debug
OurProject.exe", it runs very well. However, if we run this same program
in
two steps: first using " Build >> Create Debugable Executable" menu, then
using " Run >> Execute OurProject.exe", it can not run and outputs very
different results. How come does this happen? What's the difference between
these two kinds of running a program? Please help!it might be that there are some variables not initialized. the development environment automatically initializes all variables. an executable program does not.
-
How to create and execute PL/SQL program or Procedure from Java (JDBC)
hi all,
user will enter the Pl/Sql program from User-Interface. that program has to be create in DB and execute that.
due to some confusions, how to execute this from Java, i (user) entered the same logic through a Procedure.
my Java code is
Statement st = con.createStatement();
Statement.execute(procedure_query); // procedure name is myPro
CallableStatement cs = con.prepareCall("{call myPro}");
(as given in SUN docs - http://java.sun.com/docs/books/tutorial/jdbc/basics/sql.html)
but its not creating the procedure.
and i tried to run a procedure (which is already created) with CallableStatement, and this is also not working.
how to get this.
thanks and regards
pavanHi,
SInce the PL/SQL block is keyed in dynamically, you probably want to use the anonymous PL/SQL syntax for invoking it:
// begin ? := func (?, ?); end; -- a result is returned to a variable
CallableStatement cstmt3 =
conn.prepareCall(“begin ? := func3(?, ?); end;”);
// begin proc(?, ?); end; -- Does not return a result
CallableStatement cstmt4 =
Conn.prepareCall(“begin proc4(?, ?); end;”);
SQLJ covered in chapter 10, 11, and 12 of my book furnish a more versatile dynamic SQl or PL/SQL mechanisms.
Kuassi
- blog http://db360.blogspot.com/
- book http://db360.blogspot.com/2006/08/oracle-database-programming-using-java_01.html -
Multiple PC's and Itune libs, how do I move a playlist from one lib to Iphone if phone not sync'd with that lib / pc?
La121485 wrote:
how do I move a playlist from one lib to Iphone if phone not sync'd with that lib / pc?
You create the playlist on the other computer which may require moving or copying of the media from the first computer to the second computer. -
Invoke and Execute Unix command from Oracle PL/SQL
Dear All,
I am currently working in the development of multi user application in ORACLE.
My problem is,
I have to remove a temporary file created in unix server when a particular condition is satisfied in a PL/SQL proccedure.
I searched for this and got solution to use DBMS_PIPE package.
Can you help me how to pack the content 'rm file_name' from different users working in different sessions and how to execute. Can you please explain me how the server manages calls from different sessions and replies to individual sessions.
Thanks in advance,
Shenbaga.Well if doesn't raise an exception it succeeded. Is that sufficient acknowledgement?
Cheers, APC -
Firefox won't let me run and executable from the website-it wants to save it
Looks like I lost all this information when I clicked to install the troubleshooter???
again-- problem is I deleted old Internet Explorer and tried to install I.E. 8. With Firefox, I can't click download and choose run. When I click download I can only save.
The saved download doesn't produce a file that works (it just tries to install I.E. , cleans off old files and restarts the PC OVER AND OVER.)
I would like the choice to RUN a file instead of saving but I can't find out how to get this option back.
I disabled all plugins, add ons, looked for possible limiting causes in Firefox to disable. STILL--I have NO CHOICE.
Maybe this plea for help won't fix my problem and I will have to REPAIR windows--hate to risk it--I would have to back everything up, etc.
Hopefully a simple answer to this question will solve my problem.
Thank you to all who consider my question. I appreciate your time.
LibbyHi--
Thanks for the response. I was sure I used to have the choice to '''run '''or '''save '''when I started using Firefox and somehow I lost it with one of my adjustments. Forgot how or what I did!
Before going back to Microsoft to try that I.E. program file again, I tried one more time to run it. That was the 5th time I tried to install I.E. from the saved file --and it worked!
However, after that I tried to download an executable file from malwarebytes--- with and without my Kaspersky internet security program on--- the file RAN automatically anyway instead of insisting on SAVING!
Maybe this was a microsoft issue?
I am relieved that all is settled. Always try things 3 or more times is the rule with computers, right?
But thanks for the tips--I may need them someday. Likewise the Safe mode w/ network support tip.
ALSO--The page you referred me to was one I hadn't found with my own searching--it was much much better than the others. I bookmarked it.
Thanks again... -
Executing WINWORD from both Windows and linux using Java
Dear All,
I have a problem when trying to use Runtime class to execute a winword document. My code is as follows.
Runtime r= Runtime.getRuntime();
try{
r.exec("rundll32"+" "+"url.dll,FileProtocolHandler"+" "+"WINWORD"+ " "+"file://C://welkom.doc");
catch(Exception ex){
System.out.println("Unable to open the doc file:"+ex);
When I execute this swing application with the above, the program is unable to open the specific file. And it says "Problem with the short cut, unable to open the file". When I run the program without the file name, it opens a new doc file.
Attn: what I want to do here is I need to open the winword file from both windows and linux. So I cannot use the relative path of the WINWORD.exe file.
Can anyone help me?
Thanks in advance.
Regards,
BalaIf you take a look at the api, there's an exec(String[]) method. This is the one you should use when calling a command with multiple parameters.
so something like...
String[] cmd = new String[] {"rundll32", "url.dll,FileProtocolHandler", "WINWORD", "file://C://welkom.doc"}
r.exec(cmd); -
Deployment and debugging from JBuilder
Hi,
i build a JATO application that deployed as a war file and run
perfectly on an external Tomcat.
But running this app on the integrated Tomcat of the JBuilder tool
results in the following error :
Application Error - javax.servlet.ServletException: Invalid reqest -
request handler "Login" not found
On that way, debugging the application is not possible.
Any idea what's wrong ?
I've heard there is a deployment tool document ? Where is it ?
thanks for your helpHi--
None of our team has experience running JATO apps in JBuilder. The main
thing to check when running in an IDE is that the web.xml is properly
registered. Because you've received a JATO error, I assume it is in your
case. Therefore, it must be something else.
The error you sent means that the lookup for the LoginViewBean class failed.
This is probably a silly question, but are all of your classes compiled and
under the /WEB-INF/classes directory? Any other reason your application
classes might not be found?
Todd
Todd Fast
Senior Engineer
Sun Microsystems, Inc.
todd.fast@s...
----- Original Message -----
From: <donnetmonay@y...>
Sent: Tuesday, November 20, 2001 1:26 AM
Subject: [iPlanet-JATO] deployment and debugging from JBuilder
Hi,
i build a JATO application that deployed as a war file and run
perfectly on an external Tomcat.
But running this app on the integrated Tomcat of the JBuilder tool
results in the following error :
Application Error - javax.servlet.ServletException: Invalid reqest -
request handler "Login" not found
On that way, debugging the application is not possible.
Any idea what's wrong ?
I've heard there is a deployment tool document ? Where is it ?
thanks for your help
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp -
Launch PDF from HTML and execute search
Is it possible using JavaScript in an HTML doc to launch a PDF and execute a search.query with a passed-in search parameter? TIA
Hello, George, thanks for following up. I went into Advanced->Document Processing->Document JavaScripts and put the code at the top of the file outside of the dummy function declaration I had to insert to activate the edit button. It looks like this:
// Split the file path into an array
var aPath = this.path.split("/");
// Remove the last element, which is the file name
aPath.pop();
// Join the path elements back together and add the index file
var cIdxPath = aPath.join("/") + "/Support Documents/SupDocs.pdx";
search.query ("Enhanced Tactical Automated Security System (eTASS)", "Index", cIdxPath);
function Search()
It runs fine when I launch the PDF directly into the reader by double-clicking in file explorer in the folder above "Support Documents". When I load the PDF from an HTML file in the same folder, however, the script does not run. I set the reader preferences to force loading in the reader even when launched from a browser, and the script still will not execute. I tried adding a button to the PDF and attaching the search script to it. Again, it runs when launching directly but not from the HTML document. Otherwise, the PDF is empty, and I'm using a relative URL and JS to load it from the HTML doc, such as:
document.location = "mySearch.PDF"
or
window.open("mySearch.PDF", "searchwin");
Neither one works. This product has to run from a CD-ROM, so I haven't bothered to test it via http service. Any suggestions? Thanks again!
Jon Camp
Senior Computer Scientist
Applied Research Associates, Inc.
North Florida Division
Training Solutions Group
430 W 5th Street Suite 700
Panama City, FL 32401
comm: 850-914-3188 x203
fax: 850-914-3189
email: [email protected] -
How to compile and execute procedure from hr to scott
Hi all ,
I am trying to compile and execute a stored procedure from hr user to scott user.
first i gave grant command to hr.
By using:- grant create any procedure to hr;
After i compile a procedure from hr to scott.
create or replace procedure scott.sp_hr
is
begin
dbms_output.put_line('run by scott user');
end;
but it says :-
ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
any one help me.it works for me
20:29:29 SQL> 20:29:29 SQL> connect / as sysdba
Connected.
20:47:41 SQL> grant create any procedure to hr;
Grant succeeded.
20:48:01 SQL> connect hr/hr
Connected.
20:48:07 SQL> create or replace procedure scott.sp_hr
is
begin
dbms_output.put_line('run by scott user');
end;
20:48:21 2 20:48:21 3 20:48:21 4 20:48:21 5 20:48:21 6
20:48:23 7 /
Procedure created.
20:48:25 SQL> -
Powershell error while importing module and executing function from module
powershell error while importing module and executing function from module
Function called in uncertain order..
VERBOSE: The 'Function1' command in the MyModule module was imported, but because its name does not include an approved verb, it might be difficult to find. The
suggested alternative verbs are "Clear, Install, Publish, Unlock".
VERBOSE: Importing function 'Function1'.
VERBOSE: The 'Function2' command in the MyModule' module was imported, but because its name does not include an approved verb, it might be difficult to fin
d. For a list of approved verbs, type Get-Verb.
VERBOSE: Importing function 'Function2'.First of all those errors look more related to HBR, though if it worked before I would restart services then log into the planning app and then try again.
Have you tried a different form as well one without an ampersand &.
Cheers
John
http://john-goodwin.blogspot.com/ -
What happens between the timestamp 'Date Sent' and 'Execute from'
Hi all,
from SXMB_MONI, I found that some messages take a long time, for example:
Date Sent 23.09.2008 02:22:39
Time Taken to Process (Secs) 0,5044590
Execute From 23.09.2008 02:23:12
To 23.09.2008 02:23:13
Status Set 23.09.2008 02:23:13
you can find that there are about 30s between the 2 timestamps.
does anybody know what does the timestamp 'Date Sent' mean? and what does the 'Execute From' mean?
what happens between these 2 timestamps?
Regards,
BeanHi,
I can't find date sent there...
Executed from and executed to means times, where message went in to IE and out from IE. For example, if any error occurs, there can be difference 2 days (mapping fails, you correct it and restart the message). So the start will be at 21.10.2008 but end 23.10.2008). But generally, this time comrpises:
message routing & mapping
Olian
after list all of the messages in SXMB_MONI, click the column 'EndTime', you will find the 'Date Sent'. -
Execute webdynpro from abap program and return to the caller program
Guys,
I have a question here.
I know there is a way to call an abap webdynpro application from normal abap program by either using a class method, or use a function module WDY_EXECUTE_IN_PLACE by providing
the webdynpro application or using CALL TRANSACTION statement.
But, is there anyways that we can call the webdynpro application from abap program by supplying data to the webdynpro and display to the user from the portal, and then
once the user do some manipulation on the data, can we transfer back the data to the caller abap program?hey ,
you can pack any web-dynpro program in tranasaction code and run it from R/3 and not via portal :
search in " SAPTECHNICAL" how to do so - for some reason i cant post a link here
than you can use call transaction .
regards
ASA
Maybe you are looking for
-
Access request creation - select roles screen - field boxes were not aligned
I'm not sure if this is really the screen of SAP GRC 10.1 access request creation. The field boxes were not aligned. Is there a note to fix this issue? Thank you. Regards, Jenilyn
-
Linking Sales Packing Proposal to Production Orders
Hi, I want to know if anyone has tried to use the packing proposal created in a Sales Order (VA01), to craete production orders. In this scenario, the HU numbers in the sale packing proposal will drive the creation of production orders, rather than
-
Duplicate SYN attacks from Outside to Outside
Hi Everyone, We have an FTP server that sits in our DMZ. This Server has a DMZ interface and an external interface. When trying to access the server from the internet on its external address i am getting alot of Duplicate SYN attacks. They seem to
-
How to install icloud if not directly from their iPhone
how to install icloud if not directly from their iPhone
-
I need to use windows office, does everyone think if its a good idea to install windows office in my mac? if so, how to do it? thanks