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