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