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