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