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