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