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