This is a spinoff of <https://sourceware.org/ml/gdb-patches/2017-06/msg00437.html>. mi-cmd-env.c is using the whole gdb_environ machinery in order to access just one variable, which can be easily replaced by a simple call to getenv. This patch does that, and doesn't cause regressions. gdb/ChangeLog: 2017-06-18 Sergio Durigan Junior <sergiodj@redhat.com> * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of gdb_environ to access an environment variable. |
||
|---|---|---|
| .. | ||
| ChangeLog-1999-2003 | ||
| mi-cmd-break.c | ||
| mi-cmd-break.h | ||
| mi-cmd-catch.c | ||
| mi-cmd-disas.c | ||
| mi-cmd-env.c | ||
| mi-cmd-file.c | ||
| mi-cmd-info.c | ||
| mi-cmd-stack.c | ||
| mi-cmd-target.c | ||
| mi-cmd-var.c | ||
| mi-cmds.c | ||
| mi-cmds.h | ||
| mi-common.c | ||
| mi-common.h | ||
| mi-console.c | ||
| mi-console.h | ||
| mi-getopt.c | ||
| mi-getopt.h | ||
| mi-interp.c | ||
| mi-interp.h | ||
| mi-main.c | ||
| mi-main.h | ||
| mi-out.c | ||
| mi-out.h | ||
| mi-parse.c | ||
| mi-parse.h | ||
| mi-symbol-cmds.c | ||