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] Implement operator new


> -----Original Message-----
> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-owner@sourceware.org] On Behalf Of Tom Tromey
> Sent: Tuesday, July 03, 2012 10:57 PM
> To: gdb-patches@sourceware.org

[...]

> +new_init:	'('
> +			{
> +			  start_arglist ();
> +			}
> +		arglist ')'
> +			{
> +			  $$ = end_arglist ();
> +			}
> +	|	{ $$ = 0; }
> +	;

New also accepts a braced-init-list, i.e. with {} instead of ().


> +  sym = lookup_symbol ("__aeabi_vec_ctor_cookie_nodtor",
> +		       NULL, VAR_DOMAIN, NULL);
> +  if (sym != NULL)
> +    {
> +      /* ARM EABI has an extra slot.  */
> +      *include_size = 1;
> +      multiplier = 2;
> +    }
> +  else
> +    *include_size = 0;

Shouldn't we be able to query the ABI from the ELF?


[...]

Markus.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

--------------------------------------------------------------------------------------
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland 
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer
Registergericht: Muenchen HRB 47456 
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052

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