1 2013-04-01 Jiong Wang <jiwang@tilera.com>
3 * NEWS: Mention TILE-Gx in "New native configurations" and
4 "New targets" sections.
6 2013-04-01 Doug Evans <dje@google.com>
8 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9 (process_enumeration_scope): Simplify.
11 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
13 (struct signatured_type): ... to here.
14 (sig_type_ptr): New typedef.
15 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
16 out of union 't'. All uses updated.
17 (dw2_get_file_names_reader): Assert not called for a type unit.
18 (dw2_get_file_names): Assert not called for a type unit or type
20 (build_type_psymtabs_reader): Assert called for a type unit.
21 (build_type_psymtab_dependencies): Assert called for a type unit group.
23 * dwarf2read.c (free_dwo_file): Add comment.
24 (dwarf2_per_objfile_free): Unref dwp bfd.
26 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
28 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
29 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
30 (read_pe_exported_syms): Remove unused 'exportix'.
31 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
32 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
33 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
35 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
37 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
38 (print_it_watchpoint): Remove unused 'bl'.
39 (say_where): Remove unused 'uiout'.
40 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
41 (bkpt_breakpoint_hit): Remove unused 'b'.
42 (internal_bkpt_print_it): Remove unused 'uiout'.
43 * buildsym.c (augment_type_symtab): Remove unused 'i'.
45 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
47 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
48 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
50 2013-03-29 Doug Evans <dje@google.com>
52 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
53 Delete arg is_dwp. All callers updated.
54 (open_dwp_file): New function.
55 (open_and_init_dwp_file): Call it.
56 (get_dwp_file): New function.
57 (lookup_dwo_cutu): Call it.
59 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
62 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
64 * dwarf2read.c (read_cutu_die_from_dwo): New function.
65 (lookup_dwo_unit): New function.
66 (init_cutu_and_read_dies): Move DWO handling to new functions.
68 * dwarf2read.c (struct signatured_type): Tweak comment.
69 (struct dwo_unit): Tweak comment.
70 (create_debug_types_hash_table): Tweak comment. Reformat long line.
71 (create_dwo_debug_info_hash_table): Tweak comment.
72 (dwarf2_per_cu_offset_and_type): Tweak comment.
74 * dwarf2read.c (lookup_signatured_type): Remove complaint about
75 missing .debug_types section.
77 2013-03-29 Yao Qi <yao@codesourcery.com>
79 * corelow.c: Include "completer.h".
80 (_initialize_corelow): Call add_target_with_completer with
81 argument 'filename_completer'.
82 * tracepoint.c: Likewise.
83 * exec.c (_initialize_exec): Likewise.
84 * target.c (add_target): Rename to ...
85 (add_target_with_completer): ... this. Call set_cmd_completer
86 if parameter completer is not NULL.
88 * target.h: Include "command.h".
89 (add_target_with_completer): Declare it.
91 2013-03-28 Joel Brobecker <brobecker@adacore.com>
93 * coffread.c (is_import_fixup_symbol): New function.
94 (record_minimal_symbol): Use is_import_fixup_symbol to
95 detect import fixup symbols, and discard them.
97 2013-03-28 Doug Evans <dje@google.com>
99 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
100 types hash table until we know we need it.
102 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
105 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
107 (dw2_print_stats): Print #read CUs too.
108 (dump_die_shallow): Print signatured types better.
110 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
111 info_or_types_section to section. All uses updated.
112 (struct dwo_unit): Ditto.
114 2013-03-28 Pedro Alves <palves@redhat.com>
116 * NEWS (New options): New section.
117 (New options): Mention set/show remote trace-status-packet.
118 * remote.c (PACKET_qTStatus): New enumeration value.
119 (remote_get_trace_status): Skip sending qTStatus if the packet is
120 disabled. Use packet_ok.
121 (_initialize_remote): Register a configuration command for
124 2013-03-28 Doug Evans <dje@google.com>
126 * symfile.c (find_separate_debug_file): Add comment.
127 (terminate_after_last_dir_separator): Tweak comment.
129 * dwarf2read.c (create_partial_symtab): Add forward decl.
130 (create_partial_symtab): Move to be closer to other psymtab functions.
131 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
133 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
134 (compute_symtab_includes): Remove unnecessary forward declaration.
135 (die_needs_namespace): Add comment marking group of functions for
136 dwarf2 name computation.
138 * typeprint.c (_initialize_typeprint): Improve type help text.
140 * python/python.c (finish_python_initialization): Provide suggestion
141 for how to tell gdb to find its python files.
143 2013-03-28 Pedro Alves <palves@redhat.com>
147 * source.c (_initialize_source): Change back "set listsize" to an
150 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
153 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
155 2013-03-27 Pedro Alves <palves@redhat.com>
157 * top.c (history_size): Rename to ...
158 (history_size_setshow_var): ... this. Add comment.
159 (show_commands): Use readline's 'history_length' instead of
160 computing the history length by calling history_get in a loop.
161 (set_history_size_command): Error out for sizes over INT_MAX.
162 Restore previous history size on invalid size.
163 (init_history): If HISTSIZE is negative, leave the history size as
167 2013-03-27 Pedro Alves <palves@redhat.com>
169 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
170 coff_pe_read" command to "set debug coff-pe-read".
172 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
174 * record.c (command_size_to_target_size): Fix size comparison.
175 Change parameter type from pointer to integer to integer.
178 2013-03-27 Pierre Muller <muller@sourceware.org>
180 * windows-nat.c (handle_output_debug_string): Avoid typecast
181 from integer of different size warning.
183 2013-03-26 Joel Brobecker <brobecker@adacore.com>
185 * windows-nat.c (handle_output_debug_string): Add empty line
186 after local block variable definition.
188 2013-03-26 Pedro Alves <palves@redhat.com>
190 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
191 (net_open): Make 'polls' local unsigned.
193 2013-03-26 Pedro Alves <palves@redhat.com>
195 * remote.c (_initialize_remote): Make "set remoteaddresssize"
196 a zuinteger command instead of uinteger.
198 2013-03-26 Pedro Alves <palves@redhat.com>
200 * record-full.c (record_full_insn_num): Make it unsigned.
201 (record_full_check_insn_num, record_full_message)
202 (record_full_registers_change, record_full_xfer_partial): Remove
203 record_full_insn_max_num check (it's always != 0).
204 (record_full_info, record_full_restore): Use %u as format string.
205 (): Use %u as format string.
206 (set_record_full_insn_max_num): Remove record_full_insn_max_num
207 check (it's always != 0).
209 2013-03-26 Pedro Alves <palves@redhat.com>
211 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
212 and "set dcache size" commands zuinteger instead of uinteger.
214 2013-03-26 Pedro Alves <palves@redhat.com>
216 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
217 command zuinteger instead of uinteger.
219 2013-03-26 Pedro Alves <palves@redhat.com>
221 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
222 zuinteger instead of uinteger.
224 2013-03-26 Pedro Alves <palves@redhat.com>
226 * record.c (record_insn_history_size_setshow_var)
227 (record_call_history_size_setshow_var): New globals.
228 (command_size_to_target_size): New function.
229 (cmd_record_insn_history, cmd_record_call_history): Use
230 command_size_to_target_size instead of cast.
231 (validate_history_size, set_record_insn_history_size)
232 (set_record_call_history_size): New functions.
233 (_initialize_record): Install set_record_insn_history_size and
234 set_record_call_history_size as "set" hooks of "set record
235 instruction-history-size" and "set record
236 function-call-history-size".
238 2013-03-26 Pedro Alves <palves@redhat.com>
240 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
241 use with history_max_entries use. Remove FIXME note.
243 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
245 * record-btrace.c (record_btrace_close): Call
246 record_btrace_auto_disable.
248 2013-03-25 Joel Brobecker <brobecker@adacore.com>
250 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
252 2013-03-25 Doug Evans <dje@google.com>
254 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
256 2013-03-25 Tom Tromey <tromey@redhat.com>
259 * c-exp.y (exp): Add new productions for destructors after '.' and
261 (write_destructor_name): New function.
263 2013-03-25 Tom Tromey <tromey@redhat.com>
266 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
267 value_struct_elt, not lookup_struct_elt_type.
268 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
269 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
270 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
272 2013-03-25 Yao Qi <yao@codesourcery.com>
274 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
277 2013-03-23 Eli Zaretskii <eliz@gnu.org>
279 * windows-nat.c (windows_get_absolute_argv0): New function.
280 * windows-nat.h: Add its prototype.
282 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
283 Use IS_DIR_SEPARATOR instead of looking for a character inside
284 SLASH_STRING. Include filenames.h.
285 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
286 relocate_gdb_directory works when passed gdb_program_name.
287 Include windows-nat.h.
289 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
291 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
292 * remote.c (trace_error): Remove the special handling of '2'.
293 (readchar) <SERIAL_EOF>
294 (readchar) <SERIAL_ERROR>
295 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
296 (remote_get_trace_status): Call throw_exception if EX is
298 * utils.c (perror_with_name): Rename to ...
299 (throw_perror_with_name): ... here. New parameter errcode, describe it
300 in the function comment.
301 (perror_with_name): New function wrapper.
302 * utils.h (enum errors): New stub declaration.
303 (throw_perror_with_name): New declaration.
305 2013-03-22 Pedro Alves <palves@redhat.com>
306 Yao Qi <yao@codesourcery.com>
307 Mark Kettenis <kettenis@gnu.org>
309 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
310 Don't let the user set the value to UINT_MAX directly.
311 <var_integer>: Don't let the user set the value to INT_MAX
314 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
316 * remote.c (remote_unpush_target): New function.
317 (remote_open_1): Remove two pop_target calls, update one comment, add
318 comment to target_preopen call. Replace pop_target call by
319 remote_unpush_target call.
320 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
321 pop_target calls by remote_unpush_target calls.
323 2013-03-22 Pedro Alves <palves@redhat.com>
325 * linux-nat.c (linux_child_follow_fork): Don't call
326 linux_enable_event_reporting.
327 (linux_handle_extended_wait): Don't call
328 linux_enable_event_reporting.
330 2013-03-22 Pedro Alves <palves@redhat.com>
332 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
333 use it to rewrite the trampoline buffers with type gdb_byte[], and
334 undefine the macro. Remove char* cast.
336 2013-03-21 Doug Evans <dje@google.com>
338 New commands "mt set per-command {space,time,symtab} {on,off}".
340 * event-top.c: #include "maint.h".
341 * main.c: #include "maint.h".
342 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
343 timeval-utils.h, maint.h, cli/cli-setshow.h.
344 (per_command_time, per_command_space): New static globals.
345 (per_command_symtab): New static global.
346 (per_command_setlist, per_command_showlist): New static globals.
347 (struct cmd_stats): Move here from utils.c.
348 (set_per_command_time): Renamed from set_display_time in utils.c
349 and moved here. All callers updated.
350 (set_per_command_space): Renamed from set_display_space in utils.c
351 and moved here. All callers updated.
352 (count_symtabs_and_blocks): New function.
353 (report_command_stats): Moved here from utils.c. Add support for
354 printing symtab stats. Only print data if enabled before command
356 (make_command_stats_cleanup): Ditto.
357 (sert_per_command_cmd, show_per_command_cmd): New functions.
358 (_initialize_maint_cmds): Add new commands
359 mt set per-command {space,time,symtab} {on,off}.
361 * top.c: #include "maint.h".
362 * utils.c (reset_prompt_for_continue_wait_time): New function.
363 (get_prompt_for_continue_wait_time): New function.
364 * utils.h (reset_prompt_for_continue_wait_time): Declare
365 (get_prompt_for_continue_wait_time): Declare.
366 (make_command_stats_cleanup): Moved to maint.h.
367 (set_display_time, set_display_space): Moved to maint.h and renamed
368 to set_per_command_time, set_per_command_space.
369 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
370 parse_binary_operation and made non-static. Don't call error,
371 just return an error marker. All callers updated.
372 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
374 2013-03-21 Tom Tromey <tromey@redhat.com>
376 * symfile.c (alloc_section_addr_info): Update header. Don't set
377 'num_sections' field.
378 (build_section_addr_info_from_section_table): Set 'num_sections'.
379 (build_section_addr_info_from_bfd): Likewise.
380 (build_section_addr_info_from_objfile): Remove dead loop
382 (free_section_addr_info): Unconditionally call xfree.
383 (relative_addr_info_to_section_offsets, addrs_section_sort)
384 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
386 (syms_from_objfile_1): Remove dead 'if' condition. Check
388 (add_symbol_file_command): Set 'num_sections'.
389 * symfile-mem.c (symbol_file_add_from_memory): Set
391 * somread.c (som_symfile_offsets): Remove dead loop condition.
392 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
393 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
395 2013-03-21 Tom Tromey <tromey@redhat.com>
397 * tracepoint.h (decode_agent_options): Add 'trace_string'
399 * tracepoint.c (decode_agent_options): Add 'trace_string'
401 (validate_actionline): Update.
402 (collect_symbol): Add 'trace_string' argument.
403 (struct add_local_symbols_data) <trace_string>: New field.
404 (do_collect_symbol): Update.
405 (add_local_symbols): Add 'trace_string' argument.
406 (encode_actions_1): Update.
407 (trace_dump_actions): Update.
408 * dwarf2loc.c (access_memory): Update.
409 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
410 * ax-general.c (new_agent_expr): Update.
411 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
412 (gen_trace_for_return_address): Add argument.
413 (trace_kludge, trace_string_kludge): Remove.
414 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
415 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
416 (gen_trace_for_var): Add 'trace_string' argument.
417 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
418 (gen_printf, agent_eval_command_one): Update.
420 2013-03-21 Tom Tromey <tromey@redhat.com>
423 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
424 Handle FILENAME token.
426 2013-03-21 Tom Tromey <tromey@redhat.com>
428 * c-exp.y (YYPRINT): Define.
429 (c_print_token): New function.
431 2013-03-21 Tom Tromey <tromey@redhat.com>
433 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
435 2013-03-21 Yao Qi <yao@codesourcery.com>
437 * ctf.c: Include "gdb_stat.h".
438 [USE_WIN32API]: New macro 'mkdir'.
439 (ctf_start): Use permission bits macros if they are defined.
441 2013-03-20 Keith Seitz <keiths@redhat.com>
443 * breakpoint.h (struct breakpoint): Add comment to
444 extra_string indicating that this member is mallod'd.
445 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
447 2013-03-20 Pedro Alves <palves@redhat.com>
451 * cli/cli-setshow.c (do_set_command)
452 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
453 the result of parsing the command argument. Throw error if the
454 value is greater than UINT_MAX. Print the invalid value with
456 <var_integer, var_zinteger>: Use LONGEST for variable holding the
457 result of parsing the command argument. Throw error if the value
458 is greater than INT_MAX, not greater or equal. Also throw error
459 if the value is less than INT_MIN. Print the invalid value with
461 <var_zuinteger_unlimited>: Throw error if the value is greater
462 than INT_MAX, not greater or equal.
463 (do_show_command) <var_integer, var_zinteger,
464 var_zuinteger_unlimited>: Use %d for printing int, not %u.
466 2013-03-20 Tom Tromey <tromey@redhat.com>
468 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
470 * dwarf2read.c (read_func_scope): Remove old FIXME.
471 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
473 * findvar.c (symbol_read_needs_frame, default_read_var_value):
474 Unconditionally call via computed ops, if possible.
475 * printcmd.c (address_info): Unconditionally call via computed ops,
477 * stack.c (read_frame_arg): Unconditionally call via computed ops,
479 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
480 * tracepoint.c (scope_info): Unconditionally call via computed ops,
483 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
484 Tom Tromey <tromey@redhat.com>
487 * coffread.c (coff_register_index): New global.
488 (process_coff_symbol, coff_read_enum_type): Set
490 (_initialize_coffread): Initialize new global.
491 * dwarf2loc.c (locexpr_find_frame_base_location)
492 (dwarf2_block_frame_base_locexpr_funcs)
493 (loclist_find_frame_base_location)
494 (dwarf2_block_frame_base_loclist_funcs): New.
495 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
496 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
497 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
498 (dwarf2_block_frame_base_loclist_funcs): New.
499 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
500 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
502 (read_func_scope): Update.
503 (fixup_go_packaging, mark_common_block_symbol_computed)
504 (var_decode_location, new_symbol_full, dwarf2_const_value):
505 Set SYMBOL_ACLASS_INDEX.
506 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
507 (_initialize_dwarf2_read): Initialize new globals.
508 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
509 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
510 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
512 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
513 (_initialize_mdebugread): Initialize new globals.
514 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
515 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
516 (stab_register_index, stab_regparm_index): New globals.
517 (define_symbol, read_enum_type, common_block_end): Set
519 (_initialize_stabsread): Initialize new globals.
520 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
522 (MAX_SYMBOL_IMPLS): New define.
523 (register_symbol_computed_impl, register_symbol_block_impl)
524 (register_symbol_register_impl)
525 (initialize_ordinary_address_classes): New functions.
526 (_initialize_symtab): Call initialize_ordinary_address_classes.
527 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
528 (struct symbol_impl): New.
529 (SYMBOL_ACLASS_BITS): New define.
530 (struct symbol) <aclass, ops>: Remove fields.
531 <aclass_index>: New field.
532 (symbol_impls): Declare.
533 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
534 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
535 (register_symbol_computed_impl, register_symbol_block_impl)
536 (register_symbol_register_impl): Declare.
537 (struct symbol_computed_ops): Add location_has_loclist.
538 (struct symbol_block_ops): New.
539 (SYMBOL_BLOCK_OPS): New.
540 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
542 2013-03-20 Tom Tromey <tromey@redhat.com>
544 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
545 (print_partial_symbols, recursively_search_psymtabs): Use
548 2013-03-20 Pierre Muller <muller@sourceware.org>
550 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
551 addtion, subtraction, multiplication and division binary operator.
553 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
556 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
557 * bsd-kvm.c (bsd_kvm_close): Likewise.
558 * bsd-uthread.c (bsd_uthread_close): Likewise.
559 * corelow.c (core_close): Likewise.
560 (core_close_cleanup): Remove parameter quitting from a caller.
561 * event-top.c (async_disconnect): Likewise.
562 * exec.c (exec_close_1): Remove parameter quitting.
563 * go32-nat.c (go32_close): Likewise.
564 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
565 parameter quitting from a caller.
566 * mips-linux-nat.c (super_close): Remove parameter quitting from the
568 (mips_linux_close): Remove parameter quitting. Remove parameter
569 quitting from a caller.
570 * monitor.c (monitor_close): Remove parameter quitting.
571 * monitor.h (monitor_close): Likewise.
572 * record-btrace.c (record_btrace_close): Likewise.
573 * record-full.c (record_full_close): Likewise.
574 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
575 it also from fprintf_unfiltered.
576 * remote-mips.c (mips_close): Remove parameter quitting.
577 (mips_detach): Remove parameter quitting from a caller.
578 * remote-sim.c (gdbsim_close): Remove parameter quitting.
579 (gdbsim_close): Remove duplicate function comment. Remove parameter
580 quitting and remove it also from printf_filtered.
581 * remote.c (remote_close): Remove parameter quitting.
582 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
583 * target.c (update_current_target): Remove parameter int from to_close
585 (push_target, unpush_target, pop_target): Remove parameter quitting from
587 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
588 Remove parameter quitting from a caller.
589 (target_preopen): Remove parameter quitting from a caller.
590 (target_close): Remove parameter quitting. Remove parameter quitting
591 from a caller two times. Remove parameter quitting also from
593 * target.h (struct target_ops): Remove parameter quitting and as int
594 from fields to_xclose and to_close.
595 (extern struct target_ops current_target):
596 (target_close, pop_all_targets): Remove parameter quitting. Update the
598 (pop_all_targets_above): Remove parameter quitting.
599 * top.c (quit_target): Remove parameter quitting from a caller.
600 * tracepoint.c (tfile_close): Remove parameter quitting.
601 * windows-nat.c (windows_close): Remove parameter quitting.
603 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
605 * windows-nat.c (handle_output_debug_string): Replace call
606 to string_to_core_addr with call to strtoull.
608 2013-03-20 Yao Qi <yao@codesourcery.com>
610 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
611 and write it to CTF metadata.
613 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
615 * windows-nat.c (handle_output_debug_string): Change type of n to
616 SIZE_T to avoid crash on 64 bit systems.
618 2013-03-17 Eli Zaretskii <eliz@gnu.org>
620 * python/python-internal.h (HAVE_SNPRINTF)
621 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
622 about redefinition of snprintf by pyerrors.h.
624 2013-03-15 Steve Ellcey <sellcey@mips.com>
626 * remote-sim.c (sim_command_completer): Make char arguments const.
628 2013-03-15 Tom Tromey <tromey@redhat.com>
631 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
633 2013-03-14 Tom Tromey <tromey@redhat.com>
635 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
637 (get_file_crc): Move from symfile.c.
638 (gdb_bfd_crc): New function.
639 * gdb_bfd.h (gdb_bfd_crc): Declare.
640 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
641 * symfile.c (get_file_crc): Move to gdb_bfd.c.
642 (separate_debug_file_exists): Use gdb_bfd_crc.
644 2013-03-14 Tom Tromey <tromey@redhat.com>
646 * symfile.c (get_debug_link_info): Remove.
647 (find_separate_debug_file_by_debuglink): Use
648 bfd_get_debug_link_info.
650 2013-03-14 Tom Tromey <tromey@redhat.com>
652 * symtab.c (error_in_psymtab_expansion): New function.
653 (lookup_symbol_aux_quick)
654 (basic_lookup_transparent_type_quick): Remove "last resort"
655 code. Use error_in_psymtab_expansion.
657 2013-03-14 Doug Evans <dje@google.com>
658 Jan Kratochvil <jan.kratochvil@redhat.com>
660 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
661 any successful compare_filenames_for_search or FILENAME_CMP.
662 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
663 * symtab.c (iterate_over_some_symtabs): Likewise.
665 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
667 * source.c (print_source_lines_base): Make a local copy of
670 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
671 Jan Kratochvil <jan.kratochvil@redhat.com>
673 * source.c (print_source_lines_base): Suppress "file" for TUI.
675 2013-03-14 Keith Seitz <keiths@redhat.com>
676 Alan Matsuoka <alanm@redhat.com>
680 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
682 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
685 2013-03-14 Yao Qi <yao@codesourcery.com>
687 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
688 status to tfile if trace is stopped by command 'tstop'.
690 2013-03-14 Yao Qi <yao@codesourcery.com>
692 * tracepoint.c (tfile_write_status): Write trace notes and user
693 name into tfile if they are not NULL.
695 2013-03-14 Hui Zhu <hui@codesourcery.com>
696 Yao Qi <yao@codesourcery.com>
698 * Makefile.in (REMOTE_OBS): Add ctf.o.
700 (HFILES_NO_SRCDIR): Add ctf.h.
701 * ctf.c, ctf.h: New files.
702 * tracepoint.c: Include 'ctf.h'.
703 (collect_pseudocommand): Remove static.
704 (trace_save_command): Parse option "-ctf".
705 Produce different trace file writers per option.
706 Adjust output message.
707 (trace_save_tfile, trace_save_ctf): New.
708 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
709 * mi/mi-main.c: Include 'ctf.h'.
710 (mi_cmd_trace_save): Handle option '-ctf'. Call either
711 trace_save_tfile or trace_save_ctf.
712 * NEWS: Mention these changes.
714 2013-03-14 Yao Qi <yao@codesourcery.com>
716 * tracepoint.c (trace_file_writer_xfree): New.
717 (struct tfile_writer_data): New.
718 (tfile_dtor, tfile_can_target_save, tfile_start): New.
719 (tfile_write_header, tfile_write_regblock_type): New.
720 (tfile_write_status, tfile_write_uploaded_tsv): New.
721 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
722 (tfile_write_raw_data, (tfile_end): New.
723 (tfile_write_ops): New global variable.
724 (TRACE_WRITE_R_BLOCK): New macro.
725 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
726 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
727 (TRACE_WRITE_V_BLOCK): New macro.
728 (trace_save): Add extra one parameter WRITER. Make it static.
729 Use WRITER to writer trace.
730 (tfile_trace_file_writer_new): New.
731 (trace_save_command): Caller update.
732 (trace_save_tfile): Write trace data in TFILE format.
733 * tracepoint.h (struct trace_frame_write_ops): New.
734 (struct trace_file_write_ops): New.
735 (struct trace_file_writer): New.
736 (trace_save): Remove its declaration.
737 (trace_save_tfile): Declare it.
738 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
739 instead of trace_save.
741 2013-03-13 Pedro Alves <palves@redhat.com>
743 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
745 2013-03-13 Pedro Alves <palves@redhat.com>
747 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
749 * demangle.c (current_demangling_style_string): Make it const.
750 (set_demangling_command): Assert the demangling style is known.
751 Remove all handling of unknown styles. Set
752 'current_demangling_style_string' to an element of the
753 demangling_style_names array.
754 (set_demangling_style): Delete.
755 (_initialize_demangler): Set current_demangling_style_string to the
756 element of the demangling_style_names array that corresponds to
757 the default demangling style. Remove FIXME note. Don't call
758 set_demangling_style.
759 * gdb-demangle.h (set_demangling_style): Remove declaration.
761 2013-03-13 Pedro Alves <palves@redhat.com>
763 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
765 (ada_make_symbol_completion_list): Make "text0" parameter const.
766 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
767 * breakpoint.c (condition_completer): Make "text" and "word"
768 parameters const. Adjust.
769 (check_tracepoint_command): Adjust to validate_actionline
771 (catch_syscall_completer): Make "text" and "word" parameters
773 * cli/cli-cmds.c (show_user): Make "comname" local const.
774 (valid_command_p): Make "command" parameter const.
775 (alias_command): Make "alias_prefix" and "command_prefix" locals
777 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
778 (add_alias_cmd): Make "name" and "oldname" parameters const.
779 Adjust. No longer make copy of OLDNAME.
780 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
781 (add_setshow_cmd_full, add_setshow_enum_cmd)
782 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
783 (add_setshow_filename_cmd, add_setshow_string_cmd)
784 (add_setshow_string_noescape_cmd)
785 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
786 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
787 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
788 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
789 Make "name" parameter const.
790 (help_cmd): Rename "command" parameter to "arg". New const local
792 (find_cmd): Make "command" parameter const.
793 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
794 deprecated_cmd_warning prototype change.
795 (undef_cmd_error): Make "cmdtype" parameter const.
796 (lookup_cmd): Make "line" parameter const.
797 (deprecated_cmd_warning): Change type of "text" parameter to
798 pointer to const char, from pointer to pointer to char. Adjust.
799 (lookup_cmd_composition): Make "text" parameter const.
800 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
802 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
804 * cli/cli-script.c (validate_comname): Make "tem" local const.
805 (define_command): New const local "tem_c". Use it in calls to
807 (document_command): Make "tem" and "comfull" locals const.
808 (show_user_1): Make "prefix" and "name" parameters const.
809 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
811 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
812 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
813 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
814 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
815 (complete_on_enum, add_setshow_enum_cmd)
816 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
817 (add_setshow_filename_cmd, add_setshow_string_cmd)
818 (add_setshow_string_noescape_cmd)
819 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
820 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
821 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
822 Change prototypes, constifying strings.
823 * completer.c (noop_completer, filename_completer): Make "text"
824 and "prefix" parameters const.
825 (location_completer, expression_completer)
826 (complete_line_internal): Make "text" and "prefix" parameters
828 (command_completer, signal_completer): Make "text" and "prefix"
830 * completer.h (noop_completer, filename_completer)
831 (expression_completer, location_completer, command_completer)
832 (signal_completer): Change prototypes.
833 * corefile.c (complete_set_gnutarget): Make "text" and "word"
835 * cp-abi.c (cp_abi_completer): Likewise.
836 * expression.h (parse_expression_for_completion): Change
838 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
840 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
841 * infrun.c (handle_completer): Make "text" and "word" parameters
843 * interps.c (interpreter_completer): Make "text" and "word"
845 * language.h (struct language_defn)
846 <la_make_symbol_completion_list>: Make "text" and "word"
848 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
849 (parse_exp_in_context): Rename to ...
850 (parse_exp_in_context_1): ... this.
851 (parse_exp_in_context): Reimplement, with const hack from
853 (parse_expression_for_completion): Make "string" parameter const.
854 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
855 to pointer to const char. Adjust.
856 (print_command_1): Make "exp" parameter const.
857 (output_command): Rename to ...
858 (output_command_const): ... this. Make "exp" parameter const.
859 (output_command): Reimplement.
861 (display_command): Rename "exp" parameter to "arg". New "exp"
862 local, const version of "arg".
863 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
864 "cmd_name" local const.
865 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
867 (cmdpy_completer): Make "text" and "word" parameters const.
868 (gdbpy_parse_command_name): Make "prefix_text2" local const.
869 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
871 * remote.c (_initialize_remote): Make "cmd_name" local const.
872 * symtab.c (language_search_unquoted_string): Make "text" and "p"
873 parameters const. Adjust.
874 (completion_list_add_fields): Make "sym_text", "text" and "word"
876 (struct add_name_data) <sym_text, text, word>: Make fields const.
877 (default_make_symbol_completion_list_break_on): Make "text" and
878 "word" parameters const. Adjust locals.
879 (default_make_symbol_completion_list)
880 (make_symbol_completion_list, make_symbol_completion_type)
881 (make_symbol_completion_list_fn): Make "text" and "word"
883 (make_file_symbol_completion_list): Make "text", "word" and
884 "srcfile" parameters const. Adjust locals.
885 (add_filename_to_list): Make "text" and "word" parameters const.
886 (struct add_partial_filename_data) <text, word>: Make fields
888 (make_source_files_completion_list): Make "text" and "word"
890 * symtab.h (default_make_symbol_completion_list_break_on)
891 (default_make_symbol_completion_list, make_symbol_completion_list)
892 (make_symbol_completion_type enum type_code)
893 (make_symbol_completion_list_fn make_file_symbol_completion_list)
894 (make_source_files_completion_list): Change prototype.
895 * top.c (execute_command): Adjust to pass pointer to pointer to
896 const char to lookup_cmd, and to deprecated_cmd_warning prototype
898 (set_verbose): Make "cmdname" local const.
899 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
901 (validate_actionline): Make "line" parameter a pointer to const
903 (encode_actions_1): Make "action_exp" local const, and adjust.
904 (encode_actions): Adjust.
905 (replace_comma): Delete.
906 (trace_dump_actions): Make "action_exp" and "next_comma" locals
907 const, and adjust. Don't frob the action string while splitting
908 it at commas. Instead, make a copy of each split substring in
910 (trace_dump_command): Adjust to validate_actionline prototype
912 * tracepoint.h (decode_agent_options, decode_agent_options)
913 (encode_actions, validate_actionline): Change prototypes.
914 * valprint.h (output_command): Delete declaration.
915 (output_command_const): Declare.
916 * value.c (function_destroyer): Cast const away in xfree call.
918 2013-03-13 Pedro Alves <palves@redhat.com>
920 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
921 rather than casting 'const char * const *' to 'const char **'.
922 * ada-lex.l (processInt): Make "trailer" local const. Remove
923 'const char **' cast.
924 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
925 locals, and use those as strtol output pointer, instead than doing
926 invalid casts to from 'const char **' to 'char **'.
927 (_initialize_demangle): Remove cast.
928 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
929 locals, and use those as strtol output pointer, instead than doing
930 invalid casts to from 'const char **' to 'char **'.
931 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
933 * stap-probe.c (stap_parse_register_operand)
934 (stap_parse_single_operand): Likewise.
936 2013-03-13 Yao Qi <yao@codesourcery.com>
938 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
939 the last matched 'V' blcok in trace frame.
941 2013-03-12 Joel Brobecker <brobecker@adacore.com>
943 * NEWS: Create a new section for the next release branch.
944 Rename the section of the current branch, now that it has
947 2013-03-12 Joel Brobecker <brobecker@adacore.com>
949 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
950 * version.in: Bump version to 7.6.50.20130312-cvs.
952 2013-03-12 Keith Seitz <keiths@redhat.com>
954 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
955 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
956 Remove temporary copy of input string.
957 (mi_execute_command_wrapper): Make "cmd" const.
958 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
959 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
961 (mi_parse): Make "cmd" const.
963 * mi/mi-parse.h (mi_parse): Make "cmd" const.
965 2013-03-12 Keith Seitz <keiths@redhat.com>
967 * ada-lang.c (ada_read_renaming_var_value): Pass const
968 pointer to expression string to parse_exp_1.
969 (create_excep_cond_exprs): Likewise.
970 * ax-gdb.c (agent_eval_command_one): Likewise.
971 (maint_agent_printf_command): Likewise.
972 Constify much of the string handling/parsing.
973 * breakpoint.c (set_breakpoint_condition): Pass const
974 pointer to expression string to parse_exp_1.
975 (update_watchpoint): Likewise.
976 (parse_cmd_to_aexpr): Constify string handling.
977 Pass const pointer to parse_exp_1.
978 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
979 (find_condition_and_thread): Likewise.
981 (watch_command_1): Make "arg" const.
982 Constify string handling.
983 Copy the expression string instead of changing the input
985 (update_breakpoint_location): Pass const pointer to
987 * eval.c (parse_and_eval_address): Make "exp" const.
988 (parse_to_comma_and_eval): Make "expp" const.
989 (parse_and_eval): Make "exp" const.
990 * expression.h (parse_expression): Make argument const.
991 (parse_exp_1): Make first argument const.
992 * findcmd.c (parse_find_args): Treat "args" as const.
993 * linespec.c (parse_linespec): Pass const pointer to
994 linespec_expression_to_pc.
995 (linespec_expression_to_pc): Make "exp_ptr" const.
996 * parse.c (parse_exp_1): Make "stringptr" const.
997 Make a copy of the expression to pass to parse_exp_in_context until
998 this whole interface can be constified.
999 (parse_expression): Make "string" const.
1000 * printcmd.c (ui_printf): Treat "arg" as const.
1001 Handle const strings.
1002 * tracepoint.c (validate_actionline): Pass const pointer to
1003 all calls to parse_exp_1.
1004 (encode_actions_1): Likewise.
1005 * value.h (parse_to_comma_and_eval): Make argument const.
1006 (parse_and_eval_address): Likewise.
1007 (parse_and_eval): Likewise.
1008 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
1009 (varobj_set_value): Likewise.
1010 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
1011 constify string handling.
1012 Pass const pointers to parse_and_eval_address and
1013 parse_to_comman_and_eval.
1014 * cli/cli-utils.c (skip_to_space): Rename to ...
1015 (skip_to_space_const): ... this. Handle const strings.
1016 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
1017 skip_to_space_const.
1018 (skip_to_space_const): Declare.
1019 * common/format.c (parse_format_string): Make "arg" const.
1020 Handle const strings.
1021 * common/format.h (parse_format_string): Make "arg" const.
1022 * gdbserver/ax.c (ax_printf): Make "format" const.
1023 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
1024 of the expression string.
1026 2013-03-12 Hui Zhu <hui@codesourcery.com>
1028 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
1030 2013-03-12 Yao Qi <yao@codesourcery.com>
1031 Hui Zhu <hui@codesourcery.com>
1033 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
1034 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
1037 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
1039 * ada-lex.l (rules): Only recognize 'thread' as a
1040 delimiter when followed by numerals, as for c-exp.y.
1041 Use new rewind_to_char function to rewind the input for
1042 expression-delimiting tokens.
1043 (rewind_to_char): New function.
1045 2013-03-11 Pedro Alves <palves@redhat.com>
1046 Jan Kratochvil <jan.kratochvil@redhat.com>
1048 * configure: Regenerate.
1049 * configure.ac (check dynamic export flag): Link python test with
1052 2013-03-11 Doug Evans <dje@google.com>
1053 Keith Seitz <keiths@redhat.com>
1055 * linespec.c (find_linespec_symbols): Call find_function_symbols
1056 first, and then call lookup_prefix_sym/find_method.
1058 2013-03-11 Pedro Alves <palves@redhat.com>
1060 * charset.c (convert_between_encodings): Don't cast between
1061 different pointer to pointer types. Instead, make the 'inp' local
1062 be of the type iconv expects.
1063 (wchar_iterate): Don't cast between different pointer to pointer
1064 types. Instead, use new pointer local of the type iconv expects.
1065 * target.c (target_read_stralloc, target_fileio_read_stralloc):
1066 Add new local of type char pointer, and use it to get a
1067 char/string view of the byte buffer, instead of casting between
1068 pointer to pointer types.
1070 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
1072 * remote.c (remote_set_trace_buffer_size): Move != operator
1073 to the start of next line to fix an ARI warning.
1075 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1077 * NEWS: Add record changes.
1079 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1081 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
1082 the instruction history disassembly.
1083 * disasm.c (dump_insns): Omit the pc prefix, if requested.
1084 * disasm.h (DISASSEMBLY_OMIT_PC): New.
1086 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1088 * Makefile.in (SFILES): Add record-btrace.c
1089 (COMMON_OBS): Add record-btrace.o
1090 * record-btrace.c: New.
1091 * objfiles.c: Include btrace.h.
1092 (free_objfile): call btrace_free_objfile.
1094 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1096 * target.c (target_call_history, target_call_history_from,
1097 target_call_history_range): New.
1098 * target.h (target_ops) <to_call_history, to_call_history_from,
1099 to_call_history_range>: New fields.
1100 (target_call_history, target_call_history_from,
1101 target_call_history_range): New declaration.
1102 * record.c (get_call_history_modifiers, cmd_record_call_history,
1103 record_call_history_size): New.
1104 (_initialize_record): Add the "record function-call-history" command.
1105 Add "set/show record function-call-history-size" commands.
1106 * record.h (record_print_flag): New.
1108 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1110 * target.h (target_ops) <to_insn_history, to_insn_history_from,
1111 to_insn_history_range>: New fields.
1112 (target_insn_history): New.
1113 (target_insn_history_from): New.
1114 (target_insn_history_range): New.
1115 * target.c (target_insn_history): New.
1116 (target_insn_history_from): New.
1117 (target_insn_history_range): New.
1118 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
1119 (record_insn_history_size): New.
1120 (get_insn_number): New.
1121 (get_context_size): New.
1123 (get_insn_history_modifiers): New.
1124 (cmd_record_insn_history): New.
1125 (_initialize_record): Add "set/show record instruction-history-size"
1126 command. Add "record instruction-history" command.
1128 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1130 * record.h (record_disconnect): New.
1131 (record_detach): New.
1132 (record_mourn_inferior): New.
1134 * record-full.c (record_disconnect, record_detach,
1135 record_mourn_inferior, record_kill): Move to...
1136 * record.c: ...here.
1139 (record_unpush): New.
1140 (cmd_record_stop): Call record_stop. Replace unpush_target
1141 call with record_unpush call.
1142 (record_disconnect, record_detach): Assert that the target
1143 is of record stratum. Call record_unpush, record_stop, and
1145 (record_mourn_inferior, record_kill): Assert that the target
1146 is of record stratum. Call record_unpush and DEBUG.
1148 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1150 * record-full.h, record-full.c (record_memory_query): Rename
1152 (record_full_memory_query): ...this. Update all users.
1153 (record_arch_list_add_reg): Rename to ...
1154 (record_full_arch_list_add_reg): ...this. Update all users.
1155 (record_arch_list_add_mem): Rename to ...
1156 (record_full_arch_list_add_mem): ...this. Update all users.
1157 (record_arch_list_add_end): Rename to ...
1158 (record_full_arch_list_add_end): ...this. Update all users.
1159 (record_gdb_operation_disable_set): Rename to ...
1160 (record_full_gdb_operation_disable_set): ...this.
1163 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1165 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
1166 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
1167 (RECORD_IS_REPLAY): Renamed to ...
1168 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
1169 (RECORD_FILE_MAGIC): Renamed to ...
1170 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
1171 (record_mem_entry): Renamed to ...
1172 (record_full_mem_entry): ... this. Updated all users.
1173 (record_reg_entry): Renamed to ...
1174 (record_full_reg_entry): ... this. Updated all users.
1175 (record_end_entry): Renamed to ...
1176 (record_full_end_entry): ... this. Updated all users.
1177 (record_type) <record_end, record_reg, record_mem>: Renamed
1179 (record_full_type) <record_full_end, record_full_reg,
1180 record_full_mem>: ... this. Updated all users.
1181 (record_entry): Renamed to ...
1182 (record_full_entry): ... this. Updated all users.
1183 (record_core_buf_entry): Renamed to ...
1184 (record_full_core_buf_entry): ... this. Updated all users.
1185 (record_core_regbuf): Renamed to ...
1186 (record_full_core_regbuf): ... this. Updated all users.
1187 (record_core_start): Renamed to ...
1188 (record_full_core_start): ... this. Updated all users.
1189 (record_core_end): Renamed to ...
1190 (record_full_core_end): ... this. Updated all users.
1191 (record_core_buf_list): Renamed to ...
1192 (record_full_core_buf_list): ... this. Updated all users.
1193 (record_first): Renamed to ...
1194 (record_full_first): ... this. Updated all users.
1195 (record_list): Renamed to ...
1196 (record_full_list): ... this. Updated all users.
1197 (record_arch_list_head): Renamed to ...
1198 (record_full_arch_list_head): ... this. Updated all users.
1199 (record_arch_list_tail): Renamed to ...
1200 (record_full_arch_list_tail): ... this. Updated all users.
1201 (record_stop_at_limit): Renamed to ...
1202 (record_full_stop_at_limit): ... this. Updated all users.
1203 (record_insn_max_num): Renamed to ...
1204 (record_full_insn_max_num): ... this. Updated all users.
1205 (record_insn_num): Renamed to ...
1206 (record_full_insn_num): ... this. Updated all users.
1207 (record_insn_count): Renamed to ...
1208 (record_full_insn_count): ... this. Updated all users.
1209 (record_ops): Renamed to ...
1210 (record_full_ops): ... this. Updated all users.
1211 (record_core_ops): Renamed to ...
1212 (record_full_core_ops): ... this. Updated all users.
1213 (set_record_cmdlist): Renamed to ...
1214 (set_record_full_cmdlist): ... this. Updated all users.
1215 (show_record_cmdlist): Renamed to ...
1216 (show_record_full_cmdlist): ... this. Updated all users.
1217 (record_cmdlist): Renamed to ...
1218 (record_full_cmdlist): ... this. Updated all users.
1219 (record_beneath_to_resume_ops): Renamed to ...
1220 (record_full_beneath_to_resume_ops): ... this. Updated all users.
1221 (record_beneath_to_resume): Renamed to ...
1222 (record_full_beneath_to_resume): ... this. Updated all users.
1223 (record_beneath_to_wait_ops): Renamed to ...
1224 (record_full_beneath_to_wait_ops): ... this. Updated all users.
1225 (record_beneath_to_wait): Renamed to ...
1226 (record_full_beneath_to_wait): ... this. Updated all users.
1227 (record_beneath_to_store_registers_ops): Renamed to ...
1228 (record_full_beneath_to_store_registers_ops): ... this.
1230 (record_beneath_to_store_registers): Renamed to ...
1231 (record_full_beneath_to_store_registers): ... this.
1233 (record_beneath_to_xfer_partial_ops): Renamed to ...
1234 (record_full_beneath_to_xfer_partial_ops): ... this.
1236 (record_beneath_to_xfer_partial): Renamed to ...
1237 (record_full_beneath_to_xfer_partial): ... this.
1239 (record_beneath_to_insert_breakpoint): Renamed to ...
1240 (record_full_beneath_to_insert_breakpoint): ... this.
1242 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
1243 (record_full_beneath_to_stopped_by_watchpoint): ... this.
1245 (record_beneath_to_stopped_data_address): Renamed to ...
1246 (record_full_beneath_to_stopped_data_address): ... this.
1248 (record_beneath_to_async): Renamed to ...
1249 (record_full_beneath_to_async): ... this. Updated all users.
1250 (record_goto_insn): Renamed to ...
1251 (record_full_goto_insn): ... this. Updated all users.
1252 (record_save): Renamed to ...
1253 (record_full_save): ... this. Updated all users.
1254 (record_reg_alloc): Renamed to ...
1255 (record_full_reg_alloc): ... this. Updated all users.
1256 (record_reg_release): Renamed to ...
1257 (record_full_reg_release): ... this. Updated all users.
1258 (record_mem_alloc): Renamed to ...
1259 (record_full_mem_alloc): ... this. Updated all users.
1260 (record_mem_release): Renamed to ...
1261 (record_full_mem_release): ... this. Updated all users.
1262 (record_end_alloc): Renamed to ...
1263 (record_full_end_alloc): ... this. Updated all users.
1264 (record_end_release): Renamed to ...
1265 (record_full_end_release): ... this. Updated all users.
1266 (record_entry_release): Renamed to ...
1267 (record_full_entry_release): ... this. Updated all users.
1268 (record_list_release): Renamed to ...
1269 (record_full_list_release): ... this. Updated all users.
1270 (record_list_release_following): Renamed to ...
1271 (record_full_list_release_following): ... this.
1273 (record_list_release_first): Renamed to ...
1274 (record_full_list_release_first): ... this. Updated all users.
1275 (record_arch_list_add): Renamed to ...
1276 (record_full_arch_list_add): ... this. Updated all users.
1277 (record_get_loc): Renamed to ...
1278 (record_full_get_loc): ... this. Updated all users.
1279 (record_check_insn_num): Renamed to ...
1280 (record_full_check_insn_num): ... this. Updated all users.
1281 (record_arch_list_cleanups): Renamed to ...
1282 (record_full_arch_list_cleanups): ... this. Updated all users.
1283 (record_message): Renamed to ...
1284 (record_full_message): ... this. Updated all users.
1285 (record_message_wrapper): Renamed to ...
1286 (record_full_message_wrapper): ... this. Updated all users.
1287 (record_message_wrapper_safe): Renamed to ...
1288 (record_full_message_wrapper_safe): ... this. Updated all users.
1289 (record_gdb_operation_disable): Renamed to ...
1290 (record_full_gdb_operation_disable): ... this. Updated all users.
1291 (record_hw_watchpoint): Renamed to ...
1292 (record_full_hw_watchpoint): ... this. Updated all users.
1293 (record_exec_insn): Renamed to ...
1294 (record_full_exec_insn): ... this. Updated all users.
1295 (record_restore): Renamed to ...
1296 (record_full_restore): ... this. Updated all users.
1297 (record_async_inferior_event_token): Renamed to ...
1298 (record_full_async_inferior_event_token): ... this.
1300 (record_async_inferior_event_handler): Renamed to ...
1301 (record_full_async_inferior_event_handler): ... this.
1303 (record_core_open_1): Renamed to ...
1304 (record_full_core_open_1): ... this. Updated all users.
1305 (record_open_1): Renamed to ...
1306 (record_full_open_1): ... this. Updated all users.
1307 (record_open): Renamed to ...
1308 (record_full_open): ... this. Updated all users.
1309 (record_close): Renamed to ...
1310 (record_full_close): ... this. Updated all users.
1311 (record_resume_step): Renamed to ...
1312 (record_full_resume_step): ... this. Updated all users.
1313 (record_resumed): Renamed to ...
1314 (record_full_resumed): ... this. Updated all users.
1315 (record_execution_dir): Renamed to ...
1316 (record_full_execution_dir): ... this. Updated all users.
1317 (record_resume): Renamed to ...
1318 (record_full_resume): ... this. Updated all users.
1319 (record_get_sig): Renamed to ...
1320 (record_full_get_sig): ... this. Updated all users.
1321 (record_sig_handler): Renamed to ...
1322 (record_full_sig_handler): ... this. Updated all users.
1323 (record_wait_cleanups): Renamed to ...
1324 (record_full_wait_cleanups): ... this. Updated all users.
1325 (record_wait_1): Renamed to ...
1326 (record_full_wait_1): ... this. Updated all users.
1327 (record_wait): Renamed to ...
1328 (record_full_wait): ... this. Updated all users.
1329 (record_stopped_by_watchpoint): Renamed to ...
1330 (record_full_stopped_by_watchpoint): ... this. Updated all users.
1331 (record_disconnect): Renamed to ...
1332 (record_full_disconnect): ... this. Updated all users.
1333 (record_detach): Renamed to ...
1334 (record_full_detach): ... this. Updated all users.
1335 (record_mourn_inferior): Renamed to ...
1336 (record_full_mourn_inferior): ... this. Updated all users.
1337 (record_kill): Renamed to ...
1338 (record_full_kill): ... this. Updated all users.
1339 (record_stopped_data_address): Renamed to ...
1340 (record_full_stopped_data_address): ... this. Updated all users.
1341 (record_registers_change): Renamed to ...
1342 (record_full_registers_change): ... this. Updated all users.
1343 (record_store_registers): Renamed to ...
1344 (record_full_store_registers): ... this. Updated all users.
1345 (record_xfer_partial): Renamed to ...
1346 (record_full_xfer_partial): ... this. Updated all users.
1347 (record_breakpoint): Renamed to ...
1348 (record_full_breakpoint): ... this. Updated all users.
1349 (record_breakpoint_p): Renamed to ...
1350 (record_full_breakpoint_p): ... this. Updated all users.
1351 (record_breakpoints): Renamed to ...
1352 (record_full_breakpoints): ... this. Updated all users.
1353 (record_sync_record_breakpoints): Renamed to ...
1354 (record_full_sync_record_breakpoints): ... this.
1356 (record_init_record_breakpoints): Renamed to ...
1357 (record_full_init_record_breakpoints): ... this.
1359 (record_insert_breakpoint): Renamed to ...
1360 (record_full_insert_breakpoint): ... this. Updated all users.
1361 (record_remove_breakpoint): Renamed to ...
1362 (record_full_remove_breakpoint): ... this. Updated all users.
1363 (record_can_execute_reverse): Renamed to ...
1364 (record_full_can_execute_reverse): ... this. Updated all users.
1365 (record_get_bookmark): Renamed to ...
1366 (record_full_get_bookmark): ... this. Updated all users.
1367 (record_goto_bookmark): Renamed to ...
1368 (record_full_goto_bookmark): ... this. Updated all users.
1369 (record_async): Renamed to ...
1370 (record_full_async): ... this. Updated all users.
1371 (record_can_async_p): Renamed to ...
1372 (record_full_can_async_p): ... this. Updated all users.
1373 (record_is_async_p): Renamed to ...
1374 (record_full_is_async_p): ... this. Updated all users.
1375 (record_execution_direction): Renamed to ...
1376 (record_full_execution_direction): ... this. Updated all users.
1377 (record_info): Renamed to ...
1378 (record_full_info): ... this. Updated all users.
1379 (record_delete): Renamed to ...
1380 (record_full_delete): ... this. Updated all users.
1381 (record_is_replaying): Renamed to ...
1382 (record_full_is_replaying): ... this. Updated all users.
1383 (record_goto_entry): Renamed to ...
1384 (record_full_goto_entry): ... this. Updated all users.
1385 (record_goto_begin): Renamed to ...
1386 (record_full_goto_begin): ... this. Updated all users.
1387 (record_goto_end): Renamed to ...
1388 (record_full_goto_end): ... this. Updated all users.
1389 (record_goto): Renamed to ...
1390 (record_full_goto): ... this. Updated all users.
1391 (init_record_ops): Renamed to ...
1392 (init_record_full_ops): ... this. Updated all users.
1393 (record_core_resume): Renamed to ...
1394 (record_full_core_resume): ... this. Updated all users.
1395 (record_core_kill): Renamed to ...
1396 (record_full_core_kill): ... this. Updated all users.
1397 (record_core_fetch_registers): Renamed to ...
1398 (record_full_core_fetch_registers): ... this. Updated all users.
1399 (record_core_prepare_to_store): Renamed to ...
1400 (record_full_core_prepare_to_store): ... this. Updated all users.
1401 (record_core_store_registers): Renamed to ...
1402 (record_full_core_store_registers): ... this. Updated all users.
1403 (record_core_xfer_partial): Renamed to ...
1404 (record_full_core_xfer_partial): ... this. Updated all users.
1405 (record_core_insert_breakpoint): Renamed to ...
1406 (record_full_core_insert_breakpoint): ... this. Updated all users.
1407 (record_core_remove_breakpoint): Renamed to ...
1408 (record_full_core_remove_breakpoint): ... this. Updated all users.
1409 (record_core_has_execution): Renamed to ...
1410 (record_full_core_has_execution): ... this. Updated all users.
1411 (init_record_core_ops): Renamed to ...
1412 (init_record_full_core_ops): ... this. Updated all users.
1413 (cmd_record_restore): Renamed to ...
1414 (cmd_record_full_restore): ... this. Updated all users.
1415 (record_save_cleanups): Renamed to ...
1416 (record_full_save_cleanups): ... this. Updated all users.
1417 (cmd_record_start): Renamed to ...
1418 (cmd_record_full_start): ... this. Updated all users.
1419 (set_record_insn_max_num): Renamed to ...
1420 (set_record_full_insn_max_num): ... this. Updated all users.
1421 (set_record_command): Renamed to ...
1422 (set_record_full_command): ... this. Updated all users.
1423 (show_record_command): Renamed to ...
1424 (show_record_full_command): ... this. Updated all users.
1425 (_initialize_record): Renamed to ...
1426 (_initialize_record_full): ... this. Updated all users.
1428 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1430 * record.h: Split into this and ...
1431 * record-full.h: ... this.
1432 * record.c: Split into this and ...
1433 * record-full.c: ... this.
1434 * target.h (target_ops): Add new fields to_info_record,
1435 to_save_record, to_delete_record, to_record_is_replaying,
1436 to_goto_record_begin, to_goto_record_end, to_goto_record.
1437 (target_info_record): New.
1438 (target_save_record): New.
1439 (target_supports_delete_record): New.
1440 (target_delete_record): New.
1441 (target_record_is_replaying): New.
1442 (target_goto_record_begin): New.
1443 (target_goto_record_end): New.
1444 (target_goto_record): New.
1445 * target.c (target_info_record): New.
1446 (target_save_record): New.
1447 (target_supports_delete_record): New.
1448 (target_delete_record): New.
1449 (target_record_is_replaying): New.
1450 (target_goto_record_begin): New.
1451 (target_goto_record_end): New.
1452 (target_goto_record): New.
1453 * record.h: Declare struct cmd_list_element.
1454 (record_cmdlist): New declaration.
1455 (set_record_cmdlist): New declaration.
1456 (show_record_cmdlist): New declaration.
1457 (info_record_cmdlist): New declaration.
1458 (cmd_record_goto): New declaration.
1459 * record.c: Remove unnecessary includes.
1461 (cmd_record_goto): Remove declaration.
1462 (record_cmdlist): Now extern. Initialize.
1463 (set_record_cmdlist): Now extern. Initialize.
1464 (show_record_cmdlist): Now extern. Initialize.
1465 (info_record_cmdlist): Now extern. Initialize.
1466 (find_record_target): New.
1467 (require_record_target): New.
1468 (cmd_record_start): Update.
1469 (cmd_record_delete): Remove target-specific code.
1470 Call target_delete_record.
1471 (cmd_record_stop): Unpush any record target.
1472 (set_record_insn_max_num): Move to record-full.c
1473 (set_record_command): Add comment.
1474 (show_record_command): Add comment.
1475 (info_record_command): Update comment.
1476 Remove target-specific code.
1477 Call the record target's to_info_record.
1478 (cmd_record_start): New.
1479 (cmd_record_goto): Now extern.
1480 Remove target-specific code.
1481 Call target_goto_begin, target_goto_end, or target_goto.
1482 (_initialize_record): Move record target ops initialization to
1484 Change "record" command help text.
1485 Move "record restore", "record set", and "record show" commands to
1487 * Makefile.in (SFILES): Add record-full.c.
1488 (HFILES_NO_SRCDIR): Add record-full.h.
1489 (COMMON_OBS): Add record-full.o.
1490 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
1491 * arm-tdep.c: Include record-full.h.
1492 * i386-linux-tdep.c: Include record-full.h instead of record.h.
1493 * i386-tdep.c: Include record-full.h.
1494 * infrun.c: Include record-full.h.
1495 * linux-record.c: Include record-full.h.
1496 * moxie-tdep.c: Include record-full.h.
1497 * record-full.c: Include record-full.h.
1498 Change module comment.
1499 (set_record_full_cmdlist): New.
1500 (show_record_full_cmdlist): New.
1501 (record_full_cmdlist): New.
1502 (record_goto_insn): New declaration.
1503 (record_save): New declaration.
1504 (record_check_insn_num): Change query string.
1506 (record_delete): New.
1507 (record_is_replaying): New.
1508 (record_goto_entry): New.
1509 (record_goto_begin): New.
1510 (record_goto_end): New.
1512 (init_record_ops): Update.
1513 (init_record_core_ops): Update.
1514 (cmd_record_save): Rename to record_save. Remove target and arg checks.
1515 (cmd_record_start): New.
1516 (set_record_insn_max_num): Moved from record.c
1517 (set_record_full_command): New.
1518 (show_record_full_command): New.
1519 (_initialize_record_full): New.
1521 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1523 * target.h (add_deprecated_target_alias): New.
1524 * target.c (add_deprecated_target_alias): New.
1526 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1528 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
1530 (linux_supports_btrace): Add kernel and
1532 (kernel_supports_btrace): New function.
1533 (cpu_supports_btrace): New function.
1534 (intel_supports_btrace): New function.
1536 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1538 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
1539 * remote.c: Include btrace.h.
1540 (struct btrace_target_info): New struct.
1541 (remote_supports_btrace): New function.
1542 (send_Qbtrace): New function.
1543 (remote_enable_btrace): New function.
1544 (remote_disable_btrace): New function.
1545 (remote_teardown_btrace): New function.
1546 (remote_read_btrace): New function.
1547 (init_remote_ops): Add btrace ops.
1548 (enum <unnamed>): Add btrace packets.
1549 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
1550 (_initialize_remote): Add packet configuration for branch tracing.
1552 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1554 * features/btrace.dtd: New file.
1555 * Makefile.in (XMLFILES): Add btrace.dtd.
1556 * btrace.h (parse_xml_btrace): New declaration.
1557 * btrace.c: Include xml-support.h.
1558 (parse_xml_btrace): New function.
1559 (parse_xml_btrace_block): New function.
1560 (block_attributes): New struct.
1561 (btrace_attributes): New struct.
1562 (btrace_children): New struct.
1563 (btrace_elements): New struct.
1565 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1567 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
1568 (amd64_linux_enable_btrace): New.
1569 (amd64_linux_disable_btrace): New.
1570 (amd64_linux_teardown_btrace): New.
1571 (_initialize_amd64_linux_nat): Initialize btrace ops.
1572 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
1573 (i386_linux_enable_btrace): New.
1574 (i386_linux_disable_btrace): New.
1575 (i386_linux_teardown_btrace): New.
1576 (_initialize_i386_linux_nat): Initialize btrace ops.
1577 * config/i386/linux.mh: Add linux-btrace.o.
1578 * config/i386/linux64.mh: Add linux-btrace.o.
1580 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1582 * common/linux_btrace.h: New file.
1583 * common/linux_btrace.c: New file.
1584 * Makefile.in (SFILES): Add btrace.c.
1585 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
1586 (COMMON_OBS): Add btrace.o.
1587 (linux-btrace.o): New rule.
1589 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1591 * target.h: Include btrace.h.
1592 (struct target_ops) <to_supports_btrace, to_enable_btrace,
1593 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
1594 * target.c (target_supports_btrace): New function.
1595 (target_enable_btrace): New function.
1596 (target_disable_btrace): New function.
1597 (target_teardown_btrace): New function.
1598 (target_read_btrace): New function.
1599 * btrace.h: New file.
1600 * btrace.c: New file.
1601 * Makefile.in: Add btrace.c.
1602 * gdbthread.h: Include btrace.h.
1603 (struct thread_info): Add btrace field.
1604 * thread.c: Include btrace.h.
1605 (clear_thread_inferior_resources): Call target_teardown_btrace.
1606 * common/btrace-common.h: New file.
1608 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1610 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
1611 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
1612 kill_status to outer block.
1614 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1616 Fix entry-values if the callee called a noreturn function.
1617 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
1618 get_frame_address_in_block. Add new comment.
1620 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1622 Fix entry-values in C++ across CUs.
1623 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
1624 lookup_minimal_symbol. Add a comment.
1626 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
1629 2013-03-08 Yao Qi <yao@codesourcery.com>
1631 * tracepoint.c (_initialize_tracepoint): Indent the code.
1633 2013-03-08 Pedro Alves <palves@redhat.com>
1635 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
1636 (parse_find_args, find_command): Change type of pattern buffer
1637 locals to 'gdb_byte *'.
1639 2013-03-08 Stan Shebs <stan@codesourcery.com>
1640 Hafiz Abid Qadeer <abidh@codesourcery.com>
1642 * NEWS: Mention set and show trace-buffer-size commands.
1644 * target.h (struct target_ops): New method
1645 to_set_trace_buffer_size.
1646 (target_set_trace_buffer_size): New macro.
1647 * target.c (update_current_target): Set up new method.
1648 * tracepoint.c (trace_buffer_size): New global.
1649 (start_tracing): Send it to the target.
1650 (set_trace_buffer_size): New function.
1651 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
1652 * remote.c (remote_set_trace_buffer_size): New function.
1653 (_initialize_remote): Use it.
1654 (QTBuffer:size) New remote command.
1655 (PACKET_QTBuffer_size): New enum.
1656 (remote_protocol_features): Add an entry for
1657 PACKET_QTBuffer_size.
1659 2013-03-08 Tom Tromey <tromey@redhat.com>
1661 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
1664 2013-03-07 Pedro Alves <palves@redhat.com>
1666 * target.c (target_read_stralloc, target_fileio_read_alloc):
1667 *Cast pointer to 'gdb_byte *' in target call.
1669 2013-03-07 Pedro Alves <palves@redhat.com>
1671 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
1674 2013-03-07 Keith Seitz <keiths@redhat.com>
1676 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
1677 (trace_pass_command): Likewise.
1678 * cli/cli-cmds.c: Include cli/cli-utils.h.
1679 (source_command): Use skip-spaces.
1680 (disassemble_command): Likewise.
1681 * findcmd.c: Include cli/cli-utils.h.
1682 (parse_find_args): Use skip_spaces.
1683 * go32-nat.c: Include cli/cli-utils.h.
1684 (go32_sldt): Use skip_spaces.
1685 (go32_sgdt): Likewise.
1686 (go32_sidt): Likewise.
1687 (go32_pde): Likewise.
1688 (go32_pte): Likewise.
1689 (go32_pte_for_address): Likewise.
1690 * infcmd.c: Include cli/cli-utils.h.
1691 (registers_info): Use skip_spaces.
1692 * linux-tdep.c (read_mapping): Use skip_spaces_const.
1693 (linux_info_proc): Likewise.
1694 * linux-thread-db.c: Include cli/cli-utils.h.
1695 (info_auto_load_libthread_db): Use skip_spaces_const.
1696 * m32r-rom.c: Include cli/cli-utils.h.
1697 (m32r_upload_command): Use skip_spaces.
1698 * maint.c: Include cli/cli-utils.h.
1699 (maintenance_translate_address): Use skip_spaces.
1700 * mi/mi-parse.c: Include cli/cli-utils.h.
1701 (mi_parse_argv): Use skip_spaces.
1702 (mi_parse): Likewise.
1703 * minsyms.c: Include cli/cli-utils.h.
1704 (msymbol_hash_iw): Use skip_spaces_const.
1705 * objc-lang.c: Include cli/cli-utils.h.
1706 (parse_selector): Use skip_spaces.
1707 (parse_method): Likewise.
1708 * python/python.c: Include cli/cli-utils.h.
1709 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
1710 (python_command)[HAVE_PYTHON]: Likewise.
1711 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
1712 * remote-m32r-sdi.c: Include cli/cli-utils.h.
1713 (m32r_load): Use skip_spaces.
1714 * serial.c: Include cli/cli-utils.h.
1715 (serial_open): Use skip_spaces_const.
1716 * stack.c: Include cli/cli-utils.h.
1717 (parse_frame_specification_1): Use skip_spaces_const.
1718 * symfile.c: Include cli/cli-utils.h.
1719 (set_ext_lang_command): Use skip_spaces.
1720 * symtab.c: Include cli/cli-utils.h.
1721 (rbreak_command): Use skip_spaces.
1722 * thread.c (thread_name_command): Use skip_spaces.
1723 * tracepoint.c (validate_actionline): Use skip_spaces.
1724 (encode_actions_1): Likewise.
1725 (trace_find_range_command): Likewise.
1726 (trace_find_outside_command): Likewise.
1727 (trace_dump_actions): Likewise.
1729 2013-03-07 Pedro Alves <palves@redhat.com>
1731 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
1732 * expprint.c (print_subexp_standard): Likewise.
1733 * utils.c (host_char_to_target): Likewise.
1734 * valprint.c (generic_emit_char, generic_printstr): Likewise.
1735 * varobj.c (value_get_print_value): Change type of local to char*.
1736 Cast it gdb_byte * in call to language printer.
1738 2013-03-07 Pedro Alves <palves@redhat.com>
1740 * charset.c (struct wchar_iterator) <input>: Change type to 'const
1742 (make_wchar_iterator): Remove cast to char*.
1743 (wchar_iterate): Change type of local.
1745 2013-03-07 Pedro Alves <palves@redhat.com>
1747 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
1748 for 'regcache->register_status'.
1750 2013-03-07 Pedro Alves <palves@redhat.com>
1752 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
1755 2013-03-07 Pedro Alves <palves@redhat.com>
1757 * stap-probe.c (handle_stap_probe): Add cast to char*.
1759 2013-03-07 Pedro Alves <palves@redhat.com>
1761 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
1762 RECORD_MSGRCV>: Pass a signed variable to
1763 regcache_raw_read_signed, instead of an unsigned one.
1765 2013-03-07 Pedro Alves <palves@redhat.com>
1767 * remote-notif.c (notif_debug): Change type to int.
1768 * remote-notif.h (notif_debug): Likewise.
1770 2013-03-07 Pedro Alves <palves@redhat.com>
1772 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
1774 2013-03-07 Pedro Alves <palves@redhat.com>
1776 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
1777 * remote.h (hex2bin, bin2hex): ... here.
1778 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
1780 2013-03-07 Eli Zaretskii <eliz@gnu.org>
1782 * utils.c (initialize_utils): Improve doc strings of "set/show
1783 width", "set/show height", and "set/show pagination".
1785 2013-03-06 Keith Seitz <keiths@redhat.com>
1787 * ax-gdb.c (gen_printf): Make FORMAT const.
1788 * ax-gdb.h (gen_printf): Likewise.
1789 * ax-general.c (ax_string): Make STR const.
1790 * ax.h (ax_string): Likewise.
1792 2013-03-06 Doug Evans <dje@google.com>
1794 * elfread.c (elf_symfile_read): Move debugging printf to more
1797 2013-03-06 Pedro Alves <palves@redhat.com>
1799 * python/py-utils.c (target_string_to_unicode): Delete function.
1800 * python/python-internal.h (target_string_to_unicode): Delete
1803 2013-03-06 Pierre Muller <muller@sourceware.org>
1805 * linespec.c (get_current_search_block): ARI fix, use (void)
1806 for empty parameter list.
1808 2013-03-05 Doug Evans <dje@google.com>
1810 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
1811 of old ada_lookup_symbol_list. In !full_search case, don't
1813 (ada_lookup_symbol_list): Delete arg full_search, all callers
1814 updated. Call ada_lookup_symbol_list_worker.
1815 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
1816 * ada-lang.h (ada_lookup_symbol_list): Update.
1817 * language.h (language_defn): Update comment for
1818 la_iterate_over_symbols.
1819 * linespec.c (iterate_over_file_blocks): New function.
1820 (iterate_over_all_matching_symtabs): Call it.
1821 (lookup_prefix_sym): Ditto.
1822 (get_current_search_block): New function.
1823 (get_search_block): Delete.
1824 (find_label_symbols): Call get_current_search_block.
1825 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
1826 * symtab.c (iterate_over_symbols): Don't search superblocks.
1828 2013-03-05 Yao Qi <yao@codesourcery.com>
1830 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
1831 parameter VAR's type from "unsigned int" to "int".
1832 * command.h (var_zuinteger_unlimited): Update its comments.
1833 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
1835 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
1837 * NEWS: Mention new target x86_64-*-cygwin*.
1839 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
1841 * configure.host: Add x86_64-*-cygwin* as host.
1842 * configure.tgt: Add x86_64-*-cygwin* as target.
1843 * config/i386/cygwin64.mh: New file.
1845 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1847 * linespec.c (decode_line_2): Fix duplicate request off by two message.
1849 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1851 * linespec.c (struct linespec_canonical_name): New.
1852 (struct linespec_state): Change canonical_names type to it.
1853 (add_sal_to_sals): Change variable canonical_name to canonical. Change
1854 xrealloc element size. Initialize the different CANONICAL fields.
1855 (canonical_to_fullform): New.
1856 (filter_results): Use it. Add variables canonical, fullform and
1858 (struct decode_line_2_item, decode_line_2_compare_items): New.
1859 (decode_line_2): Remove variables iter and item_names, add variables
1860 items and items_count. Modify the code for these new variables.
1862 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
1864 * coff-pe-read.c (read_pe_exported_syms): Don't return without
1867 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
1869 * tracepoint.c (build_traceframe_info): Add code for byte order.
1871 2013-03-02 Kevin Buettner <kevinb@redhat.com>
1873 * v850-tdep.c: (v850e2_register_name): Revise system register
1874 names to match current V850E2M architecture specifications.
1875 Update register number enum comments too.
1877 2013-03-01 Jiong Wang <jiwang@tilera.com>
1878 Pedro Alves <palves@redhat.com>
1880 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
1882 (tilegx_skip_prologue): Limit prologue analysis to section end.
1884 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1886 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
1889 2013-03-01 Pedro Alves <palves@redhat.com>
1891 Use gdb_byte for bytes from the program being debugged.
1893 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
1894 Change type of local 'buf' to gdb_byte.
1895 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
1896 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1897 * cris-tdep.c (cris_sigcontext_addr)
1898 (cris_sigtramp_frame_unwind_cache): Likewise.
1899 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
1900 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
1902 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
1903 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
1904 (hppa32_hpux_search_dummy_call_sequence)
1905 (hppa_hpux_supply_save_state): Likewise.
1906 * hppa-linux-tdep.c (insns_match_pattern)
1907 (hppa_linux_find_global_pointer): Likewise.
1908 * hppa-tdep.c (hppa_in_function_epilogue_p)
1909 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
1910 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
1911 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
1912 (i386fbsd_collect_uthread): Likewise.
1913 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
1914 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
1915 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
1916 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
1917 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
1918 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
1919 (ia64_libunwind_frame_prev_register)
1920 (ia64_libunwind_sigtramp_frame_this_id)
1921 (ia64_find_global_pointer_from_dynamic_section)
1922 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
1923 (ia64_unwind_pc): Likewise.
1924 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
1925 * m68hc11-tdep.c (m68hc11_push_dummy_call)
1926 (m68hc11_extract_return_value): Likewise.
1927 * m68klinux-nat.c (fetch_register, store_register): Likewise.
1928 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
1929 (mep_get_insn, mep_push_dummy_call): Likewise.
1930 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
1931 (mips_linux_in_dynsym_stub): Likewise.
1932 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
1933 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
1934 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
1936 * remote-mips.c (mips_set_register): Likewise.
1937 * remote-sim.c (gdbsim_fetch_register): Likewise.
1938 * score-tdep.c (score7_fetch_inst): Change type of parameter
1939 'memblock' and local 'buf' to gdb_byte.
1940 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
1941 Change type of local 'buf' to gdb_byte. Adjust.
1942 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
1944 (score7_analyze_prologue): Change type of 'memblock' and
1945 'memblock_ptr' locals to gdb_byte*.
1946 * sh64-tdep.c (sh64_extract_return_value)
1947 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
1948 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
1949 * solib-pa64.c (pa64_solib_create_inferior_hook)
1950 (pa64_open_symbol_file_object): Remove local 'buf'.
1951 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
1952 (som_open_symbol_file_object): Likewise.
1953 * solib-spu.c (spu_current_sos): Likewise.
1954 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
1955 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
1956 (spu_store_registers): Likewise.
1957 * target.c (debug_print_register): Likewise.
1958 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
1959 * xstormy16-tdep.c (xstormy16_store_return_value)
1960 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
1961 (xstormy16_find_jmp_table_entry): Likewise.
1963 2013-03-01 Jiong Wang <jiwang@tilera.com>
1965 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
1966 (tilegx_gdbarch_init): Install it.
1968 2013-02-28 Tom Tromey <tromey@redhat.com>
1970 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
1973 2013-02-28 Doug Evans <dje@google.com>
1975 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
1976 * python/python.c (gdbpy_find_pc_line): Ditto.
1978 2013-02-28 Tom Tromey <tromey@redhat.com>
1980 * contrib/excheck.py: New file.
1981 * contrib/exsummary.py: New file.
1982 * contrib/gcc-with-excheck: New file.
1984 2013-02-28 Tom Tromey <tromey@redhat.com>
1986 * python/python.c (gdbpy_print_stack): Call begin_line and
1987 fprintf_filtered inside TRY_CATCH.
1989 2013-02-28 Tom Tromey <tromey@redhat.com>
1991 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
1994 2013-02-28 Tom Tromey <tromey@redhat.com>
1996 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
1997 frame_object_to_frame_info inside TRY_CATCH.
1999 2013-02-28 Tom Tromey <tromey@redhat.com>
2001 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
2004 2013-02-28 Tom Tromey <tromey@redhat.com>
2006 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
2008 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
2010 * windows-nat.c: Throughout, fix format strings and casts of
2011 printf-like functions to avoid type related warnings on all
2013 (handle_output_debug_string): Fetch context information address
2014 from debug string using string_to_core_addr.
2016 2013-02-27 Jiong Wang <jiwang@tilera.com>
2018 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
2019 * regformats/reg-tilegx32.dat: New.
2021 2013-02-27 Jiong Wang <jiwang@tilera.com>
2023 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
2025 2013-02-27 Jiong Wang <jiwang@tilera.com>
2027 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
2029 2013-02-27 Yao Qi <yao@codesourcery.com>
2030 Pedro Alves <palves@redhat.com>
2032 * tracepoint.c (tfile_trace_find): For tfind
2033 pc/tp/range/outside, look for the next trace frame instead of
2034 always starting from frame 0.
2036 2013-02-26 Anthony Green <green@moxielogic.com>
2038 * configure.tgt: Add support for moxie-*-rtems* target.
2040 2013-02-25 Pedro Alves <palves@redhat.com>
2042 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
2045 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
2047 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
2048 if $fp is used as the virtual frame pointer.
2050 2013-02-23 Alan Modra <amodra@gmail.com>
2052 * elfread.c (elf_symtab_read): Do not use udata.p here to find
2054 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
2055 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
2056 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
2057 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
2059 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2062 * elfread.c (build_id_bfd_get): Make the return type const.
2063 (build_id_verify): Make the check parameter const.
2064 (build_id_to_debug_filename): Make the build_id parameter and variable
2066 (find_separate_debug_file_by_buildid): Make the variable build_id const.
2068 2013-02-21 Alan Modra <amodra@gmail.com>
2070 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
2072 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
2074 Add a new method 'disassemble' to gdb.Architecture class.
2075 * python/py-arch.c (archpy_disassmble): Implementation of the
2076 new method gdb.Architecture.disassemble.
2077 (arch_object_methods): Add entry for the new method.
2079 2013-02-20 Jiong Wang <jiwang@tilera.com>
2081 * MAINTAINERS (Write After Approval): Add myself to the list.
2083 2013-02-19 Pedro Alves <palves@redhat.com>
2085 Garbage collect 'struct monitor_ops'::load_routine.
2087 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
2088 * monitor.c (monitor_load): No longer call
2089 current_monitor->load_routine.
2090 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
2091 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
2092 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
2094 2013-02-19 Pedro Alves <palves@redhat.com>
2098 Harmonize with generic_load.
2100 * monitor.c: Include "readline/readline.h".
2101 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
2102 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
2103 long/strtol for the 'load_offset' local. Error out if no argument
2104 is given or if too many arguments are given. Tilde expand the
2105 passed in file name.
2107 2013-02-19 Kai Tietz <ktietz@redhat.com>
2110 * symfile.c (load_section_data): Change type of load_offset
2112 (generic_load): User strtoulst instead of strtoul for conversion
2115 2013-02-19 Jiong Wang <jiwang@tilera.com>
2117 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
2118 for return address, "lr" register, saved on stack.
2119 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
2120 after we invoke tilegx_analyze_prologue.
2122 2013-02-19 Jiong Wang <jiwang@tilera.com>
2124 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
2126 2013-02-19 Jiong Wang <jiwang@tilera.com>
2128 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
2130 2013-02-19 Jiong Wang <jiwang@tilera.com>
2132 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
2133 (tilegx_write_pc): New function.
2134 (tilegx_cannot_reference_register): Return zero if REGNO
2135 is TILEGX_FAULTNUM_REGNUM.
2136 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
2137 (tilegx_register_name): Add handling of "faultnum" register.
2138 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
2139 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
2140 handling of TILEGX_FAULTNUM_REGNUM.
2141 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
2143 2013-02-19 Jiong Wang <jiwang@tilera.com>
2145 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
2146 should be aligned to 64bit.
2148 2013-02-19 Kai Tietz <ktietz@redhat.com>
2150 * windows-nat.c (windows_xfer_memory): Fix debug-output
2153 2013-02-19 Lei Liu <lei.liu2@windriver.com>
2155 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
2156 Don't check DSP register number if HAVE_DSP is not set.
2158 2013-02-19 Alan Modra <amodra@gmail.com>
2160 * elfread.c (struct build_id): Delete. Use struct elf_build_id
2161 throughout file instead.
2162 (build_id_bfd_get): Update to use new elf_tdata build_id field.
2163 Don't xmalloc return value.
2164 (build_id_verify): Similarly. Don't xfree.
2165 (build_id_to_debug_filename): Update.
2166 (find_separate_debug_file_by_buildid): Update, don't xfree.
2168 2013-02-18 Tom Tromey <tromey@redhat.com>
2171 * dwarf2read.c (read_subrange_type): Use result of
2174 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
2176 * frame.c: Remove one extra white space after #include
2179 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2181 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
2183 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2185 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
2186 and dir commands into an if block.
2188 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
2190 * python/py-breakpoint (struct pybp_code): Use int instead of
2193 2013-02-15 Pedro Alves <pedro@codesourcery.com>
2194 Hafiz Abid Qadeer <abidh@codesourcery.com>
2196 * NEWS: Mention new field "trace-file".
2197 * tracepoint.c (trace_status_mi): Output "trace-file" field.
2198 (tfile_open): Record the trace file's filename in the trace
2200 (tfile_files_info): Mention the name of the trace file.
2201 Check the "filename" field explicitely.
2202 (trace_status_command): Explicitely check "filename" field.
2203 (trace_find_command): Ditto.
2204 (trace_find_pc_command): Ditto.
2205 (trace_find_tracepoint_command): Ditto.
2206 (trace_find_line_command): Ditto.
2207 (trace_find_range_command): Ditto.
2208 (trace_find_outside_command): Ditto.
2209 * tracepoint.h (struct trace_status) <from_file>: Rename it
2210 to "filename" and make it hold the trace file's filename
2211 instead of a boolean.
2212 * remote.c (remote_get_trace_status): Initialize "filename"
2213 field with NULL instead of 0.
2215 2013-02-15 Yao Qi <yao@codesourcery.com>
2217 * remote.c: Fix a typo.
2219 2013-02-14 Pierre Muller <muller@sourceware.org>
2221 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
2223 2013-02-14 Pedro Alves <palves@redhat.com>
2225 * utils.c (savestring): Don't #undef it. Move function to
2226 common/common-utils.c.
2227 * common/common-utils.c: Include gdb_string.h.
2228 (savestring): Move here from utils.c.
2229 * common/common-utils.h (savestring): Declare.
2231 2013-02-14 Pedro Alves <palves@redhat.com>
2233 * utils.c (savestring): Rename parameter 'size' to 'len'.
2235 2013-02-14 Pedro Alves <palves@redhat.com>
2236 Yufeng Zhang <yufeng.zhang@arm.com>
2238 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
2239 (aarch64_inferior_data, struct aarch64_inferior_data):
2241 (struct aarch64_process_info): New.
2242 (aarch64_process_list): New global.
2243 (aarch64_find_process_pid, aarch64_add_process)
2244 (aarch64_process_info_get): New functions.
2245 (aarch64_inferior_data_get): Delete.
2246 (aarch64_process_info_get): New function.
2247 (aarch64_forget_process): New function.
2248 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
2249 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
2250 aarch64_get_debug_reg_state.
2251 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
2252 instead of linux_nat_iterate_watchpoint_lwps.
2253 (aarch64_linux_new_fork): New function.
2254 (aarch64_linux_child_post_startup_inferior): Use
2255 aarch64_forget_process instead of aarch64_init_debug_reg_state.
2256 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
2257 (aarch64_linux_remove_hw_breakpoint)
2258 (aarch64_handle_aligned_watchpoint)
2259 (aarch64_handle_unaligned_watchpoint)
2260 (aarch64_linux_insert_watchpoint)
2261 (aarch64_linux_remove_watchpoint)
2262 (aarch64_linux_stopped_data_address): Adjust to pass the current
2263 process id to aarch64_debug_reg_state.
2264 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
2265 linux_nat_new_fork hook, and aarch64_forget_process as
2266 linux_nat_forget_process hook; remove the call to
2267 register_inferior_data_with_cleanup.
2269 2013-02-14 Pedro Alves <palves@redhat.com>
2271 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
2272 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
2275 2013-02-14 Pedro Alves <pedro@codesourcery.com>
2276 Hafiz Abid Qadeer <abidh@codesourcery.com>
2278 * tracepoint.h (validate_trace_state_variable_name): Declare.
2279 * tracepoint.c (validate_trace_state_variable_name): New.
2280 (trace_variable_command): Parse the trace state variable's name
2281 without using parse_expression. Do several validations.
2282 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
2283 trace state variable's name with parse_expression. Validate it.
2285 2013-02-14 Yao Qi <yao@codesourcery.com>
2287 * infcmd.c (breakpoint_proceeded): Remove it.
2289 2013-02-14 Yao Qi <yao@codesourcery.com>
2291 * tracepoint.c (end_actions_pseudocommand): Make it static.
2292 (while_stepping_pseudocommand): Likewise.
2293 * tracepoint.h (end_actions_pseudocommand): Remove the
2295 (while_stepping_pseudocommand): Likewise.
2297 2013-02-14 Yao Qi <yao@codesourcery.com>
2299 * cli/cli-decode.c (help_cmd): Remove the declaration of
2301 (help_all): Likewise.
2303 2013-02-13 Pedro Alves <palves@redhat.com>
2305 * amd64-linux-nat.c (update_debug_registers_callback):
2307 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
2309 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
2310 i386_debug_reg_state.
2311 (amd64_linux_new_fork): New function.
2312 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
2313 linux_nat_new_fork hook, and i386_forget_process as
2314 linux_nat_forget_process hook.
2315 * i386-linux-nat.c (update_debug_registers_callback):
2317 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
2319 (i386_linux_prepare_to_resume): Pass the lwp's pid to
2320 i386_debug_reg_state.
2321 (i386_linux_new_fork): New function.
2322 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
2323 linux_nat_new_fork hook, and i386_forget_process as
2324 linux_nat_forget_process hook.
2325 * i386-nat.c (i386_init_dregs): Delete.
2326 (i386_inferior_data, struct i386_inferior_data):
2328 (struct i386_process_info): New.
2329 (i386_process_list): New global.
2330 (i386_find_process_pid, i386_add_process, i386_process_info_get):
2332 (i386_inferior_data_get): Delete.
2333 (i386_process_info_get): New function.
2334 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
2335 (i386_forget_process): New function.
2336 (i386_cleanup_dregs): Rewrite.
2337 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
2338 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
2339 (i386_stopped_data_address, i386_insert_hw_breakpoint)
2340 (i386_remove_hw_breakpoint): Adjust to pass the current process id
2341 to i386_debug_reg_state.
2342 (i386_use_watchpoints): Don't register inferior data.
2343 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
2345 (i386_forget_process): Declare.
2346 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
2347 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
2349 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
2350 (add_initial_lwp): New, factored out from ...
2351 (add_lwp): ... this. Don't check the number of lwps before
2352 calling linux_nat_new_thread.
2353 (linux_nat_iterate_watchpoint_lwps): Delete.
2354 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
2355 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
2357 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
2359 (linux_nat_kill, linux_nat_mourn_inferior): Call
2360 linux_nat_forget_process.
2361 (linux_nat_set_new_fork, linux_nat_set_forget_process)
2362 (linux_nat_forget_process): New functions.
2363 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
2365 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
2366 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
2368 (linux_nat_set_new_fork, linux_nat_set_forget_process)
2369 (linux_nat_forget_process): New declarations.
2371 * amd64fbsd-nat.c (super_mourn_inferior): New global.
2372 (amd64fbsd_mourn_inferior): New function.
2373 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
2374 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
2376 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
2378 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
2381 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
2383 * aarch64-linux-nat.c (debug_reg_change_callback)
2384 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
2387 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
2389 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
2392 2013-02-13 Pedro Alves <palves@redhat.com>
2393 Hafiz Abid Qadeer <abidh@codesourcery.com>
2395 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
2397 2013-02-12 Tom Tromey <tromey@redhat.com>
2400 * c-exp.y (lex_one_token): Initialize other fields of yylval on
2402 (classify_inner_name): Remove 'first_name' argument, add
2403 'context'. Remove unused variable.
2404 (yylex): Explicitly maintain the context type. Exit loop earlier
2405 if NAME result is seen.
2407 2013-02-12 Pedro Alves <palves@redhat.com>
2409 * amd64-darwin-tdep.c: Add (C) after Copyright.
2410 * cli/cli-cmds.h: Ditto.
2411 * cli/cli-decode.c: Ditto.
2412 * cli/cli-decode.h: Ditto.
2413 * cli/cli-dump.c: Ditto.
2414 * cli/cli-dump.h: Ditto.
2415 * cli/cli-interp.c: Ditto.
2416 * cli/cli-logging.c: Ditto.
2417 * cli/cli-script.c: Ditto.
2418 * cli/cli-script.h: Ditto.
2419 * cli/cli-setshow.c: Ditto.
2420 * cli/cli-setshow.h: Ditto.
2421 * cli/cli-utils.c: Ditto.
2422 * cli/cli-utils.h: Ditto.
2423 * config/alpha/nm-osf3.h: Ditto.
2424 * config/djgpp/djconfig.sh: Ditto.
2425 * config/i386/nm-fbsd.h: Ditto.
2426 * config/i386/nm-i386gnu.h: Ditto.
2427 * config/nm-linux.h: Ditto.
2428 * config/nm-nto.h: Ditto.
2429 * config/rs6000/nm-rs6000.h: Ditto.
2430 * config/sparc/nm-sol2.h: Ditto.
2431 * darwin-nat-info.c: Ditto.
2434 * gdb-demangle.h: Ditto.
2435 * i386-darwin-nat.c: Ditto.
2436 * i386-darwin-tdep.c: Ditto.
2437 * linux-fork.h: Ditto.
2438 * m32c-tdep.c: Ditto.
2439 * microblaze-linux-tdep.c: Ditto.
2440 * microblaze-rom.c: Ditto.
2441 * microblaze-tdep.c: Ditto.
2442 * microblaze-tdep.h: Ditto.
2443 * mips-linux-tdep.h: Ditto.
2444 * ppc-ravenscar-thread.c: Ditto.
2445 * ppc-ravenscar-thread.h: Ditto.
2446 * prologue-value.c: Ditto.
2447 * prologue-value.h: Ditto.
2448 * ravenscar-thread.c: Ditto.
2449 * ravenscar-thread.h: Ditto.
2450 * sparc-ravenscar-thread.c: Ditto.
2451 * sparc-ravenscar-thread.h: Ditto.
2452 * tilegx-linux-tdep.c: Ditto.
2453 * unwind_stop_reasons.def: Ditto.
2454 * windows-nat.h: Ditto.
2455 * xtensa-linux-tdep.c: Ditto.
2456 * xtensa-xtregs.c: Ditto.
2457 * regformats/regdat.sh: Ditto.
2458 * regformats/regdef.h: Ditto.
2460 2013-02-12 Pedro Alves <palves@redhat.com>
2462 * break-catch-sig.c: Update copyright years.
2464 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
2466 Add support for a destructor for ui_out data and use it to
2467 provide a ui_out destructor.
2468 * ui-out.h: Declare the new ui_out destructor.
2469 (ui_out_impl): Add a field for data destructor in ui_out_impl.
2470 * ui-out.c (default_data_destroy): Add a default data destructor
2472 (default_ui_out_impl): Set the new data_destroy field to
2473 default_data_destroy
2474 (uo_data_destroy): Local function which invokes the data
2475 destructor if present.
2476 (clear_table): Local function which clears the table data of a
2478 (ui_out_destroy): Public function which frees a ui_out object.
2479 (ui_out_table_end): Use the new clear_table function.
2480 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
2482 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
2485 2013-02-11 Doug Evans <dje@google.com>
2487 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
2488 (printf_decfloat): New function. Broken out from ui_printf.
2489 Remove unnecessary code to shift the entire format string down.
2490 (printf_pointer): New function.
2491 (ui_printf): Code to print C strings, wide C strings, decfloats,
2492 and pointers moved to separate functions.
2494 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
2496 * valops.c (value_assign): Handling bitfield offset in
2497 `lval_internalvar_component' case.
2499 2013-02-08 Doug Evans <dje@google.com>
2501 * common/format.c (parse_format_string): Fix whitespace.
2503 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
2505 * stack.c (return_command): Work around uninitialized variable
2508 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
2510 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
2511 number of the registers from 36 to 34.
2513 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
2515 * NEWS: Mention new AArch64 native and target support.
2517 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
2519 * MAINTAINERS (Write After Approval): Add myself.
2521 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
2522 Marcus Shawcroft <marcus.shawcroft@arm.com>
2523 Nigel Stephens <nigel.stephens@arm.com>
2524 Yufeng Zhang <yufeng.zhang@arm.com>
2526 * aarch64-linux-nat.c: New file.
2527 * config/aarch64/linux.mh: New file.
2528 * configure.host: Add AArch64.
2529 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
2531 2013-02-07 Doug Evans <dje@google.com>
2533 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
2534 disassemble command.
2536 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
2538 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2539 set_gdbarch_fetch_tls_load_module_address.
2541 2013-02-06 David S. Miller <davem@davemloft.net>
2543 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
2544 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
2545 * value.c (struct_return_convention): New function.
2546 (using_struct_return): Implement in terms of struct_return_convention.
2547 * value.h (struct_return_convention): Declare.
2548 * stack.c (return_command): Allow successful overriding of the return
2549 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
2551 2013-02-06 Tom Tromey <tromey@redhat.com>
2553 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
2554 outside of TRY_CATCH.
2556 2013-02-06 Yao Qi <yao@codesourcery.com>
2558 * mi/mi-interp.c: Include "tracepoint.h".
2559 (mi_tsv_modified): Declare.
2560 (mi_tsv_created, mi_tsv_deleted): Update declaration.
2561 (mi_interpreter_init): Call observer_attach_tsv_modified.
2562 (mi_tsv_modified): New.
2563 (mi_tsv_created, mi_tsv_deleted): Update.
2564 * tracepoint.c (trace_variable_command): Call
2565 observer_notify_tsv_modified if the initial value of tsv is
2567 (delete_trace_state_variable): Call
2568 observer_notify_tsv_deleted earlier.
2569 (trace_variable_command): Caller update.
2570 (create_tsv_from_upload): Likewise.
2571 * observer.sh: Declare "struct trace_state_variable".
2573 * NEWS: Mention the new MI notification "=tsv-modified".
2575 2013-02-05 Doug Evans <dje@google.com>
2577 * completer.c (location_completer): Fix typo in comment.
2579 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2581 * breakpoint.c (add_location_to_breakpoint): Insert the location with
2584 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2586 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
2587 Refactor if statement to avoid trailing || operator.
2589 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
2591 * NEWS: Add PowerPC FreeBSD as a new native configuration.
2593 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
2595 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
2596 * configure.host: Add powerpc*-*-freebsd* target.
2597 * configure.tgt: Add target info for powerpc*-*-freebsd*.
2598 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
2599 * config/powerpc/fbsd.mh: New file.
2601 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
2602 Denys Vlasenko <dvlasenk@redhat.com>
2603 Pedro Alves <palves@redhat.com>
2605 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
2606 (struct elf_internal_linux_prpsinfo): Forward declare.
2607 * gdbarch.h, gdbarch.c: Regenerate.
2608 * linux-tdep.c: Include `cli/cli-utils.h'.
2609 (linux_fill_prpsinfo): New function.
2610 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
2611 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
2612 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
2613 depending on gdbarch pointer bitness.
2614 * ppc-linux-tdep.c: Include elf-bfd.h.
2615 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
2618 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
2619 Marcus Shawcroft <marcus.shawcroft@arm.com>
2620 Nigel Stephens <nigel.stephens@arm.com>
2621 Yufeng Zhang <yufeng.zhang@arm.com>
2623 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
2625 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
2626 Marcus Shawcroft <marcus.shawcroft@arm.com>
2627 Nigel Stephens <nigel.stephens@arm.com>
2628 Yufeng Zhang <yufeng.zhang@arm.com>
2630 * aarch64-newlib-tdep.c: New file.
2631 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
2633 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
2634 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
2635 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
2636 * osabi.c (gdb_osabi_names): Add "Newlib".
2638 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
2639 Marcus Shawcroft <marcus.shawcroft@arm.com>
2640 Nigel Stephens <nigel.stephens@arm.com>
2641 Yufeng Zhang <yufeng.zhang@arm.com>
2643 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
2644 (ALLDEPFILES): Add aarch64-linux-tdep.c.
2645 * aarch64-linux-tdep.c: New file.
2646 * aarch64-linux-tdep.h: New file.
2647 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
2648 * configure.tgt: Add aarch64-none-linux-gnu.
2650 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
2651 Marcus Shawcroft <marcus.shawcroft@arm.com>
2652 Nigel Stephens <nigel.stephens@arm.com>
2653 Yufeng Zhang <yufeng.zhang@arm.com>
2655 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
2656 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
2657 (ALLDEPFILES): Add aarch64-tdep.c.
2658 * aarch64-tdep.c: New file.
2659 * aarch64-tdep.h: New file.
2660 * configure.tgt: Add AArch64.
2661 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
2662 (aarch64-expedite): New definition.
2663 * features/aarch64-core.xml: New file.
2664 * features/aarch64-fpu.xml: New file.
2665 * features/aarch64-without-fpu.c: New file (generated).
2666 * features/aarch64-without-fpu.xml: New file.
2667 * features/aarch64.c: New file (generated).
2668 * features/aarch64.xml: New file.
2669 * regformats/aarch64-without-fpu.dat: New file (generated).
2670 * regformats/aarch64.dat: New file (generated).
2672 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2674 * contrib/expect-read1.c: New file.
2675 * contrib/expect-read1.sh: New file.
2677 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2679 * dwarf2read.c (file_file_name): New function with code from
2681 (file_full_name): Move most of the code to file_file_name.
2682 (macro_start_file): Rename variable full_name to file_name and use
2683 file_file_name for it. Add comp_dir parameter to new_macro_table.
2684 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
2685 macro_source_file->filename access by macro_source_fullname call.
2686 * macroscope.c (_initialize_macroscope): Update the new_macro_table
2688 * macrotab.c (struct macro_table): New field comp_dir.
2689 (macro_include): New variables link_fullname and source_fullname.
2690 Replace any macro_source_file->filename access by macro_source_fullname
2692 (macro_lookup_inclusion): Remove the partial filenames checking code.
2693 (check_for_redefinition): New variables source_fullname and
2694 found_key_fullname. Replace any macro_source_file->filename access by
2695 macro_source_fullname call.
2696 (macro_undef): New variables source_fullname and key_fullname. Replace
2697 any macro_source_file->filename access by macro_source_fullname call.
2698 (macro_lookup_definition): New variables retval and source_fullname.
2699 Replace any macro_source_file->filename access by macro_source_fullname
2701 (foreach_macro): New variable key_fullname. Replace any
2702 macro_source_file->filename access by macro_source_fullname call.
2703 (foreach_macro_in_scope): New variable datum_fullname. Replace any
2704 macro_source_file->filename access by macro_source_fullname call.
2705 (new_macro_table): Add parameter comp_dir. Initialize T with it.
2706 (macro_source_fullname): New function.
2707 * macrotab.h (struct macro_source_file): Extent the filename field
2709 (new_macro_table): New parameter comp_dir, add a comment for it.
2710 (macro_source_fullname): new declaration.
2712 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2714 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
2715 this_real_name to outer block. Use it also for
2716 compare_filenames_for_search.
2717 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
2718 with dw2_get_real_path for file_matcher, considering also
2719 BASENAMES_MAY_DIFFER.
2720 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
2722 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2724 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
2725 to the file_matcher parameter. Pass 0 to it.
2726 (dwarf2_create_include_psymtab): Copy also DIRNAME.
2727 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
2728 NULL psymtab_to_fullname result.
2729 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
2730 an expected filename instead.
2731 (expand_symtabs_matching_via_partial): Add basenames parameter to the
2732 file_matcher parameter. Call also psymtab_to_fullname, after newly
2733 considering BASENAMES_MAY_DIFFER.
2734 * source.c (rewrite_source_path): Remove static.
2735 * source.h (rewrite_source_path): New declaration.
2736 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
2737 the expand_symtabs_matching field. Comment it.
2738 * symtab.c (file_matches): New function comment. Add parameter
2739 basenames, implement it.
2740 (search_symbols_file_matches): Add basenames parameter. Update the
2741 file_matches caller.
2742 (search_symbols): Match FILES also against symtab_to_fullname.
2743 Optimize it for BASENAMES_MAY_DIFFER.
2745 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2747 * source.c (print_source_lines_base): Print for TUI also "fullname".
2748 * tui/tui-data.c (init_content_element): Change tui_locator_element
2750 * tui/tui-data.h (struct tui_locator_element): Likewise.
2751 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
2752 tui_update_locator_filename calls to tui_update_locator_fullname.
2753 Replace symtab->filename refererence by symtab_to_fullname call.
2754 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
2755 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
2756 field to full_name. Replace symtab->filename refererence by
2757 symtab_to_fullname call.
2758 (tui_show_symtab_source): Rename parameter to fullname. Change
2759 tui_locator_element field to full_name.
2760 * tui/tui-stack.c: Include source.h.
2761 (tui_set_locator_filename): Rename the declaration to ...
2762 (tui_set_locator_fullname): ... here. Rename its parameter to
2763 fullname, updates its comment.
2764 (tui_set_locator_info): Rename its parameter to fullname.
2765 (tui_set_locator_filename): Rename the definition to ...
2766 (tui_set_locator_fullname): ... here. Rename its parameter to
2767 fullname, updates its comment. Change tui_locator_element field to
2769 (tui_set_locator_info): Rename its parameter to fullname.
2770 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
2771 (tui_update_locator_filename): Rename to ...
2772 (tui_update_locator_fullname): ... here. Rename callee to
2773 tui_set_locator_fullname.
2774 (tui_show_frame_info): Replace symtab->filename refererence by
2775 symtab_to_fullname call.
2776 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
2777 (tui_update_locator_fullname): ... here.
2778 * tui/tui-winsource.c (tui_display_main): Rename the callee to
2779 tui_update_locator_fullname. Replace symtab->filename refererence by
2780 symtab_to_fullname call.
2781 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
2782 Rename the callee to tui_update_locator_fullname.
2783 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
2785 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2787 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
2788 by symtab_to_filename_for_display calls.
2789 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
2790 (clear_command): New variable sal_fullname, initialize it. Replace
2791 compare_filenames_for_search by filename_cmp with sal_fullname.
2792 (say_where, update_static_tracepoint): Replace symtab->filename
2793 refererences by symtab_to_filename_for_display calls.
2794 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
2796 * dwarf2read.c: Include source.h.
2797 (fixup_go_packaging): Replace symtab->filename refererences by
2798 symtab_to_filename_for_display calls.
2799 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
2800 Replace symtab->filename refererences by symtab_to_filename_for_display
2802 (create_sals_line_offset, convert_linespec_to_sals): New variable
2803 fullname, initialize it, replace symtab->filename reference by the
2805 * linux-fork.c: Include source.h.
2806 (info_checkpoints_command): Replace symtab->filename refererences by
2807 symtab_to_filename_for_display calls.
2808 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
2809 by symtab_to_filename_for_display calls.
2810 * mdebugread.c: Include source.h.
2811 (psymtab_to_symtab_1): Replace symtab->filename refererences by
2812 symtab_to_filename_for_display calls.
2813 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2814 (mi_cmd_file_list_exec_source_files): Likewise.
2815 * printcmd.c: Include source.h.
2816 (build_address_symbolic): Replace symtab->filename refererences by
2817 symtab_to_filename_for_display calls.
2818 * psymtab.c (partial_map_symtabs_matching_filename)
2819 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
2820 with psymtab_to_fullname.
2821 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
2822 by symtab_to_filename_for_display calls.
2823 (stpy_get_filename): New variable filename, initialize it, use instead
2824 of symtab->filename refererences.
2825 (salpy_str): Make variable filename const char *. Replace
2826 symtab->filename refererences by symtab_to_filename_for_display calls.
2827 * skip.c: Include source.h and filenames.h.
2828 (skip_file_command): Remove const from the symtab variable. Replace
2829 symtab->filename refererences by symtab_to_fullname call.
2830 (function_name_is_marked_for_skip): New variables searched_for_fullname
2831 and fullname. Use them to search also with symtab's fullname.
2832 * source.c (find_source_lines): Replace symtab->filename refererences
2833 by symtab_to_filename_for_display calls.
2834 (print_source_lines_base): New variable filename, use it instead of
2835 symtab->filename. Replace symtab->filename refererences by
2836 symtab_to_filename_for_display calls.
2837 (line_info, forward_search_command): Replace symtab->filename
2838 refererences by symtab_to_filename_for_display calls.
2839 (reverse_search_command): Replace symtab->filename refererences by
2840 symtab_to_filename_for_display calls. New variable filename for it.
2841 * stack.c (frame_info): Likewise.
2842 * symmisc.c: Include source.h.
2843 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
2844 (maintenance_info_symtabs): Replace symtab->filename refererences by
2845 symtab_to_filename_for_display calls.
2846 * symtab.c (iterate_over_some_symtabs): Call
2847 compare_filenames_for_search also with symtab_to_fullname.
2848 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
2849 symtab->filename refererences by symtab_to_filename_for_display calls.
2850 (find_line_symtab): Replace symtab->filename refererences by
2851 symtab_to_filename_for_display calls.
2852 (file_matches): Replace filename_cmp by compare_filenames_for_search.
2853 (print_symbol_info): Make the last parameter const char *. New
2854 variable s_filename. Use it in the function.
2855 (symtab_symbol_info): Make the last_filename variable const char *.
2856 Replace symtab->filename refererences by symtab_to_filename_for_display
2858 (rbreak_command): New variable fullname. Use it. Replace
2859 symtab->filename refererence by symtab_to_filename_for_display call.
2860 * tracepoint.c (set_traceframe_context, trace_find_line_command)
2861 (print_one_static_tracepoint_marker): Replace symtab->filename
2862 refererences by symtab_to_filename_for_display calls.
2863 * tui/tui-source.c (tui_set_source_content): New variables filename and
2864 s_filename. Replace symtab->filename refererences by this variable.
2865 Replace other symtab->filename refererences by
2866 symtab_to_filename_for_display calls.
2868 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
2869 Jan Kratochvil <jan.kratochvil@redhat.com>
2871 Add a new variable that controls a way in which filenames are
2873 * NEWS (set filename-display): New entry.
2874 * source.c (filename_display_basename, filename_display_relative)
2875 (filename_display_absolute, filename_display_kind_names)
2876 (filename_display_string, show_filename_display_string)
2877 (symtab_to_filename_for_display): New.
2878 (_initialize_source): Added initialization of 'filename-display'
2880 * source.h (symtab_to_filename_for_display): Added declaration.
2881 * stack.c (print_frame): Added new variable and calling of a new
2882 function and condition with this variable. Changed third argument of
2883 calling of a function.
2885 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2887 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
2888 Rename field reference filename to fullname.
2889 * tui/tui-data.h (struct tui_source_info): Rename field filename to
2890 fullname. New comment for it.
2891 * tui/tui-source.c (tui_set_source_content): Rename field reference
2892 filename to fullname. Initialize field by symtab_to_fullname now.
2893 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
2894 reference filename to fullname. Use symtab_to_fullname during
2897 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2900 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
2901 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
2902 filename to fullname. Rename variable this_name to this_fullname.
2903 Lowercase FILENAME_CMP call.
2904 (dw2_find_symbol_file): New comment for the returned string.
2905 (dwarf2_gdb_index_functions): Rename the function to
2906 dw2_expand_symtabs_with_fullname.
2907 * psymtab.c (read_psymtabs_with_filename): Rename to ...
2908 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
2910 (psym_functions): Rename the function to read_psymtabs_with_fullname.
2911 * symfile.h (struct quick_symbol_functions): Rename field
2912 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
2913 parameter filename to fullname. Document returned string meaning for
2915 * symtab.c (find_line_symtab): Rename the called function to
2916 expand_symtabs_with_fullname.
2918 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2921 * breakpoint.c (clear_command): Remove variable is_abs, unify the
2922 call of filename_cmp with compare_filenames_for_search.
2923 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
2924 is_abs, unify the call of FILENAME_CMP with
2925 compare_filenames_for_search. New gdb_asserts for real_path and name.
2926 Unify the call of compare_filenames_for_search with FILENAME_CMP.
2927 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
2928 * symfile.h (struct quick_symbol_functions): Extend the comment for
2929 map_symtabs_matching_filename.
2930 * symtab.c (compare_filenames_for_search): Remove the function comment
2931 relative path requirement. Handle absolute filenames, with a comment.
2932 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
2933 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
2934 real_path and name. Unify the call of compare_filenames_for_search
2936 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
2938 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2941 * breakpoint.c (print_breakpoint_location): Replace bp_location field
2942 source_file references by symtab field references. Remove variables
2944 (momentary_breakpoint_from_master, add_location_to_breakpoint):
2945 (clear_command, say_where): Replace bp_location field source_file
2946 references by symtab field references.
2947 (bp_location_dtor): Remove the source_file reference.
2948 (update_static_tracepoint): Replace bp_location field source_file
2949 references by symtab field references.
2950 (breakpoint_free_objfile): New function.
2951 * breakpoint.h (struct bp_location): Extend the comment for line_number.
2952 Replace the field source_file by field symtab, extend its comment.
2953 (breakpoint_free_objfile): New declaration.
2954 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
2955 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
2956 field source_file references by symtab field references.
2958 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2960 Replace xfullpath calls by gdb_realpath calls.
2961 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
2963 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
2964 Remove it from the iterate_over_some_symtabs call.
2965 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
2966 Remove it from the dw2_map_expand_apply calls, remove a block handling
2968 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
2969 Remove it from the iterate_over_some_symtabs call.
2970 (partial_map_symtabs_matching_filename): Remove parameter full_path.
2971 Remove it from the partial_map_expand_apply calls, remove a block
2972 handling it. Drop gdb_realpath call and cleanups from the real_path
2974 * source.c (openp): Drop the comment part about xfullpath. Replace
2975 xfullpath calls by gdb_realpath calls.
2976 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
2977 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
2978 from method map_symtabs_matching_filename and its comment.
2979 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
2981 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
2982 remove it also from the function comment, remove a block handling it.
2983 Drop gdb_realpath call and cleanups from the real_path handling.
2984 (iterate_over_symtabs): Drop variable full_path and its use.
2985 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
2986 * utils.c (xfullpath): Remove.
2987 * utils.h (xfullpath): Remove.
2989 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
2991 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
2992 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
2993 (ALLDEPFILES): Add ppc64-tdep.c.
2994 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
2995 ppc64-tdep.o to gdb_target_obs.
2996 * ppc64-tdep.h: New file.
2997 * ppc64-tdep.c: New file.
2998 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
2999 ppc-linux-tdep.c to here.
3000 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
3001 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
3002 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
3003 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
3004 from ppc-linux-tdep.c to here.
3005 (ppc64_convert_from_func_ptr_addr): Rename from
3006 ppc64_linux_convert_from_func_ptr_addr to
3007 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
3010 (read_insn): Move from ppc-linux-tdep.c to here.
3011 (insns_match_pattern, insn_d_field, insn_ds_field): Move
3012 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
3013 * ppc-linux-tdep.c: Include ppc64-tdep.h.
3014 Removed above functions.
3015 (ppc_linux_init_abi): Adjust.
3017 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
3019 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
3021 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
3023 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
3025 2013-02-01 Pedro Alves <palves@redhat.com>
3027 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
3028 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
3030 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3032 * elfread.c (elf_symfile_read): Limit separate debug info additions to
3033 files with no separate debug info.
3034 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
3035 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
3036 only for files with no separate debug info.
3038 2013-01-31 Tom Tromey <tromey@redhat.com>
3040 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
3042 (struct jit_program_space_data): Rename from jit_inferior_data.
3044 (get_jit_program_space_data): Rename from get_jit_inferior_data.
3045 Change return type. Attach data to program space.
3046 (jit_program_space_data_cleanup): Rename from
3047 jit_inferior_data_cleanup; change argument type.
3048 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
3050 (jit_register_code): Update.
3051 (jit_update_inferior_cache): Remove.
3052 (jit_breakpoint_deleted): Get jit data from the location's program
3054 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
3055 'ps_data', change type.
3056 (jit_inferior_init, jit_breakpoint_re_set_internal)
3057 (jit_event_handler): Update.
3058 (free_objfile_data): Get data from objfile's program space.
3059 (_initialize_jit): Update.
3061 2013-01-31 Tom Tromey <tromey@redhat.com>
3064 * jit.c (struct jit_inferior_data) <cached_code_address,
3065 jit_breakpoint>: New fields.
3066 (jit_breakpoint_re_set_internal): Fix logging. Only create
3067 breakpoint if cached address has changed.
3068 (jit_update_inferior_cache, jit_breakpoint_deleted): New
3070 (_initialize_jit): Register breakpoint deleted observer.
3072 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3074 * infrun.c (handle_syscall_event): Remove unused gdbarch.
3075 (save_infcall_suspend_state): Ifdef out unused inf.
3076 (restore_infcall_suspend_state): Ifdef out unused inf.
3077 * jit.c (jit_register_code): Remove unused i, b, inf_data.
3078 (jit_frame_sniffer): Remove unused inf_data.
3080 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3082 * c-exp.y (classify_inner_name): Remove unused type.
3083 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
3084 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
3086 (c_get_string): Remove unused kind.
3087 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
3089 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3091 * charset.c (intermediate_encoding): Remove unused i.
3092 * completer.c (signal_completer): Remove unused i.
3093 * continuations.c (discard_my_continuations_1): Remove unused
3095 * corelow.c (core_close): Remove unuseD name.
3096 (get_core_siginfo): Remove unused pid.
3097 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
3099 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
3100 (loclist_describe_location): Remove unused first.
3101 * event-top.c (command_line_handler): Remove unused got_eof.
3102 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
3103 (resize_section_table): Remove unused old_value.
3104 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
3105 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
3106 * i386-tdep.c (i386_process_record): Remove unused rex.
3107 * infcmd.c (get_return_value): Remove unused uiout.
3108 * jv-lang.c (type_from_class): Remove unused is_array.
3109 * jv-valprint.c (java_val_print): Remove unused i.
3110 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
3111 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
3112 * m2-typeprint.c (m2_print_type): Remove unused code.
3113 * macroexp.c (get_character_constant): Remove unused body_start.
3114 (macro_stringify): Remove unused result.
3115 * objc-lang.c (find_methods): Remove unused gdbarch.
3116 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
3117 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
3118 * stack.c (print_frame_args): Remove unused summary.
3119 * thread.c (thread_apply_command): Remove unused p.
3120 * valarith.c (value_x_unop): Remove unused mangle_ptr.
3121 * valops.c (search_struct_method): Remove unused skip.
3122 * valprint.c (generic_val_print): Remove unused byte_order.
3123 * varobj.c (varobj_update): Remove unused changed.
3124 * cli/cli-cmds.c (complete_command): Remove unused next_item.
3125 (alias_command): Remove unused c.
3126 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
3127 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
3129 (mi_cmd_data_write_memory): Remove unused word_format.
3130 (mi_cmd_data_write_memory_bytes): Remove unused r.
3131 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
3133 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
3134 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
3137 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3139 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
3140 * symtab.c (iterate_over_symtabs): Remove unused s.
3141 (find_pc_sect_symtab): Remove unused pspAce.
3142 (find_pc_sect_line): Remove unused alt_symtab.
3143 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
3144 (completion_list_add_name): Remove unused newsize.
3146 2013-01-31 Tom Tromey <tromey@redhat.com>
3149 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
3152 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3154 * target.c (target_read_string): Remove unused origlen.
3156 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3158 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
3159 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
3160 * ax-general.c (ax_print): Remove unused is_float.
3161 * blockframe.c (block_innermost_frame): Remove unused start, end.
3162 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
3164 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3166 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
3167 (svr4_read_so_list): Remove unused lmo.
3168 * solib-target.c (solib_target_relocate_section_addresses): Remove
3171 2013-01-30 Tom Tromey <tromey@redhat.com>
3173 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
3175 2013-01-30 Tom Tromey <tromey@redhat.com>
3177 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
3178 * utils.c (gnu_debuglink_crc32): Remove.
3179 * utils.h (gnu_debuglink_crc32): Don't declare.
3181 2013-01-30 Tom Tromey <tromey@redhat.com>
3183 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
3184 (read_structure_type, read_enumeration_type): Remove cast.
3186 2013-01-30 Tom Tromey <tromey@redhat.com>
3188 * dwarf2read.c (read_namespace_type): Remove cast.
3189 (read_typedef): Likewise.
3191 2013-01-29 Tom Tromey <tromey@redhat.com>
3193 * dwarf2read.c (free_dwo_file): Remove assert.
3195 2013-01-29 Tom Tromey <tromey@redhat.com>
3197 * value.c (deprecated_set_value_modifiable): Remove.
3198 * value.h (deprecated_set_value_modifiable): Remove.
3200 2013-01-28 Doug Evans <dje@google.com>
3202 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
3203 to addresses from dwo files.
3205 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
3207 * valops.c (find_overload_match): Remove unused argument 'lax'.
3208 * value.h: Remove unused argument 'lax' from the declaration of
3209 find_overload_match.
3210 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
3211 to find_overload_match.
3212 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
3213 argument to find_overload_match.
3215 2013-01-25 Tom Tromey <tromey@redhat.com>
3217 * dwarf2read.c (processing_has_namespace_info): Remove.
3218 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
3219 (process_die, read_func_scope, dwarf2_start_symtab)
3220 (new_symbol_full): Update.
3222 2013-01-25 Tom Tromey <tromey@redhat.com>
3224 * cp-namespace.c (cp_set_block_scope): Remove.
3225 * cp-support.h (cp_set_block_scope): Remove.
3226 * dbxread.c: Include block.h.
3227 (cp_set_block_scope): New function.
3228 (process_one_symbol): Update.
3229 * dwarf2read.c (read_func_scope): Use block_set_scope.
3231 2013-01-25 Pedro Alves <palves@redhat.com>
3233 * remote.c (add_current_inferior_and_thread): Tweak comment.
3235 2013-01-25 Tom Tromey <tromey@redhat.com>
3237 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3238 (cp_add_using_directive): Add 'copy_names' argument.
3239 * cp-support.h (cp_add_using_directive): Update.
3240 (struct using_direct) <import_src, import_dest, alias,
3241 declaration>: Now const.
3242 * dwarf2read.c (read_import_statement): Use obconcat.
3243 Don't copy names passed to cp_add_using_directive.
3245 2013-01-25 Tom Tromey <tromey@redhat.com>
3247 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
3249 2013-01-25 Pedro Alves <palves@redhat.com>
3251 * remote.c (stop_reply_extract_thread): New.
3252 (add_current_inferior_and_thread): New parameter 'wait_status'.
3254 (remote_start_remote): Pass wait status to
3255 add_current_inferior_and_thread.
3256 (extended_remote_run): Update comment.
3257 (extended_remote_create_inferior_1): Pass wait status to
3258 add_current_inferior_and_thread.
3260 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
3261 Ulrich Weigand <uweigand@de.ibm.com>
3263 * valarith.c (value_vector_widen): New function for replicating a
3264 scalar into a vector.
3265 (value_binop): Use value_vector_widen to widen scalar to vector
3266 rather than casting, this better matches gcc C behaviour.
3267 * valops.c (value_casst): Update logic for casting between vector
3268 types, and for casting from scalar to vector, try to match gcc C
3270 * value.h (value_vector_widen): Declare.
3271 * opencl-lang.c (opencl_value_cast): New opencl specific casting
3272 function, handle special case for casting scalar to vector.
3273 (opencl_relop): Use opencl_value_cast.
3274 (evaluate_subexp_opencl): Use opencl_value_cast instead of
3275 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
3276 in order to use opencl_value_cast.
3278 2013-01-25 Yao Qi <yao@codesourcery.com>
3280 * event-loop.c: Include "queue.h".
3281 (gdb_event_p): New typedef.
3282 (DECLARE_QUEUE_P): Use.
3283 (DEFINE_QUEUE_P): Use.
3284 (async_queue_event): Remove.
3285 (gdb_event_xfree): New.
3286 (initialize_event_loop): New.
3287 (process_event): Use QUEUE macros.
3288 (event_queue): Remove.
3289 (gdb_wait_for_event): Caller update.
3290 (check_async_event_handlers): Likewise.
3291 (poll_timers): Likewise.
3292 * event-loop.h (initialize_event_loop): Declare.
3293 * event-loop.c (gdb_event_xfree): New.
3294 * top.c (gdb_init): Call initialize_event_loop.
3296 2013-01-25 Yao Qi <yao@codesourcery.com>
3298 * event-loop.c (async_queue_event): Remove one parameter
3299 'position'. Remove code handling 'position' == TAIL.
3300 (gdb_wait_for_event): Caller update.
3301 (check_async_event_handlers): Caller update.
3302 (poll_timers): Caller update.
3303 * event-loop.h (enum queue_position): Remove.
3305 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
3307 * MAINTAINERS: Update my email.
3309 2013-01-25 Yao Qi <yao@codesourcery.com>
3311 * main.c (print_gdb_help): Remove "--epoch" from the help
3314 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
3316 * symtab.c (skip_prologue_using_sal): Consider a file
3317 change the same as an increased line number
3319 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
3321 * MAINTAINERS (Write After Approval): Add myself to the list.
3323 2013-01-24 Tom Tromey <tromey@redhat.com>
3325 * ada-lang.h (ada_decode_symbol): Make return type const.
3326 * ada-lang.c (ada_decode_symbol): Likewise.
3328 2013-01-23 Doug Evans <dje@google.com>
3330 * linespec.c (find_linespec_symbols): Make static.
3332 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
3334 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
3335 type on float conversion for complex type.
3337 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
3339 Add a new class gdb.Architecture which exposes GDB's
3340 internal representation of architecture via GDB Python API.
3341 * Makefile.in: Add entries corresponding to the new file
3343 * NEWS (Python Scripting): Add entries for the new class
3344 gdb.Architecture and the new method gdb.Frame.architecture.
3345 * python/py-arch.c: Implement gdb.Architecture class.
3346 * python/py-frame.c (frapy_arch): Implement the method
3347 gdb.Frame.architecture().
3348 (frame_object_methods): Add 'architecture' to the method table.
3349 * python/python-internal.h: Add declarations of new utility
3351 * python/python.c (_initialize_python): Initialize
3352 gdb.Architecture class.
3354 2013-01-23 Doug Evans <dje@google.com>
3356 Work around binutils/15021.
3357 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
3358 type_unit_group out of union s. All uses updated.
3359 (read_index_from_section): Watch for index version 8.
3360 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
3362 (write_psymtabs_to_index): Increment version number to 8.
3364 2013-01-22 Pedro Alves <palves@redhat.com>
3366 * annotate.c (breakpoint_changed): Skip if breakpoint is not
3369 2013-01-22 Pedro Alves <palves@redhat.com>
3371 * annotate.c (annotate_breakpoints_changed): Rename to ...
3372 (annotate_breakpoints_invalid): ... this. Make static.
3373 (breakpoint_changed): Adjust.
3374 (_initialize_annotate): Always install the observers. Install a
3375 "breakpoint_created" observer.
3376 * annotate.h (annotate_breakpoints_changed): Delete declaration.
3377 * breakpoint.c (set_breakpoint_condition)
3378 (breakpoint_set_commands, do_map_commands_command)
3379 (init_raw_breakpoint, clear_command, set_ignore_count)
3380 (enable_breakpoint_disp): No longer call
3381 annotate_breakpoints_changed.
3383 2013-01-22 Pedro Alves <palves@redhat.com>
3385 * annotate.c: Include "inferior.h".
3386 (frames_invalid_emitted)
3387 (breakpoints_invalid_emitted): New globals.
3388 (async_background_execution_p): New function.
3389 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
3390 emitting the annotation if it has already been emitted.
3391 (annotate_display_prompt): New function.
3392 * annotate.h (annotate_display_prompt): New declaration.
3393 * event-top.c: Include annotate.h.
3394 (display_gdb_prompt): Call annotate_display_prompt.
3396 2013-01-22 Pedro Alves <palves@redhat.com>
3398 * annotate.c (ignore_count_changed): Delete.
3399 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
3400 (annotate_ignore_count_change): Delete.
3401 (annotate_stopped): Don't emit a delayed breakpoints-changed
3403 * annotate.h (annotate_ignore_count_change): Delete.
3404 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
3405 annotate_ignore_count_change.
3407 2013-01-22 Tom Tromey <tromey@redhat.com>
3409 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
3410 require_rvalue for a register location.
3412 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
3414 * breakpoint.c (print_one_breakpoint_location): Add MI
3415 field 'thread-groups' when printing a breakpoint.
3416 (output_thread_groups): New function.
3418 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
3420 * python/lib/gdb/commands/explore.py
3421 (CompoundExplorer.explore_expr): Correct the name of a method
3423 (ExploreTypeCommand.invoke): Add a missing 'return'.
3425 2013-01-21 Tom Tromey <tromey@redhat.com>
3427 * gdb_obstack.h (obconcat): Move declaration here, from...
3428 * symfile.h (obconcat): ... here.
3429 * gdb_obstack.c: New file.
3430 (obconcat): Move from...
3431 * symfile.c (obconcat): ... here.
3432 * Makefile.in (SFILES): Add gdb_obstack.c.
3433 (COMMON_OBS): Add gdb_obstack.o.
3435 2013-01-21 Tom Tromey <tromey@redhat.com>
3437 * symfile.h (obsavestring): Don't declare.
3438 * symfile.c (obsavestring): Remove.
3439 * ada-exp.y: Use obstack_copy0, not obsavestring.
3440 * ada-lang.c: Use obstack_copy0, not obsavestring.
3441 * coffread.c: Use obstack_copy0, not obsavestring.
3442 * cp-namespace.c: Use obstack_copy0, not obsavestring.
3443 * dbxread.c: Use obstack_copy0, not obsavestring.
3444 * dwarf2read.c: Use obstack_copy0, not obsavestring.
3445 * jit.c: Use obstack_copy0, not obsavestring.
3446 * mdebugread.c: Use obstack_copy0, not obsavestring.
3447 * psymtab.c: Use obstack_copy0, not obsavestring.
3448 * stabsread.c: Use obstack_copy0, not obsavestring.
3449 * xcoffread.c: Use obstack_copy0, not obsavestring.
3451 2013-01-21 Tom Tromey <tromey@redhat.com>
3453 * dwarf2read.c (fixup_go_packaging): Save package name
3455 * gdbtypes.c (init_type): Don't copy name.
3457 2013-01-21 Tom Tromey <tromey@redhat.com>
3459 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
3461 (struct attribute) <u.str>: Now const.
3462 (struct fnfieldlist) <name>: Now const.
3463 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
3464 (partial_die_parent_scope): Make return type const.
3465 (partial_die_full_name, add_partial_symbol): Update.
3466 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
3468 (find_file_and_directory): Make 'name' and 'comp_dir' const.
3469 (read_file_scope, read_func_scope, dwarf2_add_field)
3470 (dwarf2_add_member_fn, read_structure_type)
3471 (process_enumeration_scope, read_array_type, read_module_type)
3472 (read_base_type, read_subrange_type): Update.
3473 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
3474 (new_symbol_full, guess_full_die_structure_name): Update.
3475 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
3476 (dwarf2_name): Return const type.
3477 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
3480 2013-01-21 Tom Tromey <tromey@redhat.com>
3482 * gdbtypes.c (init_type): Make 'name' const.
3483 * gdbtypes.h (init_type): Update.
3485 2013-01-21 Tom Tromey <tromey@redhat.com>
3487 * buildsym.c (patch_subfile_names): Use set_last_source_file.
3488 (start_symtab): Make 'name' and 'dirname' const. Use
3489 set_last_source_file.
3490 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
3491 (last_source_file): Define. Now static.
3492 (set_last_source_file, get_last_source_file): New functions.
3493 * buildsym.h (last_source_file): Don't declare.
3494 (start_symtab): Update.
3495 (set_last_source_file, get_last_source_file): Declare.
3496 * coffread.c (complete_symtab): Use set_last_source_file.
3497 (coff_end_symtab): Likewise.
3498 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
3499 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
3500 set_last_source_file.
3501 (process_one_symbol): Use get_last_source_file.
3502 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
3503 (psymtab_to_symtab_1): Use get_last_source_file.
3504 * xcoffread.c (process_linenos): Use get_last_source_file.
3505 (complete_symtab): Use set_last_source_file.
3506 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
3507 (scan_xcoff_symtab): Use set_last_source_file.
3509 2013-01-21 Tom Tromey <tromey@redhat.com>
3511 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
3512 (symbol_set_names): Remove casts. Handle field const-ness.
3514 2013-01-21 Tom Tromey <tromey@redhat.com>
3516 * dwarf2read.c (new_symbol_full): Remove cast.
3517 * symtab.c (symbol_set_demangled_name): Make 'name' const.
3518 * symtab.h (symbol_set_demangled_name): Update.
3520 2013-01-21 Tom Tromey <tromey@redhat.com>
3522 * main.c (captured_main): Call bfd_init.
3524 2013-01-21 Tom Tromey <tromey@redhat.com>
3526 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
3527 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
3528 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
3531 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3533 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
3535 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3537 Fix gdb.fortran/common-block.exp crash in PIE mode.
3538 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
3540 * f-valprint.c (info_common_command_for_block): Expect
3541 LOC_COMMON_BLOCK in gdb_assert.
3542 * symtab.h (struct general_symbol_info): Update comment for the
3543 common_block member.
3544 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
3545 (enum address_class): New member LOC_COMMON_BLOCK.
3547 2013-01-18 David Blaikie <dblaikie@gmail.com>
3549 * MAINTAINERS (Write After Approval): Add "David Blaikie".
3551 2013-01-18 Tom Tromey <tromey@redhat.com>
3554 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
3555 Call require_rvalue.
3557 2013-01-18 Yao Qi <yao@codesourcery.com>
3559 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
3560 (dbx_read_symtab): New declaration.
3561 (dbx_psymtab_to_symtab): Delete.
3562 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
3563 Rename parameter PST to SELF. Exchanged two parameters.
3564 (start_psymtab): Caller update.
3565 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
3566 (dwarf2_read_symtab): New declaration.
3567 (dwarf2_psymtab_to_symtab): Delete.
3568 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
3569 Rename parameter PST to SELF. Exchanged two parameters.
3570 (create_partial_symtab): Caller update.
3571 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
3572 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
3573 Rename parameter PST to SELF. Exchanged two parameters.
3574 (parse_partial_symbols, new_psymtab): Caller update.
3575 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
3577 * psymtab.c (psymtab_to_symtab): Caller update.
3578 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
3579 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
3580 Rename parameter PST to SELF. Exchanged two parameters.
3581 (xcoff_start_psymtab): Caller update.
3583 2013-01-18 Yao Qi <yao@codesourcery.com>
3585 * infrun.c (proceed): Rename local variable 'oneproc' to
3588 2013-01-17 Doug Evans <dje@google.com>
3590 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
3591 (dw2_build_type_unit_groups): Delete. All uses updated.
3593 * symtab.h (struct symbol_search): Add comment.
3595 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3597 * symtab.c (compare_filenames_for_search): New comment for
3600 2013-01-17 Tom Tromey <tromey@redhat.com>
3602 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
3604 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3606 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
3607 initialize it by existing make_cleanup. Call new do_cleanups.
3609 2013-01-17 Tom Tromey <tromey@redhat.com>
3611 * cp-abi.c (cp_abi_completer): New function.
3612 (_initialize_cp_abi): Set completer for "set cp-abi".
3614 2013-01-17 Tom Tromey <tromey@redhat.com>
3616 * mem-break.c: Remove obsolete comment.
3617 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
3619 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
3621 * jit.c (jit_reader_load_command): Interpret the jit reader name
3622 as an absolute path if it begins with a forward slash.
3624 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
3628 * jit.c (finalize_symtab): Ensure that only the global block has a
3631 2013-01-17 Pedro Alves <palves@redhat.com>
3633 * acinclude.m4: Include ../config/plugins.m4,
3634 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
3635 * Makefile.in (aclocal_m4_deps): Update.
3636 * aclocal.m4: Renegerate.
3638 2013-01-16 Doug Evans <dje@google.com>
3640 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
3642 2013-01-16 Pedro Alves <palves@redhat.com>
3643 Tom Tromey <tromey@redhat.com>
3646 * NEWS: Add "catch signal".
3647 * breakpoint.c (base_breakpoint_ops): No longer static.
3648 (bpstat_explains_signal): New function.
3649 (init_catchpoint): No longer static.
3650 (base_breakpoint_explains_signal): New function.
3651 (base_breakpoint_ops): Initialize new field.
3652 * breakpoint.h (enum bpstat_signal_value): New.
3653 (struct breakpoint_ops) <explains_signal>: New field.
3654 (bpstat_explains_signal): Remove macro, declare as function.
3655 (base_breakpoint_ops, init_catchpoint): Declare.
3656 * break-catch-sig.c: New file.
3657 * inferior.h (signal_catch_update): Declare.
3658 * infrun.c (signal_catch): New global.
3659 (handle_syscall_event): Update for change to
3660 bpstat_explains_signal.
3661 (handle_inferior_event): Likewise. Always handle random signals
3663 (signal_cache_update): Check signal_catch.
3664 (signal_catch_update): New function.
3665 (_initialize_infrun): Initialize signal_catch.
3666 * Makefile.in (SFILES): Add break-catch-sig.c.
3667 (COMMON_OBS): Add break-catch-sig.o.
3669 2013-01-16 Tom Tromey <tromey@redhat.com>
3671 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
3672 (print_one_catch_solib, print_one_catch_syscall)
3673 (print_one_catch_exec, print_one_exception_catchpoint): Emit
3676 2013-01-16 Yao Qi <yao@codesourcery.com>
3678 * printcmd.c (current_display_number): Make it static.
3680 2013-01-16 Yao Qi <yao@codesourcery.com>
3682 * infcmd.c (step_once): Don't check '!single_inst' as it was
3685 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3687 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
3689 2013-01-14 Tom Tromey <tromey@redhat.com>
3691 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
3693 * command.h (add_setshow_string_noescape_cmd): Update.
3694 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
3695 (complete_set_gnutarget): New function.
3696 (_initialize_core): Set the "set gnutarget" completer.
3698 2013-01-14 Tom Tromey <tromey@redhat.com>
3701 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
3702 (c_type_print_modifier): Likewise.
3703 * dwarf2read.c (read_tag_restrict_type): New function.
3704 (read_type_die_1): Handle DW_TAG_restrict_type.
3705 * gdbtypes.c (make_restrict_type): New function.
3706 (recursive_dump_type): Handle TYPE_RESTRICT.
3707 * gdbtypes.h (enum type_flag_values): Renumber.
3708 (enum type_instance_flag_value): Add
3709 TYPE_INSTANCE_FLAG_RESTRICT.
3710 (TYPE_RESTRICT): New macro.
3711 (make_restrict_type): Declare.
3713 2013-01-14 Tom Tromey <tromey@redhat.com>
3716 * psymtab.c (struct psymtab_state): New.
3717 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
3719 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
3720 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
3722 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
3723 Pedro Alves <palves@redhat.com>
3727 * remote.c (remote_threads_info): Make a copy of the reply from
3728 qfThreadInfo and use that instead of rs->buf.
3730 2013-01-14 Yao Qi <yao@codesourcery.com>
3732 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
3733 (dbx_psymtab_to_symtab): Likewise.
3734 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
3735 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
3736 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
3738 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3740 * parse.c (parse_exp_in_context): New variable inner_chain. Call
3741 make_cleanup_restore_current_language. Call set_language. Move
3742 OLD_CHAIN and INNER_CHAIN cleanups.
3743 * utils.c (do_restore_current_language)
3744 (make_cleanup_restore_current_language): New functions.
3745 * utils.h (make_cleanup_restore_current_language): New declaration.
3747 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3749 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
3752 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
3753 non-existing files if FILENAME is already absolute.
3755 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3757 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
3758 fputs_filtered. Append trailing newline.
3760 2013-01-11 Yao Qi <yao@codesourcery.com>
3761 Stan Shebs <stan@codesourcery.com>
3763 * psymtab.c (init_psymbol_list): Clarify the comment.
3765 2013-01-11 Yao Qi <yao@codesourcery.com>
3767 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
3768 (update_dprintf_command_list): Assert that 'printf_line' is
3769 non-null. Remove condition check.
3771 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3774 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
3776 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
3778 * tui/tui-source.h (tui_source_is_displayed): Likewise.
3780 2013-01-09 Anthony Green <green@moxielogic.com>
3782 * cp-abi.c (cplus_print_vtable): Don't return value from void
3784 * ada-lang.c (re_set_catch_assert): Ditto.
3786 2013-01-09 Doug Evans <dje@google.com>
3788 * symfile.h (quick_symbol_functions): Delete member
3789 pre_expand_symtabs_matching. All uses removed.
3790 * dwarf2read.c (dw2_lookup_symbol): Implement.
3791 (dw2_do_expand_symtabs_matching): Delete.
3792 (dw2_pre_expand_symtabs_matching): Delete.
3793 (struct dw2_symtab_iterator): New type.
3794 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
3795 (dw2_expand_symtabs_for_function): Rewrite.
3796 (dwarf2_gdb_index_functions): Update.
3797 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
3798 (psym_functions): Update.
3800 2013-01-09 Tom Tromey <tromey@redhat.com>
3802 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
3803 * configure: Rebuild.
3804 * configure.ac: Add somread.o to the build if BFD has SOM
3806 * somread.c: Include som/aout.h, not syms.h.
3807 (som_symtab_read): Use som_external_symbol_dictionary_record.
3808 Unpack records manually.
3809 (_initialize_somread): Declare.
3811 2012-01-08 Mike Frysinger <vapier@gentoo.org>
3813 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
3814 Cast return_address to 64bits.
3816 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
3818 * printcmd.c: Remove define of function output_command.
3819 * tracepoint.c: Remove extern of function output_command.
3820 * valprint.h: (output_command): New extern.
3822 2013-01-07 Tom Tromey <tromey@redhat.com>
3824 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
3826 (objc_language_defn): Use c_printchar, c_printstr,
3829 2013-01-07 Tom Tromey <tromey@redhat.com>
3833 * ada-valprint.c (printstr, print_field_values): Remove
3835 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
3837 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
3839 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
3840 * main.c (captured_main): Remove "epoch" argument.
3841 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
3842 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
3843 * p-valprint.c (pascal_object_print_value_fields): Remove
3845 * printcmd.c (print_command_1): Remove 'inspect' argument.
3846 (print_command, call_command): Update.
3847 (inspect_command): Remove.
3848 (_initialize_printcmd): Make "inspect" an alias for "print".
3849 * top.c (epoch_interface): Remove.
3850 * top.h (epoch_interface): Remove.
3851 * valprint.c (user_print_options): Update.
3852 (print_converted_chars_to_obstack): Remove "inspect_it" code.
3853 * valprint.h (struct value_print_options) <inspect_it>: Remove
3856 2013-01-04 Tom Tromey <tromey@redhat.com>
3858 * valprint.h (read_string): Add 'extern'.
3860 2013-01-07 Joel Brobecker <brobecker@adacore.com>
3862 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
3863 used to decide whether to define darwin_read_dyld_info or not.
3865 2013-01-03 Pierre Muller <muller@sourceware.org>
3867 * main.c (relocate_gdb_directory): Avoid calling stat function
3870 2013-01-03 Yao Qi <yao@codesourcery.com>
3872 * psymtab.c (fixup_psymbol_section): Update declaration.
3873 (fixup_psymbol_section): Remove code returning value.
3875 2013-01-03 Yao Qi <yao@codesourcery.com>
3877 * symtab.h: Remove some out of date comments.
3878 (enum exception_event_kind): Move it ...
3879 * breakpoint.c: ... here.
3881 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
3884 * darwin-nat.c (darwin_read_dyld_info): Only build if
3885 TASK_DYLD_INFO_COUNT is defined.
3886 (darwin_xfer_partial): Call darwin_read_dyld_info only if
3887 TASK_DYLD_INFO_COUNT is defined.
3889 2013-01-02 Tom Tromey <tromey@redhat.com>
3891 * symfile.h (struct ecoff_debug_hack): Remove.
3892 * objfiles.c: Don't include mdebugread.h.
3894 2013-01-02 Tom Tromey <tromey@redhat.com>
3896 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
3897 * configure.ac: Check for Mach-O support in BFD. Update
3899 * configure: Rebuild.
3901 2013-01-02 Tom Tromey <tromey@redhat.com>
3903 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
3904 * configure.ac: Use GDB_AC_CHECK_BFD.
3905 * configure: Rebuild.
3907 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
3909 * MAINTAINERS: Update my email.
3911 2013-01-01 Joel Brobecker <brobecker@adacore.com>
3913 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
3915 2013-01-01 Joel Brobecker <brobecker@adacore.com>
3917 * rs6000-nat.c (bss_data_overlap): New function.
3918 (vmap_symtab): Use it to adjust the .bss section's offset.
3920 2013-01-01 Joel Brobecker <brobecker@adacore.com>
3922 Update year range in copyright notice of all files.
3924 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
3926 * top.c (print_gdb_version): Update copyright year.
3928 For older changes see ChangeLog-2012.
3934 version-control: never