Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How to Read Program Architecture from GDB/MI?
@ 2016-07-25  5:31 Paramjot Oberoi
  2016-07-25 17:27 ` dwk
  0 siblings, 1 reply; 7+ messages in thread
From: Paramjot Oberoi @ 2016-07-25  5:31 UTC (permalink / raw)
  To: gdb

Hi all,

I am attempting to get the CPU architecture of the currently debugged
program via a GDB/MI command. I'm not sure what's I'm doing wrong:

Console interpreter looks good:
(gdb) show architecture
The target architecture is set automatically (currently i386)

MI interpreter succeeds without any data:
(gdb) interpreter-exec mi "-gdb-show architecture"
^done

If I set the arch to auto, then query with MI I get "auto" back...:
(gdb) set arch auto
The target architecture is set automatically (currently i386)
(gdb) interpreter-exec mi "-gdb-show architecture"
^done,value="auto"

Any advice on how I can query the architecture in GDB/MI mode? Thanks
in advance, I appreciate it.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-07-28  5:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-25  5:31 How to Read Program Architecture from GDB/MI? Paramjot Oberoi
2016-07-25 17:27 ` dwk
2016-07-26  6:27   ` Paramjot Oberoi
2016-07-26  8:09     ` Andrew Burgess
2016-07-26 18:36       ` Paramjot Oberoi
2016-07-26 23:22         ` Andrew Burgess
2016-07-28  5:32           ` Paramjot Oberoi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox