This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/2] GDBserver: qXfer:libraries-svr4:read, malformed xml


On Fri, 23 Mar 2012 22:11:06 +0100, Pedro Alves wrote:
> --- a/gdb/gdbserver/linux-low.c
> +++ b/gdb/gdbserver/linux-low.c
> @@ -5630,7 +5630,13 @@ linux_qxfer_libraries_svr4 (const char *annex, unsigned char *readbuf,
>  	  lm_addr = l_next;
>  	}
>      done:
> -      strcpy (p, "</library-list-svr4>");
> +      if (!header_done)
> +	{
> +	  /* Empty list; terminate `<library-list-svr4'.  */
> +	  strcpy (p, "/>");
> +	}
> +      else
> +	strcpy (p, "</library-list-svr4>");
>      }
>  
>    document_len = strlen (document);

I see now, thanks.


Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]