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