1 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Fix GDB regression related to PR binutils/14813.
4 * jit.c (mem_bfd_iovec_close): Return 0 for success.
5 * minidebug.c (lzma_close): Add return value comment.
6 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
10 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12 * config.in: Regenerate.
14 2013-04-12 Tom Tromey <tromey@redhat.com>
16 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
18 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
19 (struct die_reader_specs) <buffer>: Likewise.
20 (die_reader_func_ftype): Make 'info_ptr' const.
21 (struct line_header) <include_dirs, statement_program_start,
22 statement_program_end>: Now const.
23 (struct file_entry) <name>: Likewise.
24 (struct partial_die_info) <sibling>: Likewise.
25 (struct dwarf_block) <data>: Likewise.
26 (dwarf2_read_section): Remove cast.
27 (dwarf2_get_section_info): Make 'bufp' const.
28 (read_index_from_section): Constify.
29 (dw2_get_file_names_reader): Make 'info_ptr' const.
30 (dw2_get_primary_filename_reader): Likewise.
31 (read_comp_unit_head): Make 'info_ptr' and return type const.
32 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
34 (read_abbrev_offset): Constify.
35 (dwarf2_create_include_psymtab): Make 'name' const.
36 (create_debug_types_hash_table): Update.
37 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
38 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
40 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
41 (load_partial_comp_unit_reader): Make 'info_ptr' const.
42 (read_comp_units_from_section): Constify.
43 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
44 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
46 (dwarf2_compute_name, setup_type_unit_groups): Constify.
47 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
48 (create_dwp_hash_table, dwarf2_ranges_read)
49 (dwarf2_record_block_ranges): Constify.
50 (read_die_and_children, read_die_and_siblings_1)
51 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
53 (read_full_die_1, read_full_die): Make 'info_ptr' const.
54 (abbrev_table_read_table): Constify.
55 (load_partial_dies): Make 'info_ptr' const.
56 (read_partial_die, read_attribute_value, read_attribute): Make
57 'info_ptr' and return type const.
58 (read_address, read_initial_length)
59 (read_checked_initial_length_and_offset, read_offset)
60 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
62 (read_direct_string): Make 'buf' and return type const.
63 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
64 (read_indirect_string): Make return type const.
65 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
66 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
68 (read_str_index): Make return type const.
69 (add_include_dir): Make 'include_dir' const.
70 (add_file_name): Make 'name' const.
71 (dwarf_decode_line_header): Constify.
72 (psymtab_include_file_name): Make return type const.
73 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
74 (dwarf2_start_subfile): Make 'filename' const.
75 (dwarf2_const_value_attr): Make 'bytes' const.
76 (read_signatured_type_reader): Make 'info_ptr' const.
77 (decode_locdesc): Constify.
78 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
80 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
81 'mac_end', and return type const.
82 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
83 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
85 (per_cu_header_read_in): Constify.
86 * symfile.h (dwarf2_get_section_info): Update.
88 2013-04-12 Tom Tromey <tromey@redhat.com>
90 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
92 2013-04-12 Eli Zaretskii <eliz@gnu.org>
94 * top.c (print_gdb_configuration): New function, displays the
95 details about GDB configure-time parameters.
96 (print_gdb_version): Mention "show configuration".
98 * cli/cli-cmds.c (show_configuration): New function.
99 (_initialize_cli_cmds): Add the "show configuration" command.
101 * main.c (captured_main) <print_configuration>: New static var.
102 <long_options>: Use it.
103 If --configuration was given, call print_gdb_configuration.
105 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
106 Pedro Alves <palves@redhat.com>
108 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
109 (generated_files): Add gcore.
110 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
111 HAVE_NATIVE_GCORE_HOST.
113 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
114 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
115 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
116 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
117 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
118 Add HAVE_NATIVE_GCORE_HOST.
119 * configure: Regenerate.
120 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
121 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
122 AC_CONFIG_FILES for gcore.
123 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
125 * gdb_gcore.sh: Rename to ...
126 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
127 and GCORE_TRANSFORM_NAME substitutions.
129 Fix parsing tabs in ${gdb_target_obs}.
130 * configure.tgt (gdb_have_gcore): Replace case with for and if.
132 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
134 * remote.c (unpush_and_perror): Add output message final dot.
136 2013-04-11 Yao Qi <yao@codesourcery.com>
138 * tracepoint.c (tfile_interp_line): Fit parameters line and
141 2013-04-10 Joel Brobecker <brobecker@adacore.com>
143 * solib.c (solib_map_sections): Remove code overwriting
144 SO->SO_NAME with the bfd's filename.
146 2013-04-10 Pedro Alves <palves@redhat.com>
148 * cli/cli-decode.c (integer_unlimited_completer): New function.
149 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
150 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
152 * cli/cli-setshow.c: Include "cli/cli-utils.h".
153 (is_unlimited_literal): New function.
154 (do_set_command): Handle literal "unlimited" arguments.
155 * frame.c (_initialize_frame) <set backtrace limit>: Document
157 * printcmd.c (_initialize_printcmd) <set print
158 max-symbolic-offset>: Add help text.
159 * record-full.c (_initialize_record_full) <set record full
160 insn-number-max>: Likewise.
161 * record.c (_initialize_record) <set record
162 instruction-history-size, set record function-call-history-size>:
164 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
166 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
168 * source.c (_initialize_source) <set listsize>: Add help text.
169 * utils.c (initialize_utils) <set height, set width>: Likewise.
170 <set pagination>: Mention "set height unlimited".
171 * valprint.c (_initialize_valprint) <set print elements, set print
172 repeats>: Document "unlimited".
174 2013-04-10 Pedro Alves <palves@redhat.com>
176 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
177 instead of disconnect_tracing.
178 * infcmd.c (detach_command, disconnect_command): Call
179 query_if_trace_running. Adjust.
180 * top.c: Include "tracepoint.h".
181 (quit_target): Delete. Contents moved ...
182 (quit_force): ... here. Wrap each stage of teardown in
183 TRY_CATCH. Call disconnect_tracing before detaching.
185 2013-04-10 Hui Zhu <hui@codesourcery.com>
186 Yao Qi <yao@codesourcery.com>
188 * configure.ac: Check libbabeltrace is installed.
189 * config.in: Regenerate.
190 * configure: Regenerate.
191 * Makefile.in (LIBBABELTRACE): New.
192 (CLIBS): Add LIBBABELTRACE.
193 * ctf.c: Include "exec.h".
194 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
195 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
196 (ctf_save_metadata_header): Define new type aliases in
198 (ctf_write_header): Define event type "tsv_def" and "tp_def"
199 in metadata. Start a new faked packet for trace status.
200 (ctf_write_status): Write trace status to CTF.
201 (ctf_write_uploaded_tsv): Write TSV to CTF.
202 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
203 (ctf_write_definition_end): End the faked packet.
205 (ctx, ctf_iter, trace_dirname): New.
206 (start_pos): New variable.
207 (ctf_destroy, ctf_open_dir, ctf_open): New.
208 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
210 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
211 (ctf_fetch_registers, ctf_xfer_partial): New.
212 (ctf_get_trace_state_variable_value): New.
213 (ctf_get_tpnum_from_frame_event): New.
214 (ctf_get_traceframe_address): New.
215 (ctf_trace_find, ctf_has_stack): New.
216 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
217 (ctf_get_trace_status, ctf_read_status): New.
218 (_initialize_ctf): New.
219 * tracepoint.c (get_tracepoint_number): New
220 (get_uploaded_tsv): Remove 'static'.
221 (struct traceframe_info, trace_regblock_size): Move it to ...
222 * tracepoint.h: ... here.
223 (get_tracepoint_number): Declare it.
224 (get_uploaded_tsv): Declare it.
226 * NEWS: Mention new configure option.
228 2013-04-10 Pedro Alves <palves@redhat.com>
229 Hui Zhu <hui@codesourcery.com>
231 * breakpoint.c (dprintf_re_set): New.
232 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
235 2013-04-09 Joel Brobecker <brobecker@adacore.com>
237 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
238 Remove solib-svr4.o from the list.
240 2013-04-09 Joel Brobecker <brobecker@adacore.com>
242 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
243 Use gdb_assert_not_reached instead of invalid boolean expression.
245 2013-04-09 Pedro Alves <palves@redhat.com>
247 * remote.c (unpush_and_perror): New function.
248 (readchar, remote_serial_write): Use it.
250 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
252 * NEWS: Mention new btrace RSP packets.
254 2013-04-08 Tom Tromey <tromey@redhat.com>
256 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
259 2013-04-08 Tom Tromey <tromey@redhat.com>
261 * maint.c (print_bfd_section_info): Print the section index.
262 * symmisc.c (dump_msymbols): Print the section index.
264 2013-04-08 Tom Tromey <tromey@redhat.com>
267 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
268 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
269 * breakpoint.c (resolve_sal_pc): Update.
270 * elfread.c (elf_gnu_ifunc_record_cache): Update.
271 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
272 (minsym_lookup_iterator_cb): Use it.
273 (default_read_var_value): Update.
274 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
276 * infcmd.c (jump_command): Update.
277 * linespec.c (minsym_found): Update.
278 * maint.c (maintenance_translate_address): Update.
279 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
280 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
281 * parse.c (write_exp_msymbol): Update.
282 * printcmd.c (address_info): Update.
283 * psymtab.c (find_pc_sect_psymbol): Update.
284 (fixup_psymbol_section): Check SYMBOL_SECTION, not
286 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
287 Don't initialize SYMBOL_OBJ_SECTION.
288 * spu-tdep.c (spu_catch_start): Update.
289 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
290 * symmisc.c (dump_msymbols, print_symbol): Update.
291 * symtab.c (fixup_section): Don't set 'obj_section'. Change
292 how fallback section is computed.
293 (fixup_symbol_section): Update.
294 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
296 (allocate_symbol, initialize_symbol, allocate_template_symbol):
297 Initialize SYMBOL_SECTION.
298 * symtab.h (struct general_symbol_info) <section>: Update comment.
299 <obj_section>: Remove.
300 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
301 (SYMBOL_OBJFILE): New macro.
303 2013-04-08 Tom Tromey <tromey@redhat.com>
305 * coffread.c (record_minimal_symbol): Update.
306 * dbxread.c (record_minimal_symbol): Update.
307 * elfread.c (record_minimal_symbol): Update.
308 * machoread.c (macho_symtab_add_minsym): Update.
309 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
311 * minsyms.c (prim_record_minimal_symbol): Update.
312 (prim_record_minimal_symbol_full): Remove 'bfd_section'
314 (prim_record_minimal_symbol_and_info): Likewise.
315 * minsyms.h (prim_record_minimal_symbol_full)
316 (prim_record_minimal_symbol_and_info): Update.
317 * symtab.c (allocate_symbol, initialize_symbol)
318 (allocate_template_symbol): Initialize SYMBOL_SECTION.
319 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
322 2013-04-08 Tom Tromey <tromey@redhat.com>
325 * solib-som.c (som_solib_section_offsets): Use BFD section
326 indices. Set offsets for all sections.
327 * somread.c (som_symtab_read): Compute BFD section for
328 symbol. Use prim_record_minimal_symbol_and_info.
329 (som_symfile_read): Fix comment.
330 (struct find_section_offset_arg): New.
331 (find_section_offset, set_section_index): New functions.
332 (som_symfile_offsets): Use set_section_index to compute
335 2013-04-08 Tom Tromey <tromey@redhat.com>
337 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
338 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
339 gdb_bfd_section_index.
340 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
342 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
344 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
346 * objfiles.c (add_to_objfile_sections_full): New function.
347 (add_to_objfile_sections): Use it.
348 (build_section_table): Rewrite.
349 (objfile_relocate1): Use gdb_bfd_section_index. Update.
350 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
351 (struct objfile) <sections>: Update comment.
352 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
354 (ALL_OBJSECTIONS): Use it.
355 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
356 * solib-frv.c (frv_relocate_main_executable): Update.
357 * solib-target.c (solib_target_relocate_section_addresses):
358 Use gdb_bfd_section_index.
359 * symfile.c (build_section_addr_info_from_section_table):
360 Use gdb_bfd_section_index.
361 (build_section_addr_info_from_bfd, place_section): Likewise.
362 * symtab.c (fixup_section): Update.
363 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
365 2013-04-08 Tom Tromey <tromey@redhat.com>
367 * minsyms.h (struct bound_minimal_symbol): New.
368 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
369 Remove objfile argument.
370 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
371 Return bound_minimal_symbol.
372 * minsyms.c (lookup_minimal_symbol_by_pc_1)
373 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
374 Return bound_minimal_symbol.
375 (in_gnu_ifunc_stub): Update.
376 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
377 Remove 'objfile_p' argument.
378 (lookup_solib_trampoline_symbol_by_pc): Update.
379 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
380 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
381 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
382 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
383 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
384 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
385 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
386 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
387 stack.c, symtab.c, tui/tui-disasm.c: Update.
389 2013-04-08 Tom Tromey <tromey@redhat.com>
391 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
392 Use symbol's obstack, not an objfile.
393 * coffread.c (process_coff_symbol): Update.
394 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
395 * jv-lang.c (add_class_symbol): Update.
396 * mdebugread.c (new_symbol): Update.
397 * minsyms.c (prim_record_minimal_symbol_full)
398 (terminate_minimal_symbol_table): Update.
399 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
400 * stabsread.c (define_symbol, read_enum_type): Update.
401 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
402 Handle Ada specially.
403 (symbol_set_language): Add 'obstack' argument.
404 (symbol_set_names): Update.
405 (symbol_natural_name, symbol_demangled_name): Always use
407 * symtab.h (struct general_symbol_info)
408 <language_specific::obstack>: New field.
409 <ada_mangled>: New field.
410 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
411 (symbol_set_language): Update.
413 2013-04-08 Tom Tromey <tromey@redhat.com>
415 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
416 Take an obstack, not an objfile.
417 (symbol_set_names): Update.
418 * symtab.h (symbol_set_demangled_name): Update.
420 2013-04-08 Tom Tromey <tromey@redhat.com>
422 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
424 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
425 (read_func_scope): Call allocate_template_symbol.
426 (new_symbol_full): Call allocate_symbol.
427 * jit.c (finalize_symtab): Call allocate_symbol.
428 * jv-lang.c (add_class_symbol): Call allocate_symbol.
429 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
430 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
431 (common_block_end): Call allocate_symbol.
432 * symtab.c (allocate_symbol, initialize_symbol)
433 (allocate_template_symbol): New functions.
434 * symtab.c (allocate_symbol, initialize_symbol)
435 (allocate_template_symbol): Declare.
436 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
438 2013-04-08 Pedro Alves <palves@redhat.com>
439 Keith Seitz <keiths@redhat.com>
441 * breakpoint.c (create_breakpoint): Rename
442 "parse_condition_and_thread" parameter to "parse_arg". Update
443 describing comment. If !PARSE_ARG, then error out if ARG is not
444 the empty string after extracting the location.
445 * breakpoint.h (create_breakpoint): Rename
446 "parse_condition_and_thread" parameter to "parse_arg".
448 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
450 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
452 2013-04-07 Yao Qi <yao@codesourcery.com>
454 * remote.c (remote_trace_find): Change type of parameters 'addr1'
455 and 'addr2' to CORE_ADDR.
456 * target.c (update_current_target): Update.
457 * target.h (struct target_ops) <to_trace_find>: Change parameter
459 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
460 'addr2' to CORE_ADDR.
461 (tfile_trace_find): Likewise.
462 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
463 Change local variable 'addr' to type CORE_ADDR.
464 * tracepoint.h (tfind_1): Update declaration.
466 2013-04-06 Eli Zaretskii <eliz@gnu.org>
468 * windows-nat.c (windows_get_absolute_argv0): Move from here...
469 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
472 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
474 * main.h (windows_get_absolute_argv0): ...to here.
476 2013-04-05 Doug Evans <dje@google.com>
478 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
479 (read_cutu_die_from_dwo): Add comments.
480 (read_structure_type): Update comment.
481 (read_enumeration_type, read_namespace_type): Update comment.
482 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
484 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
486 Convert man pages to texinfo, new gdbinit.5 texinfo page.
487 * Makefile.in (gdb.z): Remove.
488 (install-only): Remove $(man1dir) and gdb.1 installation.
491 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
493 Fix compatibility with Linux kernel 3.8.3.
494 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
495 to more inner block. Remove parsing of NUMBER from outer block.
496 Parse NUMBER only if KEYWORD has been identified.
498 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
500 Fix variable name shadowing.
501 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
502 filename to mapsfilename and update its uses.
504 2013-04-05 Eli Zaretskii <eliz@gnu.org>
506 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
507 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
508 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
509 details of the problem.
511 2013-04-04 Pedro Alves <palves@redhat.com>
512 Hui Zhu <hui@codesourcery.com>
514 * breakpoint.c (validate_commands_for_breakpoint): If validating a
515 tracepoint, reset its STEP_COUNT and call validate_actionline.
517 2013-04-03 Doug Evans <dje@google.com>
519 * dwarf2read.c (read_die_and_siblings_1): Renamed from
520 read_die_and_siblings.
521 (read_die_and_siblings): New function.
522 (read_cutu_die_from_dwo): Dump die if requested.
523 (read_die_and_children): Call read_full_die_1 and
524 read_die_and_siblings_1.
525 (read_full_die): Dump die if requested.
527 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
529 * dwarf2read.c (struct dwo_file): New member comp_dir.
530 Rename member name to dwo_name. All uses updated.
531 (hash_dwo_file): Include comp_dir in computation.
532 (eq_dwo_file): Ditto.
533 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
534 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
536 * psymtab.c (read_psymtabs_with_fullname): Don't call
537 psymtab_to_fullname if the basenames are different.
539 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
541 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
542 New entry about "fullname" presence.
544 2013-04-03 Pedro Alves <palves@redhat.com>
546 * NEWS: Mention x86_64/Cygwin as new native configuration.
548 2013-04-02 Doug Evans <dje@google.com>
550 * dwarf2read.c (read_structure_type): Fix typo in comment.
552 2013-04-02 Pedro Alves <palves@redhat.com>
554 * NEWS: Mention "set/show debug aarch64", "set/show debug
555 coff-pe-read" and "set/show debug mach-o".
557 2013-04-02 Pedro Alves <palves@redhat.com>
559 * NEWS: Mention "set/show remote trace-buffer-size-packet".
561 2013-04-02 Eli Zaretskii <eliz@gnu.org>
563 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
564 gdb_string.h is now in common/.
566 2013-04-02 Pedro Alves <palves@redhat.com>
568 * NEWS: Move "set debug notification" and "set trace-buffer-size"
571 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
575 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
577 2013-04-02 Pedro Alves <palves@redhat.com>
581 * remote.c (send_interrupt_sequence): Use remote_serial_write.
582 (remote_serial_write): New function.
583 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
585 2013-04-01 Jiong Wang <jiwang@tilera.com>
587 * NEWS: Mention TILE-Gx in "New native configurations" and
588 "New targets" sections.
590 2013-04-01 Doug Evans <dje@google.com>
592 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
593 (process_enumeration_scope): Simplify.
595 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
597 (struct signatured_type): ... to here.
598 (sig_type_ptr): New typedef.
599 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
600 out of union 't'. All uses updated.
601 (dw2_get_file_names_reader): Assert not called for a type unit.
602 (dw2_get_file_names): Assert not called for a type unit or type
604 (build_type_psymtabs_reader): Assert called for a type unit.
605 (build_type_psymtab_dependencies): Assert called for a type unit group.
607 * dwarf2read.c (free_dwo_file): Add comment.
608 (dwarf2_per_objfile_free): Unref dwp bfd.
610 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
612 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
613 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
614 (read_pe_exported_syms): Remove unused 'exportix'.
615 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
616 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
617 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
619 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
621 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
622 (print_it_watchpoint): Remove unused 'bl'.
623 (say_where): Remove unused 'uiout'.
624 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
625 (bkpt_breakpoint_hit): Remove unused 'b'.
626 (internal_bkpt_print_it): Remove unused 'uiout'.
627 * buildsym.c (augment_type_symtab): Remove unused 'i'.
629 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
631 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
632 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
634 2013-03-29 Doug Evans <dje@google.com>
636 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
637 Delete arg is_dwp. All callers updated.
638 (open_dwp_file): New function.
639 (open_and_init_dwp_file): Call it.
640 (get_dwp_file): New function.
641 (lookup_dwo_cutu): Call it.
643 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
644 unnecessary, cleanup.
646 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
648 * dwarf2read.c (read_cutu_die_from_dwo): New function.
649 (lookup_dwo_unit): New function.
650 (init_cutu_and_read_dies): Move DWO handling to new functions.
652 * dwarf2read.c (struct signatured_type): Tweak comment.
653 (struct dwo_unit): Tweak comment.
654 (create_debug_types_hash_table): Tweak comment. Reformat long line.
655 (create_dwo_debug_info_hash_table): Tweak comment.
656 (dwarf2_per_cu_offset_and_type): Tweak comment.
658 * dwarf2read.c (lookup_signatured_type): Remove complaint about
659 missing .debug_types section.
661 2013-03-29 Yao Qi <yao@codesourcery.com>
663 * corelow.c: Include "completer.h".
664 (_initialize_corelow): Call add_target_with_completer with
665 argument 'filename_completer'.
666 * tracepoint.c: Likewise.
667 * exec.c (_initialize_exec): Likewise.
668 * target.c (add_target): Rename to ...
669 (add_target_with_completer): ... this. Call set_cmd_completer
670 if parameter completer is not NULL.
672 * target.h: Include "command.h".
673 (add_target_with_completer): Declare it.
675 2013-03-28 Joel Brobecker <brobecker@adacore.com>
677 * coffread.c (is_import_fixup_symbol): New function.
678 (record_minimal_symbol): Use is_import_fixup_symbol to
679 detect import fixup symbols, and discard them.
681 2013-03-28 Doug Evans <dje@google.com>
683 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
684 types hash table until we know we need it.
686 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
689 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
691 (dw2_print_stats): Print #read CUs too.
692 (dump_die_shallow): Print signatured types better.
694 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
695 info_or_types_section to section. All uses updated.
696 (struct dwo_unit): Ditto.
698 2013-03-28 Pedro Alves <palves@redhat.com>
700 * NEWS (New options): New section.
701 (New options): Mention set/show remote trace-status-packet.
702 * remote.c (PACKET_qTStatus): New enumeration value.
703 (remote_get_trace_status): Skip sending qTStatus if the packet is
704 disabled. Use packet_ok.
705 (_initialize_remote): Register a configuration command for
708 2013-03-28 Doug Evans <dje@google.com>
710 * symfile.c (find_separate_debug_file): Add comment.
711 (terminate_after_last_dir_separator): Tweak comment.
713 * dwarf2read.c (create_partial_symtab): Add forward decl.
714 (create_partial_symtab): Move to be closer to other psymtab functions.
715 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
717 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
718 (compute_symtab_includes): Remove unnecessary forward declaration.
719 (die_needs_namespace): Add comment marking group of functions for
720 dwarf2 name computation.
722 * typeprint.c (_initialize_typeprint): Improve type help text.
724 * python/python.c (finish_python_initialization): Provide suggestion
725 for how to tell gdb to find its python files.
727 2013-03-28 Pedro Alves <palves@redhat.com>
731 * source.c (_initialize_source): Change back "set listsize" to an
734 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
737 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
739 2013-03-27 Pedro Alves <palves@redhat.com>
741 * top.c (history_size): Rename to ...
742 (history_size_setshow_var): ... this. Add comment.
743 (show_commands): Use readline's 'history_length' instead of
744 computing the history length by calling history_get in a loop.
745 (set_history_size_command): Error out for sizes over INT_MAX.
746 Restore previous history size on invalid size.
747 (init_history): If HISTSIZE is negative, leave the history size as
751 2013-03-27 Pedro Alves <palves@redhat.com>
753 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
754 coff_pe_read" command to "set debug coff-pe-read".
756 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
758 * record.c (command_size_to_target_size): Fix size comparison.
759 Change parameter type from pointer to integer to integer.
762 2013-03-27 Pierre Muller <muller@sourceware.org>
764 * windows-nat.c (handle_output_debug_string): Avoid typecast
765 from integer of different size warning.
767 2013-03-26 Joel Brobecker <brobecker@adacore.com>
769 * windows-nat.c (handle_output_debug_string): Add empty line
770 after local block variable definition.
772 2013-03-26 Pedro Alves <palves@redhat.com>
774 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
775 (net_open): Make 'polls' local unsigned.
777 2013-03-26 Pedro Alves <palves@redhat.com>
779 * remote.c (_initialize_remote): Make "set remoteaddresssize"
780 a zuinteger command instead of uinteger.
782 2013-03-26 Pedro Alves <palves@redhat.com>
784 * record-full.c (record_full_insn_num): Make it unsigned.
785 (record_full_check_insn_num, record_full_message)
786 (record_full_registers_change, record_full_xfer_partial): Remove
787 record_full_insn_max_num check (it's always != 0).
788 (record_full_info, record_full_restore): Use %u as format string.
789 (): Use %u as format string.
790 (set_record_full_insn_max_num): Remove record_full_insn_max_num
791 check (it's always != 0).
793 2013-03-26 Pedro Alves <palves@redhat.com>
795 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
796 and "set dcache size" commands zuinteger instead of uinteger.
798 2013-03-26 Pedro Alves <palves@redhat.com>
800 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
801 command zuinteger instead of uinteger.
803 2013-03-26 Pedro Alves <palves@redhat.com>
805 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
806 zuinteger instead of uinteger.
808 2013-03-26 Pedro Alves <palves@redhat.com>
810 * record.c (record_insn_history_size_setshow_var)
811 (record_call_history_size_setshow_var): New globals.
812 (command_size_to_target_size): New function.
813 (cmd_record_insn_history, cmd_record_call_history): Use
814 command_size_to_target_size instead of cast.
815 (validate_history_size, set_record_insn_history_size)
816 (set_record_call_history_size): New functions.
817 (_initialize_record): Install set_record_insn_history_size and
818 set_record_call_history_size as "set" hooks of "set record
819 instruction-history-size" and "set record
820 function-call-history-size".
822 2013-03-26 Pedro Alves <palves@redhat.com>
824 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
825 use with history_max_entries use. Remove FIXME note.
827 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
829 * record-btrace.c (record_btrace_close): Call
830 record_btrace_auto_disable.
832 2013-03-25 Joel Brobecker <brobecker@adacore.com>
834 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
836 2013-03-25 Doug Evans <dje@google.com>
838 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
840 2013-03-25 Tom Tromey <tromey@redhat.com>
843 * c-exp.y (exp): Add new productions for destructors after '.' and
845 (write_destructor_name): New function.
847 2013-03-25 Tom Tromey <tromey@redhat.com>
850 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
851 value_struct_elt, not lookup_struct_elt_type.
852 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
853 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
854 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
856 2013-03-25 Yao Qi <yao@codesourcery.com>
858 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
861 2013-03-23 Eli Zaretskii <eliz@gnu.org>
863 * windows-nat.c (windows_get_absolute_argv0): New function.
864 * windows-nat.h: Add its prototype.
866 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
867 Use IS_DIR_SEPARATOR instead of looking for a character inside
868 SLASH_STRING. Include filenames.h.
869 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
870 relocate_gdb_directory works when passed gdb_program_name.
871 Include windows-nat.h.
873 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
875 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
876 * remote.c (trace_error): Remove the special handling of '2'.
877 (readchar) <SERIAL_EOF>
878 (readchar) <SERIAL_ERROR>
879 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
880 (remote_get_trace_status): Call throw_exception if EX is
882 * utils.c (perror_with_name): Rename to ...
883 (throw_perror_with_name): ... here. New parameter errcode, describe it
884 in the function comment.
885 (perror_with_name): New function wrapper.
886 * utils.h (enum errors): New stub declaration.
887 (throw_perror_with_name): New declaration.
889 2013-03-22 Pedro Alves <palves@redhat.com>
890 Yao Qi <yao@codesourcery.com>
891 Mark Kettenis <kettenis@gnu.org>
893 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
894 Don't let the user set the value to UINT_MAX directly.
895 <var_integer>: Don't let the user set the value to INT_MAX
898 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
900 * remote.c (remote_unpush_target): New function.
901 (remote_open_1): Remove two pop_target calls, update one comment, add
902 comment to target_preopen call. Replace pop_target call by
903 remote_unpush_target call.
904 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
905 pop_target calls by remote_unpush_target calls.
907 2013-03-22 Pedro Alves <palves@redhat.com>
909 * linux-nat.c (linux_child_follow_fork): Don't call
910 linux_enable_event_reporting.
911 (linux_handle_extended_wait): Don't call
912 linux_enable_event_reporting.
914 2013-03-22 Pedro Alves <palves@redhat.com>
916 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
917 use it to rewrite the trampoline buffers with type gdb_byte[], and
918 undefine the macro. Remove char* cast.
920 2013-03-21 Doug Evans <dje@google.com>
922 New commands "mt set per-command {space,time,symtab} {on,off}".
924 * event-top.c: #include "maint.h".
925 * main.c: #include "maint.h".
926 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
927 timeval-utils.h, maint.h, cli/cli-setshow.h.
928 (per_command_time, per_command_space): New static globals.
929 (per_command_symtab): New static global.
930 (per_command_setlist, per_command_showlist): New static globals.
931 (struct cmd_stats): Move here from utils.c.
932 (set_per_command_time): Renamed from set_display_time in utils.c
933 and moved here. All callers updated.
934 (set_per_command_space): Renamed from set_display_space in utils.c
935 and moved here. All callers updated.
936 (count_symtabs_and_blocks): New function.
937 (report_command_stats): Moved here from utils.c. Add support for
938 printing symtab stats. Only print data if enabled before command
940 (make_command_stats_cleanup): Ditto.
941 (sert_per_command_cmd, show_per_command_cmd): New functions.
942 (_initialize_maint_cmds): Add new commands
943 mt set per-command {space,time,symtab} {on,off}.
945 * top.c: #include "maint.h".
946 * utils.c (reset_prompt_for_continue_wait_time): New function.
947 (get_prompt_for_continue_wait_time): New function.
948 * utils.h (reset_prompt_for_continue_wait_time): Declare
949 (get_prompt_for_continue_wait_time): Declare.
950 (make_command_stats_cleanup): Moved to maint.h.
951 (set_display_time, set_display_space): Moved to maint.h and renamed
952 to set_per_command_time, set_per_command_space.
953 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
954 parse_binary_operation and made non-static. Don't call error,
955 just return an error marker. All callers updated.
956 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
958 2013-03-21 Tom Tromey <tromey@redhat.com>
960 * symfile.c (alloc_section_addr_info): Update header. Don't set
961 'num_sections' field.
962 (build_section_addr_info_from_section_table): Set 'num_sections'.
963 (build_section_addr_info_from_bfd): Likewise.
964 (build_section_addr_info_from_objfile): Remove dead loop
966 (free_section_addr_info): Unconditionally call xfree.
967 (relative_addr_info_to_section_offsets, addrs_section_sort)
968 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
970 (syms_from_objfile_1): Remove dead 'if' condition. Check
972 (add_symbol_file_command): Set 'num_sections'.
973 * symfile-mem.c (symbol_file_add_from_memory): Set
975 * somread.c (som_symfile_offsets): Remove dead loop condition.
976 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
977 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
979 2013-03-21 Tom Tromey <tromey@redhat.com>
981 * tracepoint.h (decode_agent_options): Add 'trace_string'
983 * tracepoint.c (decode_agent_options): Add 'trace_string'
985 (validate_actionline): Update.
986 (collect_symbol): Add 'trace_string' argument.
987 (struct add_local_symbols_data) <trace_string>: New field.
988 (do_collect_symbol): Update.
989 (add_local_symbols): Add 'trace_string' argument.
990 (encode_actions_1): Update.
991 (trace_dump_actions): Update.
992 * dwarf2loc.c (access_memory): Update.
993 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
994 * ax-general.c (new_agent_expr): Update.
995 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
996 (gen_trace_for_return_address): Add argument.
997 (trace_kludge, trace_string_kludge): Remove.
998 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
999 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
1000 (gen_trace_for_var): Add 'trace_string' argument.
1001 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
1002 (gen_printf, agent_eval_command_one): Update.
1004 2013-03-21 Tom Tromey <tromey@redhat.com>
1007 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
1008 Handle FILENAME token.
1010 2013-03-21 Tom Tromey <tromey@redhat.com>
1012 * c-exp.y (YYPRINT): Define.
1013 (c_print_token): New function.
1015 2013-03-21 Tom Tromey <tromey@redhat.com>
1017 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
1019 2013-03-21 Yao Qi <yao@codesourcery.com>
1021 * ctf.c: Include "gdb_stat.h".
1022 [USE_WIN32API]: New macro 'mkdir'.
1023 (ctf_start): Use permission bits macros if they are defined.
1025 2013-03-20 Keith Seitz <keiths@redhat.com>
1027 * breakpoint.h (struct breakpoint): Add comment to
1028 extra_string indicating that this member is mallod'd.
1029 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
1031 2013-03-20 Pedro Alves <palves@redhat.com>
1035 * cli/cli-setshow.c (do_set_command)
1036 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
1037 the result of parsing the command argument. Throw error if the
1038 value is greater than UINT_MAX. Print the invalid value with
1040 <var_integer, var_zinteger>: Use LONGEST for variable holding the
1041 result of parsing the command argument. Throw error if the value
1042 is greater than INT_MAX, not greater or equal. Also throw error
1043 if the value is less than INT_MIN. Print the invalid value with
1045 <var_zuinteger_unlimited>: Throw error if the value is greater
1046 than INT_MAX, not greater or equal.
1047 (do_show_command) <var_integer, var_zinteger,
1048 var_zuinteger_unlimited>: Use %d for printing int, not %u.
1050 2013-03-20 Tom Tromey <tromey@redhat.com>
1052 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
1054 * dwarf2read.c (read_func_scope): Remove old FIXME.
1055 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
1057 * findvar.c (symbol_read_needs_frame, default_read_var_value):
1058 Unconditionally call via computed ops, if possible.
1059 * printcmd.c (address_info): Unconditionally call via computed ops,
1061 * stack.c (read_frame_arg): Unconditionally call via computed ops,
1063 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
1064 * tracepoint.c (scope_info): Unconditionally call via computed ops,
1067 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1068 Tom Tromey <tromey@redhat.com>
1071 * coffread.c (coff_register_index): New global.
1072 (process_coff_symbol, coff_read_enum_type): Set
1073 SYMBOL_ACLASS_INDEX.
1074 (_initialize_coffread): Initialize new global.
1075 * dwarf2loc.c (locexpr_find_frame_base_location)
1076 (dwarf2_block_frame_base_locexpr_funcs)
1077 (loclist_find_frame_base_location)
1078 (dwarf2_block_frame_base_loclist_funcs): New.
1079 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
1080 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
1081 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
1082 (dwarf2_block_frame_base_loclist_funcs): New.
1083 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
1084 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
1086 (read_func_scope): Update.
1087 (fixup_go_packaging, mark_common_block_symbol_computed)
1088 (var_decode_location, new_symbol_full, dwarf2_const_value):
1089 Set SYMBOL_ACLASS_INDEX.
1090 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
1091 (_initialize_dwarf2_read): Initialize new globals.
1092 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
1093 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
1094 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
1096 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
1097 (_initialize_mdebugread): Initialize new globals.
1098 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
1099 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
1100 (stab_register_index, stab_regparm_index): New globals.
1101 (define_symbol, read_enum_type, common_block_end): Set
1102 SYMBOL_ACLASS_INDEX.
1103 (_initialize_stabsread): Initialize new globals.
1104 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
1106 (MAX_SYMBOL_IMPLS): New define.
1107 (register_symbol_computed_impl, register_symbol_block_impl)
1108 (register_symbol_register_impl)
1109 (initialize_ordinary_address_classes): New functions.
1110 (_initialize_symtab): Call initialize_ordinary_address_classes.
1111 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
1112 (struct symbol_impl): New.
1113 (SYMBOL_ACLASS_BITS): New define.
1114 (struct symbol) <aclass, ops>: Remove fields.
1115 <aclass_index>: New field.
1116 (symbol_impls): Declare.
1117 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
1118 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
1119 (register_symbol_computed_impl, register_symbol_block_impl)
1120 (register_symbol_register_impl): Declare.
1121 (struct symbol_computed_ops): Add location_has_loclist.
1122 (struct symbol_block_ops): New.
1123 (SYMBOL_BLOCK_OPS): New.
1124 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
1126 2013-03-20 Tom Tromey <tromey@redhat.com>
1128 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
1129 (print_partial_symbols, recursively_search_psymtabs): Use
1132 2013-03-20 Pierre Muller <muller@sourceware.org>
1134 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
1135 addtion, subtraction, multiplication and division binary operator.
1137 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1140 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
1141 * bsd-kvm.c (bsd_kvm_close): Likewise.
1142 * bsd-uthread.c (bsd_uthread_close): Likewise.
1143 * corelow.c (core_close): Likewise.
1144 (core_close_cleanup): Remove parameter quitting from a caller.
1145 * event-top.c (async_disconnect): Likewise.
1146 * exec.c (exec_close_1): Remove parameter quitting.
1147 * go32-nat.c (go32_close): Likewise.
1148 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
1149 parameter quitting from a caller.
1150 * mips-linux-nat.c (super_close): Remove parameter quitting from the
1152 (mips_linux_close): Remove parameter quitting. Remove parameter
1153 quitting from a caller.
1154 * monitor.c (monitor_close): Remove parameter quitting.
1155 * monitor.h (monitor_close): Likewise.
1156 * record-btrace.c (record_btrace_close): Likewise.
1157 * record-full.c (record_full_close): Likewise.
1158 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
1159 it also from fprintf_unfiltered.
1160 * remote-mips.c (mips_close): Remove parameter quitting.
1161 (mips_detach): Remove parameter quitting from a caller.
1162 * remote-sim.c (gdbsim_close): Remove parameter quitting.
1163 (gdbsim_close): Remove duplicate function comment. Remove parameter
1164 quitting and remove it also from printf_filtered.
1165 * remote.c (remote_close): Remove parameter quitting.
1166 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
1167 * target.c (update_current_target): Remove parameter int from to_close
1169 (push_target, unpush_target, pop_target): Remove parameter quitting from
1171 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
1172 Remove parameter quitting from a caller.
1173 (target_preopen): Remove parameter quitting from a caller.
1174 (target_close): Remove parameter quitting. Remove parameter quitting
1175 from a caller two times. Remove parameter quitting also from
1177 * target.h (struct target_ops): Remove parameter quitting and as int
1178 from fields to_xclose and to_close.
1179 (extern struct target_ops current_target):
1180 (target_close, pop_all_targets): Remove parameter quitting. Update the
1182 (pop_all_targets_above): Remove parameter quitting.
1183 * top.c (quit_target): Remove parameter quitting from a caller.
1184 * tracepoint.c (tfile_close): Remove parameter quitting.
1185 * windows-nat.c (windows_close): Remove parameter quitting.
1187 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
1189 * windows-nat.c (handle_output_debug_string): Replace call
1190 to string_to_core_addr with call to strtoull.
1192 2013-03-20 Yao Qi <yao@codesourcery.com>
1194 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
1195 and write it to CTF metadata.
1197 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
1199 * windows-nat.c (handle_output_debug_string): Change type of n to
1200 SIZE_T to avoid crash on 64 bit systems.
1202 2013-03-17 Eli Zaretskii <eliz@gnu.org>
1204 * python/python-internal.h (HAVE_SNPRINTF)
1205 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
1206 about redefinition of snprintf by pyerrors.h.
1208 2013-03-15 Steve Ellcey <sellcey@mips.com>
1210 * remote-sim.c (sim_command_completer): Make char arguments const.
1212 2013-03-15 Tom Tromey <tromey@redhat.com>
1215 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
1217 2013-03-14 Tom Tromey <tromey@redhat.com>
1219 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
1221 (get_file_crc): Move from symfile.c.
1222 (gdb_bfd_crc): New function.
1223 * gdb_bfd.h (gdb_bfd_crc): Declare.
1224 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
1225 * symfile.c (get_file_crc): Move to gdb_bfd.c.
1226 (separate_debug_file_exists): Use gdb_bfd_crc.
1228 2013-03-14 Tom Tromey <tromey@redhat.com>
1230 * symfile.c (get_debug_link_info): Remove.
1231 (find_separate_debug_file_by_debuglink): Use
1232 bfd_get_debug_link_info.
1234 2013-03-14 Tom Tromey <tromey@redhat.com>
1236 * symtab.c (error_in_psymtab_expansion): New function.
1237 (lookup_symbol_aux_quick)
1238 (basic_lookup_transparent_type_quick): Remove "last resort"
1239 code. Use error_in_psymtab_expansion.
1241 2013-03-14 Doug Evans <dje@google.com>
1242 Jan Kratochvil <jan.kratochvil@redhat.com>
1244 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
1245 any successful compare_filenames_for_search or FILENAME_CMP.
1246 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
1247 * symtab.c (iterate_over_some_symtabs): Likewise.
1249 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1251 * source.c (print_source_lines_base): Make a local copy of
1254 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
1255 Jan Kratochvil <jan.kratochvil@redhat.com>
1257 * source.c (print_source_lines_base): Suppress "file" for TUI.
1259 2013-03-14 Keith Seitz <keiths@redhat.com>
1260 Alan Matsuoka <alanm@redhat.com>
1264 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
1266 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
1269 2013-03-14 Yao Qi <yao@codesourcery.com>
1271 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
1272 status to tfile if trace is stopped by command 'tstop'.
1274 2013-03-14 Yao Qi <yao@codesourcery.com>
1276 * tracepoint.c (tfile_write_status): Write trace notes and user
1277 name into tfile if they are not NULL.
1279 2013-03-14 Hui Zhu <hui@codesourcery.com>
1280 Yao Qi <yao@codesourcery.com>
1282 * Makefile.in (REMOTE_OBS): Add ctf.o.
1283 (SFILES): Add ctf.c.
1284 (HFILES_NO_SRCDIR): Add ctf.h.
1285 * ctf.c, ctf.h: New files.
1286 * tracepoint.c: Include 'ctf.h'.
1287 (collect_pseudocommand): Remove static.
1288 (trace_save_command): Parse option "-ctf".
1289 Produce different trace file writers per option.
1290 Adjust output message.
1291 (trace_save_tfile, trace_save_ctf): New.
1292 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
1293 * mi/mi-main.c: Include 'ctf.h'.
1294 (mi_cmd_trace_save): Handle option '-ctf'. Call either
1295 trace_save_tfile or trace_save_ctf.
1296 * NEWS: Mention these changes.
1298 2013-03-14 Yao Qi <yao@codesourcery.com>
1300 * tracepoint.c (trace_file_writer_xfree): New.
1301 (struct tfile_writer_data): New.
1302 (tfile_dtor, tfile_can_target_save, tfile_start): New.
1303 (tfile_write_header, tfile_write_regblock_type): New.
1304 (tfile_write_status, tfile_write_uploaded_tsv): New.
1305 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
1306 (tfile_write_raw_data, (tfile_end): New.
1307 (tfile_write_ops): New global variable.
1308 (TRACE_WRITE_R_BLOCK): New macro.
1309 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
1310 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
1311 (TRACE_WRITE_V_BLOCK): New macro.
1312 (trace_save): Add extra one parameter WRITER. Make it static.
1313 Use WRITER to writer trace.
1314 (tfile_trace_file_writer_new): New.
1315 (trace_save_command): Caller update.
1316 (trace_save_tfile): Write trace data in TFILE format.
1317 * tracepoint.h (struct trace_frame_write_ops): New.
1318 (struct trace_file_write_ops): New.
1319 (struct trace_file_writer): New.
1320 (trace_save): Remove its declaration.
1321 (trace_save_tfile): Declare it.
1322 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
1323 instead of trace_save.
1325 2013-03-13 Pedro Alves <palves@redhat.com>
1327 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
1329 2013-03-13 Pedro Alves <palves@redhat.com>
1331 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
1333 * demangle.c (current_demangling_style_string): Make it const.
1334 (set_demangling_command): Assert the demangling style is known.
1335 Remove all handling of unknown styles. Set
1336 'current_demangling_style_string' to an element of the
1337 demangling_style_names array.
1338 (set_demangling_style): Delete.
1339 (_initialize_demangler): Set current_demangling_style_string to the
1340 element of the demangling_style_names array that corresponds to
1341 the default demangling style. Remove FIXME note. Don't call
1342 set_demangling_style.
1343 * gdb-demangle.h (set_demangling_style): Remove declaration.
1345 2013-03-13 Pedro Alves <palves@redhat.com>
1347 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
1349 (ada_make_symbol_completion_list): Make "text0" parameter const.
1350 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
1351 * breakpoint.c (condition_completer): Make "text" and "word"
1352 parameters const. Adjust.
1353 (check_tracepoint_command): Adjust to validate_actionline
1355 (catch_syscall_completer): Make "text" and "word" parameters
1357 * cli/cli-cmds.c (show_user): Make "comname" local const.
1358 (valid_command_p): Make "command" parameter const.
1359 (alias_command): Make "alias_prefix" and "command_prefix" locals
1361 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
1362 (add_alias_cmd): Make "name" and "oldname" parameters const.
1363 Adjust. No longer make copy of OLDNAME.
1364 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
1365 (add_setshow_cmd_full, add_setshow_enum_cmd)
1366 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1367 (add_setshow_filename_cmd, add_setshow_string_cmd)
1368 (add_setshow_string_noescape_cmd)
1369 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1370 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1371 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
1372 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
1373 Make "name" parameter const.
1374 (help_cmd): Rename "command" parameter to "arg". New const local
1376 (find_cmd): Make "command" parameter const.
1377 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
1378 deprecated_cmd_warning prototype change.
1379 (undef_cmd_error): Make "cmdtype" parameter const.
1380 (lookup_cmd): Make "line" parameter const.
1381 (deprecated_cmd_warning): Change type of "text" parameter to
1382 pointer to const char, from pointer to pointer to char. Adjust.
1383 (lookup_cmd_composition): Make "text" parameter const.
1384 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
1386 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
1388 * cli/cli-script.c (validate_comname): Make "tem" local const.
1389 (define_command): New const local "tem_c". Use it in calls to
1391 (document_command): Make "tem" and "comfull" locals const.
1392 (show_user_1): Make "prefix" and "name" parameters const.
1393 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
1395 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
1396 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
1397 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
1398 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
1399 (complete_on_enum, add_setshow_enum_cmd)
1400 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1401 (add_setshow_filename_cmd, add_setshow_string_cmd)
1402 (add_setshow_string_noescape_cmd)
1403 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1404 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1405 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1406 Change prototypes, constifying strings.
1407 * completer.c (noop_completer, filename_completer): Make "text"
1408 and "prefix" parameters const.
1409 (location_completer, expression_completer)
1410 (complete_line_internal): Make "text" and "prefix" parameters
1412 (command_completer, signal_completer): Make "text" and "prefix"
1414 * completer.h (noop_completer, filename_completer)
1415 (expression_completer, location_completer, command_completer)
1416 (signal_completer): Change prototypes.
1417 * corefile.c (complete_set_gnutarget): Make "text" and "word"
1419 * cp-abi.c (cp_abi_completer): Likewise.
1420 * expression.h (parse_expression_for_completion): Change
1422 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
1424 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
1425 * infrun.c (handle_completer): Make "text" and "word" parameters
1427 * interps.c (interpreter_completer): Make "text" and "word"
1429 * language.h (struct language_defn)
1430 <la_make_symbol_completion_list>: Make "text" and "word"
1432 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
1433 (parse_exp_in_context): Rename to ...
1434 (parse_exp_in_context_1): ... this.
1435 (parse_exp_in_context): Reimplement, with const hack from
1437 (parse_expression_for_completion): Make "string" parameter const.
1438 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
1439 to pointer to const char. Adjust.
1440 (print_command_1): Make "exp" parameter const.
1441 (output_command): Rename to ...
1442 (output_command_const): ... this. Make "exp" parameter const.
1443 (output_command): Reimplement.
1444 (x_command): Adjust.
1445 (display_command): Rename "exp" parameter to "arg". New "exp"
1446 local, const version of "arg".
1447 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
1448 "cmd_name" local const.
1449 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
1451 (cmdpy_completer): Make "text" and "word" parameters const.
1452 (gdbpy_parse_command_name): Make "prefix_text2" local const.
1453 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
1455 * remote.c (_initialize_remote): Make "cmd_name" local const.
1456 * symtab.c (language_search_unquoted_string): Make "text" and "p"
1457 parameters const. Adjust.
1458 (completion_list_add_fields): Make "sym_text", "text" and "word"
1460 (struct add_name_data) <sym_text, text, word>: Make fields const.
1461 (default_make_symbol_completion_list_break_on): Make "text" and
1462 "word" parameters const. Adjust locals.
1463 (default_make_symbol_completion_list)
1464 (make_symbol_completion_list, make_symbol_completion_type)
1465 (make_symbol_completion_list_fn): Make "text" and "word"
1467 (make_file_symbol_completion_list): Make "text", "word" and
1468 "srcfile" parameters const. Adjust locals.
1469 (add_filename_to_list): Make "text" and "word" parameters const.
1470 (struct add_partial_filename_data) <text, word>: Make fields
1472 (make_source_files_completion_list): Make "text" and "word"
1474 * symtab.h (default_make_symbol_completion_list_break_on)
1475 (default_make_symbol_completion_list, make_symbol_completion_list)
1476 (make_symbol_completion_type enum type_code)
1477 (make_symbol_completion_list_fn make_file_symbol_completion_list)
1478 (make_source_files_completion_list): Change prototype.
1479 * top.c (execute_command): Adjust to pass pointer to pointer to
1480 const char to lookup_cmd, and to deprecated_cmd_warning prototype
1482 (set_verbose): Make "cmdname" local const.
1483 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
1485 (validate_actionline): Make "line" parameter a pointer to const
1487 (encode_actions_1): Make "action_exp" local const, and adjust.
1488 (encode_actions): Adjust.
1489 (replace_comma): Delete.
1490 (trace_dump_actions): Make "action_exp" and "next_comma" locals
1491 const, and adjust. Don't frob the action string while splitting
1492 it at commas. Instead, make a copy of each split substring in
1494 (trace_dump_command): Adjust to validate_actionline prototype
1496 * tracepoint.h (decode_agent_options, decode_agent_options)
1497 (encode_actions, validate_actionline): Change prototypes.
1498 * valprint.h (output_command): Delete declaration.
1499 (output_command_const): Declare.
1500 * value.c (function_destroyer): Cast const away in xfree call.
1502 2013-03-13 Pedro Alves <palves@redhat.com>
1504 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
1505 rather than casting 'const char * const *' to 'const char **'.
1506 * ada-lex.l (processInt): Make "trailer" local const. Remove
1507 'const char **' cast.
1508 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
1509 locals, and use those as strtol output pointer, instead than doing
1510 invalid casts to from 'const char **' to 'char **'.
1511 (_initialize_demangle): Remove cast.
1512 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
1513 locals, and use those as strtol output pointer, instead than doing
1514 invalid casts to from 'const char **' to 'char **'.
1515 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
1517 * stap-probe.c (stap_parse_register_operand)
1518 (stap_parse_single_operand): Likewise.
1520 2013-03-13 Yao Qi <yao@codesourcery.com>
1522 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
1523 the last matched 'V' blcok in trace frame.
1525 2013-03-12 Joel Brobecker <brobecker@adacore.com>
1527 * NEWS: Create a new section for the next release branch.
1528 Rename the section of the current branch, now that it has
1531 2013-03-12 Joel Brobecker <brobecker@adacore.com>
1533 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
1534 * version.in: Bump version to 7.6.50.20130312-cvs.
1536 2013-03-12 Keith Seitz <keiths@redhat.com>
1538 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
1539 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
1540 Remove temporary copy of input string.
1541 (mi_execute_command_wrapper): Make "cmd" const.
1542 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
1543 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
1545 (mi_parse): Make "cmd" const.
1547 * mi/mi-parse.h (mi_parse): Make "cmd" const.
1549 2013-03-12 Keith Seitz <keiths@redhat.com>
1551 * ada-lang.c (ada_read_renaming_var_value): Pass const
1552 pointer to expression string to parse_exp_1.
1553 (create_excep_cond_exprs): Likewise.
1554 * ax-gdb.c (agent_eval_command_one): Likewise.
1555 (maint_agent_printf_command): Likewise.
1556 Constify much of the string handling/parsing.
1557 * breakpoint.c (set_breakpoint_condition): Pass const
1558 pointer to expression string to parse_exp_1.
1559 (update_watchpoint): Likewise.
1560 (parse_cmd_to_aexpr): Constify string handling.
1561 Pass const pointer to parse_exp_1.
1562 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
1563 (find_condition_and_thread): Likewise.
1565 (watch_command_1): Make "arg" const.
1566 Constify string handling.
1567 Copy the expression string instead of changing the input
1569 (update_breakpoint_location): Pass const pointer to
1571 * eval.c (parse_and_eval_address): Make "exp" const.
1572 (parse_to_comma_and_eval): Make "expp" const.
1573 (parse_and_eval): Make "exp" const.
1574 * expression.h (parse_expression): Make argument const.
1575 (parse_exp_1): Make first argument const.
1576 * findcmd.c (parse_find_args): Treat "args" as const.
1577 * linespec.c (parse_linespec): Pass const pointer to
1578 linespec_expression_to_pc.
1579 (linespec_expression_to_pc): Make "exp_ptr" const.
1580 * parse.c (parse_exp_1): Make "stringptr" const.
1581 Make a copy of the expression to pass to parse_exp_in_context until
1582 this whole interface can be constified.
1583 (parse_expression): Make "string" const.
1584 * printcmd.c (ui_printf): Treat "arg" as const.
1585 Handle const strings.
1586 * tracepoint.c (validate_actionline): Pass const pointer to
1587 all calls to parse_exp_1.
1588 (encode_actions_1): Likewise.
1589 * value.h (parse_to_comma_and_eval): Make argument const.
1590 (parse_and_eval_address): Likewise.
1591 (parse_and_eval): Likewise.
1592 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
1593 (varobj_set_value): Likewise.
1594 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
1595 constify string handling.
1596 Pass const pointers to parse_and_eval_address and
1597 parse_to_comman_and_eval.
1598 * cli/cli-utils.c (skip_to_space): Rename to ...
1599 (skip_to_space_const): ... this. Handle const strings.
1600 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
1601 skip_to_space_const.
1602 (skip_to_space_const): Declare.
1603 * common/format.c (parse_format_string): Make "arg" const.
1604 Handle const strings.
1605 * common/format.h (parse_format_string): Make "arg" const.
1606 * gdbserver/ax.c (ax_printf): Make "format" const.
1607 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
1608 of the expression string.
1610 2013-03-12 Hui Zhu <hui@codesourcery.com>
1612 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
1614 2013-03-12 Yao Qi <yao@codesourcery.com>
1615 Hui Zhu <hui@codesourcery.com>
1617 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
1618 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
1621 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
1623 * ada-lex.l (rules): Only recognize 'thread' as a
1624 delimiter when followed by numerals, as for c-exp.y.
1625 Use new rewind_to_char function to rewind the input for
1626 expression-delimiting tokens.
1627 (rewind_to_char): New function.
1629 2013-03-11 Pedro Alves <palves@redhat.com>
1630 Jan Kratochvil <jan.kratochvil@redhat.com>
1632 * configure: Regenerate.
1633 * configure.ac (check dynamic export flag): Link python test with
1636 2013-03-11 Doug Evans <dje@google.com>
1637 Keith Seitz <keiths@redhat.com>
1639 * linespec.c (find_linespec_symbols): Call find_function_symbols
1640 first, and then call lookup_prefix_sym/find_method.
1642 2013-03-11 Pedro Alves <palves@redhat.com>
1644 * charset.c (convert_between_encodings): Don't cast between
1645 different pointer to pointer types. Instead, make the 'inp' local
1646 be of the type iconv expects.
1647 (wchar_iterate): Don't cast between different pointer to pointer
1648 types. Instead, use new pointer local of the type iconv expects.
1649 * target.c (target_read_stralloc, target_fileio_read_stralloc):
1650 Add new local of type char pointer, and use it to get a
1651 char/string view of the byte buffer, instead of casting between
1652 pointer to pointer types.
1654 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
1656 * remote.c (remote_set_trace_buffer_size): Move != operator
1657 to the start of next line to fix an ARI warning.
1659 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1661 * NEWS: Add record changes.
1663 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1665 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
1666 the instruction history disassembly.
1667 * disasm.c (dump_insns): Omit the pc prefix, if requested.
1668 * disasm.h (DISASSEMBLY_OMIT_PC): New.
1670 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1672 * Makefile.in (SFILES): Add record-btrace.c
1673 (COMMON_OBS): Add record-btrace.o
1674 * record-btrace.c: New.
1675 * objfiles.c: Include btrace.h.
1676 (free_objfile): call btrace_free_objfile.
1678 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1680 * target.c (target_call_history, target_call_history_from,
1681 target_call_history_range): New.
1682 * target.h (target_ops) <to_call_history, to_call_history_from,
1683 to_call_history_range>: New fields.
1684 (target_call_history, target_call_history_from,
1685 target_call_history_range): New declaration.
1686 * record.c (get_call_history_modifiers, cmd_record_call_history,
1687 record_call_history_size): New.
1688 (_initialize_record): Add the "record function-call-history" command.
1689 Add "set/show record function-call-history-size" commands.
1690 * record.h (record_print_flag): New.
1692 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1694 * target.h (target_ops) <to_insn_history, to_insn_history_from,
1695 to_insn_history_range>: New fields.
1696 (target_insn_history): New.
1697 (target_insn_history_from): New.
1698 (target_insn_history_range): New.
1699 * target.c (target_insn_history): New.
1700 (target_insn_history_from): New.
1701 (target_insn_history_range): New.
1702 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
1703 (record_insn_history_size): New.
1704 (get_insn_number): New.
1705 (get_context_size): New.
1707 (get_insn_history_modifiers): New.
1708 (cmd_record_insn_history): New.
1709 (_initialize_record): Add "set/show record instruction-history-size"
1710 command. Add "record instruction-history" command.
1712 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1714 * record.h (record_disconnect): New.
1715 (record_detach): New.
1716 (record_mourn_inferior): New.
1718 * record-full.c (record_disconnect, record_detach,
1719 record_mourn_inferior, record_kill): Move to...
1720 * record.c: ...here.
1723 (record_unpush): New.
1724 (cmd_record_stop): Call record_stop. Replace unpush_target
1725 call with record_unpush call.
1726 (record_disconnect, record_detach): Assert that the target
1727 is of record stratum. Call record_unpush, record_stop, and
1729 (record_mourn_inferior, record_kill): Assert that the target
1730 is of record stratum. Call record_unpush and DEBUG.
1732 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1734 * record-full.h, record-full.c (record_memory_query): Rename
1736 (record_full_memory_query): ...this. Update all users.
1737 (record_arch_list_add_reg): Rename to ...
1738 (record_full_arch_list_add_reg): ...this. Update all users.
1739 (record_arch_list_add_mem): Rename to ...
1740 (record_full_arch_list_add_mem): ...this. Update all users.
1741 (record_arch_list_add_end): Rename to ...
1742 (record_full_arch_list_add_end): ...this. Update all users.
1743 (record_gdb_operation_disable_set): Rename to ...
1744 (record_full_gdb_operation_disable_set): ...this.
1747 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1749 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
1750 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
1751 (RECORD_IS_REPLAY): Renamed to ...
1752 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
1753 (RECORD_FILE_MAGIC): Renamed to ...
1754 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
1755 (record_mem_entry): Renamed to ...
1756 (record_full_mem_entry): ... this. Updated all users.
1757 (record_reg_entry): Renamed to ...
1758 (record_full_reg_entry): ... this. Updated all users.
1759 (record_end_entry): Renamed to ...
1760 (record_full_end_entry): ... this. Updated all users.
1761 (record_type) <record_end, record_reg, record_mem>: Renamed
1763 (record_full_type) <record_full_end, record_full_reg,
1764 record_full_mem>: ... this. Updated all users.
1765 (record_entry): Renamed to ...
1766 (record_full_entry): ... this. Updated all users.
1767 (record_core_buf_entry): Renamed to ...
1768 (record_full_core_buf_entry): ... this. Updated all users.
1769 (record_core_regbuf): Renamed to ...
1770 (record_full_core_regbuf): ... this. Updated all users.
1771 (record_core_start): Renamed to ...
1772 (record_full_core_start): ... this. Updated all users.
1773 (record_core_end): Renamed to ...
1774 (record_full_core_end): ... this. Updated all users.
1775 (record_core_buf_list): Renamed to ...
1776 (record_full_core_buf_list): ... this. Updated all users.
1777 (record_first): Renamed to ...
1778 (record_full_first): ... this. Updated all users.
1779 (record_list): Renamed to ...
1780 (record_full_list): ... this. Updated all users.
1781 (record_arch_list_head): Renamed to ...
1782 (record_full_arch_list_head): ... this. Updated all users.
1783 (record_arch_list_tail): Renamed to ...
1784 (record_full_arch_list_tail): ... this. Updated all users.
1785 (record_stop_at_limit): Renamed to ...
1786 (record_full_stop_at_limit): ... this. Updated all users.
1787 (record_insn_max_num): Renamed to ...
1788 (record_full_insn_max_num): ... this. Updated all users.
1789 (record_insn_num): Renamed to ...
1790 (record_full_insn_num): ... this. Updated all users.
1791 (record_insn_count): Renamed to ...
1792 (record_full_insn_count): ... this. Updated all users.
1793 (record_ops): Renamed to ...
1794 (record_full_ops): ... this. Updated all users.
1795 (record_core_ops): Renamed to ...
1796 (record_full_core_ops): ... this. Updated all users.
1797 (set_record_cmdlist): Renamed to ...
1798 (set_record_full_cmdlist): ... this. Updated all users.
1799 (show_record_cmdlist): Renamed to ...
1800 (show_record_full_cmdlist): ... this. Updated all users.
1801 (record_cmdlist): Renamed to ...
1802 (record_full_cmdlist): ... this. Updated all users.
1803 (record_beneath_to_resume_ops): Renamed to ...
1804 (record_full_beneath_to_resume_ops): ... this. Updated all users.
1805 (record_beneath_to_resume): Renamed to ...
1806 (record_full_beneath_to_resume): ... this. Updated all users.
1807 (record_beneath_to_wait_ops): Renamed to ...
1808 (record_full_beneath_to_wait_ops): ... this. Updated all users.
1809 (record_beneath_to_wait): Renamed to ...
1810 (record_full_beneath_to_wait): ... this. Updated all users.
1811 (record_beneath_to_store_registers_ops): Renamed to ...
1812 (record_full_beneath_to_store_registers_ops): ... this.
1814 (record_beneath_to_store_registers): Renamed to ...
1815 (record_full_beneath_to_store_registers): ... this.
1817 (record_beneath_to_xfer_partial_ops): Renamed to ...
1818 (record_full_beneath_to_xfer_partial_ops): ... this.
1820 (record_beneath_to_xfer_partial): Renamed to ...
1821 (record_full_beneath_to_xfer_partial): ... this.
1823 (record_beneath_to_insert_breakpoint): Renamed to ...
1824 (record_full_beneath_to_insert_breakpoint): ... this.
1826 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
1827 (record_full_beneath_to_stopped_by_watchpoint): ... this.
1829 (record_beneath_to_stopped_data_address): Renamed to ...
1830 (record_full_beneath_to_stopped_data_address): ... this.
1832 (record_beneath_to_async): Renamed to ...
1833 (record_full_beneath_to_async): ... this. Updated all users.
1834 (record_goto_insn): Renamed to ...
1835 (record_full_goto_insn): ... this. Updated all users.
1836 (record_save): Renamed to ...
1837 (record_full_save): ... this. Updated all users.
1838 (record_reg_alloc): Renamed to ...
1839 (record_full_reg_alloc): ... this. Updated all users.
1840 (record_reg_release): Renamed to ...
1841 (record_full_reg_release): ... this. Updated all users.
1842 (record_mem_alloc): Renamed to ...
1843 (record_full_mem_alloc): ... this. Updated all users.
1844 (record_mem_release): Renamed to ...
1845 (record_full_mem_release): ... this. Updated all users.
1846 (record_end_alloc): Renamed to ...
1847 (record_full_end_alloc): ... this. Updated all users.
1848 (record_end_release): Renamed to ...
1849 (record_full_end_release): ... this. Updated all users.
1850 (record_entry_release): Renamed to ...
1851 (record_full_entry_release): ... this. Updated all users.
1852 (record_list_release): Renamed to ...
1853 (record_full_list_release): ... this. Updated all users.
1854 (record_list_release_following): Renamed to ...
1855 (record_full_list_release_following): ... this.
1857 (record_list_release_first): Renamed to ...
1858 (record_full_list_release_first): ... this. Updated all users.
1859 (record_arch_list_add): Renamed to ...
1860 (record_full_arch_list_add): ... this. Updated all users.
1861 (record_get_loc): Renamed to ...
1862 (record_full_get_loc): ... this. Updated all users.
1863 (record_check_insn_num): Renamed to ...
1864 (record_full_check_insn_num): ... this. Updated all users.
1865 (record_arch_list_cleanups): Renamed to ...
1866 (record_full_arch_list_cleanups): ... this. Updated all users.
1867 (record_message): Renamed to ...
1868 (record_full_message): ... this. Updated all users.
1869 (record_message_wrapper): Renamed to ...
1870 (record_full_message_wrapper): ... this. Updated all users.
1871 (record_message_wrapper_safe): Renamed to ...
1872 (record_full_message_wrapper_safe): ... this. Updated all users.
1873 (record_gdb_operation_disable): Renamed to ...
1874 (record_full_gdb_operation_disable): ... this. Updated all users.
1875 (record_hw_watchpoint): Renamed to ...
1876 (record_full_hw_watchpoint): ... this. Updated all users.
1877 (record_exec_insn): Renamed to ...
1878 (record_full_exec_insn): ... this. Updated all users.
1879 (record_restore): Renamed to ...
1880 (record_full_restore): ... this. Updated all users.
1881 (record_async_inferior_event_token): Renamed to ...
1882 (record_full_async_inferior_event_token): ... this.
1884 (record_async_inferior_event_handler): Renamed to ...
1885 (record_full_async_inferior_event_handler): ... this.
1887 (record_core_open_1): Renamed to ...
1888 (record_full_core_open_1): ... this. Updated all users.
1889 (record_open_1): Renamed to ...
1890 (record_full_open_1): ... this. Updated all users.
1891 (record_open): Renamed to ...
1892 (record_full_open): ... this. Updated all users.
1893 (record_close): Renamed to ...
1894 (record_full_close): ... this. Updated all users.
1895 (record_resume_step): Renamed to ...
1896 (record_full_resume_step): ... this. Updated all users.
1897 (record_resumed): Renamed to ...
1898 (record_full_resumed): ... this. Updated all users.
1899 (record_execution_dir): Renamed to ...
1900 (record_full_execution_dir): ... this. Updated all users.
1901 (record_resume): Renamed to ...
1902 (record_full_resume): ... this. Updated all users.
1903 (record_get_sig): Renamed to ...
1904 (record_full_get_sig): ... this. Updated all users.
1905 (record_sig_handler): Renamed to ...
1906 (record_full_sig_handler): ... this. Updated all users.
1907 (record_wait_cleanups): Renamed to ...
1908 (record_full_wait_cleanups): ... this. Updated all users.
1909 (record_wait_1): Renamed to ...
1910 (record_full_wait_1): ... this. Updated all users.
1911 (record_wait): Renamed to ...
1912 (record_full_wait): ... this. Updated all users.
1913 (record_stopped_by_watchpoint): Renamed to ...
1914 (record_full_stopped_by_watchpoint): ... this. Updated all users.
1915 (record_disconnect): Renamed to ...
1916 (record_full_disconnect): ... this. Updated all users.
1917 (record_detach): Renamed to ...
1918 (record_full_detach): ... this. Updated all users.
1919 (record_mourn_inferior): Renamed to ...
1920 (record_full_mourn_inferior): ... this. Updated all users.
1921 (record_kill): Renamed to ...
1922 (record_full_kill): ... this. Updated all users.
1923 (record_stopped_data_address): Renamed to ...
1924 (record_full_stopped_data_address): ... this. Updated all users.
1925 (record_registers_change): Renamed to ...
1926 (record_full_registers_change): ... this. Updated all users.
1927 (record_store_registers): Renamed to ...
1928 (record_full_store_registers): ... this. Updated all users.
1929 (record_xfer_partial): Renamed to ...
1930 (record_full_xfer_partial): ... this. Updated all users.
1931 (record_breakpoint): Renamed to ...
1932 (record_full_breakpoint): ... this. Updated all users.
1933 (record_breakpoint_p): Renamed to ...
1934 (record_full_breakpoint_p): ... this. Updated all users.
1935 (record_breakpoints): Renamed to ...
1936 (record_full_breakpoints): ... this. Updated all users.
1937 (record_sync_record_breakpoints): Renamed to ...
1938 (record_full_sync_record_breakpoints): ... this.
1940 (record_init_record_breakpoints): Renamed to ...
1941 (record_full_init_record_breakpoints): ... this.
1943 (record_insert_breakpoint): Renamed to ...
1944 (record_full_insert_breakpoint): ... this. Updated all users.
1945 (record_remove_breakpoint): Renamed to ...
1946 (record_full_remove_breakpoint): ... this. Updated all users.
1947 (record_can_execute_reverse): Renamed to ...
1948 (record_full_can_execute_reverse): ... this. Updated all users.
1949 (record_get_bookmark): Renamed to ...
1950 (record_full_get_bookmark): ... this. Updated all users.
1951 (record_goto_bookmark): Renamed to ...
1952 (record_full_goto_bookmark): ... this. Updated all users.
1953 (record_async): Renamed to ...
1954 (record_full_async): ... this. Updated all users.
1955 (record_can_async_p): Renamed to ...
1956 (record_full_can_async_p): ... this. Updated all users.
1957 (record_is_async_p): Renamed to ...
1958 (record_full_is_async_p): ... this. Updated all users.
1959 (record_execution_direction): Renamed to ...
1960 (record_full_execution_direction): ... this. Updated all users.
1961 (record_info): Renamed to ...
1962 (record_full_info): ... this. Updated all users.
1963 (record_delete): Renamed to ...
1964 (record_full_delete): ... this. Updated all users.
1965 (record_is_replaying): Renamed to ...
1966 (record_full_is_replaying): ... this. Updated all users.
1967 (record_goto_entry): Renamed to ...
1968 (record_full_goto_entry): ... this. Updated all users.
1969 (record_goto_begin): Renamed to ...
1970 (record_full_goto_begin): ... this. Updated all users.
1971 (record_goto_end): Renamed to ...
1972 (record_full_goto_end): ... this. Updated all users.
1973 (record_goto): Renamed to ...
1974 (record_full_goto): ... this. Updated all users.
1975 (init_record_ops): Renamed to ...
1976 (init_record_full_ops): ... this. Updated all users.
1977 (record_core_resume): Renamed to ...
1978 (record_full_core_resume): ... this. Updated all users.
1979 (record_core_kill): Renamed to ...
1980 (record_full_core_kill): ... this. Updated all users.
1981 (record_core_fetch_registers): Renamed to ...
1982 (record_full_core_fetch_registers): ... this. Updated all users.
1983 (record_core_prepare_to_store): Renamed to ...
1984 (record_full_core_prepare_to_store): ... this. Updated all users.
1985 (record_core_store_registers): Renamed to ...
1986 (record_full_core_store_registers): ... this. Updated all users.
1987 (record_core_xfer_partial): Renamed to ...
1988 (record_full_core_xfer_partial): ... this. Updated all users.
1989 (record_core_insert_breakpoint): Renamed to ...
1990 (record_full_core_insert_breakpoint): ... this. Updated all users.
1991 (record_core_remove_breakpoint): Renamed to ...
1992 (record_full_core_remove_breakpoint): ... this. Updated all users.
1993 (record_core_has_execution): Renamed to ...
1994 (record_full_core_has_execution): ... this. Updated all users.
1995 (init_record_core_ops): Renamed to ...
1996 (init_record_full_core_ops): ... this. Updated all users.
1997 (cmd_record_restore): Renamed to ...
1998 (cmd_record_full_restore): ... this. Updated all users.
1999 (record_save_cleanups): Renamed to ...
2000 (record_full_save_cleanups): ... this. Updated all users.
2001 (cmd_record_start): Renamed to ...
2002 (cmd_record_full_start): ... this. Updated all users.
2003 (set_record_insn_max_num): Renamed to ...
2004 (set_record_full_insn_max_num): ... this. Updated all users.
2005 (set_record_command): Renamed to ...
2006 (set_record_full_command): ... this. Updated all users.
2007 (show_record_command): Renamed to ...
2008 (show_record_full_command): ... this. Updated all users.
2009 (_initialize_record): Renamed to ...
2010 (_initialize_record_full): ... this. Updated all users.
2012 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2014 * record.h: Split into this and ...
2015 * record-full.h: ... this.
2016 * record.c: Split into this and ...
2017 * record-full.c: ... this.
2018 * target.h (target_ops): Add new fields to_info_record,
2019 to_save_record, to_delete_record, to_record_is_replaying,
2020 to_goto_record_begin, to_goto_record_end, to_goto_record.
2021 (target_info_record): New.
2022 (target_save_record): New.
2023 (target_supports_delete_record): New.
2024 (target_delete_record): New.
2025 (target_record_is_replaying): New.
2026 (target_goto_record_begin): New.
2027 (target_goto_record_end): New.
2028 (target_goto_record): New.
2029 * target.c (target_info_record): New.
2030 (target_save_record): New.
2031 (target_supports_delete_record): New.
2032 (target_delete_record): New.
2033 (target_record_is_replaying): New.
2034 (target_goto_record_begin): New.
2035 (target_goto_record_end): New.
2036 (target_goto_record): New.
2037 * record.h: Declare struct cmd_list_element.
2038 (record_cmdlist): New declaration.
2039 (set_record_cmdlist): New declaration.
2040 (show_record_cmdlist): New declaration.
2041 (info_record_cmdlist): New declaration.
2042 (cmd_record_goto): New declaration.
2043 * record.c: Remove unnecessary includes.
2045 (cmd_record_goto): Remove declaration.
2046 (record_cmdlist): Now extern. Initialize.
2047 (set_record_cmdlist): Now extern. Initialize.
2048 (show_record_cmdlist): Now extern. Initialize.
2049 (info_record_cmdlist): Now extern. Initialize.
2050 (find_record_target): New.
2051 (require_record_target): New.
2052 (cmd_record_start): Update.
2053 (cmd_record_delete): Remove target-specific code.
2054 Call target_delete_record.
2055 (cmd_record_stop): Unpush any record target.
2056 (set_record_insn_max_num): Move to record-full.c
2057 (set_record_command): Add comment.
2058 (show_record_command): Add comment.
2059 (info_record_command): Update comment.
2060 Remove target-specific code.
2061 Call the record target's to_info_record.
2062 (cmd_record_start): New.
2063 (cmd_record_goto): Now extern.
2064 Remove target-specific code.
2065 Call target_goto_begin, target_goto_end, or target_goto.
2066 (_initialize_record): Move record target ops initialization to
2068 Change "record" command help text.
2069 Move "record restore", "record set", and "record show" commands to
2071 * Makefile.in (SFILES): Add record-full.c.
2072 (HFILES_NO_SRCDIR): Add record-full.h.
2073 (COMMON_OBS): Add record-full.o.
2074 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
2075 * arm-tdep.c: Include record-full.h.
2076 * i386-linux-tdep.c: Include record-full.h instead of record.h.
2077 * i386-tdep.c: Include record-full.h.
2078 * infrun.c: Include record-full.h.
2079 * linux-record.c: Include record-full.h.
2080 * moxie-tdep.c: Include record-full.h.
2081 * record-full.c: Include record-full.h.
2082 Change module comment.
2083 (set_record_full_cmdlist): New.
2084 (show_record_full_cmdlist): New.
2085 (record_full_cmdlist): New.
2086 (record_goto_insn): New declaration.
2087 (record_save): New declaration.
2088 (record_check_insn_num): Change query string.
2090 (record_delete): New.
2091 (record_is_replaying): New.
2092 (record_goto_entry): New.
2093 (record_goto_begin): New.
2094 (record_goto_end): New.
2096 (init_record_ops): Update.
2097 (init_record_core_ops): Update.
2098 (cmd_record_save): Rename to record_save. Remove target and arg checks.
2099 (cmd_record_start): New.
2100 (set_record_insn_max_num): Moved from record.c
2101 (set_record_full_command): New.
2102 (show_record_full_command): New.
2103 (_initialize_record_full): New.
2105 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2107 * target.h (add_deprecated_target_alias): New.
2108 * target.c (add_deprecated_target_alias): New.
2110 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2112 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
2114 (linux_supports_btrace): Add kernel and
2116 (kernel_supports_btrace): New function.
2117 (cpu_supports_btrace): New function.
2118 (intel_supports_btrace): New function.
2120 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2122 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
2123 * remote.c: Include btrace.h.
2124 (struct btrace_target_info): New struct.
2125 (remote_supports_btrace): New function.
2126 (send_Qbtrace): New function.
2127 (remote_enable_btrace): New function.
2128 (remote_disable_btrace): New function.
2129 (remote_teardown_btrace): New function.
2130 (remote_read_btrace): New function.
2131 (init_remote_ops): Add btrace ops.
2132 (enum <unnamed>): Add btrace packets.
2133 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
2134 (_initialize_remote): Add packet configuration for branch tracing.
2136 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2138 * features/btrace.dtd: New file.
2139 * Makefile.in (XMLFILES): Add btrace.dtd.
2140 * btrace.h (parse_xml_btrace): New declaration.
2141 * btrace.c: Include xml-support.h.
2142 (parse_xml_btrace): New function.
2143 (parse_xml_btrace_block): New function.
2144 (block_attributes): New struct.
2145 (btrace_attributes): New struct.
2146 (btrace_children): New struct.
2147 (btrace_elements): New struct.
2149 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2151 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
2152 (amd64_linux_enable_btrace): New.
2153 (amd64_linux_disable_btrace): New.
2154 (amd64_linux_teardown_btrace): New.
2155 (_initialize_amd64_linux_nat): Initialize btrace ops.
2156 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
2157 (i386_linux_enable_btrace): New.
2158 (i386_linux_disable_btrace): New.
2159 (i386_linux_teardown_btrace): New.
2160 (_initialize_i386_linux_nat): Initialize btrace ops.
2161 * config/i386/linux.mh: Add linux-btrace.o.
2162 * config/i386/linux64.mh: Add linux-btrace.o.
2164 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2166 * common/linux_btrace.h: New file.
2167 * common/linux_btrace.c: New file.
2168 * Makefile.in (SFILES): Add btrace.c.
2169 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
2170 (COMMON_OBS): Add btrace.o.
2171 (linux-btrace.o): New rule.
2173 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2175 * target.h: Include btrace.h.
2176 (struct target_ops) <to_supports_btrace, to_enable_btrace,
2177 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
2178 * target.c (target_supports_btrace): New function.
2179 (target_enable_btrace): New function.
2180 (target_disable_btrace): New function.
2181 (target_teardown_btrace): New function.
2182 (target_read_btrace): New function.
2183 * btrace.h: New file.
2184 * btrace.c: New file.
2185 * Makefile.in: Add btrace.c.
2186 * gdbthread.h: Include btrace.h.
2187 (struct thread_info): Add btrace field.
2188 * thread.c: Include btrace.h.
2189 (clear_thread_inferior_resources): Call target_teardown_btrace.
2190 * common/btrace-common.h: New file.
2192 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2194 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
2195 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
2196 kill_status to outer block.
2198 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2200 Fix entry-values if the callee called a noreturn function.
2201 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
2202 get_frame_address_in_block. Add new comment.
2204 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2206 Fix entry-values in C++ across CUs.
2207 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
2208 lookup_minimal_symbol. Add a comment.
2210 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
2213 2013-03-08 Yao Qi <yao@codesourcery.com>
2215 * tracepoint.c (_initialize_tracepoint): Indent the code.
2217 2013-03-08 Pedro Alves <palves@redhat.com>
2219 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
2220 (parse_find_args, find_command): Change type of pattern buffer
2221 locals to 'gdb_byte *'.
2223 2013-03-08 Stan Shebs <stan@codesourcery.com>
2224 Hafiz Abid Qadeer <abidh@codesourcery.com>
2226 * NEWS: Mention set and show trace-buffer-size commands.
2228 * target.h (struct target_ops): New method
2229 to_set_trace_buffer_size.
2230 (target_set_trace_buffer_size): New macro.
2231 * target.c (update_current_target): Set up new method.
2232 * tracepoint.c (trace_buffer_size): New global.
2233 (start_tracing): Send it to the target.
2234 (set_trace_buffer_size): New function.
2235 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
2236 * remote.c (remote_set_trace_buffer_size): New function.
2237 (_initialize_remote): Use it.
2238 (QTBuffer:size) New remote command.
2239 (PACKET_QTBuffer_size): New enum.
2240 (remote_protocol_features): Add an entry for
2241 PACKET_QTBuffer_size.
2243 2013-03-08 Tom Tromey <tromey@redhat.com>
2245 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
2248 2013-03-07 Pedro Alves <palves@redhat.com>
2250 * target.c (target_read_stralloc, target_fileio_read_alloc):
2251 *Cast pointer to 'gdb_byte *' in target call.
2253 2013-03-07 Pedro Alves <palves@redhat.com>
2255 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
2258 2013-03-07 Keith Seitz <keiths@redhat.com>
2260 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
2261 (trace_pass_command): Likewise.
2262 * cli/cli-cmds.c: Include cli/cli-utils.h.
2263 (source_command): Use skip-spaces.
2264 (disassemble_command): Likewise.
2265 * findcmd.c: Include cli/cli-utils.h.
2266 (parse_find_args): Use skip_spaces.
2267 * go32-nat.c: Include cli/cli-utils.h.
2268 (go32_sldt): Use skip_spaces.
2269 (go32_sgdt): Likewise.
2270 (go32_sidt): Likewise.
2271 (go32_pde): Likewise.
2272 (go32_pte): Likewise.
2273 (go32_pte_for_address): Likewise.
2274 * infcmd.c: Include cli/cli-utils.h.
2275 (registers_info): Use skip_spaces.
2276 * linux-tdep.c (read_mapping): Use skip_spaces_const.
2277 (linux_info_proc): Likewise.
2278 * linux-thread-db.c: Include cli/cli-utils.h.
2279 (info_auto_load_libthread_db): Use skip_spaces_const.
2280 * m32r-rom.c: Include cli/cli-utils.h.
2281 (m32r_upload_command): Use skip_spaces.
2282 * maint.c: Include cli/cli-utils.h.
2283 (maintenance_translate_address): Use skip_spaces.
2284 * mi/mi-parse.c: Include cli/cli-utils.h.
2285 (mi_parse_argv): Use skip_spaces.
2286 (mi_parse): Likewise.
2287 * minsyms.c: Include cli/cli-utils.h.
2288 (msymbol_hash_iw): Use skip_spaces_const.
2289 * objc-lang.c: Include cli/cli-utils.h.
2290 (parse_selector): Use skip_spaces.
2291 (parse_method): Likewise.
2292 * python/python.c: Include cli/cli-utils.h.
2293 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
2294 (python_command)[HAVE_PYTHON]: Likewise.
2295 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
2296 * remote-m32r-sdi.c: Include cli/cli-utils.h.
2297 (m32r_load): Use skip_spaces.
2298 * serial.c: Include cli/cli-utils.h.
2299 (serial_open): Use skip_spaces_const.
2300 * stack.c: Include cli/cli-utils.h.
2301 (parse_frame_specification_1): Use skip_spaces_const.
2302 * symfile.c: Include cli/cli-utils.h.
2303 (set_ext_lang_command): Use skip_spaces.
2304 * symtab.c: Include cli/cli-utils.h.
2305 (rbreak_command): Use skip_spaces.
2306 * thread.c (thread_name_command): Use skip_spaces.
2307 * tracepoint.c (validate_actionline): Use skip_spaces.
2308 (encode_actions_1): Likewise.
2309 (trace_find_range_command): Likewise.
2310 (trace_find_outside_command): Likewise.
2311 (trace_dump_actions): Likewise.
2313 2013-03-07 Pedro Alves <palves@redhat.com>
2315 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
2316 * expprint.c (print_subexp_standard): Likewise.
2317 * utils.c (host_char_to_target): Likewise.
2318 * valprint.c (generic_emit_char, generic_printstr): Likewise.
2319 * varobj.c (value_get_print_value): Change type of local to char*.
2320 Cast it gdb_byte * in call to language printer.
2322 2013-03-07 Pedro Alves <palves@redhat.com>
2324 * charset.c (struct wchar_iterator) <input>: Change type to 'const
2326 (make_wchar_iterator): Remove cast to char*.
2327 (wchar_iterate): Change type of local.
2329 2013-03-07 Pedro Alves <palves@redhat.com>
2331 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
2332 for 'regcache->register_status'.
2334 2013-03-07 Pedro Alves <palves@redhat.com>
2336 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
2339 2013-03-07 Pedro Alves <palves@redhat.com>
2341 * stap-probe.c (handle_stap_probe): Add cast to char*.
2343 2013-03-07 Pedro Alves <palves@redhat.com>
2345 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
2346 RECORD_MSGRCV>: Pass a signed variable to
2347 regcache_raw_read_signed, instead of an unsigned one.
2349 2013-03-07 Pedro Alves <palves@redhat.com>
2351 * remote-notif.c (notif_debug): Change type to int.
2352 * remote-notif.h (notif_debug): Likewise.
2354 2013-03-07 Pedro Alves <palves@redhat.com>
2356 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
2358 2013-03-07 Pedro Alves <palves@redhat.com>
2360 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
2361 * remote.h (hex2bin, bin2hex): ... here.
2362 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
2364 2013-03-07 Eli Zaretskii <eliz@gnu.org>
2366 * utils.c (initialize_utils): Improve doc strings of "set/show
2367 width", "set/show height", and "set/show pagination".
2369 2013-03-06 Keith Seitz <keiths@redhat.com>
2371 * ax-gdb.c (gen_printf): Make FORMAT const.
2372 * ax-gdb.h (gen_printf): Likewise.
2373 * ax-general.c (ax_string): Make STR const.
2374 * ax.h (ax_string): Likewise.
2376 2013-03-06 Doug Evans <dje@google.com>
2378 * elfread.c (elf_symfile_read): Move debugging printf to more
2381 2013-03-06 Pedro Alves <palves@redhat.com>
2383 * python/py-utils.c (target_string_to_unicode): Delete function.
2384 * python/python-internal.h (target_string_to_unicode): Delete
2387 2013-03-06 Pierre Muller <muller@sourceware.org>
2389 * linespec.c (get_current_search_block): ARI fix, use (void)
2390 for empty parameter list.
2392 2013-03-05 Doug Evans <dje@google.com>
2394 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
2395 of old ada_lookup_symbol_list. In !full_search case, don't
2397 (ada_lookup_symbol_list): Delete arg full_search, all callers
2398 updated. Call ada_lookup_symbol_list_worker.
2399 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
2400 * ada-lang.h (ada_lookup_symbol_list): Update.
2401 * language.h (language_defn): Update comment for
2402 la_iterate_over_symbols.
2403 * linespec.c (iterate_over_file_blocks): New function.
2404 (iterate_over_all_matching_symtabs): Call it.
2405 (lookup_prefix_sym): Ditto.
2406 (get_current_search_block): New function.
2407 (get_search_block): Delete.
2408 (find_label_symbols): Call get_current_search_block.
2409 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
2410 * symtab.c (iterate_over_symbols): Don't search superblocks.
2412 2013-03-05 Yao Qi <yao@codesourcery.com>
2414 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
2415 parameter VAR's type from "unsigned int" to "int".
2416 * command.h (var_zuinteger_unlimited): Update its comments.
2417 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
2419 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
2421 * NEWS: Mention new target x86_64-*-cygwin*.
2423 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
2425 * configure.host: Add x86_64-*-cygwin* as host.
2426 * configure.tgt: Add x86_64-*-cygwin* as target.
2427 * config/i386/cygwin64.mh: New file.
2429 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2431 * linespec.c (decode_line_2): Fix duplicate request off by two message.
2433 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2435 * linespec.c (struct linespec_canonical_name): New.
2436 (struct linespec_state): Change canonical_names type to it.
2437 (add_sal_to_sals): Change variable canonical_name to canonical. Change
2438 xrealloc element size. Initialize the different CANONICAL fields.
2439 (canonical_to_fullform): New.
2440 (filter_results): Use it. Add variables canonical, fullform and
2442 (struct decode_line_2_item, decode_line_2_compare_items): New.
2443 (decode_line_2): Remove variables iter and item_names, add variables
2444 items and items_count. Modify the code for these new variables.
2446 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
2448 * coff-pe-read.c (read_pe_exported_syms): Don't return without
2451 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
2453 * tracepoint.c (build_traceframe_info): Add code for byte order.
2455 2013-03-02 Kevin Buettner <kevinb@redhat.com>
2457 * v850-tdep.c: (v850e2_register_name): Revise system register
2458 names to match current V850E2M architecture specifications.
2459 Update register number enum comments too.
2461 2013-03-01 Jiong Wang <jiwang@tilera.com>
2462 Pedro Alves <palves@redhat.com>
2464 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
2466 (tilegx_skip_prologue): Limit prologue analysis to section end.
2468 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2470 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
2473 2013-03-01 Pedro Alves <palves@redhat.com>
2475 Use gdb_byte for bytes from the program being debugged.
2477 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
2478 Change type of local 'buf' to gdb_byte.
2479 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
2480 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2481 * cris-tdep.c (cris_sigcontext_addr)
2482 (cris_sigtramp_frame_unwind_cache): Likewise.
2483 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
2484 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
2486 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
2487 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
2488 (hppa32_hpux_search_dummy_call_sequence)
2489 (hppa_hpux_supply_save_state): Likewise.
2490 * hppa-linux-tdep.c (insns_match_pattern)
2491 (hppa_linux_find_global_pointer): Likewise.
2492 * hppa-tdep.c (hppa_in_function_epilogue_p)
2493 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
2494 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
2495 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
2496 (i386fbsd_collect_uthread): Likewise.
2497 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
2498 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
2499 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
2500 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
2501 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
2502 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
2503 (ia64_libunwind_frame_prev_register)
2504 (ia64_libunwind_sigtramp_frame_this_id)
2505 (ia64_find_global_pointer_from_dynamic_section)
2506 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
2507 (ia64_unwind_pc): Likewise.
2508 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
2509 * m68hc11-tdep.c (m68hc11_push_dummy_call)
2510 (m68hc11_extract_return_value): Likewise.
2511 * m68klinux-nat.c (fetch_register, store_register): Likewise.
2512 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
2513 (mep_get_insn, mep_push_dummy_call): Likewise.
2514 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2515 (mips_linux_in_dynsym_stub): Likewise.
2516 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
2517 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
2518 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
2520 * remote-mips.c (mips_set_register): Likewise.
2521 * remote-sim.c (gdbsim_fetch_register): Likewise.
2522 * score-tdep.c (score7_fetch_inst): Change type of parameter
2523 'memblock' and local 'buf' to gdb_byte.
2524 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
2525 Change type of local 'buf' to gdb_byte. Adjust.
2526 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
2528 (score7_analyze_prologue): Change type of 'memblock' and
2529 'memblock_ptr' locals to gdb_byte*.
2530 * sh64-tdep.c (sh64_extract_return_value)
2531 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
2532 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
2533 * solib-pa64.c (pa64_solib_create_inferior_hook)
2534 (pa64_open_symbol_file_object): Remove local 'buf'.
2535 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
2536 (som_open_symbol_file_object): Likewise.
2537 * solib-spu.c (spu_current_sos): Likewise.
2538 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
2539 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
2540 (spu_store_registers): Likewise.
2541 * target.c (debug_print_register): Likewise.
2542 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
2543 * xstormy16-tdep.c (xstormy16_store_return_value)
2544 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
2545 (xstormy16_find_jmp_table_entry): Likewise.
2547 2013-03-01 Jiong Wang <jiwang@tilera.com>
2549 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
2550 (tilegx_gdbarch_init): Install it.
2552 2013-02-28 Tom Tromey <tromey@redhat.com>
2554 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
2557 2013-02-28 Doug Evans <dje@google.com>
2559 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
2560 * python/python.c (gdbpy_find_pc_line): Ditto.
2562 2013-02-28 Tom Tromey <tromey@redhat.com>
2564 * contrib/excheck.py: New file.
2565 * contrib/exsummary.py: New file.
2566 * contrib/gcc-with-excheck: New file.
2568 2013-02-28 Tom Tromey <tromey@redhat.com>
2570 * python/python.c (gdbpy_print_stack): Call begin_line and
2571 fprintf_filtered inside TRY_CATCH.
2573 2013-02-28 Tom Tromey <tromey@redhat.com>
2575 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
2578 2013-02-28 Tom Tromey <tromey@redhat.com>
2580 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
2581 frame_object_to_frame_info inside TRY_CATCH.
2583 2013-02-28 Tom Tromey <tromey@redhat.com>
2585 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
2588 2013-02-28 Tom Tromey <tromey@redhat.com>
2590 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
2592 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
2594 * windows-nat.c: Throughout, fix format strings and casts of
2595 printf-like functions to avoid type related warnings on all
2597 (handle_output_debug_string): Fetch context information address
2598 from debug string using string_to_core_addr.
2600 2013-02-27 Jiong Wang <jiwang@tilera.com>
2602 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
2603 * regformats/reg-tilegx32.dat: New.
2605 2013-02-27 Jiong Wang <jiwang@tilera.com>
2607 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
2609 2013-02-27 Jiong Wang <jiwang@tilera.com>
2611 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
2613 2013-02-27 Yao Qi <yao@codesourcery.com>
2614 Pedro Alves <palves@redhat.com>
2616 * tracepoint.c (tfile_trace_find): For tfind
2617 pc/tp/range/outside, look for the next trace frame instead of
2618 always starting from frame 0.
2620 2013-02-26 Anthony Green <green@moxielogic.com>
2622 * configure.tgt: Add support for moxie-*-rtems* target.
2624 2013-02-25 Pedro Alves <palves@redhat.com>
2626 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
2629 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
2631 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
2632 if $fp is used as the virtual frame pointer.
2634 2013-02-23 Alan Modra <amodra@gmail.com>
2636 * elfread.c (elf_symtab_read): Do not use udata.p here to find
2638 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
2639 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
2640 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
2641 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
2643 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2646 * elfread.c (build_id_bfd_get): Make the return type const.
2647 (build_id_verify): Make the check parameter const.
2648 (build_id_to_debug_filename): Make the build_id parameter and variable
2650 (find_separate_debug_file_by_buildid): Make the variable build_id const.
2652 2013-02-21 Alan Modra <amodra@gmail.com>
2654 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
2656 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
2658 Add a new method 'disassemble' to gdb.Architecture class.
2659 * python/py-arch.c (archpy_disassmble): Implementation of the
2660 new method gdb.Architecture.disassemble.
2661 (arch_object_methods): Add entry for the new method.
2663 2013-02-20 Jiong Wang <jiwang@tilera.com>
2665 * MAINTAINERS (Write After Approval): Add myself to the list.
2667 2013-02-19 Pedro Alves <palves@redhat.com>
2669 Garbage collect 'struct monitor_ops'::load_routine.
2671 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
2672 * monitor.c (monitor_load): No longer call
2673 current_monitor->load_routine.
2674 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
2675 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
2676 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
2678 2013-02-19 Pedro Alves <palves@redhat.com>
2682 Harmonize with generic_load.
2684 * monitor.c: Include "readline/readline.h".
2685 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
2686 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
2687 long/strtol for the 'load_offset' local. Error out if no argument
2688 is given or if too many arguments are given. Tilde expand the
2689 passed in file name.
2691 2013-02-19 Kai Tietz <ktietz@redhat.com>
2694 * symfile.c (load_section_data): Change type of load_offset
2696 (generic_load): User strtoulst instead of strtoul for conversion
2699 2013-02-19 Jiong Wang <jiwang@tilera.com>
2701 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
2702 for return address, "lr" register, saved on stack.
2703 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
2704 after we invoke tilegx_analyze_prologue.
2706 2013-02-19 Jiong Wang <jiwang@tilera.com>
2708 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
2710 2013-02-19 Jiong Wang <jiwang@tilera.com>
2712 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
2714 2013-02-19 Jiong Wang <jiwang@tilera.com>
2716 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
2717 (tilegx_write_pc): New function.
2718 (tilegx_cannot_reference_register): Return zero if REGNO
2719 is TILEGX_FAULTNUM_REGNUM.
2720 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
2721 (tilegx_register_name): Add handling of "faultnum" register.
2722 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
2723 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
2724 handling of TILEGX_FAULTNUM_REGNUM.
2725 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
2727 2013-02-19 Jiong Wang <jiwang@tilera.com>
2729 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
2730 should be aligned to 64bit.
2732 2013-02-19 Kai Tietz <ktietz@redhat.com>
2734 * windows-nat.c (windows_xfer_memory): Fix debug-output
2737 2013-02-19 Lei Liu <lei.liu2@windriver.com>
2739 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
2740 Don't check DSP register number if HAVE_DSP is not set.
2742 2013-02-19 Alan Modra <amodra@gmail.com>
2744 * elfread.c (struct build_id): Delete. Use struct elf_build_id
2745 throughout file instead.
2746 (build_id_bfd_get): Update to use new elf_tdata build_id field.
2747 Don't xmalloc return value.
2748 (build_id_verify): Similarly. Don't xfree.
2749 (build_id_to_debug_filename): Update.
2750 (find_separate_debug_file_by_buildid): Update, don't xfree.
2752 2013-02-18 Tom Tromey <tromey@redhat.com>
2755 * dwarf2read.c (read_subrange_type): Use result of
2758 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
2760 * frame.c: Remove one extra white space after #include
2763 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2765 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
2767 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2769 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
2770 and dir commands into an if block.
2772 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
2774 * python/py-breakpoint (struct pybp_code): Use int instead of
2777 2013-02-15 Pedro Alves <pedro@codesourcery.com>
2778 Hafiz Abid Qadeer <abidh@codesourcery.com>
2780 * NEWS: Mention new field "trace-file".
2781 * tracepoint.c (trace_status_mi): Output "trace-file" field.
2782 (tfile_open): Record the trace file's filename in the trace
2784 (tfile_files_info): Mention the name of the trace file.
2785 Check the "filename" field explicitely.
2786 (trace_status_command): Explicitely check "filename" field.
2787 (trace_find_command): Ditto.
2788 (trace_find_pc_command): Ditto.
2789 (trace_find_tracepoint_command): Ditto.
2790 (trace_find_line_command): Ditto.
2791 (trace_find_range_command): Ditto.
2792 (trace_find_outside_command): Ditto.
2793 * tracepoint.h (struct trace_status) <from_file>: Rename it
2794 to "filename" and make it hold the trace file's filename
2795 instead of a boolean.
2796 * remote.c (remote_get_trace_status): Initialize "filename"
2797 field with NULL instead of 0.
2799 2013-02-15 Yao Qi <yao@codesourcery.com>
2801 * remote.c: Fix a typo.
2803 2013-02-14 Pierre Muller <muller@sourceware.org>
2805 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
2807 2013-02-14 Pedro Alves <palves@redhat.com>
2809 * utils.c (savestring): Don't #undef it. Move function to
2810 common/common-utils.c.
2811 * common/common-utils.c: Include gdb_string.h.
2812 (savestring): Move here from utils.c.
2813 * common/common-utils.h (savestring): Declare.
2815 2013-02-14 Pedro Alves <palves@redhat.com>
2817 * utils.c (savestring): Rename parameter 'size' to 'len'.
2819 2013-02-14 Pedro Alves <palves@redhat.com>
2820 Yufeng Zhang <yufeng.zhang@arm.com>
2822 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
2823 (aarch64_inferior_data, struct aarch64_inferior_data):
2825 (struct aarch64_process_info): New.
2826 (aarch64_process_list): New global.
2827 (aarch64_find_process_pid, aarch64_add_process)
2828 (aarch64_process_info_get): New functions.
2829 (aarch64_inferior_data_get): Delete.
2830 (aarch64_process_info_get): New function.
2831 (aarch64_forget_process): New function.
2832 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
2833 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
2834 aarch64_get_debug_reg_state.
2835 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
2836 instead of linux_nat_iterate_watchpoint_lwps.
2837 (aarch64_linux_new_fork): New function.
2838 (aarch64_linux_child_post_startup_inferior): Use
2839 aarch64_forget_process instead of aarch64_init_debug_reg_state.
2840 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
2841 (aarch64_linux_remove_hw_breakpoint)
2842 (aarch64_handle_aligned_watchpoint)
2843 (aarch64_handle_unaligned_watchpoint)
2844 (aarch64_linux_insert_watchpoint)
2845 (aarch64_linux_remove_watchpoint)
2846 (aarch64_linux_stopped_data_address): Adjust to pass the current
2847 process id to aarch64_debug_reg_state.
2848 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
2849 linux_nat_new_fork hook, and aarch64_forget_process as
2850 linux_nat_forget_process hook; remove the call to
2851 register_inferior_data_with_cleanup.
2853 2013-02-14 Pedro Alves <palves@redhat.com>
2855 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
2856 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
2859 2013-02-14 Pedro Alves <pedro@codesourcery.com>
2860 Hafiz Abid Qadeer <abidh@codesourcery.com>
2862 * tracepoint.h (validate_trace_state_variable_name): Declare.
2863 * tracepoint.c (validate_trace_state_variable_name): New.
2864 (trace_variable_command): Parse the trace state variable's name
2865 without using parse_expression. Do several validations.
2866 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
2867 trace state variable's name with parse_expression. Validate it.
2869 2013-02-14 Yao Qi <yao@codesourcery.com>
2871 * infcmd.c (breakpoint_proceeded): Remove it.
2873 2013-02-14 Yao Qi <yao@codesourcery.com>
2875 * tracepoint.c (end_actions_pseudocommand): Make it static.
2876 (while_stepping_pseudocommand): Likewise.
2877 * tracepoint.h (end_actions_pseudocommand): Remove the
2879 (while_stepping_pseudocommand): Likewise.
2881 2013-02-14 Yao Qi <yao@codesourcery.com>
2883 * cli/cli-decode.c (help_cmd): Remove the declaration of
2885 (help_all): Likewise.
2887 2013-02-13 Pedro Alves <palves@redhat.com>
2889 * amd64-linux-nat.c (update_debug_registers_callback):
2891 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
2893 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
2894 i386_debug_reg_state.
2895 (amd64_linux_new_fork): New function.
2896 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
2897 linux_nat_new_fork hook, and i386_forget_process as
2898 linux_nat_forget_process hook.
2899 * i386-linux-nat.c (update_debug_registers_callback):
2901 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
2903 (i386_linux_prepare_to_resume): Pass the lwp's pid to
2904 i386_debug_reg_state.
2905 (i386_linux_new_fork): New function.
2906 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
2907 linux_nat_new_fork hook, and i386_forget_process as
2908 linux_nat_forget_process hook.
2909 * i386-nat.c (i386_init_dregs): Delete.
2910 (i386_inferior_data, struct i386_inferior_data):
2912 (struct i386_process_info): New.
2913 (i386_process_list): New global.
2914 (i386_find_process_pid, i386_add_process, i386_process_info_get):
2916 (i386_inferior_data_get): Delete.
2917 (i386_process_info_get): New function.
2918 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
2919 (i386_forget_process): New function.
2920 (i386_cleanup_dregs): Rewrite.
2921 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
2922 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
2923 (i386_stopped_data_address, i386_insert_hw_breakpoint)
2924 (i386_remove_hw_breakpoint): Adjust to pass the current process id
2925 to i386_debug_reg_state.
2926 (i386_use_watchpoints): Don't register inferior data.
2927 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
2929 (i386_forget_process): Declare.
2930 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
2931 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
2933 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
2934 (add_initial_lwp): New, factored out from ...
2935 (add_lwp): ... this. Don't check the number of lwps before
2936 calling linux_nat_new_thread.
2937 (linux_nat_iterate_watchpoint_lwps): Delete.
2938 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
2939 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
2941 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
2943 (linux_nat_kill, linux_nat_mourn_inferior): Call
2944 linux_nat_forget_process.
2945 (linux_nat_set_new_fork, linux_nat_set_forget_process)
2946 (linux_nat_forget_process): New functions.
2947 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
2949 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
2950 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
2952 (linux_nat_set_new_fork, linux_nat_set_forget_process)
2953 (linux_nat_forget_process): New declarations.
2955 * amd64fbsd-nat.c (super_mourn_inferior): New global.
2956 (amd64fbsd_mourn_inferior): New function.
2957 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
2958 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
2960 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
2962 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
2965 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
2967 * aarch64-linux-nat.c (debug_reg_change_callback)
2968 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
2971 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
2973 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
2976 2013-02-13 Pedro Alves <palves@redhat.com>
2977 Hafiz Abid Qadeer <abidh@codesourcery.com>
2979 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
2981 2013-02-12 Tom Tromey <tromey@redhat.com>
2984 * c-exp.y (lex_one_token): Initialize other fields of yylval on
2986 (classify_inner_name): Remove 'first_name' argument, add
2987 'context'. Remove unused variable.
2988 (yylex): Explicitly maintain the context type. Exit loop earlier
2989 if NAME result is seen.
2991 2013-02-12 Pedro Alves <palves@redhat.com>
2993 * amd64-darwin-tdep.c: Add (C) after Copyright.
2994 * cli/cli-cmds.h: Ditto.
2995 * cli/cli-decode.c: Ditto.
2996 * cli/cli-decode.h: Ditto.
2997 * cli/cli-dump.c: Ditto.
2998 * cli/cli-dump.h: Ditto.
2999 * cli/cli-interp.c: Ditto.
3000 * cli/cli-logging.c: Ditto.
3001 * cli/cli-script.c: Ditto.
3002 * cli/cli-script.h: Ditto.
3003 * cli/cli-setshow.c: Ditto.
3004 * cli/cli-setshow.h: Ditto.
3005 * cli/cli-utils.c: Ditto.
3006 * cli/cli-utils.h: Ditto.
3007 * config/alpha/nm-osf3.h: Ditto.
3008 * config/djgpp/djconfig.sh: Ditto.
3009 * config/i386/nm-fbsd.h: Ditto.
3010 * config/i386/nm-i386gnu.h: Ditto.
3011 * config/nm-linux.h: Ditto.
3012 * config/nm-nto.h: Ditto.
3013 * config/rs6000/nm-rs6000.h: Ditto.
3014 * config/sparc/nm-sol2.h: Ditto.
3015 * darwin-nat-info.c: Ditto.
3018 * gdb-demangle.h: Ditto.
3019 * i386-darwin-nat.c: Ditto.
3020 * i386-darwin-tdep.c: Ditto.
3021 * linux-fork.h: Ditto.
3022 * m32c-tdep.c: Ditto.
3023 * microblaze-linux-tdep.c: Ditto.
3024 * microblaze-rom.c: Ditto.
3025 * microblaze-tdep.c: Ditto.
3026 * microblaze-tdep.h: Ditto.
3027 * mips-linux-tdep.h: Ditto.
3028 * ppc-ravenscar-thread.c: Ditto.
3029 * ppc-ravenscar-thread.h: Ditto.
3030 * prologue-value.c: Ditto.
3031 * prologue-value.h: Ditto.
3032 * ravenscar-thread.c: Ditto.
3033 * ravenscar-thread.h: Ditto.
3034 * sparc-ravenscar-thread.c: Ditto.
3035 * sparc-ravenscar-thread.h: Ditto.
3036 * tilegx-linux-tdep.c: Ditto.
3037 * unwind_stop_reasons.def: Ditto.
3038 * windows-nat.h: Ditto.
3039 * xtensa-linux-tdep.c: Ditto.
3040 * xtensa-xtregs.c: Ditto.
3041 * regformats/regdat.sh: Ditto.
3042 * regformats/regdef.h: Ditto.
3044 2013-02-12 Pedro Alves <palves@redhat.com>
3046 * break-catch-sig.c: Update copyright years.
3048 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
3050 Add support for a destructor for ui_out data and use it to
3051 provide a ui_out destructor.
3052 * ui-out.h: Declare the new ui_out destructor.
3053 (ui_out_impl): Add a field for data destructor in ui_out_impl.
3054 * ui-out.c (default_data_destroy): Add a default data destructor
3056 (default_ui_out_impl): Set the new data_destroy field to
3057 default_data_destroy
3058 (uo_data_destroy): Local function which invokes the data
3059 destructor if present.
3060 (clear_table): Local function which clears the table data of a
3062 (ui_out_destroy): Public function which frees a ui_out object.
3063 (ui_out_table_end): Use the new clear_table function.
3064 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
3066 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
3069 2013-02-11 Doug Evans <dje@google.com>
3071 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
3072 (printf_decfloat): New function. Broken out from ui_printf.
3073 Remove unnecessary code to shift the entire format string down.
3074 (printf_pointer): New function.
3075 (ui_printf): Code to print C strings, wide C strings, decfloats,
3076 and pointers moved to separate functions.
3078 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
3080 * valops.c (value_assign): Handling bitfield offset in
3081 `lval_internalvar_component' case.
3083 2013-02-08 Doug Evans <dje@google.com>
3085 * common/format.c (parse_format_string): Fix whitespace.
3087 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
3089 * stack.c (return_command): Work around uninitialized variable
3092 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
3094 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
3095 number of the registers from 36 to 34.
3097 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
3099 * NEWS: Mention new AArch64 native and target support.
3101 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
3103 * MAINTAINERS (Write After Approval): Add myself.
3105 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
3106 Marcus Shawcroft <marcus.shawcroft@arm.com>
3107 Nigel Stephens <nigel.stephens@arm.com>
3108 Yufeng Zhang <yufeng.zhang@arm.com>
3110 * aarch64-linux-nat.c: New file.
3111 * config/aarch64/linux.mh: New file.
3112 * configure.host: Add AArch64.
3113 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
3115 2013-02-07 Doug Evans <dje@google.com>
3117 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
3118 disassemble command.
3120 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
3122 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
3123 set_gdbarch_fetch_tls_load_module_address.
3125 2013-02-06 David S. Miller <davem@davemloft.net>
3127 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
3128 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
3129 * value.c (struct_return_convention): New function.
3130 (using_struct_return): Implement in terms of struct_return_convention.
3131 * value.h (struct_return_convention): Declare.
3132 * stack.c (return_command): Allow successful overriding of the return
3133 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
3135 2013-02-06 Tom Tromey <tromey@redhat.com>
3137 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
3138 outside of TRY_CATCH.
3140 2013-02-06 Yao Qi <yao@codesourcery.com>
3142 * mi/mi-interp.c: Include "tracepoint.h".
3143 (mi_tsv_modified): Declare.
3144 (mi_tsv_created, mi_tsv_deleted): Update declaration.
3145 (mi_interpreter_init): Call observer_attach_tsv_modified.
3146 (mi_tsv_modified): New.
3147 (mi_tsv_created, mi_tsv_deleted): Update.
3148 * tracepoint.c (trace_variable_command): Call
3149 observer_notify_tsv_modified if the initial value of tsv is
3151 (delete_trace_state_variable): Call
3152 observer_notify_tsv_deleted earlier.
3153 (trace_variable_command): Caller update.
3154 (create_tsv_from_upload): Likewise.
3155 * observer.sh: Declare "struct trace_state_variable".
3157 * NEWS: Mention the new MI notification "=tsv-modified".
3159 2013-02-05 Doug Evans <dje@google.com>
3161 * completer.c (location_completer): Fix typo in comment.
3163 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3165 * breakpoint.c (add_location_to_breakpoint): Insert the location with
3168 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
3170 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
3171 Refactor if statement to avoid trailing || operator.
3173 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
3175 * NEWS: Add PowerPC FreeBSD as a new native configuration.
3177 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
3179 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
3180 * configure.host: Add powerpc*-*-freebsd* target.
3181 * configure.tgt: Add target info for powerpc*-*-freebsd*.
3182 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
3183 * config/powerpc/fbsd.mh: New file.
3185 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
3186 Denys Vlasenko <dvlasenk@redhat.com>
3187 Pedro Alves <palves@redhat.com>
3189 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
3190 (struct elf_internal_linux_prpsinfo): Forward declare.
3191 * gdbarch.h, gdbarch.c: Regenerate.
3192 * linux-tdep.c: Include `cli/cli-utils.h'.
3193 (linux_fill_prpsinfo): New function.
3194 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
3195 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
3196 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
3197 depending on gdbarch pointer bitness.
3198 * ppc-linux-tdep.c: Include elf-bfd.h.
3199 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
3202 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
3203 Marcus Shawcroft <marcus.shawcroft@arm.com>
3204 Nigel Stephens <nigel.stephens@arm.com>
3205 Yufeng Zhang <yufeng.zhang@arm.com>
3207 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
3209 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
3210 Marcus Shawcroft <marcus.shawcroft@arm.com>
3211 Nigel Stephens <nigel.stephens@arm.com>
3212 Yufeng Zhang <yufeng.zhang@arm.com>
3214 * aarch64-newlib-tdep.c: New file.
3215 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
3217 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
3218 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
3219 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
3220 * osabi.c (gdb_osabi_names): Add "Newlib".
3222 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
3223 Marcus Shawcroft <marcus.shawcroft@arm.com>
3224 Nigel Stephens <nigel.stephens@arm.com>
3225 Yufeng Zhang <yufeng.zhang@arm.com>
3227 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
3228 (ALLDEPFILES): Add aarch64-linux-tdep.c.
3229 * aarch64-linux-tdep.c: New file.
3230 * aarch64-linux-tdep.h: New file.
3231 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
3232 * configure.tgt: Add aarch64-none-linux-gnu.
3234 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
3235 Marcus Shawcroft <marcus.shawcroft@arm.com>
3236 Nigel Stephens <nigel.stephens@arm.com>
3237 Yufeng Zhang <yufeng.zhang@arm.com>
3239 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
3240 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
3241 (ALLDEPFILES): Add aarch64-tdep.c.
3242 * aarch64-tdep.c: New file.
3243 * aarch64-tdep.h: New file.
3244 * configure.tgt: Add AArch64.
3245 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
3246 (aarch64-expedite): New definition.
3247 * features/aarch64-core.xml: New file.
3248 * features/aarch64-fpu.xml: New file.
3249 * features/aarch64-without-fpu.c: New file (generated).
3250 * features/aarch64-without-fpu.xml: New file.
3251 * features/aarch64.c: New file (generated).
3252 * features/aarch64.xml: New file.
3253 * regformats/aarch64-without-fpu.dat: New file (generated).
3254 * regformats/aarch64.dat: New file (generated).
3256 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3258 * contrib/expect-read1.c: New file.
3259 * contrib/expect-read1.sh: New file.
3261 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3263 * dwarf2read.c (file_file_name): New function with code from
3265 (file_full_name): Move most of the code to file_file_name.
3266 (macro_start_file): Rename variable full_name to file_name and use
3267 file_file_name for it. Add comp_dir parameter to new_macro_table.
3268 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
3269 macro_source_file->filename access by macro_source_fullname call.
3270 * macroscope.c (_initialize_macroscope): Update the new_macro_table
3272 * macrotab.c (struct macro_table): New field comp_dir.
3273 (macro_include): New variables link_fullname and source_fullname.
3274 Replace any macro_source_file->filename access by macro_source_fullname
3276 (macro_lookup_inclusion): Remove the partial filenames checking code.
3277 (check_for_redefinition): New variables source_fullname and
3278 found_key_fullname. Replace any macro_source_file->filename access by
3279 macro_source_fullname call.
3280 (macro_undef): New variables source_fullname and key_fullname. Replace
3281 any macro_source_file->filename access by macro_source_fullname call.
3282 (macro_lookup_definition): New variables retval and source_fullname.
3283 Replace any macro_source_file->filename access by macro_source_fullname
3285 (foreach_macro): New variable key_fullname. Replace any
3286 macro_source_file->filename access by macro_source_fullname call.
3287 (foreach_macro_in_scope): New variable datum_fullname. Replace any
3288 macro_source_file->filename access by macro_source_fullname call.
3289 (new_macro_table): Add parameter comp_dir. Initialize T with it.
3290 (macro_source_fullname): New function.
3291 * macrotab.h (struct macro_source_file): Extent the filename field
3293 (new_macro_table): New parameter comp_dir, add a comment for it.
3294 (macro_source_fullname): new declaration.
3296 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3298 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
3299 this_real_name to outer block. Use it also for
3300 compare_filenames_for_search.
3301 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
3302 with dw2_get_real_path for file_matcher, considering also
3303 BASENAMES_MAY_DIFFER.
3304 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
3306 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3308 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
3309 to the file_matcher parameter. Pass 0 to it.
3310 (dwarf2_create_include_psymtab): Copy also DIRNAME.
3311 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
3312 NULL psymtab_to_fullname result.
3313 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
3314 an expected filename instead.
3315 (expand_symtabs_matching_via_partial): Add basenames parameter to the
3316 file_matcher parameter. Call also psymtab_to_fullname, after newly
3317 considering BASENAMES_MAY_DIFFER.
3318 * source.c (rewrite_source_path): Remove static.
3319 * source.h (rewrite_source_path): New declaration.
3320 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
3321 the expand_symtabs_matching field. Comment it.
3322 * symtab.c (file_matches): New function comment. Add parameter
3323 basenames, implement it.
3324 (search_symbols_file_matches): Add basenames parameter. Update the
3325 file_matches caller.
3326 (search_symbols): Match FILES also against symtab_to_fullname.
3327 Optimize it for BASENAMES_MAY_DIFFER.
3329 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3331 * source.c (print_source_lines_base): Print for TUI also "fullname".
3332 * tui/tui-data.c (init_content_element): Change tui_locator_element
3334 * tui/tui-data.h (struct tui_locator_element): Likewise.
3335 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
3336 tui_update_locator_filename calls to tui_update_locator_fullname.
3337 Replace symtab->filename refererence by symtab_to_fullname call.
3338 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
3339 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
3340 field to full_name. Replace symtab->filename refererence by
3341 symtab_to_fullname call.
3342 (tui_show_symtab_source): Rename parameter to fullname. Change
3343 tui_locator_element field to full_name.
3344 * tui/tui-stack.c: Include source.h.
3345 (tui_set_locator_filename): Rename the declaration to ...
3346 (tui_set_locator_fullname): ... here. Rename its parameter to
3347 fullname, updates its comment.
3348 (tui_set_locator_info): Rename its parameter to fullname.
3349 (tui_set_locator_filename): Rename the definition to ...
3350 (tui_set_locator_fullname): ... here. Rename its parameter to
3351 fullname, updates its comment. Change tui_locator_element field to
3353 (tui_set_locator_info): Rename its parameter to fullname.
3354 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
3355 (tui_update_locator_filename): Rename to ...
3356 (tui_update_locator_fullname): ... here. Rename callee to
3357 tui_set_locator_fullname.
3358 (tui_show_frame_info): Replace symtab->filename refererence by
3359 symtab_to_fullname call.
3360 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
3361 (tui_update_locator_fullname): ... here.
3362 * tui/tui-winsource.c (tui_display_main): Rename the callee to
3363 tui_update_locator_fullname. Replace symtab->filename refererence by
3364 symtab_to_fullname call.
3365 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
3366 Rename the callee to tui_update_locator_fullname.
3367 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
3369 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3371 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
3372 by symtab_to_filename_for_display calls.
3373 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
3374 (clear_command): New variable sal_fullname, initialize it. Replace
3375 compare_filenames_for_search by filename_cmp with sal_fullname.
3376 (say_where, update_static_tracepoint): Replace symtab->filename
3377 refererences by symtab_to_filename_for_display calls.
3378 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
3380 * dwarf2read.c: Include source.h.
3381 (fixup_go_packaging): Replace symtab->filename refererences by
3382 symtab_to_filename_for_display calls.
3383 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
3384 Replace symtab->filename refererences by symtab_to_filename_for_display
3386 (create_sals_line_offset, convert_linespec_to_sals): New variable
3387 fullname, initialize it, replace symtab->filename reference by the
3389 * linux-fork.c: Include source.h.
3390 (info_checkpoints_command): Replace symtab->filename refererences by
3391 symtab_to_filename_for_display calls.
3392 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
3393 by symtab_to_filename_for_display calls.
3394 * mdebugread.c: Include source.h.
3395 (psymtab_to_symtab_1): Replace symtab->filename refererences by
3396 symtab_to_filename_for_display calls.
3397 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3398 (mi_cmd_file_list_exec_source_files): Likewise.
3399 * printcmd.c: Include source.h.
3400 (build_address_symbolic): Replace symtab->filename refererences by
3401 symtab_to_filename_for_display calls.
3402 * psymtab.c (partial_map_symtabs_matching_filename)
3403 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
3404 with psymtab_to_fullname.
3405 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
3406 by symtab_to_filename_for_display calls.
3407 (stpy_get_filename): New variable filename, initialize it, use instead
3408 of symtab->filename refererences.
3409 (salpy_str): Make variable filename const char *. Replace
3410 symtab->filename refererences by symtab_to_filename_for_display calls.
3411 * skip.c: Include source.h and filenames.h.
3412 (skip_file_command): Remove const from the symtab variable. Replace
3413 symtab->filename refererences by symtab_to_fullname call.
3414 (function_name_is_marked_for_skip): New variables searched_for_fullname
3415 and fullname. Use them to search also with symtab's fullname.
3416 * source.c (find_source_lines): Replace symtab->filename refererences
3417 by symtab_to_filename_for_display calls.
3418 (print_source_lines_base): New variable filename, use it instead of
3419 symtab->filename. Replace symtab->filename refererences by
3420 symtab_to_filename_for_display calls.
3421 (line_info, forward_search_command): Replace symtab->filename
3422 refererences by symtab_to_filename_for_display calls.
3423 (reverse_search_command): Replace symtab->filename refererences by
3424 symtab_to_filename_for_display calls. New variable filename for it.
3425 * stack.c (frame_info): Likewise.
3426 * symmisc.c: Include source.h.
3427 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
3428 (maintenance_info_symtabs): Replace symtab->filename refererences by
3429 symtab_to_filename_for_display calls.
3430 * symtab.c (iterate_over_some_symtabs): Call
3431 compare_filenames_for_search also with symtab_to_fullname.
3432 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
3433 symtab->filename refererences by symtab_to_filename_for_display calls.
3434 (find_line_symtab): Replace symtab->filename refererences by
3435 symtab_to_filename_for_display calls.
3436 (file_matches): Replace filename_cmp by compare_filenames_for_search.
3437 (print_symbol_info): Make the last parameter const char *. New
3438 variable s_filename. Use it in the function.
3439 (symtab_symbol_info): Make the last_filename variable const char *.
3440 Replace symtab->filename refererences by symtab_to_filename_for_display
3442 (rbreak_command): New variable fullname. Use it. Replace
3443 symtab->filename refererence by symtab_to_filename_for_display call.
3444 * tracepoint.c (set_traceframe_context, trace_find_line_command)
3445 (print_one_static_tracepoint_marker): Replace symtab->filename
3446 refererences by symtab_to_filename_for_display calls.
3447 * tui/tui-source.c (tui_set_source_content): New variables filename and
3448 s_filename. Replace symtab->filename refererences by this variable.
3449 Replace other symtab->filename refererences by
3450 symtab_to_filename_for_display calls.
3452 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
3453 Jan Kratochvil <jan.kratochvil@redhat.com>
3455 Add a new variable that controls a way in which filenames are
3457 * NEWS (set filename-display): New entry.
3458 * source.c (filename_display_basename, filename_display_relative)
3459 (filename_display_absolute, filename_display_kind_names)
3460 (filename_display_string, show_filename_display_string)
3461 (symtab_to_filename_for_display): New.
3462 (_initialize_source): Added initialization of 'filename-display'
3464 * source.h (symtab_to_filename_for_display): Added declaration.
3465 * stack.c (print_frame): Added new variable and calling of a new
3466 function and condition with this variable. Changed third argument of
3467 calling of a function.
3469 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3471 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
3472 Rename field reference filename to fullname.
3473 * tui/tui-data.h (struct tui_source_info): Rename field filename to
3474 fullname. New comment for it.
3475 * tui/tui-source.c (tui_set_source_content): Rename field reference
3476 filename to fullname. Initialize field by symtab_to_fullname now.
3477 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
3478 reference filename to fullname. Use symtab_to_fullname during
3481 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3484 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
3485 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
3486 filename to fullname. Rename variable this_name to this_fullname.
3487 Lowercase FILENAME_CMP call.
3488 (dw2_find_symbol_file): New comment for the returned string.
3489 (dwarf2_gdb_index_functions): Rename the function to
3490 dw2_expand_symtabs_with_fullname.
3491 * psymtab.c (read_psymtabs_with_filename): Rename to ...
3492 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
3494 (psym_functions): Rename the function to read_psymtabs_with_fullname.
3495 * symfile.h (struct quick_symbol_functions): Rename field
3496 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
3497 parameter filename to fullname. Document returned string meaning for
3499 * symtab.c (find_line_symtab): Rename the called function to
3500 expand_symtabs_with_fullname.
3502 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3505 * breakpoint.c (clear_command): Remove variable is_abs, unify the
3506 call of filename_cmp with compare_filenames_for_search.
3507 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
3508 is_abs, unify the call of FILENAME_CMP with
3509 compare_filenames_for_search. New gdb_asserts for real_path and name.
3510 Unify the call of compare_filenames_for_search with FILENAME_CMP.
3511 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
3512 * symfile.h (struct quick_symbol_functions): Extend the comment for
3513 map_symtabs_matching_filename.
3514 * symtab.c (compare_filenames_for_search): Remove the function comment
3515 relative path requirement. Handle absolute filenames, with a comment.
3516 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
3517 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
3518 real_path and name. Unify the call of compare_filenames_for_search
3520 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
3522 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3525 * breakpoint.c (print_breakpoint_location): Replace bp_location field
3526 source_file references by symtab field references. Remove variables
3528 (momentary_breakpoint_from_master, add_location_to_breakpoint):
3529 (clear_command, say_where): Replace bp_location field source_file
3530 references by symtab field references.
3531 (bp_location_dtor): Remove the source_file reference.
3532 (update_static_tracepoint): Replace bp_location field source_file
3533 references by symtab field references.
3534 (breakpoint_free_objfile): New function.
3535 * breakpoint.h (struct bp_location): Extend the comment for line_number.
3536 Replace the field source_file by field symtab, extend its comment.
3537 (breakpoint_free_objfile): New declaration.
3538 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
3539 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
3540 field source_file references by symtab field references.
3542 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3544 Replace xfullpath calls by gdb_realpath calls.
3545 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
3547 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
3548 Remove it from the iterate_over_some_symtabs call.
3549 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
3550 Remove it from the dw2_map_expand_apply calls, remove a block handling
3552 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
3553 Remove it from the iterate_over_some_symtabs call.
3554 (partial_map_symtabs_matching_filename): Remove parameter full_path.
3555 Remove it from the partial_map_expand_apply calls, remove a block
3556 handling it. Drop gdb_realpath call and cleanups from the real_path
3558 * source.c (openp): Drop the comment part about xfullpath. Replace
3559 xfullpath calls by gdb_realpath calls.
3560 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
3561 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
3562 from method map_symtabs_matching_filename and its comment.
3563 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
3565 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
3566 remove it also from the function comment, remove a block handling it.
3567 Drop gdb_realpath call and cleanups from the real_path handling.
3568 (iterate_over_symtabs): Drop variable full_path and its use.
3569 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
3570 * utils.c (xfullpath): Remove.
3571 * utils.h (xfullpath): Remove.
3573 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
3575 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
3576 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
3577 (ALLDEPFILES): Add ppc64-tdep.c.
3578 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
3579 ppc64-tdep.o to gdb_target_obs.
3580 * ppc64-tdep.h: New file.
3581 * ppc64-tdep.c: New file.
3582 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
3583 ppc-linux-tdep.c to here.
3584 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
3585 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
3586 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
3587 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
3588 from ppc-linux-tdep.c to here.
3589 (ppc64_convert_from_func_ptr_addr): Rename from
3590 ppc64_linux_convert_from_func_ptr_addr to
3591 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
3594 (read_insn): Move from ppc-linux-tdep.c to here.
3595 (insns_match_pattern, insn_d_field, insn_ds_field): Move
3596 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
3597 * ppc-linux-tdep.c: Include ppc64-tdep.h.
3598 Removed above functions.
3599 (ppc_linux_init_abi): Adjust.
3601 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
3603 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
3605 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
3607 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
3609 2013-02-01 Pedro Alves <palves@redhat.com>
3611 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
3612 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
3614 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3616 * elfread.c (elf_symfile_read): Limit separate debug info additions to
3617 files with no separate debug info.
3618 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
3619 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
3620 only for files with no separate debug info.
3622 2013-01-31 Tom Tromey <tromey@redhat.com>
3624 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
3626 (struct jit_program_space_data): Rename from jit_inferior_data.
3628 (get_jit_program_space_data): Rename from get_jit_inferior_data.
3629 Change return type. Attach data to program space.
3630 (jit_program_space_data_cleanup): Rename from
3631 jit_inferior_data_cleanup; change argument type.
3632 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
3634 (jit_register_code): Update.
3635 (jit_update_inferior_cache): Remove.
3636 (jit_breakpoint_deleted): Get jit data from the location's program
3638 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
3639 'ps_data', change type.
3640 (jit_inferior_init, jit_breakpoint_re_set_internal)
3641 (jit_event_handler): Update.
3642 (free_objfile_data): Get data from objfile's program space.
3643 (_initialize_jit): Update.
3645 2013-01-31 Tom Tromey <tromey@redhat.com>
3648 * jit.c (struct jit_inferior_data) <cached_code_address,
3649 jit_breakpoint>: New fields.
3650 (jit_breakpoint_re_set_internal): Fix logging. Only create
3651 breakpoint if cached address has changed.
3652 (jit_update_inferior_cache, jit_breakpoint_deleted): New
3654 (_initialize_jit): Register breakpoint deleted observer.
3656 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3658 * infrun.c (handle_syscall_event): Remove unused gdbarch.
3659 (save_infcall_suspend_state): Ifdef out unused inf.
3660 (restore_infcall_suspend_state): Ifdef out unused inf.
3661 * jit.c (jit_register_code): Remove unused i, b, inf_data.
3662 (jit_frame_sniffer): Remove unused inf_data.
3664 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3666 * c-exp.y (classify_inner_name): Remove unused type.
3667 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
3668 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
3670 (c_get_string): Remove unused kind.
3671 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
3673 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3675 * charset.c (intermediate_encoding): Remove unused i.
3676 * completer.c (signal_completer): Remove unused i.
3677 * continuations.c (discard_my_continuations_1): Remove unused
3679 * corelow.c (core_close): Remove unuseD name.
3680 (get_core_siginfo): Remove unused pid.
3681 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
3683 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
3684 (loclist_describe_location): Remove unused first.
3685 * event-top.c (command_line_handler): Remove unused got_eof.
3686 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
3687 (resize_section_table): Remove unused old_value.
3688 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
3689 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
3690 * i386-tdep.c (i386_process_record): Remove unused rex.
3691 * infcmd.c (get_return_value): Remove unused uiout.
3692 * jv-lang.c (type_from_class): Remove unused is_array.
3693 * jv-valprint.c (java_val_print): Remove unused i.
3694 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
3695 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
3696 * m2-typeprint.c (m2_print_type): Remove unused code.
3697 * macroexp.c (get_character_constant): Remove unused body_start.
3698 (macro_stringify): Remove unused result.
3699 * objc-lang.c (find_methods): Remove unused gdbarch.
3700 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
3701 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
3702 * stack.c (print_frame_args): Remove unused summary.
3703 * thread.c (thread_apply_command): Remove unused p.
3704 * valarith.c (value_x_unop): Remove unused mangle_ptr.
3705 * valops.c (search_struct_method): Remove unused skip.
3706 * valprint.c (generic_val_print): Remove unused byte_order.
3707 * varobj.c (varobj_update): Remove unused changed.
3708 * cli/cli-cmds.c (complete_command): Remove unused next_item.
3709 (alias_command): Remove unused c.
3710 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
3711 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
3713 (mi_cmd_data_write_memory): Remove unused word_format.
3714 (mi_cmd_data_write_memory_bytes): Remove unused r.
3715 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
3717 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
3718 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
3721 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3723 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
3724 * symtab.c (iterate_over_symtabs): Remove unused s.
3725 (find_pc_sect_symtab): Remove unused pspAce.
3726 (find_pc_sect_line): Remove unused alt_symtab.
3727 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
3728 (completion_list_add_name): Remove unused newsize.
3730 2013-01-31 Tom Tromey <tromey@redhat.com>
3733 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
3736 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3738 * target.c (target_read_string): Remove unused origlen.
3740 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3742 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
3743 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
3744 * ax-general.c (ax_print): Remove unused is_float.
3745 * blockframe.c (block_innermost_frame): Remove unused start, end.
3746 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
3748 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3750 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
3751 (svr4_read_so_list): Remove unused lmo.
3752 * solib-target.c (solib_target_relocate_section_addresses): Remove
3755 2013-01-30 Tom Tromey <tromey@redhat.com>
3757 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
3759 2013-01-30 Tom Tromey <tromey@redhat.com>
3761 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
3762 * utils.c (gnu_debuglink_crc32): Remove.
3763 * utils.h (gnu_debuglink_crc32): Don't declare.
3765 2013-01-30 Tom Tromey <tromey@redhat.com>
3767 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
3768 (read_structure_type, read_enumeration_type): Remove cast.
3770 2013-01-30 Tom Tromey <tromey@redhat.com>
3772 * dwarf2read.c (read_namespace_type): Remove cast.
3773 (read_typedef): Likewise.
3775 2013-01-29 Tom Tromey <tromey@redhat.com>
3777 * dwarf2read.c (free_dwo_file): Remove assert.
3779 2013-01-29 Tom Tromey <tromey@redhat.com>
3781 * value.c (deprecated_set_value_modifiable): Remove.
3782 * value.h (deprecated_set_value_modifiable): Remove.
3784 2013-01-28 Doug Evans <dje@google.com>
3786 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
3787 to addresses from dwo files.
3789 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
3791 * valops.c (find_overload_match): Remove unused argument 'lax'.
3792 * value.h: Remove unused argument 'lax' from the declaration of
3793 find_overload_match.
3794 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
3795 to find_overload_match.
3796 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
3797 argument to find_overload_match.
3799 2013-01-25 Tom Tromey <tromey@redhat.com>
3801 * dwarf2read.c (processing_has_namespace_info): Remove.
3802 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
3803 (process_die, read_func_scope, dwarf2_start_symtab)
3804 (new_symbol_full): Update.
3806 2013-01-25 Tom Tromey <tromey@redhat.com>
3808 * cp-namespace.c (cp_set_block_scope): Remove.
3809 * cp-support.h (cp_set_block_scope): Remove.
3810 * dbxread.c: Include block.h.
3811 (cp_set_block_scope): New function.
3812 (process_one_symbol): Update.
3813 * dwarf2read.c (read_func_scope): Use block_set_scope.
3815 2013-01-25 Pedro Alves <palves@redhat.com>
3817 * remote.c (add_current_inferior_and_thread): Tweak comment.
3819 2013-01-25 Tom Tromey <tromey@redhat.com>
3821 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3822 (cp_add_using_directive): Add 'copy_names' argument.
3823 * cp-support.h (cp_add_using_directive): Update.
3824 (struct using_direct) <import_src, import_dest, alias,
3825 declaration>: Now const.
3826 * dwarf2read.c (read_import_statement): Use obconcat.
3827 Don't copy names passed to cp_add_using_directive.
3829 2013-01-25 Tom Tromey <tromey@redhat.com>
3831 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
3833 2013-01-25 Pedro Alves <palves@redhat.com>
3835 * remote.c (stop_reply_extract_thread): New.
3836 (add_current_inferior_and_thread): New parameter 'wait_status'.
3838 (remote_start_remote): Pass wait status to
3839 add_current_inferior_and_thread.
3840 (extended_remote_run): Update comment.
3841 (extended_remote_create_inferior_1): Pass wait status to
3842 add_current_inferior_and_thread.
3844 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
3845 Ulrich Weigand <uweigand@de.ibm.com>
3847 * valarith.c (value_vector_widen): New function for replicating a
3848 scalar into a vector.
3849 (value_binop): Use value_vector_widen to widen scalar to vector
3850 rather than casting, this better matches gcc C behaviour.
3851 * valops.c (value_casst): Update logic for casting between vector
3852 types, and for casting from scalar to vector, try to match gcc C
3854 * value.h (value_vector_widen): Declare.
3855 * opencl-lang.c (opencl_value_cast): New opencl specific casting
3856 function, handle special case for casting scalar to vector.
3857 (opencl_relop): Use opencl_value_cast.
3858 (evaluate_subexp_opencl): Use opencl_value_cast instead of
3859 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
3860 in order to use opencl_value_cast.
3862 2013-01-25 Yao Qi <yao@codesourcery.com>
3864 * event-loop.c: Include "queue.h".
3865 (gdb_event_p): New typedef.
3866 (DECLARE_QUEUE_P): Use.
3867 (DEFINE_QUEUE_P): Use.
3868 (async_queue_event): Remove.
3869 (gdb_event_xfree): New.
3870 (initialize_event_loop): New.
3871 (process_event): Use QUEUE macros.
3872 (event_queue): Remove.
3873 (gdb_wait_for_event): Caller update.
3874 (check_async_event_handlers): Likewise.
3875 (poll_timers): Likewise.
3876 * event-loop.h (initialize_event_loop): Declare.
3877 * event-loop.c (gdb_event_xfree): New.
3878 * top.c (gdb_init): Call initialize_event_loop.
3880 2013-01-25 Yao Qi <yao@codesourcery.com>
3882 * event-loop.c (async_queue_event): Remove one parameter
3883 'position'. Remove code handling 'position' == TAIL.
3884 (gdb_wait_for_event): Caller update.
3885 (check_async_event_handlers): Caller update.
3886 (poll_timers): Caller update.
3887 * event-loop.h (enum queue_position): Remove.
3889 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
3891 * MAINTAINERS: Update my email.
3893 2013-01-25 Yao Qi <yao@codesourcery.com>
3895 * main.c (print_gdb_help): Remove "--epoch" from the help
3898 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
3900 * symtab.c (skip_prologue_using_sal): Consider a file
3901 change the same as an increased line number
3903 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
3905 * MAINTAINERS (Write After Approval): Add myself to the list.
3907 2013-01-24 Tom Tromey <tromey@redhat.com>
3909 * ada-lang.h (ada_decode_symbol): Make return type const.
3910 * ada-lang.c (ada_decode_symbol): Likewise.
3912 2013-01-23 Doug Evans <dje@google.com>
3914 * linespec.c (find_linespec_symbols): Make static.
3916 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
3918 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
3919 type on float conversion for complex type.
3921 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
3923 Add a new class gdb.Architecture which exposes GDB's
3924 internal representation of architecture via GDB Python API.
3925 * Makefile.in: Add entries corresponding to the new file
3927 * NEWS (Python Scripting): Add entries for the new class
3928 gdb.Architecture and the new method gdb.Frame.architecture.
3929 * python/py-arch.c: Implement gdb.Architecture class.
3930 * python/py-frame.c (frapy_arch): Implement the method
3931 gdb.Frame.architecture().
3932 (frame_object_methods): Add 'architecture' to the method table.
3933 * python/python-internal.h: Add declarations of new utility
3935 * python/python.c (_initialize_python): Initialize
3936 gdb.Architecture class.
3938 2013-01-23 Doug Evans <dje@google.com>
3940 Work around binutils/15021.
3941 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
3942 type_unit_group out of union s. All uses updated.
3943 (read_index_from_section): Watch for index version 8.
3944 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
3946 (write_psymtabs_to_index): Increment version number to 8.
3948 2013-01-22 Pedro Alves <palves@redhat.com>
3950 * annotate.c (breakpoint_changed): Skip if breakpoint is not
3953 2013-01-22 Pedro Alves <palves@redhat.com>
3955 * annotate.c (annotate_breakpoints_changed): Rename to ...
3956 (annotate_breakpoints_invalid): ... this. Make static.
3957 (breakpoint_changed): Adjust.
3958 (_initialize_annotate): Always install the observers. Install a
3959 "breakpoint_created" observer.
3960 * annotate.h (annotate_breakpoints_changed): Delete declaration.
3961 * breakpoint.c (set_breakpoint_condition)
3962 (breakpoint_set_commands, do_map_commands_command)
3963 (init_raw_breakpoint, clear_command, set_ignore_count)
3964 (enable_breakpoint_disp): No longer call
3965 annotate_breakpoints_changed.
3967 2013-01-22 Pedro Alves <palves@redhat.com>
3969 * annotate.c: Include "inferior.h".
3970 (frames_invalid_emitted)
3971 (breakpoints_invalid_emitted): New globals.
3972 (async_background_execution_p): New function.
3973 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
3974 emitting the annotation if it has already been emitted.
3975 (annotate_display_prompt): New function.
3976 * annotate.h (annotate_display_prompt): New declaration.
3977 * event-top.c: Include annotate.h.
3978 (display_gdb_prompt): Call annotate_display_prompt.
3980 2013-01-22 Pedro Alves <palves@redhat.com>
3982 * annotate.c (ignore_count_changed): Delete.
3983 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
3984 (annotate_ignore_count_change): Delete.
3985 (annotate_stopped): Don't emit a delayed breakpoints-changed
3987 * annotate.h (annotate_ignore_count_change): Delete.
3988 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
3989 annotate_ignore_count_change.
3991 2013-01-22 Tom Tromey <tromey@redhat.com>
3993 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
3994 require_rvalue for a register location.
3996 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
3998 * breakpoint.c (print_one_breakpoint_location): Add MI
3999 field 'thread-groups' when printing a breakpoint.
4000 (output_thread_groups): New function.
4002 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
4004 * python/lib/gdb/commands/explore.py
4005 (CompoundExplorer.explore_expr): Correct the name of a method
4007 (ExploreTypeCommand.invoke): Add a missing 'return'.
4009 2013-01-21 Tom Tromey <tromey@redhat.com>
4011 * gdb_obstack.h (obconcat): Move declaration here, from...
4012 * symfile.h (obconcat): ... here.
4013 * gdb_obstack.c: New file.
4014 (obconcat): Move from...
4015 * symfile.c (obconcat): ... here.
4016 * Makefile.in (SFILES): Add gdb_obstack.c.
4017 (COMMON_OBS): Add gdb_obstack.o.
4019 2013-01-21 Tom Tromey <tromey@redhat.com>
4021 * symfile.h (obsavestring): Don't declare.
4022 * symfile.c (obsavestring): Remove.
4023 * ada-exp.y: Use obstack_copy0, not obsavestring.
4024 * ada-lang.c: Use obstack_copy0, not obsavestring.
4025 * coffread.c: Use obstack_copy0, not obsavestring.
4026 * cp-namespace.c: Use obstack_copy0, not obsavestring.
4027 * dbxread.c: Use obstack_copy0, not obsavestring.
4028 * dwarf2read.c: Use obstack_copy0, not obsavestring.
4029 * jit.c: Use obstack_copy0, not obsavestring.
4030 * mdebugread.c: Use obstack_copy0, not obsavestring.
4031 * psymtab.c: Use obstack_copy0, not obsavestring.
4032 * stabsread.c: Use obstack_copy0, not obsavestring.
4033 * xcoffread.c: Use obstack_copy0, not obsavestring.
4035 2013-01-21 Tom Tromey <tromey@redhat.com>
4037 * dwarf2read.c (fixup_go_packaging): Save package name
4039 * gdbtypes.c (init_type): Don't copy name.
4041 2013-01-21 Tom Tromey <tromey@redhat.com>
4043 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
4045 (struct attribute) <u.str>: Now const.
4046 (struct fnfieldlist) <name>: Now const.
4047 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
4048 (partial_die_parent_scope): Make return type const.
4049 (partial_die_full_name, add_partial_symbol): Update.
4050 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
4052 (find_file_and_directory): Make 'name' and 'comp_dir' const.
4053 (read_file_scope, read_func_scope, dwarf2_add_field)
4054 (dwarf2_add_member_fn, read_structure_type)
4055 (process_enumeration_scope, read_array_type, read_module_type)
4056 (read_base_type, read_subrange_type): Update.
4057 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
4058 (new_symbol_full, guess_full_die_structure_name): Update.
4059 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
4060 (dwarf2_name): Return const type.
4061 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
4064 2013-01-21 Tom Tromey <tromey@redhat.com>
4066 * gdbtypes.c (init_type): Make 'name' const.
4067 * gdbtypes.h (init_type): Update.
4069 2013-01-21 Tom Tromey <tromey@redhat.com>
4071 * buildsym.c (patch_subfile_names): Use set_last_source_file.
4072 (start_symtab): Make 'name' and 'dirname' const. Use
4073 set_last_source_file.
4074 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
4075 (last_source_file): Define. Now static.
4076 (set_last_source_file, get_last_source_file): New functions.
4077 * buildsym.h (last_source_file): Don't declare.
4078 (start_symtab): Update.
4079 (set_last_source_file, get_last_source_file): Declare.
4080 * coffread.c (complete_symtab): Use set_last_source_file.
4081 (coff_end_symtab): Likewise.
4082 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
4083 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
4084 set_last_source_file.
4085 (process_one_symbol): Use get_last_source_file.
4086 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
4087 (psymtab_to_symtab_1): Use get_last_source_file.
4088 * xcoffread.c (process_linenos): Use get_last_source_file.
4089 (complete_symtab): Use set_last_source_file.
4090 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
4091 (scan_xcoff_symtab): Use set_last_source_file.
4093 2013-01-21 Tom Tromey <tromey@redhat.com>
4095 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
4096 (symbol_set_names): Remove casts. Handle field const-ness.
4098 2013-01-21 Tom Tromey <tromey@redhat.com>
4100 * dwarf2read.c (new_symbol_full): Remove cast.
4101 * symtab.c (symbol_set_demangled_name): Make 'name' const.
4102 * symtab.h (symbol_set_demangled_name): Update.
4104 2013-01-21 Tom Tromey <tromey@redhat.com>
4106 * main.c (captured_main): Call bfd_init.
4108 2013-01-21 Tom Tromey <tromey@redhat.com>
4110 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
4111 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
4112 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
4115 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4117 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
4119 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4121 Fix gdb.fortran/common-block.exp crash in PIE mode.
4122 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
4124 * f-valprint.c (info_common_command_for_block): Expect
4125 LOC_COMMON_BLOCK in gdb_assert.
4126 * symtab.h (struct general_symbol_info): Update comment for the
4127 common_block member.
4128 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
4129 (enum address_class): New member LOC_COMMON_BLOCK.
4131 2013-01-18 David Blaikie <dblaikie@gmail.com>
4133 * MAINTAINERS (Write After Approval): Add "David Blaikie".
4135 2013-01-18 Tom Tromey <tromey@redhat.com>
4138 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
4139 Call require_rvalue.
4141 2013-01-18 Yao Qi <yao@codesourcery.com>
4143 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
4144 (dbx_read_symtab): New declaration.
4145 (dbx_psymtab_to_symtab): Delete.
4146 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
4147 Rename parameter PST to SELF. Exchanged two parameters.
4148 (start_psymtab): Caller update.
4149 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
4150 (dwarf2_read_symtab): New declaration.
4151 (dwarf2_psymtab_to_symtab): Delete.
4152 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
4153 Rename parameter PST to SELF. Exchanged two parameters.
4154 (create_partial_symtab): Caller update.
4155 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
4156 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
4157 Rename parameter PST to SELF. Exchanged two parameters.
4158 (parse_partial_symbols, new_psymtab): Caller update.
4159 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
4161 * psymtab.c (psymtab_to_symtab): Caller update.
4162 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
4163 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
4164 Rename parameter PST to SELF. Exchanged two parameters.
4165 (xcoff_start_psymtab): Caller update.
4167 2013-01-18 Yao Qi <yao@codesourcery.com>
4169 * infrun.c (proceed): Rename local variable 'oneproc' to
4172 2013-01-17 Doug Evans <dje@google.com>
4174 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
4175 (dw2_build_type_unit_groups): Delete. All uses updated.
4177 * symtab.h (struct symbol_search): Add comment.
4179 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4181 * symtab.c (compare_filenames_for_search): New comment for
4184 2013-01-17 Tom Tromey <tromey@redhat.com>
4186 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
4188 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4190 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
4191 initialize it by existing make_cleanup. Call new do_cleanups.
4193 2013-01-17 Tom Tromey <tromey@redhat.com>
4195 * cp-abi.c (cp_abi_completer): New function.
4196 (_initialize_cp_abi): Set completer for "set cp-abi".
4198 2013-01-17 Tom Tromey <tromey@redhat.com>
4200 * mem-break.c: Remove obsolete comment.
4201 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
4203 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
4205 * jit.c (jit_reader_load_command): Interpret the jit reader name
4206 as an absolute path if it begins with a forward slash.
4208 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
4212 * jit.c (finalize_symtab): Ensure that only the global block has a
4215 2013-01-17 Pedro Alves <palves@redhat.com>
4217 * acinclude.m4: Include ../config/plugins.m4,
4218 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
4219 * Makefile.in (aclocal_m4_deps): Update.
4220 * aclocal.m4: Renegerate.
4222 2013-01-16 Doug Evans <dje@google.com>
4224 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
4226 2013-01-16 Pedro Alves <palves@redhat.com>
4227 Tom Tromey <tromey@redhat.com>
4230 * NEWS: Add "catch signal".
4231 * breakpoint.c (base_breakpoint_ops): No longer static.
4232 (bpstat_explains_signal): New function.
4233 (init_catchpoint): No longer static.
4234 (base_breakpoint_explains_signal): New function.
4235 (base_breakpoint_ops): Initialize new field.
4236 * breakpoint.h (enum bpstat_signal_value): New.
4237 (struct breakpoint_ops) <explains_signal>: New field.
4238 (bpstat_explains_signal): Remove macro, declare as function.
4239 (base_breakpoint_ops, init_catchpoint): Declare.
4240 * break-catch-sig.c: New file.
4241 * inferior.h (signal_catch_update): Declare.
4242 * infrun.c (signal_catch): New global.
4243 (handle_syscall_event): Update for change to
4244 bpstat_explains_signal.
4245 (handle_inferior_event): Likewise. Always handle random signals
4247 (signal_cache_update): Check signal_catch.
4248 (signal_catch_update): New function.
4249 (_initialize_infrun): Initialize signal_catch.
4250 * Makefile.in (SFILES): Add break-catch-sig.c.
4251 (COMMON_OBS): Add break-catch-sig.o.
4253 2013-01-16 Tom Tromey <tromey@redhat.com>
4255 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
4256 (print_one_catch_solib, print_one_catch_syscall)
4257 (print_one_catch_exec, print_one_exception_catchpoint): Emit
4260 2013-01-16 Yao Qi <yao@codesourcery.com>
4262 * printcmd.c (current_display_number): Make it static.
4264 2013-01-16 Yao Qi <yao@codesourcery.com>
4266 * infcmd.c (step_once): Don't check '!single_inst' as it was
4269 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4271 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
4273 2013-01-14 Tom Tromey <tromey@redhat.com>
4275 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
4277 * command.h (add_setshow_string_noescape_cmd): Update.
4278 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
4279 (complete_set_gnutarget): New function.
4280 (_initialize_core): Set the "set gnutarget" completer.
4282 2013-01-14 Tom Tromey <tromey@redhat.com>
4285 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
4286 (c_type_print_modifier): Likewise.
4287 * dwarf2read.c (read_tag_restrict_type): New function.
4288 (read_type_die_1): Handle DW_TAG_restrict_type.
4289 * gdbtypes.c (make_restrict_type): New function.
4290 (recursive_dump_type): Handle TYPE_RESTRICT.
4291 * gdbtypes.h (enum type_flag_values): Renumber.
4292 (enum type_instance_flag_value): Add
4293 TYPE_INSTANCE_FLAG_RESTRICT.
4294 (TYPE_RESTRICT): New macro.
4295 (make_restrict_type): Declare.
4297 2013-01-14 Tom Tromey <tromey@redhat.com>
4300 * psymtab.c (struct psymtab_state): New.
4301 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
4303 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
4304 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
4306 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
4307 Pedro Alves <palves@redhat.com>
4311 * remote.c (remote_threads_info): Make a copy of the reply from
4312 qfThreadInfo and use that instead of rs->buf.
4314 2013-01-14 Yao Qi <yao@codesourcery.com>
4316 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
4317 (dbx_psymtab_to_symtab): Likewise.
4318 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
4319 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
4320 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
4322 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4324 * parse.c (parse_exp_in_context): New variable inner_chain. Call
4325 make_cleanup_restore_current_language. Call set_language. Move
4326 OLD_CHAIN and INNER_CHAIN cleanups.
4327 * utils.c (do_restore_current_language)
4328 (make_cleanup_restore_current_language): New functions.
4329 * utils.h (make_cleanup_restore_current_language): New declaration.
4331 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4333 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
4336 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
4337 non-existing files if FILENAME is already absolute.
4339 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4341 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
4342 fputs_filtered. Append trailing newline.
4344 2013-01-11 Yao Qi <yao@codesourcery.com>
4345 Stan Shebs <stan@codesourcery.com>
4347 * psymtab.c (init_psymbol_list): Clarify the comment.
4349 2013-01-11 Yao Qi <yao@codesourcery.com>
4351 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
4352 (update_dprintf_command_list): Assert that 'printf_line' is
4353 non-null. Remove condition check.
4355 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4358 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
4360 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
4362 * tui/tui-source.h (tui_source_is_displayed): Likewise.
4364 2013-01-09 Anthony Green <green@moxielogic.com>
4366 * cp-abi.c (cplus_print_vtable): Don't return value from void
4368 * ada-lang.c (re_set_catch_assert): Ditto.
4370 2013-01-09 Doug Evans <dje@google.com>
4372 * symfile.h (quick_symbol_functions): Delete member
4373 pre_expand_symtabs_matching. All uses removed.
4374 * dwarf2read.c (dw2_lookup_symbol): Implement.
4375 (dw2_do_expand_symtabs_matching): Delete.
4376 (dw2_pre_expand_symtabs_matching): Delete.
4377 (struct dw2_symtab_iterator): New type.
4378 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
4379 (dw2_expand_symtabs_for_function): Rewrite.
4380 (dwarf2_gdb_index_functions): Update.
4381 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
4382 (psym_functions): Update.
4384 2013-01-09 Tom Tromey <tromey@redhat.com>
4386 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
4387 * configure: Rebuild.
4388 * configure.ac: Add somread.o to the build if BFD has SOM
4390 * somread.c: Include som/aout.h, not syms.h.
4391 (som_symtab_read): Use som_external_symbol_dictionary_record.
4392 Unpack records manually.
4393 (_initialize_somread): Declare.
4395 2012-01-08 Mike Frysinger <vapier@gentoo.org>
4397 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
4398 Cast return_address to 64bits.
4400 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
4402 * printcmd.c: Remove define of function output_command.
4403 * tracepoint.c: Remove extern of function output_command.
4404 * valprint.h: (output_command): New extern.
4406 2013-01-07 Tom Tromey <tromey@redhat.com>
4408 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
4410 (objc_language_defn): Use c_printchar, c_printstr,
4413 2013-01-07 Tom Tromey <tromey@redhat.com>
4417 * ada-valprint.c (printstr, print_field_values): Remove
4419 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
4421 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
4423 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
4424 * main.c (captured_main): Remove "epoch" argument.
4425 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
4426 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
4427 * p-valprint.c (pascal_object_print_value_fields): Remove
4429 * printcmd.c (print_command_1): Remove 'inspect' argument.
4430 (print_command, call_command): Update.
4431 (inspect_command): Remove.
4432 (_initialize_printcmd): Make "inspect" an alias for "print".
4433 * top.c (epoch_interface): Remove.
4434 * top.h (epoch_interface): Remove.
4435 * valprint.c (user_print_options): Update.
4436 (print_converted_chars_to_obstack): Remove "inspect_it" code.
4437 * valprint.h (struct value_print_options) <inspect_it>: Remove
4440 2013-01-04 Tom Tromey <tromey@redhat.com>
4442 * valprint.h (read_string): Add 'extern'.
4444 2013-01-07 Joel Brobecker <brobecker@adacore.com>
4446 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
4447 used to decide whether to define darwin_read_dyld_info or not.
4449 2013-01-03 Pierre Muller <muller@sourceware.org>
4451 * main.c (relocate_gdb_directory): Avoid calling stat function
4454 2013-01-03 Yao Qi <yao@codesourcery.com>
4456 * psymtab.c (fixup_psymbol_section): Update declaration.
4457 (fixup_psymbol_section): Remove code returning value.
4459 2013-01-03 Yao Qi <yao@codesourcery.com>
4461 * symtab.h: Remove some out of date comments.
4462 (enum exception_event_kind): Move it ...
4463 * breakpoint.c: ... here.
4465 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
4468 * darwin-nat.c (darwin_read_dyld_info): Only build if
4469 TASK_DYLD_INFO_COUNT is defined.
4470 (darwin_xfer_partial): Call darwin_read_dyld_info only if
4471 TASK_DYLD_INFO_COUNT is defined.
4473 2013-01-02 Tom Tromey <tromey@redhat.com>
4475 * symfile.h (struct ecoff_debug_hack): Remove.
4476 * objfiles.c: Don't include mdebugread.h.
4478 2013-01-02 Tom Tromey <tromey@redhat.com>
4480 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
4481 * configure.ac: Check for Mach-O support in BFD. Update
4483 * configure: Rebuild.
4485 2013-01-02 Tom Tromey <tromey@redhat.com>
4487 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
4488 * configure.ac: Use GDB_AC_CHECK_BFD.
4489 * configure: Rebuild.
4491 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
4493 * MAINTAINERS: Update my email.
4495 2013-01-01 Joel Brobecker <brobecker@adacore.com>
4497 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
4499 2013-01-01 Joel Brobecker <brobecker@adacore.com>
4501 * rs6000-nat.c (bss_data_overlap): New function.
4502 (vmap_symtab): Use it to adjust the .bss section's offset.
4504 2013-01-01 Joel Brobecker <brobecker@adacore.com>
4506 Update year range in copyright notice of all files.
4508 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
4510 * top.c (print_gdb_version): Update copyright year.
4512 For older changes see ChangeLog-2012.
4518 version-control: never