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