- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I'm using idb with gui in Linux. I create a ~./idbrc file with some variable settings for idb. However, after I launch idb and then use the "print" command to print variables that are set in ~/.idbrc, it doesn't work.I guess the default option turns GDB mode on.
My question is which file is used to initialize the idb variables, and how can I do that?
P.S. An example of my .idbrc file is
set $maxarrlen = 500
thanks in advance!
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Since 11.0 version of the Intel IDB Debugger, the command line version (idbc) as well as the GUI version (idb) are running in GDB mode by default. So you should use the .gdbinit startup file only. In case you needtorun the debugger in the compatibily modes -idb or -dbx, you need touse.idbrc asstartup file.
Does this help?
Regards, Hubert.
Does this help?
Regards, Hubert.
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you want gdb mode, I suppose you require (since compiler version 11.0)
idbc -gdb ......
I see that .idbrc is described in the help file, but the help file for compiler version 11.1 and later doesn't appear fully up to date. I submitted a question on this on premier.intel.com issue 601980 .
Why are you quoting a MacOS if you are running linux?
idbc -gdb ......
I see that .idbrc is described in the help file, but the help file for compiler version 11.1 and later doesn't appear fully up to date. I submitted a question on this on premier.intel.com issue 601980 .
Why are you quoting a MacOS if you are running linux?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
First, to my problem. I want to set a variable for idb an arbitrary value, i.e. $maxarrlen = 300 (the default is 1024). And I also want this setting to be ready automatically after I launch idb. I wrote the following in .idbrc
set $maxarrlen = 300
However, this does not work unless I append the command 'idb' with an argument '-dbx'. I want to be in GDB mode, and also have this setting in .idbrc be ready after I run idb. But I don't know how to do that :(
Second, that's just my signature.My mobile buddy is a Mac, and my real weapon is a workstation running Linux. I really like working in a Linux environment, but for one thing, I can not be always with a workstation when I have some ideas. For another, all my favorite games just do not support Linux. So Mac seems to be a good substitute. That's just my personal option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To be specified, see the following output:
[plain]xwu@debian:~$ cat .idbrc set $maxarrlen = 300 xwu@debian:~$ idbc Intel Debugger for applications running on Intel 64, Version 11.1, Build [1.2097.2.344] (idb) print $maxarrlen $1 = 1024 (idb) quit xwu@debian:~$ idbc -dbx Intel Debugger for applications running on Intel 64, Version 11.1, Build [1.2097.2.344] (idb) print $maxarrlen 300 (idb) quit xwu@debian:~$ [/plain]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Since 11.0 version of the Intel IDB Debugger, the command line version (idbc) as well as the GUI version (idb) are running in GDB mode by default. So you should use the .gdbinit startup file only. In case you needtorun the debugger in the compatibily modes -idb or -dbx, you need touse.idbrc asstartup file.
Does this help?
Regards, Hubert.
Does this help?
Regards, Hubert.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, Hubert!
This helps a lot!
![](/skins/images/DF2E495CEC88D713A66401CF495CD875/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page