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