GDB support in LX is very rudimentary at the moment. Several facilities used by GDB, include x86 debug register emulation, are not yet complete. Stopping a running process and querying register state is roughly the limit of its present capabilities.
On 23 May 2016 at 21:49, Tim Tang <[email protected]> wrote: > Hi Community, > > I want to run GDB <https://www.gnu.org/software/gdb/> on lx branded zone > but crashed. > > GDB Version: GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7 > LX branded dataset: d61a1ef2-12db-11e6-ad97-770e083f1374 centos-7 > 20160505 linux lx-dataset 2016-05-05 > PI: SmartOS Live Image v0.147+ build: 20160512T071413Z > > Following is the steps: > > - Compile my test.c file with command: cc -g test.c -o test > - gdb test > (gdb) break 16 > Breakpoint 1 at 0x400566: file test.c, line 16. > (gdb) info break > Num Type Disp Enb Address What > 1 breakpoint keep y 0x0000000000400566 in main at test.c:16 > (gdb) r > Starting program: /root/playground/test > Couldn't read debug register: Input/output error. > (gdb) quit > A debugging session is active. > > Inferior 1 [process 67018] will be killed. > > Quit anyway? (y or n) y > > > *I want to quit the process but it stuck, i have to force kill it. Then > i got a core file.* > > I am not so good at debug the core dump file with MDB, so anyone can help > me to figure out this issue? > > Attached file: core/test.c > > Many Thanks! > > Tim > > -- > > *Blog -> http://timtang.me <http://timtang.me>* > *Email -> [email protected] <[email protected]>* > *smartos-discuss* | Archives > <https://www.listbox.com/member/archive/184463/=now> > <https://www.listbox.com/member/archive/rss/184463/26937779-40cf8a10> | > Modify > <https://www.listbox.com/member/?&> > Your Subscription <http://www.listbox.com> > ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
