This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: breakpoints/1738: Single stepping and signals don't interact well
- From: Daniel Jacobowitz <drow at false dot org>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 26 Aug 2004 13:48:01 -0000
- Subject: Re: breakpoints/1738: Single stepping and signals don't interact well
- Reply-to: Daniel Jacobowitz <drow at false dot org>
The following reply was made to PR breakpoints/1738; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@false.org>
To: Andrew Cagney <ac131313@redhat.com>, gdb-gnats@sources.redhat.com
Cc:
Subject: Re: breakpoints/1738: Single stepping and signals don't interact well
Date: Thu, 26 Aug 2004 09:45:17 -0400
On Wed, Aug 25, 2004 at 06:08:01PM -0000, Andrew Cagney wrote:
> The following reply was made to PR breakpoints/1738; it has been noted by GNATS.
>
> From: Andrew Cagney <ac131313@redhat.com>
> To: gdb-gnats@sources.redhat.com
> Cc:
> Subject: Re: breakpoints/1738: Single stepping and signals don't interact
> well
> Date: Wed, 25 Aug 2004 14:02:01 -0400
>
> Can you add the output from
>
> (gdb) set debug target 1
>
> for the step case?
>
> I'm reading this:
>
> > This leads to creating a breakpoint and calling keep_going. But breakpoints are not inserted so the new breakpoint is not inserted. keep_going causes us to single-step again,
> > but deliver the SIGALRM. Breakpoints are removed, so we stop after handler has run [oops]. At this point trap_expected is set (it was set in proceed because we were stepping over a breakpoint). Normally we would see that we have stepped out of the stepping range and stop... but step_resume_breakpoint is set. This triggers:
>
> to mean that you see:
>
> target_resume (-1, step, SIGALRM)
>
> in the output.
That's right (well, it has the PID). There's a pause in the transcript
before typing "n" to let the SIGALRM catch up. The highlight is this:
target_wait (-1, status) = 2861, status->kind = stopped, signal = SIGALRM
target_resume (2861, step, SIGALRM)
target_wait (-1, status) = 2861, status->kind = stopped, signal = SIGTRAP
target_resume (-1, continue, 0)
target_wait (-1, status) = 2861, status->kind = exited, status = 5
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) break func2
Breakpoint 1 at 0x80483f3: file /opt/src/gdb/src/gdb/testsuite/gdb.base/signals.c, line 35.
(gdb) set debug target 1
(gdb) run
Starting program: /opt/src/binutils/x86-as/gdb/testsuite/gdb.base/signals
target_acknowledge_created_inferior (2861)
target_reported_exec_events_per_exec_call () = 1
target_wait (-1, status) = 2861, status->kind = stopped, signal = SIGTRAP
target_fetch_registers (eip) = 200c0040 0x40000c20 1073744928
target_terminal_init ()
target_terminal_inferior ()
target_terminal_inferior ()
target_resume (-1, continue, 0)
target_wait (-1, status) = 2861, status->kind = stopped, signal = SIGCHLD
target_fetch_registers (eip) = 10e4ffff 0xffffe410 4294960144
target_terminal_inferior ()
target_resume (-1, continue, SIGCHLD)
target_wait (-1, status) = 2861, status->kind = stopped, signal = SIGCHLD
target_fetch_registers (eip) = 10e4ffff 0xffffe410 4294960144
target_terminal_inferior ()
target_resume (-1, continue, SIGCHLD)
target_wait (-1, status) = 2861, status->kind = stopped, signal = SIGCHLD
target_fetch_registers (eip) = 10e4ffff 0xffffe410 4294960144
target_terminal_inferior ()
target_resume (-1, continue, SIGCHLD)
target_wait (-1, status) = 2861, status->kind = stopped, signal = SIGTRAP
target_fetch_registers (eip) = 200c0040 0x40000c20 1073744928
target_post_startup_inferior (2861)
target_xfer_memory (0x80495a4, xxx, 208, read, xxx) = 208, bytes = 01 00 00 00 ...
target_xfer_memory (0x80483f3, xxx, 1, read, xxx) = 1, bytes =
ff
target_xfer_memory (0x80483f3, xxx, 1, write, xxx) = 1, bytes =
cc
target_insert_breakpoint (0x80483f3, xxx) = 0
target_xfer_memory (0x4000c690, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x4000c690, xxx, 1, write, xxx) = 1, bytes =
cc
target_insert_breakpoint (0x4000c690, xxx) = 0
target_terminal_inferior ()
target_resume (-1, continue, 0)
target_wait (-1, status) = 2861, status->kind = stopped, signal = SIGTRAP
target_fetch_registers (eip) = 91c60040 0x4000c691 1073792657
target_prepare_to_store ()
target_store_registers (eip) = 90c60040 0x4000c690 1073792656
target_xfer_memory (0x80483f3, xxx, 1, write, xxx) = 1, bytes =
ff
target_remove_breakpoint (0x80483f3, xxx) = 0
target_xfer_memory (0x4000c690, xxx, 1, write, xxx) = 1, bytes = 55
target_remove_breakpoint (0x4000c690, xxx) = 0
target_terminal_ours_for_output ()
target_xfer_memory (0x80495a4, xxx, 208, read, xxx) = 208, bytes = 01 00 00 00 ...
target_xfer_memory (0x40016e68, xxx, 4, read, xxx) = 4, bytes =
78 6e 01 40
target_xfer_memory (0x40016e78, xxx, 20, read, xxx) = 20, bytes =
00 00 00 00 dc 28 01 40 a4 95 04 08 b8 77 01 40 ...
target_xfer_memory (0x400177b8, xxx, 20, read, xxx) = 20, bytes =
00 00 00 00 dc 28 01 40 78 e5 ff ff 10 7a 01 40 ...
target_xfer_memory (0x400128dc, xxx, 4, read, xxx) = 4, bytes = 00 68 5f 65
target_xfer_memory (0x40017a10, xxx, 20, read, xxx) = 20, bytes =
00 30 03 40 f0 79 01 40 30 50 05 40 90 7c 01 40 ...
target_xfer_memory (0x400179f0, xxx, 4, read, xxx) = 4, bytes = 2f 6c 69 62
target_xfer_memory (0x400179f4, xxx, 4, read, xxx) = 4, bytes = 2f 74 6c 73
target_xfer_memory (0x400179f8, xxx, 4, read, xxx) = 4, bytes = 2f 69 36 38
target_xfer_memory (0x400179fc, xxx, 4, read, xxx) = 4, bytes = 36 2f 63 6d
target_xfer_memory (0x40017a00, xxx, 4, read, xxx) = 4, bytes = 6f 76 2f 6c
target_xfer_memory (0x40017a04, xxx, 4, read, xxx) = 4, bytes = 69 62 6d 2e
target_xfer_memory (0x40017a08, xxx, 4, read, xxx) = 4, bytes = 73 6f 2e 36
target_xfer_memory (0x40017a0c, xxx, 4, read, xxx) = 4, bytes = 00 00 00 00
target_xfer_memory (0x40017c90, xxx, 20, read, xxx) = 20, bytes =
00 60 05 40 70 7c 01 40 8c cc 18 40 6c 66 01 40 ...
target_xfer_memory (0x40017c70, xxx, 4, read, xxx) = 4, bytes = 2f 6c 69 62
target_xfer_memory (0x40017c74, xxx, 4, read, xxx) = 4, bytes = 2f 74 6c 73
target_xfer_memory (0x40017c78, xxx, 4, read, xxx) = 4, bytes = 2f 69 36 38
target_xfer_memory (0x40017c7c, xxx, 4, read, xxx) = 4, bytes = 36 2f 63 6d
target_xfer_memory (0x40017c80, xxx, 4, read, xxx) = 4, bytes = 6f 76 2f 6c
target_xfer_memory (0x40017c84, xxx, 4, read, xxx) = 4, bytes = 69 62 63 2e
target_xfer_memory (0x40017c88, xxx, 4, read, xxx) = 4, bytes = 73 6f 2e 36
target_xfer_memory (0x40017c8c, xxx, 4, read, xxx) = 4, bytes = 00 00 00 00
target_xfer_memory (0x4001666c, xxx, 20, read, xxx) = 20, bytes =
00 00 00 40 14 81 04 08 90 6b 01 40 00 00 00 00 ...
target_xfer_memory (0x8048114, xxx, 4, read, xxx) = 4, bytes = 2f 6c 69 62
target_xfer_memory (0x8048118, xxx, 4, read, xxx) = 4, bytes = 2f 6c 64 2d
target_xfer_memory (0x804811c, xxx, 4, read, xxx) = 4, bytes = 6c 69 6e 75
target_xfer_memory (0x8048120, xxx, 4, read, xxx) = 4, bytes = 78 2e 73 6f
target_xfer_memory (0x8048124, xxx, 4, read, xxx) = 4, bytes = 2e 32 00 00
target_xfer_memory (0x80483f0, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x80483f0, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x80483f0, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x80483f0, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x80483f1, xxx, 1, read, xxx) = 1, bytes = 89
target_xfer_memory (0x80483f2, xxx, 5, read, xxx) = 5, bytes =
e5 ff 05 a8 96
target_xfer_memory (0x80483f2, xxx, 5, read, xxx) = 5, bytes =
e5 ff 05 a8 96
target_xfer_memory (0x80483f1, xxx, 1, read, xxx) = 1, bytes = 89
target_xfer_memory (0x80483f2, xxx, 1, read, xxx) = 1, bytes = e5
target_xfer_memory (0x80483f3, xxx, 1, read, xxx) = 1, bytes = ff
target_xfer_memory (0x80483f3, xxx, 1, read, xxx) = 1, bytes = ff
target_xfer_memory (0x80483f3, xxx, 1, read, xxx) = 1, bytes = ff
target_xfer_memory (0x80483f0, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x80483f0, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x80483f0, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x80483f0, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x80483f0, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x80483f1, xxx, 1, read, xxx) = 1, bytes = 89
target_xfer_memory (0x80483f2, xxx, 5, read, xxx) = 5, bytes =
e5 ff 05 a8 96
target_xfer_memory (0x80483f2, xxx, 5, read, xxx) = 5, bytes =
e5 ff 05 a8 96
target_xfer_memory (0x80483f1, xxx, 1, read, xxx) = 1, bytes = 89
target_xfer_memory (0x80483f2, xxx, 1, read, xxx) = 1, bytes = e5
target_xfer_memory (0x80483f3, xxx, 1, read, xxx) = 1, bytes = ff
target_xfer_memory (0x80483f3, xxx, 1, read, xxx) = 1, bytes = ff
target_xfer_memory (0x80483f3, xxx, 1, read, xxx) = 1, bytes = ff
target_xfer_memory (0x80483f0, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x80483f0, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x80483f0, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x80483f0, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x80483f0, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x80483f1, xxx, 1, read, xxx) = 1, bytes = 89
target_xfer_memory (0x80483f2, xxx, 5, read, xxx) = 5, bytes =
e5 ff 05 a8 96
target_xfer_memory (0x80483f2, xxx, 5, read, xxx) = 5, bytes =
e5 ff 05 a8 96
target_xfer_memory (0x80483f1, xxx, 1, read, xxx) = 1, bytes = 89
target_xfer_memory (0x80483f2, xxx, 1, read, xxx) = 1, bytes = e5
target_xfer_memory (0x80483f3, xxx, 1, read, xxx) = 1, bytes = ff
target_xfer_memory (0x80483f3, xxx, 1, read, xxx) = 1, bytes = ff
target_xfer_memory (0x80483f3, xxx, 1, read, xxx) = 1, bytes = ff
target_xfer_memory (0x80483f0, xxx, 1, read, xxx) = 1, bytes = 55
target_terminal_inferior ()
target_terminal_inferior ()
target_xfer_memory (0x4000c690, xxx, 2, read, xxx) = 2, bytes = 55 89
target_resume (2861, step, 0)
target_wait (-1, status) = 2861, status->kind = stopped, signal = SIGTRAP
target_fetch_registers (eip) = 91c60040 0x4000c691 1073792657
target_xfer_memory (0x80483f3, xxx, 1, read, xxx) = 1, bytes =
ff
target_xfer_memory (0x80483f3, xxx, 1, write, xxx) = 1, bytes =
cc
target_insert_breakpoint (0x80483f3, xxx) = 0
target_xfer_memory (0x4000c690, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x4000c690, xxx, 1, write, xxx) = 1, bytes =
cc
target_insert_breakpoint (0x4000c690, xxx) = 0
target_terminal_inferior ()
target_resume (-1, continue, 0)
target_wait (-1, status) = 2861, status->kind = stopped, signal = SIGTRAP
target_fetch_registers (eip) = 91c60040 0x4000c691 1073792657
target_prepare_to_store ()
target_store_registers (eip) = 90c60040 0x4000c690 1073792656
target_xfer_memory (0x80483f3, xxx, 1, write, xxx) = 1, bytes =
ff
target_remove_breakpoint (0x80483f3, xxx) = 0
target_xfer_memory (0x4000c690, xxx, 1, write, xxx) = 1, bytes = 55
target_remove_breakpoint (0x4000c690, xxx) = 0
target_terminal_ours_for_output ()
target_xfer_memory (0x40016e68, xxx, 4, read, xxx) = 4, bytes =
78 6e 01 40
target_xfer_memory (0x40016e78, xxx, 20, read, xxx) = 20, bytes =
00 00 00 00 dc 28 01 40 a4 95 04 08 b8 77 01 40 ...
target_xfer_memory (0x400177b8, xxx, 20, read, xxx) = 20, bytes =
00 00 00 00 dc 28 01 40 78 e5 ff ff 10 7a 01 40 ...
target_xfer_memory (0x400128dc, xxx, 4, read, xxx) = 4, bytes = 00 68 5f 65
target_xfer_memory (0x40017a10, xxx, 20, read, xxx) = 20, bytes =
00 30 03 40 f0 79 01 40 30 50 05 40 90 7c 01 40 ...
target_xfer_memory (0x400179f0, xxx, 4, read, xxx) = 4, bytes = 2f 6c 69 62
target_xfer_memory (0x400179f4, xxx, 4, read, xxx) = 4, bytes = 2f 74 6c 73
target_xfer_memory (0x400179f8, xxx, 4, read, xxx) = 4, bytes = 2f 69 36 38
target_xfer_memory (0x400179fc, xxx, 4, read, xxx) = 4, bytes = 36 2f 63 6d
target_xfer_memory (0x40017a00, xxx, 4, read, xxx) = 4, bytes = 6f 76 2f 6c
target_xfer_memory (0x40017a04, xxx, 4, read, xxx) = 4, bytes = 69 62 6d 2e
target_xfer_memory (0x40017a08, xxx, 4, read, xxx) = 4, bytes = 73 6f 2e 36
target_xfer_memory (0x40017a0c, xxx, 4, read, xxx) = 4, bytes = 00 00 00 00
target_xfer_memory (0x40017c90, xxx, 20, read, xxx) = 20, bytes =
00 60 05 40 70 7c 01 40 8c cc 18 40 6c 66 01 40 ...
target_xfer_memory (0x40017c70, xxx, 4, read, xxx) = 4, bytes = 2f 6c 69 62
target_xfer_memory (0x40017c74, xxx, 4, read, xxx) = 4, bytes = 2f 74 6c 73
target_xfer_memory (0x40017c78, xxx, 4, read, xxx) = 4, bytes = 2f 69 36 38
target_xfer_memory (0x40017c7c, xxx, 4, read, xxx) = 4, bytes = 36 2f 63 6d
target_xfer_memory (0x40017c80, xxx, 4, read, xxx) = 4, bytes = 6f 76 2f 6c
target_xfer_memory (0x40017c84, xxx, 4, read, xxx) = 4, bytes = 69 62 63 2e
target_xfer_memory (0x40017c88, xxx, 4, read, xxx) = 4, bytes = 73 6f 2e 36
target_xfer_memory (0x40017c8c, xxx, 4, read, xxx) = 4, bytes = 00 00 00 00
target_xfer_memory (0x4001666c, xxx, 20, read, xxx) = 20, bytes =
00 00 00 40 14 81 04 08 90 6b 01 40 00 00 00 00 ...
target_xfer_memory (0x8048114, xxx, 4, read, xxx) = 4, bytes = 2f 6c 69 62
target_xfer_memory (0x8048118, xxx, 4, read, xxx) = 4, bytes = 2f 6c 64 2d
target_xfer_memory (0x804811c, xxx, 4, read, xxx) = 4, bytes = 6c 69 6e 75
target_xfer_memory (0x8048120, xxx, 4, read, xxx) = 4, bytes = 78 2e 73 6f
target_xfer_memory (0x8048124, xxx, 4, read, xxx) = 4, bytes = 2e 32 00 00
target_terminal_inferior ()
target_terminal_inferior ()
target_xfer_memory (0x4000c690, xxx, 2, read, xxx) = 2, bytes = 55 89
target_resume (2861, step, 0)
target_wait (-1, status) = 2861, status->kind = stopped, signal = SIGTRAP
target_fetch_registers (eip) = 91c60040 0x4000c691 1073792657
target_xfer_memory (0x80483f3, xxx, 1, read, xxx) = 1, bytes =
ff
target_xfer_memory (0x80483f3, xxx, 1, write, xxx) = 1, bytes =
cc
target_insert_breakpoint (0x80483f3, xxx) = 0
target_xfer_memory (0x4000c690, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x4000c690, xxx, 1, write, xxx) = 1, bytes =
cc
target_insert_breakpoint (0x4000c690, xxx) = 0
target_terminal_inferior ()
target_resume (-1, continue, 0)
target_wait (-1, status) = 2861, status->kind = stopped, signal = SIGTRAP
target_fetch_registers (eip) = 91c60040 0x4000c691 1073792657
target_prepare_to_store ()
target_store_registers (eip) = 90c60040 0x4000c690 1073792656
target_xfer_memory (0x80483f3, xxx, 1, write, xxx) = 1, bytes =
ff
target_remove_breakpoint (0x80483f3, xxx) = 0
target_xfer_memory (0x4000c690, xxx, 1, write, xxx) = 1, bytes = 55
target_remove_breakpoint (0x4000c690, xxx) = 0
target_terminal_ours_for_output ()
target_xfer_memory (0x40016e68, xxx, 4, read, xxx) = 4, bytes =
78 6e 01 40
target_xfer_memory (0x40016e78, xxx, 20, read, xxx) = 20, bytes =
00 00 00 00 dc 28 01 40 a4 95 04 08 b8 77 01 40 ...
target_xfer_memory (0x400177b8, xxx, 20, read, xxx) = 20, bytes =
00 00 00 00 dc 28 01 40 78 e5 ff ff 10 7a 01 40 ...
target_xfer_memory (0x400128dc, xxx, 4, read, xxx) = 4, bytes = 00 68 5f 65
target_xfer_memory (0x40017a10, xxx, 20, read, xxx) = 20, bytes =
00 30 03 40 f0 79 01 40 30 50 05 40 90 7c 01 40 ...
target_xfer_memory (0x400179f0, xxx, 4, read, xxx) = 4, bytes = 2f 6c 69 62
target_xfer_memory (0x400179f4, xxx, 4, read, xxx) = 4, bytes = 2f 74 6c 73
target_xfer_memory (0x400179f8, xxx, 4, read, xxx) = 4, bytes = 2f 69 36 38
target_xfer_memory (0x400179fc, xxx, 4, read, xxx) = 4, bytes = 36 2f 63 6d
target_xfer_memory (0x40017a00, xxx, 4, read, xxx) = 4, bytes = 6f 76 2f 6c
target_xfer_memory (0x40017a04, xxx, 4, read, xxx) = 4, bytes = 69 62 6d 2e
target_xfer_memory (0x40017a08, xxx, 4, read, xxx) = 4, bytes = 73 6f 2e 36
target_xfer_memory (0x40017a0c, xxx, 4, read, xxx) = 4, bytes = 00 00 00 00
target_xfer_memory (0x40017c90, xxx, 20, read, xxx) = 20, bytes =
00 60 05 40 70 7c 01 40 8c cc 18 40 6c 66 01 40 ...
target_xfer_memory (0x40017c70, xxx, 4, read, xxx) = 4, bytes = 2f 6c 69 62
target_xfer_memory (0x40017c74, xxx, 4, read, xxx) = 4, bytes = 2f 74 6c 73
target_xfer_memory (0x40017c78, xxx, 4, read, xxx) = 4, bytes = 2f 69 36 38
target_xfer_memory (0x40017c7c, xxx, 4, read, xxx) = 4, bytes = 36 2f 63 6d
target_xfer_memory (0x40017c80, xxx, 4, read, xxx) = 4, bytes = 6f 76 2f 6c
target_xfer_memory (0x40017c84, xxx, 4, read, xxx) = 4, bytes = 69 62 63 2e
target_xfer_memory (0x40017c88, xxx, 4, read, xxx) = 4, bytes = 73 6f 2e 36
target_xfer_memory (0x40017c8c, xxx, 4, read, xxx) = 4, bytes = 00 00 00 00
target_xfer_memory (0x4001666c, xxx, 20, read, xxx) = 20, bytes = 00 00 00 40 14 81 04 08 ...
target_xfer_memory (0x8048114, xxx, 4, read, xxx) = 4, bytes = 2f 6c 69 62
target_xfer_memory (0x8048118, xxx, 4, read, xxx) = 4, bytes = 2f 6c 64 2d
target_xfer_memory (0x804811c, xxx, 4, read, xxx) = 4, bytes = 6c 69 6e 75
target_xfer_memory (0x8048120, xxx, 4, read, xxx) = 4, bytes = 78 2e 73 6f
target_xfer_memory (0x8048124, xxx, 4, read, xxx) = 4, bytes = 2e 32 00 00
target_terminal_inferior ()
target_terminal_inferior ()
target_xfer_memory (0x4000c690, xxx, 2, read, xxx) = 2, bytes = 55 89
target_resume (2861, step, 0)
target_wait (-1, status) = 2861, status->kind = stopped, signal = SIGTRAP
target_fetch_registers (eip) = 91c60040 0x4000c691 1073792657
target_xfer_memory (0x80483f3, xxx, 1, read, xxx) = 1, bytes =
ff
target_xfer_memory (0x80483f3, xxx, 1, write, xxx) = 1, bytes =
cc
target_insert_breakpoint (0x80483f3, xxx) = 0
target_xfer_memory (0x4000c690, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x4000c690, xxx, 1, write, xxx) = 1, bytes =
cc
target_insert_breakpoint (0x4000c690, xxx) = 0
target_terminal_inferior ()
target_resume (-1, continue, 0)
target_wait (-1, status) = 2861, status->kind = stopped, signal = SIGTRAP
target_fetch_registers (eip) = f4830408 0x80483f4 134513652
target_prepare_to_store ()
target_store_registers (eip) = f3830408 0x80483f3 134513651
target_xfer_memory (0x80483f3, xxx, 1, write, xxx) = 1, bytes =
ff
target_remove_breakpoint (0x80483f3, xxx) = 0
target_xfer_memory (0x4000c690, xxx, 1, write, xxx) = 1, bytes = 55
target_remove_breakpoint (0x4000c690, xxx) = 0
target_terminal_ours ()
Breakpoint 1, func2 () at /opt/src/gdb/src/gdb/testsuite/gdb.base/signals.c:35
35 ++count;
(gdb) n
target_terminal_inferior ()
target_xfer_memory (0x80483f3, xxx, 2, read, xxx) = 2, bytes = ff 05
target_resume (2861, step, 0)
target_wait (-1, status) = 2861, status->kind = stopped, signal = SIGALRM
target_fetch_registers (eip) = f3830408 0x80483f3 134513651
target_terminal_inferior ()
target_xfer_memory (0x80483f3, xxx, 2, read, xxx) = 2, bytes = ff 05
target_resume (2861, step, SIGALRM)
target_wait (-1, status) = 2861, status->kind = stopped, signal = SIGTRAP
target_fetch_registers (eip) = f9830408 0x80483f9 134513657
target_xfer_memory (0x80483f3, xxx, 1, read, xxx) = 1, bytes =
ff
target_xfer_memory (0x80483f3, xxx, 1, write, xxx) = 1, bytes =
cc
target_insert_breakpoint (0x80483f3, xxx) = 0
target_xfer_memory (0x4000c690, xxx, 1, read, xxx) = 1, bytes = 55
target_xfer_memory (0x4000c690, xxx, 1, write, xxx) = 1, bytes =
cc
target_insert_breakpoint (0x4000c690, xxx) = 0
target_xfer_memory (0x4007fc20, xxx, 1, read, xxx) = 1, bytes = 83
target_xfer_memory (0x4007fc20, xxx, 1, write, xxx) = 1, bytes =
cc
target_insert_breakpoint (0x4007fc20, xxx) = 0
target_terminal_inferior ()
target_resume (-1, continue, 0)
target_wait (-1, status) = 2861, status->kind = exited, status = 5
target_terminal_ours ()
Program exited with code 05.
target_mourn_inferior ()
(gdb) quit
--
Daniel Jacobowitz