| 1 | 2021-04-17 Tom Tromey <tom@tromey.com> |
| 2 | |
| 3 | * symfile-debug.c (objfile::lookup_symbol): Rewrite. |
| 4 | * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>: |
| 5 | Remove. |
| 6 | * psymtab.c (psymbol_functions::lookup_symbol): Remove. |
| 7 | * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove. |
| 8 | * objfiles.h (struct objfile) <lookup_symbol>: Add comment. |
| 9 | * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>: |
| 10 | Remove. |
| 11 | (struct dwarf2_debug_names_index) <lookup_symbol>: Remove. |
| 12 | (dwarf2_gdb_index::lookup_symbol) |
| 13 | (dwarf2_debug_names_index::lookup_symbol): Remove. |
| 14 | |
| 15 | 2021-04-17 Tom Tromey <tom@tromey.com> |
| 16 | |
| 17 | * symtab.c (global_symbol_searcher::expand_symtabs): Update. |
| 18 | * symmisc.c (maintenance_expand_symtabs): Update. |
| 19 | * symfile.c (expand_symtabs_matching): Update. |
| 20 | * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain' |
| 21 | parameter. |
| 22 | * quick-symbol.h (struct quick_symbol_functions) |
| 23 | <expand_symtabs_matching>: Add 'domain' parameter. |
| 24 | * psymtab.c (recursively_search_psymtabs) |
| 25 | (psymbol_functions::expand_symtabs_matching): Add 'domain' |
| 26 | parameter. |
| 27 | * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>: |
| 28 | Add 'domain' parameter. |
| 29 | * objfiles.h (struct objfile) <expand_symtabs_matching>: Add |
| 30 | 'domain' parameter. |
| 31 | * linespec.c (iterate_over_all_matching_symtabs): Update. |
| 32 | * dwarf2/read.c (struct dwarf2_gdb_index) |
| 33 | <expand_symtabs_matching>: Add 'domain' parameter. |
| 34 | (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add |
| 35 | 'domain' parameter. |
| 36 | (dw2_expand_symtabs_matching) |
| 37 | (dwarf2_gdb_index::expand_symtabs_matching) |
| 38 | (dw2_debug_names_iterator) |
| 39 | (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain' |
| 40 | parameter. |
| 41 | |
| 42 | 2021-04-17 Tom Tromey <tom@tromey.com> |
| 43 | |
| 44 | * symtab.c (global_symbol_searcher::expand_symtabs) |
| 45 | (default_collect_symbol_completion_matches_break_on): Update. |
| 46 | * symmisc.c (maintenance_expand_symtabs): Update. |
| 47 | * symfile.h (expand_symtabs_matching): Add search_flags |
| 48 | parameter. |
| 49 | * symfile.c (expand_symtabs_matching): Add search_flags |
| 50 | parameter. |
| 51 | * symfile-debug.c (objfile::expand_symtabs_matching): Add |
| 52 | search_flags parameter. |
| 53 | * quick-symbol.h (struct quick_symbol_functions) |
| 54 | <expand_symtabs_matching>: Add search_flags parameter. |
| 55 | * python/py-symbol.c (gdbpy_lookup_static_symbols): Update. |
| 56 | * psymtab.c (recursively_search_psymtabs) |
| 57 | (psymbol_functions::expand_symtabs_matching): Add search_flags |
| 58 | parameter. |
| 59 | * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>: |
| 60 | Add search_flags parameter. |
| 61 | * objfiles.h (struct objfile) <expand_symtabs_matching>: Add |
| 62 | search_flags parameter. |
| 63 | * linespec.c (iterate_over_all_matching_symtabs): Update. |
| 64 | * dwarf2/read.c (struct dwarf2_gdb_index) |
| 65 | <expand_symtabs_matching>: Add search_flags parameter. |
| 66 | (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add |
| 67 | search_flags parameter. |
| 68 | (dw2_map_matching_symbols): Update. |
| 69 | (dw2_expand_marked_cus, dw2_expand_symtabs_matching) |
| 70 | (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags |
| 71 | parameter. |
| 72 | (dw2_debug_names_iterator): Change block_index to search flags. |
| 73 | <m_block_index>: Likewise. |
| 74 | (dw2_debug_names_iterator::next) |
| 75 | (dwarf2_debug_names_index::lookup_symbol) |
| 76 | (dwarf2_debug_names_index::expand_symtabs_for_function) |
| 77 | (dwarf2_debug_names_index::map_matching_symbols) |
| 78 | (dwarf2_debug_names_index::map_matching_symbols): Update. |
| 79 | (dwarf2_debug_names_index::expand_symtabs_matching): Add |
| 80 | search_flags parameter. |
| 81 | * ada-lang.c (ada_add_global_exceptions) |
| 82 | (collect_symbol_completion_matches): Update. |
| 83 | |
| 84 | 2021-04-17 Tom Tromey <tom@tromey.com> |
| 85 | |
| 86 | * symtab.c (default_collect_symbol_completion_matches_break_on): |
| 87 | Update. |
| 88 | * symfile.h (expand_symtabs_matching): Return bool. |
| 89 | * symfile.c (expand_symtabs_matching): Return bool. |
| 90 | * symfile-debug.c (objfile::expand_symtabs_matching): Return |
| 91 | bool. |
| 92 | * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool. |
| 93 | (struct quick_symbol_functions) <expand_symtabs_matching>: Return |
| 94 | bool. |
| 95 | * psymtab.c (psymbol_functions::expand_symtabs_matching): Return |
| 96 | bool. |
| 97 | * psympriv.h (struct psymbol_functions) |
| 98 | <expand_symtabs_matching>: Return bool. |
| 99 | * objfiles.h (struct objfile) <expand_symtabs_matching>: Return |
| 100 | bool. |
| 101 | * dwarf2/read.c (struct dwarf2_gdb_index) |
| 102 | <expand_symtabs_matching>: Return bool. |
| 103 | (struct dwarf2_debug_names_index) <expand_symtabs_matching>: |
| 104 | Return bool. |
| 105 | (dw2_expand_symtabs_matching_symbol): Return bool. |
| 106 | (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus) |
| 107 | (dw2_expand_symtabs_matching) |
| 108 | (dwarf2_gdb_index::expand_symtabs_matching) |
| 109 | (dwarf2_debug_names_index::expand_symtabs_matching) |
| 110 | (dwarf2_debug_names_index::expand_symtabs_matching): Return bool. |
| 111 | |
| 112 | 2021-04-17 Tom Tromey <tom@tromey.com> |
| 113 | |
| 114 | * quick-symbol.h (enum block_search_flag_values): New. |
| 115 | (block_search_flags): New enum flags type. |
| 116 | |
| 117 | 2021-04-16 Tom Tromey <tom@tromey.com> |
| 118 | |
| 119 | * rust-parse.c: New file. |
| 120 | * rust-exp.y: Remove. |
| 121 | * Makefile.in (COMMON_SFILES): Add rust-parse.c. |
| 122 | (SFILES): Remove rust-exp.y. |
| 123 | (YYFILES, local-maintainer-clean): Remove rust-exp.c. |
| 124 | |
| 125 | 2021-04-16 Luis Machado <luis.machado@linaro.org> |
| 126 | |
| 127 | * arch-utils.c (default_floatformat_for_type): Handle bfloat16. |
| 128 | |
| 129 | 2021-04-15 John Baldwin <jhb@FreeBSD.org> |
| 130 | |
| 131 | * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New, |
| 132 | use throughout file. |
| 133 | |
| 134 | 2021-04-15 Tom Tromey <tromey@adacore.com> |
| 135 | |
| 136 | * ada-valprint.c (ada_value_print_array): Handle optimized-out |
| 137 | arrays. |
| 138 | |
| 139 | 2021-04-15 Tom Tromey <tromey@adacore.com> |
| 140 | |
| 141 | * printcmd.c (print_variable_and_value): Use |
| 142 | common_val_print_checked. |
| 143 | |
| 144 | 2021-04-15 Tom Tromey <tromey@adacore.com> |
| 145 | |
| 146 | * rust-exp.y (rust_parser::convert_ast_to_expression): Update. |
| 147 | * parse.c (parser_state::push_symbol, parser_state::push_dollar): |
| 148 | Update. |
| 149 | * p-exp.y (variable): Update. |
| 150 | * m2-exp.y (variable): Update. |
| 151 | * go-exp.y (variable): Update. |
| 152 | * expprint.c (dump_for_expression): New overload. |
| 153 | * expop.h (check_objfile): New overload. |
| 154 | (check_constant): New overload. |
| 155 | (class var_value_operation): Use block_symbol. |
| 156 | <get_symbol>: Rewrite. |
| 157 | * eval.c (var_value_operation::evaluate) |
| 158 | (var_value_operation::evaluate_funcall) |
| 159 | (var_value_operation::evaluate_for_address) |
| 160 | (var_value_operation::evaluate_for_address) |
| 161 | (var_value_operation::evaluate_with_coercion) |
| 162 | (var_value_operation::evaluate_for_sizeof) |
| 163 | (var_value_operation::evaluate_for_cast): Update. |
| 164 | * d-exp.y (PrimaryExpression): Update. |
| 165 | * c-exp.y (variable): Update. |
| 166 | * ax-gdb.c (var_value_operation::do_generate_ax): Update. |
| 167 | * ada-lang.c (ada_var_value_operation::evaluate_for_cast) |
| 168 | (ada_var_value_operation::evaluate) |
| 169 | (ada_var_value_operation::resolve) |
| 170 | (ada_funcall_operation::resolve): Update. |
| 171 | * ada-exp.y (write_var_from_sym, write_object_renaming) |
| 172 | (write_ambiguous_var, write_var_or_type, write_name_assoc) |
| 173 | (maybe_overload): Update. |
| 174 | * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite. |
| 175 | |
| 176 | 2021-04-15 Tom Tromey <tom@tromey.com> |
| 177 | Andrew Burgess <andrew.burgess@embecosm.com> |
| 178 | |
| 179 | * NEWS: Add entry. |
| 180 | * main.c (captured_main_1): Call check_quiet_mode. |
| 181 | * top.c (startup_quiet): New global. |
| 182 | (check_quiet_mode): New function. |
| 183 | (show_startup_quiet): New function. |
| 184 | (init_main): Register new command. |
| 185 | * top.h (check_quiet_mode): Declare. |
| 186 | |
| 187 | 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com> |
| 188 | |
| 189 | PR cli/25956 |
| 190 | * NEWS: Mention new early init files and command line options. |
| 191 | * config.in: Regenerate. |
| 192 | * configure: Regenerate. |
| 193 | * configure.ac: Define GDBEARLYINIT. |
| 194 | * main.c (get_earlyinit_files): New function. |
| 195 | (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and |
| 196 | CMDARG_EARLYINIT_COMMAND. |
| 197 | (captured_main_1): Add support for new command line flags, and for |
| 198 | processing startup files. |
| 199 | (print_gdb_help): Include startup files in the output. |
| 200 | |
| 201 | 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com> |
| 202 | |
| 203 | * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to... |
| 204 | (relocate_file_path_maybe_in_datadir): ...this. |
| 205 | (class gdb_initfile_finder): New class. |
| 206 | (get_init_files): Now uses gdb_initfile_finder. |
| 207 | (print_gdb_help): Print 'None found' when there are no init files. |
| 208 | |
| 209 | 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
| 210 | |
| 211 | * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the |
| 212 | corresponding child of the abstract DIE when iterating the |
| 213 | children of the concrete DIE. |
| 214 | |
| 215 | 2021-04-13 Tom de Vries <tdevries@suse.de> |
| 216 | |
| 217 | * ui-style.c (read_semi_number, extended_color): Change idx parameter |
| 218 | type to regoff_t *. |
| 219 | |
| 220 | 2021-04-13 Luis Machado <luis.machado@linaro.org> |
| 221 | |
| 222 | * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print |
| 223 | hex values. |
| 224 | |
| 225 | 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com> |
| 226 | |
| 227 | * rs6000-tdep.c: Add support for single-stepping of |
| 228 | prefixed instructions. |
| 229 | |
| 230 | 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com> |
| 231 | |
| 232 | PR gdb/27525 |
| 233 | * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to |
| 234 | handle the addpcis/lnia instruction. |
| 235 | |
| 236 | 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com> |
| 237 | |
| 238 | * MAINTAINERS (Write After Approval): Add myself. |
| 239 | |
| 240 | 2021-4-12 Carl Love <cel@us.ibm.com> |
| 241 | |
| 242 | * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable. |
| 243 | (rs6000_builtin_type_vec128): Add append_composite_type_field for |
| 244 | float128. |
| 245 | |
| 246 | 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca> |
| 247 | |
| 248 | * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE. |
| 249 | * nat/windows-nat.h: Likewise. |
| 250 | |
| 251 | 2021-04-10 Eli Zaretskii <eliz@gnu.org> |
| 252 | |
| 253 | * windows-nat.c (windows_nat::handle_load_dll): Call |
| 254 | windows_add_dll if get_image_name failed to glean the name of the |
| 255 | DLL by using the lpImageName pointer. |
| 256 | (windows_add_all_dlls): Now a thin wrapper around windows_add_dll. |
| 257 | (windows_add_dll): Now does what windows_add_all_dlls did before, |
| 258 | but also accepts an argument LOAD_ADDR, which, if non-NULL, |
| 259 | specifies the address where the DLL was loaded into the inferior, |
| 260 | and looks for the single DLL loaded at that address. |
| 261 | |
| 262 | 2021-04-09 Luis Machado <luis.machado@linaro.org> |
| 263 | |
| 264 | * nat/aarch64-mte-linux-ptrace.c: Update include file order. |
| 265 | |
| 266 | 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch> |
| 267 | |
| 268 | * darwin-nat.c (darwin_nat_target::resume): Remove status |
| 269 | variable. |
| 270 | |
| 271 | 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com> |
| 272 | |
| 273 | * i386-tdep.c (i386_skip_prologue): Use symbol table to find the |
| 274 | prologue end for Intel compilers. |
| 275 | * amd64-tdep.c (amd64_skip_prologue): Likewise. |
| 276 | * producer.c (producer_is_icc_ge_19): New function. |
| 277 | * producer.h (producer_is_icc_ge_19): New declaration. |
| 278 | |
| 279 | 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com> |
| 280 | |
| 281 | * producer.c: (producer_is_icc): Update for new version scheme. |
| 282 | (producer_parsing_tests): Update names and expected results. |
| 283 | * producer.h: (producer_is_icc): Update comment accordingly. |
| 284 | |
| 285 | 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
| 286 | |
| 287 | * target.h (struct target_ops) <follow_fork>: Return void. |
| 288 | (target_follow_fork): Likewise. |
| 289 | * target.c (default_follow_fork): Likewise. |
| 290 | (target_follow_fork): Likewise. |
| 291 | * infrun.c (follow_fork_inferior): Adjust. |
| 292 | * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void. |
| 293 | * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise. |
| 294 | * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise. |
| 295 | * linux-nat.c (linux_nat_target::follow_fork): Return void. |
| 296 | * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void. |
| 297 | * obsd-nat.c (obsd_nat_target::follow_fork): Likewise. |
| 298 | * remote.c (class remote_target) <follow_fork>: Likewise. |
| 299 | (remote_target::follow_fork): Likewise. |
| 300 | * target-delegates.c: Re-generate. |
| 301 | |
| 302 | 2021-04-07 Weimin Pan <weimin.pan@oracle.com> |
| 303 | |
| 304 | * ctfread.c (fetch_tid_type): New function, use throughout file. |
| 305 | (read_forward_type): New function. |
| 306 | (read_type_record): Call read_forward_type. |
| 307 | |
| 308 | 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com> |
| 309 | |
| 310 | * f-exp.h (class fortran_structop_operation): New class. |
| 311 | * f-exp.y (exp): Create fortran_structop_operation instead of the |
| 312 | generic structop_operation. |
| 313 | * f-lang.c (fortran_undetermined::evaluate): Re-evaluate |
| 314 | expression as EVAL_NORMAL if the result type was dynamic so we can |
| 315 | extract the actual array bounds. |
| 316 | (fortran_structop_operation::evaluate): New function. |
| 317 | |
| 318 | 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com> |
| 319 | |
| 320 | * eval.c (evaluate_subexp_standard): Remove |
| 321 | EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and |
| 322 | STRUCTOP_PTR. |
| 323 | |
| 324 | 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com> |
| 325 | |
| 326 | * valops.c (value_cast): Call value_deeply_equal before performing |
| 327 | any cast. |
| 328 | |
| 329 | 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com> |
| 330 | |
| 331 | * gdbtypes.c (types_equal): Move pointer equality check earlier in |
| 332 | the function. |
| 333 | |
| 334 | 2021-04-07 Caroline Tice <cmtice@google.com> |
| 335 | |
| 336 | * dwarf2/read.c (try_open_dwop_file): Add path for the binary to |
| 337 | the search paths used resolve relative location of .dwo file. |
| 338 | |
| 339 | 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com> |
| 340 | |
| 341 | * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an |
| 342 | assert. |
| 343 | (dwarf2_section_info::get_file_name): Add an assert. |
| 344 | (dwarf2_section_info::read_string): Display a minimal, sane error |
| 345 | when the dwarf2_section_info is not associated with a bfd section. |
| 346 | |
| 347 | 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com> |
| 348 | |
| 349 | * top.c (staged_gdb_datadir): Update comment. |
| 350 | (set_gdb_datadir): Copy the value of gdb_datadir back into |
| 351 | staged_datadir. |
| 352 | (init_main): Initialise staged_gdb_datadir. |
| 353 | |
| 354 | 2021-04-06 Tom de Vries <tdevries@suse.de> |
| 355 | |
| 356 | PR breakpoints/25884 |
| 357 | * infcmd.c (prepare_one_step): Using inline frame info to narrow |
| 358 | stepping range. |
| 359 | |
| 360 | 2021-04-06 Tom de Vries <tdevries@suse.de> |
| 361 | |
| 362 | PR tui/27680 |
| 363 | * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape |
| 364 | to style.parse. |
| 365 | |
| 366 | 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca> |
| 367 | |
| 368 | * avr-tdep.c (avr_frame_unwind_cache): Use |
| 369 | trad_frame_saved_reg::is_addr. |
| 370 | |
| 371 | 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 372 | |
| 373 | * objfiles.c (get_objfile_bfd_data): Remove objfile parameter, |
| 374 | adjust callers. |
| 375 | |
| 376 | 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 377 | |
| 378 | * psympriv.h (struct partial_symtab) <partial_symtab>: Change |
| 379 | objfile parameter for objfile_per_bfd_storage, adjust callers. |
| 380 | (struct standard_psymtab) <standard_psymtab>: Likewise. |
| 381 | (struct legacy_psymtab) <legacy_psymtab>: Likewise. |
| 382 | * psymtab.c (partial_symtab::partial_symtab): Likewise. |
| 383 | * ctfread.c (struct ctf_psymtab): Likewise. |
| 384 | * dwarf2/read.h (struct dwarf2_psymtab): Likewise. |
| 385 | * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise. |
| 386 | (dwarf2_create_include_psymtab): Likewise. |
| 387 | * objfiles.h (struct objfile_per_bfd_storage) |
| 388 | <objfile_per_bfd_storage>: Add bfd parameter, adjust callers. |
| 389 | <get_bfd>: New method. |
| 390 | <m_bfd>: New field. |
| 391 | * objfiles.c (get_objfile_bfd_data): Adjust. |
| 392 | |
| 393 | 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 394 | |
| 395 | * psymtab.c (partial_symtab::partial_symtab): Change |
| 396 | last_objfile_name to be an std::string. |
| 397 | * symfile.c (allocate_symtab): Likewise. |
| 398 | |
| 399 | 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 400 | |
| 401 | * objfiles.h (struct objfile_per_bfd_storage) <intern>: New |
| 402 | methods. |
| 403 | (struct objfile) <intern>: Use |
| 404 | objfile::objfile_per_bfd_storage::intern. |
| 405 | |
| 406 | 2021-04-01 Simon Marchi <simon.marchi@efficios.com> |
| 407 | |
| 408 | * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses |
| 409 | with type::is_flag_enum. |
| 410 | |
| 411 | 2021-04-01 Simon Marchi <simon.marchi@efficios.com> |
| 412 | |
| 413 | * gdbtypes.h (struct type) <is_flag_enum, |
| 414 | set_is_flag_enum>: New methods. |
| 415 | (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all |
| 416 | write call sites to use type::set_is_flag_enum. |
| 417 | |
| 418 | 2021-04-01 Simon Marchi <simon.marchi@efficios.com> |
| 419 | |
| 420 | * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses |
| 421 | with type::is_declared_class. |
| 422 | |
| 423 | 2021-04-01 Simon Marchi <simon.marchi@efficios.com> |
| 424 | |
| 425 | * gdbtypes.h (struct type) <is_declared_class, |
| 426 | set_is_declared_class>: New methods. |
| 427 | (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all |
| 428 | write call sites to use type::set_is_declared_class. |
| 429 | |
| 430 | 2021-02-28 Boris Staletic <boris.staletic@gmail.com> |
| 431 | |
| 432 | * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+ |
| 433 | to avoid deprecation warnings. |
| 434 | |
| 435 | 2021-04-01 Martin Liska <mliska@suse.cz> |
| 436 | |
| 437 | * cp-name-parser.y: Use startswith instead of strncmp. |
| 438 | * m2-exp.y: Likewise. |
| 439 | * macroexp.c (substitute_args): Likewise. |
| 440 | * mi/mi-main.c (command_notifies_uscc_observer): Likewise. |
| 441 | * rust-exp.y: Likewise. |
| 442 | |
| 443 | 2021-03-31 Tom Tromey <tom@tromey.com> |
| 444 | |
| 445 | * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge |
| 446 | with dw2_map_matching_symbols. |
| 447 | (dwarf2_gdb_index::expand_symtabs_matching): Merge with |
| 448 | dw2_expand_symtabs_matching. |
| 449 | |
| 450 | 2021-03-31 Tom Tromey <tromey@adacore.com> |
| 451 | |
| 452 | * dwarf2/stringify.h: Fix typo. |
| 453 | |
| 454 | 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca> |
| 455 | |
| 456 | PR gdb/27541 |
| 457 | * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd |
| 458 | with objfiles using READNOW. |
| 459 | |
| 460 | 2021-03-29 Tom Tromey <tromey@adacore.com> |
| 461 | |
| 462 | * top.c (check_frame_language_change): Update. |
| 463 | * language.c (language_info): Remove parameter. |
| 464 | * language.h (language_info): Remove parameter. |
| 465 | |
| 466 | 2021-03-29 Luis Machado <luis.machado@linaro.org> |
| 467 | |
| 468 | * compile/compile.c (get_args): Don't add empty argv entries. |
| 469 | |
| 470 | 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
| 471 | |
| 472 | gdb: |
| 473 | * procfs.c (procfs_target::attach): Define inf. |
| 474 | Use it. |
| 475 | (procfs_target::create_inferior): Likewise. |
| 476 | |
| 477 | 2021-03-28 Tom Tromey <tom@tromey.com> |
| 478 | |
| 479 | * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c. |
| 480 | (elf_symfile_read): Simplify. |
| 481 | * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c. |
| 482 | (make_lazy_dwarf_reader): New function. |
| 483 | (make_dwarf_gdb_index, make_dwarf_debug_names): Now static. |
| 484 | (dwarf2_initialize_objfile): Return void. Remove index_kind |
| 485 | parameter. Push on 'qf' list. |
| 486 | * dwarf2/public.h (dwarf2_initialize_objfile): Change return |
| 487 | type. Remove 'index_kind' parameter. |
| 488 | (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare. |
| 489 | |
| 490 | 2021-03-27 Tom Tromey <tom@tromey.com> |
| 491 | |
| 492 | * elfread.c (elf_sym_fns_lazy_psyms): Don't declare. |
| 493 | |
| 494 | 2021-03-27 Tom Tromey <tom@tromey.com> |
| 495 | |
| 496 | * elfread.c (elf_symfile_read): Don't clear 'qf'. |
| 497 | |
| 498 | 2021-03-26 Lancelot Six <lsix@lancelotsix.com> |
| 499 | |
| 500 | * contrib/gdb-add-index.sh: Avoid variable shadowing and get |
| 501 | rid of 'local'. |
| 502 | |
| 503 | 2021-03-26 Tom Tromey <tom@tromey.com> |
| 504 | |
| 505 | * symtab.c (struct output_source_filename_data): Add 'output' |
| 506 | method and operator(). |
| 507 | (output_source_filename_data::output): Rename from |
| 508 | output_source_filename. |
| 509 | (output_partial_symbol_filename): Remove. |
| 510 | (info_sources_command): Update. |
| 511 | (struct add_partial_filename_data): Add operator(). |
| 512 | (add_partial_filename_data::operator()): Rename from |
| 513 | maybe_add_partial_symtab_filename. |
| 514 | (make_source_files_completion_list): Update. |
| 515 | * symfile.c (quick_symbol_functions): Update. |
| 516 | * symfile-debug.c (objfile::map_symbol_filenames): Update. |
| 517 | * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and |
| 518 | 'need_fullname'. Remove 'data' parameter. |
| 519 | (struct quick_symbol_functions) <map_symbol_filenames>: Likewise. |
| 520 | * psymtab.c (psymbol_functions::map_symbol_filenames): Update. |
| 521 | * psympriv.h (struct psymbol_functions) <map_symbol_filenames>: |
| 522 | Change type of 'fun' and 'need_fullname'. Remove 'data' |
| 523 | parameter. |
| 524 | * objfiles.h (struct objfile) <map_symbol_filenames>: Change type |
| 525 | of 'fun' and 'need_fullname'. Remove 'data' parameter. |
| 526 | * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore' |
| 527 | parameter. |
| 528 | (mi_cmd_file_list_exec_source_files): Update. |
| 529 | * dwarf2/read.c |
| 530 | (dwarf2_base_index_functions::map_symbol_filenames): Update. |
| 531 | |
| 532 | 2021-03-26 Tom Tromey <tom@tromey.com> |
| 533 | |
| 534 | * ada-lang.c (struct match_data): Add operator(). |
| 535 | (match_data::operator()): Rename from aux_add_nonlocal_symbols. |
| 536 | (callback): Remove 'callback'. |
| 537 | |
| 538 | 2021-03-26 Tom Tromey <tom@tromey.com> |
| 539 | |
| 540 | * psymtab.c (psymbol_functions::expand_symtabs_matching): Only |
| 541 | call make_ignore_params once. |
| 542 | |
| 543 | 2021-03-26 Tom Tromey <tom@tromey.com> |
| 544 | |
| 545 | * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove |
| 546 | "user" check. |
| 547 | |
| 548 | 2021-03-26 Simon Marchi <simon.marchi@efficios.com> |
| 549 | Pedro Alves <pedro@palves.net> |
| 550 | |
| 551 | * async-event.c: Include "infrun.h". |
| 552 | (async_event_handler_marked): New. |
| 553 | * async-event.h (async_event_handler_marked): Declare. |
| 554 | * infrun.c (maybe_set_commit_resumed_all_targets): Switch to |
| 555 | inferior before calling target method. Don't commit-resumed if |
| 556 | target_has_pending_events is true. |
| 557 | * remote.c (remote_target::has_pending_events): New. |
| 558 | * target-delegates.c: Regenerate. |
| 559 | * target.c (target_has_pending_events): New. |
| 560 | * target.h (target_ops::has_pending_events): New target method. |
| 561 | (target_has_pending_events): New. |
| 562 | |
| 563 | 2021-03-26 Simon Marchi <simon.marchi@efficios.com> |
| 564 | Pedro Alves <pedro@palves.net> |
| 565 | |
| 566 | * infcmd.c (run_command_1, attach_command, detach_command) |
| 567 | (interrupt_target_1): Use scoped_disable_commit_resumed. |
| 568 | * infrun.c (do_target_resume): Remove |
| 569 | target_commit_resume call. |
| 570 | (commit_resume_all_targets): Remove. |
| 571 | (maybe_set_commit_resumed_all_targets): New. |
| 572 | (maybe_call_commit_resumed_all_targets): New. |
| 573 | (enable_commit_resumed): New. |
| 574 | (scoped_disable_commit_resumed::scoped_disable_commit_resumed) |
| 575 | (scoped_disable_commit_resumed::~scoped_disable_commit_resumed) |
| 576 | (scoped_disable_commit_resumed::reset) |
| 577 | (scoped_disable_commit_resumed::reset_and_commit) |
| 578 | (scoped_enable_commit_resumed::scoped_enable_commit_resumed) |
| 579 | (scoped_enable_commit_resumed::~scoped_enable_commit_resumed): |
| 580 | New. |
| 581 | (proceed): Use scoped_disable_commit_resumed and |
| 582 | maybe_call_commit_resumed_all_targets. |
| 583 | (fetch_inferior_event): Use scoped_disable_commit_resumed. |
| 584 | * infrun.h (struct scoped_disable_commit_resumed): New. |
| 585 | (maybe_call_commit_resumed_all_process_targets): New. |
| 586 | (struct scoped_enable_commit_resumed): New. |
| 587 | * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed. |
| 588 | * process-stratum-target.h (class process_stratum_target): |
| 589 | <commit_resumed_state>: New. |
| 590 | * record-full.c (record_full_wait_1): Change commit_resumed_state |
| 591 | around calling commit_resumed. |
| 592 | * remote.c (class remote_target) <commit_resume>: Rename to... |
| 593 | <commit_resumed>: ... this. |
| 594 | (struct stop_reply): Move up. |
| 595 | (remote_target::commit_resume): Rename to... |
| 596 | (remote_target::commit_resumed): ... this. Check if there is any |
| 597 | thread pending vCont resume. |
| 598 | (remote_target::remote_stop_ns): Generate stop replies for resumed |
| 599 | but pending vCont threads. |
| 600 | (remote_target::wait_ns): Add gdb_assert. |
| 601 | * target-delegates.c: Regenerate. |
| 602 | * target.c (target_wait, target_resume): Assert that the current |
| 603 | process_stratum target isn't in commit-resumed state. |
| 604 | (defer_target_commit_resume): Remove. |
| 605 | (target_commit_resume): Remove. |
| 606 | (target_commit_resumed): New. |
| 607 | (make_scoped_defer_target_commit_resume): Remove. |
| 608 | (target_stop): Assert that the current process_stratum target |
| 609 | isn't in commit-resumed state. |
| 610 | * target.h (struct target_ops) <commit_resume>: Rename to ... |
| 611 | <commit_resumed>: ... this. |
| 612 | (target_commit_resume): Remove. |
| 613 | (target_commit_resumed): New. |
| 614 | (make_scoped_defer_target_commit_resume): Remove. |
| 615 | * top.c (wait_sync_command_done): Use |
| 616 | scoped_enable_commit_resumed. |
| 617 | |
| 618 | 2021-03-26 Pedro Alves <pedro@palves.net> |
| 619 | |
| 620 | * target.c (target_always_non_stop_p): Also check whether the |
| 621 | target can async. |
| 622 | |
| 623 | 2021-03-26 Tom Tromey <tom@tromey.com> |
| 624 | |
| 625 | * dwarf2/read.c (dwarf2_read_debug_names) |
| 626 | (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges) |
| 627 | (dw2_debug_names_iterator::next, create_type_unit_group): |
| 628 | Simplify. |
| 629 | |
| 630 | 2021-03-25 Pedro Alves <pedro@palves.net> |
| 631 | |
| 632 | * gdb.server/bkpt-other-inferior.exp: Only enable remote output |
| 633 | around setting the breakpoint. |
| 634 | |
| 635 | 2021-03-25 Pedro Alves <pedro@palves.net> |
| 636 | |
| 637 | * remote.c |
| 638 | (remote_target::check_pending_events_prevent_wildcard_vcont): |
| 639 | Check whether the event's ptid is not null_ptid before looking up |
| 640 | the corresponding inferior. |
| 641 | |
| 642 | 2021-03-24 Changbin Du <changbin.du@gmail.com> |
| 643 | |
| 644 | * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to |
| 645 | read_code. |
| 646 | |
| 647 | 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca> |
| 648 | |
| 649 | * target.h (current_top_target): Remove, make callers use the |
| 650 | current inferior instead. |
| 651 | * target.c (current_top_target): Remove. |
| 652 | |
| 653 | 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca> |
| 654 | |
| 655 | * target.h (target_shortname): Change to function declaration. |
| 656 | (target_longname): Likewise. |
| 657 | (target_attach_no_wait): Likewise. |
| 658 | (target_post_attach): Likewise. |
| 659 | (target_prepare_to_store): Likewise. |
| 660 | (target_supports_enable_disable_tracepoint): Likewise. |
| 661 | (target_supports_string_tracing): Likewise. |
| 662 | (target_supports_evaluation_of_breakpoint_conditions): Likewise. |
| 663 | (target_supports_dumpcore): Likewise. |
| 664 | (target_dumpcore): Likewise. |
| 665 | (target_can_run_breakpoint_commands): Likewise. |
| 666 | (target_files_info): Likewise. |
| 667 | (target_post_startup_inferior): Likewise. |
| 668 | (target_insert_fork_catchpoint): Likewise. |
| 669 | (target_remove_fork_catchpoint): Likewise. |
| 670 | (target_insert_vfork_catchpoint): Likewise. |
| 671 | (target_remove_vfork_catchpoint): Likewise. |
| 672 | (target_insert_exec_catchpoint): Likewise. |
| 673 | (target_remove_exec_catchpoint): Likewise. |
| 674 | (target_set_syscall_catchpoint): Likewise. |
| 675 | (target_rcmd): Likewise. |
| 676 | (target_can_lock_scheduler): Likewise. |
| 677 | (target_can_async_p): Likewise. |
| 678 | (target_is_async_p): Likewise. |
| 679 | (target_execution_direction): Likewise. |
| 680 | (target_extra_thread_info): Likewise. |
| 681 | (target_pid_to_exec_file): Likewise. |
| 682 | (target_thread_architecture): Likewise. |
| 683 | (target_find_memory_regions): Likewise. |
| 684 | (target_make_corefile_notes): Likewise. |
| 685 | (target_get_bookmark): Likewise. |
| 686 | (target_goto_bookmark): Likewise. |
| 687 | (target_stopped_by_watchpoint): Likewise. |
| 688 | (target_stopped_by_sw_breakpoint): Likewise. |
| 689 | (target_supports_stopped_by_sw_breakpoint): Likewise. |
| 690 | (target_stopped_by_hw_breakpoint): Likewise. |
| 691 | (target_supports_stopped_by_hw_breakpoint): Likewise. |
| 692 | (target_have_steppable_watchpoint): Likewise. |
| 693 | (target_can_use_hardware_watchpoint): Likewise. |
| 694 | (target_region_ok_for_hw_watchpoint): Likewise. |
| 695 | (target_can_do_single_step): Likewise. |
| 696 | (target_insert_watchpoint): Likewise. |
| 697 | (target_remove_watchpoint): Likewise. |
| 698 | (target_insert_hw_breakpoint): Likewise. |
| 699 | (target_remove_hw_breakpoint): Likewise. |
| 700 | (target_can_accel_watchpoint_condition): Likewise. |
| 701 | (target_can_execute_reverse): Likewise. |
| 702 | (target_get_ada_task_ptid): Likewise. |
| 703 | (target_filesystem_is_local): Likewise. |
| 704 | (target_trace_init): Likewise. |
| 705 | (target_download_tracepoint): Likewise. |
| 706 | (target_can_download_tracepoint): Likewise. |
| 707 | (target_download_trace_state_variable): Likewise. |
| 708 | (target_enable_tracepoint): Likewise. |
| 709 | (target_disable_tracepoint): Likewise. |
| 710 | (target_trace_start): Likewise. |
| 711 | (target_trace_set_readonly_regions): Likewise. |
| 712 | (target_get_trace_status): Likewise. |
| 713 | (target_get_tracepoint_status): Likewise. |
| 714 | (target_trace_stop): Likewise. |
| 715 | (target_trace_find): Likewise. |
| 716 | (target_get_trace_state_variable_value): Likewise. |
| 717 | (target_save_trace_data): Likewise. |
| 718 | (target_upload_tracepoints): Likewise. |
| 719 | (target_upload_trace_state_variables): Likewise. |
| 720 | (target_get_raw_trace_data): Likewise. |
| 721 | (target_get_min_fast_tracepoint_insn_len): Likewise. |
| 722 | (target_set_disconnected_tracing): Likewise. |
| 723 | (target_set_circular_trace_buffer): Likewise. |
| 724 | (target_set_trace_buffer_size): Likewise. |
| 725 | (target_set_trace_notes): Likewise. |
| 726 | (target_get_tib_address): Likewise. |
| 727 | (target_set_permissions): Likewise. |
| 728 | (target_static_tracepoint_marker_at): Likewise. |
| 729 | (target_static_tracepoint_markers_by_strid): Likewise. |
| 730 | (target_traceframe_info): Likewise. |
| 731 | (target_use_agent): Likewise. |
| 732 | (target_can_use_agent): Likewise. |
| 733 | (target_augmented_libraries_svr4_read): Likewise. |
| 734 | (target_log_command): Likewise. |
| 735 | * target.c (target_shortname): New. |
| 736 | (target_longname): New. |
| 737 | (target_attach_no_wait): New. |
| 738 | (target_post_attach): New. |
| 739 | (target_prepare_to_store): New. |
| 740 | (target_supports_enable_disable_tracepoint): New. |
| 741 | (target_supports_string_tracing): New. |
| 742 | (target_supports_evaluation_of_breakpoint_conditions): New. |
| 743 | (target_supports_dumpcore): New. |
| 744 | (target_dumpcore): New. |
| 745 | (target_can_run_breakpoint_commands): New. |
| 746 | (target_files_info): New. |
| 747 | (target_post_startup_inferior): New. |
| 748 | (target_insert_fork_catchpoint): New. |
| 749 | (target_remove_fork_catchpoint): New. |
| 750 | (target_insert_vfork_catchpoint): New. |
| 751 | (target_remove_vfork_catchpoint): New. |
| 752 | (target_insert_exec_catchpoint): New. |
| 753 | (target_remove_exec_catchpoint): New. |
| 754 | (target_set_syscall_catchpoint): New. |
| 755 | (target_rcmd): New. |
| 756 | (target_can_lock_scheduler): New. |
| 757 | (target_can_async_p): New. |
| 758 | (target_is_async_p): New. |
| 759 | (target_execution_direction): New. |
| 760 | (target_extra_thread_info): New. |
| 761 | (target_pid_to_exec_file): New. |
| 762 | (target_thread_architecture): New. |
| 763 | (target_find_memory_regions): New. |
| 764 | (target_make_corefile_notes): New. |
| 765 | (target_get_bookmark): New. |
| 766 | (target_goto_bookmark): New. |
| 767 | (target_stopped_by_watchpoint): New. |
| 768 | (target_stopped_by_sw_breakpoint): New. |
| 769 | (target_supports_stopped_by_sw_breakpoint): New. |
| 770 | (target_stopped_by_hw_breakpoint): New. |
| 771 | (target_supports_stopped_by_hw_breakpoint): New. |
| 772 | (target_have_steppable_watchpoint): New. |
| 773 | (target_can_use_hardware_watchpoint): New. |
| 774 | (target_region_ok_for_hw_watchpoint): New. |
| 775 | (target_can_do_single_step): New. |
| 776 | (target_insert_watchpoint): New. |
| 777 | (target_remove_watchpoint): New. |
| 778 | (target_insert_hw_breakpoint): New. |
| 779 | (target_remove_hw_breakpoint): New. |
| 780 | (target_can_accel_watchpoint_condition): New. |
| 781 | (target_can_execute_reverse): New. |
| 782 | (target_get_ada_task_ptid): New. |
| 783 | (target_filesystem_is_local): New. |
| 784 | (target_trace_init): New. |
| 785 | (target_download_tracepoint): New. |
| 786 | (target_can_download_tracepoint): New. |
| 787 | (target_download_trace_state_variable): New. |
| 788 | (target_enable_tracepoint): New. |
| 789 | (target_disable_tracepoint): New. |
| 790 | (target_trace_start): New. |
| 791 | (target_trace_set_readonly_regions): New. |
| 792 | (target_get_trace_status): New. |
| 793 | (target_get_tracepoint_status): New. |
| 794 | (target_trace_stop): New. |
| 795 | (target_trace_find): New. |
| 796 | (target_get_trace_state_variable_value): New. |
| 797 | (target_save_trace_data): New. |
| 798 | (target_upload_tracepoints): New. |
| 799 | (target_upload_trace_state_variables): New. |
| 800 | (target_get_raw_trace_data): New. |
| 801 | (target_get_min_fast_tracepoint_insn_len): New. |
| 802 | (target_set_disconnected_tracing): New. |
| 803 | (target_set_circular_trace_buffer): New. |
| 804 | (target_set_trace_buffer_size): New. |
| 805 | (target_set_trace_notes): New. |
| 806 | (target_get_tib_address): New. |
| 807 | (target_set_permissions): New. |
| 808 | (target_static_tracepoint_marker_at): New. |
| 809 | (target_static_tracepoint_markers_by_strid): New. |
| 810 | (target_traceframe_info): New. |
| 811 | (target_use_agent): New. |
| 812 | (target_can_use_agent): New. |
| 813 | (target_augmented_libraries_svr4_read): New. |
| 814 | (target_log_command): New. |
| 815 | * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust. |
| 816 | * infrun.c (set_schedlock_func): Adjust. |
| 817 | * mi/mi-main.c (exec_reverse_continue): Adjust. |
| 818 | * reverse.c (exec_reverse_once): Adjust. |
| 819 | * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust. |
| 820 | * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust. |
| 821 | * remote-sim.c (gdbsim_target::detach): Adjust. |
| 822 | (gdbsim_target::files_info): Adjust. |
| 823 | |
| 824 | 2021-03-24 Tom Tromey <tom@tromey.com> |
| 825 | |
| 826 | * dwarf2/read.c (dw2_map_matching_symbols): Update. |
| 827 | (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter. |
| 828 | (check_match, dw2_expand_symtabs_matching) |
| 829 | (dwarf2_debug_names_index::map_matching_symbols) |
| 830 | (dwarf2_debug_names_index::expand_symtabs_matching): Update. |
| 831 | |
| 832 | 2021-03-24 Keith Seitz <keiths@redhat.com> |
| 833 | |
| 834 | * compile/compile-cplus-types.c |
| 835 | (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS |
| 836 | thinko. |
| 837 | |
| 838 | 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca> |
| 839 | |
| 840 | * gdbarch.sh (gdbarch_data_registry): Make static. |
| 841 | * gdbarch.c: Re-generate. |
| 842 | |
| 843 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 844 | |
| 845 | * NEWS: Mention memory tagging changes. |
| 846 | |
| 847 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 848 | |
| 849 | * printcmd.c (decode_format): Handle the 'm' modifier. |
| 850 | (do_examine): Display allocation tags when required/supported. |
| 851 | (should_validate_memtags): New function. |
| 852 | (print_command_1): Display memory tag mismatches. |
| 853 | * valprint.c (show_memory_tag_violations): New function. |
| 854 | (value_print_option_defs): Add new option "memory-tag-violations". |
| 855 | (user_print_options) <memory_tag_violations>: Initialize to 1. |
| 856 | * valprint.h (struct format_data) <print_tags>: New field. |
| 857 | (value_print_options) <memory_tag_violations>: New field. |
| 858 | |
| 859 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 860 | |
| 861 | * printcmd.c: Include gdbsupport/rsp-low.h. |
| 862 | (memory_tag_list): New static global. |
| 863 | (process_print_command_args): Factored out of |
| 864 | print_command_1. |
| 865 | (print_command_1): Use process_print_command_args. |
| 866 | (show_addr_not_tagged, show_memory_tagging_unsupported) |
| 867 | (memory_tag_command, memory_tag_print_tag_command) |
| 868 | (memory_tag_print_logical_tag_command) |
| 869 | (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input) |
| 870 | (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input) |
| 871 | (memory_tag_set_allocation_tag_command, memory_tag_check_command): New |
| 872 | functions. |
| 873 | (_initialize_printcmd): Add "memory-tag" prefix and subcommands. |
| 874 | |
| 875 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 876 | |
| 877 | * aarch64-linux-tdep.c |
| 878 | (aarch64_linux_iterate_over_regset_sections): Handle MTE register set. |
| 879 | * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define. |
| 880 | |
| 881 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 882 | |
| 883 | * aarch64-linux-tdep.c |
| 884 | (aarch64_linux_report_signal_info): New function. |
| 885 | (aarch64_linux_init_abi): Register |
| 886 | aarch64_linux_report_signal_info as the report_signal_info hook. |
| 887 | * arch/aarch64-linux.h (SEGV_MTEAERR): Define. |
| 888 | (SEGV_MTESERR): Define. |
| 889 | |
| 890 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 891 | |
| 892 | * aarch64-linux-tdep.c: Include gdbsupport/selftest.h. |
| 893 | (aarch64_linux_ltag_tests): New function. |
| 894 | (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests. |
| 895 | |
| 896 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 897 | |
| 898 | * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h. |
| 899 | (aarch64_mte_get_atag, aarch64_linux_tagged_address_p) |
| 900 | (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags) |
| 901 | (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New |
| 902 | functions. |
| 903 | (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks. |
| 904 | * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits) |
| 905 | (aarch64_mte_make_ltag, aarch64_linux_set_ltag) |
| 906 | (aarch64_linux_get_ltag): New functions. |
| 907 | * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT) |
| 908 | (AARCH64_MTE_LOGICAL_MAX_VALUE): Define. |
| 909 | (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag) |
| 910 | (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes. |
| 911 | |
| 912 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 913 | |
| 914 | * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag |
| 915 | bit. |
| 916 | (struct smaps_data): New struct. |
| 917 | (decode_vmflags): Handle the 'mt' flag. |
| 918 | (parse_smaps_data): New function, refactored from |
| 919 | linux_find_memory_regions_full. |
| 920 | (linux_address_in_memtag_page): New function. |
| 921 | (linux_find_memory_regions_full): Refactor into parse_smaps_data. |
| 922 | * linux-tdep.h (linux_address_in_memtag_page): New prototype. |
| 923 | |
| 924 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 925 | |
| 926 | * linux-tdep.c (linux_find_memory_regions_full): Use std::string |
| 927 | instead of char arrays. |
| 928 | |
| 929 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 930 | |
| 931 | * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o. |
| 932 | (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and |
| 933 | nat/aarch64-mte-linux-ptrace.h. |
| 934 | * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h. |
| 935 | (aarch64_linux_nat_target) <supports_memory_tagging>: New method |
| 936 | override. |
| 937 | <fetch_memtags>: New method override. |
| 938 | <store_memtags>: New method override. |
| 939 | (aarch64_linux_nat_target::supports_memory_tagging): New method. |
| 940 | (aarch64_linux_nat_target::fetch_memtags): New method. |
| 941 | (aarch64_linux_nat_target::store_memtags): New method. |
| 942 | * arch/aarch64-mte-linux.c: New file. |
| 943 | * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h. |
| 944 | (AARCH64_MTE_GRANULE_SIZE): Define. |
| 945 | (aarch64_memtag_type): New enum. |
| 946 | (aarch64_mte_get_tag_granules): New prototype. |
| 947 | * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o. |
| 948 | * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o. |
| 949 | * nat/aarch64-mte-linux-ptrace.c: New file. |
| 950 | * nat/aarch64-mte-linux-ptrace.h: New file. |
| 951 | |
| 952 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 953 | |
| 954 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h. |
| 955 | * nat/aarch64-mte-linux-ptrace.h: New file. |
| 956 | |
| 957 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 958 | |
| 959 | * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function. |
| 960 | (store_mteregs_to_thread): New function. |
| 961 | (aarch64_linux_nat_target::fetch_registers): Update to call |
| 962 | fetch_mteregs_from_thread. |
| 963 | (aarch64_linux_nat_target::store_registers): Update to call |
| 964 | store_mteregs_to_thread. |
| 965 | * aarch64-tdep.c (aarch64_mte_register_names): New struct. |
| 966 | (aarch64_cannot_store_register): Handle MTE registers. |
| 967 | (aarch64_gdbarch_init): Initialize and setup MTE registers. |
| 968 | * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field. |
| 969 | <has_mte>: New method. |
| 970 | * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define. |
| 971 | |
| 972 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 973 | |
| 974 | * aarch64-linux-nat.c |
| 975 | (aarch64_linux_nat_target::read_description): Take MTE flag into |
| 976 | account. |
| 977 | Slight refactor to hwcap flag checking. |
| 978 | * aarch64-linux-tdep.c |
| 979 | (aarch64_linux_core_read_description): Likewise. |
| 980 | * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for |
| 981 | MTE. |
| 982 | (aarch64_read_description): Add mte_p parameter and update to use it. |
| 983 | Update the documentation. |
| 984 | (aarch64_gdbarch_init): Update call to aarch64_read_description. |
| 985 | * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter. |
| 986 | * arch/aarch64.c: Include ../features/aarch64-mte.c. |
| 987 | (aarch64_create_target_description): Add mte_p parameter and update |
| 988 | the code to use it. |
| 989 | * arch/aarch64.h (aarch64_create_target_description): Add mte_p |
| 990 | parameter. |
| 991 | * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml. |
| 992 | * features/aarch64-mte.c: New file, generated. |
| 993 | * features/aarch64-mte.xml: New file. |
| 994 | |
| 995 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 996 | |
| 997 | * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h. |
| 998 | * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h. |
| 999 | * aarch64-linux-tdep.c: Likewise |
| 1000 | * arch/aarch64-mte-linux.h: New file. |
| 1001 | |
| 1002 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 1003 | |
| 1004 | * remote: Include gdbsupport/selftest.h. |
| 1005 | (test_memory_tagging_functions): New function. |
| 1006 | (_initialize_remote): Register test_memory_tagging_functions. |
| 1007 | |
| 1008 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 1009 | |
| 1010 | * remote.c (PACKET_memory_tagging_feature): New enum. |
| 1011 | (remote_memory_tagging_p): New function. |
| 1012 | (remote_protocol_features): New "memory-tagging" entry. |
| 1013 | (remote_target::remote_query_supported): Handle memory tagging |
| 1014 | support. |
| 1015 | (remote_target::supports_memory_tagging): Implement. |
| 1016 | (create_fetch_memtags_request, parse_fetch_memtags_reply) |
| 1017 | (create_store_memtags_request): New functions. |
| 1018 | (remote_target::fetch_memtags): Implement. |
| 1019 | (remote_target::store_memtags): Implement. |
| 1020 | (_initialize_remote): Add new "memory-tagging-feature" |
| 1021 | config command. |
| 1022 | |
| 1023 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 1024 | |
| 1025 | * arch-utils.c (default_memtag_to_string, default_tagged_address_p) |
| 1026 | (default_memtag_matches_p, default_set_memtags) |
| 1027 | (default_get_memtag): New functions. |
| 1028 | * arch-utils.h (default_memtag_to_string, default_tagged_address_p) |
| 1029 | (default_memtag_matches_p, default_set_memtags) |
| 1030 | (default_get_memtag): New prototypes. |
| 1031 | * gdbarch.c: Regenerate. |
| 1032 | * gdbarch.h: Regenerate. |
| 1033 | * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p) |
| 1034 | (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks. |
| 1035 | (enum memtag_type): New enum. |
| 1036 | |
| 1037 | 2021-03-24 Luis Machado <luis.machado@linaro.org> |
| 1038 | |
| 1039 | * remote.c (remote_target) <supports_memory_tagging>: New method |
| 1040 | override. |
| 1041 | <fetch_memtags>: New method override. |
| 1042 | <store_memtags>: New method override. |
| 1043 | (remote_target::supports_memory_tagging): New method. |
| 1044 | (remote_target::fetch_memtags): New method. |
| 1045 | (remote_target::store_memtags): New method. |
| 1046 | * target-delegates.c: Regenerate. |
| 1047 | * target.h (struct target_ops) <supports_memory_tagging>: New virtual |
| 1048 | method. |
| 1049 | <fetch_memtags>: New virtual method. |
| 1050 | <store_memtags>: New virtual method. |
| 1051 | (target_supports_memory_tagging): Define. |
| 1052 | (target_fetch_memtags): Define. |
| 1053 | (target_store_memtags): Define. |
| 1054 | * target-debug.h (target_debug_print_size_t) |
| 1055 | (target_debug_print_const_gdb_byte_vector_r) |
| 1056 | (target_debug_print_gdb_byte_vector_r): New functions. |
| 1057 | |
| 1058 | 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca> |
| 1059 | |
| 1060 | * target.h (target_longname): Remove. |
| 1061 | |
| 1062 | 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca> |
| 1063 | |
| 1064 | * target.h (target_is_pushed): Remove, update callers to use |
| 1065 | inferior::target_is_pushed instead. |
| 1066 | * target.c (target_is_pushed): Remove. |
| 1067 | |
| 1068 | 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca> |
| 1069 | |
| 1070 | * target.h (push_target): Remove, update callers to use |
| 1071 | inferior::push_target. |
| 1072 | * target.c (push_target): Remove. |
| 1073 | * inferior.h (class inferior) <push_target>: New overload. |
| 1074 | |
| 1075 | 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca> |
| 1076 | |
| 1077 | * target.h (unpush_target): Remove, update all callers |
| 1078 | to use `inferior::unpush_target` instead. |
| 1079 | (struct target_unpusher) <operator()>: Just declare. |
| 1080 | * target.c (unpush_target): Remove. |
| 1081 | (target_unpusher::operator()): New. |
| 1082 | |
| 1083 | 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1084 | |
| 1085 | * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an |
| 1086 | error. |
| 1087 | (process_full_comp_unit): Validate the top-level tag before |
| 1088 | processing the first DIE. |
| 1089 | (read_func_scope): Ensure we have a valid builder. |
| 1090 | |
| 1091 | 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1092 | |
| 1093 | * objc-lang.c (objc_demangle): Renamed to |
| 1094 | objc_language::demangle_symbol, and moved later in the file. |
| 1095 | (objc_language::sniff_from_mangled_name): Call demangle_symbol |
| 1096 | member function. |
| 1097 | (objc_language::demangle_symbol): Defined outside of class |
| 1098 | declaration. The definition is the old objc_demangle with NULL |
| 1099 | changed to nullptr, and if conditions relating to nullptr pointers |
| 1100 | or null character checks made explicit. |
| 1101 | * objc-lang.h (objc_demangle): Delete declaration. |
| 1102 | |
| 1103 | 2021-03-22 Martin Liska <mliska@suse.cz> |
| 1104 | |
| 1105 | * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith. |
| 1106 | (_initialize_arm_tdep): Likewise. |
| 1107 | |
| 1108 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1109 | |
| 1110 | * xcoffread.c (xcoff_initial_scan): Create partial symtabs. |
| 1111 | * symfile.c (syms_from_objfile_1, reread_symbols): Update. |
| 1112 | * psymtab.h (make_psymbol_functions): Don't declare. |
| 1113 | * psymtab.c (make_psymbol_functions): Remove. |
| 1114 | (maintenance_print_psymbols): Update. |
| 1115 | * psympriv.h (struct psymbol_functions): Add no-argument |
| 1116 | constructor. |
| 1117 | * objfiles.h (struct objfile) <reset_psymtabs>: Remove. |
| 1118 | <partial_symtabs>: Remove. |
| 1119 | * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs. |
| 1120 | * elfread.c (read_partial_symbols): Update. |
| 1121 | (elf_symfile_read): Remove check for existing partial symbols. |
| 1122 | Don't clear "qf". |
| 1123 | * dwarf2/read.c (dwarf2_has_info): Remove check for existing |
| 1124 | partial symbols. |
| 1125 | (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create |
| 1126 | partial symtabs. |
| 1127 | * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions |
| 1128 | parameter. |
| 1129 | * dbxread.c (dbx_symfile_read): Create partial symtabs. |
| 1130 | * ctfread.c (elfctf_build_psymtabs): Create partial symtabs. |
| 1131 | |
| 1132 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1133 | |
| 1134 | * dwarf2/read.c (dwarf2_build_psymtabs): Update. |
| 1135 | * symfile.c (syms_from_objfile_1, reread_symbols): Update. |
| 1136 | * symfile-debug.c (objfile::has_partial_symbols) |
| 1137 | (objfile::find_last_source_symtab) |
| 1138 | (objfile::forget_cached_source_info) |
| 1139 | (objfile::map_symtabs_matching_filename, objfile::lookup_symbol) |
| 1140 | (objfile::print_stats, objfile::dump) |
| 1141 | (objfile::expand_symtabs_for_function) |
| 1142 | (objfile::expand_all_symtabs) |
| 1143 | (objfile::expand_symtabs_with_fullname) |
| 1144 | (objfile::map_matching_symbols) |
| 1145 | (objfile::expand_symtabs_matching) |
| 1146 | (objfile::find_pc_sect_compunit_symtab) |
| 1147 | (objfile::map_symbol_filenames) |
| 1148 | (objfile::find_compunit_symtab_by_address) |
| 1149 | (objfile::lookup_global_symbol_language) |
| 1150 | (objfile::require_partial_symbols): Update. |
| 1151 | * psymtab.c (maintenance_print_psymbols) |
| 1152 | (maintenance_info_psymtabs, maintenance_check_psymtabs): Update. |
| 1153 | * objfiles.h (struct objfile) <qf>: Now a forward_list. |
| 1154 | * objfiles.c (objfile_relocate1): Update. |
| 1155 | * elfread.c (elf_symfile_read): Update. |
| 1156 | |
| 1157 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1158 | |
| 1159 | * objfiles.h (struct objfile) <psymtabs>: Remove method. |
| 1160 | |
| 1161 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1162 | |
| 1163 | * psymtab.c (psymbol_functions::count_psyms): Rename. |
| 1164 | (psymbol_functions::print_stats): Update. |
| 1165 | * psympriv.h (struct psymbol_functions) <count_psyms>: Declare |
| 1166 | method. |
| 1167 | |
| 1168 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1169 | |
| 1170 | * psymtab.c (psymbol_functions::require_partial_symbols): Rename. |
| 1171 | (psymbol_functions::find_pc_sect_psymtab): Rename. |
| 1172 | (psymbol_functions::find_pc_sect_compunit_symtab) |
| 1173 | (maintenance_print_psymbols, maintenance_check_psymtabs): Update. |
| 1174 | * psympriv.h (struct psymbol_functions) <require_partial_symbols>: |
| 1175 | Declare new method. |
| 1176 | <get_partial_symtabs, find_pc_sect_psymtab>: Likewise. |
| 1177 | |
| 1178 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1179 | |
| 1180 | * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter. |
| 1181 | (xcoff_end_psymtab, scan_xcoff_symtab): Update. |
| 1182 | * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs |
| 1183 | parameter. |
| 1184 | (add_psymbol_to_bcache): Remove. |
| 1185 | (partial_symtab::add_psymbol): Add partial_symtabs parameter. |
| 1186 | (partial_symtab::add_psymbol, partial_symtab::partial_symtab): |
| 1187 | Likewise. |
| 1188 | * psympriv.h (partial_symtab): Add partial_symtabs parameter. |
| 1189 | <add_psymbol>: Likewise. |
| 1190 | (standard_psymtab, legacy_psymtab): Likewise. |
| 1191 | * mdebugread.c (parse_partial_symbols): Update. |
| 1192 | (handle_psymbol_enumerators): Add partial_symtabs parameter. |
| 1193 | (handle_psymbol_enumerators): Update. |
| 1194 | (new_psymtab): Add partial_symtabs parameter. |
| 1195 | * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter. |
| 1196 | * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs |
| 1197 | parameter. |
| 1198 | (dwarf2_create_include_psymtab): Add partial_symtabs parameter. |
| 1199 | (create_partial_symtab, add_partial_symbol, dwarf_decode_lines): |
| 1200 | Update. |
| 1201 | * dbxread.c (read_dbx_symtab): Update. |
| 1202 | (start_psymtab): Add partial_symtabs parameter. |
| 1203 | (dbx_end_psymtab): Update. |
| 1204 | * ctfread.c (struct ctf_context) <partial_symtabs>: New member. |
| 1205 | (ctf_psymtab): Add partial_symtabs parameter. |
| 1206 | (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb): |
| 1207 | Update. |
| 1208 | (scan_partial_symbols): Add partial_symtabs parameter. |
| 1209 | (scan_partial_symbols, elfctf_build_psymtabs) |
| 1210 | (ctf_psymtab_add_enums): Update. |
| 1211 | |
| 1212 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1213 | |
| 1214 | * symfile.c (read_symbols): Use objfile method. |
| 1215 | * symfile-debug.c (objfile::require_partial_symbols): New method. |
| 1216 | * psymtab.h (require_partial_symbols): Don't declare. |
| 1217 | * psymtab.c (require_partial_symbols): Use objfile method. Now |
| 1218 | static. |
| 1219 | (psymbol_functions::map_symtabs_matching_filename, OBJFILE) |
| 1220 | (psymbol_functions::lookup_symbol) |
| 1221 | (psymbol_functions::lookup_global_symbol_language) |
| 1222 | (psymbol_functions::find_last_source_symtab) |
| 1223 | (psymbol_functions::forget_cached_source_info) |
| 1224 | (psymbol_functions::print_stats) |
| 1225 | (psymbol_functions::expand_symtabs_for_function) |
| 1226 | (psymbol_functions::expand_all_symtabs) |
| 1227 | (psymbol_functions::expand_symtabs_with_fullname) |
| 1228 | (psymbol_functions::map_symbol_filenames) |
| 1229 | (psymbol_functions::map_matching_symbols) |
| 1230 | (psymbol_functions::expand_symtabs_matching) |
| 1231 | (psymbol_functions::find_compunit_symtab_by_address) |
| 1232 | (maintenance_print_psymbols, maintenance_info_psymtabs) |
| 1233 | (maintenance_check_psymtabs): Update. |
| 1234 | * objfiles.h (struct objfile) <require_partial_symbols>: Declare |
| 1235 | new method. |
| 1236 | |
| 1237 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1238 | |
| 1239 | * xcoffread.c (xcoff_sym_fns): Update. |
| 1240 | * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove. |
| 1241 | * symfile-debug.c (objfile::has_partial_symbols): Use |
| 1242 | can_lazily_read_symbols. |
| 1243 | (debug_sym_read_psymbols): Remove. |
| 1244 | (debug_sym_fns, install_symfile_debug_logging): Update. |
| 1245 | * quick-symbol.h (struct quick_symbol_functions) |
| 1246 | <can_lazily_read_symbols, read_partial_symbols>: New methods. |
| 1247 | * psymtab.c (require_partial_symbols): Use new 'qf' methods. |
| 1248 | * mipsread.c (ecoff_sym_fns): Update. |
| 1249 | * machoread.c (macho_sym_fns): Update. |
| 1250 | * elfread.c (struct lazy_dwarf_reader): New. |
| 1251 | (elf_symfile_read): Update. |
| 1252 | (read_psyms): Now a method of lazy_dwarf_reader. |
| 1253 | (elf_sym_fns): Update. |
| 1254 | (elf_sym_fns_lazy_psyms): Remove. |
| 1255 | * dbxread.c (aout_sym_fns): Update. |
| 1256 | * coffread.c (coff_sym_fns): Update. |
| 1257 | |
| 1258 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1259 | |
| 1260 | * symfile.c (syms_from_objfile_1): Call reset_psymtabs. |
| 1261 | (reread_symbols): Move reset_psymtabs call later. |
| 1262 | * objfiles.c (objfile::objfile): Don't initialize |
| 1263 | partial_symtabs. |
| 1264 | |
| 1265 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1266 | |
| 1267 | * dwarf2/read.c (dwarf2_build_psymtabs): Call |
| 1268 | set_partial_symtabs. |
| 1269 | * symfile.c (syms_from_objfile_1, reread_symbols): Update. |
| 1270 | * psymtab.h (make_psymbol_functions): Add partial_symtabs |
| 1271 | parameter. |
| 1272 | * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs |
| 1273 | parameter. |
| 1274 | (psymbol_functions::find_pc_sect_compunit_symtab) |
| 1275 | (psymbol_functions::print_stats, psymbol_functions::dump) |
| 1276 | (psymbol_functions::has_symbols): Update. |
| 1277 | (make_psymbol_functions, dump_psymtab_addrmap): Add |
| 1278 | partial_symtabs parameter. |
| 1279 | (maintenance_print_psymbols): Update. |
| 1280 | (psymbol_functions::expand_symtabs_matching): Update. |
| 1281 | * psympriv.h (struct psymbol_functions): Add constructor. |
| 1282 | <m_partial_symtabs>: New member. |
| 1283 | <set_partial_symtabs>: New method. |
| 1284 | |
| 1285 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1286 | |
| 1287 | * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd |
| 1288 | parameter. |
| 1289 | (process_psymtab_comp_unit_reader) |
| 1290 | (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard) |
| 1291 | (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines): |
| 1292 | Reference psymtabs via per_bfd. |
| 1293 | |
| 1294 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1295 | |
| 1296 | * dwarf2/index-write.c (struct addrmap_index_data) <objfile>: |
| 1297 | Remove. |
| 1298 | (add_address_entry): Remove objfile parameter. |
| 1299 | (add_address_entry_worker): Update. |
| 1300 | (write_address_map): Replace objfile parameter with per_bfd. |
| 1301 | (write_gdbindex, write_psymtabs_to_index): Update. |
| 1302 | |
| 1303 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1304 | |
| 1305 | * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add |
| 1306 | print_bcache parameter. |
| 1307 | * symfile-debug.c (objfile::print_stats): Add print_bcache |
| 1308 | parameter. |
| 1309 | * quick-symbol.h (struct quick_symbol_functions) |
| 1310 | <print_stats>: Add print_bcache parameter. |
| 1311 | * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move |
| 1312 | code to psymtab.c. |
| 1313 | (print_objfile_statistics): Move psymtab code to psymtab.c. |
| 1314 | * psymtab.c (count_psyms): Move from symmisc.c. |
| 1315 | (psymbol_functions::print_stats): Print partial symbol and bcache |
| 1316 | statistics. Add print_bcache parameter. |
| 1317 | * objfiles.h (print_symbol_bcache_statistics): Don't declare. |
| 1318 | (struct objfile) <print_stats>: Add print_bcache parameter. |
| 1319 | * maint.c (maintenance_print_statistics): Update. |
| 1320 | |
| 1321 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1322 | |
| 1323 | * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New |
| 1324 | member. |
| 1325 | * dwarf2/read.c (create_addrmap_from_index) |
| 1326 | (create_addrmap_from_aranges): Set per_bfd addrmap. |
| 1327 | (dwarf2_read_gdb_index): Don't set partial_symtabs. |
| 1328 | (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use |
| 1329 | per_bfd addrmap. |
| 1330 | (dwarf2_read_debug_names): Don't set partial_symtabs. |
| 1331 | (dwarf2_initialize_objfile): Likewise. |
| 1332 | |
| 1333 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1334 | |
| 1335 | * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs |
| 1336 | earlier. |
| 1337 | |
| 1338 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1339 | |
| 1340 | * psympriv.h (psymtab_discarder): Take psymtab_storage parameter. |
| 1341 | (~psymtab_discarder, keep): Update. |
| 1342 | <m_objfile>: Remove. |
| 1343 | <m_partial_symtabs>: New member. |
| 1344 | * dwarf2/read.c (dwarf2_build_psymtabs): Update. |
| 1345 | |
| 1346 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1347 | |
| 1348 | * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter. |
| 1349 | (xcoff_end_psymtab): Update. |
| 1350 | (scan_xcoff_symtab): Add partial_symtabs parameter. |
| 1351 | (xcoff_initial_scan): Update. |
| 1352 | * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter. |
| 1353 | * mdebugread.c (mdebug_build_psymtabs): Update. |
| 1354 | (parse_partial_symbols): Add partial_symtabs parameter. |
| 1355 | * dbxread.c (dbx_symfile_read): Update. |
| 1356 | (read_dbx_symtab): Add partial_symtabs parameter. |
| 1357 | (read_dbx_symtab): Update. |
| 1358 | (dbx_end_psymtab): Add partial_symtabs parameter. |
| 1359 | |
| 1360 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1361 | |
| 1362 | * quick-symbol.h (struct quick_symbol_functions) |
| 1363 | <relocated>: New method. |
| 1364 | * psymtab.h (struct psymbol_functions) <relocated>: New |
| 1365 | method. |
| 1366 | <fill_psymbol_map>: Declare method. |
| 1367 | <m_psymbol_map>: New member. |
| 1368 | * psymtab.c (psymbol_functions::fill_psymbol_map): Rename. |
| 1369 | (psymbol_functions::find_compunit_symtab_by_address): Update. |
| 1370 | * objfiles.h (reset_psymtabs): Don't clear psymbol_map. |
| 1371 | (struct objfile) <psymbol_map>: Remove. |
| 1372 | * objfiles.c (objfile_relocate1): Update. |
| 1373 | |
| 1374 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1375 | |
| 1376 | * psympriv.h (struct psymbol_functions): New. |
| 1377 | * symfile.c (syms_from_objfile_1, reread_symbols): Update. |
| 1378 | * symfile-debug.c (objfile::find_compunit_symtab_by_address) |
| 1379 | (objfile::lookup_global_symbol_language): Update. |
| 1380 | * quick-symbol.h (struct quick_symbol_functions): Convert function |
| 1381 | pointers to methods. Add virtual destructor. |
| 1382 | (quick_symbol_functions_up): New typedef. |
| 1383 | * psymtab.h (psym_functions, dwarf2_gdb_index_functions) |
| 1384 | (dwarf2_debug_names_functions): Don't declare. |
| 1385 | (make_psymbol_functions): Declare. |
| 1386 | * psymtab.c (psymbol_functions::map_symtabs_matching_filename) |
| 1387 | (psymbol_functions::find_pc_sect_compunit_symtab) |
| 1388 | (psymbol_functions::lookup_symbol) |
| 1389 | (psymbol_functions::lookup_global_symbol_language) |
| 1390 | (psymbol_functions::find_last_source_symtab) |
| 1391 | (psymbol_functions::forget_cached_source_info) |
| 1392 | (psymbol_functions::print_stats, psymbol_functions::dump) |
| 1393 | (psymbol_functions::expand_symtabs_for_function) |
| 1394 | (psymbol_functions::expand_all_symtabs) |
| 1395 | (psymbol_functions::expand_symtabs_with_fullname) |
| 1396 | (psymbol_functions::map_symbol_filenames) |
| 1397 | (psymbol_functions::map_matching_symbols) |
| 1398 | (psymbol_functions::expand_symtabs_matching) |
| 1399 | (psymbol_functions::has_symbols) |
| 1400 | (psymbol_functions::find_compunit_symtab_by_address): Rename. |
| 1401 | (psym_functions): Remove. |
| 1402 | (make_psymbol_functions): New function. |
| 1403 | * objfiles.h (struct objfile) <qf>: Change type. |
| 1404 | * elfread.c (elf_symfile_read): Update. |
| 1405 | * dwarf2/read.c (struct dwarf2_base_index_functions) |
| 1406 | (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New. |
| 1407 | (make_dwarf_gdb_index, make_dwarf_debug_names): New functions. |
| 1408 | (dwarf2_base_index_functions::find_last_source_symtab) |
| 1409 | (dwarf2_base_index_functions::forget_cached_source_info) |
| 1410 | (dwarf2_base_index_functions::map_symtabs_matching_filename) |
| 1411 | (dwarf2_gdb_index::lookup_symbol) |
| 1412 | (dwarf2_base_index_functions::print_stats) |
| 1413 | (dwarf2_gdb_index::dump) |
| 1414 | (dwarf2_gdb_index::expand_symtabs_for_function) |
| 1415 | (dwarf2_base_index_functions::expand_all_symtabs) |
| 1416 | (dwarf2_base_index_functions::expand_symtabs_with_fullname): |
| 1417 | Rename. |
| 1418 | (dwarf2_gdb_index::map_matching_symbols): New method. |
| 1419 | (dwarf2_gdb_index::expand_symtabs_matching): New method. |
| 1420 | (dwarf2_base_index_functions::find_pc_sect_compunit_symtab) |
| 1421 | (dwarf2_base_index_functions::map_symbol_filenames) |
| 1422 | (dwarf2_base_index_functions::has_symbols): Rename. |
| 1423 | (dwarf2_gdb_index_functions): Remove. |
| 1424 | (dwarf2_debug_names_index::lookup_symbol) |
| 1425 | (dwarf2_debug_names_index::dump) |
| 1426 | (dwarf2_debug_names_index::expand_symtabs_for_function) |
| 1427 | (dwarf2_debug_names_index::map_matching_symbols) |
| 1428 | (dwarf2_debug_names_index::expand_symtabs_matching): Rename. |
| 1429 | (dwarf2_debug_names_functions): Remove. |
| 1430 | * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names): |
| 1431 | Declare. |
| 1432 | |
| 1433 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1434 | |
| 1435 | * psymtab.c (require_partial_symbols): Check that 'sf' is not |
| 1436 | null. |
| 1437 | * xcoffread.c (xcoff_sym_fns): Update. |
| 1438 | * symfile.h (struct sym_fns) <qf>: Remove. |
| 1439 | * symfile.c (syms_from_objfile_1, reread_symbols): Update. |
| 1440 | * symfile-debug.c (objfile::has_partial_symbols) |
| 1441 | (objfile::find_last_source_symtab) |
| 1442 | (objfile::forget_cached_source_info) |
| 1443 | (objfile::map_symtabs_matching_filename, objfile::lookup_symbol) |
| 1444 | (objfile::print_stats, objfile::dump) |
| 1445 | (objfile::expand_symtabs_for_function) |
| 1446 | (objfile::expand_all_symtabs) |
| 1447 | (objfile::expand_symtabs_with_fullname) |
| 1448 | (objfile::map_matching_symbols) |
| 1449 | (objfile::expand_symtabs_matching) |
| 1450 | (objfile::find_pc_sect_compunit_symtab) |
| 1451 | (objfile::map_symbol_filenames) |
| 1452 | (objfile::find_compunit_symtab_by_address) |
| 1453 | (objfile::lookup_global_symbol_language, debug_sym_fns) |
| 1454 | (install_symfile_debug_logging): Update. |
| 1455 | * objfiles.h (struct objfile) <qf>: New member. |
| 1456 | * mipsread.c (ecoff_sym_fns): Update. |
| 1457 | * machoread.c (macho_sym_fns): Update. |
| 1458 | * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names): |
| 1459 | Don't declare. |
| 1460 | (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update. |
| 1461 | * dbxread.c (aout_sym_fns): Update. |
| 1462 | * coffread.c (coff_sym_fns): Update. |
| 1463 | |
| 1464 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1465 | |
| 1466 | * symfile.h (symbol_compare_ftype, symbol_filename_ftype) |
| 1467 | (expand_symtabs_file_matcher_ftype) |
| 1468 | (expand_symtabs_symbol_matcher_ftype) |
| 1469 | (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions): |
| 1470 | Move to quick-symbol.h. |
| 1471 | * quick-symbol.h: New file. |
| 1472 | |
| 1473 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1474 | |
| 1475 | * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc) |
| 1476 | (lookup_symbol_via_quick_fns, find_quick_global_symbol_language) |
| 1477 | (basic_lookup_transparent_type_quick) |
| 1478 | (find_pc_sect_compunit_symtab, find_symbol_at_address) |
| 1479 | (find_line_symtab, global_symbol_searcher::expand_symtabs): |
| 1480 | Update. |
| 1481 | * symmisc.c (print_objfile_statistics, dump_objfile) |
| 1482 | (maintenance_expand_symtabs): Update. |
| 1483 | * symfile.c (symbol_file_add_with_addrs) |
| 1484 | (expand_symtabs_matching, map_symbol_filenames): Update. |
| 1485 | * symfile-debug.c (objfile::has_partial_symbols) |
| 1486 | (objfile::find_last_source_symtab) |
| 1487 | (objfile::forget_cached_source_info) |
| 1488 | (objfile::map_symtabs_matching_filename, objfile::lookup_symbol) |
| 1489 | (objfile::print_stats, objfile::dump) |
| 1490 | (objfile::expand_symtabs_for_function) |
| 1491 | (objfile::expand_all_symtabs) |
| 1492 | (objfile::expand_symtabs_with_fullname) |
| 1493 | (objfile::map_matching_symbols) |
| 1494 | (objfile::expand_symtabs_matching) |
| 1495 | (objfile::find_pc_sect_compunit_symtab) |
| 1496 | (objfile::map_symbol_filenames) |
| 1497 | (objfile::find_compunit_symtab_by_address) |
| 1498 | (objfile::lookup_global_symbol_language): New methods. |
| 1499 | (debug_sym_quick_functions): Remove. |
| 1500 | (debug_sym_fns, install_symfile_debug_logging): Update. |
| 1501 | * source.c (forget_cached_source_info_for_objfile) |
| 1502 | (select_source_symtab): Update. |
| 1503 | * objfiles.h (struct objfile): Add methods corresponding to |
| 1504 | quick_symbol_functions. |
| 1505 | * objfiles.c (objfile::has_partial_symbols): Move to |
| 1506 | symfile-debug.c. |
| 1507 | * linespec.c (iterate_over_all_matching_symtabs): Update. |
| 1508 | * cp-support.c (add_symbol_overload_list_qualified): Update. |
| 1509 | * ada-lang.c (add_nonlocal_symbols): Update. |
| 1510 | |
| 1511 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1512 | |
| 1513 | * objfiles.h (struct objfile) <has_partial_symbols>: Return bool. |
| 1514 | * symfile.h (struct quick_symbol_functions) <has_symbols>: Return |
| 1515 | bool. |
| 1516 | * symfile-debug.c (debug_qf_has_symbols): Return bool. |
| 1517 | * psymtab.c (psym_has_symbols): Return bool. |
| 1518 | * objfiles.c (objfile::has_partial_symbols): Return bool. |
| 1519 | * dwarf2/read.c (dw2_has_symbols): Return bool. |
| 1520 | |
| 1521 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1522 | |
| 1523 | * symfile.c (read_symbols): Update. |
| 1524 | * objfiles.h (struct objfile) <has_partial_symbols>: New method. |
| 1525 | (objfile_has_partial_symbols): Don't declare. |
| 1526 | * objfiles.c (objfile::has_partial_symbols): Rename from |
| 1527 | objfile_has_partial_symbols. |
| 1528 | (objfile_has_symbols, have_partial_symbols): Update. |
| 1529 | * elfread.c (elf_symfile_read): Update. |
| 1530 | * dwarf2/read.c (dwarf2_has_info): Update. |
| 1531 | * coffread.c (coff_symfile_read): Update. |
| 1532 | |
| 1533 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1534 | |
| 1535 | * coffread.c: Include dwarf2/public.h. |
| 1536 | * dwarf2/frame.c: Include dwarf2/public.h. |
| 1537 | * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h. |
| 1538 | * dwarf2/public.h: New file. |
| 1539 | * dwarf2/read.c: Include dwarf2/public.h. |
| 1540 | * elfread.c: Include dwarf2/public.h. |
| 1541 | * machoread.c: Include dwarf2/public.h. |
| 1542 | * symfile.h (dwarf2_has_info, enum dw_index_kind) |
| 1543 | (dwarf2_initialize_objfile, dwarf2_build_psymtabs) |
| 1544 | (dwarf2_build_frame_info): Move to dwarf2/public.h. |
| 1545 | * xcoffread.c: Include dwarf2/public.h. |
| 1546 | |
| 1547 | 2021-03-20 Tom Tromey <tom@tromey.com> |
| 1548 | |
| 1549 | * symfile.h (enum dwarf2_section_enum) |
| 1550 | (dwarf2_get_section_info): Move to dwarf2/read.h. |
| 1551 | * dwarf2/read.h (enum dwarf2_section_enum) |
| 1552 | (dwarf2_get_section_info): Move from symfile.h. |
| 1553 | |
| 1554 | 2021-03-19 Pedro Alves <pedro@palves.net> |
| 1555 | |
| 1556 | * thread.c (any_thread_of_inferior): Check if there's a selected |
| 1557 | thread before calling inferior_thread(). |
| 1558 | |
| 1559 | 2021-03-18 Tom Tromey <tromey@adacore.com> |
| 1560 | |
| 1561 | * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use |
| 1562 | get_DW_UT_name. |
| 1563 | * dwarf2/stringify.h (dwarf_unit_type_name): Declare. |
| 1564 | * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove. |
| 1565 | |
| 1566 | 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1567 | |
| 1568 | * python/py-param.c (get_set_value): Update header comment. |
| 1569 | |
| 1570 | 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
| 1571 | |
| 1572 | * infrun.c (check_multi_target_resumption): Remove argument to |
| 1573 | all_non_exited_inferiors. |
| 1574 | |
| 1575 | 2021-03-16 Christian Biesinger <cbiesinger@google.com> |
| 1576 | |
| 1577 | * windows-nat.c (windows_init_thread_list): Add message to |
| 1578 | debug log. |
| 1579 | |
| 1580 | 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1581 | |
| 1582 | * python/py-framefilter.c (py_print_frame): Use PyInt_Check as |
| 1583 | well as PyLong_Check for Python 2. |
| 1584 | |
| 1585 | 2021-03-15 Tom Tromey <tromey@adacore.com> |
| 1586 | |
| 1587 | PR build/27579: |
| 1588 | * rust-exp.y (maker_map): Use gdb::hash_enum. |
| 1589 | * stap-probe.c (stap_maker_map): Use gdb::hash_enum. |
| 1590 | |
| 1591 | 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca> |
| 1592 | |
| 1593 | * dwarf2/read.c (create_debug_type_hash_table): Remove colon at |
| 1594 | end of debug print. |
| 1595 | |
| 1596 | 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca> |
| 1597 | |
| 1598 | * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr |
| 1599 | parameter, adjust caller. |
| 1600 | |
| 1601 | 2021-03-15 Tom Tromey <tromey@adacore.com> |
| 1602 | |
| 1603 | * ada-exp.y (simple_exp): Always push a result for unary '+'. |
| 1604 | |
| 1605 | 2021-03-15 Tom Tromey <tromey@adacore.com> |
| 1606 | |
| 1607 | * ada-lang.c (ada_unop_ind_operation::evaluate): Call |
| 1608 | ada_ensure_varsize_limit. |
| 1609 | |
| 1610 | 2021-03-15 Tom Tromey <tromey@adacore.com> |
| 1611 | |
| 1612 | * ada-lang.c (numeric_type_p, integer_type_p): Return true for |
| 1613 | fixed-point. |
| 1614 | * ada-exp.y (maybe_overload): New function. |
| 1615 | (ada_wrap_overload): New function. |
| 1616 | (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload. |
| 1617 | (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp) |
| 1618 | (or_else_exp, xor_exp, primary): Update. |
| 1619 | |
| 1620 | 2021-03-15 Tom Tromey <tromey@adacore.com> |
| 1621 | |
| 1622 | PR ada/27545: |
| 1623 | * ada-lang.c (ada_var_value_operation::evaluate): Use recursive |
| 1624 | call for tagged type. |
| 1625 | |
| 1626 | 2021-03-15 Tom Tromey <tromey@adacore.com> |
| 1627 | |
| 1628 | * ada-exp.y (exp1): Handle resolution of the right hand side of an |
| 1629 | assignment. |
| 1630 | |
| 1631 | 2021-03-15 Tom Tromey <tromey@adacore.com> |
| 1632 | |
| 1633 | * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return |
| 1634 | container. |
| 1635 | (ada_assign_operation::evaluate): Update. |
| 1636 | * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>: |
| 1637 | Change return type. |
| 1638 | |
| 1639 | 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com> |
| 1640 | |
| 1641 | * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16. |
| 1642 | |
| 1643 | 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1644 | |
| 1645 | * python/python.c (gdbpy_source_objfile_script): Use |
| 1646 | make_scoped_restore to restore gdbpy_current_objfile. |
| 1647 | (gdbpy_execute_objfile_script): Likewise. |
| 1648 | |
| 1649 | 2021-03-14 Tom Tromey <tom@tromey.com> |
| 1650 | |
| 1651 | * dwarf2/read.c (read_attribute_value): Use cu_header |
| 1652 | consistently. |
| 1653 | |
| 1654 | 2021-03-14 Tom Tromey <tom@tromey.com> |
| 1655 | |
| 1656 | * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting. |
| 1657 | (peek_die_abbrev): Use reader.abfd. |
| 1658 | |
| 1659 | 2021-03-14 Tom Tromey <tom@tromey.com> |
| 1660 | |
| 1661 | * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set |
| 1662 | m_header_read_in. |
| 1663 | |
| 1664 | 2021-03-13 Tom Tromey <tom@tromey.com> |
| 1665 | |
| 1666 | * dwarf2/read.c (struct partial_die_info): Update. |
| 1667 | (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1) |
| 1668 | (load_partial_dies, partial_die_info::partial_die_info): Update. |
| 1669 | * dwarf2/abbrev.h (lookup_abbrev): Constify. |
| 1670 | |
| 1671 | 2021-03-13 Tom Tromey <tom@tromey.com> |
| 1672 | |
| 1673 | * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround. |
| 1674 | |
| 1675 | 2021-03-12 Christian Biesinger <cbiesinger@google.com> |
| 1676 | |
| 1677 | PR threads/27239 |
| 1678 | * cp-support.c: Use scoped_segv_handler_restore. |
| 1679 | * event-top.c (thread_local_segv_handler): Made static. |
| 1680 | (scoped_segv_handler_restore::scoped_segv_handler_restore): |
| 1681 | New function. |
| 1682 | (scoped_segv_handler_restore::~scoped_segv_handler_restore): New |
| 1683 | function. |
| 1684 | * event-top.h (class scoped_segv_handler_restore): New class. |
| 1685 | (thread_local_segv_handler): Removed. |
| 1686 | |
| 1687 | 2021-03-10 Tom Tromey <tromey@adacore.com> |
| 1688 | |
| 1689 | * parser-defs.h (parser_state): Change completion to bool. |
| 1690 | <parse_completion>: Likewise. |
| 1691 | * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall) |
| 1692 | (ada_resolve_variable, ada_resolve_function): Update. |
| 1693 | * ada-lang.c (ada_find_operator_symbol): Change |
| 1694 | parse_completion to bool. |
| 1695 | (ada_resolve_funcall, ada_resolve_variable) |
| 1696 | (ada_resolve_function): Likewise. |
| 1697 | |
| 1698 | 2021-03-09 Tom Tromey <tromey@adacore.com> |
| 1699 | |
| 1700 | * eval.c (operation::evaluate_funcall): Use function formal |
| 1701 | parameter types when evaluating. |
| 1702 | |
| 1703 | 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1704 | |
| 1705 | * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>: |
| 1706 | Updated fields names flag_objfile_owned to m_flag_objfile_owned, |
| 1707 | and owner to m_owner. |
| 1708 | |
| 1709 | 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com> |
| 1710 | |
| 1711 | * f-exp.h (eval_op_f_loc): Declare. |
| 1712 | (expr::fortran_loc_operation): New typedef. |
| 1713 | * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an |
| 1714 | UNOP_INTRINSIC. |
| 1715 | (f77_keywords): Add LOC keyword. |
| 1716 | * f-lang.c (eval_op_f_loc): New function. |
| 1717 | * std-operator.def (UNOP_FORTRAN_LOC): New operator. |
| 1718 | |
| 1719 | 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1720 | |
| 1721 | * f-exp.h (eval_op_f_array_shape): Declare. |
| 1722 | (fortran_array_shape_operation): New type. |
| 1723 | * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing |
| 1724 | UNOP_INTRINSIC. |
| 1725 | (f77_keywords): Add "shape" keyword. |
| 1726 | * f-lang.c (fortran_array_shape): New function. |
| 1727 | (eval_op_f_array_shape): New function. |
| 1728 | * std-operator.def (UNOP_FORTRAN_SHAPE): New operator. |
| 1729 | |
| 1730 | 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1731 | |
| 1732 | * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms |
| 1733 | of this function. |
| 1734 | (expr::fortran_array_size_1arg): New type. |
| 1735 | (expr::fortran_array_size_2arg): Likewise. |
| 1736 | * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing |
| 1737 | UNOP_OR_BINOP_INTRINSIC. |
| 1738 | (f77_keywords): Add "size" keyword. |
| 1739 | * f-lang.c (fortran_array_size): New function. |
| 1740 | (eval_op_f_array_size): New function, has a 1 arg and 2 arg form. |
| 1741 | * std-operator.def (FORTRAN_ARRAY_SIZE): New operator. |
| 1742 | |
| 1743 | 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com> |
| 1744 | |
| 1745 | * f-exp.h (eval_op_f_rank): Declare. |
| 1746 | (expr::fortran_rank_operation): New typedef. |
| 1747 | * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an |
| 1748 | UNOP_INTRINSIC. |
| 1749 | (f77_keywords): Add "rank" keyword. |
| 1750 | * f-lang.c (eval_op_f_rank): New function. |
| 1751 | * std-operator.def (UNOP_FORTRAN_RANK): New operator. |
| 1752 | |
| 1753 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1754 | |
| 1755 | * printcmd.c (set_command): Remove null check. |
| 1756 | * value.c (init_if_undefined_command): Remove null check. |
| 1757 | |
| 1758 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1759 | |
| 1760 | * parse.c (parser_state::push_symbol, parser_state::push_dollar): |
| 1761 | Update. |
| 1762 | * p-exp.y (variable): Update. |
| 1763 | * go-exp.y (variable): Update. |
| 1764 | * expprint.c (dump_for_expression): Use bound_minimal_symbol. |
| 1765 | Remove overload for objfile. |
| 1766 | * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol |
| 1767 | parameter. |
| 1768 | (check_objfile): Likewise. |
| 1769 | (dump_for_expression): Likewise. Remove overload for objfile. |
| 1770 | (class var_msym_value_operation): Use bound_minimal_symbol. |
| 1771 | * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol |
| 1772 | parameter. |
| 1773 | (var_msym_value_operation::evaluate_for_address) |
| 1774 | (var_msym_value_operation::evaluate_for_sizeof) |
| 1775 | (var_msym_value_operation::evaluate_for_cast): Update. |
| 1776 | * d-exp.y (PrimaryExpression): Update. |
| 1777 | * c-exp.y (variable): Update. |
| 1778 | * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update. |
| 1779 | * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast): |
| 1780 | Update. |
| 1781 | * ada-exp.y (write_var_or_type): Update. |
| 1782 | |
| 1783 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1784 | |
| 1785 | * parser-defs.h (exp_uses_objfile): Return bool. |
| 1786 | * parse.c (exp_uses_objfile): Return bool. |
| 1787 | |
| 1788 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1789 | |
| 1790 | * value.h (eval_skip_value): Don't declare. |
| 1791 | * opencl-lang.c (eval_opencl_assign): Update. |
| 1792 | * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update. |
| 1793 | * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil) |
| 1794 | (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove. |
| 1795 | * expression.h (enum noside) <EVAL_SKIP>: Remove. |
| 1796 | * expop.h (typeof_operation::evaluate) |
| 1797 | (decltype_operation::evaluate, unop_addr_operation::evaluate) |
| 1798 | (unop_sizeof_operation::evaluate, assign_operation::evaluate) |
| 1799 | (cxx_cast_operation::evaluate): Update. |
| 1800 | * eval.c (eval_skip_value): Remove. |
| 1801 | (eval_op_scope, eval_op_var_entry_value) |
| 1802 | (eval_op_func_static_var, eval_op_string, eval_op_objc_selector) |
| 1803 | (eval_op_concat, eval_op_ternop, eval_op_structop_struct) |
| 1804 | (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub) |
| 1805 | (eval_op_binary, eval_op_subscript, eval_op_equal) |
| 1806 | (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq) |
| 1807 | (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg) |
| 1808 | (eval_op_complement, eval_op_lognot, eval_op_ind) |
| 1809 | (eval_op_memval, eval_op_preinc, eval_op_predec) |
| 1810 | (eval_op_postinc, eval_op_postdec, eval_op_type) |
| 1811 | (eval_binop_assign_modify, eval_op_objc_msgcall) |
| 1812 | (eval_multi_subscript, logical_and_operation::evaluate) |
| 1813 | (logical_or_operation::evaluate, array_operation::evaluate) |
| 1814 | (operation::evaluate_for_cast) |
| 1815 | (var_msym_value_operation::evaluate_for_cast) |
| 1816 | (var_value_operation::evaluate_for_cast): Update. |
| 1817 | * c-lang.c (c_string_operation::evaluate): Update. |
| 1818 | * c-exp.h (objc_nsstring_operation::evaluate) |
| 1819 | (objc_selector_operation::evaluate): Update. |
| 1820 | * ada-lang.c (ada_assign_operation::evaluate) |
| 1821 | (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range) |
| 1822 | (ada_atr_size): Update. |
| 1823 | |
| 1824 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1825 | |
| 1826 | * eval.c: Merge "namespace" scopes. |
| 1827 | |
| 1828 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1829 | |
| 1830 | * parser-defs.h (struct expr_builder) <expr_builder>: Inline. |
| 1831 | <release>: Inline. |
| 1832 | * parse.c (expr_builder::expr_builder, expr_builder::release): |
| 1833 | Remove. |
| 1834 | |
| 1835 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1836 | |
| 1837 | * parse.c (expression::expression, expression::~expression): |
| 1838 | Remove. |
| 1839 | * expression.h (struct expression): Inline constructor. Remove |
| 1840 | destructor. |
| 1841 | |
| 1842 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1843 | |
| 1844 | * std-operator.def (BINOP_END): Remove. |
| 1845 | * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END. |
| 1846 | * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END. |
| 1847 | * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END. |
| 1848 | * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END. |
| 1849 | * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not |
| 1850 | BINOP_END. |
| 1851 | |
| 1852 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1853 | |
| 1854 | * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove. |
| 1855 | |
| 1856 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1857 | |
| 1858 | * std-operator.def (OP_EXTENDED0): Remove. |
| 1859 | |
| 1860 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1861 | |
| 1862 | * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS) |
| 1863 | (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE): |
| 1864 | Remove. |
| 1865 | |
| 1866 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1867 | |
| 1868 | * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT) |
| 1869 | (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove. |
| 1870 | |
| 1871 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1872 | |
| 1873 | * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove. |
| 1874 | * ada-lang.c (ada_binop_minmax): Update. |
| 1875 | * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation): |
| 1876 | Use BINOP_MIN and BINOP_MAX. |
| 1877 | |
| 1878 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1879 | |
| 1880 | * value.h (evaluate_subexp_with_coercion): Don't declare. |
| 1881 | * parse.c (exp_descriptor_standard): Remove. |
| 1882 | (expr_builder::expr_builder, expr_builder::release): Update. |
| 1883 | (expression::expression): Remove size_t parameter. |
| 1884 | (expression::~expression): Simplify. |
| 1885 | (expression::resize): Remove. |
| 1886 | (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym) |
| 1887 | (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile) |
| 1888 | (write_exp_elt_longcst, write_exp_elt_floatcst) |
| 1889 | (write_exp_elt_type, write_exp_elt_intern, write_exp_string) |
| 1890 | (write_exp_string_vector, write_exp_bitstring): Remove. |
| 1891 | * p-lang.h (class pascal_language) <opcode_print_table, |
| 1892 | op_print_tab>: Remove. |
| 1893 | * p-lang.c (pascal_language::op_print_tab): Remove. |
| 1894 | * opencl-lang.c (class opencl_language) <opcode_print_table>: |
| 1895 | Remove. |
| 1896 | * objc-lang.c (objc_op_print_tab): Remove. |
| 1897 | (class objc_language) <opcode_print_table>: Remove. |
| 1898 | * m2-lang.h (class m2_language) <opcode_print_table, |
| 1899 | op_print_tab>: Remove. |
| 1900 | * m2-lang.c (m2_language::op_print_tab): Remove. |
| 1901 | * language.h (struct language_defn) <post_parser, expression_ops, |
| 1902 | opcode_print_table>: Remove. |
| 1903 | * language.c (language_defn::expression_ops) |
| 1904 | (auto_or_unknown_language::opcode_print_table): Remove. |
| 1905 | * go-lang.h (class go_language) <opcode_print_table, |
| 1906 | op_print_tab>: Remove. |
| 1907 | * go-lang.c (go_language::op_print_tab): Remove. |
| 1908 | * f-lang.h (class f_language) <opcode_print_table>: Remove |
| 1909 | <op_print_tab>: Remove. |
| 1910 | * f-lang.c (f_language::op_print_tab): Remove. |
| 1911 | * expression.h (union exp_element): Remove. |
| 1912 | (struct expression): Remove size_t parameter from constructor. |
| 1913 | <resize>: Remove. |
| 1914 | <first_opcode>: Update. |
| 1915 | <nelts, elts>: Remove. |
| 1916 | (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove. |
| 1917 | (evaluate_subexp_standard, print_expression, op_string) |
| 1918 | (dump_raw_expression): Don't declare. |
| 1919 | * expprint.c (print_expression, print_subexp) |
| 1920 | (print_subexp_funcall, print_subexp_standard, op_string) |
| 1921 | (dump_raw_expression, dump_subexp, dump_subexp_body) |
| 1922 | (dump_subexp_body_funcall, dump_subexp_body_standard): Remove. |
| 1923 | (dump_prefix_expression): Update. |
| 1924 | * eval.c (evaluate_subexp): Remove. |
| 1925 | (evaluate_expression, evaluate_type): Update. |
| 1926 | (evaluate_subexpression_type): Remove. |
| 1927 | (fetch_subexp_value): Remove "pc" parameter. Update. |
| 1928 | (extract_field_op, evaluate_struct_tuple, evaluate_funcall) |
| 1929 | (evaluate_subexp_standard, evaluate_subexp_for_address) |
| 1930 | (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof) |
| 1931 | (evaluate_subexp_for_cast): Remove. |
| 1932 | (parse_and_eval_type): Update. |
| 1933 | * dtrace-probe.c (dtrace_probe::compile_to_ax): Update. |
| 1934 | * d-lang.c (d_op_print_tab): Remove. |
| 1935 | (class d_language) <opcode_print_table>: Remove. |
| 1936 | * c-lang.h (c_op_print_tab): Don't declare. |
| 1937 | * c-lang.c (c_op_print_tab): Remove. |
| 1938 | (class c_language, class cplus_language, class asm_language, class |
| 1939 | minimal_language) <opcode_print_table>: Remove. |
| 1940 | * breakpoint.c (update_watchpoint, watchpoint_check) |
| 1941 | (watchpoint_exp_is_const, watch_command_1): Update. |
| 1942 | * ax-gdb.h (union exp_element): Don't declare. |
| 1943 | * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr) |
| 1944 | (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr) |
| 1945 | (gen_expr_binop_rest): Remove. |
| 1946 | (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update. |
| 1947 | * ada-lang.c (ada_op_print_tab): Remove. |
| 1948 | (class ada_language) <post_parser, opcode_print_table>: Remove. |
| 1949 | |
| 1950 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1951 | |
| 1952 | * go-lang.c (go_language::expression_ops): Don't declare. |
| 1953 | * go-lang.h (class go_language) <expression_ops>: Remove. |
| 1954 | * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl): |
| 1955 | Remove. |
| 1956 | (class opencl_language) <expression_ops>: Remove. |
| 1957 | * d-lang.c (class d_language) <expression_ops>: Remove. |
| 1958 | * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare. |
| 1959 | * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove. |
| 1960 | (class c_language, class cplus_language, class asm_language) |
| 1961 | (class minimal_language) <expression_ops>: Remove. |
| 1962 | |
| 1963 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1964 | |
| 1965 | * ada-lang.c (resolve_subexp, replace_operator_with_call) |
| 1966 | (evaluate_subexp_type, assign_aggregate) |
| 1967 | (aggregate_assign_positional, aggregate_assign_from_choices) |
| 1968 | (aggregate_assign_others, ada_evaluate_subexp_for_cast) |
| 1969 | (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length) |
| 1970 | (ada_operator_check, ada_forward_operator_length) |
| 1971 | (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor): |
| 1972 | Remove. |
| 1973 | (post_parser): Update. |
| 1974 | (class ada_language) <expresssion_ops>: Remove. |
| 1975 | |
| 1976 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1977 | |
| 1978 | * m2-lang.h (class m2_language) <expresssion_ops, |
| 1979 | exp_descriptor_modula2>: Remove. |
| 1980 | * m2-lang.c (evaluate_subexp_modula2) |
| 1981 | (m2_language::exp_descriptor_modula2): Remove. |
| 1982 | |
| 1983 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1984 | |
| 1985 | * f-lang.h (class f_language) <expresssion_ops>: Remove. |
| 1986 | <exp_descriptor_tab>: Remove. |
| 1987 | * f-lang.c (fortran_value_subarray, evaluate_subexp_f) |
| 1988 | (operator_length_f, print_unop_subexp_f, print_binop_subexp_f) |
| 1989 | (print_subexp_f, dump_subexp_body_f, operator_check_f) |
| 1990 | (f_language::exp_descriptor_tab, fortran_prepare_argument): |
| 1991 | Remove. |
| 1992 | |
| 1993 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 1994 | |
| 1995 | * rust-lang.h (class rust_language) <expression_ops, |
| 1996 | exp_descriptor_tab>: Remove. |
| 1997 | * rust-lang.c (rust_evaluate_funcall): Remove. |
| 1998 | (rust_range, rust_subscript, eval_op_rust_complement): Don't use |
| 1999 | EVAL_SKIP. |
| 2000 | (rust_evaluate_subexp): Remove. |
| 2001 | (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP. |
| 2002 | (rust_operator_length, rust_dump_subexp_body, rust_print_subexp) |
| 2003 | (rust_operator_check, rust_language::exp_descriptor_tab): Remove. |
| 2004 | |
| 2005 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2006 | |
| 2007 | * ada-exp.y: Create operations. |
| 2008 | (empty_stoken): Remove. |
| 2009 | (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2) |
| 2010 | (ada_wrap_op, ada_wrap3, ada_funcall): New functions. |
| 2011 | (components): New global. |
| 2012 | (push_component, choice_component, pop_component, pop_components): |
| 2013 | New functions. |
| 2014 | (associations): New global |
| 2015 | (push_association, pop_association, pop_associations): New |
| 2016 | functions. |
| 2017 | (ada_parse): Update. |
| 2018 | (write_var_from_sym, write_int): Create operations. |
| 2019 | (write_exp_op_with_string): Remove. |
| 2020 | (write_object_renaming, write_selectors, write_ambiguous_var) |
| 2021 | (write_var_or_type, write_name_assoc): Create operations. |
| 2022 | * ada-lang.h (ada_index_type): Declare. |
| 2023 | * ada-lang.c (ada_index_type): No longer static. |
| 2024 | |
| 2025 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2026 | |
| 2027 | * f-exp.y: Create operations. |
| 2028 | (f_language::parser): Update. |
| 2029 | |
| 2030 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2031 | |
| 2032 | * m2-exp.y: Create operations. |
| 2033 | (m2_language::parser): Update. |
| 2034 | |
| 2035 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2036 | |
| 2037 | * p-exp.y: Create operations. |
| 2038 | (pascal_language::parser): Update. |
| 2039 | |
| 2040 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2041 | |
| 2042 | * d-exp.y: Create operations. |
| 2043 | (d_parse): Update. |
| 2044 | |
| 2045 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2046 | |
| 2047 | * go-exp.y: Create operations. |
| 2048 | (go_language::parser): Update. |
| 2049 | |
| 2050 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2051 | |
| 2052 | * objc-lang.c (end_msglist): Create operations. |
| 2053 | * c-exp.y: Change parser to create operations. |
| 2054 | (write_destructor_name): Remove. |
| 2055 | (c_parse): Update. |
| 2056 | |
| 2057 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2058 | |
| 2059 | * rust-exp.y: Create operations. |
| 2060 | (rust_parser::convert_params_to_expression): Change return type. |
| 2061 | (binop_maker_ftype): New typedef. |
| 2062 | (maker_map): New global. |
| 2063 | (rust_parser::convert_ast_to_expression): Change return type. |
| 2064 | (rust_language::parser): Update. |
| 2065 | (_initialize_rust_exp): Initialize maker_map. |
| 2066 | |
| 2067 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2068 | |
| 2069 | * stap-probe.c (binop_maker_ftype): New typedef. |
| 2070 | (stap_maker_map): New global. |
| 2071 | (stap_make_binop): New function. |
| 2072 | (stap_parse_register_operand): Return operation_up. |
| 2073 | (stap_parse_single_operand, stap_parse_argument_conditionally) |
| 2074 | (stap_parse_argument_1): Likewise. |
| 2075 | (stap_parse_argument): Create operations. |
| 2076 | (stap_probe::parse_arguments): Update. |
| 2077 | (_initialize_stap_probe): Initialize stap_maker_map. |
| 2078 | * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return |
| 2079 | type. |
| 2080 | * i386-tdep.h (i386_stap_parse_special_token): Change return |
| 2081 | type. |
| 2082 | * i386-tdep.c (i386_stap_parse_special_token_triplet) |
| 2083 | (i386_stap_parse_special_token_three_arg_disp) |
| 2084 | (i386_stap_parse_special_token): Change return type. |
| 2085 | * gdbarch.sh (stap_parse_special_token): Change return type. |
| 2086 | * gdbarch.c: Rebuild. |
| 2087 | * gdbarch.h: Rebuild. |
| 2088 | * arm-linux-tdep.c (arm_stap_parse_special_token): Change return |
| 2089 | type. |
| 2090 | * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change |
| 2091 | return type. |
| 2092 | |
| 2093 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2094 | |
| 2095 | * gdbarch.sh (dtrace_parse_probe_argument): Change return type. |
| 2096 | * gdbarch.h: Rebuild. |
| 2097 | * gdbarch.c: Rebuild. |
| 2098 | * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update. |
| 2099 | * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change |
| 2100 | return type. |
| 2101 | (amd64_dtrace_parse_probe_argument): Update. |
| 2102 | |
| 2103 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2104 | |
| 2105 | * parser-defs.h (struct parser_state) <push, push_new, |
| 2106 | push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap, |
| 2107 | wrap2>: New methods. |
| 2108 | <m_operations>: New member. |
| 2109 | * parse.c (parser_state::push_c_string) |
| 2110 | (parser_state::push_symbol, parser_state::push_dollar): New |
| 2111 | methods. |
| 2112 | |
| 2113 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2114 | |
| 2115 | * parser-defs.h (struct expr_completion_state) <expout_last_op>: |
| 2116 | New member. |
| 2117 | (struct parser_state) <mark_struct_expression>: New method. |
| 2118 | * parse.c (parser_state::mark_struct_expression): Update assert. |
| 2119 | (parser_state::mark_struct_expression): New method. |
| 2120 | (parser_state::mark_completion_tag): Update assert. |
| 2121 | (parse_expression_for_completion): Handle expout_last_op. |
| 2122 | |
| 2123 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2124 | |
| 2125 | * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove; |
| 2126 | now in superclass. |
| 2127 | * value.h (fetch_subexp_value): Add "op" parameter. |
| 2128 | * value.c (init_if_undefined_command): Update. |
| 2129 | * tracepoint.c (validate_actionline, encode_actions_1): Update. |
| 2130 | * stap-probe.c (stap_probe::compile_to_ax): Update. |
| 2131 | * printcmd.c (set_command): Update. |
| 2132 | * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): |
| 2133 | Update. |
| 2134 | * parser-defs.h (struct expr_builder) <set_operation>: New |
| 2135 | method. |
| 2136 | * parse.c (parse_exp_in_context, exp_uses_objfile): Update. |
| 2137 | * expression.h (struct expression) <first_opcode>: Update. |
| 2138 | <op>: New member. |
| 2139 | * expprint.c (dump_raw_expression, dump_prefix_expression): |
| 2140 | Update. |
| 2141 | * expop.h (class var_value_operation) <get_symbol>: New method. |
| 2142 | (class register_operation) <get_name>: New method. |
| 2143 | (class equal_operation): No longer a typedef, now a subclass. |
| 2144 | (class unop_memval_operation) <get_type>: New method. |
| 2145 | (class assign_operation) <get_lhs>: New method. |
| 2146 | (class unop_cast_operation) <get_type>: New method. |
| 2147 | * eval.c (evaluate_expression, evaluate_type) |
| 2148 | (evaluate_subexpression_type): Update. |
| 2149 | (fetch_subexp_value): Add "op" parameter. |
| 2150 | (parse_and_eval_type): Update. |
| 2151 | * dtrace-probe.c (dtrace_probe::compile_to_ax): Update. |
| 2152 | * breakpoint.c (update_watchpoint, watchpoint_check) |
| 2153 | (watchpoint_exp_is_const, watch_command_1): Update. |
| 2154 | * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf): |
| 2155 | Update. |
| 2156 | |
| 2157 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2158 | |
| 2159 | * ada-lang.c (ada_value_binop): Do not use op_string. |
| 2160 | |
| 2161 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2162 | |
| 2163 | * expprint.c (dump_for_expression): New overload. |
| 2164 | * expop.h (check_objfile, dump_for_expression): Declare new |
| 2165 | overloads. |
| 2166 | * ada-lang.c (check_objfile): New overload. |
| 2167 | (assign_component, ada_aggregate_component::uses_objfile) |
| 2168 | (ada_aggregate_component::dump, ada_aggregate_component::assign) |
| 2169 | (ada_aggregate_component::assign_aggregate) |
| 2170 | (ada_positional_component::uses_objfile) |
| 2171 | (ada_positional_component::dump, ada_positional_component::assign) |
| 2172 | (ada_discrete_range_association::uses_objfile) |
| 2173 | (ada_discrete_range_association::dump) |
| 2174 | (ada_discrete_range_association::assign) |
| 2175 | (ada_name_association::uses_objfile, ada_name_association::dump) |
| 2176 | (ada_name_association::assign) |
| 2177 | (ada_choices_component::uses_objfile, ada_choices_component::dump) |
| 2178 | (ada_choices_component::assign) |
| 2179 | (ada_others_component::uses_objfile, ada_others_component::dump) |
| 2180 | (ada_others_component::assign, ada_assign_operation::evaluate): |
| 2181 | New methods. |
| 2182 | * ada-exp.h (ada_string_operation) <get_name>: New method. |
| 2183 | (class ada_assign_operation): New. |
| 2184 | (class ada_component): New. |
| 2185 | (ada_component_up): New typedef. |
| 2186 | (class ada_aggregate_operation, class ada_aggregate_component) |
| 2187 | (class ada_positional_component, class ada_others_component) |
| 2188 | (class ada_association): New. |
| 2189 | (ada_association_up): New typedef. |
| 2190 | (class ada_choices_component) |
| 2191 | (class ada_discrete_range_association) |
| 2192 | (class ada_name_association): New. |
| 2193 | |
| 2194 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2195 | |
| 2196 | * ada-lang.c (ada_var_value_operation::resolve) |
| 2197 | (ada_funcall_operation::resolve) |
| 2198 | (ada_ternop_slice_operation::resolve): New methods. |
| 2199 | * ada-exp.h (struct ada_resolvable): New. |
| 2200 | (class ada_var_value_operation): Derive from ada_resolvable. |
| 2201 | <get_block, resolve>: New methods. |
| 2202 | (class ada_funcall_operation): Derive from ada_resolvable. |
| 2203 | <resolve>: New method. |
| 2204 | (class ada_ternop_slice_operation): Derive from ada_resolvable. |
| 2205 | <resolve>: New method. |
| 2206 | |
| 2207 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2208 | |
| 2209 | * ada-lang.c (ada_funcall_operation::evaluate): New method. |
| 2210 | * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New |
| 2211 | method. |
| 2212 | (class ada_funcall_operation): New. |
| 2213 | |
| 2214 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2215 | |
| 2216 | * ada-lang.c (ada_structop_operation::evaluate): New method. |
| 2217 | * ada-exp.h (class ada_structop_operation): New. |
| 2218 | |
| 2219 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2220 | |
| 2221 | * ada-lang.c (ada_unop_ind_operation::evaluate): New method. |
| 2222 | * ada-exp.h (class ada_unop_ind_operation): New. |
| 2223 | |
| 2224 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2225 | |
| 2226 | * ada-lang.c (ada_binop_exp): No longer static. |
| 2227 | * ada-exp.h (ada_binop_exp_operation): New typedef. |
| 2228 | |
| 2229 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2230 | |
| 2231 | * ada-lang.c (ada_val_atr): No longer static. |
| 2232 | (ada_atr_val_operation::evaluate): New method. |
| 2233 | * ada-exp.h (class ada_atr_val_operation): New. |
| 2234 | |
| 2235 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2236 | |
| 2237 | * ada-lang.c (ada_pos_atr): No longer static. |
| 2238 | * ada-exp.h (ada_pos_operation): New typedef. |
| 2239 | |
| 2240 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2241 | |
| 2242 | * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change |
| 2243 | parameters. |
| 2244 | (ada_evaluate_subexp): Use it. |
| 2245 | |
| 2246 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2247 | |
| 2248 | * ada-lang.c (ada_binop_minmax): No longer static. |
| 2249 | * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation): |
| 2250 | New typedefs. |
| 2251 | |
| 2252 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2253 | |
| 2254 | * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast): |
| 2255 | New method. |
| 2256 | * ada-exp.h (class ada_var_msym_value_operation): New. |
| 2257 | |
| 2258 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2259 | |
| 2260 | * ada-lang.c (ada_var_value_operation::evaluate_for_cast) |
| 2261 | (ada_var_value_operation::evaluate): New methods. |
| 2262 | * ada-exp.h (class ada_var_value_operation): New. |
| 2263 | |
| 2264 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2265 | |
| 2266 | * ada-lang.c (ada_unop_atr_operation::evaluate): New method. |
| 2267 | * ada-exp.h (class ada_unop_atr_operation): New. |
| 2268 | |
| 2269 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2270 | |
| 2271 | * ada-lang.c (ada_binop_in_bounds): No longer static. |
| 2272 | * ada-exp.h (class ada_binop_in_bounds_operation): New. |
| 2273 | |
| 2274 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2275 | |
| 2276 | * ada-lang.c (ada_ternop_slice): No longer static. |
| 2277 | * ada-exp.h (class ada_ternop_slice_operation): New. |
| 2278 | |
| 2279 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2280 | |
| 2281 | * ada-exp.h (ada_bitwise_operation): New template class. |
| 2282 | (ada_bitwise_and_operation, ada_bitwise_ior_operation) |
| 2283 | (ada_bitwise_xor_operation): New typedefs. |
| 2284 | |
| 2285 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2286 | |
| 2287 | * ada-lang.c (ada_equal_binop): No longer static. |
| 2288 | * ada-exp.h (class ada_binop_equal_operation): New. |
| 2289 | |
| 2290 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2291 | |
| 2292 | * ada-lang.c (ada_mult_binop): No longer static. |
| 2293 | * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation) |
| 2294 | (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs. |
| 2295 | |
| 2296 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2297 | |
| 2298 | * ada-lang.c (ada_binop_addsub_operation::evaluate): New method. |
| 2299 | * ada-exp.h (class ada_binop_addsub_operation): New. |
| 2300 | |
| 2301 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2302 | |
| 2303 | * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall) |
| 2304 | (ada_resolve_variable): Declare. |
| 2305 | * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall) |
| 2306 | (ada_resolve_variable): New functions. |
| 2307 | (resolve_subexp): Update. |
| 2308 | |
| 2309 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2310 | |
| 2311 | * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New |
| 2312 | method. |
| 2313 | * c-exp.h (class opencl_ternop_cond_operation): New. |
| 2314 | |
| 2315 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2316 | |
| 2317 | * opencl-lang.c (opencl_logical_binop_operation::evaluate): New |
| 2318 | method. |
| 2319 | * c-exp.h (class opencl_logical_binop_operation): New. |
| 2320 | |
| 2321 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2322 | |
| 2323 | * opencl-lang.c (opencl_structop_operation::evaluate): New |
| 2324 | method. |
| 2325 | * c-exp.h (class opencl_structop_operation): New. |
| 2326 | |
| 2327 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2328 | |
| 2329 | * opencl-lang.c (opencl_logical_not): No longer static. Change |
| 2330 | parameters. |
| 2331 | (evaluate_subexp_opencl): Update. |
| 2332 | * c-exp.h (opencl_notequal_operation): New typedef. |
| 2333 | |
| 2334 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2335 | |
| 2336 | * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer |
| 2337 | static. Change parameters. |
| 2338 | (eval_opencl_assign): No longer static. Add "op" parameter. |
| 2339 | (evaluate_subexp_opencl): Update. |
| 2340 | * c-exp.h (opencl_binop_operation): New template class. |
| 2341 | (opencl_assign_operation, opencl_equal_operation) |
| 2342 | (opencl_notequal_operation, opencl_less_operation) |
| 2343 | (opencl_gtr_operation, opencl_geq_operation) |
| 2344 | (opencl_leq_operation): New typedefs. |
| 2345 | |
| 2346 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2347 | |
| 2348 | * opencl-lang.c (opencl_value_cast): No longer static. |
| 2349 | * c-exp.h (opencl_cast_type_operation): New typedef. |
| 2350 | |
| 2351 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2352 | |
| 2353 | * f-exp.h (eval_op_f_allocated): Declare. |
| 2354 | (fortran_allocated_operation): New typedef. |
| 2355 | * f-lang.c (eval_op_f_allocated): No longer static. |
| 2356 | |
| 2357 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2358 | |
| 2359 | * f-lang.c (eval_op_f_associated): New functions. |
| 2360 | * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New |
| 2361 | typedefs. |
| 2362 | |
| 2363 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2364 | |
| 2365 | * f-lang.c (fortran_bound_1arg::evaluate) |
| 2366 | (fortran_bound_2arg::evaluate): New methods. |
| 2367 | * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg): |
| 2368 | New. |
| 2369 | |
| 2370 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2371 | |
| 2372 | * expop.h (class unop_addr_operation) <get_expression>: New |
| 2373 | method. |
| 2374 | * f-lang.c (fortran_undetermined::value_subarray) |
| 2375 | (fortran_undetermined::evaluate): New methods. |
| 2376 | (fortran_prepare_argument): New overload. |
| 2377 | * f-exp.h (class fortran_range_operation) |
| 2378 | (class fortran_undetermined): New classes. |
| 2379 | |
| 2380 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2381 | |
| 2382 | * rust-lang.c (rust_structop::evaluate_funcall): New method. |
| 2383 | * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare |
| 2384 | method. |
| 2385 | |
| 2386 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2387 | |
| 2388 | * expression.h (class operation) <evaluate_funcall>: New methods. |
| 2389 | * expop.h (class scope_operation) <evaluate_funcall>: New method. |
| 2390 | (class var_value_operation) <evaluate_funcall>: New method. |
| 2391 | (class structop_base_operation) <evaluate_funcall>: New method. |
| 2392 | (class var_msym_value_operation) <evaluate_funcall>: New method. |
| 2393 | (class structop_member_base): New class. |
| 2394 | (class structop_member_operation): Derive from |
| 2395 | structop_member_base. |
| 2396 | (class structop_mptr_operation): Derive from |
| 2397 | structop_member_base. |
| 2398 | (class funcall_operation): New class. |
| 2399 | * eval.c (operation::evaluate_funcall) |
| 2400 | (var_value_operation::evaluate_funcall) |
| 2401 | (scope_operation::evaluate_funcall) |
| 2402 | (structop_member_base::evaluate_funcall) |
| 2403 | (structop_base_operation::evaluate_funcall): New methods. |
| 2404 | |
| 2405 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2406 | |
| 2407 | * expop.h (class array_operation): New. |
| 2408 | * eval.c (array_operation::evaluate_struct_tuple) |
| 2409 | (array_operation::evaluate): New methods. |
| 2410 | |
| 2411 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2412 | |
| 2413 | * expop.h (class adl_func_operation): New. |
| 2414 | * eval.c (adl_func_operation::evaluate): New method. |
| 2415 | |
| 2416 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2417 | |
| 2418 | * ada-lang.c (ada_unop_in_range): No longer static. |
| 2419 | * ada-exp.h (class ada_unop_range_operation): New. |
| 2420 | |
| 2421 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2422 | |
| 2423 | * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs): |
| 2424 | No longer static. |
| 2425 | * ada-exp.h (ada_neg_operation, ada_atr_tag_operation) |
| 2426 | (ada_atr_size_operation, ada_abs_operation): New typedefs. |
| 2427 | |
| 2428 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2429 | |
| 2430 | * expop.h (class logical_and_operation) |
| 2431 | (class logical_or_operation): New. |
| 2432 | * eval.c (logical_and_operation::evaluate) |
| 2433 | (logical_or_operation::evaluate): New methods. |
| 2434 | * ax-gdb.c (logical_and_operation::do_generate_ax) |
| 2435 | (logical_or_operation::do_generate_ax): New methods. |
| 2436 | |
| 2437 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2438 | |
| 2439 | * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer |
| 2440 | static. |
| 2441 | * m2-exp.h: New file. |
| 2442 | |
| 2443 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2444 | |
| 2445 | * rust-lang.c (rust_aggregate_operation::evaluate): New method. |
| 2446 | * rust-exp.h (class rust_aggregate_operation): New. |
| 2447 | |
| 2448 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2449 | |
| 2450 | * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop): |
| 2451 | No longer static. |
| 2452 | * rust-exp.h (class rust_struct_anon): New. |
| 2453 | (class rust_structop): New. |
| 2454 | |
| 2455 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2456 | |
| 2457 | * rust-lang.c (rust_range): No longer static. |
| 2458 | * rust-exp.h (class rust_range_operation): New. |
| 2459 | |
| 2460 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2461 | |
| 2462 | * rust-lang.c (rust_subscript): No longer static. |
| 2463 | * rust-exp.h (class rust_subscript_operation): New. |
| 2464 | |
| 2465 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2466 | |
| 2467 | * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode" |
| 2468 | parameter. |
| 2469 | (rust_evaluate_subexp): Update. |
| 2470 | * rust-exp.h (class rust_unop_ind_operation): New. |
| 2471 | |
| 2472 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2473 | |
| 2474 | * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No |
| 2475 | longer static. Add "opcode" parameter. |
| 2476 | (rust_evaluate_subexp): Update. |
| 2477 | * rust-exp.h: New file. |
| 2478 | |
| 2479 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2480 | |
| 2481 | * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil) |
| 2482 | (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx) |
| 2483 | (eval_op_f_kind): No longer static. Add "opcode" parameter. |
| 2484 | (evaluate_subexp_f): Update. |
| 2485 | * f-exp.h: New file. |
| 2486 | |
| 2487 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2488 | |
| 2489 | * ada-lang.c (ada_ternop_range_operation::evaluate): New method. |
| 2490 | * ada-exp.h (class ada_ternop_range_operation): New. |
| 2491 | |
| 2492 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2493 | |
| 2494 | * ada-lang.c (ada_qual_operation::evaluate): New method. |
| 2495 | * ada-exp.h (class ada_qual_operation): New. |
| 2496 | |
| 2497 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2498 | |
| 2499 | * ada-lang.c (ada_string_operation::evaluate): New method. |
| 2500 | * ada-exp.h (class ada_string_operation): New. |
| 2501 | |
| 2502 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2503 | |
| 2504 | * ada-lang.c (ada_wrapped_operation::evaluate): New method. |
| 2505 | * ada-exp.h: New file. |
| 2506 | |
| 2507 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2508 | |
| 2509 | * expop.h (class multi_subscript_operation): New. |
| 2510 | * eval.c (multi_subscript_operation::evaluate): New method. |
| 2511 | |
| 2512 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2513 | |
| 2514 | * eval.c (objc_msgcall_operation::evaluate): New method. |
| 2515 | * c-exp.h (class objc_msgcall_operation): New. |
| 2516 | |
| 2517 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2518 | |
| 2519 | * expop.h (class var_value_operation): New. |
| 2520 | * eval.c (var_value_operation::evaluate) |
| 2521 | (var_value_operation::evaluate_for_address) |
| 2522 | (var_value_operation::evaluate_with_coercion) |
| 2523 | (var_value_operation::evaluate_for_sizeof) |
| 2524 | (var_value_operation::evaluate_for_cast): New methods. |
| 2525 | * ax-gdb.c (var_value_operation::do_generate_ax): New method. |
| 2526 | |
| 2527 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2528 | |
| 2529 | * expop.h (cxx_cast_ftype): New typedef. |
| 2530 | (cxx_cast_operation): New template. |
| 2531 | (dynamic_cast_operation, reinterpret_cast_operation): New |
| 2532 | typedefs. |
| 2533 | |
| 2534 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2535 | |
| 2536 | * expop.h (class unop_cast_type_operation): New. |
| 2537 | * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New |
| 2538 | method. |
| 2539 | |
| 2540 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2541 | |
| 2542 | * expop.h (class unop_cast_operation): New. |
| 2543 | * ax-gdb.c (unop_cast_operation::do_generate_ax): New method. |
| 2544 | |
| 2545 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2546 | |
| 2547 | * expop.h (class assign_modify_operation): New. |
| 2548 | * eval.c (eval_binop_assign_modify): No longer static. |
| 2549 | * ax-gdb.c (assign_modify_operation::do_generate_ax): New method. |
| 2550 | |
| 2551 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2552 | |
| 2553 | * expop.h (class assign_operation): New. |
| 2554 | * ax-gdb.c (assign_operation::do_generate_ax): New method. |
| 2555 | |
| 2556 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2557 | |
| 2558 | * expop.h (class type_instance_operation): New. |
| 2559 | * eval.c (type_instance_operation::evaluate): New method. |
| 2560 | |
| 2561 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2562 | |
| 2563 | * expop.h (class op_this_operation): New. |
| 2564 | * ax-gdb.c (op_this_operation::do_generate_ax): New method. |
| 2565 | |
| 2566 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2567 | |
| 2568 | * expop.h (class unop_memval_operation) |
| 2569 | (class unop_memval_type_operation): New. |
| 2570 | * eval.c (eval_op_memval): No longer static. |
| 2571 | (unop_memval_operation::evaluate_for_address) |
| 2572 | (unop_memval_type_operation::evaluate_for_address) |
| 2573 | (unop_memval_operation::evaluate_for_sizeof) |
| 2574 | (unop_memval_type_operation::evaluate_for_sizeof): New methods. |
| 2575 | * ax-gdb.c (unop_memval_operation::do_generate_ax) |
| 2576 | (unop_memval_type_operation::do_generate_ax): New methods. |
| 2577 | |
| 2578 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2579 | |
| 2580 | * expop.h (class unop_alignof_operation): New. |
| 2581 | * eval.c (eval_op_alignof): No longer static. |
| 2582 | |
| 2583 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2584 | |
| 2585 | * expop.h (class unop_sizeof_operation): New. |
| 2586 | * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method. |
| 2587 | |
| 2588 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2589 | |
| 2590 | * expop.h (class unop_addr_operation): New. |
| 2591 | * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New. |
| 2592 | |
| 2593 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2594 | |
| 2595 | * expop.h (class typeid_operation): New. |
| 2596 | |
| 2597 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2598 | |
| 2599 | * expop.h (class decltype_operation): New. |
| 2600 | |
| 2601 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2602 | |
| 2603 | * expop.h (class typeof_operation): New. |
| 2604 | |
| 2605 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2606 | |
| 2607 | * expop.h (class type_operation): New. |
| 2608 | * eval.c (eval_op_type): No longer static. |
| 2609 | |
| 2610 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2611 | |
| 2612 | * expop.h (class unop_ind_base_operation) |
| 2613 | (class unop_ind_operation): New. |
| 2614 | * eval.c (eval_op_ind): No longer static. Remove "op" parameter. |
| 2615 | (unop_ind_base_operation::evaluate_for_address) |
| 2616 | (unop_ind_base_operation::evaluate_for_sizeof): New method. |
| 2617 | * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New. |
| 2618 | |
| 2619 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2620 | |
| 2621 | * expop.h (unop_incr_operation): New template. |
| 2622 | (preinc_operation, predec_operation, postinc_operation) |
| 2623 | (postdec_operation): New typedefs. |
| 2624 | * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc) |
| 2625 | (eval_op_postdec): No longer static. |
| 2626 | |
| 2627 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2628 | |
| 2629 | * expop.h (unary_ftype): New typedef. |
| 2630 | (unop_operation, usual_ax_binop_operation): New templates. |
| 2631 | (unary_plus_operation, unary_neg_operation) |
| 2632 | (unary_complement_operation, unary_logical_not_operation): New |
| 2633 | typedefs. |
| 2634 | * eval.c (eval_op_plus, eval_op_neg, eval_op_complement) |
| 2635 | (eval_op_lognot): No longer static. |
| 2636 | * ax-gdb.c (gen_expr_unop): New function. |
| 2637 | |
| 2638 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2639 | |
| 2640 | * ax-gdb.c (comma_operation::do_generate_ax): New method. |
| 2641 | |
| 2642 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2643 | |
| 2644 | * expop.h (class repeat_operation): New. |
| 2645 | * eval.c (eval_op_repeat): No longer static. Remove "op" |
| 2646 | parameter. |
| 2647 | (evaluate_subexp_standard): Update. |
| 2648 | * ax-gdb.c (repeat_operation::do_generate_ax): New method. |
| 2649 | |
| 2650 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2651 | |
| 2652 | * expop.h (class comparison_operation): New. |
| 2653 | (equal_operation, notequal_operation, less_operation) |
| 2654 | (gtr_operation, geq_operation, leq_operation): New typedefs. |
| 2655 | * eval.c (eval_op_equal, eval_op_notequal, eval_op_less) |
| 2656 | (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static. |
| 2657 | |
| 2658 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2659 | |
| 2660 | * expop.h (class subscript_operation): New. |
| 2661 | * eval.c (eval_op_subscript): No longer static. |
| 2662 | |
| 2663 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2664 | |
| 2665 | * expop.h (class binop_operation, class usual_ax_binop_operation): |
| 2666 | New. |
| 2667 | (exp_operation, intdiv_operation, mod_operation, mul_operation) |
| 2668 | (div_operation, rem_operation, lsh_operation, rsh_operation) |
| 2669 | (bitwise_and_operation, bitwise_ior_operation) |
| 2670 | (bitwise_xor_operation): New typedefs. |
| 2671 | * eval.c (eval_op_binary): No longer static. |
| 2672 | |
| 2673 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2674 | |
| 2675 | * expop.h (class sub_operation): New. |
| 2676 | * eval.c (eval_op_sub): No longer static. Remove "op" parameter. |
| 2677 | (evaluate_subexp_standard): Update. |
| 2678 | |
| 2679 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2680 | |
| 2681 | * expop.h (class add_operation): New. |
| 2682 | * eval.c (eval_op_add): No longer static. Remove "op" parameter. |
| 2683 | (evaluate_subexp_standard): Update. |
| 2684 | |
| 2685 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2686 | |
| 2687 | * expop.h (class concat_operation): New. |
| 2688 | * eval.c (eval_op_concat): No longer static. Remove "op" |
| 2689 | parameter. |
| 2690 | (evaluate_subexp_standard): Update. |
| 2691 | |
| 2692 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2693 | |
| 2694 | * expop.h (class structop_member_operation) |
| 2695 | (class structop_mptr_operation): New. |
| 2696 | * eval.c (eval_op_member): No longer static. |
| 2697 | |
| 2698 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2699 | |
| 2700 | * expop.h (class structop_ptr_operation): New. |
| 2701 | * eval.c (eval_op_structop_ptr): No longer static. Remove "op" |
| 2702 | parameter. |
| 2703 | |
| 2704 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2705 | |
| 2706 | * expop.h (class structop_base_operation) |
| 2707 | (class structop_operation): New. |
| 2708 | * eval.c (eval_op_structop_struct): No longer static. |
| 2709 | |
| 2710 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2711 | |
| 2712 | * expop.h (class complex_operation): New. |
| 2713 | |
| 2714 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2715 | |
| 2716 | * eval.c (eval_op_objc_selector): No longer static. |
| 2717 | * c-exp.h (class objc_selector_operation): New. |
| 2718 | |
| 2719 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2720 | |
| 2721 | * eval.c: Include c-exp.h. |
| 2722 | * c-exp.h (class objc_nsstring_operation): New. |
| 2723 | |
| 2724 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2725 | |
| 2726 | * c-lang.c (c_string_operation::evaluate): New method. |
| 2727 | * c-exp.h: New file. |
| 2728 | |
| 2729 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2730 | |
| 2731 | * expop.h (class ternop_cond_operation): New. |
| 2732 | * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method. |
| 2733 | |
| 2734 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2735 | |
| 2736 | * expop.h (class ternop_slice_operation): New. |
| 2737 | * eval.c (eval_op_ternop): No longer static. |
| 2738 | |
| 2739 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2740 | |
| 2741 | * expop.h (class string_operation): New. |
| 2742 | * eval.c (eval_op_string): No longer static. |
| 2743 | |
| 2744 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2745 | |
| 2746 | * expop.h (class internalvar_operation): New. |
| 2747 | * ax-gdb.c (internalvar_operation::do_generate_ax): New method. |
| 2748 | |
| 2749 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2750 | |
| 2751 | * expop.h (class bool_operation): New. |
| 2752 | |
| 2753 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2754 | |
| 2755 | * expop.h (class register_operation): New. |
| 2756 | * eval.c (eval_op_register): No longer static. |
| 2757 | * ax-gdb.c (register_operation::do_generate_ax): New method. |
| 2758 | |
| 2759 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2760 | |
| 2761 | * expop.h (class last_operation): New. |
| 2762 | |
| 2763 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2764 | |
| 2765 | * expop.h (class func_static_var_operation): New. |
| 2766 | * eval.c (eval_op_func_static_var): No longer static. |
| 2767 | |
| 2768 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2769 | |
| 2770 | * expop.h (class var_entry_value_operation): New. |
| 2771 | * eval.c (eval_op_var_entry_value): No longer static. |
| 2772 | |
| 2773 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2774 | |
| 2775 | * expression.h (class operation) <set_outermost>: New method. |
| 2776 | * expop.h (class var_msym_value_operation): New. |
| 2777 | * eval.c (eval_op_var_msym_value): No longer static. |
| 2778 | (var_msym_value_operation::evaluate_for_address) |
| 2779 | (var_msym_value_operation::evaluate_for_sizeof) |
| 2780 | (var_msym_value_operation::evaluate_for_cast): New methods. |
| 2781 | * ax-gdb.c (var_msym_value_operation::do_generate_ax): New |
| 2782 | method. |
| 2783 | |
| 2784 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2785 | |
| 2786 | * expop.h (class long_const_operation): New. |
| 2787 | * ax-gdb.c (long_const_operation::do_generate_ax): New method. |
| 2788 | |
| 2789 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2790 | |
| 2791 | * expop.h (class scope_operation): New. |
| 2792 | * eval.c (eval_op_scope): No longer static. |
| 2793 | (scope_operation::evaluate_for_address): New method. |
| 2794 | * ax-gdb.c (scope_operation::do_generate_ax): New method. |
| 2795 | |
| 2796 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2797 | |
| 2798 | * expprint.c (float_const_operation::dump): New method. |
| 2799 | * expop.h (float_data): New typedef. |
| 2800 | (class float_const_operation): New. |
| 2801 | |
| 2802 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2803 | |
| 2804 | * expop.h (gen_expr_binop, gen_expr_structop): Declare. |
| 2805 | * ax-gdb.c (gen_expr_binop): New function. |
| 2806 | (gen_expr_structop): Likewise. |
| 2807 | |
| 2808 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2809 | |
| 2810 | * expprint.c (expr::dump_for_expression): New functions. |
| 2811 | * expop.h (dump_for_expression): New overloads. |
| 2812 | (tuple_holding_operation::dump, tuple_holding_operation::do_dump): |
| 2813 | Update. |
| 2814 | |
| 2815 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2816 | |
| 2817 | * expression.h (expr::operation): New class. |
| 2818 | (expr::make_operation): New function. |
| 2819 | (expr::operation_up): New typedef. |
| 2820 | * expop.h: New file. |
| 2821 | * eval.c (operation::evaluate_for_cast) |
| 2822 | (operation::evaluate_for_address, operation::evaluate_for_sizeof): |
| 2823 | New methods. |
| 2824 | * ax-gdb.c (operation::generate_ax): New method. |
| 2825 | |
| 2826 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2827 | |
| 2828 | * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter. |
| 2829 | (gen_expr_binop_rest): New overload. |
| 2830 | |
| 2831 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2832 | |
| 2833 | * eval.c (eval_multi_subscript): New function. |
| 2834 | (evaluate_subexp_standard): Use it. |
| 2835 | |
| 2836 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2837 | |
| 2838 | * ada-lang.c (ada_binop_exp): New function. |
| 2839 | (ada_evaluate_subexp): Use it. |
| 2840 | |
| 2841 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2842 | |
| 2843 | * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change |
| 2844 | parameters. |
| 2845 | (ada_evaluate_subexp): Use it. |
| 2846 | |
| 2847 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2848 | |
| 2849 | * ada-lang.c (ada_binop_minmax): New function. |
| 2850 | (ada_evaluate_subexp): Use it. |
| 2851 | |
| 2852 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2853 | |
| 2854 | * ada-lang.c (ada_unop_atr): New function. |
| 2855 | (ada_evaluate_subexp): Use it. |
| 2856 | |
| 2857 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2858 | |
| 2859 | * ada-lang.c (ada_binop_in_bounds): New function. |
| 2860 | (ada_evaluate_subexp): Use it. |
| 2861 | |
| 2862 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2863 | |
| 2864 | * ada-lang.c (ada_ternop_slice): New function. |
| 2865 | (ada_evaluate_subexp): Use it. |
| 2866 | |
| 2867 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2868 | |
| 2869 | * ada-lang.c (ada_equal_binop): New function. |
| 2870 | (ada_evaluate_subexp): Use it. |
| 2871 | |
| 2872 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2873 | |
| 2874 | * ada-lang.c (ada_mult_binop): New function. |
| 2875 | (ada_evaluate_subexp): Use it. |
| 2876 | |
| 2877 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2878 | |
| 2879 | * ada-lang.c (ada_abs): New function. |
| 2880 | (ada_evaluate_subexp): Use it. |
| 2881 | |
| 2882 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2883 | |
| 2884 | * ada-lang.c (ada_atr_size): New function. |
| 2885 | (ada_evaluate_subexp): Use it. |
| 2886 | |
| 2887 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2888 | |
| 2889 | * ada-lang.c (ada_atr_tag): New function. |
| 2890 | (ada_evaluate_subexp): Use it. |
| 2891 | |
| 2892 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2893 | |
| 2894 | * ada-lang.c (ada_unop_in_range): New function. |
| 2895 | (ada_evaluate_subexp): Use it. |
| 2896 | |
| 2897 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2898 | |
| 2899 | * ada-lang.c (ada_unop_neg): New function. |
| 2900 | (ada_evaluate_subexp): Use it. |
| 2901 | |
| 2902 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2903 | |
| 2904 | * ada-lang.c (eval_ternop_in_range): New function. |
| 2905 | (ada_evaluate_subexp): Use it. |
| 2906 | |
| 2907 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2908 | |
| 2909 | * opencl-lang.c (eval_opencl_assign): New function. |
| 2910 | (evaluate_subexp_opencl): Use it. |
| 2911 | |
| 2912 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2913 | |
| 2914 | * eval.c (eval_op_objc_msgcall): New function. |
| 2915 | (evaluate_subexp_standard): Use it. |
| 2916 | |
| 2917 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2918 | |
| 2919 | * eval.c (eval_binop_assign_modify): New function. |
| 2920 | (evaluate_subexp_standard): Use it. |
| 2921 | |
| 2922 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2923 | |
| 2924 | * m2-lang.c (eval_op_m2_subscript): New function. |
| 2925 | (evaluate_subexp_modula2): Use it. |
| 2926 | |
| 2927 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2928 | |
| 2929 | * m2-lang.c (eval_op_m2_high): New function. |
| 2930 | (evaluate_subexp_modula2): Use it. |
| 2931 | |
| 2932 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2933 | |
| 2934 | * eval.c (evaluate_subexp_for_address_base): New function. |
| 2935 | (evaluate_subexp_for_address): Use it. |
| 2936 | (evaluate_subexp_for_sizeof_base): New function. |
| 2937 | (evaluate_subexp_for_sizeof): Use it. |
| 2938 | |
| 2939 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2940 | |
| 2941 | * rust-lang.c (eval_op_rust_structop): New function. |
| 2942 | (rust_evaluate_subexp): Use it. |
| 2943 | |
| 2944 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2945 | |
| 2946 | * rust-lang.c (eval_op_rust_struct_anon): New function. |
| 2947 | (rust_evaluate_subexp): Use it. |
| 2948 | |
| 2949 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2950 | |
| 2951 | * rust-lang.c (eval_op_rust_array): New function. |
| 2952 | (rust_evaluate_subexp): Use it. |
| 2953 | |
| 2954 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2955 | |
| 2956 | * rust-lang.c (eval_op_rust_complement): New function. |
| 2957 | (rust_evaluate_subexp): Use it. |
| 2958 | |
| 2959 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2960 | |
| 2961 | * rust-lang.c (eval_op_rust_ind): New function. |
| 2962 | (rust_evaluate_subexp): Use it. |
| 2963 | |
| 2964 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2965 | |
| 2966 | * rust-lang.c (rust_subscript): Change parameters. |
| 2967 | (rust_evaluate_subexp): Update. |
| 2968 | |
| 2969 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2970 | |
| 2971 | * rust-lang.c (rust_range): Change parameters. |
| 2972 | (rust_evaluate_subexp): Update. |
| 2973 | |
| 2974 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2975 | |
| 2976 | * f-lang.c (eval_op_f_allocated): New function. |
| 2977 | (evaluate_subexp_f): Use it. |
| 2978 | |
| 2979 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2980 | |
| 2981 | * f-lang.c (fortran_require_array): New function. |
| 2982 | (evaluate_subexp_f): Use it. |
| 2983 | |
| 2984 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2985 | |
| 2986 | * f-lang.c (eval_op_f_kind): New function. |
| 2987 | (evaluate_subexp_f): Use it. |
| 2988 | |
| 2989 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2990 | |
| 2991 | * f-lang.c (eval_op_f_cmplx): New function. |
| 2992 | (evaluate_subexp_f): Use it. |
| 2993 | |
| 2994 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 2995 | |
| 2996 | * f-lang.c (eval_op_f_modulo): New function. |
| 2997 | (evaluate_subexp_f): Use it. |
| 2998 | |
| 2999 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3000 | |
| 3001 | * f-lang.c (eval_op_f_floor): New function. |
| 3002 | (evaluate_subexp_f): Use it. |
| 3003 | |
| 3004 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3005 | |
| 3006 | * f-lang.c (eval_op_f_ceil): New function. |
| 3007 | (evaluate_subexp_f): Use it. |
| 3008 | |
| 3009 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3010 | |
| 3011 | * f-lang.c (eval_op_f_mod): New function. |
| 3012 | (evaluate_subexp_f): Use it. |
| 3013 | |
| 3014 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3015 | |
| 3016 | * f-lang.c (eval_op_f_abs): New function. |
| 3017 | (evaluate_subexp_f): Use it. |
| 3018 | |
| 3019 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3020 | |
| 3021 | * eval.c (eval_op_type): New function. |
| 3022 | (evaluate_subexp_standard): Use it. |
| 3023 | |
| 3024 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3025 | |
| 3026 | * eval.c (eval_op_postdec): New function. |
| 3027 | (evaluate_subexp_standard): Use it. |
| 3028 | |
| 3029 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3030 | |
| 3031 | * eval.c (eval_op_postinc): New function. |
| 3032 | (evaluate_subexp_standard): Use it. |
| 3033 | |
| 3034 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3035 | |
| 3036 | * eval.c (eval_op_predec): New file. |
| 3037 | (evaluate_subexp_standard): Use it. |
| 3038 | |
| 3039 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3040 | |
| 3041 | * eval.c (eval_op_preinc): New function. |
| 3042 | (evaluate_subexp_standard): Use it. |
| 3043 | |
| 3044 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3045 | |
| 3046 | * eval.c (eval_op_memval): New function. |
| 3047 | (evaluate_subexp_standard): Use it. |
| 3048 | |
| 3049 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3050 | |
| 3051 | * eval.c (eval_op_alignof): New function. |
| 3052 | (evaluate_subexp_standard): Use it. |
| 3053 | |
| 3054 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3055 | |
| 3056 | * eval.c (eval_op_ind): New function. |
| 3057 | (evaluate_subexp_standard): Use it. |
| 3058 | |
| 3059 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3060 | |
| 3061 | * eval.c (eval_op_lognot): New function. |
| 3062 | (evaluate_subexp_standard): Use it. |
| 3063 | |
| 3064 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3065 | |
| 3066 | * eval.c (eval_op_complement): New function. |
| 3067 | (evaluate_subexp_standard): Use it. |
| 3068 | |
| 3069 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3070 | |
| 3071 | * eval.c (eval_op_neg): New function. |
| 3072 | (evaluate_subexp_standard): Use it. |
| 3073 | |
| 3074 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3075 | |
| 3076 | * eval.c (eval_op_plus): New function. |
| 3077 | (evaluate_subexp_standard): Use it. |
| 3078 | |
| 3079 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3080 | |
| 3081 | * eval.c (eval_op_repeat): New function. |
| 3082 | (evaluate_subexp_standard): Use it. |
| 3083 | |
| 3084 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3085 | |
| 3086 | * eval.c (eval_op_leq): New function. |
| 3087 | (evaluate_subexp_standard): Use it. |
| 3088 | |
| 3089 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3090 | |
| 3091 | * eval.c (eval_op_geq): New function. |
| 3092 | (evaluate_subexp_standard): Use it. |
| 3093 | |
| 3094 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3095 | |
| 3096 | * eval.c (eval_op_gtr): New function. |
| 3097 | (evaluate_subexp_standard): Use it. |
| 3098 | |
| 3099 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3100 | |
| 3101 | * eval.c (eval_op_less): New function. |
| 3102 | (evaluate_subexp_standard): Use it. |
| 3103 | |
| 3104 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3105 | |
| 3106 | * eval.c (eval_op_notequal): New function. |
| 3107 | (evaluate_subexp_standard): Use it. |
| 3108 | |
| 3109 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3110 | |
| 3111 | * eval.c (eval_op_equal): New function. |
| 3112 | (evaluate_subexp_standard): Use it. |
| 3113 | |
| 3114 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3115 | |
| 3116 | * eval.c (eval_op_subscript): New function. |
| 3117 | (evaluate_subexp_standard): Use it. |
| 3118 | |
| 3119 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3120 | |
| 3121 | * eval.c (eval_op_binary): New function. |
| 3122 | (evaluate_subexp_standard): Use it. |
| 3123 | |
| 3124 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3125 | |
| 3126 | * eval.c (eval_op_sub): New function. |
| 3127 | (evaluate_subexp_standard): Use it. |
| 3128 | |
| 3129 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3130 | |
| 3131 | * eval.c (eval_op_add): New function. |
| 3132 | (evaluate_subexp_standard): Use it. |
| 3133 | |
| 3134 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3135 | |
| 3136 | * eval.c (eval_op_member): New function. |
| 3137 | (evaluate_subexp_standard): Use it. |
| 3138 | |
| 3139 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3140 | |
| 3141 | * eval.c (eval_op_structop_ptr): New function. |
| 3142 | (evaluate_subexp_standard): Use it. |
| 3143 | |
| 3144 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3145 | |
| 3146 | * eval.c (eval_op_structop_struct): New function. |
| 3147 | (evaluate_subexp_standard): Use it. |
| 3148 | |
| 3149 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3150 | |
| 3151 | * eval.c (eval_op_ternop): New function. |
| 3152 | (evaluate_subexp_standard): Use it. |
| 3153 | |
| 3154 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3155 | |
| 3156 | * eval.c (eval_op_concat): New function. |
| 3157 | (evaluate_subexp_standard): Use it. |
| 3158 | |
| 3159 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3160 | |
| 3161 | * eval.c (eval_op_objc_selector): New function. |
| 3162 | (evaluate_subexp_standard): Use it. |
| 3163 | |
| 3164 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3165 | |
| 3166 | * eval.c (eval_op_string): New function. |
| 3167 | (evaluate_subexp_standard): Use it. |
| 3168 | |
| 3169 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3170 | |
| 3171 | * eval.c (eval_op_register): New function. |
| 3172 | (evaluate_subexp_standard): Use it. |
| 3173 | |
| 3174 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3175 | |
| 3176 | * eval.c (eval_op_func_static_var): New function. |
| 3177 | (evaluate_subexp_standard): Use it. |
| 3178 | |
| 3179 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3180 | |
| 3181 | * eval.c (eval_op_var_msym_value): New function. |
| 3182 | (evaluate_subexp_standard): Use it. |
| 3183 | |
| 3184 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3185 | |
| 3186 | * eval.c (eval_op_var_entry_value): New function. |
| 3187 | (evaluate_subexp_standard): Use it. |
| 3188 | |
| 3189 | 2021-03-08 Tom Tromey <tom@tromey.com> |
| 3190 | |
| 3191 | * eval.c (eval_op_scope): New function. |
| 3192 | (evaluate_subexp_standard): Use it. |
| 3193 | |
| 3194 | 2021-03-06 Chernov Sergey <klen_s@mail.ru> |
| 3195 | |
| 3196 | PR gdb/27528: |
| 3197 | * ada-lang.c (ada_fold_name): Use gdb::to_string. |
| 3198 | |
| 3199 | 2021-03-06 Tom Tromey <tom@tromey.com> |
| 3200 | |
| 3201 | * dwarf2/sect-names.h (dwarf2_elf_names): Declare. |
| 3202 | * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h. |
| 3203 | * dwarf2/read.c (dwarf2_elf_names): No longer static. |
| 3204 | (locate_dwz_sections, dwz_search_other_debugdirs) |
| 3205 | (dwarf2_get_dwz_file): Move to dwz.c. |
| 3206 | * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from |
| 3207 | read.h. |
| 3208 | * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs) |
| 3209 | (dwarf2_get_dwz_file): Move from read.c. |
| 3210 | |
| 3211 | 2021-03-06 Tom Tromey <tom@tromey.com> |
| 3212 | |
| 3213 | * debuginfod-support.h: Include scoped_fd.h. |
| 3214 | |
| 3215 | 2021-03-06 Tom Tromey <tom@tromey.com> |
| 3216 | |
| 3217 | * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter. |
| 3218 | * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter. |
| 3219 | (get_abbrev_section_for_cu, read_attribute_value) |
| 3220 | (get_debug_line_section): Update. |
| 3221 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Update. |
| 3222 | |
| 3223 | 2021-03-06 Tom Tromey <tom@tromey.com> |
| 3224 | |
| 3225 | * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New |
| 3226 | method. |
| 3227 | * dwarf2/read.c (section_is_p): Remove. |
| 3228 | (dwarf2_per_bfd::locate_sections) |
| 3229 | (dwarf2_per_bfd::locate_sections, locate_dwz_sections) |
| 3230 | (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections) |
| 3231 | (dwarf2_locate_common_dwp_sections) |
| 3232 | (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections): |
| 3233 | Update. |
| 3234 | |
| 3235 | 2021-03-06 Tom Tromey <tom@tromey.com> |
| 3236 | |
| 3237 | * xcoffread.c: Include sect-names.h. |
| 3238 | * symfile.h (struct dwarf2_section_names, struct |
| 3239 | dwarf2_debug_sections): Move to dwarf2/sect-names.h. |
| 3240 | * dwarf2/sect-names.h: New file, from symfile.h. |
| 3241 | * dwarf2/read.c: Include sect-names.h. |
| 3242 | |
| 3243 | 2021-03-06 Tom Tromey <tom@tromey.com> |
| 3244 | |
| 3245 | * dwarf2/read.c (read_attribute): Make 'abbrev' const. |
| 3246 | * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove. |
| 3247 | (abbrev_table::read): Update. |
| 3248 | * dwarf2/abbrev.h (struct attr_abbrev): Move earlier. |
| 3249 | (struct abbrev_info): Reformat. |
| 3250 | <attrs>: Now an array. |
| 3251 | (struct abbrev_table) <alloc_abbrev>: Remove. |
| 3252 | |
| 3253 | 2021-03-06 Weimin Pan <weimin.pan@oracle.com> |
| 3254 | |
| 3255 | * ctfread.c (ctf_psymtab_add_enums): New function. |
| 3256 | (ctf_psymtab_type_cb): call ctf_psymtab_add_enums. |
| 3257 | |
| 3258 | 2021-03-06 Weimin Pan <weimin.pan@oracle.com> |
| 3259 | |
| 3260 | * ctfread.c (read_func_kind_type): Set up function arguments. |
| 3261 | |
| 3262 | 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com> |
| 3263 | Andrew Burgess <andrew.burgess@embecosm.com> |
| 3264 | |
| 3265 | * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h' |
| 3266 | includes. |
| 3267 | (riscv_csrset): New static global. |
| 3268 | (riscv_update_csrmap): New function. |
| 3269 | (riscv_iterate_over_regset_sections): Process CSRs. |
| 3270 | |
| 3271 | 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3272 | |
| 3273 | * riscv-tdep.c (riscv_feature_name_csr): Define. |
| 3274 | (riscv_feature_name_cpu): Define. |
| 3275 | (riscv_feature_name_fpu): Define. |
| 3276 | (riscv_feature_name_virtual): Define. |
| 3277 | (riscv_xreg_feature): Use riscv_feature_name_cpu. |
| 3278 | (riscv_freg_feature): Use riscv_feature_name_fpu. |
| 3279 | (riscv_virtual_feature): Use riscv_feature_name_virtual. |
| 3280 | (riscv_csr_feature): Use riscv_feature_name_csr. |
| 3281 | * riscv-tdep.h (riscv_feature_name_csr): Declare. |
| 3282 | |
| 3283 | 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3284 | Craig Blackmore <craig.blackmore@embecosm.com> |
| 3285 | |
| 3286 | * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o. |
| 3287 | (ALLDEPFILES): Add riscv-none-tdep.c. |
| 3288 | * configure: Regenerate. |
| 3289 | * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF |
| 3290 | support. |
| 3291 | * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c. |
| 3292 | * elf-none-tdep.c: New file. |
| 3293 | * elf-none-tdep.h: New file. |
| 3294 | * riscv-none-tdep.c: New file. |
| 3295 | |
| 3296 | 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com> |
| 3297 | Andrew Burgess <andrew.burgess@embecosm.com> |
| 3298 | |
| 3299 | * corelow.c: Add 'xml-tdesc.h' include. |
| 3300 | (core_target::read_description): Load the target description from |
| 3301 | the core file when possible. |
| 3302 | * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description |
| 3303 | note. |
| 3304 | * gcore-elf.c: Add 'gdbsupport/tdesc.h' include. |
| 3305 | (gcore_elf_make_tdesc_note): New function. |
| 3306 | * gcore-elf.h (gcore_elf_make_tdesc_note): Declare. |
| 3307 | * linux-tdep.c (linux_make_corefile_notes): Add target description |
| 3308 | note. |
| 3309 | |
| 3310 | 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3311 | |
| 3312 | * Makefile.in (SFILES): Add gcore-elf.c. |
| 3313 | (HFILES_NO_SRCDIR): Add gcore-elf.h |
| 3314 | * configure: Regenerate. |
| 3315 | * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF |
| 3316 | support. |
| 3317 | * fbsd-tdep.c: Add 'gcore-elf.h' include. |
| 3318 | (struct fbsd_collect_regset_section_cb_data): Delete. |
| 3319 | (fbsd_collect_regset_section_cb): Delete. |
| 3320 | (fbsd_collect_thread_registers): Delete. |
| 3321 | (struct fbsd_corefile_thread_data): Delete. |
| 3322 | (fbsd_corefile_thread): Delete. |
| 3323 | (fbsd_make_corefile_notes): Call |
| 3324 | gcore_elf_build_thread_register_notes instead of the now deleted |
| 3325 | FreeBSD code. |
| 3326 | * gcore-elf.c: New file, the content was moved here from |
| 3327 | linux-tdep.c, functions were renamed and given minor cleanup. |
| 3328 | * gcore-elf.h: New file. |
| 3329 | * gcore.c (gcore_find_signalled_thread): Moved here from |
| 3330 | linux-tdep.c and given a new name. Minor cleanups. |
| 3331 | * gcore.h (gcore_find_signalled_thread): Declare. |
| 3332 | * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes. |
| 3333 | (struct linux_collect_regset_section_cb_data): Delete. |
| 3334 | (linux_collect_regset_section_cb): Delete. |
| 3335 | (linux_collect_thread_registers): Delete. |
| 3336 | (linux_corefile_thread): Call |
| 3337 | gcore_elf_build_thread_register_notes. |
| 3338 | (find_signalled_thread): Delete. |
| 3339 | (linux_make_corefile_notes): Call gcore_find_signalled_thread. |
| 3340 | |
| 3341 | 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca> |
| 3342 | |
| 3343 | PR gdb/27147 |
| 3344 | * sparc-nat.h (sparc_fetch_inferior_registers): Add |
| 3345 | process_stratum_target parameter, |
| 3346 | sparc_store_inferior_registers): update callers. |
| 3347 | * sparc-nat.c (sparc_fetch_inferior_registers, |
| 3348 | sparc_store_inferior_registers): Add process_stratum_target |
| 3349 | parameter. Switch current thread before calling |
| 3350 | sparc_supply_gregset / sparc_collect_rwindow. |
| 3351 | (sparc_store_inferior_registers): Likewise. |
| 3352 | * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion. |
| 3353 | (sparc32obsd_collect_uthread): Likewise. |
| 3354 | * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): |
| 3355 | Add assertion. |
| 3356 | * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread, |
| 3357 | sparc64obsd_supply_uthread): Add assertion. |
| 3358 | |
| 3359 | 2021-03-04 Tom Tromey <tromey@adacore.com> |
| 3360 | |
| 3361 | * ada-lang.c (struct match_data) <found_sym>: Now bool. |
| 3362 | (aux_add_nonlocal_symbols): Update. |
| 3363 | (ada_add_block_symbols): Change "found_sym" to bool. |
| 3364 | |
| 3365 | 2021-03-03 Tom Tromey <tromey@adacore.com> |
| 3366 | |
| 3367 | * ada-lang.c (ada_resolve_function): Update comment. |
| 3368 | (is_nonfunction, add_symbols_from_enclosing_procs) |
| 3369 | (remove_extra_symbols): Likewise. |
| 3370 | (struct match_data): Add constructor, initializers. |
| 3371 | (add_nonlocal_symbols): Remove memset. |
| 3372 | (aux_add_nonlocal_symbols): Update comment. |
| 3373 | (ada_add_block_renamings, add_nonlocal_symbols) |
| 3374 | (ada_add_all_symbols): Likewise. |
| 3375 | * ada-exp.y (write_var_or_type): Clean up trailing whitespace. |
| 3376 | |
| 3377 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
| 3378 | |
| 3379 | * ada-lang.c (cast_from_gnat_encoded_fixed_point_type) |
| 3380 | (cast_to_gnat_encoded_fixed_point_type): Remove. |
| 3381 | (ada_value_cast, ada_evaluate_subexp): Update. |
| 3382 | (gnat_encoded_fixed_point_type_info) |
| 3383 | (ada_is_gnat_encoded_fixed_point_type) |
| 3384 | (gnat_encoded_fixed_point_delta) |
| 3385 | (gnat_encoded_fixed_point_scaling_factor): Remove. |
| 3386 | * ada-lang.h (ada_is_gnat_encoded_fixed_point_type) |
| 3387 | (gnat_encoded_fixed_point_delta) |
| 3388 | (gnat_encoded_fixed_point_scaling_factor): Don't declare. |
| 3389 | * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove. |
| 3390 | (ada_print_type): Update. |
| 3391 | * ada-valprint.c (ada_value_print_num): Update. |
| 3392 | * dwarf2/read.c (ada_get_gnat_encoded_number) |
| 3393 | (ada_get_gnat_encoded_ratio): New functions. |
| 3394 | (finish_fixed_point_type): Use them. Add parameters. |
| 3395 | (GNAT_FIXED_POINT_SUFFIX): New define. |
| 3396 | (gnat_encoded_fixed_point_type_info): New function. |
| 3397 | (read_base_type): Handle gnat encodings. |
| 3398 | |
| 3399 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
| 3400 | |
| 3401 | * ada-lang.c (ada_fold_name, ada_variant_discrim_name) |
| 3402 | (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use |
| 3403 | std::string. |
| 3404 | (GROW_VECT): Remove. |
| 3405 | (grow_vect): Remove. |
| 3406 | |
| 3407 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
| 3408 | |
| 3409 | * ada-lang.h (ada_lookup_symbol_list): Return a vector. |
| 3410 | * ada-lang.c (resolve_subexp): Update. |
| 3411 | (ada_resolve_function): Accept a vector. |
| 3412 | (is_nonfunction, add_defn_to_vec) |
| 3413 | (add_symbols_from_enclosing_procs): Likewise. |
| 3414 | (num_defns_collected, defns_collected): Remove. |
| 3415 | (remove_extra_symbols): Return a vector. |
| 3416 | (remove_irrelevant_renamings): Return void. |
| 3417 | (ada_add_local_symbols): Accept a vector. |
| 3418 | (struct match_data) <obstackp>: Remove. |
| 3419 | <resultp>: New member. |
| 3420 | (aux_add_nonlocal_symbols): Update. |
| 3421 | (ada_add_block_renamings, add_nonlocal_symbols) |
| 3422 | (ada_add_all_symbols): Accept a vector. |
| 3423 | (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a |
| 3424 | vector. |
| 3425 | (ada_lookup_symbol): Update. |
| 3426 | (ada_add_block_symbols): Accept a vector. |
| 3427 | (get_var_value, iterate_over_symbols): Update. |
| 3428 | * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc): |
| 3429 | Update. |
| 3430 | |
| 3431 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
| 3432 | |
| 3433 | * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom. |
| 3434 | |
| 3435 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
| 3436 | |
| 3437 | * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an |
| 3438 | auto_obstack. |
| 3439 | <root>: Initialize. |
| 3440 | (ada_pspace_data): Remove destructor. |
| 3441 | <sym_cache>: Now a unique_ptr. |
| 3442 | (ada_init_symbol_cache, ada_free_symbol_cache): Remove. |
| 3443 | (ada_get_symbol_cache): Use 'new'. |
| 3444 | (ada_clear_symbol_cache): Rewrite. |
| 3445 | |
| 3446 | 2021-03-02 Tom Tromey <tromey@adacore.com> |
| 3447 | |
| 3448 | * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf |
| 3449 | is null. |
| 3450 | |
| 3451 | 2021-02-27 Lancelot Six <lsix@lancelotsix.com> |
| 3452 | |
| 3453 | PR gdb/27393 |
| 3454 | * source.c (add_path): Skip empty dirnames. |
| 3455 | |
| 3456 | 2021-02-25 Kevin Buettner <kevinb@redhat.com> |
| 3457 | |
| 3458 | * nat/aarch64-sve-linux-ptrace.h: Add comment regarding |
| 3459 | include order for <sys/ptrace.h> and <asm/ptrace.h>. |
| 3460 | |
| 3461 | 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
| 3462 | |
| 3463 | PR gdb/26861 |
| 3464 | * target.c (target_mourn_inferior): Only compare pids in |
| 3465 | target_mourn_inferior. |
| 3466 | |
| 3467 | 2021-02-25 Jan Matyas <jmatyas@codasip.com> |
| 3468 | |
| 3469 | PR gdb/26819 |
| 3470 | * remote.c (remote_target::start_remote): Ensure the single |
| 3471 | thread, automatically added for remote targets without the |
| 3472 | concept of threading, is initially in set to the "resumed" |
| 3473 | state. |
| 3474 | * remote.c (remote_target::add_current_inferior_and_thread): |
| 3475 | Add return value - return the main thread. |
| 3476 | |
| 3477 | 2021-02-25 Jan Vrany <jan.vrany@labware.com> |
| 3478 | |
| 3479 | * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output. |
| 3480 | (mi_tsv_created): Likewise. |
| 3481 | (mi_tsv_deleted): Likewise. |
| 3482 | |
| 3483 | 2021-02-25 Tom de Vries <tdevries@suse.de> |
| 3484 | |
| 3485 | PR symtab/27354 |
| 3486 | * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as |
| 3487 | section_kind for &dwo_file->sections.info. |
| 3488 | |
| 3489 | 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3490 | |
| 3491 | PR fortran/26155 |
| 3492 | * f-lang.c (fortran_argument_convert): Delete declaration. |
| 3493 | (fortran_prepare_argument): New function. |
| 3494 | (evaluate_subexp_f): Move logic to new function |
| 3495 | fortran_prepare_argument. |
| 3496 | |
| 3497 | 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3498 | |
| 3499 | * f-exp.y (f77_keywords): Add 'associated'. |
| 3500 | * f-lang.c (fortran_associated): New function. |
| 3501 | (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED. |
| 3502 | (operator_length_f): Likewise. |
| 3503 | (print_unop_or_binop_subexp_f): New function. |
| 3504 | (print_subexp_f): Make use of print_unop_or_binop_subexp_f for |
| 3505 | FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND. |
| 3506 | (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED. |
| 3507 | (operator_check_f): Likewise. |
| 3508 | * std-operator.def: Add FORTRAN_ASSOCIATED. |
| 3509 | |
| 3510 | 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3511 | |
| 3512 | * f-exp.y (fortran_operators): Add ".xor.". |
| 3513 | |
| 3514 | 2021-02-24 Tom de Vries <tdevries@suse.de> |
| 3515 | |
| 3516 | PR symtab/27336 |
| 3517 | * dwarf2/attribute.c (attribute::form_is_signed): New function |
| 3518 | factored out of ... |
| 3519 | * dwarf2/attribute.h (attribute::as_signed): ... here. |
| 3520 | (attribute::is_nonnegative, attribute::as_nonnegative): New function. |
| 3521 | (attribute::form_is_signed): Declare. |
| 3522 | * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative |
| 3523 | for DW_AT_decl_file. |
| 3524 | |
| 3525 | 2021-02-24 Kevin Buettner <kevinb@redhat.com> |
| 3526 | |
| 3527 | * nat/aarch64-linux-hw-point.c: Add comment regarding include |
| 3528 | order for <sys/ptrace.h> and <asm/ptrace.h>. |
| 3529 | |
| 3530 | 2021-02-24 Kevin Buettner <kevinb@redhat.com> |
| 3531 | |
| 3532 | * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after |
| 3533 | <sys/ptrace.h>. |
| 3534 | |
| 3535 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3536 | |
| 3537 | * exec.c (set_section_command): Move variable declarations into |
| 3538 | the function body, and use std::string instead of a fixed size |
| 3539 | buffer. |
| 3540 | |
| 3541 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3542 | |
| 3543 | * exec.c (exec_target::get_section_table): Delete member function. |
| 3544 | (section_table_read_available_memory): Use current_top_target, not |
| 3545 | just the exec_ops target. |
| 3546 | * target-delegates.c: Regenerate. |
| 3547 | * target.c (default_get_section_table): New function. |
| 3548 | * target.h (target_ops::get_section_table): Change default |
| 3549 | behaviour to call default_get_section_table. |
| 3550 | (default_get_section_table): Declare. |
| 3551 | |
| 3552 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3553 | |
| 3554 | * exec.c (exec_target::close): Call new clear_target_sections |
| 3555 | function. |
| 3556 | (program_space::add_target_sections): Update name of member |
| 3557 | variable. |
| 3558 | (program_space::add_target_sections): Update name of member |
| 3559 | variable. |
| 3560 | (program_space::remove_target_sections): Likewise. |
| 3561 | (exec_one_fork): Use new target_sections member function. |
| 3562 | (exec_target::get_section_table): Likewise. |
| 3563 | (exec_target::files_info): Likewise. |
| 3564 | (set_section_command): Likewise. |
| 3565 | (exec_set_section_address): Likewise. |
| 3566 | (exec_target::has_memory): Use new target_sections member |
| 3567 | function. |
| 3568 | * progspace.h (program_space::clear_target_sections): New member |
| 3569 | function. |
| 3570 | (program_space::target_sections): Rename member variable to |
| 3571 | m_target_sections, replace with a new member function. |
| 3572 | (program_space::m_target_sections): New member variable. |
| 3573 | * solib-dsbt.c (scan_dyntag): Use new member function. |
| 3574 | * solib-svr4.c (scan_dyntag): Likewise. |
| 3575 | |
| 3576 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3577 | |
| 3578 | * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make |
| 3579 | return type const. |
| 3580 | * gdb/exec.c (struct exec_target) <get_section_table>: Likewise. |
| 3581 | (section_table_read_available_memory): Make local const. |
| 3582 | (exec_target::xfer_partial): Make local const. |
| 3583 | (print_section_info): Make parameter const. |
| 3584 | * gdb/exec.h (print_section_info): Likewise. |
| 3585 | * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local |
| 3586 | const. |
| 3587 | * gdb/record-btrace.c (record_btrace_target::xfer_partial): |
| 3588 | Likewise. |
| 3589 | * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial): |
| 3590 | Likewise. |
| 3591 | * gdb/s390-tdep.c (s390_load): Likewise. |
| 3592 | * gdb/solib-dsbt.c (scan_dyntag): Likewise. |
| 3593 | * gdb/solib-svr4.c (scan_dyntag): Likewise. |
| 3594 | * gdb/target-debug.h (target_debug_print_target_section_table_p): |
| 3595 | Rename to... |
| 3596 | (target_debug_print_const_target_section_table_p): ...this. |
| 3597 | * gdb/target-delegates.c: Regenerate. |
| 3598 | * gdb/target.c (target_get_section_table): Make return type const. |
| 3599 | (target_section_by_addr): Likewise. Also make some locals const. |
| 3600 | (memory_xfer_partial_1): Make some locals const. |
| 3601 | * gdb/target.h (struct target_ops) <get_section_table>: Make |
| 3602 | return type const. |
| 3603 | (target_section_by_addr): Likewise. |
| 3604 | (target_get_section_table): Likewise. |
| 3605 | |
| 3606 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3607 | |
| 3608 | * NEWS: Mention new 'maint info target-sections' command. |
| 3609 | * maint.c (maintenance_info_target_sections): New function. |
| 3610 | (_initialize_maint_cmds): Register new command. |
| 3611 | |
| 3612 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3613 | |
| 3614 | * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to... |
| 3615 | (riscv_features_from_bfd): ...this. Change parameter type to |
| 3616 | 'bfd*', and update as required. |
| 3617 | (riscv_find_default_target_description): Update call to |
| 3618 | riscv_features_from_bfd. Select a default xlen based on |
| 3619 | info.bfd_arch_info. |
| 3620 | (riscv_gdbarch_init): Update call to riscv_features_from_bfd. |
| 3621 | |
| 3622 | 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3623 | |
| 3624 | * eval.c (evaluate_subexp_standard): Call value_ind for points to |
| 3625 | dynamic types in UNOP_IND. |
| 3626 | |
| 3627 | 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca> |
| 3628 | |
| 3629 | PR gdb/26828 |
| 3630 | * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>: |
| 3631 | Instantiate queue. |
| 3632 | (~dwarf2_queue_guard): Clear queue. |
| 3633 | (queue_comp_unit): Assert that queue is |
| 3634 | instantiated. |
| 3635 | (process_queue): Adjust. |
| 3636 | * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional. |
| 3637 | |
| 3638 | 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca> |
| 3639 | |
| 3640 | PR gdb/26828 |
| 3641 | * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded |
| 3642 | to decide whether or not to enqueue it for expansion. |
| 3643 | (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs |
| 3644 | after calling maybe_queue_comp_unit. |
| 3645 | |
| 3646 | 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca> |
| 3647 | |
| 3648 | * linux-nat.c (linux_nat_filter_event): Return void. |
| 3649 | |
| 3650 | 2021-02-22 Tom Tromey <tromey@adacore.com> |
| 3651 | |
| 3652 | * solib-svr4.c (enable_break): Update. |
| 3653 | * bfd-target.c (class target_bfd) <target_bfd>: Change parameter |
| 3654 | type. |
| 3655 | (target_bfd_reopen): Change parameter type. |
| 3656 | * bfd-target.h (target_bfd_reopen): Change parameter type. |
| 3657 | |
| 3658 | 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca> |
| 3659 | |
| 3660 | * thread.c (add_thread_silent): Add assert. |
| 3661 | (find_thread_ptid): Add assert. |
| 3662 | |
| 3663 | 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca> |
| 3664 | |
| 3665 | PR gdb/27435 |
| 3666 | * inf-ptrace.c (struct target_unpusher): Move to target.h. |
| 3667 | (target_unpush_up): Likewise. |
| 3668 | * procfs.c (procfs_target::attach): Push target early. Use |
| 3669 | target_unpush_up to unpush target in case of error. |
| 3670 | * target.h (struct target_unpusher): Move here. |
| 3671 | (target_unpush_up): Likewise. |
| 3672 | |
| 3673 | 2021-02-19 Kevin Buettner <kevinb@redhat.com> |
| 3674 | |
| 3675 | * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h" |
| 3676 | (which in turn includes <gnulib/config.h>) before include |
| 3677 | of <signal.h>. |
| 3678 | |
| 3679 | 2021-02-19 Nelson Chu <nelson.chu@sifive.com> |
| 3680 | |
| 3681 | PR 27158 |
| 3682 | * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros. |
| 3683 | (decode_j_type_insn): Likewise. |
| 3684 | (decode_cj_type_insn): Likewise. |
| 3685 | (decode_b_type_insn): Likewise. |
| 3686 | (decode): Likewise. |
| 3687 | |
| 3688 | 2021-02-18 Tom Tromey <tom@tromey.com> |
| 3689 | |
| 3690 | * expression.h (struct expression) <evaluate>: Declare method. |
| 3691 | * eval.c (evaluate_subexp): Simplify. |
| 3692 | (expression::evaluate): New method. |
| 3693 | (evaluate_expression, evaluate_type): Use expression::evaluate. |
| 3694 | |
| 3695 | 2021-02-17 Kevin Buettner <kevinb@redhat.com> |
| 3696 | |
| 3697 | * ada-lang.c (ada_fold_name): Check for non-empty string prior |
| 3698 | to accessing it. |
| 3699 | (ada_lookup_name_info): Likewise. |
| 3700 | |
| 3701 | 2021-02-13 Mike Frysinger <vapier@gentoo.org> |
| 3702 | |
| 3703 | * aclocal.m4: Regenerate. |
| 3704 | |
| 3705 | 2021-02-12 Tom de Vries <tdevries@suse.de> |
| 3706 | |
| 3707 | PR threads/26228 |
| 3708 | * linux-nat.c (lin_thread_get_thread_signals): Remove. |
| 3709 | (lin_thread_signals): New static var. |
| 3710 | (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal): |
| 3711 | New function. |
| 3712 | * linux-nat.h (lin_thread_get_thread_signals): Remove. |
| 3713 | (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal): |
| 3714 | Declare. |
| 3715 | * linux-thread-db.c (check_thread_signals): Use |
| 3716 | lin_thread_get_thread_signal_num and lin_thread_get_thread_signal. |
| 3717 | |
| 3718 | 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3719 | |
| 3720 | * f-exp.y (f77_keywords): Add allocated. |
| 3721 | * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED. |
| 3722 | (operator_length_f): Likewise. |
| 3723 | (print_subexp_f): Likewise. |
| 3724 | (dump_subexp_body_f): Likewise. |
| 3725 | (operator_check_f): Likewise. |
| 3726 | * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator. |
| 3727 | |
| 3728 | 2021-02-11 Tom de Vries <tdevries@suse.de> |
| 3729 | |
| 3730 | PR symtab/27353 |
| 3731 | * dwarf2/attribute.c (attribute::form_requires_reprocessing): |
| 3732 | Return true for DW_FORM_strx. |
| 3733 | |
| 3734 | 2021-02-11 Tom Tromey <tromey@adacore.com> |
| 3735 | |
| 3736 | PR gdb/27383: |
| 3737 | * parse.c (write_exp_symbol_reference): Write sym.block. |
| 3738 | |
| 3739 | 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3740 | |
| 3741 | * NEWS: Mention changes to 'maint info sections'. |
| 3742 | * maint.c (match_substring): Return a bool, fix whitespace issue. |
| 3743 | (struct single_bfd_flag_info): New struct. |
| 3744 | (bfd_flag_info): New static global. |
| 3745 | (match_bfd_flags): Return a bool, use bfd_flag_info. |
| 3746 | (print_bfd_flags): Use bfd_flag_info. |
| 3747 | (maint_print_section_info): Delete trailing whitespace. |
| 3748 | (struct maint_info_sections_opts): New struct. |
| 3749 | (maint_info_sections_option_defs): New static global. |
| 3750 | (maint_info_sections_completer): New function. |
| 3751 | (maintenance_info_sections): Use option parsing mechanism. |
| 3752 | (_initialize_maint_cmds): Update command help text for 'maint info |
| 3753 | sections' and register a command completer. |
| 3754 | |
| 3755 | 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3756 | |
| 3757 | * maint.c (print_bfd_section_info_maybe_relocated): Delete, |
| 3758 | functionality merged into... |
| 3759 | (maint_print_all_sections): ...this new function. |
| 3760 | (maintenance_info_sections): Make use of maint_print_all_sections, |
| 3761 | allow all objects to be printed even where there's no executable. |
| 3762 | |
| 3763 | 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3764 | |
| 3765 | * breakpoint.c (resolve_sal_pc): Make use of |
| 3766 | bound_minimal_symbol::obj_section. |
| 3767 | * maint.c (maintenance_translate_address): Likewise. |
| 3768 | * minsyms.c (minimal_symbol_upper_bound): Likewise. |
| 3769 | * minsyms.h (struct bound_minimal_symbol) <obj_section>: New |
| 3770 | member function. |
| 3771 | * printcmd.c (info_address_command): Make use of |
| 3772 | bound_minimal_symbol::obj_section. |
| 3773 | |
| 3774 | 2021-02-11 Alan Modra <amodra@gmail.com> |
| 3775 | |
| 3776 | * arm-symbian-tdep.c: Delete. |
| 3777 | * NEWS: Mention arm-symbian removal. |
| 3778 | * Makefile.in: Remove arm-symbian-tdep entries. |
| 3779 | * configure.tgt: Remove arm*-*-symbianelf*. |
| 3780 | * doc/gdb.texinfo: Remove mention of SymbianOS. |
| 3781 | * osabi.c (gdb_osabi_names): Remove "Symbian". |
| 3782 | * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN. |
| 3783 | * testsuite/gdb.base/ending-run.exp: Remove E32Main handling. |
| 3784 | * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf* |
| 3785 | handling. |
| 3786 | * testsuite/gdb.base/dup-sect.exp: Likewise. |
| 3787 | * testsuite/gdb.base/long_long.exp: Likewise. |
| 3788 | * testsuite/gdb.base/solib-weak.exp: Likewise. |
| 3789 | * testsuite/gdb.guile/scm-section-script.exp: Likewise. |
| 3790 | * testsuite/gdb.python/py-section-script.exp: Likewise. |
| 3791 | * testsuite/lib/dwarf.exp: Likewise. |
| 3792 | * testsuite/lib/gdb.exp: Likewise. |
| 3793 | |
| 3794 | 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3795 | |
| 3796 | * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token. |
| 3797 | (exp): New pattern using UNOP_OR_BINOP_INTRINSIC. |
| 3798 | (one_or_two_args): New pattern. |
| 3799 | (f77_keywords): Add lbound and ubound. |
| 3800 | * f-lang.c (fortran_bounds_all_dims): New function. |
| 3801 | (fortran_bounds_for_dimension): New function. |
| 3802 | (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND. |
| 3803 | (operator_length_f): Likewise. |
| 3804 | (print_subexp_f): Likewise. |
| 3805 | (dump_subexp_body_f): Likewise. |
| 3806 | (operator_check_f): Likewise. |
| 3807 | * std-operator.def (FORTRAN_LBOUND): Define. |
| 3808 | (FORTRAN_UBOUND): Define. |
| 3809 | |
| 3810 | 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3811 | |
| 3812 | * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index |
| 3813 | and set_section_index member functions where appropriate. |
| 3814 | * coffread.c (coff_symtab_read): Likewise. |
| 3815 | (process_coff_symbol): Likewise. |
| 3816 | * ctfread.c (set_symbol_address): Likewise. |
| 3817 | * dwarf2/read.c (add_partial_symbol): Likewise. |
| 3818 | (var_decode_location): Likewise. |
| 3819 | * language.c: Likewise. |
| 3820 | * minsyms.c (minimal_symbol_reader::record_full): Likewise. |
| 3821 | (compact_minimal_symbols): Likewise. |
| 3822 | (minimal_symbol_upper_bound): Likewise. |
| 3823 | * objfiles.c (relocate_one_symbol): Likewise. |
| 3824 | * psympriv.h (partial_symbol::obj_section): Likewise. |
| 3825 | (partial_symbol::address): Likewise. |
| 3826 | * psymtab.c (partial_symtab::add_psymbol): Likewise. |
| 3827 | * stabsread.c (scan_file_globals): Likewise. |
| 3828 | * symmisc.c (dump_msymbols): Likewise. |
| 3829 | * symtab.c (general_symbol_info::obj_section): Likewise. |
| 3830 | (fixup_section): Likewise. |
| 3831 | (get_msymbol_address): Likewise. |
| 3832 | * symtab.h (general_symbol_info::section): Rename to... |
| 3833 | (general_symbol_info::m_section): ...this. |
| 3834 | (general_symbol_info::set_section_index): New member function. |
| 3835 | (general_symbol_info::section_index): Likewise. |
| 3836 | (SYMBOL_SECTION): Delete. |
| 3837 | (MSYMBOL_VALUE_ADDRESS): Make use of section_index and |
| 3838 | set_section_index member functions where appropriate. |
| 3839 | (MSYMBOL_SECTION): Delete. |
| 3840 | (symbol::symbol): Update to initialize 'm_section'. |
| 3841 | * xcoffread.c (read_xcoff_symtab): Make use of set_section_index. |
| 3842 | (process_xcoff_symbol): Likewise. |
| 3843 | |
| 3844 | 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3845 | |
| 3846 | * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and |
| 3847 | MSYMBOL_OBJ_SECTION. |
| 3848 | * findvar.c (language_defn::read_var_value): Likewise. |
| 3849 | * infcmd.c (jump_command): Likewise. |
| 3850 | * linespec.c (minsym_found): Likewise. |
| 3851 | * maint.c (maintenance_translate_address): Likewise. |
| 3852 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise. |
| 3853 | (minimal_symbol_upper_bound): Likewise. |
| 3854 | * parse.c (find_minsym_type_and_address): Likewise. |
| 3855 | (operator_check_standard): Likewise. |
| 3856 | * printcmd.c (info_address_command): Likewise. |
| 3857 | * symmisc.c (dump_msymbols): Likewise. |
| 3858 | (print_symbol): Likewise. |
| 3859 | * symtab.c (general_symbol_info::obj_section): Define new |
| 3860 | function. |
| 3861 | (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION. |
| 3862 | (find_pc_sect_compunit_symtab): Likewise. |
| 3863 | (find_function_start_sal): Likewise. |
| 3864 | (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and |
| 3865 | MSYMBOL_OBJ_SECTION. |
| 3866 | * symtab.h (struct general_symbol_info) <obj_section>: Declare new |
| 3867 | function. |
| 3868 | (SYMBOL_OBJ_SECTION): Delete. |
| 3869 | (MSYMBOL_OBJ_SECTION): Delete. |
| 3870 | |
| 3871 | 2021-02-09 Tom Tromey <tom@tromey.com> |
| 3872 | |
| 3873 | * stap-probe.c (stap_parse_argument_conditionally): Fix typo. |
| 3874 | |
| 3875 | 2021-02-09 Tom de Vries <tdevries@suse.de> |
| 3876 | |
| 3877 | PR symtab/27341 |
| 3878 | * dwarf2/read.c (read_array_type): Return NULL when not being able to |
| 3879 | construct an array type. Add assert to ensure that element_type is |
| 3880 | not being modified. |
| 3881 | |
| 3882 | 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3883 | |
| 3884 | * gcore.c (struct gcore_collect_regset_section_cb_data): Delete. |
| 3885 | (gcore_collect_regset_section_cb): Delete. |
| 3886 | (gcore_collect_thread_registers): Delete. |
| 3887 | (gcore_build_thread_register_notes): Delete. |
| 3888 | (gcore_find_signalled_thread): Delete. |
| 3889 | * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete |
| 3890 | 'gdbarch' and 'thread_info' declarations. |
| 3891 | (gcore_build_thread_register_notes): Delete declaration. |
| 3892 | (gcore_find_signalled_thread): Likewise. |
| 3893 | * fbsd-tdep.c: Remove 'gcore.h' include. |
| 3894 | (struct fbsd_collect_regset_section_cb_data): New struct. |
| 3895 | (fbsd_collect_regset_section_cb): New function. |
| 3896 | (fbsd_collect_thread_registers): New function. |
| 3897 | (struct fbsd_corefile_thread_data): New struct. |
| 3898 | (fbsd_corefile_thread): New function. |
| 3899 | (fbsd_make_corefile_notes): Call FreeBSD specific code. |
| 3900 | * linux-tdep.c: Remove 'gcore.h' include. |
| 3901 | (struct linux_collect_regset_section_cb_data): New struct. |
| 3902 | (linux_collect_regset_section_cb): New function. |
| 3903 | (linux_collect_thread_registers): New function. |
| 3904 | (linux_corefile_thread): Call Linux specific code. |
| 3905 | (find_signalled_thread): New function. |
| 3906 | (linux_make_corefile_notes): Call find_signalled_thread. |
| 3907 | |
| 3908 | 2021-02-09 Tom Tromey <tromey@adacore.com> |
| 3909 | |
| 3910 | * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy |
| 3911 | not_lval value. |
| 3912 | * value.c (value_contents_copy_raw): Now static. |
| 3913 | * value.h (value_contents_copy_raw): Don't declare. |
| 3914 | |
| 3915 | 2021-02-09 Tom Tromey <tromey@adacore.com> |
| 3916 | |
| 3917 | * gdbtypes.c (resolve_dynamic_struct): Handle structure with no |
| 3918 | fields. |
| 3919 | |
| 3920 | 2021-02-08 Shahab Vahedi <shahab@synopsys.com> |
| 3921 | |
| 3922 | PR tdep/27369 |
| 3923 | * arc-linux-tdep.c (handle_atomic_sequence): New. |
| 3924 | (arc_linux_software_single_step): Call handle_atomic_sequence(). |
| 3925 | |
| 3926 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3927 | |
| 3928 | * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member |
| 3929 | function. |
| 3930 | (REQUIRE_WINDOW): Call is_valid member function. |
| 3931 | (REQUIRE_WINDOW_FOR_SETTER): New define. |
| 3932 | (gdbpy_tui_is_valid): Call is_valid member function. |
| 3933 | (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead. |
| 3934 | * tui/tui-data.h (struct tui_win_info) <is_visible>: Check |
| 3935 | tui_active too. |
| 3936 | * tui/tui-layout.c (tui_apply_current_layout): Add an assert. |
| 3937 | * tui/tui.c (tui_enable): Move setting of tui_active earlier in |
| 3938 | the function. |
| 3939 | |
| 3940 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3941 | |
| 3942 | * python/py-tui.c (gdbpy_tui_set_title): Check that the new value |
| 3943 | for the title is not nullptr. |
| 3944 | |
| 3945 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3946 | |
| 3947 | * tui-layout.c (saved_tui_windows): Delete. |
| 3948 | (tui_apply_current_layout): Don't make use of saved_tui_windows, |
| 3949 | call new get_windows member function instead. |
| 3950 | (tui_get_window_by_name): Check in tui_windows. |
| 3951 | (tui_layout_window::apply): Don't add to tui_windows. |
| 3952 | * tui-layout.h (tui_layout_base::get_windows): New member function. |
| 3953 | (tui_layout_window::get_windows): Likewise. |
| 3954 | (tui_layout_split::get_windows): Likewise. |
| 3955 | |
| 3956 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3957 | |
| 3958 | * tui/tui-layout.c (tui_apply_current_layout): Restore the delete |
| 3959 | of the window objects. |
| 3960 | |
| 3961 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3962 | |
| 3963 | * python/python.c (gdbpy_print_stack): Reformat an error message. |
| 3964 | |
| 3965 | 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> |
| 3966 | |
| 3967 | * tui/tui-interp.c (tui_command_line_handler): New function. |
| 3968 | (tui_interp::resume): Register tui_command_line_handler as the |
| 3969 | input_handler. |
| 3970 | * tui/tui-io.c (tui_inject_newline_into_command_window): New |
| 3971 | function. |
| 3972 | (tui_getc_1): Delete handling of '\n' and '\r'. |
| 3973 | * tui-io.h (tui_inject_newline_into_command_window): Declare. |
| 3974 | |
| 3975 | 2021-02-07 Hannes Domani <ssbssa@yahoo.de> |
| 3976 | |
| 3977 | * tui/tui-regs.c (tui_data_window::display_registers_from): |
| 3978 | Mark invisible register sub windows. |
| 3979 | (tui_data_window::check_register_values): Ignore invisible |
| 3980 | register sub windows. |
| 3981 | |
| 3982 | 2021-02-07 Hannes Domani <ssbssa@yahoo.de> |
| 3983 | |
| 3984 | * tui/tui-regs.c (tui_data_item_window::rerender): Don't call |
| 3985 | n_spaces with a negative value. |
| 3986 | |
| 3987 | 2021-02-07 Hannes Domani <ssbssa@yahoo.de> |
| 3988 | |
| 3989 | * tui/tui-regs.c (tui_data_window::display_registers_from): |
| 3990 | Add refresh_window call. |
| 3991 | |
| 3992 | 2021-02-07 Hannes Domani <ssbssa@yahoo.de> |
| 3993 | |
| 3994 | * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next. |
| 3995 | |
| 3996 | 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca> |
| 3997 | |
| 3998 | * symmisc.c (std_in, std_out, std_err): Remove. |
| 3999 | (_initialize_symmisc): Don't set std_in, std_out and std_err. |
| 4000 | |
| 4001 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
| 4002 | |
| 4003 | PR breakpoints/27330 |
| 4004 | * breakpoint.c (create_exception_master_breakpoint): Handle case that |
| 4005 | glibc object file has debug info. |
| 4006 | |
| 4007 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
| 4008 | |
| 4009 | PR symtab/27333 |
| 4010 | * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit. |
| 4011 | |
| 4012 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
| 4013 | |
| 4014 | PR breakpoints/27313 |
| 4015 | * break-catch-syscall.c (catch_syscall_split_args): Reject negative |
| 4016 | syscall numbers. |
| 4017 | |
| 4018 | 2021-02-05 Tom Tromey <tom@tromey.com> |
| 4019 | |
| 4020 | * compile/compile-c-support.c (get_compile_context) |
| 4021 | (c_get_compile_context, cplus_get_compile_context): Change return |
| 4022 | type. |
| 4023 | * language.c (language_defn::get_compile_instance): New method. |
| 4024 | * language.h (language_defn::get_compile_instance): Change return |
| 4025 | type. No longer inline. |
| 4026 | * c-lang.c (c_language::get_compile_instance): Change return type. |
| 4027 | (cplus_language::get_compile_instance): Change return type. |
| 4028 | * c-lang.h (c_get_compile_context, cplus_get_compile_context): |
| 4029 | Change return type. |
| 4030 | * compile/compile.c (compile_to_object): Update. |
| 4031 | |
| 4032 | 2021-02-05 Tom Tromey <tom@tromey.com> |
| 4033 | |
| 4034 | * parser-defs.h (write_exp_symbol_reference): Declare. |
| 4035 | * parse.c (write_exp_symbol_reference): New function. |
| 4036 | * p-exp.y (variable): Use write_exp_symbol_reference. |
| 4037 | * m2-exp.y (variable): Use write_exp_symbol_reference. |
| 4038 | * f-exp.y (variable): Use write_exp_symbol_reference. |
| 4039 | * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference. |
| 4040 | * c-exp.y (variable): Use write_exp_symbol_reference. |
| 4041 | |
| 4042 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
| 4043 | |
| 4044 | PR exp/27265 |
| 4045 | * valarith.c (complex_binop): Throw an error if complex type can't |
| 4046 | be created. |
| 4047 | |
| 4048 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
| 4049 | |
| 4050 | PR symtab/27307 |
| 4051 | * dwarf2/read.c (create_cus_from_debug_names_list): Add missing |
| 4052 | return. |
| 4053 | |
| 4054 | 2021-02-05 Tom de Vries <tdevries@suse.de> |
| 4055 | |
| 4056 | * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation. |
| 4057 | |
| 4058 | 2021-02-04 Mike Frysinger <vapier@gentoo.org> |
| 4059 | |
| 4060 | * configure.tgt (riscv*-*-*): Set gdb_sim. |
| 4061 | |
| 4062 | 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca> |
| 4063 | |
| 4064 | * target.c (target_is_non_stop_p): Return bool. |
| 4065 | * target.h (target_is_non_stop_p): Return bool. |
| 4066 | |
| 4067 | 2021-02-04 Simon Marchi <simon.marchi@efficios.com> |
| 4068 | |
| 4069 | * record-full.c (record_full_async_inferior_event_handler): |
| 4070 | Don't clear async event handler. |
| 4071 | (record_full_base_target::wait): Clear async event handler at |
| 4072 | beginning. |
| 4073 | |
| 4074 | 2021-02-04 Simon Marchi <simon.marchi@efficios.com> |
| 4075 | |
| 4076 | * record-btrace.c (record_btrace_handle_async_inferior_event): |
| 4077 | Don't clear async event handler. |
| 4078 | (record_btrace_target::wait): Clear async event handler at |
| 4079 | beginning. |
| 4080 | |
| 4081 | 2021-02-04 Simon Marchi <simon.marchi@efficios.com> |
| 4082 | |
| 4083 | * remote.c (remote_target::wait): Clear async event handler at |
| 4084 | beginning, mark if needed at the end. |
| 4085 | (remote_async_inferior_event_handler): Don't set or clear async |
| 4086 | event handler. |
| 4087 | |
| 4088 | 2021-02-04 Simon Marchi <simon.marchi@efficios.com> |
| 4089 | |
| 4090 | * async-event.h (async_event_handler_func): Add documentation. |
| 4091 | * async-event.c (check_async_event_handlers): Don't clear |
| 4092 | async_event_handler ready flag. |
| 4093 | * infrun.c (infrun_async_inferior_event_handler): Clear ready |
| 4094 | flag. |
| 4095 | * record-btrace.c (record_btrace_handle_async_inferior_event): |
| 4096 | Likewise. |
| 4097 | * record-full.c (record_full_async_inferior_event_handler): |
| 4098 | Likewise. |
| 4099 | * remote-notif.c (remote_async_get_pending_events_handler): |
| 4100 | Likewise. |
| 4101 | * remote.c (remote_async_inferior_event_handler): Likewise. |
| 4102 | |
| 4103 | 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca> |
| 4104 | |
| 4105 | * infrun.c (handle_inferior_event): Move stop_soon variable to |
| 4106 | inner scope. |
| 4107 | |
| 4108 | 2021-02-03 Pedro Alves <pedro@palves.net> |
| 4109 | |
| 4110 | * infcmd.c (detach_command): Hold strong reference to target, and |
| 4111 | if all-stop on entry, restart threads on exit. |
| 4112 | * infrun.c (switch_back_to_stepped_thread): Factor out bits to ... |
| 4113 | (restart_stepped_thread): ... this new function. Also handle |
| 4114 | trap_expected. |
| 4115 | (restart_after_all_stop_detach): New function. |
| 4116 | * infrun.h (restart_after_all_stop_detach): Declare. |
| 4117 | |
| 4118 | 2021-02-03 Pedro Alves <pedro@palves.net> |
| 4119 | |
| 4120 | * infrun.c (struct step_over_info): Initialize fields. |
| 4121 | (prepare_for_detach): Handle ongoing in-line step over. |
| 4122 | |
| 4123 | 2021-02-03 Pedro Alves <pedro@palves.net> |
| 4124 | |
| 4125 | * linux-nat.c (linux_nat_target::detach): Remove breakpoints |
| 4126 | here... |
| 4127 | * remote.c (remote_target::remote_detach_1): ... and here ... |
| 4128 | * target.c (target_detach): ... instead of here. |
| 4129 | * target.h (target_ops::detach): Add comment. |
| 4130 | |
| 4131 | 2021-02-03 Pedro Alves <pedro@palves.net> |
| 4132 | |
| 4133 | * infrun.c (struct wait_one_event): Move higher up. |
| 4134 | (prepare_for_detach): Abort in-progress displaced steps instead of |
| 4135 | letting them complete. |
| 4136 | (handle_one): If the inferior is detaching, don't add the thread |
| 4137 | back to the global step-over chain. |
| 4138 | (restart_threads): Don't restart threads if detaching. |
| 4139 | (handle_signal_stop): Remove inferior::detaching reference. |
| 4140 | |
| 4141 | 2021-02-03 Pedro Alves <pedro@palves.net> |
| 4142 | |
| 4143 | * infrun.c (prepare_for_detach): Don't release scoped_restore |
| 4144 | before returning. |
| 4145 | |
| 4146 | 2021-02-03 Pedro Alves <pedro@palves.net> |
| 4147 | |
| 4148 | * infrun.c (handle_one): New function, factored out from ... |
| 4149 | (stop_all_threads): ... here. |
| 4150 | |
| 4151 | 2021-02-03 Pedro Alves <pedro@palves.net> |
| 4152 | |
| 4153 | * remote.c (remote_notif_stop_ack): Don't error out on |
| 4154 | TARGET_WAITKIND_IGNORE; instead, just ignore the notification. |
| 4155 | (remote_target::discard_pending_stop_replies): Don't delete |
| 4156 | in-flight notification; instead, clear its contents. |
| 4157 | |
| 4158 | 2021-02-03 Pedro Alves <pedro@palves.net> |
| 4159 | |
| 4160 | * remote.c (extended_remote_target::attach): Set target async in |
| 4161 | the target-non-stop path too. |
| 4162 | |
| 4163 | 2021-02-03 Pedro Alves <pedro@palves.net> |
| 4164 | |
| 4165 | PR gdb/27055 |
| 4166 | * infrun.c (handle_signal_stop): Move main context_switch call |
| 4167 | earlier, before STOP_QUIETLY_NO_SIGSTOP. |
| 4168 | |
| 4169 | 2021-02-02 Lancelot SIX <lsix@lancelotsix.com> |
| 4170 | |
| 4171 | * NEWS (Changed commands): Add entry for the behavior change of |
| 4172 | the inferior command. |
| 4173 | * inferior.c (inferior_command): When no argument is given to the |
| 4174 | inferior command, display info about the currently selected |
| 4175 | inferior. |
| 4176 | |
| 4177 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
| 4178 | |
| 4179 | * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return |
| 4180 | a sect_offset. |
| 4181 | (read_attribute_reprocess): Adjust. |
| 4182 | |
| 4183 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
| 4184 | |
| 4185 | * dwarf2/die.h (struct die_info) <ranges_base>: Split in... |
| 4186 | <gnu_ranges_base>: ... this... |
| 4187 | <rnglists_base>: ... and this. |
| 4188 | * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in... |
| 4189 | <gnu_ranges_base>: ... this... |
| 4190 | <rnglists_base>: ... and this. |
| 4191 | (read_cutu_die_from_dwo): Adjust |
| 4192 | (dwarf2_get_pc_bounds): Adjust |
| 4193 | (dwarf2_record_block_ranges): Adjust. |
| 4194 | (read_full_die_1): Adjust |
| 4195 | (partial_die_info::read): Adjust. |
| 4196 | (read_rnglist_index): Adjust. |
| 4197 | |
| 4198 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
| 4199 | |
| 4200 | PR gdb/26813 |
| 4201 | * dwarf2/read.c (read_loclists_rnglists_header): Add |
| 4202 | header_offset parameter and use it. |
| 4203 | (read_loclist_index): Read header of the current contribution, |
| 4204 | not the one at the beginning of the section. |
| 4205 | (read_rnglist_index): Likewise. |
| 4206 | |
| 4207 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
| 4208 | |
| 4209 | PR gdb/26813 |
| 4210 | * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear |
| 4211 | requires_reprocessing flag. |
| 4212 | * dwarf2/attribute.c (attribute::form_is_unsigned): Handle |
| 4213 | DW_FORM_loclistx. |
| 4214 | (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx |
| 4215 | and DW_FORM_loclistx. |
| 4216 | * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned |
| 4217 | instead of set_address for DW_FORM_loclistx and |
| 4218 | DW_FORM_rnglistx. |
| 4219 | |
| 4220 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
| 4221 | |
| 4222 | * dwarf2/read.c (read_loclist_index): Remove bound check for |
| 4223 | start of offset. |
| 4224 | (read_rnglist_index): Likewise. |
| 4225 | |
| 4226 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
| 4227 | |
| 4228 | * dwarf2/read.c (read_loclist_index): Add bound check for the end |
| 4229 | of the offset. |
| 4230 | |
| 4231 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
| 4232 | |
| 4233 | * dwarf2/read.c (read_rnglist_index): Fix bound check. |
| 4234 | |
| 4235 | 2021-02-02 Simon Marchi <simon.marchi@efficios.com> |
| 4236 | |
| 4237 | * dwarf2/read.c (read_loclist_index): Change complaints into |
| 4238 | errors. |
| 4239 | |
| 4240 | 2021-02-02 Tom de Vries <tdevries@suse.de> |
| 4241 | |
| 4242 | PR symtab/24620 |
| 4243 | * dwarf2/index-write.c (write_one_signatured_type): Skip if |
| 4244 | psymtab == nullptr. |
| 4245 | |
| 4246 | 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com> |
| 4247 | |
| 4248 | * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h. |
| 4249 | * gcore.c (struct gcore_collect_regset_section_cb_data): Moved |
| 4250 | here from linux-tdep.c and given a new name. Minor cleanups. |
| 4251 | (gcore_collect_regset_section_cb): Likewise. |
| 4252 | (gcore_collect_thread_registers): Likewise. |
| 4253 | (gcore_build_thread_register_notes): Likewise. |
| 4254 | (gcore_find_signalled_thread): Likewise. |
| 4255 | * gcore.h (gcore_build_thread_register_notes): Declare. |
| 4256 | (gcore_find_signalled_thread): Declare. |
| 4257 | * fbsd-tdep.c: Add 'gcore.h' include. |
| 4258 | (struct fbsd_collect_regset_section_cb_data): Delete. |
| 4259 | (fbsd_collect_regset_section_cb): Delete. |
| 4260 | (fbsd_collect_thread_registers): Delete. |
| 4261 | (struct fbsd_corefile_thread_data): Delete. |
| 4262 | (fbsd_corefile_thread): Delete. |
| 4263 | (fbsd_make_corefile_notes): Call |
| 4264 | gcore_build_thread_register_notes instead of the now deleted |
| 4265 | FreeBSD code. |
| 4266 | * linux-tdep.c: Add 'gcore.h' include. |
| 4267 | (struct linux_collect_regset_section_cb_data): Delete. |
| 4268 | (linux_collect_regset_section_cb): Delete. |
| 4269 | (linux_collect_thread_registers): Delete. |
| 4270 | (linux_corefile_thread): Call |
| 4271 | gcore_build_thread_register_notes. |
| 4272 | (find_signalled_thread): Delete. |
| 4273 | (linux_make_corefile_notes): Call gcore_find_signalled_thread. |
| 4274 | |
| 4275 | 2021-01-29 Tom de Vries <tdevries@suse.de> |
| 4276 | |
| 4277 | PR breakpoints/26063 |
| 4278 | * infrun.c (process_event_stop_test): Reset |
| 4279 | ecs->event_thread->current_line to 0 if is-stmt=n and frame has |
| 4280 | changed. |
| 4281 | |
| 4282 | 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com> |
| 4283 | |
| 4284 | * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an |
| 4285 | assert. Extend the header comment. |
| 4286 | |
| 4287 | 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com> |
| 4288 | |
| 4289 | * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c. |
| 4290 | (HFILES_NO_SRCDIR): Add tui/tui-location.h. |
| 4291 | * tui/tui-data.h (TUI_STATUS_WIN): Define. |
| 4292 | (tui_locator_win_info_ptr): Delete declaration. |
| 4293 | * tui/tui-disasm.c: Add 'tui/tui-location.h' include. |
| 4294 | (tui_disasm_window::set_contents): Fetch state from tui_location |
| 4295 | global. |
| 4296 | (tui_get_begin_asm_address): Likewise. |
| 4297 | * tui/tui-layout.c (tui_apply_current_layout): Remove special case |
| 4298 | for locator window. |
| 4299 | (get_locator_window): Delete. |
| 4300 | (initialize_known_windows): Treat locator window just like all the |
| 4301 | rest. |
| 4302 | * tui/tui-source.c: Add 'tui/tui-location.h' include. |
| 4303 | (tui_source_window::set_contents): Fetch state from tui_location |
| 4304 | global. |
| 4305 | (tui_source_window::showing_source_p): Likewise. |
| 4306 | * tui/tui-stack.c: Add 'tui/tui-location.h' include. |
| 4307 | (_locator): Delete. |
| 4308 | (tui_locator_win_info_ptr): Delete. |
| 4309 | (tui_locator_window::make_status_line): Fetch state from |
| 4310 | tui_location global. |
| 4311 | (tui_locator_window::rerender): Remove check of 'handle', |
| 4312 | reindent function body. |
| 4313 | (tui_locator_window::set_locator_fullname): Delete. |
| 4314 | (tui_locator_window::set_locator_info): Delete. |
| 4315 | (tui_update_locator_fullname): Delete. |
| 4316 | (tui_show_frame_info): Likewise. |
| 4317 | (tui_show_locator_content): Access window through TUI_STATUS_WIN. |
| 4318 | * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to |
| 4319 | tui/tui-location.h and renamed to |
| 4320 | tui_location_tracker::set_location. |
| 4321 | (tui_locator_window::set_locator_fullname): Moved to |
| 4322 | tui/tui-location.h and renamed to |
| 4323 | tui_location_tracker::set_fullname. |
| 4324 | (tui_locator_window::full_name): Delete. |
| 4325 | (tui_locator_window::proc_name): Delete. |
| 4326 | (tui_locator_window::line_no): Delete. |
| 4327 | (tui_locator_window::addr): Delete. |
| 4328 | (tui_locator_window::gdbarch): Delete. |
| 4329 | (tui_update_locator_fullname): Delete declaration. |
| 4330 | * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling |
| 4331 | for locator window. |
| 4332 | * tui/tui-winsource.c: Add 'tui/tui-location.h' include. |
| 4333 | (tui_display_main): Call function on tui_location directly. |
| 4334 | * tui/tui.h (enum tui_win_type): Add STATUS_WIN. |
| 4335 | * tui/tui-location.c: New file. |
| 4336 | * tui/tui-location.h: New file. |
| 4337 | |
| 4338 | 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca> |
| 4339 | |
| 4340 | * gdbtypes.h (get_type_arch): Rename to... |
| 4341 | (struct type) <arch>: ... this, update all users. |
| 4342 | |
| 4343 | 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca> |
| 4344 | |
| 4345 | * gdbtypes.h (struct type) <arch>: Rename to... |
| 4346 | <arch_owner>: ... this, update all users. |
| 4347 | <objfile>: Rename to... |
| 4348 | <objfile_owner>: ... this, update all users. |
| 4349 | |
| 4350 | 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com> |
| 4351 | |
| 4352 | * gdbcmd.h (execute_command_to_string): Update comment. |
| 4353 | * top.c (execute_command_to_string): Update header comment. |
| 4354 | |
| 4355 | 2021-01-28 Tom de Vries <tdevries@suse.de> |
| 4356 | |
| 4357 | PR breakpoints/27205 |
| 4358 | * breakpoint.c (create_longjmp_master_breakpoint_probe) |
| 4359 | (create_longjmp_master_breakpoint_names): New function, factored out |
| 4360 | of ... |
| 4361 | (create_longjmp_master_breakpoint): ... here. Only try to install |
| 4362 | longjmp_names breakpoints in libc.so/libc.so.debug if installing probe |
| 4363 | breakpoint in libc.so failed. |
| 4364 | |
| 4365 | 2021-01-27 Lancelot SIX <lsix@lancelotsix.com> |
| 4366 | |
| 4367 | PR gdb/27133 |
| 4368 | * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the |
| 4369 | unique_ptr is released when the wrapped pointer is kept for later |
| 4370 | use. |
| 4371 | |
| 4372 | 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com> |
| 4373 | |
| 4374 | * aarch64-tdep.c (aarch64_displaced_step_others): Account for |
| 4375 | BLR and BR instructions. |
| 4376 | * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode. |
| 4377 | (enum aarch64_masks): New. |
| 4378 | |
| 4379 | 2021-01-26 Tom Tromey <tromey@adacore.com> |
| 4380 | |
| 4381 | * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM) |
| 4382 | (DEBUG_EXCEPT): Use debug_prefixed_printf_cond. |
| 4383 | (windows_init_thread_list, windows_nat::handle_load_dll) |
| 4384 | (windows_nat::handle_unload_dll, windows_nat_target::resume) |
| 4385 | (windows_nat_target::resume) |
| 4386 | (windows_nat_target::get_windows_debug_event) |
| 4387 | (windows_nat_target::interrupt, windows_xfer_memory) |
| 4388 | (windows_nat_target::close): Update. |
| 4389 | * nat/windows-nat.c (DEBUG_EVENTS): Use |
| 4390 | debug_prefixed_printf_cond. |
| 4391 | (matching_pending_stop, fetch_pending_stop) |
| 4392 | (continue_last_debug_event): Update. |
| 4393 | |
| 4394 | 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com> |
| 4395 | |
| 4396 | * linux-tdep.c (linux_make_mappings_corefile_notes): Start using |
| 4397 | elfcore_write_file_note. |
| 4398 | |
| 4399 | 2021-01-26 Shahab Vahedi <shahab@synopsys.com> |
| 4400 | |
| 4401 | * arc-tdep.c (arc_add_reggroups): New function. |
| 4402 | (arc_gdbarch_init): Call arc_add_reggroups. |
| 4403 | |
| 4404 | 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com> |
| 4405 | |
| 4406 | * arc-tdep.c (arc_skip_prologue): Log "pc" address. |
| 4407 | |
| 4408 | 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de> |
| 4409 | Simon Marchi <simon.marchi@polymtl.ca> |
| 4410 | Tom de Vries <tdevries@suse.de> |
| 4411 | |
| 4412 | * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for |
| 4413 | DW_AT_ranges. |
| 4414 | |
| 4415 | 2021-01-25 Tom Tromey <tromey@adacore.com> |
| 4416 | |
| 4417 | * dwarf2/read.c (get_mpz): New function. |
| 4418 | (get_dwarf2_rational_constant): Use it. |
| 4419 | |
| 4420 | 2021-01-25 Tom Tromey <tromey@adacore.com> |
| 4421 | |
| 4422 | * ada-lang.c (resolve_subexp): Handle array context. |
| 4423 | |
| 4424 | 2021-01-23 Tom Tromey <tom@tromey.com> |
| 4425 | |
| 4426 | PR compile/25575 |
| 4427 | * compile/compile-loc2c.c (note_register): New function. |
| 4428 | (pushf_register_address, pushf_register): Use it. |
| 4429 | |
| 4430 | 2021-01-23 Tom Tromey <tom@tromey.com> |
| 4431 | |
| 4432 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: |
| 4433 | Change type of "registers_used". |
| 4434 | * dwarf2/loc.h (dwarf2_compile_property_to_c): Update. |
| 4435 | * dwarf2/loc.c (dwarf2_compile_property_to_c) |
| 4436 | (locexpr_generate_c_location, loclist_generate_c_location): Change |
| 4437 | type of "registers_used". |
| 4438 | * compile/compile.h (compile_dwarf_expr_to_c) |
| 4439 | (compile_dwarf_bounds_to_c): Update. |
| 4440 | * compile/compile-loc2c.c (pushf_register_address) |
| 4441 | (pushf_register, do_compile_dwarf_expr_to_c) |
| 4442 | (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type |
| 4443 | of "registers_used". |
| 4444 | * compile/compile-c.h (generate_c_for_variable_locations): |
| 4445 | Update. |
| 4446 | * compile/compile-c-symbols.c (generate_vla_size) |
| 4447 | (generate_c_for_for_one_variable): Change type of |
| 4448 | "registers_used". |
| 4449 | (generate_c_for_variable_locations): Return std::vector. |
| 4450 | * compile/compile-c-support.c (generate_register_struct): Change |
| 4451 | type of "registers_used". |
| 4452 | (compute): Update. |
| 4453 | |
| 4454 | 2021-01-23 Tom Tromey <tom@tromey.com> |
| 4455 | |
| 4456 | * compile/compile-internal.h (class compile_instance) |
| 4457 | <set_arguments>: Change return type. |
| 4458 | * compile/compile.c (compile_to_object): Remove call to reset. |
| 4459 | (compile_instance::set_arguments): Change return type. |
| 4460 | |
| 4461 | 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
| 4462 | |
| 4463 | * gdbtypes.c (copy_type_recursive): Use get_type_arch. |
| 4464 | * gdbtypes.h (struct type) <set_owner>: Add asserts. |
| 4465 | |
| 4466 | 2021-01-23 Lancelot SIX <lsix@lancelotsix.com> |
| 4467 | |
| 4468 | * Makefile.in (SELFTESTS_SRCS): Add |
| 4469 | unittests/gdb_tilde_expand-selftests.c. |
| 4470 | * unittests/gdb_tilde_expand-selftests.c: New file. |
| 4471 | |
| 4472 | 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com> |
| 4473 | |
| 4474 | PR cli/25956 |
| 4475 | * NEWS: Mention new command. |
| 4476 | * cli/cli-style.c: Add 'cli/cli-setshow.h' include. |
| 4477 | (version_style): Define. |
| 4478 | (cli_style_option::cli_style_option): Add intensity parameter, and |
| 4479 | use as appropriate. |
| 4480 | (_initialize_cli_style): Register version style set/show commands. |
| 4481 | * cli/cli-style.h (cli_style_option): Add intensity parameter. |
| 4482 | (version_style): Declare. |
| 4483 | * top.c (print_gdb_version): Use version_stype, and styled_string |
| 4484 | to print the GDB version string. |
| 4485 | |
| 4486 | 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com> |
| 4487 | |
| 4488 | * utils.c (emit_style_escape): Only emit an escape sequence if the |
| 4489 | requested style is different than the current applied style. |
| 4490 | (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and |
| 4491 | current applied_style. |
| 4492 | (fputs_styled): Remove is_default check. |
| 4493 | (fputs_styled_unfiltered): Likewise. |
| 4494 | (vfprintf_styled_no_gdbfmt): Likewise. |
| 4495 | |
| 4496 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
| 4497 | |
| 4498 | * remote.h (remote_debug_printf): New. |
| 4499 | (remote_debug_printf_nofunc): New. |
| 4500 | (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New. |
| 4501 | * remote.c: Use above macros throughout file. |
| 4502 | |
| 4503 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
| 4504 | |
| 4505 | * remote.h (remote_debug): Change to bool. |
| 4506 | * remote.c (remote_debug): Change to bool. |
| 4507 | (_initialize_remote): Adjust. |
| 4508 | |
| 4509 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
| 4510 | |
| 4511 | * target.h (remote_debug): Move to... |
| 4512 | * remote.h (remote_debug): ... here. |
| 4513 | * top.c (remote_debug): Move to... |
| 4514 | * remote.c (remote_debug): ... here. |
| 4515 | * remote-sim.c: Include remote.h. |
| 4516 | |
| 4517 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
| 4518 | |
| 4519 | * cli/cli-cmds.c (show_remote_debug): Remove. |
| 4520 | (show_remote_timeout): Remove. |
| 4521 | (_initialize_cli_cmds): Don't register commands. |
| 4522 | * remote.c (show_remote_debug): Move here. |
| 4523 | (show_remote_timeout): Move here. |
| 4524 | (_initialize_remote): Register commands. |
| 4525 | |
| 4526 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
| 4527 | |
| 4528 | * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the |
| 4529 | type::objfile method instead. |
| 4530 | |
| 4531 | 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca> |
| 4532 | |
| 4533 | * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to |
| 4534 | use the type::is_objfile_owned method. |
| 4535 | |
| 4536 | 2021-01-22 Simon Marchi <simon.marchi@efficios.com> |
| 4537 | |
| 4538 | * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust. |
| 4539 | (TYPE_OWNER): Remove. |
| 4540 | (TYPE_OBJFILE): Adjust. |
| 4541 | (struct main_type) <flag_objfile_owned>: Rename to... |
| 4542 | <m_flag_objfile_owned>: ... this. |
| 4543 | <owner>: Rename to... |
| 4544 | <m_owner>: ... this. |
| 4545 | (struct type) <is_objfile_owned, set_owner, objfile, arch>: New |
| 4546 | methods. |
| 4547 | (TYPE_ALLOC): Adjust. |
| 4548 | * gdbtypes.c (alloc_type): Adjust. |
| 4549 | (alloc_type_arch): Adjust. |
| 4550 | (alloc_type_copy): Adjust. |
| 4551 | (get_type_arch): Adjust. |
| 4552 | (smash_type): Adjust. |
| 4553 | (lookup_array_range_type): Adjust. |
| 4554 | (recursive_dump_type): Adjust. |
| 4555 | (copy_type_recursive): Adjust. |
| 4556 | * compile/compile-c-types.c (convert_func): Adjust. |
| 4557 | (convert_type_basic): Adjust. |
| 4558 | * compile/compile-cplus-types.c (compile_cplus_convert_func): |
| 4559 | Adjust. |
| 4560 | * language.c |
| 4561 | (language_arch_info::type_and_symbol::alloc_type_symbol): |
| 4562 | Adjust. |
| 4563 | |
| 4564 | 2021-01-21 Luis Machado <luis.machado@linaro.org> |
| 4565 | |
| 4566 | * coffread.c (enter_linenos): Passing string to complaint. |
| 4567 | * valops.c (value_assign): Make array view. |
| 4568 | |
| 4569 | 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> |
| 4570 | |
| 4571 | * auto-load.h (debug_auto_load): Move here. |
| 4572 | (auto_load_debug_printf): New. |
| 4573 | * auto-load.c: Use auto_load_debug_printf. |
| 4574 | (debug_auto_load): Move to header. |
| 4575 | * linux-thread-db.c (try_thread_db_load): Use |
| 4576 | auto_load_debug_printf. |
| 4577 | * main.c (captured_main_1): Likewise. |
| 4578 | |
| 4579 | 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> |
| 4580 | |
| 4581 | * f-valprint.c (f77_array_offset_tbl): Remove. |
| 4582 | |
| 4583 | 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> |
| 4584 | |
| 4585 | * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file. |
| 4586 | |
| 4587 | 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> |
| 4588 | |
| 4589 | * ser-tcp.c (wait_for_connect): Use interruptible_select instead |
| 4590 | of gdb_select. |
| 4591 | |
| 4592 | 2021-01-21 Hannes Domani <ssbssa@yahoo.de> |
| 4593 | |
| 4594 | PR python/19151 |
| 4595 | * python/py-breakpoint.c (bppy_get_location): Handle |
| 4596 | bp_hardware_breakpoint. |
| 4597 | (bppy_init): Likewise. |
| 4598 | (gdbpy_breakpoint_created): Likewise. |
| 4599 | |
| 4600 | 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca> |
| 4601 | |
| 4602 | * arm-tdep.c (arm_debug_printf): Add and use throughout file. |
| 4603 | |
| 4604 | 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca> |
| 4605 | |
| 4606 | * gdb_bfd.c (debug_bfd_cache): Change type to bool. |
| 4607 | (_initialize_gdb_bfd): Adjust. |
| 4608 | |
| 4609 | 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca> |
| 4610 | |
| 4611 | PR gdb/26828 |
| 4612 | * dwarf2/read.c (maybe_queue_comp_unit): Add assertion. |
| 4613 | |
| 4614 | 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca> |
| 4615 | |
| 4616 | * dwarf2/read.c (follow_die_offset): Add logging. |
| 4617 | (dwarf2_per_objfile::age_comp_units): Add logging. |
| 4618 | |
| 4619 | 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca> |
| 4620 | |
| 4621 | * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static. |
| 4622 | * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind, |
| 4623 | aarch64_stub_unwind, aarch64_normal_base, ): Make static. |
| 4624 | * arm-linux-tdep.c (arm_prologue_unwind): Make static. |
| 4625 | * arm-tdep.c (struct frame_unwind): Make static. |
| 4626 | * auto-load.c (auto_load_safe_path_vec): Make static. |
| 4627 | * csky-tdep.c (csky_stub_unwind): Make static. |
| 4628 | * gdbarch.c (gdbarch_data_registry): Make static. |
| 4629 | * gnu-v2-abi.c (gnu_v2_abi_ops): Make static. |
| 4630 | * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static. |
| 4631 | * i386-tdep.c (i386_frame_setup_skip_insns, |
| 4632 | i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns): |
| 4633 | Make static. |
| 4634 | * infrun.c (observer_mode): Make static. |
| 4635 | * linux-nat.c (sigchld_action): Make static. |
| 4636 | * linux-thread-db.c (thread_db_list): Make static. |
| 4637 | * maint-test-options.c (maintenance_test_options_list): |
| 4638 | * mep-tdep.c (mep_csr_registers): Make static. |
| 4639 | * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name. |
| 4640 | (stats): Make static. |
| 4641 | * nat/linux-osdata.c (struct osdata_type): Make static. |
| 4642 | * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static. |
| 4643 | * progspace.c (last_program_space_num): Make static. |
| 4644 | * python/py-param.c (struct parm_constant): Remove struct type |
| 4645 | name. |
| 4646 | (parm_constants): Make static. |
| 4647 | * python/py-record-btrace.c (btpy_list_methods): Make static. |
| 4648 | * python/py-record.c (recpy_gap_type): Make static. |
| 4649 | * record.c (record_goto_cmdlist): Make static. |
| 4650 | * regcache.c (regcache_descr_handle): Make static. |
| 4651 | * registry.h (DEFINE_REGISTRY): Make definition static. |
| 4652 | * symmisc.c (std_in, std_out, std_err): Make static. |
| 4653 | * top.c (previous_saved_command_line): Make static. |
| 4654 | * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make |
| 4655 | static. |
| 4656 | * unittests/command-def-selftests.c (nr_duplicates, |
| 4657 | nr_invalid_prefixcmd, lists): Make static. |
| 4658 | * unittests/observable-selftests.c (test_notification): Make |
| 4659 | static. |
| 4660 | * unittests/optional/assignment/1.cc (counter): Make static. |
| 4661 | * unittests/optional/assignment/2.cc (counter): Make static. |
| 4662 | * unittests/optional/assignment/3.cc (counter): Make static. |
| 4663 | * unittests/optional/assignment/4.cc (counter): Make static. |
| 4664 | * unittests/optional/assignment/5.cc (counter): Make static. |
| 4665 | * unittests/optional/assignment/6.cc (counter): Make static. |
| 4666 | |
| 4667 | 2021-01-20 Joel Sherrill <joel@rtems.org> |
| 4668 | |
| 4669 | PR gdb/27219 |
| 4670 | * remote.c (struct remote_thread_info) <resume_state>: Rename |
| 4671 | to... |
| 4672 | <get_resume_state>: ... this. |
| 4673 | (remote_target::resume): Adjust. |
| 4674 | (remote_target::commit_resume): Adjust. |
| 4675 | (remote_target::select_thread_for_ambiguous_stop_reply): Adjust. |
| 4676 | |
| 4677 | 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net> |
| 4678 | Tom Tromey <tom@tromey.com> |
| 4679 | |
| 4680 | * stap-probe.c (stap_parse_single_operand): Handle '!' |
| 4681 | operator. |
| 4682 | (stap_parse_argument_conditionally): Likewise. |
| 4683 | Skip spaces after processing open-parenthesis sub-expression. |
| 4684 | (stap_parse_argument_1): Skip spaces after call to |
| 4685 | stap_parse_argument_conditionally. |
| 4686 | Handle case when right-side expression is a parenthesized |
| 4687 | sub-expression. |
| 4688 | Skip spaces after call to stap_parse_argument_1. |
| 4689 | |
| 4690 | 2021-01-19 Lancelot SIX <lsix@lancelotsix.com> |
| 4691 | |
| 4692 | * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN. |
| 4693 | |
| 4694 | 2021-01-19 Luis Machado <luis.machado@linaro.org> |
| 4695 | |
| 4696 | * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate |
| 4697 | memory and save data. |
| 4698 | (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr) |
| 4699 | (trad_frame_set_unknown, trad_frame_set_value_bytes) |
| 4700 | (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p) |
| 4701 | (trad_frame_value_bytes_p): Remove. |
| 4702 | (trad_frame_reset_saved_regs): Adjust documentation. |
| 4703 | * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a |
| 4704 | constructor and reset the state of the registers. |
| 4705 | (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p) |
| 4706 | (trad_frame_value_bytes_p, trad_frame_set_value) |
| 4707 | (trad_frame_set_realreg, trad_frame_set_addr) |
| 4708 | (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove. |
| 4709 | (trad_frame_set_reg_realreg): Update to call member function. |
| 4710 | (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise. |
| 4711 | (trad_frame_get_prev_register): Likewise. |
| 4712 | |
| 4713 | * aarch64-tdep.c (aarch64_analyze_prologue) |
| 4714 | (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1) |
| 4715 | (aarch64_prologue_prev_register): Update to use member functions. |
| 4716 | * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise. |
| 4717 | * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise. |
| 4718 | * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise. |
| 4719 | * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache) |
| 4720 | (arm_make_epilogue_frame_cache): Likewise. |
| 4721 | * avr-tdep.c (avr_frame_unwind_cache) |
| 4722 | (avr_frame_prev_register): Likewise. |
| 4723 | * cris-tdep.c (cris_scan_prologue): Likewise. |
| 4724 | * csky-tdep.c (csky_frame_unwind_cache): Likewise. |
| 4725 | * frv-tdep.c (frv_analyze_prologue): Likewise. |
| 4726 | * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise. |
| 4727 | * lm32-tdep.c (lm32_frame_cache): Likewise. |
| 4728 | * m32r-tdep.c (m32r_frame_unwind_cache): Likewise. |
| 4729 | * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise. |
| 4730 | * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache) |
| 4731 | (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise. |
| 4732 | (reset_saved_regs): Adjust to set realreg. |
| 4733 | * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to |
| 4734 | call member functions. |
| 4735 | * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache) |
| 4736 | * s390-tdep.c (s390_prologue_frame_unwind_cache) |
| 4737 | (s390_backchain_frame_unwind_cache): Likewise. |
| 4738 | * score-tdep.c (score7_analyze_prologue) |
| 4739 | (score3_analyze_prologue, score_make_prologue_cache): Likewise. |
| 4740 | * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise. |
| 4741 | * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise. |
| 4742 | * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise. |
| 4743 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise. |
| 4744 | * tilegx-tdep.c (tilegx_analyze_prologue) |
| 4745 | (tilegx_frame_cache): Likewise. |
| 4746 | * v850-tdep.c (v850_frame_cache): Likewise. |
| 4747 | * vax-tdep.c (vax_frame_cache): Likewise. |
| 4748 | |
| 4749 | 2021-01-19 Luis Machado <luis.machado@linaro.org> |
| 4750 | |
| 4751 | * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead |
| 4752 | of buffer + length. |
| 4753 | (put_frame_register_bytes): Likewise. |
| 4754 | Adjust documentation. |
| 4755 | (get_frame_memory): Pass a gdb::array_view instead of buffer + length. |
| 4756 | (safe_frame_unwind_memory): Likewise. |
| 4757 | * frame.c (get_frame_register_bytes, put_frame_register_bytes) |
| 4758 | (get_frame_memory, safe_frame_unwind_memory): Adjust to use |
| 4759 | gdb::array_view. |
| 4760 | * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise. |
| 4761 | * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise. |
| 4762 | * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise. |
| 4763 | * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise. |
| 4764 | * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise. |
| 4765 | * dwarf2/loc.c (rw_pieced_value): Likewise. |
| 4766 | * hppa-tdep.c (hppa_frame_cache): Likewise. |
| 4767 | * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise. |
| 4768 | * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise. |
| 4769 | * i386-linux-tdep.c (i386_linux_sigtramp_start) |
| 4770 | (i386_linux_rt_sigtramp_start): Likewise. |
| 4771 | * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise. |
| 4772 | * i386-tdep.c (i386_register_to_value): Likewise. |
| 4773 | * i387-tdep.c (i387_register_to_value): Likewise. |
| 4774 | * ia64-tdep.c (ia64_register_to_value): Likewise. |
| 4775 | * m32r-linux-tdep.c (m32r_linux_sigtramp_start) |
| 4776 | (m32r_linux_rt_sigtramp_start): Likewise. |
| 4777 | * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise. |
| 4778 | * m68k-tdep.c (m68k_register_to_value): Likewise. |
| 4779 | * mips-tdep.c (mips_register_to_value) |
| 4780 | (mips_value_to_register): Likewise. |
| 4781 | * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer) |
| 4782 | (ppcfbsd_sigtramp_frame_cache): Likewise. |
| 4783 | * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer) |
| 4784 | (ppcobsd_sigtramp_frame_cache): Likewise. |
| 4785 | * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p) |
| 4786 | (rs6000_register_to_value): Likewise. |
| 4787 | * tilegx-tdep.c (tilegx_analyze_prologue): Likewise. |
| 4788 | * tramp-frame.c (tramp_frame_start): Likewise. |
| 4789 | * valops.c (value_assign): Likewise. |
| 4790 | |
| 4791 | 2021-01-19 Luis Machado <luis.machado@linaro.org> |
| 4792 | |
| 4793 | * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an |
| 4794 | array_view. |
| 4795 | * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view |
| 4796 | instead of buffer and size. |
| 4797 | (trad_frame_set_reg_value_bytes): Likewise. |
| 4798 | * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise. |
| 4799 | (trad_frame_set_value_bytes): Likewise. |
| 4800 | |
| 4801 | 2021-01-18 Mike Frysinger <vapier@gentoo.org> |
| 4802 | |
| 4803 | * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s. |
| 4804 | |
| 4805 | 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com> |
| 4806 | |
| 4807 | * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete. |
| 4808 | (riscv_fbsd_gregset): Use riscv_supply_regset. |
| 4809 | (riscv_fbsd_fpregset): Likewise. |
| 4810 | * riscv-linux-tdep.c (riscv_linux_gregset): Likewise. |
| 4811 | (riscv_linux_fregset): Likewise. |
| 4812 | * riscv-tdep.c (riscv_supply_regset): Define new function. |
| 4813 | * riscv-tdep.h (riscv_supply_regset): Declare new function. |
| 4814 | |
| 4815 | 2021-01-18 Tom de Vries <tdevries@suse.de> |
| 4816 | |
| 4817 | PR tdep/27172 |
| 4818 | * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR): |
| 4819 | New macro. |
| 4820 | (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper |
| 4821 | for SEGV_BNDERR. |
| 4822 | |
| 4823 | 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca> |
| 4824 | |
| 4825 | * remote.c (class remote_target) <remote_hostio_send_command, |
| 4826 | remote_hostio_parse_result>: Constify parameter. |
| 4827 | (remote_hostio_parse_result): Likewise. |
| 4828 | (remote_target::remote_hostio_send_command): Adjust. |
| 4829 | (remote_target::remote_hostio_pread_vFile): Adjust. |
| 4830 | (remote_target::fileio_readlink): Adjust. |
| 4831 | (remote_target::fileio_fstat): Adjust. |
| 4832 | |
| 4833 | 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca> |
| 4834 | |
| 4835 | * remote.c (remote_target::start_remote): Move wait_status to |
| 4836 | narrower scope. |
| 4837 | |
| 4838 | 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca> |
| 4839 | |
| 4840 | * remote.c (class remote_target): |
| 4841 | <add_current_inferior_and_thread>: Constify parameter. |
| 4842 | (stop_reply_extract_thread): Likewise. |
| 4843 | (remote_target::get_current_thread): Likewise. |
| 4844 | (remote_target::add_current_inferior_and_thread): Likewise. |
| 4845 | |
| 4846 | 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca> |
| 4847 | |
| 4848 | * remote.c (class remote_target) |
| 4849 | <remote_unpack_thread_info_response, |
| 4850 | parse_threadlist_response>: Constify parameter and/or return |
| 4851 | value and or local variable. |
| 4852 | (stub_unpack_int): Likewise. |
| 4853 | (unpack_nibble): Likewise. |
| 4854 | (unpack_byte): Likewise. |
| 4855 | (unpack_int): Likewise. |
| 4856 | (unpack_string): Likewise. |
| 4857 | (unpack_threadid): Likewise. |
| 4858 | (remote_target::remote_unpack_thread_info_response): Likewise. |
| 4859 | (remote_target::parse_threadlist_response): Likewise. |
| 4860 | |
| 4861 | 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com> |
| 4862 | |
| 4863 | * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0. |
| 4864 | |
| 4865 | 2021-01-14 Lancelot Six <lsix@lancelotsix.com> |
| 4866 | |
| 4867 | * MAINTAINERS (Write After Approval): Add myself. |
| 4868 | |
| 4869 | 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
| 4870 | |
| 4871 | * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error |
| 4872 | because is_trivially_default_constructible was first implemented with |
| 4873 | gcc-5. |
| 4874 | |
| 4875 | 2021-01-14 Tom de Vries <tdevries@suse.de> |
| 4876 | |
| 4877 | PR breakpoints/27151 |
| 4878 | * objfiles.h (in_plt_section): Handle .plt.sec. |
| 4879 | |
| 4880 | 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
| 4881 | |
| 4882 | PR gdb/26819 |
| 4883 | * remote.c |
| 4884 | (remote_target::select_thread_for_ambiguous_stop_reply): New |
| 4885 | member function. |
| 4886 | (remote_target::process_stop_reply): Call |
| 4887 | select_thread_for_ambiguous_stop_reply. |
| 4888 | |
| 4889 | 2021-01-13 Simon Marchi <simon.marchi@efficios.com> |
| 4890 | |
| 4891 | * record-btrace.c (class record_btrace_target): Remove. |
| 4892 | (record_btrace_target::commit_resume): Remove. |
| 4893 | * record-full.c (class record_full_target): Remove. |
| 4894 | (record_full_target::commit_resume): Remove. |
| 4895 | |
| 4896 | 2021-01-13 Simon Marchi <simon.marchi@efficios.com> |
| 4897 | |
| 4898 | * remote.c (enum class resume_state): New. |
| 4899 | (struct resumed_pending_vcont_info): New. |
| 4900 | (struct remote_thread_info) <resume_state, set_not_resumed, |
| 4901 | set_resumed_pending_vcont, resumed_pending_vcont_info, |
| 4902 | set_resumed, m_resume_state, m_resumed_pending_vcont_info>: |
| 4903 | New. |
| 4904 | <last_resume_step, last_resume_sig, vcont_resumed>: Remove. |
| 4905 | (remote_target::remote_add_thread): Adjust. |
| 4906 | (remote_target::process_initial_stop_replies): Adjust. |
| 4907 | (remote_target::resume): Adjust. |
| 4908 | (remote_target::commit_resume): Rely on state in |
| 4909 | remote_thread_info and not on tp->executing. |
| 4910 | (remote_target::process_stop_reply): Adjust. |
| 4911 | |
| 4912 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 4913 | |
| 4914 | * arc-tdep.h (arc_debug_printf): New. |
| 4915 | * arc-tdep.c: Use arc_debug_printf. |
| 4916 | * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use. |
| 4917 | * arc-linux-tdep.c (arc_linux_debug_printf): Add and use. |
| 4918 | * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use. |
| 4919 | |
| 4920 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 4921 | |
| 4922 | * arc-tdep.h (arc_debug): Change type to bool. |
| 4923 | * arc-tdep.c (arc_debug): Change type to bool. |
| 4924 | (arc_analyze_prologue): Adjust. |
| 4925 | (_initialize_arc_tdep): Use add_setshow_boolean_cmd. |
| 4926 | * arc-linux-nat.c (ps_get_thread_area): Adjust. |
| 4927 | |
| 4928 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 4929 | |
| 4930 | * auto-load.c (auto_load_objfile_script_1): Use bool. |
| 4931 | (execute_script_contents): Use bool. |
| 4932 | |
| 4933 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 4934 | |
| 4935 | * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move |
| 4936 | comment here. |
| 4937 | * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move |
| 4938 | comment to header. |
| 4939 | * extension-priv.h (struct extension_language_script_ops) |
| 4940 | <auto_load_enabled>: Return bool. |
| 4941 | * extension.h (ext_lang_auto_load_enabled): Return bool, move |
| 4942 | comment here. |
| 4943 | * extension.c (ext_lang_auto_load_enabled): Return bool, move |
| 4944 | comment to header. |
| 4945 | * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool, |
| 4946 | move comment here. |
| 4947 | * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool, |
| 4948 | move comment to header. |
| 4949 | * python/python-header.h (gdbpy_auto_load_enabled): Return bool, |
| 4950 | move comment here. |
| 4951 | * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool, |
| 4952 | move comment to header. |
| 4953 | |
| 4954 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 4955 | |
| 4956 | * auto-load.h (file_is_auto_load_safe): Change return type to |
| 4957 | bool, move comment here. |
| 4958 | * auto-load.c (file_is_auto_load_safe): Change return type and |
| 4959 | advice_printed to bool. Move comment to header. |
| 4960 | |
| 4961 | 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
| 4962 | |
| 4963 | * jit.c (jit_debug_printf): New, use throughout file. |
| 4964 | |
| 4965 | 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
| 4966 | |
| 4967 | * infrun.c (normal_stop): Fix indentation. |
| 4968 | |
| 4969 | 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
| 4970 | |
| 4971 | * top.h (readnow_symbol_files, readnever_symbol_files): Move |
| 4972 | declarations to ... |
| 4973 | * symfile.h: ... here. |
| 4974 | * symfile.c: Update doc. |
| 4975 | |
| 4976 | 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
| 4977 | |
| 4978 | * target.h (baud_rate, serial_parity): Move declarations... |
| 4979 | * serial.h: ... here. |
| 4980 | * main.c: Include serial.h. |
| 4981 | * serial.c (baud_rate, serial_parity): Update doc. |
| 4982 | |
| 4983 | 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
| 4984 | |
| 4985 | * top.c (pre_init_ui_hook): Remove. |
| 4986 | |
| 4987 | 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com> |
| 4988 | |
| 4989 | * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers. |
| 4990 | (aarch64_vnv_type): Add "bf" type in h field of v registers. |
| 4991 | * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated. |
| 4992 | * features/aarch64-fpu.xml: Add bfloat16 type. |
| 4993 | |
| 4994 | 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com> |
| 4995 | |
| 4996 | * expprint.c (dump_subexp_body_standard): Handle OP_BOOL. |
| 4997 | |
| 4998 | 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com> |
| 4999 | |
| 5000 | * f-exp.y (dot_ops): Rename to... |
| 5001 | (fortran_operators): ...this. Add a header comment. Add symbol |
| 5002 | based operators. |
| 5003 | (yylex): Update to use fortran_operators not dot_ops. Remove |
| 5004 | special handling for '**', this is now included in |
| 5005 | fortran_operators. |
| 5006 | |
| 5007 | 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca> |
| 5008 | |
| 5009 | * arch/aarch64-insn.h (aarch64_debug_printf): New. |
| 5010 | * arch/aarch64-insn.c: Use aarch64_debug_printf. |
| 5011 | * aarch64-tdep.c: Use aarch64_debug_printf. |
| 5012 | |
| 5013 | 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca> |
| 5014 | |
| 5015 | * solib-aix.c (solib_aix_debug_printf): New, use throughout |
| 5016 | file. |
| 5017 | |
| 5018 | 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca> |
| 5019 | |
| 5020 | * jit.c (jit_debug): Change type to bool. |
| 5021 | (_initialize_jit): Adjust. |
| 5022 | |
| 5023 | 2021-01-09 Tom Tromey <tom@tromey.com> |
| 5024 | |
| 5025 | PR compile/23672 |
| 5026 | * compile/compile.c (compile_to_object): Avoid crash when |
| 5027 | osabi_triplet_regexp returns NULL. |
| 5028 | |
| 5029 | 2021-01-09 Tom Tromey <tom@tromey.com> |
| 5030 | |
| 5031 | * tracepoint.h (class collection_list) <append_exp>: Take a |
| 5032 | std::string. |
| 5033 | * tracepoint.c (collection_list::append_exp): Take a std::string. |
| 5034 | (encode_actions_1): Update. |
| 5035 | |
| 5036 | 2021-01-08 Tom Tromey <tromey@adacore.com> |
| 5037 | |
| 5038 | * parse.c (parse_expression): Add void_context_p parameter. Use |
| 5039 | parse_exp_in_context. |
| 5040 | * printcmd.c (print_command_1): Change voidprint to bool. Pass to |
| 5041 | parse_expression. |
| 5042 | (print_command, call_command): Update. |
| 5043 | * expression.h (parse_expression): Add void_context_p parameter. |
| 5044 | |
| 5045 | 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
| 5046 | |
| 5047 | * value.c (set_value_component_location): Adjust the VALUE_LVAL |
| 5048 | for internalvar components that have a dynamic location. |
| 5049 | |
| 5050 | 2021-01-08 Tom de Vries <tdevries@suse.de> |
| 5051 | |
| 5052 | PR gdb/26881 |
| 5053 | * breakpoint.c (create_exception_master_breakpoint_probe) |
| 5054 | (create_exception_master_breakpoint_hook): Factor out |
| 5055 | of ... |
| 5056 | (create_exception_master_breakpoint): ... here. Only try to install |
| 5057 | the master exception breakpoint in objfile.debug using the |
| 5058 | _Unwind_DebugHook method, if the install using probes in objfile |
| 5059 | failed. |
| 5060 | |
| 5061 | 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com> |
| 5062 | |
| 5063 | * f-lang.c (fortran_value_subarray): Call value_from_component. |
| 5064 | |
| 5065 | 2021-01-07 Mike Frysinger <vapier@gentoo.org> |
| 5066 | |
| 5067 | * remote-sim.c: Include memory-map.h. |
| 5068 | (gdbsim_target): Define memory_map override. |
| 5069 | (gdbsim_target::memory_map): Define. |
| 5070 | |
| 5071 | 2021-01-07 Tom Tromey <tromey@adacore.com> |
| 5072 | |
| 5073 | * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix. |
| 5074 | |
| 5075 | 2021-01-07 Tom Tromey <tromey@adacore.com> |
| 5076 | |
| 5077 | * ada-lang.c (add_component_interval): Start loop using vector's |
| 5078 | updated size. |
| 5079 | |
| 5080 | 2021-01-06 Tom Tromey <tromey@adacore.com> |
| 5081 | |
| 5082 | * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>: |
| 5083 | Do not cast result. |
| 5084 | * valarith.c (fixed_point_binop): Handle multiplication |
| 5085 | and division specially. |
| 5086 | * valops.c (value_to_gdb_mpq): New function. |
| 5087 | (value_cast_to_fixed_point): Use it. |
| 5088 | |
| 5089 | 2021-01-05 Hannes Domani <ssbssa@yahoo.de> |
| 5090 | |
| 5091 | * tui/tui-winsource.c (tui_source_window_base::refresh_window): |
| 5092 | Call wnoutrefresh instead of tui_win_info::refresh_window. |
| 5093 | |
| 5094 | 2021-01-05 Hannes Domani <ssbssa@yahoo.de> |
| 5095 | |
| 5096 | * tui/tui-source.c (tui_source_window::show_line_number): |
| 5097 | Redraw second space after line number. |
| 5098 | |
| 5099 | 2021-01-05 Hannes Domani <ssbssa@yahoo.de> |
| 5100 | |
| 5101 | PR tui/26927 |
| 5102 | * tui/tui-winsource.c (tui_source_window_base::refresh_window): |
| 5103 | Fix source pad size in prefresh. |
| 5104 | (tui_source_window_base::show_source_content): Grow source pad |
| 5105 | if necessary. |
| 5106 | |
| 5107 | 2021-01-04 Mike Frysinger <vapier@gentoo.org> |
| 5108 | |
| 5109 | * bfin-tdep.c (bfin_push_dummy_call): Use align_up. |
| 5110 | (bfin_frame_align): Use align_down. |
| 5111 | |
| 5112 | 2021-01-04 Tom de Vries <tdevries@suse.de> |
| 5113 | |
| 5114 | * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq |
| 5115 | terminators that do not terminate anything. |
| 5116 | |
| 5117 | 2021-01-04 Simon Marchi <simon.marchi@efficios.com> |
| 5118 | |
| 5119 | * debug.c (debug_print_depth): New. |
| 5120 | * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New. |
| 5121 | (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New. |
| 5122 | * infrun.c (start_step_over): Use |
| 5123 | INFRUN_SCOPED_DEBUG_ENTER_EXIT. |
| 5124 | (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and |
| 5125 | INFRUN_SCOPED_DEBUG_START_END. |
| 5126 | (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT. |
| 5127 | |
| 5128 | 2021-01-04 Simon Marchi <simon.marchi@efficios.com> |
| 5129 | |
| 5130 | * infrun.c (print_target_wait_results): Use infrun_debug_printf. |
| 5131 | |
| 5132 | 2021-01-04 Simon Marchi <simon.marchi@efficios.com> |
| 5133 | |
| 5134 | * utils.c (vfprintf_unfiltered): Print timestamp only when |
| 5135 | previous debug output ended with a newline. |
| 5136 | |
| 5137 | 2021-01-04 Luis Machado <luis.machado@linaro.org> |
| 5138 | |
| 5139 | Update all users of trad_frame_saved_reg to use the new member |
| 5140 | functions. |
| 5141 | |
| 5142 | Remote all struct keywords from declarations of trad_frame_saved_reg |
| 5143 | types, except on forward declarations. |
| 5144 | |
| 5145 | * aarch64-tdep.c: Update. |
| 5146 | * alpha-mdebug-tdep.c: Update. |
| 5147 | * alpha-tdep.c: Update. |
| 5148 | * arc-tdep.c: Update. |
| 5149 | * arm-tdep.c: Update. |
| 5150 | * avr-tdep.c: Update. |
| 5151 | * cris-tdep.c: Update. |
| 5152 | * csky-tdep.c: Update. |
| 5153 | * frv-tdep.c: Update. |
| 5154 | * hppa-linux-tdep.c: Update. |
| 5155 | * hppa-tdep.c: Update. |
| 5156 | * hppa-tdep.h: Update. |
| 5157 | * lm32-tdep.c: Update. |
| 5158 | * m32r-linux-tdep.c: Update. |
| 5159 | * m32r-tdep.c: Update. |
| 5160 | * m68hc11-tdep.c: Update. |
| 5161 | * mips-tdep.c: Update. |
| 5162 | * moxie-tdep.c: Update. |
| 5163 | * riscv-tdep.c: Update. |
| 5164 | * rs6000-tdep.c: Update. |
| 5165 | * s390-linux-tdep.c: Update. |
| 5166 | * s390-tdep.c: Update. |
| 5167 | * score-tdep.c: Update. |
| 5168 | * sparc-netbsd-tdep.c: Update. |
| 5169 | * sparc-sol2-tdep.c: Update. |
| 5170 | * sparc64-fbsd-tdep.c: Update. |
| 5171 | * sparc64-netbsd-tdep.c: Update. |
| 5172 | * sparc64-obsd-tdep.c: Update. |
| 5173 | * sparc64-sol2-tdep.c: Update. |
| 5174 | * tilegx-tdep.c: Update. |
| 5175 | * v850-tdep.c: Update. |
| 5176 | * vax-tdep.c: Update. |
| 5177 | |
| 5178 | * frame-unwind.c (frame_unwind_got_bytes): Make parameter const. |
| 5179 | * frame-unwind.h (frame_unwind_got_bytes): Likewise. |
| 5180 | |
| 5181 | * trad-frame.c: Update. |
| 5182 | Remove TF_REG_* enum. |
| 5183 | (trad_frame_alloc_saved_regs): Add a static assertion to check for |
| 5184 | a trivially-constructible struct. |
| 5185 | (trad_frame_reset_saved_regs): Adjust to use member function. |
| 5186 | (trad_frame_value_p): Likewise. |
| 5187 | (trad_frame_addr_p): Likewise. |
| 5188 | (trad_frame_realreg_p): Likewise. |
| 5189 | (trad_frame_value_bytes_p): Likewise. |
| 5190 | (trad_frame_set_value): Likewise. |
| 5191 | (trad_frame_set_realreg): Likewise. |
| 5192 | (trad_frame_set_addr): Likewise. |
| 5193 | (trad_frame_set_unknown): Likewise. |
| 5194 | (trad_frame_set_value_bytes): Likewise. |
| 5195 | (trad_frame_get_prev_register): Likewise. |
| 5196 | * trad-frame.h: Update. |
| 5197 | (trad_frame_saved_reg_kind): New enum. |
| 5198 | (struct trad_frame_saved_reg) <addr, realreg, data>: Remove. |
| 5199 | <m_kind, m_reg>: New member fields. |
| 5200 | <set_value, set_realreg, set_addr, set_unknown, set_value_bytes> |
| 5201 | <kind, value, realreg, addr, value_bytes, is_value, is_realreg> |
| 5202 | <is_addr, is_unknown, is_value_bytes>: New member functions. |
| 5203 | |
| 5204 | 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca> |
| 5205 | |
| 5206 | * target-float.c: Fix typos. |
| 5207 | |
| 5208 | 2021-01-02 Hannes Domani <ssbssa@yahoo.de> |
| 5209 | |
| 5210 | * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer. |
| 5211 | |
| 5212 | 2021-01-01 Joel Brobecker <brobecker@adacore.com> |
| 5213 | |
| 5214 | * gdbarch.sh: Update copyright year range. |
| 5215 | |
| 5216 | 2021-01-01 Joel Brobecker <brobecker@adacore.com> |
| 5217 | |
| 5218 | Update copyright year range in copyright header of all GDB files. |
| 5219 | |
| 5220 | 2021-01-01 Joel Brobecker <brobecker@adacore.com> |
| 5221 | |
| 5222 | * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport" |
| 5223 | to the list of directories to update. |
| 5224 | |
| 5225 | 2021-01-01 Joel Brobecker <brobecker@adacore.com> |
| 5226 | |
| 5227 | * top.c (print_gdb_version): Update copyright year. |
| 5228 | |
| 5229 | 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com> |
| 5230 | |
| 5231 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020. |
| 5232 | |
| 5233 | For older changes see ChangeLog-2020. |
| 5234 | \f |
| 5235 | Local Variables: |
| 5236 | mode: change-log |
| 5237 | left-margin: 8 |
| 5238 | fill-column: 74 |
| 5239 | version-control: never |
| 5240 | coding: utf-8 |
| 5241 | End: |