* negative repeat count for x examines backwards * fortran: support structs/arrays with dynamically types fields * support MPX bound checking * support for the Rust language * 'catch syscall' now can catch groups of related syscalls * New (sub)commands: - skip {-file,-gfile,-function,-rfunction}: generic skip mechanism - maint {selftest,info line-table} - new-ui: create new user interface for GUI clients * (fast) tracepoints on s390x and ppc64le added to gdbserver * New target Andes NDS32 - Remove patch gdb-aarch64-v81-hwbreakpoints.diff (upstream) - Add patches from Fedora package: gdb-6.7-testsuite-stable-results.patch gdb-add-index-chmod.patch gdb-bison-old.patch gdb-container-rh-pkg.patch gdb-libexec-add-index.patch gdb-linux_perf-bundle.patch gdb-physname-pr11734-test.patch gdb-physname-pr12273-test.patch gdb-rhbz1007614-memleak-infpy_read_memory-test.patch gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch gdb-rhbz1149205-catch-syscall-after-fork-test.patch gdb-rhbz1156192-recursive-dlopen-test.patch gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch gdb-rhbz1350436-type-printers-error.patch gdb-test-ivy-bridge.patch OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=151
48 lines
1.3 KiB
Diff
48 lines
1.3 KiB
Diff
http://sourceware.org/ml/gdb-patches/2016-10/msg00206.html
|
|
Subject: [patch+7.12.1 1/2] Code cleanup: write_exp_msymbol: +is_tls
|
|
|
|
|
|
--XMCwj5IQnwKtuyBG
|
|
Content-Type: text/plain; charset=us-ascii
|
|
Content-Disposition: inline
|
|
|
|
Hi,
|
|
|
|
no functionality change, for patch 2/2.
|
|
|
|
|
|
Jan
|
|
|
|
--XMCwj5IQnwKtuyBG
|
|
Content-Type: text/plain; charset=us-ascii
|
|
Content-Disposition: inline; filename="tls1.patch"
|
|
|
|
gdb/ChangeLog
|
|
2016-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
* parse.c (write_exp_msymbol): New variable is_tls, use it.
|
|
|
|
--- a/gdb/parse.c
|
|
+++ b/gdb/parse.c
|
|
@@ -484,6 +484,8 @@ write_exp_msymbol (struct parser_state *ps,
|
|
struct obj_section *section = MSYMBOL_OBJ_SECTION (objfile, msymbol);
|
|
enum minimal_symbol_type type = MSYMBOL_TYPE (msymbol);
|
|
CORE_ADDR pc;
|
|
+ const int is_tls = (section != NULL
|
|
+ && section->the_bfd_section->flags & SEC_THREAD_LOCAL);
|
|
|
|
/* The minimal symbol might point to a function descriptor;
|
|
resolve it to the actual code address instead. */
|
|
@@ -520,7 +522,7 @@ write_exp_msymbol (struct parser_state *ps,
|
|
write_exp_elt_longcst (ps, (LONGEST) addr);
|
|
write_exp_elt_opcode (ps, OP_LONG);
|
|
|
|
- if (section && section->the_bfd_section->flags & SEC_THREAD_LOCAL)
|
|
+ if (is_tls)
|
|
{
|
|
write_exp_elt_opcode (ps, UNOP_MEMVAL_TLS);
|
|
write_exp_elt_objfile (ps, objfile);
|
|
|
|
--XMCwj5IQnwKtuyBG--
|
|
|