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