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