Creating own macros for adb

Hi,
I was looking at the 'proc' adb macro and it is basically printing
all the process information offsetting from the process base address.
Question is how does the macro know what info is at what offset ?
Ofcourse /usr/include/sys/proc.h would be one source.
How do you find out what information is at what offset ? eg., how does the proc macro know that ppid is at a particular offset ?
I am trying to find information to write a tool which will let one navigate all kernel data structures logically (something line 'analyse/system' tool found on VMS).
Tried adbgen, but that still needs offset info.
Thanks,
-A

Hi - I believe adbgen will figure out the offsets within the structures. The .adb file contains the necessary includes and then just takes information on headers and the field to be printed (and what type to print the value as).
Something you may want to consider is using mdb or the Modular DeBugger. It is new in Solaris 7/8 and allows you to run you own dynamically loaded code from the debugger. Since the modules you can run are written in C you can make decisions and print out information far more complex than adb.
Refer to the Solaris Modular Debugger Guide on docs.sun.com if this is something that interests you.
Alan
Sun Developer Technical Support
http://www.sun.com/developers/support

Similar Messages

  • How to create a macro for a planning type in MC8b transaction

    Hi,
    I am presently working for a product allocation demand, which have a information structiure with characteristic and key field.
    the characteristic are production allocation quantity, incoming order quantity, and open order quantity.
    i have created a planning type in which the data updation takes from the excel file to the planning type in mc95.
    but i need to create a macro for this planning type .
    can any body give the details information how to create a Macro for a planning type.
    Thanks and regards
    GopalKrishna

    Dear Gopal
    May be the link would be helpful to you.
    [Planning Types and Macros|http://help.sap.com/saphelp_46c/helpdata/en/a5/631cc443a211d189410000e829fbbd/frameset.htm]
    Drill down the left tab once you opened the link, for more information.
    Thanks
    G. Lakshmipathi

  • How do you create a macro for Acrobat Convert Multiple Reports action in Microsoft Access

    I have several reports in microsoft access and I've been able to combine them into a single PDF file using the Acrobat Convert Multiple Reports feature. Is there a way to create a macro for this action? I would like to create a time event for this procedure.
    Any help I get on this is greatly appreciated.
    Thanks

    CTPetEng,
    Since this question is not related to CreatePDF, but rather to Acrobat, I'm moving your question to the Acrobat forum.
    Dave

  • How to create own button for closed captioning

    Hi,
    I have created my own buttons for play, pause, exit etc. But I do not know how to create button to show closed captioning.  I tried few hours but I give up. What I need to do?:
    First clik - closed captioning will appear
    Second clik - closed captioning will disapear.
    And so on appear/disapear/appear/disapear
    Help please!
    Poul

    Have a look at: Toggle Shape buttons - Captivate 6 - Captivate blog
    Replace the system variable cpCmndMute by cpCmndCC and you'll have the choice between different scenarios.

  • Creating a macro for export to excel using a custom map

    Hi all
    I've created a custom map to export a custom table to excel, which works. Then tried to create a macro to do this export for me and it was stopped on the 'File; Save As' part of the export (almost the very beginning)
    Looking for suggestions for best practises or anything to watch out for when creating a macro to export (or any help in general in this area...books, etc)
    Using MSP 2010 (Pro)...we have server but I was attempting this as a stand-alone project
    Thanks in advance for your response
    Shelleyb MCTS

    Firstly make sure you have SP2 installed. Then try recording a macro of you manually saving to Excel with a pre-saved map. Compare the recorded code and your code.
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • Creating own Plug_in for CrystalReports

    Hi together,
    does anybody knwo how to develop an own plug-in for crystalreports? - we intend to create a similiar one as the plug-in for integration kit for BI.
    Is there a how to available?
    Thanks, Stefan

    Please post this to one of the groups under ...." Business Objects SDK Application Development "

  • How can I write a script or create a macro for gaming.

    Now I know this may be a petty and or silly question for most apple users but I am going to throw it out there anyway. I play an online game called Battle Pirates. When you make an attack you have up to 5 ships to control. I am looking for a way to control multiple ships with a "macro" or "script" and using only 1 key. For example: Select ship 2, 3, and 4 while leaving ship 1 and 5 alone. Yea I know it is childish but indulge me. Hahaha.
    I know you can write Macros with Windows and you can even use something called "Auto Hotkey". I just wanted to see if anyone knew of a way to do this with what Apple already has in place. What I have commonly found out with Apple products is that since I have come from being a Windows user to Apple, I usually overthink the process. LOL. Mac's are soooooo much easier....if you know where to start.
    Any help would be greatly appreciated! By the way, I have read the tutorial on "Script Editor" but I am having trouble understanding it mostly because you kinda would have to have SOME programming knowledge. Obviously I lack in that area. Thanks for bearing with me.

    Can you expand on that? How do you use automator in your game? Can you give me a rough idea of how and what you do with it? I have watched a tutorial on Automator and it seems more useful for documents.

  • Trying to Create a Macro...it's not going well

    Hello! 
    I am trying to create a macro for this Questionnaire I am building. I need it to pull information from 3 or so different tables in word (all in same doc) and export them into Excel. I have fields that gather personal info like Name, Address, Telephone Number,
    Email, etc, but also fields that take info like Tax Filing State and Tax ID number. There will be about 40 fields in all when the questionnaire is done. Each field is being filled in using a legacy tool- text form field. Is there some sort of macro shell I
    can use that I can fill in with each field when I have completed it? I have office 2013, not sure if that matters.
    Thank you!

    The following Excel macro will pull the data from all formfields in all Word files in a specified folder into the active worksheet. To run it, simply press Alt-F8 and choose the 'GetFormData' macro. You'll be asked to navigate to the source folder.
    Once you've done that, the macro will populate the worksheet. The first row will be left alone, so you can populate it with headings before or after running the macro.
    Sub GetFormData()
         'Note: this code requires a reference to the Word object model
        Application.ScreenUpdating = False
        Dim wdApp As New Word.Application
        Dim wdDoc As Word.Document
        'Dim CCtrl As Word.ContentControl
        Dim FmFld As Word.FormField
        Dim strFolder As String, strFile As String
        Dim WkSht As Worksheet, i As Long, j As Long
        strFolder = GetFolder
        If strFolder = "" Then Exit Sub
        Set WkSht = ActiveSheet
        i = WkSht.Cells(WkSht.Rows.Count, 1).End(xlUp).Row
        strFile = Dir(strFolder & "\*.doc", vbNormal)
        While strFile <> ""
            i = i + 1
            Set wdDoc = wdApp.Documents.Open(Filename:=strFolder & "\" & strFile, AddToRecentFiles:=False, Visible:=False)
            With wdDoc
                j = 0
                'For Each CCtrl In .ContentControls
                    'j = j + 1
                    'WkSht.Cells(i, j) = CCtrl.Range.Text
                'Next
                For Each FmFld In .FormFields
                    j = j + 1
                    WkSht.Cells(i, j) = FmFld.Result
                Next
            End With
            wdDoc.Close SaveChanges:=False
            strFile = Dir()
        Wend
        wdApp.Quit
        Set wdDoc = Nothing: Set wdApp = Nothing: Set WkSht = Nothing
        Application.ScreenUpdating = True
    End Sub
    Function GetFolder() As String
        Dim oFolder As Object
        GetFolder = ""
        Set oFolder = CreateObject("Shell.Application").BrowseForFolder(0, "Choose a folder", 0)
        If (Not oFolder Is Nothing) Then GetFolder = oFolder.Items.Item.Path
        Set oFolder = Nothing
    End Function
    Note the commented-out code that allows the macro to work with content controls as well or instead.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Creating a Macro with Adobe Acrobat X v.10.0.0 HELP!

    Hello,
    I am new to Adobe and was wondering if there is a way to create a macro for my situation.
    I am recording voting decisions from a pdf into an excel spreadsheet. I need to go through multiple pdf files and find the pages where votes have taken place. The picture below shows a vote circled in red.
    I then need record the following information:
        1) The number of 'yes' votes and the number of 'no' notes
        2) The names of the people who voted yes and the names of the people who voted no
        3) The pdf page number of the vote
    I would like to compile of the information in an excel file if possible for later use in statistics software (spss).
    There are hundreds of individual votes I need to record and would love it if someone can help guide me in creating a macro for tedious project.
    Thank you!!

    With Reader no. This is the Reader forum. If you have a properly designed form, you can collect the data from the forms and export the data into a spreadsheet. The best way to do this is to host the form on the web. If you wish forms information returned by email, you will be limited to the number of responses you can process if you have them return the entire form. But if you have them return and fdf or xfdf there is no limit to the number of responses you will be allowed to process.

  • How to create own tags in JSF?

    I am using xhtml, So I need to create own tags for retrieving data from database & query for data. So Just explain me the procedure for doing so. I m using hsql database...
    Thanking you
    --Mansingh Shitole                                                                                                                                                                                                                                                                                                                                                                                                                           

    ms_shitole wrote:
    I am using xhtml, So I need to create own tags for retrieving data from database & query for data. So Just explain me the procedure for doing so. I m using hsql database...It sounds to me that 1) using are using Facelets and 2) you are looking for a replacement for the JSTL SQL tags. If this is the case, I'll quote the J2EE Tutuorial:
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSTL7.html says:
    The JSTL SQL tags for accessing databases listed in Table 14-8 are designed for quick prototyping and simple applications. For production applications, database operations are normally encapsulated in JavaBeans components.

  • Macros for Pages??

    I'm new to Mac.  I need to create a "macro" for use in pages that will: go to the beginning of the line then count over 32 characters (and also go to the end of the line and count back 32 characters). I do this hundreds of times per document when creating closed captions.  Can someone help?

    Actually, that scriptlet is not right: it goes to the beginning of the *paragraph*, so if you are dealing with more than one line, it one work as expected.  But this, I think. will:
    activate application "Pages"
    tell application "System Events" to tell process "Pages"
      key code 123 using {command down} # go to beginning of line
              repeat 32 times
      key code 124 # move right 32 characters
              end repeat
    end tell

  • I have multiple devices (imacs, lap tops and ipads) all connected to a NAS server.  Can I create a user for myself and one for my wife, and each have our own apple ID, and Itunes accounts, but all share the same media on NAS drives?

    I have multiple devices (iMacs, Lap tops, Ipads) all connected to a Nas Drive.  Can I create a user for myself and one for my wife and we each have our own apple ID's, Itunes etc, but share the same data on the hard drives?  So when she logs in, and sync's her ipads, they will sync with her stuff and when I do the same under my user account, on the same device, my ipads will sync with my stuff?

    You can share the same Apple ID for purchasng form the iTunes and app stores without any problems, but you should all used separate iCloud accounts with separate Apple IDs.  (You are not required to use the same ID for iCloud and other services as you do for the iTunes store.)  This will prevent you from ending up with merged data.  You should also use separate Apple IDs for iMessage and FaceTime or you will end up getting each other's text messages and FaceTime calls.
    This article may be of interest: http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/, as well as this video: http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l.

  • HT5622 We are a family of 4, each with their own apple device. Is it best for us to set up individual apple ID's for things like ITunes? If we do can the same e-mail address be used for all of them or do we need to create e-mails for the kids? Thank-you

    We are a family of 4, each with their own apple device. Is it best for us to set up individual apple ID's for things like ITunes? If we do can the same e-mail address be used for all of them or do we need to create e-mails for the kids?
    Thank-you

    1. Yes, it is.
    2. You may be able to use the same address by adding a plussed suffix to it, such as [email protected] If that doesn't work, create separate emails.
    (103279)

  • HT1711 When I load one of my own CD's onto itunes, it creates separate albums for each unique pairing (ie: singer/composer or singer/orchestra). How can I keep all the cuts together on one album?

    When I load one of my own cd's onto itunes, it creates separate albums for each unique pairing (ie: singer/composer or singer/orchestra). I end up with
    the cuts scattered over several albums.  How do I keep all the cuts on an album together rather than divided between several albums? I'm brand new with this technology, so I need your information in simple terms.  Thank-you.

    Generally all you need to do is fill in an appropriate Album Artist. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    The site could do with updating as some options have changed with iTunes 11, but the principles are the same.
    tt2

  • How to create xpi file for my own extension?

    I have created my own extension and directly added profile extension folder in my system.its working fine. but while installing extension using .xpi file its produce error "Install script not found
    -204".Please explian me how to create .xpi file for my extension folder.
    I hope you can help this issues.
    Thanks in advance.
    Regards
    vasanthi

    See this:
    https://developer.mozilla.org/en/Building_an_Extension

Maybe you are looking for

  • Memory problem with ITS

    Hello friends, we are having memory problem with integrated ITS.. on one application server all memory of ITS is getting exhausted. We think few users take lots of memory and it never gets released. I checked Note 742048 - Integrated ITS, memory requ

  • Download the File in CSV format

    hI, Can any one tell me F.M to down load to CSV format in BW System. In BW system we donot have F.M SAP_CONVERT_TO_CSV_FORMAT.

  • Dining & Dining2 examples

    Hello, I have tried the dining examples with: Oracle,PointBase and MySQL I have managed to connect to the databases and get the corresponding schema. Deployment was successful in each try, and I always meet the same errors: transaction errors and per

  • Email reply from ATT regarding IPhone upgrades

    I finally got a long email back from ATT. Most of it was the same rhetoric thats in their fine print. Here is part of the email from the man who emailed me back. Does that mean we are basically screwed? I went on my account info to check pricing for

  • Import CD Track Title to iTune

    Finally I fixed the problem of not able to import audio CD to iTune by changing the registry. There still remain the problem of not being able to import the track title. I used iTune in Windows XP. Can anybody help?