public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug gdb/13508] New: gdb doesn't clean trap flag @ 2011-12-16 3:02 andersonc0d3 at gmail dot com 2011-12-16 3:11 ` [Bug gdb/13508] " andersonc0d3 at gmail dot com 2011-12-16 14:26 ` andersonc0d3 at gmail dot com 0 siblings, 2 replies; 3+ messages in thread From: andersonc0d3 at gmail dot com @ 2011-12-16 3:02 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=13508 Bug #: 13508 Summary: gdb doesn't clean trap flag Product: gdb Version: 7.3 Status: NEW Severity: minor Priority: P2 Component: gdb AssignedTo: unassigned@sourceware.org ReportedBy: andersonc0d3@gmail.com Classification: Unclassified -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug gdb/13508] gdb doesn't clean trap flag 2011-12-16 3:02 [Bug gdb/13508] New: gdb doesn't clean trap flag andersonc0d3 at gmail dot com @ 2011-12-16 3:11 ` andersonc0d3 at gmail dot com 2011-12-16 14:26 ` andersonc0d3 at gmail dot com 1 sibling, 0 replies; 3+ messages in thread From: andersonc0d3 at gmail dot com @ 2011-12-16 3:11 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=13508 --- Comment #1 from Anderson Eduardo <andersonc0d3 at gmail dot com> 2011-12-16 03:10:42 UTC --- Sorry lack of information, I pushed enter unintentionally. When I use pushf instruction, gdb set trap flag but doesn't clean when return to my program generating a SIGTRAP signal. (gdb) disass main Dump of assembler code for function main: 0x080483b4 <+0>: push %ebp 0x080483b5 <+1>: mov %esp,%ebp 0x080483b7 <+3>: pushf 0x080483b8 <+4>: popf 0x080483b9 <+5>: mov $0x0,%eax 0x080483be <+10>: pop %ebp 0x080483bf <+11>: ret End of assembler dump. (gdb) b *main+3 Breakpoint 1 at 0x80483b7: file trapflag.c, line 4. (gdb) r Starting program: /home/XXXXXX/Coding/asm/trapflag Breakpoint 1, main () at trapflag.c:4 4 asm("pushf;popf"); (gdb) p/x $eflags $1 = 0x246 (gdb) x/x $esp 0xbfd91b18: 0x00000000 (gdb) x/i $eip => 0x80483b7 <main+3>: pushf (gdb) ni 0x080483b8 4 asm("pushf;popf"); (gdb) x/x $esp 0xbfd91b14: 0x00000346 (gdb) x/i $eip => 0x80483b8 <main+4>: popf (gdb) ni 5 return 0; (gdb) p/x $eflags $2 = 0x346 (gdb) c Continuing. Program received signal SIGTRAP, Trace/breakpoint trap. main () at trapflag.c:6 6 } (gdb) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug gdb/13508] gdb doesn't clean trap flag 2011-12-16 3:02 [Bug gdb/13508] New: gdb doesn't clean trap flag andersonc0d3 at gmail dot com 2011-12-16 3:11 ` [Bug gdb/13508] " andersonc0d3 at gmail dot com @ 2011-12-16 14:26 ` andersonc0d3 at gmail dot com 1 sibling, 0 replies; 3+ messages in thread From: andersonc0d3 at gmail dot com @ 2011-12-16 14:26 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=13508 Anderson Eduardo <andersonc0d3 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andersonc0d3 at gmail dot | |com -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-12-16 14:26 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-12-16 3:02 [Bug gdb/13508] New: gdb doesn't clean trap flag andersonc0d3 at gmail dot com 2011-12-16 3:11 ` [Bug gdb/13508] " andersonc0d3 at gmail dot com 2011-12-16 14:26 ` andersonc0d3 at gmail dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).