forked from Imagelibrary/binutils-gdb
class Reloc is not used after commit
13f614be23 gprofng: Refactor readSymSec for using BFD's asymbol struct
Many common macros were defined in different sources.
Sometimes a macro was used, sometimes a macros value was used.
Removed unused macros and include files.
gprofng/ChangeLog
2025-05-03 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
* common/gp-experiment.h: Define variables that are passed to
libcollector. Remove unused macros.
* libcollector/collector.c: Cleanup macros.
* libcollector/descendants.h: Likewise.
* libcollector/envmgmt.c: Likewise.
* libcollector/linetrace.c: Likewise.
* src/collect.h: Likewise.
* src/envsets.cc: Likewise.
* src/gp-collect-app.cc: Likewise.
* src/Stabs.cc: Remove class Reloc.
* src/Stabs.h: Likewise.
* src/ipcio.cc: Remove unused include files.
68 lines
2.2 KiB
C
68 lines
2.2 KiB
C
/* Copyright (C) 2021-2025 Free Software Foundation, Inc.
|
|
Contributed by Oracle.
|
|
|
|
This file is part of GNU Binutils.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3, or (at your option)
|
|
any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, 51 Franklin Street - Fifth Floor, Boston,
|
|
MA 02110-1301, USA. */
|
|
|
|
/* Lineage events for process fork, exec, etc. */
|
|
|
|
#ifndef DESCENDANTS_H
|
|
#define DESCENDANTS_H
|
|
|
|
#include <dlfcn.h>
|
|
#include <errno.h>
|
|
#include <fcntl.h>
|
|
#include <alloca.h>
|
|
#include <assert.h>
|
|
|
|
#include "gp-defs.h"
|
|
#include "gp-experiment.h"
|
|
#include "collector.h"
|
|
#include "memmgr.h"
|
|
#include "cc_libcollector.h"
|
|
#include "tsd.h"
|
|
|
|
/* configuration, not changed after init. */
|
|
typedef enum
|
|
{
|
|
LM_DORMANT = -2, /* env vars preserved, not recording */
|
|
LM_CLOSED = -1, /* env vars cleared, not recording */
|
|
LM_TRACK_LINEAGE = 1, /* env vars preserved, recording */
|
|
} line_mode_t;
|
|
|
|
extern int user_follow_mode;
|
|
extern int java_mode;
|
|
extern int dbg_current_mode; /* for debug only */
|
|
extern unsigned line_key;
|
|
extern char **sp_env_backup;
|
|
|
|
#define INIT_REENTRANCE(x) ((x) = __collector_tsd_get_by_key (line_key))
|
|
#define CHCK_REENTRANCE(x) (((INIT_REENTRANCE(x)) == NULL) || (*(x) != 0))
|
|
#define PUSH_REENTRANCE(x) ((*(x))++)
|
|
#define POP_REENTRANCE(x) ((*(x))--)
|
|
|
|
extern void __collector_env_unset (char *envp[]);
|
|
extern void __collector_env_save_preloads ();
|
|
extern char ** __collector_env_backup ();
|
|
extern void __collector_env_backup_free ();
|
|
extern void __collector_env_update (char *envp[]);
|
|
extern void __collector_env_print (char *label);
|
|
extern void __collector_env_printall (char *label, char *envp[]);
|
|
extern char ** __collector_env_allocate (char *const old_env[], int allocate_env);
|
|
|
|
#endif
|