Getting the offset of c lines in an obj file

hello everybody.
i am developing a device driver on solaris 8 sparc.
i have got a few files whith c programs which compiles into object files and then i constract an ar file from them all and insert it into the kernel as a model.
my problem is this : when i have a problem and the system crash i can use mdb to find the function where the problem happend and an offset to the assambler line where it happend, somthing like :
bedfunc + 0x546.
what i need is a way to take an obj file to which i have got the source code and get the offset in that obj file for every line in my c program, this way i will know execatly at which c line in my program there is a problem.
i have tried using objdump but it only prints out assamler code + offsets, i want c code .
i would be gratefull for any help.
tx.
hagai.

Create a custom event and stuff anything you want in there.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

Similar Messages

  • Getting the offset of a placed PDF within the container rectangle

    I need to get the offset of a placed PDF inside of the container rectangle. I have figured out that this information should be available in the transformationMatrix of the placed file. So I do something like:
    var pdfTransform = pdf.transformValuesOf(CoordinateSpaces.pasteboardCoordinates)[0];
    var horzTranslation = pdfTransform.horizontalTranslation;
    var vertTranslation = pdfTransform.verticalTranslation;
    but the coordinates I get back are just weird. The horizontal value seems reasonable, but the vertical is way off what I expect.
    There may be some precondition to doing this that I'm missing. Running the pageitems/TransformValuesOf.jsx sample from the Scripting Guide also gives weird values. That sample creates a rectangle with a center point of [0, 0] and then retrieves the transform. I would expect the translation to be [0, 0] but I actually get [5, -415.95] (horz, vert).
    In that sample it talks about ruler coordinates, so I tried setting document.viewPreferences.rulerOrigin to different values, but that does nothing.
    I'm stumped. Can someone please give me a hint on what's going on here?

    Thanks Peter.
    Some more info: I basically want to get the coordinates of the objects in a placed file in the coordinate space of the containing document. As an extra twist, the placed file is a PDF created from an InDesign document. So, I first extract the coordinates from that InDesign file, then the coordinates for the document that contains the placed PDF, and finally I merge the coordinates of the two documents as if all the objects were contained in a single document. This workflow is then used outside of InDesign to draw frames around all the object boxes on a JPEG created from the document containing the placed PDF.
    Anyhow, to answer my own original question, this seems to work thus far:
    rectOffset = containingRect.resolve(AnchorPoint.TOP_LEFT_ANCHOR, CoordinateSpaces.PASTEBOARD_COORDINATES)[0];
    pdfOffset = pdf.resolve(AnchorPoint.TOP_LEFT_ANCHOR, CoordinateSpaces.PASTEBOARD_COORDINATES)[0];
    horzTranslation = rectOffset[0] - pdfOffset[0];
    vertTranslation = rectOffset[1] - pdfOffset[1];
    That gives the same values as I can see in InDesign when selecting the placed PDF. So far so good ...
    BUT, that is not enough! When placing a PDF using the default option of Crop to Bounding Box, I sometimes get a bit of extra margin (different for different documents) that offsets the translation values. I have no idea where this margin comes from but I need to compensate for it.
    Please help! And let me know if this description is unclear so I can try to explain better.

  • Get line that contains and then get the second and fourth line after that.

    So I have a text file and I want it to find all the lines in the file that contain an @ symbol and then I want it to get that line and the line second and fourth from that line. Then I would export it like this:
    $linewith@ + ":" + $secondline + ":" + $fourthline
    Finding the lines with an @ symbol is easy, but how would I tell it to get the second and fourth line after the line with an @ symbol?
    So I would get the lines with something like this:
    foreach ($line in [System.IO.File]::ReadLines($filename)) {
    if($line.contains("@")){}

    That worked perfectly thanks man! Here is the entire code. I'm sure it could been cleaned up. I'm still learning powershell. 
    $username = "Username"
    $password = "Password"
    $url = "http://URL"
    $ie = New-Object -com InternetExplorer.Application
    $ie.visible=$false
    $ie.navigate($url)
    while($ie.ReadyState -ne 4) {start-sleep -m 100}
    $ie.document.getElementById("username").value = "$username"
    $ie.document.getElementById("password").value = "$password"
    $ie.document.getElementById("click").click()
    start-sleep 20
    $ie.Document.body.innertext | Out-File -FilePath c:\web.txt
    $links = $ie.Document.getElementsByTagName('A')
    $logout = $links | where {$_.innerText -eq 'logout'}
    $logout.click()
    start-sleep 5
    (gc C:\web.txt) | ? {$_.trim() -ne ""} | set-content C:\web.txt
    ( Get-Content C:\web.txt | Select-Object -Skip 2 | ForEach-Object { $_.TrimStart( " " ) } ) | Set-Content C:\web.txt
    start-sleep 5
    $fileContents = Get-Content C:\web.txt
    foreach ($line in $fileContents) {
    if ($line -like '*@*') {
    $line + ":" + $($fileContents[$line.ReadCount+0]) + ":" + $($fileContents[$line.ReadCount+3]) | Out-File -FilePath c:\finish.txt -Append

  • The starting quote marks at the end of a line in my epub file are separated from the words quoted.

    The starting quote marks at the end of a line in my epub file are routinely separated from the word quoted which appears on the next line. The formatting contractor accurance.com who prepared this epub file tells me that this is a feature of Adobe Digital Edition 2.0 and that there is nothing they can do to correct this. Are they correct, or else how can this problem be overcome?

    I'm not sure about buying css style sheets. 
    You don't need one for each book; if you want to have a series of books all with the same general format,
    then they should all use the same style sheet on a given device, but maybe different style sheets for different devices.
    All the books will then have one consistent look on a given device, and a different consistent look on another device.
    ADE only runs on PCs and Macs.  There are lots of different ereader software apps out there for running on different devices.
    For a dedicated device, you are stuck with the reader the device provides.
    For tablets you can download different ereader apps, for example Bluefire (my favourite, ios, Android), Aldiko (android) and DReader and DL Reader (windows RT).
    I don't know if the readers/apps are derived from the same root as ADE in any way and likely to show similar bugs.
    If it is not DRM, you should certainly try on Calibre, which is the most popular (free) ereader app for computers.
    If you care to create a very short non DRM extract (complete with css) and post it somewhere on the web I'll have a quick look.
    If you have inclination to get more involved yourself,
    there is free software called sigil (https://code.google.com/p/sigil/) that will help you get off the ground and experiment.

  • I am batch processing in PS 2014 (watermark and saving as jpeg from ps file). I get the message for some but not all 'this file needs to be saved as a copy with this option'. And then I have to save it manually. Does anyone know why this happens? (It is j

    I am batch processing in PS 2014 (watermark and saving as jpeg from ps file). I get the message for some but not all 'this file needs to be saved as a copy with this option'. And then I have to save it manually. Does anyone know why this happens? (It is just a plain photoshop file, a watermark is added, then save as jpeg - the jpeg is saved to a different folder than the original photoshop file.)  It happens for about 10 of 30/40  files approximately . Thank you, Kathryn

    I believe I have figured it out - I need to flatten the image, even though there are no layers except for layer 0, first.

  • I keep getting the message: "what should firefox do with this file" in Windows XP every time I want to download a file, e.g., adobe, excel, etc. How can this annoying message be deleted? The check box to "open file automatically" does not work!

    I keep getting the message: "what should Firefox do with this file" in Windows XP every time I want to download a file, e.g., adobe, excel, etc. How can this annoying message be deleted? The check box to "open file automatically" does not work!

    cor-el,
    Thanks for your prompt reply. However, the sources you gave do not seem to apply exactly to my situation. I have attached some screenshots that show what the dialogue box looks like for a pdf download, and what my settings in the Apps panel of Options are. You will note in the first screenshot that I have checked the box to handle this file type automatically; however, the next time I try to download a file of that type, the same dialogue box appears looking exactly like the one shown, so checking the "automatic" option appears to do nothing. The files to be downloaded from my Gmail messages are not generic or altered file types - they are shown as pdf, doc, docx, etc. So while your intent was good, your post did not help. Thanks anyway.

  • Getting the error "Adobe Send cannot currently send this file" how can I find out why?

    Getting the error "Adobe Send cannot currently send this file" how can I find out why?

    Hey James,
    Please let me know what kind of file are you trying to send using 'Adobe Send' online service.
    Does this happen with every file you try to send or any specific one?
    Have you tried using a different browser? What happens? Check with your internet connection speed as well.
    Hope to hear from you.
    Regards,
    Anubha

  • Can i get the time capsule to automatically back up my file from my Mac Book Air but have certain files which are only stored on the time capsule and not the computer? Then can i access these files only on the time capsule without connecting it?

    Can i get the time capsule to automatically back up my file from my Mac Book Air but have certain files which are only stored on the time capsule and not the computer? Then can i access these files only on the time capsule without connecting it?

    igonneau wrote:
    Can i get the time capsule to automatically back up my file from my Mac Book Air but have certain files which are only stored on the time capsule and not the computer?
    You can, but how are you going to back up those other files?  When (not if) your Time Capsule fails, you risk losing them.  See #Q3 in Using Time Machine with a Time Capsule for details.
    Then can i access these files only on the time capsule without connecting it?
    Not sure what you mean.  You have to connect a computer, either via Ethernet cable or wirelessly, to read or write to the disk. 

  • In Messages I'm getting "The recipient of this conversation doesn't accept file transfers." Does anyone know how to rectify this issue?

    In Messages I'm getting "The recipient of this conversation doesn't accept file transfers." Does anyone know how to rectify this issue?

    Hi,
    I am reading your post that those are your specs.
    Is that correct ?
    How are they logged in ?
    PDF link to the Snow Leopard server info
    As you may know you have to set your server to Federate to other servers and may need to invoke the port 7777 for the Proxy65 File Transfer port to allow Server to Server File Transfers.
    See this Flash based view of page 17
    To clarify that:
    The app can do App to App File Transfers (most Jabber apps use port 1080 for this).
    It can be assisted by the Server port if required using the Proxy65 File Transfer item.
    However the other end still needs to be logged in to an App rather than  Web Login (Google, Facebook) and be an App that can do File Transfers.
    7:39 pm      Friday; June 20, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • When I tried to run php file I am getting the following error message, "/home/karthick/Desktop/PHP files/third.php could not be opened, because the associated helper application does not exist. Change the association in your preferences." How to fix this?

    When I tried to run php file I am getting the following error message, "/home/karthick/Desktop/PHP files/third.php could not be opened, because the associated helper application does not exist. Change the association in your preferences." How to fix this?

    first, you just asked me to use MS file Explorer to see what the properties were.,..and to ask what happened. Yes - that's on my hard drive. The problem I have is opening word files in a DB that is web enabled.....I've used Firefox browser for that, and everything else , for years...... When I look at the Tools, and options on FireFox., as your support page noted.....NOTHING is listed in the Applications tab....hence my note asking for help. The file I need to open is a Word file out on a web enabled DB. It's not on my hard drive - I have to problems opening docs there - but for that, I don't use Firefox

  • I just started getting the error message below - when I drag a file to TRASH, I get the message "Finder wants to make changes. Type in your password to allow this.  Why ? and how to to stop this request ?

    I just started getting the error message below, when I drag a file to TRASH, I get the message "Finder wants to make changes. Type in your password to allow this."  Why ? and how to to stop this request ?

    There should be nothing native to the OS X which would ask for a password
    or  other information on a restart, unless accompanied by the traditional login
    box with your user name.
    There are adware or marginal products that could be called malware (bad)
    that would impose their presence and some items that could have been
    downloaded by accident or through some corrupted free software site; of
    those some could ask for and gain permission to go through your Mac
    and maybe even run in the background to do other nefarious misdeeds.
    You could see if startup in SafeBoot allows you access past that the Completer.
    Since I don't have a pile of helpful article links on how to resolve various issues
    I'd be looking them up one way or another.
    There are some helpful items in the site http://thesafemac.com - see Tech Guides
    listed  (adware, malware, & performance) plus a link to the adwaremedic page.
    Also, Apple support has a helpful page on how to remove adware and other bits:
    •Remove unwanted adware that displays pop-up ads and graphics on your Mac - Apple Support
    Hopefully this helps somewhat.
    Good luck & happy computing!

  • I recently purchased the newest nano. I have 3 other nano's and iPad   iPhone, oh and iPod touch. When I plug in nano to my mac I get the message "iPod cannot update because it contains files that are used by another application. How can manage this?

    I recently purchased the newest nano. I have 3 other nano's and iPad   iPhone, oh and iPod touch. When I plug in nano to my mac I get the message "iPod cannot update because it contains files that are used by another application. How can manage this?

    dedonred wrote:
    "iPod cannot update because it contains files that are used by another application.
    It means that nano was used on a third-party software or synced from different computer to sync music. Does that nano show in iTunes? If yes, then restore completely. If not, then you may need to head to Apple Store and see what they can do.

  • I keep getting the same message when I try to open files on Internet.  Before viewing doc must agree

    I keep getting the same message when I try to open files on Internet.  Before viewing doc must agree to end license agreement & Quit & relauch browser. I've done this.over & over.  Now what?

    Test Screen Name wrote:
    When you launch Adobe Reader you should get the license agreement.
    - Do you get the license agreement?
    When you launch Adobe Reader you should NEVER get a message that it is already installed. That would mean you were trying to install it. NOT launch it.
    I agree.
    Installer:
    Application:
    If you're launching the first one... you're trying to reinstall it.

  • How to get the results in one line

    Hi
    if i use the script below i get the name of path and then : and in next line i get the results.is there a way to get the results from every path after the : and not in the next line?
    another question - is there a way that the script will not show the server name on every path?
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter
    THC

    If you take you script and pipe it to get member, it will give you a list of various script properties.
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter | get-member
    You will see that the object type returned by "Get-Counter" is Microsoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet.
    TypeName:
    Microsoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet
    Name MemberType Definition
    Equals Method bool Equals(System.Object obj)
    GetHashCode Method int GetHashCode()
    GetType Method type GetType()
    ToString Method string ToString()
    CounterSamples Property Microsoft.PowerShell.Commands.GetCounter.Perfo...
    Timestamp Property datetime Timestamp {get;set;}
    Readings ScriptProperty System.Object Readings {get=$strPaths = ""...
    You can try grabbing different properties, and they will print out differently, displaying the data on the same line in some cases. For example, pipe your output to a "foreach-object" block, and then for each object print out the CounterSamples property.
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter | foreach-object { ($_).CounterSamples }
    This should all print on one line now. However, you also asked if there was a way to not have the server print out on every line. The way to control the format of these outputs is to use the "format-table" cmdlet. So you would pipe your output to format-table
    and then give it various options. This is how you would pipe it (without any options).
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances |
    Get-Counter | object { ($_).CounterSamples | format-table }#OR USE YOUR ORIGINAL CODE(Get-Counter -ListSet LogicalDisk).PathsWithInstances |
    Get-Counter | format-table }
    Now, it's up to you to give format-table the options you want. With no options, output will look unchanged. To see what options are available to you, use get-help.
    get-help format-table
    I hope this helps!
    Thank for all the info...

  • Getting the documents in open line items for t-code f-53

    Hello gurus,
    In one scenario i want to get the document numbers against which the accounting document number is created after posting(saving) in t-code F-53. I am using BTE event -00001030 (posting of standard data). In this function module i am getting the tables t_bkpf and t_bseg etc.. in which the newly generated document number (Belnr) is present in the table. But the field AUGBL is blank. I want to get the document for which this clearing is being done. How can i get the open line items?

    Thanks, I solved the problem

Maybe you are looking for