Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH][gdb/breakpoints] Fix segfault for catch syscall -1
Date: Fri, 5 Feb 2021 17:27:49 +0100	[thread overview]
Message-ID: <1f1a65db-ffaa-ad5a-8e8d-468595e860ac@suse.de> (raw)
In-Reply-To: <87wnvm4imc.fsf@tromey.com>

On 2/5/21 4:52 PM, Tom Tromey wrote:
>>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
> 
> Tom> 	PR breakpoints/27313
> Tom> 	* break-catch-syscall.c (catch_syscall_split_args): Reject negative
> Tom> 	syscall numbers.
> 
> Looks good.
> Thank you for doing this.
> 
> Tom> +	  if (syscall_number < 0)
> Tom> +	    error (_("Unknown syscall number '%d'."), syscall_number);
> > Does syscall_number==0 make sense?

Apparently:
...
(gdb) catch syscall 0
Catchpoint 1 (syscall 'read' [0])
...

Thanks,
- Tom

      reply	other threads:[~2021-02-05 16:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-02  8:13 Tom de Vries
2021-02-05 15:52 ` Tom Tromey
2021-02-05 16:27   ` Tom de Vries [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1f1a65db-ffaa-ad5a-8e8d-468595e860ac@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    --cc=tom@tromey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox