Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Learning 64-bit ASM (amd64) on Linux
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Thu Oct 31, 2013 4:30 am    Post subject: Reply with quote

Yamakuzure: precisely. And if you've never learnt any asm whatsoever, none of it will make the slightest bit of sense. Whereas if you've learnt at least one to the level of coding up a basic app (which could be as simple as wc) then it's pretty easy to read an insn set manual for a new one, should that be needed when you're trying to work out what the compiler did with your code.

As you say that's most often in the context of single-stepping with gdb (or the GDB Plugin in Kate, which is just loverly. ;)

BTW for those who don't know, there's #gdb on freenode, as well as ##workingset for toolchain-related issues (best place to learn about autotools, as well as portable make.) [IRC: chat.freenode.net.]
You can also use: objdump -d to get a disassembly of your object files (RTM.)
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2284
Location: Adendorf, Germany

PostPosted: Fri Nov 01, 2013 9:33 am    Post subject: Reply with quote

steveL wrote:
As you say that's most often in the context of single-stepping with gdb (or the GDB Plugin in Kate, which is just loverly. ;)
Must try that, then. My main IDE is Code::Blocks, but the GDB integration is not really helpful for some time now. I am often ending up using "gdb <program> --tui -p <pid>" instead. While it does its job, the main advantage to have IDE integration is the possibility to directly change the sources, or browse around in other files.
Thank you very much for the hint!
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Fri Nov 01, 2013 5:18 pm    Post subject: Reply with quote

You're more than welcome, Yamakuzure :-)

You're right ofc: what you want from a debugger plugin is to single-step through your source files which is exactly what Kate does, and blew me away when i first tried it: it simply is IDE functionality.

That's why I'm so enthusiastic about the recent kate work; although it always used to be because I like a lightweight editor that doesn't take up lots of resource, but still does enough, more and more I'm seeing just how useful it is, when you can add in the things you need, while leaving out the ones you don't. Thus I have a "Syntax" session which is purely for working on Kate highlighter files, which only has the XML validation plugin and my standard File and Documents viewers. I don't use XML for anything else, so none of my other sessions even needs to load it, but they typically have CTags and the Build plugin (for make integration.) I don't use gdb much (I tend to see it as a failure if I need to single-step C, but it does happen) so it's only in the Asm session, and one project's main session.

The latter is the main project I'm working on, and actually has several sessions depending on which aspect I want to work with; "Attach as Tab to.." in KDE 4.9+ has made this incredibly useful. it stops the taskbar idiocy being a problem (I now have windows overlapping the main taskbar at the top, which gives me more vertical space, which I love with a 4:3 LCD: better for my neck as well;) and also works wonderfully for groups, so I might have eg "System" and "Integration" sessions grouped, with both being visible as tabs. It's so elegant and so useful, because it's managed by the WM, and does not require anything from the apps themselves: a perfect example of how to use the Unix multi-processing model, with very little code, and no breaking of encapsulation.

More recently kate has added very good new python integration (I don't use it; I think it comes in with the python USE flag) which would be ideal for working on things like portage or pkgcore, or anything using their APIs (I believe gentoolkit also has some really nice python APIs, which dol-sen has done some great work on, where the portage APIs need extension.) To my knowledge, zmedico uses Kate for portage development, unless he's changed editor in the last 2 years or so.

Apart from that, the Kate javascript API is essentially equivalent to LISP in emacs, although perhaps not as extensive. And if you need to, one can always extend kate, either with a C++ plugin for kate itself (same as the GDB and Build plugins), or a KTextEditor plugin which will also work with kdevelop and kwrite, as well as python plugins if you have USE=python.

The best thing I've found, is that the developers are incredibly pleasant to deal with. They actually foster contribution, instead of putting people off with disparaging comments whenever someone says something they disagree with. That does not mean they are pushovers, by any means. They're mostly professional developers, even if they are unpaid for their Kate work; they tend to work on it because it helps their real work. It makes a very good testbed for work on languages and compilers.

Regards,
steveL.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sun Nov 24, 2013 8:46 pm    Post subject: Reply with quote

steveL wrote:
miket wrote:
What I don't have, alas, are recommendations for setting up such an environment or even for those tie-ins that steveL is looking for for using vim (which is the only editor I'd want to use).

Well the vim link in main post is actually to Kate vi input mode ;-) so you could try that.. Nah just kidding, if you have vim setup for make then you can use that, or just tell it to run the same commands as given for kate..

Apposite post from a die-hard vim user.
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2284
Location: Adendorf, Germany

PostPosted: Mon Nov 25, 2013 10:30 am    Post subject: Reply with quote

steveL wrote:
steveL wrote:
miket wrote:
What I don't have, alas, are recommendations for setting up such an environment or even for those tie-ins that steveL is looking for for using vim (which is the only editor I'd want to use).

Well the vim link in main post is actually to Kate vi input mode ;-) so you could try that.. Nah just kidding, if you have vim setup for make then you can use that, or just tell it to run the same commands as given for kate..

Apposite post from a die-hard vim user.
steveL, thanks a lot! This is not only a nice read, a user wrote a comment about the projects plugin and points to http://kate-editor.org/2012/11/02/using-the-projects-plugin-in-kate/ - Exactly what I wanted to ask you about today, because I couldn't get the projects plugin to work. Now I can. ;)
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Wed Nov 27, 2013 12:52 pm    Post subject: Reply with quote

Yamakuzure wrote:
A user wrote a comment about the projects plugin and points to http://kate-editor.org/2012/11/02/using-the-projects-plugin-in-kate/ - Exactly what I wanted to ask you about today, because I couldn't get the projects plugin to work. Now I can. ;)

Heh, yeah that's a handy page.

Don't forget #kate on IRC: chat.freenode.net. (I'm igli.)
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Thu Feb 06, 2014 11:30 pm    Post subject: Reply with quote

You should try the kate command-line if you haven't already: press F7 (default.) vim users especially will appreciate this, since it matches :s/\t/ /g for example.

You use s/jsre/replace in line/g or: %s/js(re)/replace &1 all lines/g as per vim, but using kate regexen which are effectively the same as js ones, pretty close to pcre afaict.

So you have \b and \B, along with (?=positive) and (?!negative lookahead) and standard expansions like \n and \t.

Flags allowed are g (line-global) and i (case-insensitive).

There are an awful lot of other commands (see the first url); and you can make your own scriptlets to run as commands using javascript (scroll down to: "Command Line Scripts". The js API common to both command-line and syntax highlighting scripts, is below that, the last section.)
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Thu May 15, 2014 12:13 pm    Post subject: Reply with quote

Someone brought this up, looked interesting:
http://www.pythian.com/blog/using-katesql-to-connect-to-an-oracle-database-in-kate/

He can't get it working on Ubuntu (it's from 2012, which might have some bearing), but I figured it'll be a lot easier on Gentoo, if someone is working with Oracle.

Yes this has turned into a thread on kate; I'm just keeping it all in one place, as it's more useful then.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum