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