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