1 2013-04-15 Doug Evans <dje@google.com>
3 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
4 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
5 (create_dwo_cu_reader): Renamed from
6 create_dwo_debug_info_hash_table_reader.
7 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8 Remove support for multiple CUs in a DWO file.
9 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
11 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
13 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
14 (create_dwo_in_dwp): Ditto.
16 2013-04-15 Tom Tromey <tromey@redhat.com>
18 * NEWS: Move recent entries into "since 7.6" section.
20 2013-04-15 Tom Tromey <tromey@redhat.com>
24 * break-catch-throw.c (struct exception_catchpoint)
25 <exception_rx, pattern>: New fields.
26 (fetch_probe_arguments, dtor_exception_catchpoint)
27 (check_status_exception_catchpoint)
28 (print_one_detail_exception_catchpoint): New functions.
29 (handle_gnu_v3_exceptions): Add "except_rx" argument.
30 Compile regular expression if needed.
31 (extract_exception_regexp): New function.
32 (catch_exception_command_1): Use extract_exception_regexp.
33 (compute_exception): Use fetch_probe_arguments.
34 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
35 and check_status fields.
36 * cp-abi.c (cplus_typename_from_type_info): New function.
37 * cp-abi.h (cplus_typename_from_type_info): Declare.
38 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
39 * gdb_regex.h (compile_rx_or_error): Declare.
40 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
42 (init_gnuv3_ops): Set get_type_from_type_info field.
43 * probe.c (compile_rx_or_error): Move...
44 * utils.c (compile_rx_or_error): ... here.
46 2013-04-15 Tom Tromey <tromey@redhat.com>
50 * break-catch-throw.c (compute_exception): New function.
51 (exception_funcs): New global.
52 (_initialize_break_catch_throw): Create $_exception.
53 * cp-abi.c (cplus_type_from_type_info): New function.
54 * cp-abi.h (cplus_type_from_type_info): Declare.
55 (struct cp_abi_ops) <get_type_from_type_info>: New field.
56 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
57 (gnuv3_get_type_from_type_info): New functions.
58 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
60 2013-04-15 Tom Tromey <tromey@redhat.com>
62 * break-catch-throw.c (struct exception_names): New.
63 (exception_functions): Change type.
64 (re_set_exception_catchpoint): Look for SDT probes.
66 2013-04-15 Tom Tromey <tromey@redhat.com>
69 * break-catch-throw.c (exception_functions): New global.
70 (gnu_v3_exception_catchpoint_ops): Move earlier.
71 (struct exception_catchpoint): New.
72 (classify_exception_breakpoint): Rewrite.
73 (re_set_exception_catchpoint): New function.
74 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
75 Allocate a struct exception_catchpoint.
76 (catch_exception_command_1): Update.
77 (initialize_throw_catchpoint_ops): Set 're_set' method.
79 2013-04-15 Tom Tromey <tromey@redhat.com>
81 * Makefile.in (SFILES): Add break-catch-throw.c
82 (COMMON_OBS): Add break-catch-throw.o.
83 * break-catch-throw.c: New file.
84 * breakpoint.c: Move exception-catching code to new file.
85 (ep_parse_optional_if_clause): No longer static.
86 * breakpoint.h (ep_parse_optional_if_clause): Declare.
88 2013-04-15 Tom Tromey <tromey@redhat.com>
92 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
93 * c-exp.y (TYPEID): New token.
94 (exp): Add new TYPEID productions.
95 (ident_tokens): Add "typeid".
96 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
97 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
98 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
99 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
100 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
102 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
103 (build_std_type_info_type, gnuv3_get_typeid_type)
104 (gnuv3_get_typeid): New functions.
105 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
106 new fields on ABI object.
107 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
108 * std-operator.def (OP_TYPEID): New.
110 2013-04-15 Tom Tromey <tromey@redhat.com>
112 * elfread.c (elf_symtab_read): Install versioned symbol under
113 unversioned name as well.
115 2013-04-15 Tom Tromey <tromey@redhat.com>
118 * c-lang.c (cplus_language_defn): Use gdb_demangle.
119 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
120 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
121 (gdb_demangle): New function.
122 * cp-support.h (gdb_demangle): Declare.
123 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
124 (dwarf2_name): Use gdb_demangle.
125 * gdbtypes.c (check_stub_method): Use gdb_demangle.
126 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
128 (gnuv3_print_method_ptr): Use gdb_demangle.
129 * jv-lang.c (java_demangle): Use gdb_demangle.
130 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
131 * language.c (unk_lang_demangle): Use gdb_demangle.
132 * symtab.c (symbol_find_demangled_name)
133 (demangle_for_lookup): Use gdb_demangle.
135 2013-04-15 Tom Tromey <tromey@redhat.com>
139 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
141 (classify_exception_breakpoint): New function.
142 (print_it_exception_catchpoint, print_one_exception_catchpoint)
143 (print_mention_exception_catchpoint)
144 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
145 (catch_exception_command_1): Handle "rethrow" catchpoint.
146 (catch_rethrow_command): New function.
147 (_initialize_breakpoint): Add "catch rethrow" command.
149 2013-04-15 Pierre Muller <muller@sourceware.org>
151 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
152 set_gdbarch_write_pc as deprecated anymore.
154 2013-04-15 Joel Brobecker <brobecker@adacore.com>
156 * spu-tdep.c (spu_write_pc): Add empty line after local variable
159 2013-04-13 Yao Qi <yao@codesourcery.com>
161 * ctf.c (_initialize_ctf): Include "completer.h".
162 Call add_target_with_completer instead of add_target.
164 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
166 Fix GDB regression related to PR binutils/14813.
167 * jit.c (mem_bfd_iovec_close): Return 0 for success.
168 * minidebug.c (lzma_close): Add return value comment.
169 * remote.c (remote_bfd_iovec_close): Return 0 for success.
170 * solib-spu.c (spu_bfd_iovec_close): Likewise.
171 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
173 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
175 * config.in: Regenerate.
177 2013-04-12 Tom Tromey <tromey@redhat.com>
179 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
181 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
182 (struct die_reader_specs) <buffer>: Likewise.
183 (die_reader_func_ftype): Make 'info_ptr' const.
184 (struct line_header) <include_dirs, statement_program_start,
185 statement_program_end>: Now const.
186 (struct file_entry) <name>: Likewise.
187 (struct partial_die_info) <sibling>: Likewise.
188 (struct dwarf_block) <data>: Likewise.
189 (dwarf2_read_section): Remove cast.
190 (dwarf2_get_section_info): Make 'bufp' const.
191 (read_index_from_section): Constify.
192 (dw2_get_file_names_reader): Make 'info_ptr' const.
193 (dw2_get_primary_filename_reader): Likewise.
194 (read_comp_unit_head): Make 'info_ptr' and return type const.
195 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
197 (read_abbrev_offset): Constify.
198 (dwarf2_create_include_psymtab): Make 'name' const.
199 (create_debug_types_hash_table): Update.
200 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
201 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
203 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
204 (load_partial_comp_unit_reader): Make 'info_ptr' const.
205 (read_comp_units_from_section): Constify.
206 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
207 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
209 (dwarf2_compute_name, setup_type_unit_groups): Constify.
210 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
211 (create_dwp_hash_table, dwarf2_ranges_read)
212 (dwarf2_record_block_ranges): Constify.
213 (read_die_and_children, read_die_and_siblings_1)
214 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
216 (read_full_die_1, read_full_die): Make 'info_ptr' const.
217 (abbrev_table_read_table): Constify.
218 (load_partial_dies): Make 'info_ptr' const.
219 (read_partial_die, read_attribute_value, read_attribute): Make
220 'info_ptr' and return type const.
221 (read_address, read_initial_length)
222 (read_checked_initial_length_and_offset, read_offset)
223 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
225 (read_direct_string): Make 'buf' and return type const.
226 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
227 (read_indirect_string): Make return type const.
228 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
229 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
231 (read_str_index): Make return type const.
232 (add_include_dir): Make 'include_dir' const.
233 (add_file_name): Make 'name' const.
234 (dwarf_decode_line_header): Constify.
235 (psymtab_include_file_name): Make return type const.
236 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
237 (dwarf2_start_subfile): Make 'filename' const.
238 (dwarf2_const_value_attr): Make 'bytes' const.
239 (read_signatured_type_reader): Make 'info_ptr' const.
240 (decode_locdesc): Constify.
241 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
243 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
244 'mac_end', and return type const.
245 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
246 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
248 (per_cu_header_read_in): Constify.
249 * symfile.h (dwarf2_get_section_info): Update.
251 2013-04-12 Tom Tromey <tromey@redhat.com>
253 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
255 2013-04-12 Eli Zaretskii <eliz@gnu.org>
257 * NEWS: Mention "show configuration", --configuration.
258 * top.c (print_gdb_configuration): New function, displays the
259 details about GDB configure-time parameters.
260 (print_gdb_version): Mention "show configuration".
261 * cli/cli-cmds.c (show_configuration): New function.
262 (_initialize_cli_cmds): Add the "show configuration" command.
263 * main.c (captured_main) <print_configuration>: New static var.
264 <long_options>: Use it.
265 If --configuration was given, call print_gdb_configuration.
267 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
268 Pedro Alves <palves@redhat.com>
270 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
271 (generated_files): Add gcore.
272 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
273 HAVE_NATIVE_GCORE_HOST.
275 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
276 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
277 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
278 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
279 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
280 Add HAVE_NATIVE_GCORE_HOST.
281 * configure: Regenerate.
282 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
283 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
284 AC_CONFIG_FILES for gcore.
285 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
287 * gdb_gcore.sh: Rename to ...
288 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
289 and GCORE_TRANSFORM_NAME substitutions.
291 Fix parsing tabs in ${gdb_target_obs}.
292 * configure.tgt (gdb_have_gcore): Replace case with for and if.
294 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
296 * remote.c (unpush_and_perror): Add output message final dot.
298 2013-04-11 Yao Qi <yao@codesourcery.com>
300 * tracepoint.c (tfile_interp_line): Fit parameters line and
303 2013-04-10 Joel Brobecker <brobecker@adacore.com>
305 * solib.c (solib_map_sections): Remove code overwriting
306 SO->SO_NAME with the bfd's filename.
308 2013-04-10 Pedro Alves <palves@redhat.com>
310 * cli/cli-decode.c (integer_unlimited_completer): New function.
311 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
312 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
314 * cli/cli-setshow.c: Include "cli/cli-utils.h".
315 (is_unlimited_literal): New function.
316 (do_set_command): Handle literal "unlimited" arguments.
317 * frame.c (_initialize_frame) <set backtrace limit>: Document
319 * printcmd.c (_initialize_printcmd) <set print
320 max-symbolic-offset>: Add help text.
321 * record-full.c (_initialize_record_full) <set record full
322 insn-number-max>: Likewise.
323 * record.c (_initialize_record) <set record
324 instruction-history-size, set record function-call-history-size>:
326 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
328 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
330 * source.c (_initialize_source) <set listsize>: Add help text.
331 * utils.c (initialize_utils) <set height, set width>: Likewise.
332 <set pagination>: Mention "set height unlimited".
333 * valprint.c (_initialize_valprint) <set print elements, set print
334 repeats>: Document "unlimited".
336 2013-04-10 Pedro Alves <palves@redhat.com>
338 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
339 instead of disconnect_tracing.
340 * infcmd.c (detach_command, disconnect_command): Call
341 query_if_trace_running. Adjust.
342 * top.c: Include "tracepoint.h".
343 (quit_target): Delete. Contents moved ...
344 (quit_force): ... here. Wrap each stage of teardown in
345 TRY_CATCH. Call disconnect_tracing before detaching.
347 2013-04-10 Hui Zhu <hui@codesourcery.com>
348 Yao Qi <yao@codesourcery.com>
350 * configure.ac: Check libbabeltrace is installed.
351 * config.in: Regenerate.
352 * configure: Regenerate.
353 * Makefile.in (LIBBABELTRACE): New.
354 (CLIBS): Add LIBBABELTRACE.
355 * ctf.c: Include "exec.h".
356 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
357 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
358 (ctf_save_metadata_header): Define new type aliases in
360 (ctf_write_header): Define event type "tsv_def" and "tp_def"
361 in metadata. Start a new faked packet for trace status.
362 (ctf_write_status): Write trace status to CTF.
363 (ctf_write_uploaded_tsv): Write TSV to CTF.
364 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
365 (ctf_write_definition_end): End the faked packet.
367 (ctx, ctf_iter, trace_dirname): New.
368 (start_pos): New variable.
369 (ctf_destroy, ctf_open_dir, ctf_open): New.
370 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
372 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
373 (ctf_fetch_registers, ctf_xfer_partial): New.
374 (ctf_get_trace_state_variable_value): New.
375 (ctf_get_tpnum_from_frame_event): New.
376 (ctf_get_traceframe_address): New.
377 (ctf_trace_find, ctf_has_stack): New.
378 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
379 (ctf_get_trace_status, ctf_read_status): New.
380 (_initialize_ctf): New.
381 * tracepoint.c (get_tracepoint_number): New
382 (get_uploaded_tsv): Remove 'static'.
383 (struct traceframe_info, trace_regblock_size): Move it to ...
384 * tracepoint.h: ... here.
385 (get_tracepoint_number): Declare it.
386 (get_uploaded_tsv): Declare it.
388 * NEWS: Mention new configure option.
390 2013-04-10 Pedro Alves <palves@redhat.com>
391 Hui Zhu <hui@codesourcery.com>
393 * breakpoint.c (dprintf_re_set): New.
394 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
397 2013-04-09 Joel Brobecker <brobecker@adacore.com>
399 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
400 Remove solib-svr4.o from the list.
402 2013-04-09 Joel Brobecker <brobecker@adacore.com>
404 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
405 Use gdb_assert_not_reached instead of invalid boolean expression.
407 2013-04-09 Pedro Alves <palves@redhat.com>
409 * remote.c (unpush_and_perror): New function.
410 (readchar, remote_serial_write): Use it.
412 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
414 * NEWS: Mention new btrace RSP packets.
416 2013-04-08 Tom Tromey <tromey@redhat.com>
418 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
421 2013-04-08 Tom Tromey <tromey@redhat.com>
423 * maint.c (print_bfd_section_info): Print the section index.
424 * symmisc.c (dump_msymbols): Print the section index.
426 2013-04-08 Tom Tromey <tromey@redhat.com>
429 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
430 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
431 * breakpoint.c (resolve_sal_pc): Update.
432 * elfread.c (elf_gnu_ifunc_record_cache): Update.
433 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
434 (minsym_lookup_iterator_cb): Use it.
435 (default_read_var_value): Update.
436 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
438 * infcmd.c (jump_command): Update.
439 * linespec.c (minsym_found): Update.
440 * maint.c (maintenance_translate_address): Update.
441 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
442 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
443 * parse.c (write_exp_msymbol): Update.
444 * printcmd.c (address_info): Update.
445 * psymtab.c (find_pc_sect_psymbol): Update.
446 (fixup_psymbol_section): Check SYMBOL_SECTION, not
448 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
449 Don't initialize SYMBOL_OBJ_SECTION.
450 * spu-tdep.c (spu_catch_start): Update.
451 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
452 * symmisc.c (dump_msymbols, print_symbol): Update.
453 * symtab.c (fixup_section): Don't set 'obj_section'. Change
454 how fallback section is computed.
455 (fixup_symbol_section): Update.
456 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
458 (allocate_symbol, initialize_symbol, allocate_template_symbol):
459 Initialize SYMBOL_SECTION.
460 * symtab.h (struct general_symbol_info) <section>: Update comment.
461 <obj_section>: Remove.
462 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
463 (SYMBOL_OBJFILE): New macro.
465 2013-04-08 Tom Tromey <tromey@redhat.com>
467 * coffread.c (record_minimal_symbol): Update.
468 * dbxread.c (record_minimal_symbol): Update.
469 * elfread.c (record_minimal_symbol): Update.
470 * machoread.c (macho_symtab_add_minsym): Update.
471 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
473 * minsyms.c (prim_record_minimal_symbol): Update.
474 (prim_record_minimal_symbol_full): Remove 'bfd_section'
476 (prim_record_minimal_symbol_and_info): Likewise.
477 * minsyms.h (prim_record_minimal_symbol_full)
478 (prim_record_minimal_symbol_and_info): Update.
479 * symtab.c (allocate_symbol, initialize_symbol)
480 (allocate_template_symbol): Initialize SYMBOL_SECTION.
481 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
484 2013-04-08 Tom Tromey <tromey@redhat.com>
487 * solib-som.c (som_solib_section_offsets): Use BFD section
488 indices. Set offsets for all sections.
489 * somread.c (som_symtab_read): Compute BFD section for
490 symbol. Use prim_record_minimal_symbol_and_info.
491 (som_symfile_read): Fix comment.
492 (struct find_section_offset_arg): New.
493 (find_section_offset, set_section_index): New functions.
494 (som_symfile_offsets): Use set_section_index to compute
497 2013-04-08 Tom Tromey <tromey@redhat.com>
499 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
500 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
501 gdb_bfd_section_index.
502 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
504 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
506 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
508 * objfiles.c (add_to_objfile_sections_full): New function.
509 (add_to_objfile_sections): Use it.
510 (build_section_table): Rewrite.
511 (objfile_relocate1): Use gdb_bfd_section_index. Update.
512 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
513 (struct objfile) <sections>: Update comment.
514 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
516 (ALL_OBJSECTIONS): Use it.
517 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
518 * solib-frv.c (frv_relocate_main_executable): Update.
519 * solib-target.c (solib_target_relocate_section_addresses):
520 Use gdb_bfd_section_index.
521 * symfile.c (build_section_addr_info_from_section_table):
522 Use gdb_bfd_section_index.
523 (build_section_addr_info_from_bfd, place_section): Likewise.
524 * symtab.c (fixup_section): Update.
525 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
527 2013-04-08 Tom Tromey <tromey@redhat.com>
529 * minsyms.h (struct bound_minimal_symbol): New.
530 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
531 Remove objfile argument.
532 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
533 Return bound_minimal_symbol.
534 * minsyms.c (lookup_minimal_symbol_by_pc_1)
535 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
536 Return bound_minimal_symbol.
537 (in_gnu_ifunc_stub): Update.
538 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
539 Remove 'objfile_p' argument.
540 (lookup_solib_trampoline_symbol_by_pc): Update.
541 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
542 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
543 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
544 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
545 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
546 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
547 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
548 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
549 stack.c, symtab.c, tui/tui-disasm.c: Update.
551 2013-04-08 Tom Tromey <tromey@redhat.com>
553 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
554 Use symbol's obstack, not an objfile.
555 * coffread.c (process_coff_symbol): Update.
556 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
557 * jv-lang.c (add_class_symbol): Update.
558 * mdebugread.c (new_symbol): Update.
559 * minsyms.c (prim_record_minimal_symbol_full)
560 (terminate_minimal_symbol_table): Update.
561 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
562 * stabsread.c (define_symbol, read_enum_type): Update.
563 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
564 Handle Ada specially.
565 (symbol_set_language): Add 'obstack' argument.
566 (symbol_set_names): Update.
567 (symbol_natural_name, symbol_demangled_name): Always use
569 * symtab.h (struct general_symbol_info)
570 <language_specific::obstack>: New field.
571 <ada_mangled>: New field.
572 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
573 (symbol_set_language): Update.
575 2013-04-08 Tom Tromey <tromey@redhat.com>
577 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
578 Take an obstack, not an objfile.
579 (symbol_set_names): Update.
580 * symtab.h (symbol_set_demangled_name): Update.
582 2013-04-08 Tom Tromey <tromey@redhat.com>
584 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
586 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
587 (read_func_scope): Call allocate_template_symbol.
588 (new_symbol_full): Call allocate_symbol.
589 * jit.c (finalize_symtab): Call allocate_symbol.
590 * jv-lang.c (add_class_symbol): Call allocate_symbol.
591 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
592 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
593 (common_block_end): Call allocate_symbol.
594 * symtab.c (allocate_symbol, initialize_symbol)
595 (allocate_template_symbol): New functions.
596 * symtab.c (allocate_symbol, initialize_symbol)
597 (allocate_template_symbol): Declare.
598 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
600 2013-04-08 Pedro Alves <palves@redhat.com>
601 Keith Seitz <keiths@redhat.com>
603 * breakpoint.c (create_breakpoint): Rename
604 "parse_condition_and_thread" parameter to "parse_arg". Update
605 describing comment. If !PARSE_ARG, then error out if ARG is not
606 the empty string after extracting the location.
607 * breakpoint.h (create_breakpoint): Rename
608 "parse_condition_and_thread" parameter to "parse_arg".
610 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
612 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
614 2013-04-07 Yao Qi <yao@codesourcery.com>
616 * remote.c (remote_trace_find): Change type of parameters 'addr1'
617 and 'addr2' to CORE_ADDR.
618 * target.c (update_current_target): Update.
619 * target.h (struct target_ops) <to_trace_find>: Change parameter
621 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
622 'addr2' to CORE_ADDR.
623 (tfile_trace_find): Likewise.
624 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
625 Change local variable 'addr' to type CORE_ADDR.
626 * tracepoint.h (tfind_1): Update declaration.
628 2013-04-06 Eli Zaretskii <eliz@gnu.org>
630 * windows-nat.c (windows_get_absolute_argv0): Move from here...
631 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
634 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
636 * main.h (windows_get_absolute_argv0): ...to here.
638 2013-04-05 Doug Evans <dje@google.com>
640 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
641 (read_cutu_die_from_dwo): Add comments.
642 (read_structure_type): Update comment.
643 (read_enumeration_type, read_namespace_type): Update comment.
644 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
646 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
648 Convert man pages to texinfo, new gdbinit.5 texinfo page.
649 * Makefile.in (gdb.z): Remove.
650 (install-only): Remove $(man1dir) and gdb.1 installation.
653 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
655 Fix compatibility with Linux kernel 3.8.3.
656 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
657 to more inner block. Remove parsing of NUMBER from outer block.
658 Parse NUMBER only if KEYWORD has been identified.
660 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
662 Fix variable name shadowing.
663 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
664 filename to mapsfilename and update its uses.
666 2013-04-05 Eli Zaretskii <eliz@gnu.org>
668 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
669 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
670 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
671 details of the problem.
673 2013-04-04 Pedro Alves <palves@redhat.com>
674 Hui Zhu <hui@codesourcery.com>
676 * breakpoint.c (validate_commands_for_breakpoint): If validating a
677 tracepoint, reset its STEP_COUNT and call validate_actionline.
679 2013-04-03 Doug Evans <dje@google.com>
681 * dwarf2read.c (read_die_and_siblings_1): Renamed from
682 read_die_and_siblings.
683 (read_die_and_siblings): New function.
684 (read_cutu_die_from_dwo): Dump die if requested.
685 (read_die_and_children): Call read_full_die_1 and
686 read_die_and_siblings_1.
687 (read_full_die): Dump die if requested.
689 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
691 * dwarf2read.c (struct dwo_file): New member comp_dir.
692 Rename member name to dwo_name. All uses updated.
693 (hash_dwo_file): Include comp_dir in computation.
694 (eq_dwo_file): Ditto.
695 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
696 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
698 * psymtab.c (read_psymtabs_with_fullname): Don't call
699 psymtab_to_fullname if the basenames are different.
701 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
703 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
704 New entry about "fullname" presence.
706 2013-04-03 Pedro Alves <palves@redhat.com>
708 * NEWS: Mention x86_64/Cygwin as new native configuration.
710 2013-04-02 Doug Evans <dje@google.com>
712 * dwarf2read.c (read_structure_type): Fix typo in comment.
714 2013-04-02 Pedro Alves <palves@redhat.com>
716 * NEWS: Mention "set/show debug aarch64", "set/show debug
717 coff-pe-read" and "set/show debug mach-o".
719 2013-04-02 Pedro Alves <palves@redhat.com>
721 * NEWS: Mention "set/show remote trace-buffer-size-packet".
723 2013-04-02 Eli Zaretskii <eliz@gnu.org>
725 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
726 gdb_string.h is now in common/.
728 2013-04-02 Pedro Alves <palves@redhat.com>
730 * NEWS: Move "set debug notification" and "set trace-buffer-size"
733 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
737 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
739 2013-04-02 Pedro Alves <palves@redhat.com>
743 * remote.c (send_interrupt_sequence): Use remote_serial_write.
744 (remote_serial_write): New function.
745 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
747 2013-04-01 Jiong Wang <jiwang@tilera.com>
749 * NEWS: Mention TILE-Gx in "New native configurations" and
750 "New targets" sections.
752 2013-04-01 Doug Evans <dje@google.com>
754 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
755 (process_enumeration_scope): Simplify.
757 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
759 (struct signatured_type): ... to here.
760 (sig_type_ptr): New typedef.
761 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
762 out of union 't'. All uses updated.
763 (dw2_get_file_names_reader): Assert not called for a type unit.
764 (dw2_get_file_names): Assert not called for a type unit or type
766 (build_type_psymtabs_reader): Assert called for a type unit.
767 (build_type_psymtab_dependencies): Assert called for a type unit group.
769 * dwarf2read.c (free_dwo_file): Add comment.
770 (dwarf2_per_objfile_free): Unref dwp bfd.
772 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
774 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
775 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
776 (read_pe_exported_syms): Remove unused 'exportix'.
777 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
778 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
779 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
781 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
783 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
784 (print_it_watchpoint): Remove unused 'bl'.
785 (say_where): Remove unused 'uiout'.
786 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
787 (bkpt_breakpoint_hit): Remove unused 'b'.
788 (internal_bkpt_print_it): Remove unused 'uiout'.
789 * buildsym.c (augment_type_symtab): Remove unused 'i'.
791 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
793 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
794 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
796 2013-03-29 Doug Evans <dje@google.com>
798 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
799 Delete arg is_dwp. All callers updated.
800 (open_dwp_file): New function.
801 (open_and_init_dwp_file): Call it.
802 (get_dwp_file): New function.
803 (lookup_dwo_cutu): Call it.
805 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
806 unnecessary, cleanup.
808 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
810 * dwarf2read.c (read_cutu_die_from_dwo): New function.
811 (lookup_dwo_unit): New function.
812 (init_cutu_and_read_dies): Move DWO handling to new functions.
814 * dwarf2read.c (struct signatured_type): Tweak comment.
815 (struct dwo_unit): Tweak comment.
816 (create_debug_types_hash_table): Tweak comment. Reformat long line.
817 (create_dwo_debug_info_hash_table): Tweak comment.
818 (dwarf2_per_cu_offset_and_type): Tweak comment.
820 * dwarf2read.c (lookup_signatured_type): Remove complaint about
821 missing .debug_types section.
823 2013-03-29 Yao Qi <yao@codesourcery.com>
825 * corelow.c: Include "completer.h".
826 (_initialize_corelow): Call add_target_with_completer with
827 argument 'filename_completer'.
828 * tracepoint.c: Likewise.
829 * exec.c (_initialize_exec): Likewise.
830 * target.c (add_target): Rename to ...
831 (add_target_with_completer): ... this. Call set_cmd_completer
832 if parameter completer is not NULL.
834 * target.h: Include "command.h".
835 (add_target_with_completer): Declare it.
837 2013-03-28 Joel Brobecker <brobecker@adacore.com>
839 * coffread.c (is_import_fixup_symbol): New function.
840 (record_minimal_symbol): Use is_import_fixup_symbol to
841 detect import fixup symbols, and discard them.
843 2013-03-28 Doug Evans <dje@google.com>
845 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
846 types hash table until we know we need it.
848 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
851 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
853 (dw2_print_stats): Print #read CUs too.
854 (dump_die_shallow): Print signatured types better.
856 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
857 info_or_types_section to section. All uses updated.
858 (struct dwo_unit): Ditto.
860 2013-03-28 Pedro Alves <palves@redhat.com>
862 * NEWS (New options): New section.
863 (New options): Mention set/show remote trace-status-packet.
864 * remote.c (PACKET_qTStatus): New enumeration value.
865 (remote_get_trace_status): Skip sending qTStatus if the packet is
866 disabled. Use packet_ok.
867 (_initialize_remote): Register a configuration command for
870 2013-03-28 Doug Evans <dje@google.com>
872 * symfile.c (find_separate_debug_file): Add comment.
873 (terminate_after_last_dir_separator): Tweak comment.
875 * dwarf2read.c (create_partial_symtab): Add forward decl.
876 (create_partial_symtab): Move to be closer to other psymtab functions.
877 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
879 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
880 (compute_symtab_includes): Remove unnecessary forward declaration.
881 (die_needs_namespace): Add comment marking group of functions for
882 dwarf2 name computation.
884 * typeprint.c (_initialize_typeprint): Improve type help text.
886 * python/python.c (finish_python_initialization): Provide suggestion
887 for how to tell gdb to find its python files.
889 2013-03-28 Pedro Alves <palves@redhat.com>
893 * source.c (_initialize_source): Change back "set listsize" to an
896 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
899 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
901 2013-03-27 Pedro Alves <palves@redhat.com>
903 * top.c (history_size): Rename to ...
904 (history_size_setshow_var): ... this. Add comment.
905 (show_commands): Use readline's 'history_length' instead of
906 computing the history length by calling history_get in a loop.
907 (set_history_size_command): Error out for sizes over INT_MAX.
908 Restore previous history size on invalid size.
909 (init_history): If HISTSIZE is negative, leave the history size as
913 2013-03-27 Pedro Alves <palves@redhat.com>
915 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
916 coff_pe_read" command to "set debug coff-pe-read".
918 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
920 * record.c (command_size_to_target_size): Fix size comparison.
921 Change parameter type from pointer to integer to integer.
924 2013-03-27 Pierre Muller <muller@sourceware.org>
926 * windows-nat.c (handle_output_debug_string): Avoid typecast
927 from integer of different size warning.
929 2013-03-26 Joel Brobecker <brobecker@adacore.com>
931 * windows-nat.c (handle_output_debug_string): Add empty line
932 after local block variable definition.
934 2013-03-26 Pedro Alves <palves@redhat.com>
936 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
937 (net_open): Make 'polls' local unsigned.
939 2013-03-26 Pedro Alves <palves@redhat.com>
941 * remote.c (_initialize_remote): Make "set remoteaddresssize"
942 a zuinteger command instead of uinteger.
944 2013-03-26 Pedro Alves <palves@redhat.com>
946 * record-full.c (record_full_insn_num): Make it unsigned.
947 (record_full_check_insn_num, record_full_message)
948 (record_full_registers_change, record_full_xfer_partial): Remove
949 record_full_insn_max_num check (it's always != 0).
950 (record_full_info, record_full_restore): Use %u as format string.
951 (): Use %u as format string.
952 (set_record_full_insn_max_num): Remove record_full_insn_max_num
953 check (it's always != 0).
955 2013-03-26 Pedro Alves <palves@redhat.com>
957 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
958 and "set dcache size" commands zuinteger instead of uinteger.
960 2013-03-26 Pedro Alves <palves@redhat.com>
962 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
963 command zuinteger instead of uinteger.
965 2013-03-26 Pedro Alves <palves@redhat.com>
967 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
968 zuinteger instead of uinteger.
970 2013-03-26 Pedro Alves <palves@redhat.com>
972 * record.c (record_insn_history_size_setshow_var)
973 (record_call_history_size_setshow_var): New globals.
974 (command_size_to_target_size): New function.
975 (cmd_record_insn_history, cmd_record_call_history): Use
976 command_size_to_target_size instead of cast.
977 (validate_history_size, set_record_insn_history_size)
978 (set_record_call_history_size): New functions.
979 (_initialize_record): Install set_record_insn_history_size and
980 set_record_call_history_size as "set" hooks of "set record
981 instruction-history-size" and "set record
982 function-call-history-size".
984 2013-03-26 Pedro Alves <palves@redhat.com>
986 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
987 use with history_max_entries use. Remove FIXME note.
989 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
991 * record-btrace.c (record_btrace_close): Call
992 record_btrace_auto_disable.
994 2013-03-25 Joel Brobecker <brobecker@adacore.com>
996 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
998 2013-03-25 Doug Evans <dje@google.com>
1000 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
1002 2013-03-25 Tom Tromey <tromey@redhat.com>
1005 * c-exp.y (exp): Add new productions for destructors after '.' and
1007 (write_destructor_name): New function.
1009 2013-03-25 Tom Tromey <tromey@redhat.com>
1012 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
1013 value_struct_elt, not lookup_struct_elt_type.
1014 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
1015 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
1016 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
1018 2013-03-25 Yao Qi <yao@codesourcery.com>
1020 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
1021 instead of '_mkdir'.
1023 2013-03-23 Eli Zaretskii <eliz@gnu.org>
1025 * windows-nat.c (windows_get_absolute_argv0): New function.
1026 * windows-nat.h: Add its prototype.
1028 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
1029 Use IS_DIR_SEPARATOR instead of looking for a character inside
1030 SLASH_STRING. Include filenames.h.
1031 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
1032 relocate_gdb_directory works when passed gdb_program_name.
1033 Include windows-nat.h.
1035 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1037 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
1038 * remote.c (trace_error): Remove the special handling of '2'.
1039 (readchar) <SERIAL_EOF>
1040 (readchar) <SERIAL_ERROR>
1041 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
1042 (remote_get_trace_status): Call throw_exception if EX is
1044 * utils.c (perror_with_name): Rename to ...
1045 (throw_perror_with_name): ... here. New parameter errcode, describe it
1046 in the function comment.
1047 (perror_with_name): New function wrapper.
1048 * utils.h (enum errors): New stub declaration.
1049 (throw_perror_with_name): New declaration.
1051 2013-03-22 Pedro Alves <palves@redhat.com>
1052 Yao Qi <yao@codesourcery.com>
1053 Mark Kettenis <kettenis@gnu.org>
1055 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
1056 Don't let the user set the value to UINT_MAX directly.
1057 <var_integer>: Don't let the user set the value to INT_MAX
1060 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1062 * remote.c (remote_unpush_target): New function.
1063 (remote_open_1): Remove two pop_target calls, update one comment, add
1064 comment to target_preopen call. Replace pop_target call by
1065 remote_unpush_target call.
1066 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
1067 pop_target calls by remote_unpush_target calls.
1069 2013-03-22 Pedro Alves <palves@redhat.com>
1071 * linux-nat.c (linux_child_follow_fork): Don't call
1072 linux_enable_event_reporting.
1073 (linux_handle_extended_wait): Don't call
1074 linux_enable_event_reporting.
1076 2013-03-22 Pedro Alves <palves@redhat.com>
1078 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
1079 use it to rewrite the trampoline buffers with type gdb_byte[], and
1080 undefine the macro. Remove char* cast.
1082 2013-03-21 Doug Evans <dje@google.com>
1084 New commands "mt set per-command {space,time,symtab} {on,off}".
1086 * event-top.c: #include "maint.h".
1087 * main.c: #include "maint.h".
1088 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
1089 timeval-utils.h, maint.h, cli/cli-setshow.h.
1090 (per_command_time, per_command_space): New static globals.
1091 (per_command_symtab): New static global.
1092 (per_command_setlist, per_command_showlist): New static globals.
1093 (struct cmd_stats): Move here from utils.c.
1094 (set_per_command_time): Renamed from set_display_time in utils.c
1095 and moved here. All callers updated.
1096 (set_per_command_space): Renamed from set_display_space in utils.c
1097 and moved here. All callers updated.
1098 (count_symtabs_and_blocks): New function.
1099 (report_command_stats): Moved here from utils.c. Add support for
1100 printing symtab stats. Only print data if enabled before command
1102 (make_command_stats_cleanup): Ditto.
1103 (sert_per_command_cmd, show_per_command_cmd): New functions.
1104 (_initialize_maint_cmds): Add new commands
1105 mt set per-command {space,time,symtab} {on,off}.
1106 * maint.h: New file.
1107 * top.c: #include "maint.h".
1108 * utils.c (reset_prompt_for_continue_wait_time): New function.
1109 (get_prompt_for_continue_wait_time): New function.
1110 * utils.h (reset_prompt_for_continue_wait_time): Declare
1111 (get_prompt_for_continue_wait_time): Declare.
1112 (make_command_stats_cleanup): Moved to maint.h.
1113 (set_display_time, set_display_space): Moved to maint.h and renamed
1114 to set_per_command_time, set_per_command_space.
1115 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
1116 parse_binary_operation and made non-static. Don't call error,
1117 just return an error marker. All callers updated.
1118 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
1120 2013-03-21 Tom Tromey <tromey@redhat.com>
1122 * symfile.c (alloc_section_addr_info): Update header. Don't set
1123 'num_sections' field.
1124 (build_section_addr_info_from_section_table): Set 'num_sections'.
1125 (build_section_addr_info_from_bfd): Likewise.
1126 (build_section_addr_info_from_objfile): Remove dead loop
1128 (free_section_addr_info): Unconditionally call xfree.
1129 (relative_addr_info_to_section_offsets, addrs_section_sort)
1130 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
1132 (syms_from_objfile_1): Remove dead 'if' condition. Check
1134 (add_symbol_file_command): Set 'num_sections'.
1135 * symfile-mem.c (symbol_file_add_from_memory): Set
1137 * somread.c (som_symfile_offsets): Remove dead loop condition.
1138 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
1139 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
1141 2013-03-21 Tom Tromey <tromey@redhat.com>
1143 * tracepoint.h (decode_agent_options): Add 'trace_string'
1145 * tracepoint.c (decode_agent_options): Add 'trace_string'
1147 (validate_actionline): Update.
1148 (collect_symbol): Add 'trace_string' argument.
1149 (struct add_local_symbols_data) <trace_string>: New field.
1150 (do_collect_symbol): Update.
1151 (add_local_symbols): Add 'trace_string' argument.
1152 (encode_actions_1): Update.
1153 (trace_dump_actions): Update.
1154 * dwarf2loc.c (access_memory): Update.
1155 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
1156 * ax-general.c (new_agent_expr): Update.
1157 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
1158 (gen_trace_for_return_address): Add argument.
1159 (trace_kludge, trace_string_kludge): Remove.
1160 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
1161 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
1162 (gen_trace_for_var): Add 'trace_string' argument.
1163 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
1164 (gen_printf, agent_eval_command_one): Update.
1166 2013-03-21 Tom Tromey <tromey@redhat.com>
1169 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
1170 Handle FILENAME token.
1172 2013-03-21 Tom Tromey <tromey@redhat.com>
1174 * c-exp.y (YYPRINT): Define.
1175 (c_print_token): New function.
1177 2013-03-21 Tom Tromey <tromey@redhat.com>
1179 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
1181 2013-03-21 Yao Qi <yao@codesourcery.com>
1183 * ctf.c: Include "gdb_stat.h".
1184 [USE_WIN32API]: New macro 'mkdir'.
1185 (ctf_start): Use permission bits macros if they are defined.
1187 2013-03-20 Keith Seitz <keiths@redhat.com>
1189 * breakpoint.h (struct breakpoint): Add comment to
1190 extra_string indicating that this member is mallod'd.
1191 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
1193 2013-03-20 Pedro Alves <palves@redhat.com>
1197 * cli/cli-setshow.c (do_set_command)
1198 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
1199 the result of parsing the command argument. Throw error if the
1200 value is greater than UINT_MAX. Print the invalid value with
1202 <var_integer, var_zinteger>: Use LONGEST for variable holding the
1203 result of parsing the command argument. Throw error if the value
1204 is greater than INT_MAX, not greater or equal. Also throw error
1205 if the value is less than INT_MIN. Print the invalid value with
1207 <var_zuinteger_unlimited>: Throw error if the value is greater
1208 than INT_MAX, not greater or equal.
1209 (do_show_command) <var_integer, var_zinteger,
1210 var_zuinteger_unlimited>: Use %d for printing int, not %u.
1212 2013-03-20 Tom Tromey <tromey@redhat.com>
1214 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
1216 * dwarf2read.c (read_func_scope): Remove old FIXME.
1217 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
1219 * findvar.c (symbol_read_needs_frame, default_read_var_value):
1220 Unconditionally call via computed ops, if possible.
1221 * printcmd.c (address_info): Unconditionally call via computed ops,
1223 * stack.c (read_frame_arg): Unconditionally call via computed ops,
1225 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
1226 * tracepoint.c (scope_info): Unconditionally call via computed ops,
1229 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1230 Tom Tromey <tromey@redhat.com>
1233 * coffread.c (coff_register_index): New global.
1234 (process_coff_symbol, coff_read_enum_type): Set
1235 SYMBOL_ACLASS_INDEX.
1236 (_initialize_coffread): Initialize new global.
1237 * dwarf2loc.c (locexpr_find_frame_base_location)
1238 (dwarf2_block_frame_base_locexpr_funcs)
1239 (loclist_find_frame_base_location)
1240 (dwarf2_block_frame_base_loclist_funcs): New.
1241 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
1242 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
1243 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
1244 (dwarf2_block_frame_base_loclist_funcs): New.
1245 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
1246 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
1248 (read_func_scope): Update.
1249 (fixup_go_packaging, mark_common_block_symbol_computed)
1250 (var_decode_location, new_symbol_full, dwarf2_const_value):
1251 Set SYMBOL_ACLASS_INDEX.
1252 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
1253 (_initialize_dwarf2_read): Initialize new globals.
1254 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
1255 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
1256 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
1258 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
1259 (_initialize_mdebugread): Initialize new globals.
1260 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
1261 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
1262 (stab_register_index, stab_regparm_index): New globals.
1263 (define_symbol, read_enum_type, common_block_end): Set
1264 SYMBOL_ACLASS_INDEX.
1265 (_initialize_stabsread): Initialize new globals.
1266 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
1268 (MAX_SYMBOL_IMPLS): New define.
1269 (register_symbol_computed_impl, register_symbol_block_impl)
1270 (register_symbol_register_impl)
1271 (initialize_ordinary_address_classes): New functions.
1272 (_initialize_symtab): Call initialize_ordinary_address_classes.
1273 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
1274 (struct symbol_impl): New.
1275 (SYMBOL_ACLASS_BITS): New define.
1276 (struct symbol) <aclass, ops>: Remove fields.
1277 <aclass_index>: New field.
1278 (symbol_impls): Declare.
1279 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
1280 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
1281 (register_symbol_computed_impl, register_symbol_block_impl)
1282 (register_symbol_register_impl): Declare.
1283 (struct symbol_computed_ops): Add location_has_loclist.
1284 (struct symbol_block_ops): New.
1285 (SYMBOL_BLOCK_OPS): New.
1286 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
1288 2013-03-20 Tom Tromey <tromey@redhat.com>
1290 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
1291 (print_partial_symbols, recursively_search_psymtabs): Use
1294 2013-03-20 Pierre Muller <muller@sourceware.org>
1296 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
1297 addtion, subtraction, multiplication and division binary operator.
1299 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1302 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
1303 * bsd-kvm.c (bsd_kvm_close): Likewise.
1304 * bsd-uthread.c (bsd_uthread_close): Likewise.
1305 * corelow.c (core_close): Likewise.
1306 (core_close_cleanup): Remove parameter quitting from a caller.
1307 * event-top.c (async_disconnect): Likewise.
1308 * exec.c (exec_close_1): Remove parameter quitting.
1309 * go32-nat.c (go32_close): Likewise.
1310 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
1311 parameter quitting from a caller.
1312 * mips-linux-nat.c (super_close): Remove parameter quitting from the
1314 (mips_linux_close): Remove parameter quitting. Remove parameter
1315 quitting from a caller.
1316 * monitor.c (monitor_close): Remove parameter quitting.
1317 * monitor.h (monitor_close): Likewise.
1318 * record-btrace.c (record_btrace_close): Likewise.
1319 * record-full.c (record_full_close): Likewise.
1320 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
1321 it also from fprintf_unfiltered.
1322 * remote-mips.c (mips_close): Remove parameter quitting.
1323 (mips_detach): Remove parameter quitting from a caller.
1324 * remote-sim.c (gdbsim_close): Remove parameter quitting.
1325 (gdbsim_close): Remove duplicate function comment. Remove parameter
1326 quitting and remove it also from printf_filtered.
1327 * remote.c (remote_close): Remove parameter quitting.
1328 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
1329 * target.c (update_current_target): Remove parameter int from to_close
1331 (push_target, unpush_target, pop_target): Remove parameter quitting from
1333 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
1334 Remove parameter quitting from a caller.
1335 (target_preopen): Remove parameter quitting from a caller.
1336 (target_close): Remove parameter quitting. Remove parameter quitting
1337 from a caller two times. Remove parameter quitting also from
1339 * target.h (struct target_ops): Remove parameter quitting and as int
1340 from fields to_xclose and to_close.
1341 (extern struct target_ops current_target):
1342 (target_close, pop_all_targets): Remove parameter quitting. Update the
1344 (pop_all_targets_above): Remove parameter quitting.
1345 * top.c (quit_target): Remove parameter quitting from a caller.
1346 * tracepoint.c (tfile_close): Remove parameter quitting.
1347 * windows-nat.c (windows_close): Remove parameter quitting.
1349 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
1351 * windows-nat.c (handle_output_debug_string): Replace call
1352 to string_to_core_addr with call to strtoull.
1354 2013-03-20 Yao Qi <yao@codesourcery.com>
1356 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
1357 and write it to CTF metadata.
1359 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
1361 * windows-nat.c (handle_output_debug_string): Change type of n to
1362 SIZE_T to avoid crash on 64 bit systems.
1364 2013-03-17 Eli Zaretskii <eliz@gnu.org>
1366 * python/python-internal.h (HAVE_SNPRINTF)
1367 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
1368 about redefinition of snprintf by pyerrors.h.
1370 2013-03-15 Steve Ellcey <sellcey@mips.com>
1372 * remote-sim.c (sim_command_completer): Make char arguments const.
1374 2013-03-15 Tom Tromey <tromey@redhat.com>
1377 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
1379 2013-03-14 Tom Tromey <tromey@redhat.com>
1381 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
1383 (get_file_crc): Move from symfile.c.
1384 (gdb_bfd_crc): New function.
1385 * gdb_bfd.h (gdb_bfd_crc): Declare.
1386 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
1387 * symfile.c (get_file_crc): Move to gdb_bfd.c.
1388 (separate_debug_file_exists): Use gdb_bfd_crc.
1390 2013-03-14 Tom Tromey <tromey@redhat.com>
1392 * symfile.c (get_debug_link_info): Remove.
1393 (find_separate_debug_file_by_debuglink): Use
1394 bfd_get_debug_link_info.
1396 2013-03-14 Tom Tromey <tromey@redhat.com>
1398 * symtab.c (error_in_psymtab_expansion): New function.
1399 (lookup_symbol_aux_quick)
1400 (basic_lookup_transparent_type_quick): Remove "last resort"
1401 code. Use error_in_psymtab_expansion.
1403 2013-03-14 Doug Evans <dje@google.com>
1404 Jan Kratochvil <jan.kratochvil@redhat.com>
1406 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
1407 any successful compare_filenames_for_search or FILENAME_CMP.
1408 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
1409 * symtab.c (iterate_over_some_symtabs): Likewise.
1411 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1413 * source.c (print_source_lines_base): Make a local copy of
1416 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
1417 Jan Kratochvil <jan.kratochvil@redhat.com>
1419 * source.c (print_source_lines_base): Suppress "file" for TUI.
1421 2013-03-14 Keith Seitz <keiths@redhat.com>
1422 Alan Matsuoka <alanm@redhat.com>
1426 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
1428 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
1431 2013-03-14 Yao Qi <yao@codesourcery.com>
1433 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
1434 status to tfile if trace is stopped by command 'tstop'.
1436 2013-03-14 Yao Qi <yao@codesourcery.com>
1438 * tracepoint.c (tfile_write_status): Write trace notes and user
1439 name into tfile if they are not NULL.
1441 2013-03-14 Hui Zhu <hui@codesourcery.com>
1442 Yao Qi <yao@codesourcery.com>
1444 * Makefile.in (REMOTE_OBS): Add ctf.o.
1445 (SFILES): Add ctf.c.
1446 (HFILES_NO_SRCDIR): Add ctf.h.
1447 * ctf.c, ctf.h: New files.
1448 * tracepoint.c: Include 'ctf.h'.
1449 (collect_pseudocommand): Remove static.
1450 (trace_save_command): Parse option "-ctf".
1451 Produce different trace file writers per option.
1452 Adjust output message.
1453 (trace_save_tfile, trace_save_ctf): New.
1454 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
1455 * mi/mi-main.c: Include 'ctf.h'.
1456 (mi_cmd_trace_save): Handle option '-ctf'. Call either
1457 trace_save_tfile or trace_save_ctf.
1458 * NEWS: Mention these changes.
1460 2013-03-14 Yao Qi <yao@codesourcery.com>
1462 * tracepoint.c (trace_file_writer_xfree): New.
1463 (struct tfile_writer_data): New.
1464 (tfile_dtor, tfile_can_target_save, tfile_start): New.
1465 (tfile_write_header, tfile_write_regblock_type): New.
1466 (tfile_write_status, tfile_write_uploaded_tsv): New.
1467 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
1468 (tfile_write_raw_data, (tfile_end): New.
1469 (tfile_write_ops): New global variable.
1470 (TRACE_WRITE_R_BLOCK): New macro.
1471 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
1472 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
1473 (TRACE_WRITE_V_BLOCK): New macro.
1474 (trace_save): Add extra one parameter WRITER. Make it static.
1475 Use WRITER to writer trace.
1476 (tfile_trace_file_writer_new): New.
1477 (trace_save_command): Caller update.
1478 (trace_save_tfile): Write trace data in TFILE format.
1479 * tracepoint.h (struct trace_frame_write_ops): New.
1480 (struct trace_file_write_ops): New.
1481 (struct trace_file_writer): New.
1482 (trace_save): Remove its declaration.
1483 (trace_save_tfile): Declare it.
1484 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
1485 instead of trace_save.
1487 2013-03-13 Pedro Alves <palves@redhat.com>
1489 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
1491 2013-03-13 Pedro Alves <palves@redhat.com>
1493 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
1495 * demangle.c (current_demangling_style_string): Make it const.
1496 (set_demangling_command): Assert the demangling style is known.
1497 Remove all handling of unknown styles. Set
1498 'current_demangling_style_string' to an element of the
1499 demangling_style_names array.
1500 (set_demangling_style): Delete.
1501 (_initialize_demangler): Set current_demangling_style_string to the
1502 element of the demangling_style_names array that corresponds to
1503 the default demangling style. Remove FIXME note. Don't call
1504 set_demangling_style.
1505 * gdb-demangle.h (set_demangling_style): Remove declaration.
1507 2013-03-13 Pedro Alves <palves@redhat.com>
1509 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
1511 (ada_make_symbol_completion_list): Make "text0" parameter const.
1512 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
1513 * breakpoint.c (condition_completer): Make "text" and "word"
1514 parameters const. Adjust.
1515 (check_tracepoint_command): Adjust to validate_actionline
1517 (catch_syscall_completer): Make "text" and "word" parameters
1519 * cli/cli-cmds.c (show_user): Make "comname" local const.
1520 (valid_command_p): Make "command" parameter const.
1521 (alias_command): Make "alias_prefix" and "command_prefix" locals
1523 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
1524 (add_alias_cmd): Make "name" and "oldname" parameters const.
1525 Adjust. No longer make copy of OLDNAME.
1526 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
1527 (add_setshow_cmd_full, add_setshow_enum_cmd)
1528 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1529 (add_setshow_filename_cmd, add_setshow_string_cmd)
1530 (add_setshow_string_noescape_cmd)
1531 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1532 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1533 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
1534 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
1535 Make "name" parameter const.
1536 (help_cmd): Rename "command" parameter to "arg". New const local
1538 (find_cmd): Make "command" parameter const.
1539 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
1540 deprecated_cmd_warning prototype change.
1541 (undef_cmd_error): Make "cmdtype" parameter const.
1542 (lookup_cmd): Make "line" parameter const.
1543 (deprecated_cmd_warning): Change type of "text" parameter to
1544 pointer to const char, from pointer to pointer to char. Adjust.
1545 (lookup_cmd_composition): Make "text" parameter const.
1546 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
1548 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
1550 * cli/cli-script.c (validate_comname): Make "tem" local const.
1551 (define_command): New const local "tem_c". Use it in calls to
1553 (document_command): Make "tem" and "comfull" locals const.
1554 (show_user_1): Make "prefix" and "name" parameters const.
1555 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
1557 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
1558 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
1559 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
1560 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
1561 (complete_on_enum, add_setshow_enum_cmd)
1562 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1563 (add_setshow_filename_cmd, add_setshow_string_cmd)
1564 (add_setshow_string_noescape_cmd)
1565 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1566 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1567 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1568 Change prototypes, constifying strings.
1569 * completer.c (noop_completer, filename_completer): Make "text"
1570 and "prefix" parameters const.
1571 (location_completer, expression_completer)
1572 (complete_line_internal): Make "text" and "prefix" parameters
1574 (command_completer, signal_completer): Make "text" and "prefix"
1576 * completer.h (noop_completer, filename_completer)
1577 (expression_completer, location_completer, command_completer)
1578 (signal_completer): Change prototypes.
1579 * corefile.c (complete_set_gnutarget): Make "text" and "word"
1581 * cp-abi.c (cp_abi_completer): Likewise.
1582 * expression.h (parse_expression_for_completion): Change
1584 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
1586 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
1587 * infrun.c (handle_completer): Make "text" and "word" parameters
1589 * interps.c (interpreter_completer): Make "text" and "word"
1591 * language.h (struct language_defn)
1592 <la_make_symbol_completion_list>: Make "text" and "word"
1594 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
1595 (parse_exp_in_context): Rename to ...
1596 (parse_exp_in_context_1): ... this.
1597 (parse_exp_in_context): Reimplement, with const hack from
1599 (parse_expression_for_completion): Make "string" parameter const.
1600 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
1601 to pointer to const char. Adjust.
1602 (print_command_1): Make "exp" parameter const.
1603 (output_command): Rename to ...
1604 (output_command_const): ... this. Make "exp" parameter const.
1605 (output_command): Reimplement.
1606 (x_command): Adjust.
1607 (display_command): Rename "exp" parameter to "arg". New "exp"
1608 local, const version of "arg".
1609 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
1610 "cmd_name" local const.
1611 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
1613 (cmdpy_completer): Make "text" and "word" parameters const.
1614 (gdbpy_parse_command_name): Make "prefix_text2" local const.
1615 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
1617 * remote.c (_initialize_remote): Make "cmd_name" local const.
1618 * symtab.c (language_search_unquoted_string): Make "text" and "p"
1619 parameters const. Adjust.
1620 (completion_list_add_fields): Make "sym_text", "text" and "word"
1622 (struct add_name_data) <sym_text, text, word>: Make fields const.
1623 (default_make_symbol_completion_list_break_on): Make "text" and
1624 "word" parameters const. Adjust locals.
1625 (default_make_symbol_completion_list)
1626 (make_symbol_completion_list, make_symbol_completion_type)
1627 (make_symbol_completion_list_fn): Make "text" and "word"
1629 (make_file_symbol_completion_list): Make "text", "word" and
1630 "srcfile" parameters const. Adjust locals.
1631 (add_filename_to_list): Make "text" and "word" parameters const.
1632 (struct add_partial_filename_data) <text, word>: Make fields
1634 (make_source_files_completion_list): Make "text" and "word"
1636 * symtab.h (default_make_symbol_completion_list_break_on)
1637 (default_make_symbol_completion_list, make_symbol_completion_list)
1638 (make_symbol_completion_type enum type_code)
1639 (make_symbol_completion_list_fn make_file_symbol_completion_list)
1640 (make_source_files_completion_list): Change prototype.
1641 * top.c (execute_command): Adjust to pass pointer to pointer to
1642 const char to lookup_cmd, and to deprecated_cmd_warning prototype
1644 (set_verbose): Make "cmdname" local const.
1645 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
1647 (validate_actionline): Make "line" parameter a pointer to const
1649 (encode_actions_1): Make "action_exp" local const, and adjust.
1650 (encode_actions): Adjust.
1651 (replace_comma): Delete.
1652 (trace_dump_actions): Make "action_exp" and "next_comma" locals
1653 const, and adjust. Don't frob the action string while splitting
1654 it at commas. Instead, make a copy of each split substring in
1656 (trace_dump_command): Adjust to validate_actionline prototype
1658 * tracepoint.h (decode_agent_options, decode_agent_options)
1659 (encode_actions, validate_actionline): Change prototypes.
1660 * valprint.h (output_command): Delete declaration.
1661 (output_command_const): Declare.
1662 * value.c (function_destroyer): Cast const away in xfree call.
1664 2013-03-13 Pedro Alves <palves@redhat.com>
1666 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
1667 rather than casting 'const char * const *' to 'const char **'.
1668 * ada-lex.l (processInt): Make "trailer" local const. Remove
1669 'const char **' cast.
1670 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
1671 locals, and use those as strtol output pointer, instead than doing
1672 invalid casts to from 'const char **' to 'char **'.
1673 (_initialize_demangle): Remove cast.
1674 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
1675 locals, and use those as strtol output pointer, instead than doing
1676 invalid casts to from 'const char **' to 'char **'.
1677 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
1679 * stap-probe.c (stap_parse_register_operand)
1680 (stap_parse_single_operand): Likewise.
1682 2013-03-13 Yao Qi <yao@codesourcery.com>
1684 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
1685 the last matched 'V' blcok in trace frame.
1687 2013-03-12 Joel Brobecker <brobecker@adacore.com>
1689 * NEWS: Create a new section for the next release branch.
1690 Rename the section of the current branch, now that it has
1693 2013-03-12 Joel Brobecker <brobecker@adacore.com>
1695 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
1696 * version.in: Bump version to 7.6.50.20130312-cvs.
1698 2013-03-12 Keith Seitz <keiths@redhat.com>
1700 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
1701 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
1702 Remove temporary copy of input string.
1703 (mi_execute_command_wrapper): Make "cmd" const.
1704 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
1705 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
1707 (mi_parse): Make "cmd" const.
1709 * mi/mi-parse.h (mi_parse): Make "cmd" const.
1711 2013-03-12 Keith Seitz <keiths@redhat.com>
1713 * ada-lang.c (ada_read_renaming_var_value): Pass const
1714 pointer to expression string to parse_exp_1.
1715 (create_excep_cond_exprs): Likewise.
1716 * ax-gdb.c (agent_eval_command_one): Likewise.
1717 (maint_agent_printf_command): Likewise.
1718 Constify much of the string handling/parsing.
1719 * breakpoint.c (set_breakpoint_condition): Pass const
1720 pointer to expression string to parse_exp_1.
1721 (update_watchpoint): Likewise.
1722 (parse_cmd_to_aexpr): Constify string handling.
1723 Pass const pointer to parse_exp_1.
1724 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
1725 (find_condition_and_thread): Likewise.
1727 (watch_command_1): Make "arg" const.
1728 Constify string handling.
1729 Copy the expression string instead of changing the input
1731 (update_breakpoint_location): Pass const pointer to
1733 * eval.c (parse_and_eval_address): Make "exp" const.
1734 (parse_to_comma_and_eval): Make "expp" const.
1735 (parse_and_eval): Make "exp" const.
1736 * expression.h (parse_expression): Make argument const.
1737 (parse_exp_1): Make first argument const.
1738 * findcmd.c (parse_find_args): Treat "args" as const.
1739 * linespec.c (parse_linespec): Pass const pointer to
1740 linespec_expression_to_pc.
1741 (linespec_expression_to_pc): Make "exp_ptr" const.
1742 * parse.c (parse_exp_1): Make "stringptr" const.
1743 Make a copy of the expression to pass to parse_exp_in_context until
1744 this whole interface can be constified.
1745 (parse_expression): Make "string" const.
1746 * printcmd.c (ui_printf): Treat "arg" as const.
1747 Handle const strings.
1748 * tracepoint.c (validate_actionline): Pass const pointer to
1749 all calls to parse_exp_1.
1750 (encode_actions_1): Likewise.
1751 * value.h (parse_to_comma_and_eval): Make argument const.
1752 (parse_and_eval_address): Likewise.
1753 (parse_and_eval): Likewise.
1754 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
1755 (varobj_set_value): Likewise.
1756 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
1757 constify string handling.
1758 Pass const pointers to parse_and_eval_address and
1759 parse_to_comman_and_eval.
1760 * cli/cli-utils.c (skip_to_space): Rename to ...
1761 (skip_to_space_const): ... this. Handle const strings.
1762 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
1763 skip_to_space_const.
1764 (skip_to_space_const): Declare.
1765 * common/format.c (parse_format_string): Make "arg" const.
1766 Handle const strings.
1767 * common/format.h (parse_format_string): Make "arg" const.
1768 * gdbserver/ax.c (ax_printf): Make "format" const.
1769 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
1770 of the expression string.
1772 2013-03-12 Hui Zhu <hui@codesourcery.com>
1774 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
1776 2013-03-12 Yao Qi <yao@codesourcery.com>
1777 Hui Zhu <hui@codesourcery.com>
1779 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
1780 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
1783 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
1785 * ada-lex.l (rules): Only recognize 'thread' as a
1786 delimiter when followed by numerals, as for c-exp.y.
1787 Use new rewind_to_char function to rewind the input for
1788 expression-delimiting tokens.
1789 (rewind_to_char): New function.
1791 2013-03-11 Pedro Alves <palves@redhat.com>
1792 Jan Kratochvil <jan.kratochvil@redhat.com>
1794 * configure: Regenerate.
1795 * configure.ac (check dynamic export flag): Link python test with
1798 2013-03-11 Doug Evans <dje@google.com>
1799 Keith Seitz <keiths@redhat.com>
1801 * linespec.c (find_linespec_symbols): Call find_function_symbols
1802 first, and then call lookup_prefix_sym/find_method.
1804 2013-03-11 Pedro Alves <palves@redhat.com>
1806 * charset.c (convert_between_encodings): Don't cast between
1807 different pointer to pointer types. Instead, make the 'inp' local
1808 be of the type iconv expects.
1809 (wchar_iterate): Don't cast between different pointer to pointer
1810 types. Instead, use new pointer local of the type iconv expects.
1811 * target.c (target_read_stralloc, target_fileio_read_stralloc):
1812 Add new local of type char pointer, and use it to get a
1813 char/string view of the byte buffer, instead of casting between
1814 pointer to pointer types.
1816 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
1818 * remote.c (remote_set_trace_buffer_size): Move != operator
1819 to the start of next line to fix an ARI warning.
1821 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1823 * NEWS: Add record changes.
1825 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1827 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
1828 the instruction history disassembly.
1829 * disasm.c (dump_insns): Omit the pc prefix, if requested.
1830 * disasm.h (DISASSEMBLY_OMIT_PC): New.
1832 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1834 * Makefile.in (SFILES): Add record-btrace.c
1835 (COMMON_OBS): Add record-btrace.o
1836 * record-btrace.c: New.
1837 * objfiles.c: Include btrace.h.
1838 (free_objfile): call btrace_free_objfile.
1840 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1842 * target.c (target_call_history, target_call_history_from,
1843 target_call_history_range): New.
1844 * target.h (target_ops) <to_call_history, to_call_history_from,
1845 to_call_history_range>: New fields.
1846 (target_call_history, target_call_history_from,
1847 target_call_history_range): New declaration.
1848 * record.c (get_call_history_modifiers, cmd_record_call_history,
1849 record_call_history_size): New.
1850 (_initialize_record): Add the "record function-call-history" command.
1851 Add "set/show record function-call-history-size" commands.
1852 * record.h (record_print_flag): New.
1854 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1856 * target.h (target_ops) <to_insn_history, to_insn_history_from,
1857 to_insn_history_range>: New fields.
1858 (target_insn_history): New.
1859 (target_insn_history_from): New.
1860 (target_insn_history_range): New.
1861 * target.c (target_insn_history): New.
1862 (target_insn_history_from): New.
1863 (target_insn_history_range): New.
1864 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
1865 (record_insn_history_size): New.
1866 (get_insn_number): New.
1867 (get_context_size): New.
1869 (get_insn_history_modifiers): New.
1870 (cmd_record_insn_history): New.
1871 (_initialize_record): Add "set/show record instruction-history-size"
1872 command. Add "record instruction-history" command.
1874 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1876 * record.h (record_disconnect): New.
1877 (record_detach): New.
1878 (record_mourn_inferior): New.
1880 * record-full.c (record_disconnect, record_detach,
1881 record_mourn_inferior, record_kill): Move to...
1882 * record.c: ...here.
1885 (record_unpush): New.
1886 (cmd_record_stop): Call record_stop. Replace unpush_target
1887 call with record_unpush call.
1888 (record_disconnect, record_detach): Assert that the target
1889 is of record stratum. Call record_unpush, record_stop, and
1891 (record_mourn_inferior, record_kill): Assert that the target
1892 is of record stratum. Call record_unpush and DEBUG.
1894 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1896 * record-full.h, record-full.c (record_memory_query): Rename
1898 (record_full_memory_query): ...this. Update all users.
1899 (record_arch_list_add_reg): Rename to ...
1900 (record_full_arch_list_add_reg): ...this. Update all users.
1901 (record_arch_list_add_mem): Rename to ...
1902 (record_full_arch_list_add_mem): ...this. Update all users.
1903 (record_arch_list_add_end): Rename to ...
1904 (record_full_arch_list_add_end): ...this. Update all users.
1905 (record_gdb_operation_disable_set): Rename to ...
1906 (record_full_gdb_operation_disable_set): ...this.
1909 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1911 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
1912 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
1913 (RECORD_IS_REPLAY): Renamed to ...
1914 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
1915 (RECORD_FILE_MAGIC): Renamed to ...
1916 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
1917 (record_mem_entry): Renamed to ...
1918 (record_full_mem_entry): ... this. Updated all users.
1919 (record_reg_entry): Renamed to ...
1920 (record_full_reg_entry): ... this. Updated all users.
1921 (record_end_entry): Renamed to ...
1922 (record_full_end_entry): ... this. Updated all users.
1923 (record_type) <record_end, record_reg, record_mem>: Renamed
1925 (record_full_type) <record_full_end, record_full_reg,
1926 record_full_mem>: ... this. Updated all users.
1927 (record_entry): Renamed to ...
1928 (record_full_entry): ... this. Updated all users.
1929 (record_core_buf_entry): Renamed to ...
1930 (record_full_core_buf_entry): ... this. Updated all users.
1931 (record_core_regbuf): Renamed to ...
1932 (record_full_core_regbuf): ... this. Updated all users.
1933 (record_core_start): Renamed to ...
1934 (record_full_core_start): ... this. Updated all users.
1935 (record_core_end): Renamed to ...
1936 (record_full_core_end): ... this. Updated all users.
1937 (record_core_buf_list): Renamed to ...
1938 (record_full_core_buf_list): ... this. Updated all users.
1939 (record_first): Renamed to ...
1940 (record_full_first): ... this. Updated all users.
1941 (record_list): Renamed to ...
1942 (record_full_list): ... this. Updated all users.
1943 (record_arch_list_head): Renamed to ...
1944 (record_full_arch_list_head): ... this. Updated all users.
1945 (record_arch_list_tail): Renamed to ...
1946 (record_full_arch_list_tail): ... this. Updated all users.
1947 (record_stop_at_limit): Renamed to ...
1948 (record_full_stop_at_limit): ... this. Updated all users.
1949 (record_insn_max_num): Renamed to ...
1950 (record_full_insn_max_num): ... this. Updated all users.
1951 (record_insn_num): Renamed to ...
1952 (record_full_insn_num): ... this. Updated all users.
1953 (record_insn_count): Renamed to ...
1954 (record_full_insn_count): ... this. Updated all users.
1955 (record_ops): Renamed to ...
1956 (record_full_ops): ... this. Updated all users.
1957 (record_core_ops): Renamed to ...
1958 (record_full_core_ops): ... this. Updated all users.
1959 (set_record_cmdlist): Renamed to ...
1960 (set_record_full_cmdlist): ... this. Updated all users.
1961 (show_record_cmdlist): Renamed to ...
1962 (show_record_full_cmdlist): ... this. Updated all users.
1963 (record_cmdlist): Renamed to ...
1964 (record_full_cmdlist): ... this. Updated all users.
1965 (record_beneath_to_resume_ops): Renamed to ...
1966 (record_full_beneath_to_resume_ops): ... this. Updated all users.
1967 (record_beneath_to_resume): Renamed to ...
1968 (record_full_beneath_to_resume): ... this. Updated all users.
1969 (record_beneath_to_wait_ops): Renamed to ...
1970 (record_full_beneath_to_wait_ops): ... this. Updated all users.
1971 (record_beneath_to_wait): Renamed to ...
1972 (record_full_beneath_to_wait): ... this. Updated all users.
1973 (record_beneath_to_store_registers_ops): Renamed to ...
1974 (record_full_beneath_to_store_registers_ops): ... this.
1976 (record_beneath_to_store_registers): Renamed to ...
1977 (record_full_beneath_to_store_registers): ... this.
1979 (record_beneath_to_xfer_partial_ops): Renamed to ...
1980 (record_full_beneath_to_xfer_partial_ops): ... this.
1982 (record_beneath_to_xfer_partial): Renamed to ...
1983 (record_full_beneath_to_xfer_partial): ... this.
1985 (record_beneath_to_insert_breakpoint): Renamed to ...
1986 (record_full_beneath_to_insert_breakpoint): ... this.
1988 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
1989 (record_full_beneath_to_stopped_by_watchpoint): ... this.
1991 (record_beneath_to_stopped_data_address): Renamed to ...
1992 (record_full_beneath_to_stopped_data_address): ... this.
1994 (record_beneath_to_async): Renamed to ...
1995 (record_full_beneath_to_async): ... this. Updated all users.
1996 (record_goto_insn): Renamed to ...
1997 (record_full_goto_insn): ... this. Updated all users.
1998 (record_save): Renamed to ...
1999 (record_full_save): ... this. Updated all users.
2000 (record_reg_alloc): Renamed to ...
2001 (record_full_reg_alloc): ... this. Updated all users.
2002 (record_reg_release): Renamed to ...
2003 (record_full_reg_release): ... this. Updated all users.
2004 (record_mem_alloc): Renamed to ...
2005 (record_full_mem_alloc): ... this. Updated all users.
2006 (record_mem_release): Renamed to ...
2007 (record_full_mem_release): ... this. Updated all users.
2008 (record_end_alloc): Renamed to ...
2009 (record_full_end_alloc): ... this. Updated all users.
2010 (record_end_release): Renamed to ...
2011 (record_full_end_release): ... this. Updated all users.
2012 (record_entry_release): Renamed to ...
2013 (record_full_entry_release): ... this. Updated all users.
2014 (record_list_release): Renamed to ...
2015 (record_full_list_release): ... this. Updated all users.
2016 (record_list_release_following): Renamed to ...
2017 (record_full_list_release_following): ... this.
2019 (record_list_release_first): Renamed to ...
2020 (record_full_list_release_first): ... this. Updated all users.
2021 (record_arch_list_add): Renamed to ...
2022 (record_full_arch_list_add): ... this. Updated all users.
2023 (record_get_loc): Renamed to ...
2024 (record_full_get_loc): ... this. Updated all users.
2025 (record_check_insn_num): Renamed to ...
2026 (record_full_check_insn_num): ... this. Updated all users.
2027 (record_arch_list_cleanups): Renamed to ...
2028 (record_full_arch_list_cleanups): ... this. Updated all users.
2029 (record_message): Renamed to ...
2030 (record_full_message): ... this. Updated all users.
2031 (record_message_wrapper): Renamed to ...
2032 (record_full_message_wrapper): ... this. Updated all users.
2033 (record_message_wrapper_safe): Renamed to ...
2034 (record_full_message_wrapper_safe): ... this. Updated all users.
2035 (record_gdb_operation_disable): Renamed to ...
2036 (record_full_gdb_operation_disable): ... this. Updated all users.
2037 (record_hw_watchpoint): Renamed to ...
2038 (record_full_hw_watchpoint): ... this. Updated all users.
2039 (record_exec_insn): Renamed to ...
2040 (record_full_exec_insn): ... this. Updated all users.
2041 (record_restore): Renamed to ...
2042 (record_full_restore): ... this. Updated all users.
2043 (record_async_inferior_event_token): Renamed to ...
2044 (record_full_async_inferior_event_token): ... this.
2046 (record_async_inferior_event_handler): Renamed to ...
2047 (record_full_async_inferior_event_handler): ... this.
2049 (record_core_open_1): Renamed to ...
2050 (record_full_core_open_1): ... this. Updated all users.
2051 (record_open_1): Renamed to ...
2052 (record_full_open_1): ... this. Updated all users.
2053 (record_open): Renamed to ...
2054 (record_full_open): ... this. Updated all users.
2055 (record_close): Renamed to ...
2056 (record_full_close): ... this. Updated all users.
2057 (record_resume_step): Renamed to ...
2058 (record_full_resume_step): ... this. Updated all users.
2059 (record_resumed): Renamed to ...
2060 (record_full_resumed): ... this. Updated all users.
2061 (record_execution_dir): Renamed to ...
2062 (record_full_execution_dir): ... this. Updated all users.
2063 (record_resume): Renamed to ...
2064 (record_full_resume): ... this. Updated all users.
2065 (record_get_sig): Renamed to ...
2066 (record_full_get_sig): ... this. Updated all users.
2067 (record_sig_handler): Renamed to ...
2068 (record_full_sig_handler): ... this. Updated all users.
2069 (record_wait_cleanups): Renamed to ...
2070 (record_full_wait_cleanups): ... this. Updated all users.
2071 (record_wait_1): Renamed to ...
2072 (record_full_wait_1): ... this. Updated all users.
2073 (record_wait): Renamed to ...
2074 (record_full_wait): ... this. Updated all users.
2075 (record_stopped_by_watchpoint): Renamed to ...
2076 (record_full_stopped_by_watchpoint): ... this. Updated all users.
2077 (record_disconnect): Renamed to ...
2078 (record_full_disconnect): ... this. Updated all users.
2079 (record_detach): Renamed to ...
2080 (record_full_detach): ... this. Updated all users.
2081 (record_mourn_inferior): Renamed to ...
2082 (record_full_mourn_inferior): ... this. Updated all users.
2083 (record_kill): Renamed to ...
2084 (record_full_kill): ... this. Updated all users.
2085 (record_stopped_data_address): Renamed to ...
2086 (record_full_stopped_data_address): ... this. Updated all users.
2087 (record_registers_change): Renamed to ...
2088 (record_full_registers_change): ... this. Updated all users.
2089 (record_store_registers): Renamed to ...
2090 (record_full_store_registers): ... this. Updated all users.
2091 (record_xfer_partial): Renamed to ...
2092 (record_full_xfer_partial): ... this. Updated all users.
2093 (record_breakpoint): Renamed to ...
2094 (record_full_breakpoint): ... this. Updated all users.
2095 (record_breakpoint_p): Renamed to ...
2096 (record_full_breakpoint_p): ... this. Updated all users.
2097 (record_breakpoints): Renamed to ...
2098 (record_full_breakpoints): ... this. Updated all users.
2099 (record_sync_record_breakpoints): Renamed to ...
2100 (record_full_sync_record_breakpoints): ... this.
2102 (record_init_record_breakpoints): Renamed to ...
2103 (record_full_init_record_breakpoints): ... this.
2105 (record_insert_breakpoint): Renamed to ...
2106 (record_full_insert_breakpoint): ... this. Updated all users.
2107 (record_remove_breakpoint): Renamed to ...
2108 (record_full_remove_breakpoint): ... this. Updated all users.
2109 (record_can_execute_reverse): Renamed to ...
2110 (record_full_can_execute_reverse): ... this. Updated all users.
2111 (record_get_bookmark): Renamed to ...
2112 (record_full_get_bookmark): ... this. Updated all users.
2113 (record_goto_bookmark): Renamed to ...
2114 (record_full_goto_bookmark): ... this. Updated all users.
2115 (record_async): Renamed to ...
2116 (record_full_async): ... this. Updated all users.
2117 (record_can_async_p): Renamed to ...
2118 (record_full_can_async_p): ... this. Updated all users.
2119 (record_is_async_p): Renamed to ...
2120 (record_full_is_async_p): ... this. Updated all users.
2121 (record_execution_direction): Renamed to ...
2122 (record_full_execution_direction): ... this. Updated all users.
2123 (record_info): Renamed to ...
2124 (record_full_info): ... this. Updated all users.
2125 (record_delete): Renamed to ...
2126 (record_full_delete): ... this. Updated all users.
2127 (record_is_replaying): Renamed to ...
2128 (record_full_is_replaying): ... this. Updated all users.
2129 (record_goto_entry): Renamed to ...
2130 (record_full_goto_entry): ... this. Updated all users.
2131 (record_goto_begin): Renamed to ...
2132 (record_full_goto_begin): ... this. Updated all users.
2133 (record_goto_end): Renamed to ...
2134 (record_full_goto_end): ... this. Updated all users.
2135 (record_goto): Renamed to ...
2136 (record_full_goto): ... this. Updated all users.
2137 (init_record_ops): Renamed to ...
2138 (init_record_full_ops): ... this. Updated all users.
2139 (record_core_resume): Renamed to ...
2140 (record_full_core_resume): ... this. Updated all users.
2141 (record_core_kill): Renamed to ...
2142 (record_full_core_kill): ... this. Updated all users.
2143 (record_core_fetch_registers): Renamed to ...
2144 (record_full_core_fetch_registers): ... this. Updated all users.
2145 (record_core_prepare_to_store): Renamed to ...
2146 (record_full_core_prepare_to_store): ... this. Updated all users.
2147 (record_core_store_registers): Renamed to ...
2148 (record_full_core_store_registers): ... this. Updated all users.
2149 (record_core_xfer_partial): Renamed to ...
2150 (record_full_core_xfer_partial): ... this. Updated all users.
2151 (record_core_insert_breakpoint): Renamed to ...
2152 (record_full_core_insert_breakpoint): ... this. Updated all users.
2153 (record_core_remove_breakpoint): Renamed to ...
2154 (record_full_core_remove_breakpoint): ... this. Updated all users.
2155 (record_core_has_execution): Renamed to ...
2156 (record_full_core_has_execution): ... this. Updated all users.
2157 (init_record_core_ops): Renamed to ...
2158 (init_record_full_core_ops): ... this. Updated all users.
2159 (cmd_record_restore): Renamed to ...
2160 (cmd_record_full_restore): ... this. Updated all users.
2161 (record_save_cleanups): Renamed to ...
2162 (record_full_save_cleanups): ... this. Updated all users.
2163 (cmd_record_start): Renamed to ...
2164 (cmd_record_full_start): ... this. Updated all users.
2165 (set_record_insn_max_num): Renamed to ...
2166 (set_record_full_insn_max_num): ... this. Updated all users.
2167 (set_record_command): Renamed to ...
2168 (set_record_full_command): ... this. Updated all users.
2169 (show_record_command): Renamed to ...
2170 (show_record_full_command): ... this. Updated all users.
2171 (_initialize_record): Renamed to ...
2172 (_initialize_record_full): ... this. Updated all users.
2174 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2176 * record.h: Split into this and ...
2177 * record-full.h: ... this.
2178 * record.c: Split into this and ...
2179 * record-full.c: ... this.
2180 * target.h (target_ops): Add new fields to_info_record,
2181 to_save_record, to_delete_record, to_record_is_replaying,
2182 to_goto_record_begin, to_goto_record_end, to_goto_record.
2183 (target_info_record): New.
2184 (target_save_record): New.
2185 (target_supports_delete_record): New.
2186 (target_delete_record): New.
2187 (target_record_is_replaying): New.
2188 (target_goto_record_begin): New.
2189 (target_goto_record_end): New.
2190 (target_goto_record): New.
2191 * target.c (target_info_record): New.
2192 (target_save_record): New.
2193 (target_supports_delete_record): New.
2194 (target_delete_record): New.
2195 (target_record_is_replaying): New.
2196 (target_goto_record_begin): New.
2197 (target_goto_record_end): New.
2198 (target_goto_record): New.
2199 * record.h: Declare struct cmd_list_element.
2200 (record_cmdlist): New declaration.
2201 (set_record_cmdlist): New declaration.
2202 (show_record_cmdlist): New declaration.
2203 (info_record_cmdlist): New declaration.
2204 (cmd_record_goto): New declaration.
2205 * record.c: Remove unnecessary includes.
2207 (cmd_record_goto): Remove declaration.
2208 (record_cmdlist): Now extern. Initialize.
2209 (set_record_cmdlist): Now extern. Initialize.
2210 (show_record_cmdlist): Now extern. Initialize.
2211 (info_record_cmdlist): Now extern. Initialize.
2212 (find_record_target): New.
2213 (require_record_target): New.
2214 (cmd_record_start): Update.
2215 (cmd_record_delete): Remove target-specific code.
2216 Call target_delete_record.
2217 (cmd_record_stop): Unpush any record target.
2218 (set_record_insn_max_num): Move to record-full.c
2219 (set_record_command): Add comment.
2220 (show_record_command): Add comment.
2221 (info_record_command): Update comment.
2222 Remove target-specific code.
2223 Call the record target's to_info_record.
2224 (cmd_record_start): New.
2225 (cmd_record_goto): Now extern.
2226 Remove target-specific code.
2227 Call target_goto_begin, target_goto_end, or target_goto.
2228 (_initialize_record): Move record target ops initialization to
2230 Change "record" command help text.
2231 Move "record restore", "record set", and "record show" commands to
2233 * Makefile.in (SFILES): Add record-full.c.
2234 (HFILES_NO_SRCDIR): Add record-full.h.
2235 (COMMON_OBS): Add record-full.o.
2236 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
2237 * arm-tdep.c: Include record-full.h.
2238 * i386-linux-tdep.c: Include record-full.h instead of record.h.
2239 * i386-tdep.c: Include record-full.h.
2240 * infrun.c: Include record-full.h.
2241 * linux-record.c: Include record-full.h.
2242 * moxie-tdep.c: Include record-full.h.
2243 * record-full.c: Include record-full.h.
2244 Change module comment.
2245 (set_record_full_cmdlist): New.
2246 (show_record_full_cmdlist): New.
2247 (record_full_cmdlist): New.
2248 (record_goto_insn): New declaration.
2249 (record_save): New declaration.
2250 (record_check_insn_num): Change query string.
2252 (record_delete): New.
2253 (record_is_replaying): New.
2254 (record_goto_entry): New.
2255 (record_goto_begin): New.
2256 (record_goto_end): New.
2258 (init_record_ops): Update.
2259 (init_record_core_ops): Update.
2260 (cmd_record_save): Rename to record_save. Remove target and arg checks.
2261 (cmd_record_start): New.
2262 (set_record_insn_max_num): Moved from record.c
2263 (set_record_full_command): New.
2264 (show_record_full_command): New.
2265 (_initialize_record_full): New.
2267 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2269 * target.h (add_deprecated_target_alias): New.
2270 * target.c (add_deprecated_target_alias): New.
2272 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2274 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
2276 (linux_supports_btrace): Add kernel and
2278 (kernel_supports_btrace): New function.
2279 (cpu_supports_btrace): New function.
2280 (intel_supports_btrace): New function.
2282 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2284 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
2285 * remote.c: Include btrace.h.
2286 (struct btrace_target_info): New struct.
2287 (remote_supports_btrace): New function.
2288 (send_Qbtrace): New function.
2289 (remote_enable_btrace): New function.
2290 (remote_disable_btrace): New function.
2291 (remote_teardown_btrace): New function.
2292 (remote_read_btrace): New function.
2293 (init_remote_ops): Add btrace ops.
2294 (enum <unnamed>): Add btrace packets.
2295 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
2296 (_initialize_remote): Add packet configuration for branch tracing.
2298 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2300 * features/btrace.dtd: New file.
2301 * Makefile.in (XMLFILES): Add btrace.dtd.
2302 * btrace.h (parse_xml_btrace): New declaration.
2303 * btrace.c: Include xml-support.h.
2304 (parse_xml_btrace): New function.
2305 (parse_xml_btrace_block): New function.
2306 (block_attributes): New struct.
2307 (btrace_attributes): New struct.
2308 (btrace_children): New struct.
2309 (btrace_elements): New struct.
2311 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2313 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
2314 (amd64_linux_enable_btrace): New.
2315 (amd64_linux_disable_btrace): New.
2316 (amd64_linux_teardown_btrace): New.
2317 (_initialize_amd64_linux_nat): Initialize btrace ops.
2318 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
2319 (i386_linux_enable_btrace): New.
2320 (i386_linux_disable_btrace): New.
2321 (i386_linux_teardown_btrace): New.
2322 (_initialize_i386_linux_nat): Initialize btrace ops.
2323 * config/i386/linux.mh: Add linux-btrace.o.
2324 * config/i386/linux64.mh: Add linux-btrace.o.
2326 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2328 * common/linux_btrace.h: New file.
2329 * common/linux_btrace.c: New file.
2330 * Makefile.in (SFILES): Add btrace.c.
2331 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
2332 (COMMON_OBS): Add btrace.o.
2333 (linux-btrace.o): New rule.
2335 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2337 * target.h: Include btrace.h.
2338 (struct target_ops) <to_supports_btrace, to_enable_btrace,
2339 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
2340 * target.c (target_supports_btrace): New function.
2341 (target_enable_btrace): New function.
2342 (target_disable_btrace): New function.
2343 (target_teardown_btrace): New function.
2344 (target_read_btrace): New function.
2345 * btrace.h: New file.
2346 * btrace.c: New file.
2347 * Makefile.in: Add btrace.c.
2348 * gdbthread.h: Include btrace.h.
2349 (struct thread_info): Add btrace field.
2350 * thread.c: Include btrace.h.
2351 (clear_thread_inferior_resources): Call target_teardown_btrace.
2352 * common/btrace-common.h: New file.
2354 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2356 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
2357 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
2358 kill_status to outer block.
2360 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2362 Fix entry-values if the callee called a noreturn function.
2363 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
2364 get_frame_address_in_block. Add new comment.
2366 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2368 Fix entry-values in C++ across CUs.
2369 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
2370 lookup_minimal_symbol. Add a comment.
2372 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
2375 2013-03-08 Yao Qi <yao@codesourcery.com>
2377 * tracepoint.c (_initialize_tracepoint): Indent the code.
2379 2013-03-08 Pedro Alves <palves@redhat.com>
2381 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
2382 (parse_find_args, find_command): Change type of pattern buffer
2383 locals to 'gdb_byte *'.
2385 2013-03-08 Stan Shebs <stan@codesourcery.com>
2386 Hafiz Abid Qadeer <abidh@codesourcery.com>
2388 * NEWS: Mention set and show trace-buffer-size commands.
2390 * target.h (struct target_ops): New method
2391 to_set_trace_buffer_size.
2392 (target_set_trace_buffer_size): New macro.
2393 * target.c (update_current_target): Set up new method.
2394 * tracepoint.c (trace_buffer_size): New global.
2395 (start_tracing): Send it to the target.
2396 (set_trace_buffer_size): New function.
2397 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
2398 * remote.c (remote_set_trace_buffer_size): New function.
2399 (_initialize_remote): Use it.
2400 (QTBuffer:size) New remote command.
2401 (PACKET_QTBuffer_size): New enum.
2402 (remote_protocol_features): Add an entry for
2403 PACKET_QTBuffer_size.
2405 2013-03-08 Tom Tromey <tromey@redhat.com>
2407 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
2410 2013-03-07 Pedro Alves <palves@redhat.com>
2412 * target.c (target_read_stralloc, target_fileio_read_alloc):
2413 *Cast pointer to 'gdb_byte *' in target call.
2415 2013-03-07 Pedro Alves <palves@redhat.com>
2417 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
2420 2013-03-07 Keith Seitz <keiths@redhat.com>
2422 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
2423 (trace_pass_command): Likewise.
2424 * cli/cli-cmds.c: Include cli/cli-utils.h.
2425 (source_command): Use skip-spaces.
2426 (disassemble_command): Likewise.
2427 * findcmd.c: Include cli/cli-utils.h.
2428 (parse_find_args): Use skip_spaces.
2429 * go32-nat.c: Include cli/cli-utils.h.
2430 (go32_sldt): Use skip_spaces.
2431 (go32_sgdt): Likewise.
2432 (go32_sidt): Likewise.
2433 (go32_pde): Likewise.
2434 (go32_pte): Likewise.
2435 (go32_pte_for_address): Likewise.
2436 * infcmd.c: Include cli/cli-utils.h.
2437 (registers_info): Use skip_spaces.
2438 * linux-tdep.c (read_mapping): Use skip_spaces_const.
2439 (linux_info_proc): Likewise.
2440 * linux-thread-db.c: Include cli/cli-utils.h.
2441 (info_auto_load_libthread_db): Use skip_spaces_const.
2442 * m32r-rom.c: Include cli/cli-utils.h.
2443 (m32r_upload_command): Use skip_spaces.
2444 * maint.c: Include cli/cli-utils.h.
2445 (maintenance_translate_address): Use skip_spaces.
2446 * mi/mi-parse.c: Include cli/cli-utils.h.
2447 (mi_parse_argv): Use skip_spaces.
2448 (mi_parse): Likewise.
2449 * minsyms.c: Include cli/cli-utils.h.
2450 (msymbol_hash_iw): Use skip_spaces_const.
2451 * objc-lang.c: Include cli/cli-utils.h.
2452 (parse_selector): Use skip_spaces.
2453 (parse_method): Likewise.
2454 * python/python.c: Include cli/cli-utils.h.
2455 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
2456 (python_command)[HAVE_PYTHON]: Likewise.
2457 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
2458 * remote-m32r-sdi.c: Include cli/cli-utils.h.
2459 (m32r_load): Use skip_spaces.
2460 * serial.c: Include cli/cli-utils.h.
2461 (serial_open): Use skip_spaces_const.
2462 * stack.c: Include cli/cli-utils.h.
2463 (parse_frame_specification_1): Use skip_spaces_const.
2464 * symfile.c: Include cli/cli-utils.h.
2465 (set_ext_lang_command): Use skip_spaces.
2466 * symtab.c: Include cli/cli-utils.h.
2467 (rbreak_command): Use skip_spaces.
2468 * thread.c (thread_name_command): Use skip_spaces.
2469 * tracepoint.c (validate_actionline): Use skip_spaces.
2470 (encode_actions_1): Likewise.
2471 (trace_find_range_command): Likewise.
2472 (trace_find_outside_command): Likewise.
2473 (trace_dump_actions): Likewise.
2475 2013-03-07 Pedro Alves <palves@redhat.com>
2477 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
2478 * expprint.c (print_subexp_standard): Likewise.
2479 * utils.c (host_char_to_target): Likewise.
2480 * valprint.c (generic_emit_char, generic_printstr): Likewise.
2481 * varobj.c (value_get_print_value): Change type of local to char*.
2482 Cast it gdb_byte * in call to language printer.
2484 2013-03-07 Pedro Alves <palves@redhat.com>
2486 * charset.c (struct wchar_iterator) <input>: Change type to 'const
2488 (make_wchar_iterator): Remove cast to char*.
2489 (wchar_iterate): Change type of local.
2491 2013-03-07 Pedro Alves <palves@redhat.com>
2493 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
2494 for 'regcache->register_status'.
2496 2013-03-07 Pedro Alves <palves@redhat.com>
2498 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
2501 2013-03-07 Pedro Alves <palves@redhat.com>
2503 * stap-probe.c (handle_stap_probe): Add cast to char*.
2505 2013-03-07 Pedro Alves <palves@redhat.com>
2507 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
2508 RECORD_MSGRCV>: Pass a signed variable to
2509 regcache_raw_read_signed, instead of an unsigned one.
2511 2013-03-07 Pedro Alves <palves@redhat.com>
2513 * remote-notif.c (notif_debug): Change type to int.
2514 * remote-notif.h (notif_debug): Likewise.
2516 2013-03-07 Pedro Alves <palves@redhat.com>
2518 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
2520 2013-03-07 Pedro Alves <palves@redhat.com>
2522 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
2523 * remote.h (hex2bin, bin2hex): ... here.
2524 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
2526 2013-03-07 Eli Zaretskii <eliz@gnu.org>
2528 * utils.c (initialize_utils): Improve doc strings of "set/show
2529 width", "set/show height", and "set/show pagination".
2531 2013-03-06 Keith Seitz <keiths@redhat.com>
2533 * ax-gdb.c (gen_printf): Make FORMAT const.
2534 * ax-gdb.h (gen_printf): Likewise.
2535 * ax-general.c (ax_string): Make STR const.
2536 * ax.h (ax_string): Likewise.
2538 2013-03-06 Doug Evans <dje@google.com>
2540 * elfread.c (elf_symfile_read): Move debugging printf to more
2543 2013-03-06 Pedro Alves <palves@redhat.com>
2545 * python/py-utils.c (target_string_to_unicode): Delete function.
2546 * python/python-internal.h (target_string_to_unicode): Delete
2549 2013-03-06 Pierre Muller <muller@sourceware.org>
2551 * linespec.c (get_current_search_block): ARI fix, use (void)
2552 for empty parameter list.
2554 2013-03-05 Doug Evans <dje@google.com>
2556 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
2557 of old ada_lookup_symbol_list. In !full_search case, don't
2559 (ada_lookup_symbol_list): Delete arg full_search, all callers
2560 updated. Call ada_lookup_symbol_list_worker.
2561 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
2562 * ada-lang.h (ada_lookup_symbol_list): Update.
2563 * language.h (language_defn): Update comment for
2564 la_iterate_over_symbols.
2565 * linespec.c (iterate_over_file_blocks): New function.
2566 (iterate_over_all_matching_symtabs): Call it.
2567 (lookup_prefix_sym): Ditto.
2568 (get_current_search_block): New function.
2569 (get_search_block): Delete.
2570 (find_label_symbols): Call get_current_search_block.
2571 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
2572 * symtab.c (iterate_over_symbols): Don't search superblocks.
2574 2013-03-05 Yao Qi <yao@codesourcery.com>
2576 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
2577 parameter VAR's type from "unsigned int" to "int".
2578 * command.h (var_zuinteger_unlimited): Update its comments.
2579 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
2581 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
2583 * NEWS: Mention new target x86_64-*-cygwin*.
2585 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
2587 * configure.host: Add x86_64-*-cygwin* as host.
2588 * configure.tgt: Add x86_64-*-cygwin* as target.
2589 * config/i386/cygwin64.mh: New file.
2591 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2593 * linespec.c (decode_line_2): Fix duplicate request off by two message.
2595 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2597 * linespec.c (struct linespec_canonical_name): New.
2598 (struct linespec_state): Change canonical_names type to it.
2599 (add_sal_to_sals): Change variable canonical_name to canonical. Change
2600 xrealloc element size. Initialize the different CANONICAL fields.
2601 (canonical_to_fullform): New.
2602 (filter_results): Use it. Add variables canonical, fullform and
2604 (struct decode_line_2_item, decode_line_2_compare_items): New.
2605 (decode_line_2): Remove variables iter and item_names, add variables
2606 items and items_count. Modify the code for these new variables.
2608 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
2610 * coff-pe-read.c (read_pe_exported_syms): Don't return without
2613 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
2615 * tracepoint.c (build_traceframe_info): Add code for byte order.
2617 2013-03-02 Kevin Buettner <kevinb@redhat.com>
2619 * v850-tdep.c: (v850e2_register_name): Revise system register
2620 names to match current V850E2M architecture specifications.
2621 Update register number enum comments too.
2623 2013-03-01 Jiong Wang <jiwang@tilera.com>
2624 Pedro Alves <palves@redhat.com>
2626 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
2628 (tilegx_skip_prologue): Limit prologue analysis to section end.
2630 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2632 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
2635 2013-03-01 Pedro Alves <palves@redhat.com>
2637 Use gdb_byte for bytes from the program being debugged.
2639 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
2640 Change type of local 'buf' to gdb_byte.
2641 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
2642 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2643 * cris-tdep.c (cris_sigcontext_addr)
2644 (cris_sigtramp_frame_unwind_cache): Likewise.
2645 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
2646 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
2648 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
2649 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
2650 (hppa32_hpux_search_dummy_call_sequence)
2651 (hppa_hpux_supply_save_state): Likewise.
2652 * hppa-linux-tdep.c (insns_match_pattern)
2653 (hppa_linux_find_global_pointer): Likewise.
2654 * hppa-tdep.c (hppa_in_function_epilogue_p)
2655 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
2656 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
2657 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
2658 (i386fbsd_collect_uthread): Likewise.
2659 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
2660 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
2661 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
2662 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
2663 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
2664 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
2665 (ia64_libunwind_frame_prev_register)
2666 (ia64_libunwind_sigtramp_frame_this_id)
2667 (ia64_find_global_pointer_from_dynamic_section)
2668 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
2669 (ia64_unwind_pc): Likewise.
2670 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
2671 * m68hc11-tdep.c (m68hc11_push_dummy_call)
2672 (m68hc11_extract_return_value): Likewise.
2673 * m68klinux-nat.c (fetch_register, store_register): Likewise.
2674 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
2675 (mep_get_insn, mep_push_dummy_call): Likewise.
2676 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2677 (mips_linux_in_dynsym_stub): Likewise.
2678 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
2679 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
2680 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
2682 * remote-mips.c (mips_set_register): Likewise.
2683 * remote-sim.c (gdbsim_fetch_register): Likewise.
2684 * score-tdep.c (score7_fetch_inst): Change type of parameter
2685 'memblock' and local 'buf' to gdb_byte.
2686 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
2687 Change type of local 'buf' to gdb_byte. Adjust.
2688 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
2690 (score7_analyze_prologue): Change type of 'memblock' and
2691 'memblock_ptr' locals to gdb_byte*.
2692 * sh64-tdep.c (sh64_extract_return_value)
2693 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
2694 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
2695 * solib-pa64.c (pa64_solib_create_inferior_hook)
2696 (pa64_open_symbol_file_object): Remove local 'buf'.
2697 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
2698 (som_open_symbol_file_object): Likewise.
2699 * solib-spu.c (spu_current_sos): Likewise.
2700 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
2701 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
2702 (spu_store_registers): Likewise.
2703 * target.c (debug_print_register): Likewise.
2704 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
2705 * xstormy16-tdep.c (xstormy16_store_return_value)
2706 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
2707 (xstormy16_find_jmp_table_entry): Likewise.
2709 2013-03-01 Jiong Wang <jiwang@tilera.com>
2711 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
2712 (tilegx_gdbarch_init): Install it.
2714 2013-02-28 Tom Tromey <tromey@redhat.com>
2716 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
2719 2013-02-28 Doug Evans <dje@google.com>
2721 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
2722 * python/python.c (gdbpy_find_pc_line): Ditto.
2724 2013-02-28 Tom Tromey <tromey@redhat.com>
2726 * contrib/excheck.py: New file.
2727 * contrib/exsummary.py: New file.
2728 * contrib/gcc-with-excheck: New file.
2730 2013-02-28 Tom Tromey <tromey@redhat.com>
2732 * python/python.c (gdbpy_print_stack): Call begin_line and
2733 fprintf_filtered inside TRY_CATCH.
2735 2013-02-28 Tom Tromey <tromey@redhat.com>
2737 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
2740 2013-02-28 Tom Tromey <tromey@redhat.com>
2742 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
2743 frame_object_to_frame_info inside TRY_CATCH.
2745 2013-02-28 Tom Tromey <tromey@redhat.com>
2747 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
2750 2013-02-28 Tom Tromey <tromey@redhat.com>
2752 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
2754 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
2756 * windows-nat.c: Throughout, fix format strings and casts of
2757 printf-like functions to avoid type related warnings on all
2759 (handle_output_debug_string): Fetch context information address
2760 from debug string using string_to_core_addr.
2762 2013-02-27 Jiong Wang <jiwang@tilera.com>
2764 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
2765 * regformats/reg-tilegx32.dat: New.
2767 2013-02-27 Jiong Wang <jiwang@tilera.com>
2769 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
2771 2013-02-27 Jiong Wang <jiwang@tilera.com>
2773 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
2775 2013-02-27 Yao Qi <yao@codesourcery.com>
2776 Pedro Alves <palves@redhat.com>
2778 * tracepoint.c (tfile_trace_find): For tfind
2779 pc/tp/range/outside, look for the next trace frame instead of
2780 always starting from frame 0.
2782 2013-02-26 Anthony Green <green@moxielogic.com>
2784 * configure.tgt: Add support for moxie-*-rtems* target.
2786 2013-02-25 Pedro Alves <palves@redhat.com>
2788 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
2791 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
2793 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
2794 if $fp is used as the virtual frame pointer.
2796 2013-02-23 Alan Modra <amodra@gmail.com>
2798 * elfread.c (elf_symtab_read): Do not use udata.p here to find
2800 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
2801 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
2802 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
2803 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
2805 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2808 * elfread.c (build_id_bfd_get): Make the return type const.
2809 (build_id_verify): Make the check parameter const.
2810 (build_id_to_debug_filename): Make the build_id parameter and variable
2812 (find_separate_debug_file_by_buildid): Make the variable build_id const.
2814 2013-02-21 Alan Modra <amodra@gmail.com>
2816 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
2818 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
2820 Add a new method 'disassemble' to gdb.Architecture class.
2821 * python/py-arch.c (archpy_disassmble): Implementation of the
2822 new method gdb.Architecture.disassemble.
2823 (arch_object_methods): Add entry for the new method.
2825 2013-02-20 Jiong Wang <jiwang@tilera.com>
2827 * MAINTAINERS (Write After Approval): Add myself to the list.
2829 2013-02-19 Pedro Alves <palves@redhat.com>
2831 Garbage collect 'struct monitor_ops'::load_routine.
2833 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
2834 * monitor.c (monitor_load): No longer call
2835 current_monitor->load_routine.
2836 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
2837 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
2838 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
2840 2013-02-19 Pedro Alves <palves@redhat.com>
2844 Harmonize with generic_load.
2846 * monitor.c: Include "readline/readline.h".
2847 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
2848 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
2849 long/strtol for the 'load_offset' local. Error out if no argument
2850 is given or if too many arguments are given. Tilde expand the
2851 passed in file name.
2853 2013-02-19 Kai Tietz <ktietz@redhat.com>
2856 * symfile.c (load_section_data): Change type of load_offset
2858 (generic_load): User strtoulst instead of strtoul for conversion
2861 2013-02-19 Jiong Wang <jiwang@tilera.com>
2863 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
2864 for return address, "lr" register, saved on stack.
2865 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
2866 after we invoke tilegx_analyze_prologue.
2868 2013-02-19 Jiong Wang <jiwang@tilera.com>
2870 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
2872 2013-02-19 Jiong Wang <jiwang@tilera.com>
2874 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
2876 2013-02-19 Jiong Wang <jiwang@tilera.com>
2878 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
2879 (tilegx_write_pc): New function.
2880 (tilegx_cannot_reference_register): Return zero if REGNO
2881 is TILEGX_FAULTNUM_REGNUM.
2882 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
2883 (tilegx_register_name): Add handling of "faultnum" register.
2884 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
2885 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
2886 handling of TILEGX_FAULTNUM_REGNUM.
2887 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
2889 2013-02-19 Jiong Wang <jiwang@tilera.com>
2891 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
2892 should be aligned to 64bit.
2894 2013-02-19 Kai Tietz <ktietz@redhat.com>
2896 * windows-nat.c (windows_xfer_memory): Fix debug-output
2899 2013-02-19 Lei Liu <lei.liu2@windriver.com>
2901 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
2902 Don't check DSP register number if HAVE_DSP is not set.
2904 2013-02-19 Alan Modra <amodra@gmail.com>
2906 * elfread.c (struct build_id): Delete. Use struct elf_build_id
2907 throughout file instead.
2908 (build_id_bfd_get): Update to use new elf_tdata build_id field.
2909 Don't xmalloc return value.
2910 (build_id_verify): Similarly. Don't xfree.
2911 (build_id_to_debug_filename): Update.
2912 (find_separate_debug_file_by_buildid): Update, don't xfree.
2914 2013-02-18 Tom Tromey <tromey@redhat.com>
2917 * dwarf2read.c (read_subrange_type): Use result of
2920 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
2922 * frame.c: Remove one extra white space after #include
2925 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2927 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
2929 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2931 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
2932 and dir commands into an if block.
2934 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
2936 * python/py-breakpoint (struct pybp_code): Use int instead of
2939 2013-02-15 Pedro Alves <pedro@codesourcery.com>
2940 Hafiz Abid Qadeer <abidh@codesourcery.com>
2942 * NEWS: Mention new field "trace-file".
2943 * tracepoint.c (trace_status_mi): Output "trace-file" field.
2944 (tfile_open): Record the trace file's filename in the trace
2946 (tfile_files_info): Mention the name of the trace file.
2947 Check the "filename" field explicitely.
2948 (trace_status_command): Explicitely check "filename" field.
2949 (trace_find_command): Ditto.
2950 (trace_find_pc_command): Ditto.
2951 (trace_find_tracepoint_command): Ditto.
2952 (trace_find_line_command): Ditto.
2953 (trace_find_range_command): Ditto.
2954 (trace_find_outside_command): Ditto.
2955 * tracepoint.h (struct trace_status) <from_file>: Rename it
2956 to "filename" and make it hold the trace file's filename
2957 instead of a boolean.
2958 * remote.c (remote_get_trace_status): Initialize "filename"
2959 field with NULL instead of 0.
2961 2013-02-15 Yao Qi <yao@codesourcery.com>
2963 * remote.c: Fix a typo.
2965 2013-02-14 Pierre Muller <muller@sourceware.org>
2967 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
2969 2013-02-14 Pedro Alves <palves@redhat.com>
2971 * utils.c (savestring): Don't #undef it. Move function to
2972 common/common-utils.c.
2973 * common/common-utils.c: Include gdb_string.h.
2974 (savestring): Move here from utils.c.
2975 * common/common-utils.h (savestring): Declare.
2977 2013-02-14 Pedro Alves <palves@redhat.com>
2979 * utils.c (savestring): Rename parameter 'size' to 'len'.
2981 2013-02-14 Pedro Alves <palves@redhat.com>
2982 Yufeng Zhang <yufeng.zhang@arm.com>
2984 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
2985 (aarch64_inferior_data, struct aarch64_inferior_data):
2987 (struct aarch64_process_info): New.
2988 (aarch64_process_list): New global.
2989 (aarch64_find_process_pid, aarch64_add_process)
2990 (aarch64_process_info_get): New functions.
2991 (aarch64_inferior_data_get): Delete.
2992 (aarch64_process_info_get): New function.
2993 (aarch64_forget_process): New function.
2994 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
2995 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
2996 aarch64_get_debug_reg_state.
2997 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
2998 instead of linux_nat_iterate_watchpoint_lwps.
2999 (aarch64_linux_new_fork): New function.
3000 (aarch64_linux_child_post_startup_inferior): Use
3001 aarch64_forget_process instead of aarch64_init_debug_reg_state.
3002 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
3003 (aarch64_linux_remove_hw_breakpoint)
3004 (aarch64_handle_aligned_watchpoint)
3005 (aarch64_handle_unaligned_watchpoint)
3006 (aarch64_linux_insert_watchpoint)
3007 (aarch64_linux_remove_watchpoint)
3008 (aarch64_linux_stopped_data_address): Adjust to pass the current
3009 process id to aarch64_debug_reg_state.
3010 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
3011 linux_nat_new_fork hook, and aarch64_forget_process as
3012 linux_nat_forget_process hook; remove the call to
3013 register_inferior_data_with_cleanup.
3015 2013-02-14 Pedro Alves <palves@redhat.com>
3017 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
3018 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
3021 2013-02-14 Pedro Alves <pedro@codesourcery.com>
3022 Hafiz Abid Qadeer <abidh@codesourcery.com>
3024 * tracepoint.h (validate_trace_state_variable_name): Declare.
3025 * tracepoint.c (validate_trace_state_variable_name): New.
3026 (trace_variable_command): Parse the trace state variable's name
3027 without using parse_expression. Do several validations.
3028 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
3029 trace state variable's name with parse_expression. Validate it.
3031 2013-02-14 Yao Qi <yao@codesourcery.com>
3033 * infcmd.c (breakpoint_proceeded): Remove it.
3035 2013-02-14 Yao Qi <yao@codesourcery.com>
3037 * tracepoint.c (end_actions_pseudocommand): Make it static.
3038 (while_stepping_pseudocommand): Likewise.
3039 * tracepoint.h (end_actions_pseudocommand): Remove the
3041 (while_stepping_pseudocommand): Likewise.
3043 2013-02-14 Yao Qi <yao@codesourcery.com>
3045 * cli/cli-decode.c (help_cmd): Remove the declaration of
3047 (help_all): Likewise.
3049 2013-02-13 Pedro Alves <palves@redhat.com>
3051 * amd64-linux-nat.c (update_debug_registers_callback):
3053 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
3055 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
3056 i386_debug_reg_state.
3057 (amd64_linux_new_fork): New function.
3058 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
3059 linux_nat_new_fork hook, and i386_forget_process as
3060 linux_nat_forget_process hook.
3061 * i386-linux-nat.c (update_debug_registers_callback):
3063 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
3065 (i386_linux_prepare_to_resume): Pass the lwp's pid to
3066 i386_debug_reg_state.
3067 (i386_linux_new_fork): New function.
3068 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
3069 linux_nat_new_fork hook, and i386_forget_process as
3070 linux_nat_forget_process hook.
3071 * i386-nat.c (i386_init_dregs): Delete.
3072 (i386_inferior_data, struct i386_inferior_data):
3074 (struct i386_process_info): New.
3075 (i386_process_list): New global.
3076 (i386_find_process_pid, i386_add_process, i386_process_info_get):
3078 (i386_inferior_data_get): Delete.
3079 (i386_process_info_get): New function.
3080 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
3081 (i386_forget_process): New function.
3082 (i386_cleanup_dregs): Rewrite.
3083 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
3084 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
3085 (i386_stopped_data_address, i386_insert_hw_breakpoint)
3086 (i386_remove_hw_breakpoint): Adjust to pass the current process id
3087 to i386_debug_reg_state.
3088 (i386_use_watchpoints): Don't register inferior data.
3089 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
3091 (i386_forget_process): Declare.
3092 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
3093 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
3095 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
3096 (add_initial_lwp): New, factored out from ...
3097 (add_lwp): ... this. Don't check the number of lwps before
3098 calling linux_nat_new_thread.
3099 (linux_nat_iterate_watchpoint_lwps): Delete.
3100 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
3101 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
3103 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
3105 (linux_nat_kill, linux_nat_mourn_inferior): Call
3106 linux_nat_forget_process.
3107 (linux_nat_set_new_fork, linux_nat_set_forget_process)
3108 (linux_nat_forget_process): New functions.
3109 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
3111 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
3112 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
3114 (linux_nat_set_new_fork, linux_nat_set_forget_process)
3115 (linux_nat_forget_process): New declarations.
3117 * amd64fbsd-nat.c (super_mourn_inferior): New global.
3118 (amd64fbsd_mourn_inferior): New function.
3119 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
3120 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
3122 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
3124 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
3127 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
3129 * aarch64-linux-nat.c (debug_reg_change_callback)
3130 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
3133 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
3135 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
3138 2013-02-13 Pedro Alves <palves@redhat.com>
3139 Hafiz Abid Qadeer <abidh@codesourcery.com>
3141 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
3143 2013-02-12 Tom Tromey <tromey@redhat.com>
3146 * c-exp.y (lex_one_token): Initialize other fields of yylval on
3148 (classify_inner_name): Remove 'first_name' argument, add
3149 'context'. Remove unused variable.
3150 (yylex): Explicitly maintain the context type. Exit loop earlier
3151 if NAME result is seen.
3153 2013-02-12 Pedro Alves <palves@redhat.com>
3155 * amd64-darwin-tdep.c: Add (C) after Copyright.
3156 * cli/cli-cmds.h: Ditto.
3157 * cli/cli-decode.c: Ditto.
3158 * cli/cli-decode.h: Ditto.
3159 * cli/cli-dump.c: Ditto.
3160 * cli/cli-dump.h: Ditto.
3161 * cli/cli-interp.c: Ditto.
3162 * cli/cli-logging.c: Ditto.
3163 * cli/cli-script.c: Ditto.
3164 * cli/cli-script.h: Ditto.
3165 * cli/cli-setshow.c: Ditto.
3166 * cli/cli-setshow.h: Ditto.
3167 * cli/cli-utils.c: Ditto.
3168 * cli/cli-utils.h: Ditto.
3169 * config/alpha/nm-osf3.h: Ditto.
3170 * config/djgpp/djconfig.sh: Ditto.
3171 * config/i386/nm-fbsd.h: Ditto.
3172 * config/i386/nm-i386gnu.h: Ditto.
3173 * config/nm-linux.h: Ditto.
3174 * config/nm-nto.h: Ditto.
3175 * config/rs6000/nm-rs6000.h: Ditto.
3176 * config/sparc/nm-sol2.h: Ditto.
3177 * darwin-nat-info.c: Ditto.
3180 * gdb-demangle.h: Ditto.
3181 * i386-darwin-nat.c: Ditto.
3182 * i386-darwin-tdep.c: Ditto.
3183 * linux-fork.h: Ditto.
3184 * m32c-tdep.c: Ditto.
3185 * microblaze-linux-tdep.c: Ditto.
3186 * microblaze-rom.c: Ditto.
3187 * microblaze-tdep.c: Ditto.
3188 * microblaze-tdep.h: Ditto.
3189 * mips-linux-tdep.h: Ditto.
3190 * ppc-ravenscar-thread.c: Ditto.
3191 * ppc-ravenscar-thread.h: Ditto.
3192 * prologue-value.c: Ditto.
3193 * prologue-value.h: Ditto.
3194 * ravenscar-thread.c: Ditto.
3195 * ravenscar-thread.h: Ditto.
3196 * sparc-ravenscar-thread.c: Ditto.
3197 * sparc-ravenscar-thread.h: Ditto.
3198 * tilegx-linux-tdep.c: Ditto.
3199 * unwind_stop_reasons.def: Ditto.
3200 * windows-nat.h: Ditto.
3201 * xtensa-linux-tdep.c: Ditto.
3202 * xtensa-xtregs.c: Ditto.
3203 * regformats/regdat.sh: Ditto.
3204 * regformats/regdef.h: Ditto.
3206 2013-02-12 Pedro Alves <palves@redhat.com>
3208 * break-catch-sig.c: Update copyright years.
3210 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
3212 Add support for a destructor for ui_out data and use it to
3213 provide a ui_out destructor.
3214 * ui-out.h: Declare the new ui_out destructor.
3215 (ui_out_impl): Add a field for data destructor in ui_out_impl.
3216 * ui-out.c (default_data_destroy): Add a default data destructor
3218 (default_ui_out_impl): Set the new data_destroy field to
3219 default_data_destroy
3220 (uo_data_destroy): Local function which invokes the data
3221 destructor if present.
3222 (clear_table): Local function which clears the table data of a
3224 (ui_out_destroy): Public function which frees a ui_out object.
3225 (ui_out_table_end): Use the new clear_table function.
3226 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
3228 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
3231 2013-02-11 Doug Evans <dje@google.com>
3233 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
3234 (printf_decfloat): New function. Broken out from ui_printf.
3235 Remove unnecessary code to shift the entire format string down.
3236 (printf_pointer): New function.
3237 (ui_printf): Code to print C strings, wide C strings, decfloats,
3238 and pointers moved to separate functions.
3240 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
3242 * valops.c (value_assign): Handling bitfield offset in
3243 `lval_internalvar_component' case.
3245 2013-02-08 Doug Evans <dje@google.com>
3247 * common/format.c (parse_format_string): Fix whitespace.
3249 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
3251 * stack.c (return_command): Work around uninitialized variable
3254 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
3256 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
3257 number of the registers from 36 to 34.
3259 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
3261 * NEWS: Mention new AArch64 native and target support.
3263 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
3265 * MAINTAINERS (Write After Approval): Add myself.
3267 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
3268 Marcus Shawcroft <marcus.shawcroft@arm.com>
3269 Nigel Stephens <nigel.stephens@arm.com>
3270 Yufeng Zhang <yufeng.zhang@arm.com>
3272 * aarch64-linux-nat.c: New file.
3273 * config/aarch64/linux.mh: New file.
3274 * configure.host: Add AArch64.
3275 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
3277 2013-02-07 Doug Evans <dje@google.com>
3279 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
3280 disassemble command.
3282 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
3284 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
3285 set_gdbarch_fetch_tls_load_module_address.
3287 2013-02-06 David S. Miller <davem@davemloft.net>
3289 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
3290 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
3291 * value.c (struct_return_convention): New function.
3292 (using_struct_return): Implement in terms of struct_return_convention.
3293 * value.h (struct_return_convention): Declare.
3294 * stack.c (return_command): Allow successful overriding of the return
3295 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
3297 2013-02-06 Tom Tromey <tromey@redhat.com>
3299 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
3300 outside of TRY_CATCH.
3302 2013-02-06 Yao Qi <yao@codesourcery.com>
3304 * mi/mi-interp.c: Include "tracepoint.h".
3305 (mi_tsv_modified): Declare.
3306 (mi_tsv_created, mi_tsv_deleted): Update declaration.
3307 (mi_interpreter_init): Call observer_attach_tsv_modified.
3308 (mi_tsv_modified): New.
3309 (mi_tsv_created, mi_tsv_deleted): Update.
3310 * tracepoint.c (trace_variable_command): Call
3311 observer_notify_tsv_modified if the initial value of tsv is
3313 (delete_trace_state_variable): Call
3314 observer_notify_tsv_deleted earlier.
3315 (trace_variable_command): Caller update.
3316 (create_tsv_from_upload): Likewise.
3317 * observer.sh: Declare "struct trace_state_variable".
3319 * NEWS: Mention the new MI notification "=tsv-modified".
3321 2013-02-05 Doug Evans <dje@google.com>
3323 * completer.c (location_completer): Fix typo in comment.
3325 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3327 * breakpoint.c (add_location_to_breakpoint): Insert the location with
3330 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
3332 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
3333 Refactor if statement to avoid trailing || operator.
3335 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
3337 * NEWS: Add PowerPC FreeBSD as a new native configuration.
3339 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
3341 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
3342 * configure.host: Add powerpc*-*-freebsd* target.
3343 * configure.tgt: Add target info for powerpc*-*-freebsd*.
3344 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
3345 * config/powerpc/fbsd.mh: New file.
3347 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
3348 Denys Vlasenko <dvlasenk@redhat.com>
3349 Pedro Alves <palves@redhat.com>
3351 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
3352 (struct elf_internal_linux_prpsinfo): Forward declare.
3353 * gdbarch.h, gdbarch.c: Regenerate.
3354 * linux-tdep.c: Include `cli/cli-utils.h'.
3355 (linux_fill_prpsinfo): New function.
3356 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
3357 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
3358 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
3359 depending on gdbarch pointer bitness.
3360 * ppc-linux-tdep.c: Include elf-bfd.h.
3361 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
3364 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
3365 Marcus Shawcroft <marcus.shawcroft@arm.com>
3366 Nigel Stephens <nigel.stephens@arm.com>
3367 Yufeng Zhang <yufeng.zhang@arm.com>
3369 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
3371 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
3372 Marcus Shawcroft <marcus.shawcroft@arm.com>
3373 Nigel Stephens <nigel.stephens@arm.com>
3374 Yufeng Zhang <yufeng.zhang@arm.com>
3376 * aarch64-newlib-tdep.c: New file.
3377 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
3379 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
3380 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
3381 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
3382 * osabi.c (gdb_osabi_names): Add "Newlib".
3384 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
3385 Marcus Shawcroft <marcus.shawcroft@arm.com>
3386 Nigel Stephens <nigel.stephens@arm.com>
3387 Yufeng Zhang <yufeng.zhang@arm.com>
3389 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
3390 (ALLDEPFILES): Add aarch64-linux-tdep.c.
3391 * aarch64-linux-tdep.c: New file.
3392 * aarch64-linux-tdep.h: New file.
3393 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
3394 * configure.tgt: Add aarch64-none-linux-gnu.
3396 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
3397 Marcus Shawcroft <marcus.shawcroft@arm.com>
3398 Nigel Stephens <nigel.stephens@arm.com>
3399 Yufeng Zhang <yufeng.zhang@arm.com>
3401 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
3402 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
3403 (ALLDEPFILES): Add aarch64-tdep.c.
3404 * aarch64-tdep.c: New file.
3405 * aarch64-tdep.h: New file.
3406 * configure.tgt: Add AArch64.
3407 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
3408 (aarch64-expedite): New definition.
3409 * features/aarch64-core.xml: New file.
3410 * features/aarch64-fpu.xml: New file.
3411 * features/aarch64-without-fpu.c: New file (generated).
3412 * features/aarch64-without-fpu.xml: New file.
3413 * features/aarch64.c: New file (generated).
3414 * features/aarch64.xml: New file.
3415 * regformats/aarch64-without-fpu.dat: New file (generated).
3416 * regformats/aarch64.dat: New file (generated).
3418 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3420 * contrib/expect-read1.c: New file.
3421 * contrib/expect-read1.sh: New file.
3423 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3425 * dwarf2read.c (file_file_name): New function with code from
3427 (file_full_name): Move most of the code to file_file_name.
3428 (macro_start_file): Rename variable full_name to file_name and use
3429 file_file_name for it. Add comp_dir parameter to new_macro_table.
3430 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
3431 macro_source_file->filename access by macro_source_fullname call.
3432 * macroscope.c (_initialize_macroscope): Update the new_macro_table
3434 * macrotab.c (struct macro_table): New field comp_dir.
3435 (macro_include): New variables link_fullname and source_fullname.
3436 Replace any macro_source_file->filename access by macro_source_fullname
3438 (macro_lookup_inclusion): Remove the partial filenames checking code.
3439 (check_for_redefinition): New variables source_fullname and
3440 found_key_fullname. Replace any macro_source_file->filename access by
3441 macro_source_fullname call.
3442 (macro_undef): New variables source_fullname and key_fullname. Replace
3443 any macro_source_file->filename access by macro_source_fullname call.
3444 (macro_lookup_definition): New variables retval and source_fullname.
3445 Replace any macro_source_file->filename access by macro_source_fullname
3447 (foreach_macro): New variable key_fullname. Replace any
3448 macro_source_file->filename access by macro_source_fullname call.
3449 (foreach_macro_in_scope): New variable datum_fullname. Replace any
3450 macro_source_file->filename access by macro_source_fullname call.
3451 (new_macro_table): Add parameter comp_dir. Initialize T with it.
3452 (macro_source_fullname): New function.
3453 * macrotab.h (struct macro_source_file): Extent the filename field
3455 (new_macro_table): New parameter comp_dir, add a comment for it.
3456 (macro_source_fullname): new declaration.
3458 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3460 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
3461 this_real_name to outer block. Use it also for
3462 compare_filenames_for_search.
3463 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
3464 with dw2_get_real_path for file_matcher, considering also
3465 BASENAMES_MAY_DIFFER.
3466 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
3468 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3470 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
3471 to the file_matcher parameter. Pass 0 to it.
3472 (dwarf2_create_include_psymtab): Copy also DIRNAME.
3473 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
3474 NULL psymtab_to_fullname result.
3475 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
3476 an expected filename instead.
3477 (expand_symtabs_matching_via_partial): Add basenames parameter to the
3478 file_matcher parameter. Call also psymtab_to_fullname, after newly
3479 considering BASENAMES_MAY_DIFFER.
3480 * source.c (rewrite_source_path): Remove static.
3481 * source.h (rewrite_source_path): New declaration.
3482 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
3483 the expand_symtabs_matching field. Comment it.
3484 * symtab.c (file_matches): New function comment. Add parameter
3485 basenames, implement it.
3486 (search_symbols_file_matches): Add basenames parameter. Update the
3487 file_matches caller.
3488 (search_symbols): Match FILES also against symtab_to_fullname.
3489 Optimize it for BASENAMES_MAY_DIFFER.
3491 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3493 * source.c (print_source_lines_base): Print for TUI also "fullname".
3494 * tui/tui-data.c (init_content_element): Change tui_locator_element
3496 * tui/tui-data.h (struct tui_locator_element): Likewise.
3497 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
3498 tui_update_locator_filename calls to tui_update_locator_fullname.
3499 Replace symtab->filename refererence by symtab_to_fullname call.
3500 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
3501 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
3502 field to full_name. Replace symtab->filename refererence by
3503 symtab_to_fullname call.
3504 (tui_show_symtab_source): Rename parameter to fullname. Change
3505 tui_locator_element field to full_name.
3506 * tui/tui-stack.c: Include source.h.
3507 (tui_set_locator_filename): Rename the declaration to ...
3508 (tui_set_locator_fullname): ... here. Rename its parameter to
3509 fullname, updates its comment.
3510 (tui_set_locator_info): Rename its parameter to fullname.
3511 (tui_set_locator_filename): Rename the definition to ...
3512 (tui_set_locator_fullname): ... here. Rename its parameter to
3513 fullname, updates its comment. Change tui_locator_element field to
3515 (tui_set_locator_info): Rename its parameter to fullname.
3516 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
3517 (tui_update_locator_filename): Rename to ...
3518 (tui_update_locator_fullname): ... here. Rename callee to
3519 tui_set_locator_fullname.
3520 (tui_show_frame_info): Replace symtab->filename refererence by
3521 symtab_to_fullname call.
3522 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
3523 (tui_update_locator_fullname): ... here.
3524 * tui/tui-winsource.c (tui_display_main): Rename the callee to
3525 tui_update_locator_fullname. Replace symtab->filename refererence by
3526 symtab_to_fullname call.
3527 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
3528 Rename the callee to tui_update_locator_fullname.
3529 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
3531 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3533 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
3534 by symtab_to_filename_for_display calls.
3535 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
3536 (clear_command): New variable sal_fullname, initialize it. Replace
3537 compare_filenames_for_search by filename_cmp with sal_fullname.
3538 (say_where, update_static_tracepoint): Replace symtab->filename
3539 refererences by symtab_to_filename_for_display calls.
3540 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
3542 * dwarf2read.c: Include source.h.
3543 (fixup_go_packaging): Replace symtab->filename refererences by
3544 symtab_to_filename_for_display calls.
3545 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
3546 Replace symtab->filename refererences by symtab_to_filename_for_display
3548 (create_sals_line_offset, convert_linespec_to_sals): New variable
3549 fullname, initialize it, replace symtab->filename reference by the
3551 * linux-fork.c: Include source.h.
3552 (info_checkpoints_command): Replace symtab->filename refererences by
3553 symtab_to_filename_for_display calls.
3554 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
3555 by symtab_to_filename_for_display calls.
3556 * mdebugread.c: Include source.h.
3557 (psymtab_to_symtab_1): Replace symtab->filename refererences by
3558 symtab_to_filename_for_display calls.
3559 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3560 (mi_cmd_file_list_exec_source_files): Likewise.
3561 * printcmd.c: Include source.h.
3562 (build_address_symbolic): Replace symtab->filename refererences by
3563 symtab_to_filename_for_display calls.
3564 * psymtab.c (partial_map_symtabs_matching_filename)
3565 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
3566 with psymtab_to_fullname.
3567 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
3568 by symtab_to_filename_for_display calls.
3569 (stpy_get_filename): New variable filename, initialize it, use instead
3570 of symtab->filename refererences.
3571 (salpy_str): Make variable filename const char *. Replace
3572 symtab->filename refererences by symtab_to_filename_for_display calls.
3573 * skip.c: Include source.h and filenames.h.
3574 (skip_file_command): Remove const from the symtab variable. Replace
3575 symtab->filename refererences by symtab_to_fullname call.
3576 (function_name_is_marked_for_skip): New variables searched_for_fullname
3577 and fullname. Use them to search also with symtab's fullname.
3578 * source.c (find_source_lines): Replace symtab->filename refererences
3579 by symtab_to_filename_for_display calls.
3580 (print_source_lines_base): New variable filename, use it instead of
3581 symtab->filename. Replace symtab->filename refererences by
3582 symtab_to_filename_for_display calls.
3583 (line_info, forward_search_command): Replace symtab->filename
3584 refererences by symtab_to_filename_for_display calls.
3585 (reverse_search_command): Replace symtab->filename refererences by
3586 symtab_to_filename_for_display calls. New variable filename for it.
3587 * stack.c (frame_info): Likewise.
3588 * symmisc.c: Include source.h.
3589 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
3590 (maintenance_info_symtabs): Replace symtab->filename refererences by
3591 symtab_to_filename_for_display calls.
3592 * symtab.c (iterate_over_some_symtabs): Call
3593 compare_filenames_for_search also with symtab_to_fullname.
3594 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
3595 symtab->filename refererences by symtab_to_filename_for_display calls.
3596 (find_line_symtab): Replace symtab->filename refererences by
3597 symtab_to_filename_for_display calls.
3598 (file_matches): Replace filename_cmp by compare_filenames_for_search.
3599 (print_symbol_info): Make the last parameter const char *. New
3600 variable s_filename. Use it in the function.
3601 (symtab_symbol_info): Make the last_filename variable const char *.
3602 Replace symtab->filename refererences by symtab_to_filename_for_display
3604 (rbreak_command): New variable fullname. Use it. Replace
3605 symtab->filename refererence by symtab_to_filename_for_display call.
3606 * tracepoint.c (set_traceframe_context, trace_find_line_command)
3607 (print_one_static_tracepoint_marker): Replace symtab->filename
3608 refererences by symtab_to_filename_for_display calls.
3609 * tui/tui-source.c (tui_set_source_content): New variables filename and
3610 s_filename. Replace symtab->filename refererences by this variable.
3611 Replace other symtab->filename refererences by
3612 symtab_to_filename_for_display calls.
3614 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
3615 Jan Kratochvil <jan.kratochvil@redhat.com>
3617 Add a new variable that controls a way in which filenames are
3619 * NEWS (set filename-display): New entry.
3620 * source.c (filename_display_basename, filename_display_relative)
3621 (filename_display_absolute, filename_display_kind_names)
3622 (filename_display_string, show_filename_display_string)
3623 (symtab_to_filename_for_display): New.
3624 (_initialize_source): Added initialization of 'filename-display'
3626 * source.h (symtab_to_filename_for_display): Added declaration.
3627 * stack.c (print_frame): Added new variable and calling of a new
3628 function and condition with this variable. Changed third argument of
3629 calling of a function.
3631 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3633 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
3634 Rename field reference filename to fullname.
3635 * tui/tui-data.h (struct tui_source_info): Rename field filename to
3636 fullname. New comment for it.
3637 * tui/tui-source.c (tui_set_source_content): Rename field reference
3638 filename to fullname. Initialize field by symtab_to_fullname now.
3639 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
3640 reference filename to fullname. Use symtab_to_fullname during
3643 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3646 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
3647 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
3648 filename to fullname. Rename variable this_name to this_fullname.
3649 Lowercase FILENAME_CMP call.
3650 (dw2_find_symbol_file): New comment for the returned string.
3651 (dwarf2_gdb_index_functions): Rename the function to
3652 dw2_expand_symtabs_with_fullname.
3653 * psymtab.c (read_psymtabs_with_filename): Rename to ...
3654 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
3656 (psym_functions): Rename the function to read_psymtabs_with_fullname.
3657 * symfile.h (struct quick_symbol_functions): Rename field
3658 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
3659 parameter filename to fullname. Document returned string meaning for
3661 * symtab.c (find_line_symtab): Rename the called function to
3662 expand_symtabs_with_fullname.
3664 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3667 * breakpoint.c (clear_command): Remove variable is_abs, unify the
3668 call of filename_cmp with compare_filenames_for_search.
3669 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
3670 is_abs, unify the call of FILENAME_CMP with
3671 compare_filenames_for_search. New gdb_asserts for real_path and name.
3672 Unify the call of compare_filenames_for_search with FILENAME_CMP.
3673 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
3674 * symfile.h (struct quick_symbol_functions): Extend the comment for
3675 map_symtabs_matching_filename.
3676 * symtab.c (compare_filenames_for_search): Remove the function comment
3677 relative path requirement. Handle absolute filenames, with a comment.
3678 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
3679 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
3680 real_path and name. Unify the call of compare_filenames_for_search
3682 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
3684 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3687 * breakpoint.c (print_breakpoint_location): Replace bp_location field
3688 source_file references by symtab field references. Remove variables
3690 (momentary_breakpoint_from_master, add_location_to_breakpoint):
3691 (clear_command, say_where): Replace bp_location field source_file
3692 references by symtab field references.
3693 (bp_location_dtor): Remove the source_file reference.
3694 (update_static_tracepoint): Replace bp_location field source_file
3695 references by symtab field references.
3696 (breakpoint_free_objfile): New function.
3697 * breakpoint.h (struct bp_location): Extend the comment for line_number.
3698 Replace the field source_file by field symtab, extend its comment.
3699 (breakpoint_free_objfile): New declaration.
3700 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
3701 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
3702 field source_file references by symtab field references.
3704 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3706 Replace xfullpath calls by gdb_realpath calls.
3707 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
3709 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
3710 Remove it from the iterate_over_some_symtabs call.
3711 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
3712 Remove it from the dw2_map_expand_apply calls, remove a block handling
3714 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
3715 Remove it from the iterate_over_some_symtabs call.
3716 (partial_map_symtabs_matching_filename): Remove parameter full_path.
3717 Remove it from the partial_map_expand_apply calls, remove a block
3718 handling it. Drop gdb_realpath call and cleanups from the real_path
3720 * source.c (openp): Drop the comment part about xfullpath. Replace
3721 xfullpath calls by gdb_realpath calls.
3722 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
3723 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
3724 from method map_symtabs_matching_filename and its comment.
3725 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
3727 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
3728 remove it also from the function comment, remove a block handling it.
3729 Drop gdb_realpath call and cleanups from the real_path handling.
3730 (iterate_over_symtabs): Drop variable full_path and its use.
3731 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
3732 * utils.c (xfullpath): Remove.
3733 * utils.h (xfullpath): Remove.
3735 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
3737 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
3738 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
3739 (ALLDEPFILES): Add ppc64-tdep.c.
3740 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
3741 ppc64-tdep.o to gdb_target_obs.
3742 * ppc64-tdep.h: New file.
3743 * ppc64-tdep.c: New file.
3744 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
3745 ppc-linux-tdep.c to here.
3746 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
3747 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
3748 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
3749 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
3750 from ppc-linux-tdep.c to here.
3751 (ppc64_convert_from_func_ptr_addr): Rename from
3752 ppc64_linux_convert_from_func_ptr_addr to
3753 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
3756 (read_insn): Move from ppc-linux-tdep.c to here.
3757 (insns_match_pattern, insn_d_field, insn_ds_field): Move
3758 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
3759 * ppc-linux-tdep.c: Include ppc64-tdep.h.
3760 Removed above functions.
3761 (ppc_linux_init_abi): Adjust.
3763 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
3765 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
3767 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
3769 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
3771 2013-02-01 Pedro Alves <palves@redhat.com>
3773 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
3774 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
3776 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3778 * elfread.c (elf_symfile_read): Limit separate debug info additions to
3779 files with no separate debug info.
3780 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
3781 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
3782 only for files with no separate debug info.
3784 2013-01-31 Tom Tromey <tromey@redhat.com>
3786 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
3788 (struct jit_program_space_data): Rename from jit_inferior_data.
3790 (get_jit_program_space_data): Rename from get_jit_inferior_data.
3791 Change return type. Attach data to program space.
3792 (jit_program_space_data_cleanup): Rename from
3793 jit_inferior_data_cleanup; change argument type.
3794 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
3796 (jit_register_code): Update.
3797 (jit_update_inferior_cache): Remove.
3798 (jit_breakpoint_deleted): Get jit data from the location's program
3800 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
3801 'ps_data', change type.
3802 (jit_inferior_init, jit_breakpoint_re_set_internal)
3803 (jit_event_handler): Update.
3804 (free_objfile_data): Get data from objfile's program space.
3805 (_initialize_jit): Update.
3807 2013-01-31 Tom Tromey <tromey@redhat.com>
3810 * jit.c (struct jit_inferior_data) <cached_code_address,
3811 jit_breakpoint>: New fields.
3812 (jit_breakpoint_re_set_internal): Fix logging. Only create
3813 breakpoint if cached address has changed.
3814 (jit_update_inferior_cache, jit_breakpoint_deleted): New
3816 (_initialize_jit): Register breakpoint deleted observer.
3818 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3820 * infrun.c (handle_syscall_event): Remove unused gdbarch.
3821 (save_infcall_suspend_state): Ifdef out unused inf.
3822 (restore_infcall_suspend_state): Ifdef out unused inf.
3823 * jit.c (jit_register_code): Remove unused i, b, inf_data.
3824 (jit_frame_sniffer): Remove unused inf_data.
3826 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3828 * c-exp.y (classify_inner_name): Remove unused type.
3829 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
3830 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
3832 (c_get_string): Remove unused kind.
3833 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
3835 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3837 * charset.c (intermediate_encoding): Remove unused i.
3838 * completer.c (signal_completer): Remove unused i.
3839 * continuations.c (discard_my_continuations_1): Remove unused
3841 * corelow.c (core_close): Remove unuseD name.
3842 (get_core_siginfo): Remove unused pid.
3843 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
3845 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
3846 (loclist_describe_location): Remove unused first.
3847 * event-top.c (command_line_handler): Remove unused got_eof.
3848 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
3849 (resize_section_table): Remove unused old_value.
3850 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
3851 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
3852 * i386-tdep.c (i386_process_record): Remove unused rex.
3853 * infcmd.c (get_return_value): Remove unused uiout.
3854 * jv-lang.c (type_from_class): Remove unused is_array.
3855 * jv-valprint.c (java_val_print): Remove unused i.
3856 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
3857 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
3858 * m2-typeprint.c (m2_print_type): Remove unused code.
3859 * macroexp.c (get_character_constant): Remove unused body_start.
3860 (macro_stringify): Remove unused result.
3861 * objc-lang.c (find_methods): Remove unused gdbarch.
3862 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
3863 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
3864 * stack.c (print_frame_args): Remove unused summary.
3865 * thread.c (thread_apply_command): Remove unused p.
3866 * valarith.c (value_x_unop): Remove unused mangle_ptr.
3867 * valops.c (search_struct_method): Remove unused skip.
3868 * valprint.c (generic_val_print): Remove unused byte_order.
3869 * varobj.c (varobj_update): Remove unused changed.
3870 * cli/cli-cmds.c (complete_command): Remove unused next_item.
3871 (alias_command): Remove unused c.
3872 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
3873 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
3875 (mi_cmd_data_write_memory): Remove unused word_format.
3876 (mi_cmd_data_write_memory_bytes): Remove unused r.
3877 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
3879 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
3880 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
3883 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3885 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
3886 * symtab.c (iterate_over_symtabs): Remove unused s.
3887 (find_pc_sect_symtab): Remove unused pspAce.
3888 (find_pc_sect_line): Remove unused alt_symtab.
3889 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
3890 (completion_list_add_name): Remove unused newsize.
3892 2013-01-31 Tom Tromey <tromey@redhat.com>
3895 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
3898 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3900 * target.c (target_read_string): Remove unused origlen.
3902 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3904 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
3905 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
3906 * ax-general.c (ax_print): Remove unused is_float.
3907 * blockframe.c (block_innermost_frame): Remove unused start, end.
3908 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
3910 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3912 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
3913 (svr4_read_so_list): Remove unused lmo.
3914 * solib-target.c (solib_target_relocate_section_addresses): Remove
3917 2013-01-30 Tom Tromey <tromey@redhat.com>
3919 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
3921 2013-01-30 Tom Tromey <tromey@redhat.com>
3923 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
3924 * utils.c (gnu_debuglink_crc32): Remove.
3925 * utils.h (gnu_debuglink_crc32): Don't declare.
3927 2013-01-30 Tom Tromey <tromey@redhat.com>
3929 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
3930 (read_structure_type, read_enumeration_type): Remove cast.
3932 2013-01-30 Tom Tromey <tromey@redhat.com>
3934 * dwarf2read.c (read_namespace_type): Remove cast.
3935 (read_typedef): Likewise.
3937 2013-01-29 Tom Tromey <tromey@redhat.com>
3939 * dwarf2read.c (free_dwo_file): Remove assert.
3941 2013-01-29 Tom Tromey <tromey@redhat.com>
3943 * value.c (deprecated_set_value_modifiable): Remove.
3944 * value.h (deprecated_set_value_modifiable): Remove.
3946 2013-01-28 Doug Evans <dje@google.com>
3948 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
3949 to addresses from dwo files.
3951 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
3953 * valops.c (find_overload_match): Remove unused argument 'lax'.
3954 * value.h: Remove unused argument 'lax' from the declaration of
3955 find_overload_match.
3956 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
3957 to find_overload_match.
3958 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
3959 argument to find_overload_match.
3961 2013-01-25 Tom Tromey <tromey@redhat.com>
3963 * dwarf2read.c (processing_has_namespace_info): Remove.
3964 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
3965 (process_die, read_func_scope, dwarf2_start_symtab)
3966 (new_symbol_full): Update.
3968 2013-01-25 Tom Tromey <tromey@redhat.com>
3970 * cp-namespace.c (cp_set_block_scope): Remove.
3971 * cp-support.h (cp_set_block_scope): Remove.
3972 * dbxread.c: Include block.h.
3973 (cp_set_block_scope): New function.
3974 (process_one_symbol): Update.
3975 * dwarf2read.c (read_func_scope): Use block_set_scope.
3977 2013-01-25 Pedro Alves <palves@redhat.com>
3979 * remote.c (add_current_inferior_and_thread): Tweak comment.
3981 2013-01-25 Tom Tromey <tromey@redhat.com>
3983 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3984 (cp_add_using_directive): Add 'copy_names' argument.
3985 * cp-support.h (cp_add_using_directive): Update.
3986 (struct using_direct) <import_src, import_dest, alias,
3987 declaration>: Now const.
3988 * dwarf2read.c (read_import_statement): Use obconcat.
3989 Don't copy names passed to cp_add_using_directive.
3991 2013-01-25 Tom Tromey <tromey@redhat.com>
3993 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
3995 2013-01-25 Pedro Alves <palves@redhat.com>
3997 * remote.c (stop_reply_extract_thread): New.
3998 (add_current_inferior_and_thread): New parameter 'wait_status'.
4000 (remote_start_remote): Pass wait status to
4001 add_current_inferior_and_thread.
4002 (extended_remote_run): Update comment.
4003 (extended_remote_create_inferior_1): Pass wait status to
4004 add_current_inferior_and_thread.
4006 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
4007 Ulrich Weigand <uweigand@de.ibm.com>
4009 * valarith.c (value_vector_widen): New function for replicating a
4010 scalar into a vector.
4011 (value_binop): Use value_vector_widen to widen scalar to vector
4012 rather than casting, this better matches gcc C behaviour.
4013 * valops.c (value_casst): Update logic for casting between vector
4014 types, and for casting from scalar to vector, try to match gcc C
4016 * value.h (value_vector_widen): Declare.
4017 * opencl-lang.c (opencl_value_cast): New opencl specific casting
4018 function, handle special case for casting scalar to vector.
4019 (opencl_relop): Use opencl_value_cast.
4020 (evaluate_subexp_opencl): Use opencl_value_cast instead of
4021 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
4022 in order to use opencl_value_cast.
4024 2013-01-25 Yao Qi <yao@codesourcery.com>
4026 * event-loop.c: Include "queue.h".
4027 (gdb_event_p): New typedef.
4028 (DECLARE_QUEUE_P): Use.
4029 (DEFINE_QUEUE_P): Use.
4030 (async_queue_event): Remove.
4031 (gdb_event_xfree): New.
4032 (initialize_event_loop): New.
4033 (process_event): Use QUEUE macros.
4034 (event_queue): Remove.
4035 (gdb_wait_for_event): Caller update.
4036 (check_async_event_handlers): Likewise.
4037 (poll_timers): Likewise.
4038 * event-loop.h (initialize_event_loop): Declare.
4039 * event-loop.c (gdb_event_xfree): New.
4040 * top.c (gdb_init): Call initialize_event_loop.
4042 2013-01-25 Yao Qi <yao@codesourcery.com>
4044 * event-loop.c (async_queue_event): Remove one parameter
4045 'position'. Remove code handling 'position' == TAIL.
4046 (gdb_wait_for_event): Caller update.
4047 (check_async_event_handlers): Caller update.
4048 (poll_timers): Caller update.
4049 * event-loop.h (enum queue_position): Remove.
4051 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
4053 * MAINTAINERS: Update my email.
4055 2013-01-25 Yao Qi <yao@codesourcery.com>
4057 * main.c (print_gdb_help): Remove "--epoch" from the help
4060 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
4062 * symtab.c (skip_prologue_using_sal): Consider a file
4063 change the same as an increased line number
4065 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
4067 * MAINTAINERS (Write After Approval): Add myself to the list.
4069 2013-01-24 Tom Tromey <tromey@redhat.com>
4071 * ada-lang.h (ada_decode_symbol): Make return type const.
4072 * ada-lang.c (ada_decode_symbol): Likewise.
4074 2013-01-23 Doug Evans <dje@google.com>
4076 * linespec.c (find_linespec_symbols): Make static.
4078 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
4080 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
4081 type on float conversion for complex type.
4083 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
4085 Add a new class gdb.Architecture which exposes GDB's
4086 internal representation of architecture via GDB Python API.
4087 * Makefile.in: Add entries corresponding to the new file
4089 * NEWS (Python Scripting): Add entries for the new class
4090 gdb.Architecture and the new method gdb.Frame.architecture.
4091 * python/py-arch.c: Implement gdb.Architecture class.
4092 * python/py-frame.c (frapy_arch): Implement the method
4093 gdb.Frame.architecture().
4094 (frame_object_methods): Add 'architecture' to the method table.
4095 * python/python-internal.h: Add declarations of new utility
4097 * python/python.c (_initialize_python): Initialize
4098 gdb.Architecture class.
4100 2013-01-23 Doug Evans <dje@google.com>
4102 Work around binutils/15021.
4103 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
4104 type_unit_group out of union s. All uses updated.
4105 (read_index_from_section): Watch for index version 8.
4106 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
4108 (write_psymtabs_to_index): Increment version number to 8.
4110 2013-01-22 Pedro Alves <palves@redhat.com>
4112 * annotate.c (breakpoint_changed): Skip if breakpoint is not
4115 2013-01-22 Pedro Alves <palves@redhat.com>
4117 * annotate.c (annotate_breakpoints_changed): Rename to ...
4118 (annotate_breakpoints_invalid): ... this. Make static.
4119 (breakpoint_changed): Adjust.
4120 (_initialize_annotate): Always install the observers. Install a
4121 "breakpoint_created" observer.
4122 * annotate.h (annotate_breakpoints_changed): Delete declaration.
4123 * breakpoint.c (set_breakpoint_condition)
4124 (breakpoint_set_commands, do_map_commands_command)
4125 (init_raw_breakpoint, clear_command, set_ignore_count)
4126 (enable_breakpoint_disp): No longer call
4127 annotate_breakpoints_changed.
4129 2013-01-22 Pedro Alves <palves@redhat.com>
4131 * annotate.c: Include "inferior.h".
4132 (frames_invalid_emitted)
4133 (breakpoints_invalid_emitted): New globals.
4134 (async_background_execution_p): New function.
4135 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
4136 emitting the annotation if it has already been emitted.
4137 (annotate_display_prompt): New function.
4138 * annotate.h (annotate_display_prompt): New declaration.
4139 * event-top.c: Include annotate.h.
4140 (display_gdb_prompt): Call annotate_display_prompt.
4142 2013-01-22 Pedro Alves <palves@redhat.com>
4144 * annotate.c (ignore_count_changed): Delete.
4145 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
4146 (annotate_ignore_count_change): Delete.
4147 (annotate_stopped): Don't emit a delayed breakpoints-changed
4149 * annotate.h (annotate_ignore_count_change): Delete.
4150 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
4151 annotate_ignore_count_change.
4153 2013-01-22 Tom Tromey <tromey@redhat.com>
4155 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
4156 require_rvalue for a register location.
4158 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
4160 * breakpoint.c (print_one_breakpoint_location): Add MI
4161 field 'thread-groups' when printing a breakpoint.
4162 (output_thread_groups): New function.
4164 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
4166 * python/lib/gdb/commands/explore.py
4167 (CompoundExplorer.explore_expr): Correct the name of a method
4169 (ExploreTypeCommand.invoke): Add a missing 'return'.
4171 2013-01-21 Tom Tromey <tromey@redhat.com>
4173 * gdb_obstack.h (obconcat): Move declaration here, from...
4174 * symfile.h (obconcat): ... here.
4175 * gdb_obstack.c: New file.
4176 (obconcat): Move from...
4177 * symfile.c (obconcat): ... here.
4178 * Makefile.in (SFILES): Add gdb_obstack.c.
4179 (COMMON_OBS): Add gdb_obstack.o.
4181 2013-01-21 Tom Tromey <tromey@redhat.com>
4183 * symfile.h (obsavestring): Don't declare.
4184 * symfile.c (obsavestring): Remove.
4185 * ada-exp.y: Use obstack_copy0, not obsavestring.
4186 * ada-lang.c: Use obstack_copy0, not obsavestring.
4187 * coffread.c: Use obstack_copy0, not obsavestring.
4188 * cp-namespace.c: Use obstack_copy0, not obsavestring.
4189 * dbxread.c: Use obstack_copy0, not obsavestring.
4190 * dwarf2read.c: Use obstack_copy0, not obsavestring.
4191 * jit.c: Use obstack_copy0, not obsavestring.
4192 * mdebugread.c: Use obstack_copy0, not obsavestring.
4193 * psymtab.c: Use obstack_copy0, not obsavestring.
4194 * stabsread.c: Use obstack_copy0, not obsavestring.
4195 * xcoffread.c: Use obstack_copy0, not obsavestring.
4197 2013-01-21 Tom Tromey <tromey@redhat.com>
4199 * dwarf2read.c (fixup_go_packaging): Save package name
4201 * gdbtypes.c (init_type): Don't copy name.
4203 2013-01-21 Tom Tromey <tromey@redhat.com>
4205 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
4207 (struct attribute) <u.str>: Now const.
4208 (struct fnfieldlist) <name>: Now const.
4209 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
4210 (partial_die_parent_scope): Make return type const.
4211 (partial_die_full_name, add_partial_symbol): Update.
4212 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
4214 (find_file_and_directory): Make 'name' and 'comp_dir' const.
4215 (read_file_scope, read_func_scope, dwarf2_add_field)
4216 (dwarf2_add_member_fn, read_structure_type)
4217 (process_enumeration_scope, read_array_type, read_module_type)
4218 (read_base_type, read_subrange_type): Update.
4219 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
4220 (new_symbol_full, guess_full_die_structure_name): Update.
4221 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
4222 (dwarf2_name): Return const type.
4223 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
4226 2013-01-21 Tom Tromey <tromey@redhat.com>
4228 * gdbtypes.c (init_type): Make 'name' const.
4229 * gdbtypes.h (init_type): Update.
4231 2013-01-21 Tom Tromey <tromey@redhat.com>
4233 * buildsym.c (patch_subfile_names): Use set_last_source_file.
4234 (start_symtab): Make 'name' and 'dirname' const. Use
4235 set_last_source_file.
4236 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
4237 (last_source_file): Define. Now static.
4238 (set_last_source_file, get_last_source_file): New functions.
4239 * buildsym.h (last_source_file): Don't declare.
4240 (start_symtab): Update.
4241 (set_last_source_file, get_last_source_file): Declare.
4242 * coffread.c (complete_symtab): Use set_last_source_file.
4243 (coff_end_symtab): Likewise.
4244 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
4245 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
4246 set_last_source_file.
4247 (process_one_symbol): Use get_last_source_file.
4248 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
4249 (psymtab_to_symtab_1): Use get_last_source_file.
4250 * xcoffread.c (process_linenos): Use get_last_source_file.
4251 (complete_symtab): Use set_last_source_file.
4252 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
4253 (scan_xcoff_symtab): Use set_last_source_file.
4255 2013-01-21 Tom Tromey <tromey@redhat.com>
4257 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
4258 (symbol_set_names): Remove casts. Handle field const-ness.
4260 2013-01-21 Tom Tromey <tromey@redhat.com>
4262 * dwarf2read.c (new_symbol_full): Remove cast.
4263 * symtab.c (symbol_set_demangled_name): Make 'name' const.
4264 * symtab.h (symbol_set_demangled_name): Update.
4266 2013-01-21 Tom Tromey <tromey@redhat.com>
4268 * main.c (captured_main): Call bfd_init.
4270 2013-01-21 Tom Tromey <tromey@redhat.com>
4272 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
4273 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
4274 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
4277 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4279 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
4281 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4283 Fix gdb.fortran/common-block.exp crash in PIE mode.
4284 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
4286 * f-valprint.c (info_common_command_for_block): Expect
4287 LOC_COMMON_BLOCK in gdb_assert.
4288 * symtab.h (struct general_symbol_info): Update comment for the
4289 common_block member.
4290 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
4291 (enum address_class): New member LOC_COMMON_BLOCK.
4293 2013-01-18 David Blaikie <dblaikie@gmail.com>
4295 * MAINTAINERS (Write After Approval): Add "David Blaikie".
4297 2013-01-18 Tom Tromey <tromey@redhat.com>
4300 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
4301 Call require_rvalue.
4303 2013-01-18 Yao Qi <yao@codesourcery.com>
4305 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
4306 (dbx_read_symtab): New declaration.
4307 (dbx_psymtab_to_symtab): Delete.
4308 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
4309 Rename parameter PST to SELF. Exchanged two parameters.
4310 (start_psymtab): Caller update.
4311 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
4312 (dwarf2_read_symtab): New declaration.
4313 (dwarf2_psymtab_to_symtab): Delete.
4314 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
4315 Rename parameter PST to SELF. Exchanged two parameters.
4316 (create_partial_symtab): Caller update.
4317 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
4318 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
4319 Rename parameter PST to SELF. Exchanged two parameters.
4320 (parse_partial_symbols, new_psymtab): Caller update.
4321 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
4323 * psymtab.c (psymtab_to_symtab): Caller update.
4324 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
4325 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
4326 Rename parameter PST to SELF. Exchanged two parameters.
4327 (xcoff_start_psymtab): Caller update.
4329 2013-01-18 Yao Qi <yao@codesourcery.com>
4331 * infrun.c (proceed): Rename local variable 'oneproc' to
4334 2013-01-17 Doug Evans <dje@google.com>
4336 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
4337 (dw2_build_type_unit_groups): Delete. All uses updated.
4339 * symtab.h (struct symbol_search): Add comment.
4341 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4343 * symtab.c (compare_filenames_for_search): New comment for
4346 2013-01-17 Tom Tromey <tromey@redhat.com>
4348 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
4350 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4352 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
4353 initialize it by existing make_cleanup. Call new do_cleanups.
4355 2013-01-17 Tom Tromey <tromey@redhat.com>
4357 * cp-abi.c (cp_abi_completer): New function.
4358 (_initialize_cp_abi): Set completer for "set cp-abi".
4360 2013-01-17 Tom Tromey <tromey@redhat.com>
4362 * mem-break.c: Remove obsolete comment.
4363 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
4365 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
4367 * jit.c (jit_reader_load_command): Interpret the jit reader name
4368 as an absolute path if it begins with a forward slash.
4370 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
4374 * jit.c (finalize_symtab): Ensure that only the global block has a
4377 2013-01-17 Pedro Alves <palves@redhat.com>
4379 * acinclude.m4: Include ../config/plugins.m4,
4380 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
4381 * Makefile.in (aclocal_m4_deps): Update.
4382 * aclocal.m4: Renegerate.
4384 2013-01-16 Doug Evans <dje@google.com>
4386 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
4388 2013-01-16 Pedro Alves <palves@redhat.com>
4389 Tom Tromey <tromey@redhat.com>
4392 * NEWS: Add "catch signal".
4393 * breakpoint.c (base_breakpoint_ops): No longer static.
4394 (bpstat_explains_signal): New function.
4395 (init_catchpoint): No longer static.
4396 (base_breakpoint_explains_signal): New function.
4397 (base_breakpoint_ops): Initialize new field.
4398 * breakpoint.h (enum bpstat_signal_value): New.
4399 (struct breakpoint_ops) <explains_signal>: New field.
4400 (bpstat_explains_signal): Remove macro, declare as function.
4401 (base_breakpoint_ops, init_catchpoint): Declare.
4402 * break-catch-sig.c: New file.
4403 * inferior.h (signal_catch_update): Declare.
4404 * infrun.c (signal_catch): New global.
4405 (handle_syscall_event): Update for change to
4406 bpstat_explains_signal.
4407 (handle_inferior_event): Likewise. Always handle random signals
4409 (signal_cache_update): Check signal_catch.
4410 (signal_catch_update): New function.
4411 (_initialize_infrun): Initialize signal_catch.
4412 * Makefile.in (SFILES): Add break-catch-sig.c.
4413 (COMMON_OBS): Add break-catch-sig.o.
4415 2013-01-16 Tom Tromey <tromey@redhat.com>
4417 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
4418 (print_one_catch_solib, print_one_catch_syscall)
4419 (print_one_catch_exec, print_one_exception_catchpoint): Emit
4422 2013-01-16 Yao Qi <yao@codesourcery.com>
4424 * printcmd.c (current_display_number): Make it static.
4426 2013-01-16 Yao Qi <yao@codesourcery.com>
4428 * infcmd.c (step_once): Don't check '!single_inst' as it was
4431 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4433 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
4435 2013-01-14 Tom Tromey <tromey@redhat.com>
4437 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
4439 * command.h (add_setshow_string_noescape_cmd): Update.
4440 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
4441 (complete_set_gnutarget): New function.
4442 (_initialize_core): Set the "set gnutarget" completer.
4444 2013-01-14 Tom Tromey <tromey@redhat.com>
4447 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
4448 (c_type_print_modifier): Likewise.
4449 * dwarf2read.c (read_tag_restrict_type): New function.
4450 (read_type_die_1): Handle DW_TAG_restrict_type.
4451 * gdbtypes.c (make_restrict_type): New function.
4452 (recursive_dump_type): Handle TYPE_RESTRICT.
4453 * gdbtypes.h (enum type_flag_values): Renumber.
4454 (enum type_instance_flag_value): Add
4455 TYPE_INSTANCE_FLAG_RESTRICT.
4456 (TYPE_RESTRICT): New macro.
4457 (make_restrict_type): Declare.
4459 2013-01-14 Tom Tromey <tromey@redhat.com>
4462 * psymtab.c (struct psymtab_state): New.
4463 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
4465 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
4466 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
4468 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
4469 Pedro Alves <palves@redhat.com>
4473 * remote.c (remote_threads_info): Make a copy of the reply from
4474 qfThreadInfo and use that instead of rs->buf.
4476 2013-01-14 Yao Qi <yao@codesourcery.com>
4478 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
4479 (dbx_psymtab_to_symtab): Likewise.
4480 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
4481 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
4482 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
4484 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4486 * parse.c (parse_exp_in_context): New variable inner_chain. Call
4487 make_cleanup_restore_current_language. Call set_language. Move
4488 OLD_CHAIN and INNER_CHAIN cleanups.
4489 * utils.c (do_restore_current_language)
4490 (make_cleanup_restore_current_language): New functions.
4491 * utils.h (make_cleanup_restore_current_language): New declaration.
4493 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4495 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
4498 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
4499 non-existing files if FILENAME is already absolute.
4501 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4503 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
4504 fputs_filtered. Append trailing newline.
4506 2013-01-11 Yao Qi <yao@codesourcery.com>
4507 Stan Shebs <stan@codesourcery.com>
4509 * psymtab.c (init_psymbol_list): Clarify the comment.
4511 2013-01-11 Yao Qi <yao@codesourcery.com>
4513 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
4514 (update_dprintf_command_list): Assert that 'printf_line' is
4515 non-null. Remove condition check.
4517 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4520 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
4522 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
4524 * tui/tui-source.h (tui_source_is_displayed): Likewise.
4526 2013-01-09 Anthony Green <green@moxielogic.com>
4528 * cp-abi.c (cplus_print_vtable): Don't return value from void
4530 * ada-lang.c (re_set_catch_assert): Ditto.
4532 2013-01-09 Doug Evans <dje@google.com>
4534 * symfile.h (quick_symbol_functions): Delete member
4535 pre_expand_symtabs_matching. All uses removed.
4536 * dwarf2read.c (dw2_lookup_symbol): Implement.
4537 (dw2_do_expand_symtabs_matching): Delete.
4538 (dw2_pre_expand_symtabs_matching): Delete.
4539 (struct dw2_symtab_iterator): New type.
4540 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
4541 (dw2_expand_symtabs_for_function): Rewrite.
4542 (dwarf2_gdb_index_functions): Update.
4543 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
4544 (psym_functions): Update.
4546 2013-01-09 Tom Tromey <tromey@redhat.com>
4548 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
4549 * configure: Rebuild.
4550 * configure.ac: Add somread.o to the build if BFD has SOM
4552 * somread.c: Include som/aout.h, not syms.h.
4553 (som_symtab_read): Use som_external_symbol_dictionary_record.
4554 Unpack records manually.
4555 (_initialize_somread): Declare.
4557 2012-01-08 Mike Frysinger <vapier@gentoo.org>
4559 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
4560 Cast return_address to 64bits.
4562 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
4564 * printcmd.c: Remove define of function output_command.
4565 * tracepoint.c: Remove extern of function output_command.
4566 * valprint.h: (output_command): New extern.
4568 2013-01-07 Tom Tromey <tromey@redhat.com>
4570 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
4572 (objc_language_defn): Use c_printchar, c_printstr,
4575 2013-01-07 Tom Tromey <tromey@redhat.com>
4579 * ada-valprint.c (printstr, print_field_values): Remove
4581 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
4583 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
4585 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
4586 * main.c (captured_main): Remove "epoch" argument.
4587 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
4588 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
4589 * p-valprint.c (pascal_object_print_value_fields): Remove
4591 * printcmd.c (print_command_1): Remove 'inspect' argument.
4592 (print_command, call_command): Update.
4593 (inspect_command): Remove.
4594 (_initialize_printcmd): Make "inspect" an alias for "print".
4595 * top.c (epoch_interface): Remove.
4596 * top.h (epoch_interface): Remove.
4597 * valprint.c (user_print_options): Update.
4598 (print_converted_chars_to_obstack): Remove "inspect_it" code.
4599 * valprint.h (struct value_print_options) <inspect_it>: Remove
4602 2013-01-04 Tom Tromey <tromey@redhat.com>
4604 * valprint.h (read_string): Add 'extern'.
4606 2013-01-07 Joel Brobecker <brobecker@adacore.com>
4608 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
4609 used to decide whether to define darwin_read_dyld_info or not.
4611 2013-01-03 Pierre Muller <muller@sourceware.org>
4613 * main.c (relocate_gdb_directory): Avoid calling stat function
4616 2013-01-03 Yao Qi <yao@codesourcery.com>
4618 * psymtab.c (fixup_psymbol_section): Update declaration.
4619 (fixup_psymbol_section): Remove code returning value.
4621 2013-01-03 Yao Qi <yao@codesourcery.com>
4623 * symtab.h: Remove some out of date comments.
4624 (enum exception_event_kind): Move it ...
4625 * breakpoint.c: ... here.
4627 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
4630 * darwin-nat.c (darwin_read_dyld_info): Only build if
4631 TASK_DYLD_INFO_COUNT is defined.
4632 (darwin_xfer_partial): Call darwin_read_dyld_info only if
4633 TASK_DYLD_INFO_COUNT is defined.
4635 2013-01-02 Tom Tromey <tromey@redhat.com>
4637 * symfile.h (struct ecoff_debug_hack): Remove.
4638 * objfiles.c: Don't include mdebugread.h.
4640 2013-01-02 Tom Tromey <tromey@redhat.com>
4642 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
4643 * configure.ac: Check for Mach-O support in BFD. Update
4645 * configure: Rebuild.
4647 2013-01-02 Tom Tromey <tromey@redhat.com>
4649 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
4650 * configure.ac: Use GDB_AC_CHECK_BFD.
4651 * configure: Rebuild.
4653 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
4655 * MAINTAINERS: Update my email.
4657 2013-01-01 Joel Brobecker <brobecker@adacore.com>
4659 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
4661 2013-01-01 Joel Brobecker <brobecker@adacore.com>
4663 * rs6000-nat.c (bss_data_overlap): New function.
4664 (vmap_symtab): Use it to adjust the .bss section's offset.
4666 2013-01-01 Joel Brobecker <brobecker@adacore.com>
4668 Update year range in copyright notice of all files.
4670 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
4672 * top.c (print_gdb_version): Update copyright year.
4674 For older changes see ChangeLog-2012.
4680 version-control: never