aboutsummaryrefslogtreecommitdiff
path: root/gdb/dtrace-probe.c
AgeCommit message (Expand)AuthorFilesLines
2019-09-02Use gdbarch for probe::get_argument_countAlan Hayward1-2/+2
2019-07-09Rename common to gdbsupportTom Tromey1-1/+1
2019-06-17PR gdb/24364: Don't call dtrace_process_dof with NULL dof.Paul Pluzhnikov1-4/+5
2019-05-08Convert probes to type-safe registry APITom Tromey1-6/+8
2019-04-08Rename gdb exception typesTom Tromey1-1/+1
2019-04-08Rewrite TRY/CATCHTom Tromey1-3/+2
2019-04-06Revert the header-sorting patchTom Tromey1-10/+8
2019-04-05Sort includes for files gdb/[a-f]*.[chyl].Tom Tromey1-8/+10
2019-04-04Make base class for parser_stateTom Tromey1-9/+8
2019-04-04Remove parser_state "initial_size" parameterTom Tromey1-1/+1
2019-01-25Normalize includes to use common/Tom Tromey1-1/+1
2019-01-01Update copyright year range in all GDB files.Joel Brobecker1-1/+1
2018-12-21Fix compile error with clang 3.8Dave Murphy1-1/+1
2018-07-03Remove ptid_equalTom Tromey1-2/+2
2018-05-23Remove symfile_complaintsTom Tromey1-4/+2
2018-01-02Update copyright year range in all GDB filesJoel Brobecker1-1/+1
2017-12-30C++-ify parser_stateTom Tromey1-9/+2
2017-12-08Fix thinko on dtrace-probe.c:dtrace_process_dof_probeSergio Durigan Junior1-5/+4
2017-11-24Workaround build bug with GCC 6.2.1Philipp Rudo1-4/+4
2017-11-22Convert DTrace probe interface to C++ (and perform some cleanups)Sergio Durigan Junior1-276/+274
2017-09-27Constify info_probes_dtrace_commandTom Tromey1-1/+1
2017-09-12probe: Replace VEC(probe_ops_cp) with std::vectorSimon Marchi1-1/+1
2017-09-12Make probe_ops::get_probes fill an std::vectorSimon Marchi1-4/+5
2017-09-09Remove unnecessary function prototypes.John Baldwin1-2/+0
2017-06-25dtrace-probe: Put semicolon after while on its own lineSimon Marchi1-1/+2
2017-01-01update copyright year range in GDB filesJoel Brobecker1-1/+1
2016-11-24Do not use std::move when assigning an anonymous object to a unique_ptr.John Baldwin1-2/+1
2016-11-15gdb::{unique_ptr,move} -> std::{unique_ptr,move}Pedro Alves1-1/+1
2016-11-08'struct expression *' -> gdb::unique_xmalloc_ptr<expression>Pedro Alves1-3/+3
2016-05-07remove trivialy unused variablesTrevor Saunders1-2/+0
2016-01-01GDB copyright headers update after running GDB's copyright.py script.Joel Brobecker1-1/+1
2015-08-26Replace some xmalloc-family functions with XNEW-family onesSimon Marchi1-2/+2
2015-08-07ignore invalid DOF provider sectionsJoel Brobecker1-0/+8
2015-03-27Initialize EXPR in dtrace-probe::dtrace_process_dof_probeJoel Brobecker1-1/+1
2015-03-26dtrace-probe: Handle error while parsing probe argument.Joel Brobecker1-2/+12
2015-02-27More redefinition errors in C++ modePedro Alves1-2/+2
2015-02-192015-02-19 Steve Ellcey <sellcey@imgtec.com>Steve Ellcey1-3/+7
2015-02-17New probe type: DTrace USDT probes.Jose E. Marchesi1-0/+907
n> } else if (obj != 0) /* obj is not in any of the chunks! */ abort (); } _OBSTACK_SIZE_T _obstack_memory_used (struct obstack *h) { struct _obstack_chunk *lp; _OBSTACK_SIZE_T nbytes = 0; for (lp = h->chunk; lp != 0; lp = lp->prev) { nbytes += lp->limit - (char *) lp; } return nbytes; } # ifndef _OBSTACK_NO_ERROR_HANDLER /* Define the error handler. */ # include <stdio.h> /* Exit value used when 'print_and_abort' is used. */ # ifdef _LIBC int obstack_exit_failure = EXIT_FAILURE; # else # ifndef EXIT_FAILURE # define EXIT_FAILURE 1 # endif # define obstack_exit_failure EXIT_FAILURE # endif # if defined _LIBC || (HAVE_LIBINTL_H && ENABLE_NLS) # include <libintl.h> # ifndef _ # define _(msgid) gettext (msgid) # endif # else # ifndef _ # define _(msgid) (msgid) # endif # endif # if !(defined _Noreturn \ || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112)) # if ((defined __GNUC__ \ && (__GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8))) \ || (defined __SUNPRO_C && __SUNPRO_C >= 0x5110)) # define _Noreturn __attribute__ ((__noreturn__)) # elif defined _MSC_VER && _MSC_VER >= 1200 # define _Noreturn __declspec (noreturn) # else # define _Noreturn # endif # endif # ifdef _LIBC # include <libio/iolibio.h> # endif static _Noreturn void print_and_abort (void) { /* Don't change any of these strings. Yes, it would be possible to add the newline to the string and use fputs or so. But this must not happen because the "memory exhausted" message appears in other places like this and the translation should be reused instead of creating a very similar string which requires a separate translation. */ # ifdef _LIBC (void) __fxprintf (NULL, "%s\n", _("memory exhausted")); # else fprintf (stderr, "%s\n", _("memory exhausted")); # endif exit (obstack_exit_failure); } /* The functions allocating more room by calling 'obstack_chunk_alloc' jump to the handler pointed to by 'obstack_alloc_failed_handler'. This can be set to a user defined function which should either abort gracefully or use longjump - but shouldn't return. This variable by default points to the internal function 'print_and_abort'. */ void (*obstack_alloc_failed_handler) (void) = print_and_abort; # endif /* !_OBSTACK_NO_ERROR_HANDLER */ #endif /* !_OBSTACK_ELIDE_CODE */