This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [obv] Fix fbsd-nat.c build regression
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Jan Kratochvil <jan dot kratochvil at redhat dot com>, Andreas Tobler <andreast-list at fgznet dot ch>
- Date: Thu, 10 Mar 2011 12:31:03 +0000
- Subject: Re: [obv] Fix fbsd-nat.c build regression
- References: <20110310115114.GA5081@host1.jankratochvil.net>
Thanks.
On Thursday 10 March 2011 11:51:14, Jan Kratochvil wrote:
> Hi,
>
> from a discussion on IRC, it seems obvious to me, suggested by Andreas Tobler,
> therefore only "installed" it into CVS, the fix seems OK to me.
>
>
> Thanks,
> Jan
>
>
> http://sourceware.org/ml/gdb-cvs/2011-03/msg00141.html
>
> --- src/gdb/ChangeLog 2011/03/10 00:15:19 1.12781
> +++ src/gdb/ChangeLog 2011/03/10 11:29:52 1.12782
> @@ -1,3 +1,7 @@
> +2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
> +
> + * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
> +
> 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
>
> * xtensa-tdep.c (xtensa_read_register: Add comment.
> --- src/gdb/fbsd-nat.c 2011/03/09 12:48:55 1.22
> +++ src/gdb/fbsd-nat.c 2011/03/10 11:29:54 1.23
> @@ -202,7 +202,7 @@
>
> if (get_exec_file (0))
> {
> - char *fname = lbasename (get_exec_file (0));
> + const char *fname = lbasename (get_exec_file (0));
> char *psargs = xstrdup (fname);
>
> if (get_inferior_args ())
>
--
Pedro Alves