1*4b169a6bSchristos2021-06-17 Pedro Alves <pedro@palves.net> 2*4b169a6bSchristos 3*4b169a6bSchristos * scoped_ignore_signal.h 4*4b169a6bSchristos (scoped_ignore_signal::scoped_ignore_signal) 5*4b169a6bSchristos [HAVE_SIGPROCMASK]: Use sigprocmask to block the signal instead of 6*4b169a6bSchristos changing the signal disposition for the whole process. 7*4b169a6bSchristos (scoped_ignore_signal::~scoped_ignore_signal) [HAVE_SIGPROCMASK]: 8*4b169a6bSchristos Use sigtimedwait and sigprocmask to flush and unblock the signal. 9*4b169a6bSchristos 10*4b169a6bSchristos2021-06-17 Pedro Alves <pedro@palves.net> 11*4b169a6bSchristos 12*4b169a6bSchristos * scoped_ignore_sigttou.h: New file, moved from gdb/ and renamed. 13*4b169a6bSchristos 14*4b169a6bSchristos2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com> 15*4b169a6bSchristos 16*4b169a6bSchristos * .dir-locals.el: Set sentence-end-double-space for all modes, and 17*4b169a6bSchristos set brace-list-open to 0 for C and C++ modes. 18*4b169a6bSchristos 19*4b169a6bSchristos2021-05-08 Simon Marchi <simon.marchi@polymtl.ca> 20*4b169a6bSchristos 21*4b169a6bSchristos * Makefile.in: Re-generate. 22*4b169a6bSchristos * config.in: Re-generate. 23*4b169a6bSchristos * configure: Re-generate. 24*4b169a6bSchristos 25*4b169a6bSchristos2021-05-08 Pedro Alves <pedro@palves.net> 26*4b169a6bSchristos 27*4b169a6bSchristos * common.m4 (personality test): Remove. 28*4b169a6bSchristos 29*4b169a6bSchristos2021-04-30 Tom Tromey <tromey@adacore.com> 30*4b169a6bSchristos 31*4b169a6bSchristos * thread-pool.cc (thread_pool::post_task): Update. 32*4b169a6bSchristos * thread-pool.h (class thread_pool) <post_task>: Take rvalue 33*4b169a6bSchristos reference to function. 34*4b169a6bSchristos 35*4b169a6bSchristos2021-04-27 Michael Weghorn <m.weghorn@posteo.de> 36*4b169a6bSchristos Simon Marchi <simon.marchi@polymtl.ca> 37*4b169a6bSchristos 38*4b169a6bSchristos * observable.h (class observable): Extend to allow specifying 39*4b169a6bSchristos dependencies between observers, keep vector holding observers 40*4b169a6bSchristos sorted so that dependencies are notified before observers 41*4b169a6bSchristos depending on them. 42*4b169a6bSchristos 43*4b169a6bSchristos2021-04-24 Simon Marchi <simon.marchi@polymtl.ca> 44*4b169a6bSchristos 45*4b169a6bSchristos * observable.h (observer_debug_printf, 46*4b169a6bSchristos OBSERVER_SCOPED_DEBUG_START_END): New. 47*4b169a6bSchristos (class observable) <notify, attach>: Use them. 48*4b169a6bSchristos 49*4b169a6bSchristos2021-04-24 Simon Marchi <simon.marchi@polymtl.ca> 50*4b169a6bSchristos 51*4b169a6bSchristos * common-debug.h (struct scoped_debug_start_end) 52*4b169a6bSchristos <scoped_debug_start_end>: Change start_msg/end_msg for 53*4b169a6bSchristos start_prefix/end_prefix. Add format string parameter and make 54*4b169a6bSchristos variadic. 55*4b169a6bSchristos <~scoped_debug_start_end>: Adjust. 56*4b169a6bSchristos <m_end_msg>: Rename to... 57*4b169a6bSchristos <m_end_prefix>: ... this. 58*4b169a6bSchristos <m_with_format>: New. 59*4b169a6bSchristos <m_msg>: New. 60*4b169a6bSchristos (scoped_debug_start_end): Make variadic. 61*4b169a6bSchristos (scoped_debug_enter_exit): Adjust. 62*4b169a6bSchristos 63*4b169a6bSchristos2021-04-24 Simon Marchi <simon.marchi@polymtl.ca> 64*4b169a6bSchristos 65*4b169a6bSchristos * observable.h (class observable) <struct observer> <observer>: 66*4b169a6bSchristos Add name parameter. 67*4b169a6bSchristos <name>: New field. 68*4b169a6bSchristos <attach>: Add name parameter, update all callers. 69*4b169a6bSchristos 70*4b169a6bSchristos2021-04-24 Simon Marchi <simon.marchi@polymtl.ca> 71*4b169a6bSchristos 72*4b169a6bSchristos * observable.h (class observable) <struct observer>: New. 73*4b169a6bSchristos <detach, notify>: Update. 74*4b169a6bSchristos <m_observers>: Change type to vector of observers. 75*4b169a6bSchristos 76*4b169a6bSchristos2021-04-23 Simon Marchi <simon.marchi@polymtl.ca> 77*4b169a6bSchristos 78*4b169a6bSchristos * observable.h (observer_debug): Change to bool. 79*4b169a6bSchristos 80*4b169a6bSchristos2021-04-23 Simon Marchi <simon.marchi@polymtl.ca> 81*4b169a6bSchristos 82*4b169a6bSchristos * common-debug.h: Include preprocessor.h. 83*4b169a6bSchristos 84*4b169a6bSchristos2021-03-24 Luis Machado <luis.machado@linaro.org> 85*4b169a6bSchristos 86*4b169a6bSchristos * rsp-low.cc (fromhex, hex2bin): Move to ... 87*4b169a6bSchristos * common-utils.cc: ... here. 88*4b169a6bSchristos (fromhex) Change error message text to not be RSP-specific. 89*4b169a6bSchristos * rsp-low.h (fromhex, hex2bin): Move to ... 90*4b169a6bSchristos * common-utils.h: ... here. 91*4b169a6bSchristos 92*4b169a6bSchristos2021-03-21 Alan Modra <amodra@gmail.com> 93*4b169a6bSchristos 94*4b169a6bSchristos * common-utils.h (startswith): Delete version now supplied by bfd.h. 95*4b169a6bSchristos 96*4b169a6bSchristos2021-02-05 Paul E. Murphy <murphy@linux.ibm.com> 97*4b169a6bSchristos 98*4b169a6bSchristos * common-defs.h (ATTRIBUTE_PRINTF): Rename 99*4b169a6bSchristos _GL_ATTRIBUTE_FORMAT_PRINTF to _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD. 100*4b169a6bSchristos * common-utils.h (xfree): Use GNULIB_NAMESPACE namespace when calling 101*4b169a6bSchristos free if this macro is defined. 102*4b169a6bSchristos 103*4b169a6bSchristos2021-01-23 Lancelot SIX <lsix@lancelotsix.com> 104*4b169a6bSchristos 105*4b169a6bSchristos * gdb_tilde_expand.cc (gdb_tilde_expand): Improve 106*4b169a6bSchristos implementation. 107*4b169a6bSchristos (gdb_tilde_expand_up): Delegate logic to gdb_tilde_expand. 108*4b169a6bSchristos * gdb_tilde_expand.h (gdb_tilde_expand): Update description. 109*4b169a6bSchristos 110*4b169a6bSchristos2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> 111*4b169a6bSchristos 112*4b169a6bSchristos * common-debug.h (debug_prefixed_printf_cond_nofunc): New. 113*4b169a6bSchristos * common-debug.c (debug_prefixed_vprintf): Handle a nullptr 114*4b169a6bSchristos func. 115*4b169a6bSchristos 116*4b169a6bSchristos2021-01-08 Simon Marchi <simon.marchi@polymtl.ca> 117*4b169a6bSchristos 118*4b169a6bSchristos PR gdb/27157 119*4b169a6bSchristos * pathstuff.cc (get_standard_cache_dir, get_standard_config_dir, 120*4b169a6bSchristos find_gdb_home_config_file): Add empty string check. 121*4b169a6bSchristos 122*4b169a6bSchristos2021-01-06 Mike Frysinger <vapier@gentoo.org> 123*4b169a6bSchristos 124*4b169a6bSchristos * common-utils.h (align_up): Fix typo in header comment. 125*4b169a6bSchristos 126*4b169a6bSchristos2021-01-04 Simon Marchi <simon.marchi@efficios.com> 127*4b169a6bSchristos 128*4b169a6bSchristos * common-debug.h (debug_print_depth): New. 129*4b169a6bSchristos (struct scoped_debug_start_end): New. 130*4b169a6bSchristos (scoped_debug_start_end): New. 131*4b169a6bSchristos (scoped_debug_enter_exit): New. 132*4b169a6bSchristos * common-debug.cc (debug_prefixed_vprintf): Print indentation. 133*4b169a6bSchristos 134*4b169a6bSchristos2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com> 135*4b169a6bSchristos 136*4b169a6bSchristos * gdbsupport/common-utils.cc: Change 'ctype.h' include to 137*4b169a6bSchristos 'safe-ctype.h'. 138*4b169a6bSchristos (extract_string_maybe_quoted): Use safe-ctype function versions. 139*4b169a6bSchristos (is_digit_in_base): Likewise. 140*4b169a6bSchristos (digit_to_int): Likewise. 141*4b169a6bSchristos (strtoulst): Likewise. 142*4b169a6bSchristos (skip_spaces): Likewise. 143*4b169a6bSchristos (skip_to_space): Likewise. 144*4b169a6bSchristos 145*4b169a6bSchristos2020-12-11 Simon Marchi <simon.marchi@polymtl.ca> 146*4b169a6bSchristos 147*4b169a6bSchristos * common-debug.h (debug_prefixed_printf_cond): New. 148*4b169a6bSchristos * event-loop.h (event_loop_debug_printf): Use 149*4b169a6bSchristos debug_prefixed_printf_cond. 150*4b169a6bSchristos 151*4b169a6bSchristos2020-12-08 Alexander Fedotov <alfedotov@gmail.com> 152*4b169a6bSchristos 153*4b169a6bSchristos * pathstuff.cc (get_standard_cache_dir): Use LOCALAPPDATA environment 154*4b169a6bSchristos variable when running on Windows. 155*4b169a6bSchristos 156*4b169a6bSchristos2020-12-01 Andrew Burgess <andrew.burgess@embecosm.com> 157*4b169a6bSchristos 158*4b169a6bSchristos * tdesc.cc (print_xml_feature::visit): Print enum fields using 159*4b169a6bSchristos 'evalue' syntax. 160*4b169a6bSchristos 161*4b169a6bSchristos2020-12-01 Chungyi Chi <demonic@csie.io> 162*4b169a6bSchristos 163*4b169a6bSchristos * tdesc.cc (print_xml_feature::visit): Print enum size attribute. 164*4b169a6bSchristos 165*4b169a6bSchristos2020-11-20 Tom Tromey <tromey@adacore.com> 166*4b169a6bSchristos 167*4b169a6bSchristos * thread-pool.cc (thread_pool::set_thread_count): Ignore system 168*4b169a6bSchristos errors. 169*4b169a6bSchristos 170*4b169a6bSchristos2020-11-10 Tom Tromey <tromey@adacore.com> 171*4b169a6bSchristos 172*4b169a6bSchristos PR build/26848: 173*4b169a6bSchristos * pathstuff.h: Move include block here... 174*4b169a6bSchristos * pathstuff.cc: ... from here. 175*4b169a6bSchristos 176*4b169a6bSchristos2020-11-02 Tom Tromey <tom@tromey.com> 177*4b169a6bSchristos 178*4b169a6bSchristos * pathstuff.h (get_standard_config_dir): Declare. 179*4b169a6bSchristos * pathstuff.cc (get_standard_config_dir): New function. 180*4b169a6bSchristos 181*4b169a6bSchristos2020-11-02 Simon Marchi <simon.marchi@efficios.com> 182*4b169a6bSchristos 183*4b169a6bSchristos * common-exceptions.h: Fix indentation. 184*4b169a6bSchristos * event-loop.cc: Fix indentation. 185*4b169a6bSchristos * fileio.cc: Fix indentation. 186*4b169a6bSchristos * filestuff.cc: Fix indentation. 187*4b169a6bSchristos * gdb-dlfcn.cc: Fix indentation. 188*4b169a6bSchristos * gdb_string_view.h: Fix indentation. 189*4b169a6bSchristos * job-control.cc: Fix indentation. 190*4b169a6bSchristos * signals.cc: Fix indentation. 191*4b169a6bSchristos 192*4b169a6bSchristos2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> 193*4b169a6bSchristos 194*4b169a6bSchristos * common-debug.cc (debug_prefixed_printf): New. 195*4b169a6bSchristos * common-debug.h (debug_prefixed_printf): New declaration. 196*4b169a6bSchristos * event-loop.cc (event_loop_debug_printf_1): Remove. 197*4b169a6bSchristos * event-loop.h (event_loop_debug_printf_1): Remove. 198*4b169a6bSchristos (event_loop_debug_printf): Use debug_prefixed_printf. 199*4b169a6bSchristos (event_loop_ui_debug_printf): Use debug_prefixed_printf. 200*4b169a6bSchristos 201*4b169a6bSchristos2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> 202*4b169a6bSchristos 203*4b169a6bSchristos * common.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE + 204*4b169a6bSchristos AC_LANG_PROGRAM. 205*4b169a6bSchristos * configure: Re-generate. 206*4b169a6bSchristos 207*4b169a6bSchristos2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> 208*4b169a6bSchristos 209*4b169a6bSchristos * common.m4: Replace AC_FUNC_VFORK with AC_FUNC_FORK. 210*4b169a6bSchristos 211*4b169a6bSchristos2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> 212*4b169a6bSchristos 213*4b169a6bSchristos * configure: Re-generate. 214*4b169a6bSchristos * warning.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE + 215*4b169a6bSchristos AC_LANG_PROGRAM. 216*4b169a6bSchristos 217*4b169a6bSchristos2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> 218*4b169a6bSchristos 219*4b169a6bSchristos * configure: Re-generate. 220*4b169a6bSchristos * ptrace.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE + 221*4b169a6bSchristos AC_LANG_PROGRAM. 222*4b169a6bSchristos 223*4b169a6bSchristos2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> 224*4b169a6bSchristos 225*4b169a6bSchristos * configure: Re-generate. 226*4b169a6bSchristos * ptrace.m4: Re-indent. 227*4b169a6bSchristos 228*4b169a6bSchristos2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> 229*4b169a6bSchristos 230*4b169a6bSchristos * aclocal.m4: Re-generate. 231*4b169a6bSchristos * configure: Re-generate. 232*4b169a6bSchristos * configure.ac: Remove AM_PROG_CC_STDC. 233*4b169a6bSchristos 234*4b169a6bSchristos2020-10-31 Simon Marchi <simon.marchi@polymtl.ca> 235*4b169a6bSchristos 236*4b169a6bSchristos * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of 237*4b169a6bSchristos AC_CANONICAL_SYSTEM. 238*4b169a6bSchristos * configure: Re-generate. 239*4b169a6bSchristos 240*4b169a6bSchristos2020-10-26 Pedro Alves <pedro@palves.net> 241*4b169a6bSchristos 242*4b169a6bSchristos * eintr.h (handle_eintr): Replace Ret template parameter with 243*4b169a6bSchristos ErrorValType. Use it as type of the failure value. Deduce the 244*4b169a6bSchristos function's return type using decltype. Use lowercase for function 245*4b169a6bSchristos parameter names. 246*4b169a6bSchristos 247*4b169a6bSchristos2020-10-25 Simon Marchi <simon.marchi@polymtl.ca> 248*4b169a6bSchristos 249*4b169a6bSchristos * Makefile.in: Re-generate. 250*4b169a6bSchristos * acinclude.m4: Update ptrace.m4 path. 251*4b169a6bSchristos * ptrace.m4: Move here. 252*4b169a6bSchristos 253*4b169a6bSchristos2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com> 254*4b169a6bSchristos 255*4b169a6bSchristos * tdesc.h (allocate_target_description): Update return type. 256*4b169a6bSchristos 257*4b169a6bSchristos2020-10-07 Tom Tromey <tromey@adacore.com> 258*4b169a6bSchristos 259*4b169a6bSchristos * Makefile.in: Rebuild. 260*4b169a6bSchristos * Makefile.am (libgdbsupport_a_SOURCES): Add search.cc. 261*4b169a6bSchristos * search.h: New file. 262*4b169a6bSchristos * search.cc: New file. 263*4b169a6bSchristos 264*4b169a6bSchristos2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> 265*4b169a6bSchristos 266*4b169a6bSchristos * event-loop.h (debug_event_loop): New variable declaration. 267*4b169a6bSchristos (event_loop_debug_printf_1): New function declaration. 268*4b169a6bSchristos (event_loop_debug_printf): New macro. 269*4b169a6bSchristos * event-loop.cc (debug_event_loop): New variable. 270*4b169a6bSchristos (handle_file_event): Add debug print. 271*4b169a6bSchristos (event_loop_debug_printf_1): New function. 272*4b169a6bSchristos 273*4b169a6bSchristos2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> 274*4b169a6bSchristos 275*4b169a6bSchristos * common-debug.cc (debug_prefixed_vprintf): Move here. 276*4b169a6bSchristos * common-debug.h (debug_prefixed_vprintf): Move here. 277*4b169a6bSchristos 278*4b169a6bSchristos2020-10-02 Simon Marchi <simon.marchi@polymtl.ca> 279*4b169a6bSchristos 280*4b169a6bSchristos * event-loop.h (add_file_handler): Add "name" parameter. 281*4b169a6bSchristos * event-loop.cc (struct file_handler) <name>: New field. 282*4b169a6bSchristos (create_file_handler): Add "name" parameter, assign it to file 283*4b169a6bSchristos handler. 284*4b169a6bSchristos (add_file_handler): Add "name" parameter. 285*4b169a6bSchristos 286*4b169a6bSchristos2020-10-01 Kamil Rytarowski <n54@gmx.com> 287*4b169a6bSchristos 288*4b169a6bSchristos * agent.cc (gdb_connect_sync_socket): Preinitialize addr with zeros. 289*4b169a6bSchristos 290*4b169a6bSchristos2020-09-29 Pedro Alves <pedro@palves.net> 291*4b169a6bSchristos 292*4b169a6bSchristos * valid-expr.h (CHECK_VALID_EXPR_INT): Make archetype a template 293*4b169a6bSchristos class instead of an alias template and adjust static_assert. 294*4b169a6bSchristos 295*4b169a6bSchristos2020-09-24 Simon Marchi <simon.marchi@efficios.com> 296*4b169a6bSchristos 297*4b169a6bSchristos * event-loop.c (struct file_handler): Remove typedef, re-format. 298*4b169a6bSchristos 299*4b169a6bSchristos2020-09-16 John Baldwin <jhb@FreeBSD.org> 300*4b169a6bSchristos 301*4b169a6bSchristos * common.m4 (GDB_AC_COMMON): Refactor checks for kinfo_getfile(). 302*4b169a6bSchristos * configure, config.in: Regenerate. 303*4b169a6bSchristos 304*4b169a6bSchristos2020-09-14 Pedro Alves <pedro@palves.net> 305*4b169a6bSchristos 306*4b169a6bSchristos * enum-flags.h: Include "traits.h". 307*4b169a6bSchristos (DEF_ENUM_FLAGS_TYPE): Declare a function instead of defining a 308*4b169a6bSchristos structure. 309*4b169a6bSchristos (enum_underlying_type): Update comment. 310*4b169a6bSchristos (namespace enum_flags_detail): New. Move struct zero_type here. 311*4b169a6bSchristos (EnumIsUnsigned, EnumIsSigned): New. 312*4b169a6bSchristos (class enum_flags): Make most methods constexpr. 313*4b169a6bSchristos (operator&=, operator|=, operator^=): Take an enum_flags instead 314*4b169a6bSchristos of an enum_type. Make rvalue ref versions deleted. 315*4b169a6bSchristos (operator enum_type()): Delete. 316*4b169a6bSchristos (operator&, operator|, operator^, operator~): Delete, moved out of 317*4b169a6bSchristos class. 318*4b169a6bSchristos (raw()): New method. 319*4b169a6bSchristos (is_enum_flags_enum_type_t): Declare. 320*4b169a6bSchristos (ENUM_FLAGS_GEN_BINOP, ENUM_FLAGS_GEN_COMPOUND_ASSIGN) 321*4b169a6bSchristos (ENUM_FLAGS_GEN_COMP): New. Use them to reimplement global 322*4b169a6bSchristos operators. 323*4b169a6bSchristos (operator~): Now constexpr and reimplemented. 324*4b169a6bSchristos (operator<<, operator>>): New deleted functions. 325*4b169a6bSchristos * valid-expr.h (CHECK_VALID_EXPR_5, CHECK_VALID_EXPR_6): New. 326*4b169a6bSchristos 327*4b169a6bSchristos2020-09-14 Pedro Alves <pedro@palves.net> 328*4b169a6bSchristos 329*4b169a6bSchristos * traits.h (struct nonesuch, struct detector, detected_or) 330*4b169a6bSchristos (detected_or_t, is_detected, detected_t, detected_or) 331*4b169a6bSchristos (detected_or_t, is_detected_exact, is_detected_convertible): New. 332*4b169a6bSchristos * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact. 333*4b169a6bSchristos 334*4b169a6bSchristos2020-09-10 Kamil Rytarowski <n54@gmx.com> 335*4b169a6bSchristos 336*4b169a6bSchristos * eintr.h: New file. 337*4b169a6bSchristos 338*4b169a6bSchristos2020-08-13 Simon Marchi <simon.marchi@polymtl.ca> 339*4b169a6bSchristos 340*4b169a6bSchristos * selftest.h (run_tests): Change parameter to array_view. 341*4b169a6bSchristos * selftest.c (run_tests): Change parameter to array_view and use 342*4b169a6bSchristos it. 343*4b169a6bSchristos 344*4b169a6bSchristos2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 345*4b169a6bSchristos 346*4b169a6bSchristos * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS. 347*4b169a6bSchristos * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for 348*4b169a6bSchristos <sys/procfs.h>. 349*4b169a6bSchristos * Makefile.in: Regenerate. 350*4b169a6bSchristos * configure, config.in: Regenerate. 351*4b169a6bSchristos 352*4b169a6bSchristos2020-07-28 Tom de Vries <tdevries@suse.de> 353*4b169a6bSchristos 354*4b169a6bSchristos PR build/26281 355*4b169a6bSchristos * gdb_optional.h (class optional): Add volatile member to union 356*4b169a6bSchristos contaning m_dummy and m_item. 357*4b169a6bSchristos 358*4b169a6bSchristos2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com> 359*4b169a6bSchristos 360*4b169a6bSchristos * tdesc.h (struct target_desc_deleter): Moved here 361*4b169a6bSchristos from gdb/target-descriptions.h, extend comment. 362*4b169a6bSchristos (target_desc_up): Likewise. 363*4b169a6bSchristos 364*4b169a6bSchristos2020-06-30 Tom Tromey <tromey@adacore.com> 365*4b169a6bSchristos 366*4b169a6bSchristos PR build/26183: 367*4b169a6bSchristos * gdb_string_view.h (basic_string_view::to_string): Remove. 368*4b169a6bSchristos (gdb::to_string): New function. 369*4b169a6bSchristos 370*4b169a6bSchristos2020-06-27 Simon Marchi <simon.marchi@efficios.com> 371*4b169a6bSchristos 372*4b169a6bSchristos * tdesc.h (class print_xml_feature) <add_line>: Add 373*4b169a6bSchristos ATTRIBUTE_PRINTF. 374*4b169a6bSchristos 375*4b169a6bSchristos2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> 376*4b169a6bSchristos 377*4b169a6bSchristos * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add 378*4b169a6bSchristos output content, and call indent as needed in all overloaded 379*4b169a6bSchristos variants. 380*4b169a6bSchristos (print_xml_feature::visit_post): Likewise. 381*4b169a6bSchristos (print_xml_feature::visit): Likewise. 382*4b169a6bSchristos (print_xml_feature::add_line): Two new overloaded functions. 383*4b169a6bSchristos * tdesc.h (print_xml_feature::indent): New member function. 384*4b169a6bSchristos (print_xml_feature::add_line): Two new overloaded member 385*4b169a6bSchristos functions. 386*4b169a6bSchristos (print_xml_feature::m_depth): New member variable. 387*4b169a6bSchristos 388*4b169a6bSchristos2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> 389*4b169a6bSchristos 390*4b169a6bSchristos * tdesc.cc (print_xml_feature::visit_pre): Print compatible 391*4b169a6bSchristos information. 392*4b169a6bSchristos * tdesc.h (struct tdesc_compatible_info): Declare new struct. 393*4b169a6bSchristos (tdesc_compatible_info_up): New typedef. 394*4b169a6bSchristos (tdesc_compatible_info_list): Declare new function. 395*4b169a6bSchristos (tdesc_compatible_info_arch_name): Declare new function. 396*4b169a6bSchristos 397*4b169a6bSchristos2020-05-25 Michael Weghorn <m.weghorn@posteo.de> 398*4b169a6bSchristos 399*4b169a6bSchristos * common-utils.cc, common-utils.h (stringify_argv): Drop 400*4b169a6bSchristos now unused function stringify_argv 401*4b169a6bSchristos 402*4b169a6bSchristos2020-05-25 Michael Weghorn <m.weghorn@posteo.de> 403*4b169a6bSchristos 404*4b169a6bSchristos * common-inferior.cc, common-inferior.h (construct_inferior_arguments): 405*4b169a6bSchristos Adapt to take a gdb::array_view<char * const> parameter. 406*4b169a6bSchristos Adapt call site. 407*4b169a6bSchristos 408*4b169a6bSchristos2020-05-25 Michael Weghorn <m.weghorn@posteo.de> 409*4b169a6bSchristos 410*4b169a6bSchristos * common-inferior.cc, common-inferior.h (construct_inferior_arguments): 411*4b169a6bSchristos Adapt to handle zero args and return a std::string. 412*4b169a6bSchristos Adapt call site. 413*4b169a6bSchristos 414*4b169a6bSchristos2020-05-25 Michael Weghorn <m.weghorn@posteo.de> 415*4b169a6bSchristos 416*4b169a6bSchristos * common-inferior.h, common-inferior.cc: (construct_inferior_arguments): 417*4b169a6bSchristos Move function here from gdb/infcmd.c, gdb/inferior.h 418*4b169a6bSchristos 419*4b169a6bSchristos2020-05-14 Kevin Buettner <kevinb@redhat.com> 420*4b169a6bSchristos 421*4b169a6bSchristos * btrace-common.h (btrace_cpu_vendor): Add CV_AMD. 422*4b169a6bSchristos 423*4b169a6bSchristos2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> 424*4b169a6bSchristos 425*4b169a6bSchristos * common-regcache.h (regcache_read_pc_protected): New function 426*4b169a6bSchristos declaration. 427*4b169a6bSchristos 428*4b169a6bSchristos2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> 429*4b169a6bSchristos 430*4b169a6bSchristos * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask). 431*4b169a6bSchristos 432*4b169a6bSchristos2020-04-27 Simon Marchi <simon.marchi@polymtl.ca> 433*4b169a6bSchristos 434*4b169a6bSchristos * common-defs.h: Include cstdlib.h. 435*4b169a6bSchristos 436*4b169a6bSchristos2020-04-20 Tom Tromey <tromey@adacore.com> 437*4b169a6bSchristos 438*4b169a6bSchristos * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept. 439*4b169a6bSchristos Use initialization style. Don't call destroy. 440*4b169a6bSchristos * scoped_fd.h (class scoped_fd): Mark move constructor as 441*4b169a6bSchristos noexcept. 442*4b169a6bSchristos * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as 443*4b169a6bSchristos noexcept. 444*4b169a6bSchristos 445*4b169a6bSchristos2020-04-13 Tom Tromey <tom@tromey.com> 446*4b169a6bSchristos 447*4b169a6bSchristos * event-loop.c: Move comment. Remove obsolete comment. 448*4b169a6bSchristos 449*4b169a6bSchristos2020-04-13 Tom Tromey <tom@tromey.com> 450*4b169a6bSchristos 451*4b169a6bSchristos * event-loop.h: Move from ../gdb/. 452*4b169a6bSchristos * event-loop.cc: Move from ../gdb/. 453*4b169a6bSchristos 454*4b169a6bSchristos2020-04-13 Tom Tromey <tom@tromey.com> 455*4b169a6bSchristos 456*4b169a6bSchristos * errors.h (flush_streams): Declare. 457*4b169a6bSchristos 458*4b169a6bSchristos2020-04-13 Tom Tromey <tom@tromey.com> 459*4b169a6bSchristos 460*4b169a6bSchristos * gdb_select.h: Move from ../gdb/. 461*4b169a6bSchristos 462*4b169a6bSchristos2020-04-13 Tom Tromey <tom@tromey.com> 463*4b169a6bSchristos 464*4b169a6bSchristos * config.in, configure: Rebuild. 465*4b169a6bSchristos * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h, 466*4b169a6bSchristos sys/select.h, and poll. 467*4b169a6bSchristos 468*4b169a6bSchristos2020-03-31 Tom Tromey <tromey@adacore.com> 469*4b169a6bSchristos 470*4b169a6bSchristos * btrace-common.cc (btrace_data_append): Conditionally call 471*4b169a6bSchristos memcpy. 472*4b169a6bSchristos 473*4b169a6bSchristos2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com> 474*4b169a6bSchristos 475*4b169a6bSchristos * create-version.sh: Resolve issues highlighted by shellcheck. 476*4b169a6bSchristos 477*4b169a6bSchristos2020-03-20 Simon Marchi <simon.marchi@efficios.com> 478*4b169a6bSchristos 479*4b169a6bSchristos * config.in: Re-generate. 480*4b169a6bSchristos * configure: Re-generate. 481*4b169a6bSchristos 482*4b169a6bSchristos2020-03-17 Kamil Rytarowski <n54@gmx.com> 483*4b169a6bSchristos 484*4b169a6bSchristos * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined. 485*4b169a6bSchristos 486*4b169a6bSchristos2020-03-12 Tom Tromey <tom@tromey.com> 487*4b169a6bSchristos 488*4b169a6bSchristos * common-types.h: Remove GDBSERVER code. 489*4b169a6bSchristos (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine. 490*4b169a6bSchristos * common-defs.h: Remove GDBSERVER code. 491*4b169a6bSchristos 492*4b169a6bSchristos2020-03-12 Simon Marchi <simon.marchi@efficios.com> 493*4b169a6bSchristos 494*4b169a6bSchristos * selftest.m4: Moved from gdb/. 495*4b169a6bSchristos * acinclude.m4: Update path to selftest.m4. 496*4b169a6bSchristos 497*4b169a6bSchristos2020-03-12 Simon Marchi <simon.marchi@efficios.com> 498*4b169a6bSchristos 499*4b169a6bSchristos * configure.ac: Don't source bfd/development.sh. 500*4b169a6bSchristos * common.m4: Source bfd/development.sh. 501*4b169a6bSchristos * configure: Re-generate. 502*4b169a6bSchristos 503*4b169a6bSchristos2020-03-12 Simon Marchi <simon.marchi@efficios.com> 504*4b169a6bSchristos 505*4b169a6bSchristos * configure: Re-generate. 506*4b169a6bSchristos 507*4b169a6bSchristos2020-03-11 Simon Marchi <simon.marchi@efficios.com> 508*4b169a6bSchristos 509*4b169a6bSchristos * configure: Re-generate. 510*4b169a6bSchristos * warning.m4: Enable -Wmissing-prototypes. 511*4b169a6bSchristos 512*4b169a6bSchristos2020-03-08 Tom Tromey <tom@tromey.com> 513*4b169a6bSchristos 514*4b169a6bSchristos * gdb_binary_search.h: Fix two typos. 515*4b169a6bSchristos 516*4b169a6bSchristos2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com> 517*4b169a6bSchristos 518*4b169a6bSchristos * .dir-locals.el: New file. 519*4b169a6bSchristos 520*4b169a6bSchristos2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com> 521*4b169a6bSchristos 522*4b169a6bSchristos * configure.ac: Added call development.sh. 523*4b169a6bSchristos * configure: Regenerate. 524*4b169a6bSchristos 525*4b169a6bSchristos2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> 526*4b169a6bSchristos 527*4b169a6bSchristos * .gitattributes: New file. 528*4b169a6bSchristos 529*4b169a6bSchristos2020-03-03 Simon Marchi <simon.marchi@efficios.com> 530*4b169a6bSchristos 531*4b169a6bSchristos * Makefile.in: Re-generate. 532*4b169a6bSchristos 533*4b169a6bSchristos2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com> 534*4b169a6bSchristos 535*4b169a6bSchristos * gdb-dlfcn.h (gdb_dlopen): Update comment. 536*4b169a6bSchristos 537*4b169a6bSchristos2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> 538*4b169a6bSchristos 539*4b169a6bSchristos * configure: Regenerate. 540*4b169a6bSchristos 541*4b169a6bSchristos2020-02-14 Tom Tromey <tom@tromey.com> 542*4b169a6bSchristos 543*4b169a6bSchristos * common-defs.h: Change path to gnulib/config.h. 544*4b169a6bSchristos 545*4b169a6bSchristos2020-02-13 Simon Marchi <simon.marchi@efficios.com> 546*4b169a6bSchristos 547*4b169a6bSchristos * Makefile.am: Rename source files from .c to .cc. 548*4b169a6bSchristos (CC, CFLAGS): Don't override. 549*4b169a6bSchristos (AM_CFLAGS): Rename to ... 550*4b169a6bSchristos (AM_CXXFLAGS): ... this. 551*4b169a6bSchristos * Makefile.in: Re-generate. 552*4b169a6bSchristos * %.c: Rename to %.cc. 553*4b169a6bSchristos 554*4b169a6bSchristos2020-02-11 Simon Marchi <simon.marchi@efficios.com> 555*4b169a6bSchristos 556*4b169a6bSchristos * configure: Re-generate. 557*4b169a6bSchristos 558*4b169a6bSchristos2020-02-11 Simon Marchi <simon.marchi@efficios.com> 559*4b169a6bSchristos 560*4b169a6bSchristos * warning.m4: Add -Wstrict-null-sentinel. 561*4b169a6bSchristos * configure: Re-generate. 562*4b169a6bSchristos 563*4b169a6bSchristos2020-02-11 Simon Marchi <simon.marchi@efficios.com> 564*4b169a6bSchristos 565*4b169a6bSchristos * warning.m4: Move here, from gdb/warning.m4. 566*4b169a6bSchristos * acinclude.m4: Update warning.m4 path. 567*4b169a6bSchristos * Makefile.in: Re-generate. 568*4b169a6bSchristos 569*4b169a6bSchristos2020-02-11 Simon Marchi <simon.marchi@efficios.com> 570*4b169a6bSchristos 571*4b169a6bSchristos * acinclude.m4: Include ../gdb/warning.m4. 572*4b169a6bSchristos * configure.ac: Use AM_GDB_WARNINGS. 573*4b169a6bSchristos * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS. 574*4b169a6bSchristos * Makefile.in: Re-generate. 575*4b169a6bSchristos * configure: Re-generate. 576*4b169a6bSchristos 577*4b169a6bSchristos2020-02-10 Tom de Vries <tdevries@suse.de> 578*4b169a6bSchristos 579*4b169a6bSchristos * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *. 580*4b169a6bSchristos 581*4b169a6bSchristos2020-01-24 Christian Biesinger <cbiesinger@google.com> 582*4b169a6bSchristos 583*4b169a6bSchristos * thread-pool.c (set_thread_name): Add an overload for the NetBSD 584*4b169a6bSchristos version of pthread_setname_np. 585*4b169a6bSchristos 586*4b169a6bSchristos2020-01-17 Pedro Alves <palves@redhat.com> 587*4b169a6bSchristos 588*4b169a6bSchristos * Makefile.am: Append CXX_DIALECT to CXX. 589*4b169a6bSchristos * Makefile.in: Regenerate. 590*4b169a6bSchristos 591*4b169a6bSchristos2020-01-17 Pedro Alves <palves@redhat.com> 592*4b169a6bSchristos 593*4b169a6bSchristos * configure.ac: Generate config.h instead of support-config.h. 594*4b169a6bSchristos * common-defs.h: Include <gdbsupport/config.h> instead of 595*4b169a6bSchristos <gdbsupport/support-config.h>. 596*4b169a6bSchristos * Makefile.in: Regenerate. 597*4b169a6bSchristos * configure: Regenerate. 598*4b169a6bSchristos 599*4b169a6bSchristos2020-01-14 Tom Tromey <tom@tromey.com> 600*4b169a6bSchristos 601*4b169a6bSchristos * Makefile.in: Rebuild. 602*4b169a6bSchristos * Makefile.am (check-defines): New target. 603*4b169a6bSchristos * check-defines.el: New file. 604*4b169a6bSchristos 605*4b169a6bSchristos2020-01-14 Tom Tromey <tom@tromey.com> 606*4b169a6bSchristos 607*4b169a6bSchristos * configure, Makefile.in, aclocal.m4, common.m4, config.in: 608*4b169a6bSchristos Rebuild. 609*4b169a6bSchristos * common.m4 (GDB_AC_COMMON): Move many checks from 610*4b169a6bSchristos gdb/configure.ac. 611*4b169a6bSchristos * acinclude.m4: Include bfd.m4, ptrace.m4. 612*4b169a6bSchristos 613*4b169a6bSchristos2020-01-14 Tom Tromey <tom@tromey.com> 614*4b169a6bSchristos 615*4b169a6bSchristos * common-defs.h: Add GDBSERVER case. Update includes. 616*4b169a6bSchristos * acinclude.m4, aclocal.m4, config.in, configure, configure.ac, 617*4b169a6bSchristos Makefile.am, Makefile.in, README: New files. 618*4b169a6bSchristos * Moved from ../gdb/gdbsupport/ 619