Add support for Cortex-A53 and Cortex-A57.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ec21308c
JK
12013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
2
3 PR gdb/15275
4 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
5
840a9a1f
PA
62013-03-27 Pedro Alves <palves@redhat.com>
7
8 * top.c (history_size): Rename to ...
9 (history_size_setshow_var): ... this. Add comment.
10 (show_commands): Use readline's 'history_length' instead of
11 computing the history length by calling history_get in a loop.
12 (set_history_size_command): Error out for sizes over INT_MAX.
13 Restore previous history size on invalid size.
14 (init_history): If HISTSIZE is negative, leave the history size as
15 zero. Add comments.
16 (init_main): Adjust.
17
826ecc4d
PA
182013-03-27 Pedro Alves <palves@redhat.com>
19
20 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
21 coff_pe_read" command to "set debug coff-pe-read".
22
0ccfeeae
MM
232013-03-27 Markus Metzger <markus.t.metzger@intel.com>
24
25 * record.c (command_size_to_target_size): Fix size comparison.
26 Change parameter type from pointer to integer to integer.
27 Update all users.
28
40653b35
PM
292013-03-27 Pierre Muller <muller@sourceware.org>
30
31 * windows-nat.c (handle_output_debug_string): Avoid typecast
32 from integer of different size warning.
33
c62fa0e2
JB
342013-03-26 Joel Brobecker <brobecker@adacore.com>
35
36 * windows-nat.c (handle_output_debug_string): Add empty line
37 after local block variable definition.
38
2c619be2
PA
392013-03-26 Pedro Alves <palves@redhat.com>
40
41 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
42 (net_open): Make 'polls' local unsigned.
43
1b493192
PA
442013-03-26 Pedro Alves <palves@redhat.com>
45
46 * remote.c (_initialize_remote): Make "set remoteaddresssize"
47 a zuinteger command instead of uinteger.
48
7ee70bf5
PA
492013-03-26 Pedro Alves <palves@redhat.com>
50
51 * record-full.c (record_full_insn_num): Make it unsigned.
52 (record_full_check_insn_num, record_full_message)
53 (record_full_registers_change, record_full_xfer_partial): Remove
54 record_full_insn_max_num check (it's always != 0).
55 (record_full_info, record_full_restore): Use %u as format string.
56 (): Use %u as format string.
57 (set_record_full_insn_max_num): Remove record_full_insn_max_num
58 check (it's always != 0).
59
dfd1f9bb
PA
602013-03-26 Pedro Alves <palves@redhat.com>
61
62 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
63 and "set dcache size" commands zuinteger instead of uinteger.
64
addb4faf
PA
652013-03-26 Pedro Alves <palves@redhat.com>
66
67 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
68 command zuinteger instead of uinteger.
69
b75bf488
PA
702013-03-26 Pedro Alves <palves@redhat.com>
71
72 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
73 zuinteger instead of uinteger.
74
42c634cb
PA
752013-03-26 Pedro Alves <palves@redhat.com>
76
77 * record.c (record_insn_history_size_setshow_var)
78 (record_call_history_size_setshow_var): New globals.
79 (command_size_to_target_size): New function.
80 (cmd_record_insn_history, cmd_record_call_history): Use
81 command_size_to_target_size instead of cast.
82 (validate_history_size, set_record_insn_history_size)
83 (set_record_call_history_size): New functions.
84 (_initialize_record): Install set_record_insn_history_size and
85 set_record_call_history_size as "set" hooks of "set record
86 instruction-history-size" and "set record
87 function-call-history-size".
88
1fb2e2b5
PA
892013-03-26 Pedro Alves <palves@redhat.com>
90
91 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
92 use with history_max_entries use. Remove FIXME note.
93
99c819ee
MM
942013-03-26 Markus Metzger <markus.t.metzger@intel.com>
95
96 * record-btrace.c (record_btrace_close): Call
97 record_btrace_auto_disable.
98
9f9e404c
JB
992013-03-25 Joel Brobecker <brobecker@adacore.com>
100
101 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
102
ebcdfe33
DE
1032013-03-25 Doug Evans <dje@google.com>
104
105 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
106
24955f63
TT
1072013-03-25 Tom Tromey <tromey@redhat.com>
108
109 PR symtab/11462:
110 * c-exp.y (exp): Add new productions for destructors after '.' and
111 '->'.
112 (write_destructor_name): New function.
113
fce632b6
TT
1142013-03-25 Tom Tromey <tromey@redhat.com>
115
116 PR c++/9197:
117 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
118 value_struct_elt, not lookup_struct_elt_type.
119 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
120 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
121 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
122
a4341769
YQ
1232013-03-25 Yao Qi <yao@codesourcery.com>
124
125 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
126 instead of '_mkdir'.
127
b5981e5a
EZ
1282013-03-23 Eli Zaretskii <eliz@gnu.org>
129
130 * windows-nat.c (windows_get_absolute_argv0): New function.
131 * windows-nat.h: Add its prototype.
132
133 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
134 Use IS_DIR_SEPARATOR instead of looking for a character inside
135 SLASH_STRING. Include filenames.h.
136 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
137 relocate_gdb_directory works when passed gdb_program_name.
138 Include windows-nat.h.
139
598d3636
JK
1402013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
141
142 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
143 * remote.c (trace_error): Remove the special handling of '2'.
144 (readchar) <SERIAL_EOF>
145 (readchar) <SERIAL_ERROR>
146 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
147 (remote_get_trace_status): Call throw_exception if EX is
148 TARGET_CLOSE_ERROR.
149 * utils.c (perror_with_name): Rename to ...
150 (throw_perror_with_name): ... here. New parameter errcode, describe it
151 in the function comment.
152 (perror_with_name): New function wrapper.
153 * utils.h (enum errors): New stub declaration.
154 (throw_perror_with_name): New declaration.
155
82b821e9
PA
1562013-03-22 Pedro Alves <palves@redhat.com>
157 Yao Qi <yao@codesourcery.com>
158 Mark Kettenis <kettenis@gnu.org>
159
160 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
161 Don't let the user set the value to UINT_MAX directly.
162 <var_integer>: Don't let the user set the value to INT_MAX
163 directly.
164
78a095c3
JK
1652013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
166
167 * remote.c (remote_unpush_target): New function.
168 (remote_open_1): Remove two pop_target calls, update one comment, add
169 comment to target_preopen call. Replace pop_target call by
170 remote_unpush_target call.
171 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
172 pop_target calls by remote_unpush_target calls.
173
3e74e146
PA
1742013-03-22 Pedro Alves <palves@redhat.com>
175
176 * linux-nat.c (linux_child_follow_fork): Don't call
177 linux_enable_event_reporting.
178 (linux_handle_extended_wait): Don't call
179 linux_enable_event_reporting.
180
a2213dca
PA
1812013-03-22 Pedro Alves <palves@redhat.com>
182
183 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
184 use it to rewrite the trampoline buffers with type gdb_byte[], and
185 undefine the macro. Remove char* cast.
186
bd712aed
DE
1872013-03-21 Doug Evans <dje@google.com>
188
189 New commands "mt set per-command {space,time,symtab} {on,off}".
190 * NEWS: Add entry.
191 * event-top.c: #include "maint.h".
192 * main.c: #include "maint.h".
193 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
194 timeval-utils.h, maint.h, cli/cli-setshow.h.
195 (per_command_time, per_command_space): New static globals.
196 (per_command_symtab): New static global.
197 (per_command_setlist, per_command_showlist): New static globals.
198 (struct cmd_stats): Move here from utils.c.
199 (set_per_command_time): Renamed from set_display_time in utils.c
200 and moved here. All callers updated.
201 (set_per_command_space): Renamed from set_display_space in utils.c
202 and moved here. All callers updated.
203 (count_symtabs_and_blocks): New function.
204 (report_command_stats): Moved here from utils.c. Add support for
205 printing symtab stats. Only print data if enabled before command
206 executed.
207 (make_command_stats_cleanup): Ditto.
208 (sert_per_command_cmd, show_per_command_cmd): New functions.
209 (_initialize_maint_cmds): Add new commands
210 mt set per-command {space,time,symtab} {on,off}.
211 * maint.h: New file.
212 * top.c: #include "maint.h".
213 * utils.c (reset_prompt_for_continue_wait_time): New function.
214 (get_prompt_for_continue_wait_time): New function.
215 * utils.h (reset_prompt_for_continue_wait_time): Declare
216 (get_prompt_for_continue_wait_time): Declare.
217 (make_command_stats_cleanup): Moved to maint.h.
218 (set_display_time, set_display_space): Moved to maint.h and renamed
219 to set_per_command_time, set_per_command_space.
220 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
221 parse_binary_operation and made non-static. Don't call error,
222 just return an error marker. All callers updated.
223 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
224
d76488d8
TT
2252013-03-21 Tom Tromey <tromey@redhat.com>
226
227 * symfile.c (alloc_section_addr_info): Update header. Don't set
228 'num_sections' field.
229 (build_section_addr_info_from_section_table): Set 'num_sections'.
230 (build_section_addr_info_from_bfd): Likewise.
231 (build_section_addr_info_from_objfile): Remove dead loop
232 condition.
233 (free_section_addr_info): Unconditionally call xfree.
234 (relative_addr_info_to_section_offsets, addrs_section_sort)
235 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
236 condition.
237 (syms_from_objfile_1): Remove dead 'if' condition. Check
238 'num_sections'.
239 (add_symbol_file_command): Set 'num_sections'.
240 * symfile-mem.c (symbol_file_add_from_memory): Set
241 'num_sections'.
242 * somread.c (som_symfile_offsets): Remove dead loop condition.
243 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
244 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
245
a72e5169 2462013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
247
248 * tracepoint.h (decode_agent_options): Add 'trace_string'
249 argument.
250 * tracepoint.c (decode_agent_options): Add 'trace_string'
251 argument.
252 (validate_actionline): Update.
253 (collect_symbol): Add 'trace_string' argument.
254 (struct add_local_symbols_data) <trace_string>: New field.
255 (do_collect_symbol): Update.
256 (add_local_symbols): Add 'trace_string' argument.
257 (encode_actions_1): Update.
258 (trace_dump_actions): Update.
259 * dwarf2loc.c (access_memory): Update.
260 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
261 * ax-general.c (new_agent_expr): Update.
262 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
263 (gen_trace_for_return_address): Add argument.
264 (trace_kludge, trace_string_kludge): Remove.
265 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
266 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
267 (gen_trace_for_var): Add 'trace_string' argument.
268 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
269 (gen_printf, agent_eval_command_one): Update.
270
b2f83c08
TT
2712013-03-21 Tom Tromey <tromey@redhat.com>
272
273 PR exp/15109:
274 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
275 Handle FILENAME token.
276
9507860e
TT
2772013-03-21 Tom Tromey <tromey@redhat.com>
278
279 * c-exp.y (YYPRINT): Define.
280 (c_print_token): New function.
281
e403aa4b
TT
2822013-03-21 Tom Tromey <tromey@redhat.com>
283
284 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
285
af307d6a
YQ
2862013-03-21 Yao Qi <yao@codesourcery.com>
287
288 * ctf.c: Include "gdb_stat.h".
289 [USE_WIN32API]: New macro 'mkdir'.
290 (ctf_start): Use permission bits macros if they are defined.
291
fb81d016
KS
2922013-03-20 Keith Seitz <keiths@redhat.com>
293
294 * breakpoint.h (struct breakpoint): Add comment to
295 extra_string indicating that this member is mallod'd.
296 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
297
ef0026f0
PA
2982013-03-20 Pedro Alves <palves@redhat.com>
299
300 PR gdb/15289
301
302 * cli/cli-setshow.c (do_set_command)
303 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
304 the result of parsing the command argument. Throw error if the
305 value is greater than UINT_MAX. Print the invalid value with
306 plongest.
307 <var_integer, var_zinteger>: Use LONGEST for variable holding the
308 result of parsing the command argument. Throw error if the value
309 is greater than INT_MAX, not greater or equal. Also throw error
310 if the value is less than INT_MIN. Print the invalid value with
311 plongest.
312 <var_zuinteger_unlimited>: Throw error if the value is greater
313 than INT_MAX, not greater or equal.
314 (do_show_command) <var_integer, var_zinteger,
315 var_zuinteger_unlimited>: Use %d for printing int, not %u.
316
24d6c2a0
TT
3172013-03-20 Tom Tromey <tromey@redhat.com>
318
319 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
320 if possible.
321 * dwarf2read.c (read_func_scope): Remove old FIXME.
322 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
323 not LOC_COMPUTED.
324 * findvar.c (symbol_read_needs_frame, default_read_var_value):
325 Unconditionally call via computed ops, if possible.
326 * printcmd.c (address_info): Unconditionally call via computed ops,
327 if possible.
328 * stack.c (read_frame_arg): Unconditionally call via computed ops,
329 if possible.
330 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
331 * tracepoint.c (scope_info): Unconditionally call via computed ops,
332 if possible.
333
f1e6e072
TT
3342013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
335 Tom Tromey <tromey@redhat.com>
336
337 PR symtab/8421:
338 * coffread.c (coff_register_index): New global.
339 (process_coff_symbol, coff_read_enum_type): Set
340 SYMBOL_ACLASS_INDEX.
341 (_initialize_coffread): Initialize new global.
342 * dwarf2loc.c (locexpr_find_frame_base_location)
343 (dwarf2_block_frame_base_locexpr_funcs)
344 (loclist_find_frame_base_location)
345 (dwarf2_block_frame_base_loclist_funcs): New.
346 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
347 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
348 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
349 (dwarf2_block_frame_base_loclist_funcs): New.
350 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
351 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
352 globals.
353 (read_func_scope): Update.
354 (fixup_go_packaging, mark_common_block_symbol_computed)
355 (var_decode_location, new_symbol_full, dwarf2_const_value):
356 Set SYMBOL_ACLASS_INDEX.
357 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
358 (_initialize_dwarf2_read): Initialize new globals.
359 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
360 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
361 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
362 globals.
363 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
364 (_initialize_mdebugread): Initialize new globals.
365 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
366 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
367 (stab_register_index, stab_regparm_index): New globals.
368 (define_symbol, read_enum_type, common_block_end): Set
369 SYMBOL_ACLASS_INDEX.
370 (_initialize_stabsread): Initialize new globals.
371 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
372 globals.
373 (MAX_SYMBOL_IMPLS): New define.
374 (register_symbol_computed_impl, register_symbol_block_impl)
375 (register_symbol_register_impl)
376 (initialize_ordinary_address_classes): New functions.
377 (_initialize_symtab): Call initialize_ordinary_address_classes.
378 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
379 (struct symbol_impl): New.
380 (SYMBOL_ACLASS_BITS): New define.
381 (struct symbol) <aclass, ops>: Remove fields.
382 <aclass_index>: New field.
383 (symbol_impls): Declare.
384 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
385 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
386 (register_symbol_computed_impl, register_symbol_block_impl)
387 (register_symbol_register_impl): Declare.
388 (struct symbol_computed_ops): Add location_has_loclist.
389 (struct symbol_block_ops): New.
390 (SYMBOL_BLOCK_OPS): New.
391 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
392
dbccfd4c
TT
3932013-03-20 Tom Tromey <tromey@redhat.com>
394
395 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
396 (print_partial_symbols, recursively_search_psymtabs): Use
397 PSYMBOL_CLASS.
398
e3f1ad4f
PM
3992013-03-20 Pierre Muller <muller@sourceware.org>
400
401 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
402 addtion, subtraction, multiplication and division binary operator.
403
460014f5
JK
4042013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
405
406 Code cleanup.
407 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
408 * bsd-kvm.c (bsd_kvm_close): Likewise.
409 * bsd-uthread.c (bsd_uthread_close): Likewise.
410 * corelow.c (core_close): Likewise.
411 (core_close_cleanup): Remove parameter quitting from a caller.
412 * event-top.c (async_disconnect): Likewise.
413 * exec.c (exec_close_1): Remove parameter quitting.
414 * go32-nat.c (go32_close): Likewise.
415 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
416 parameter quitting from a caller.
417 * mips-linux-nat.c (super_close): Remove parameter quitting from the
418 variable.
419 (mips_linux_close): Remove parameter quitting. Remove parameter
420 quitting from a caller.
421 * monitor.c (monitor_close): Remove parameter quitting.
422 * monitor.h (monitor_close): Likewise.
423 * record-btrace.c (record_btrace_close): Likewise.
424 * record-full.c (record_full_close): Likewise.
425 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
426 it also from fprintf_unfiltered.
427 * remote-mips.c (mips_close): Remove parameter quitting.
428 (mips_detach): Remove parameter quitting from a caller.
429 * remote-sim.c (gdbsim_close): Remove parameter quitting.
430 (gdbsim_close): Remove duplicate function comment. Remove parameter
431 quitting and remove it also from printf_filtered.
432 * remote.c (remote_close): Remove parameter quitting.
433 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
434 * target.c (update_current_target): Remove parameter int from to_close
435 de_fault.
436 (push_target, unpush_target, pop_target): Remove parameter quitting from
437 a caller.
438 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
439 Remove parameter quitting from a caller.
440 (target_preopen): Remove parameter quitting from a caller.
441 (target_close): Remove parameter quitting. Remove parameter quitting
442 from a caller two times. Remove parameter quitting also from
443 fprintf_unfiltered.
444 * target.h (struct target_ops): Remove parameter quitting and as int
445 from fields to_xclose and to_close.
446 (extern struct target_ops current_target):
447 (target_close, pop_all_targets): Remove parameter quitting. Update the
448 comment.
449 (pop_all_targets_above): Remove parameter quitting.
450 * top.c (quit_target): Remove parameter quitting from a caller.
451 * tracepoint.c (tfile_close): Remove parameter quitting.
452 * windows-nat.c (windows_close): Remove parameter quitting.
453
35a7120b
CV
4542013-03-20 Corinna Vinschen <vinschen@redhat.com>
455
456 * windows-nat.c (handle_output_debug_string): Replace call
457 to string_to_core_addr with call to strtoull.
458
8249a5a9
YQ
4592013-03-20 Yao Qi <yao@codesourcery.com>
460
461 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
462 and write it to CTF metadata.
463
2c15ef43
CV
4642013-03-19 Corinna Vinschen <vinschen@redhat.com>
465
466 * windows-nat.c (handle_output_debug_string): Change type of n to
467 SIZE_T to avoid crash on 64 bit systems.
468
1cdd3232
EZ
4692013-03-17 Eli Zaretskii <eliz@gnu.org>
470
471 * python/python-internal.h (HAVE_SNPRINTF)
472 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
473 about redefinition of snprintf by pyerrors.h.
474
3cb2ab1a
SE
4752013-03-15 Steve Ellcey <sellcey@mips.com>
476
477 * remote-sim.c (sim_command_completer): Make char arguments const.
478
9ce98649
TT
4792013-03-15 Tom Tromey <tromey@redhat.com>
480
481 PR c++/15116:
482 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
483
dccee2de
TT
4842013-03-14 Tom Tromey <tromey@redhat.com>
485
486 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
487 New fields.
488 (get_file_crc): Move from symfile.c.
489 (gdb_bfd_crc): New function.
490 * gdb_bfd.h (gdb_bfd_crc): Declare.
491 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
492 * symfile.c (get_file_crc): Move to gdb_bfd.c.
493 (separate_debug_file_exists): Use gdb_bfd_crc.
494
cc0ea93c
TT
4952013-03-14 Tom Tromey <tromey@redhat.com>
496
497 * symfile.c (get_debug_link_info): Remove.
498 (find_separate_debug_file_by_debuglink): Use
499 bfd_get_debug_link_info.
500
08c23b0d
TT
5012013-03-14 Tom Tromey <tromey@redhat.com>
502
503 * symtab.c (error_in_psymtab_expansion): New function.
504 (lookup_symbol_aux_quick)
505 (basic_lookup_transparent_type_quick): Remove "last resort"
506 code. Use error_in_psymtab_expansion.
507
288e77a7
JK
5082013-03-14 Doug Evans <dje@google.com>
509 Jan Kratochvil <jan.kratochvil@redhat.com>
510
511 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
512 any successful compare_filenames_for_search or FILENAME_CMP.
513 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
514 * symtab.c (iterate_over_some_symtabs): Likewise.
515
8f1b8b82
JK
5162013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
517
518 * source.c (print_source_lines_base): Make a local copy of
519 symtab_to_fullname.
520
23eb71e4
JK
5212013-03-14 Hui Zhu <hui_zhu@mentor.com>
522 Jan Kratochvil <jan.kratochvil@redhat.com>
523
524 * source.c (print_source_lines_base): Suppress "file" for TUI.
525
bb869963
SDJ
5262013-03-14 Keith Seitz <keiths@redhat.com>
527 Alan Matsuoka <alanm@redhat.com>
528
529 PR c++/15203
530 PR c++/15210
531 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
532 TYPE_CODE_METHOD.
533 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
534 symbols.
535
d6682f9e
YQ
5362013-03-14 Yao Qi <yao@codesourcery.com>
537
538 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
539 status to tfile if trace is stopped by command 'tstop'.
540
a22fa6e4
YQ
5412013-03-14 Yao Qi <yao@codesourcery.com>
542
543 * tracepoint.c (tfile_write_status): Write trace notes and user
544 name into tfile if they are not NULL.
545
d0353e76
YQ
5462013-03-14 Hui Zhu <hui@codesourcery.com>
547 Yao Qi <yao@codesourcery.com>
548
549 * Makefile.in (REMOTE_OBS): Add ctf.o.
550 (SFILES): Add ctf.c.
551 (HFILES_NO_SRCDIR): Add ctf.h.
552 * ctf.c, ctf.h: New files.
553 * tracepoint.c: Include 'ctf.h'.
554 (collect_pseudocommand): Remove static.
555 (trace_save_command): Parse option "-ctf".
556 Produce different trace file writers per option.
557 Adjust output message.
558 (trace_save_tfile, trace_save_ctf): New.
559 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
560 * mi/mi-main.c: Include 'ctf.h'.
561 (mi_cmd_trace_save): Handle option '-ctf'. Call either
562 trace_save_tfile or trace_save_ctf.
563 * NEWS: Mention these changes.
564
3f43bc09
YQ
5652013-03-14 Yao Qi <yao@codesourcery.com>
566
567 * tracepoint.c (trace_file_writer_xfree): New.
568 (struct tfile_writer_data): New.
569 (tfile_dtor, tfile_can_target_save, tfile_start): New.
570 (tfile_write_header, tfile_write_regblock_type): New.
571 (tfile_write_status, tfile_write_uploaded_tsv): New.
572 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
573 (tfile_write_raw_data, (tfile_end): New.
574 (tfile_write_ops): New global variable.
575 (TRACE_WRITE_R_BLOCK): New macro.
576 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
577 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
578 (TRACE_WRITE_V_BLOCK): New macro.
579 (trace_save): Add extra one parameter WRITER. Make it static.
580 Use WRITER to writer trace.
581 (tfile_trace_file_writer_new): New.
582 (trace_save_command): Caller update.
583 (trace_save_tfile): Write trace data in TFILE format.
584 * tracepoint.h (struct trace_frame_write_ops): New.
585 (struct trace_file_write_ops): New.
586 (struct trace_file_writer): New.
587 (trace_save): Remove its declaration.
588 (trace_save_tfile): Declare it.
589 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
590 instead of trace_save.
591
58665b40
PA
5922013-03-13 Pedro Alves <palves@redhat.com>
593
594 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
595
10217050
PA
5962013-03-13 Pedro Alves <palves@redhat.com>
597
598 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
599 commented out code.
600 * demangle.c (current_demangling_style_string): Make it const.
601 (set_demangling_command): Assert the demangling style is known.
602 Remove all handling of unknown styles. Set
603 'current_demangling_style_string' to an element of the
604 demangling_style_names array.
605 (set_demangling_style): Delete.
606 (_initialize_demangler): Set current_demangling_style_string to the
607 element of the demangling_style_names array that corresponds to
608 the default demangling style. Remove FIXME note. Don't call
609 set_demangling_style.
610 * gdb-demangle.h (set_demangling_style): Remove declaration.
611
6f937416
PA
6122013-03-13 Pedro Alves <palves@redhat.com>
613
614 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
615 fields const.
616 (ada_make_symbol_completion_list): Make "text0" parameter const.
617 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
618 * breakpoint.c (condition_completer): Make "text" and "word"
619 parameters const. Adjust.
620 (check_tracepoint_command): Adjust to validate_actionline
621 prototype change.
622 (catch_syscall_completer): Make "text" and "word" parameters
623 const.
624 * cli/cli-cmds.c (show_user): Make "comname" local const.
625 (valid_command_p): Make "command" parameter const.
626 (alias_command): Make "alias_prefix" and "command_prefix" locals
627 const.
628 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
629 (add_alias_cmd): Make "name" and "oldname" parameters const.
630 Adjust. No longer make copy of OLDNAME.
631 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
632 (add_setshow_cmd_full, add_setshow_enum_cmd)
633 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
634 (add_setshow_filename_cmd, add_setshow_string_cmd)
635 (add_setshow_string_noescape_cmd)
636 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
637 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
638 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
639 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
640 Make "name" parameter const.
641 (help_cmd): Rename "command" parameter to "arg". New const local
642 "command".
643 (find_cmd): Make "command" parameter const.
644 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
645 deprecated_cmd_warning prototype change.
646 (undef_cmd_error): Make "cmdtype" parameter const.
647 (lookup_cmd): Make "line" parameter const.
648 (deprecated_cmd_warning): Change type of "text" parameter to
649 pointer to const char, from pointer to pointer to char. Adjust.
650 (lookup_cmd_composition): Make "text" parameter const.
651 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
652 parameters const.
653 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
654 const.
655 * cli/cli-script.c (validate_comname): Make "tem" local const.
656 (define_command): New const local "tem_c". Use it in calls to
657 lookup_cmd.
658 (document_command): Make "tem" and "comfull" locals const.
659 (show_user_1): Make "prefix" and "name" parameters const.
660 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
661 const.
662 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
663 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
664 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
665 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
666 (complete_on_enum, add_setshow_enum_cmd)
667 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
668 (add_setshow_filename_cmd, add_setshow_string_cmd)
669 (add_setshow_string_noescape_cmd)
670 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
671 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
672 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
673 Change prototypes, constifying strings.
674 * completer.c (noop_completer, filename_completer): Make "text"
675 and "prefix" parameters const.
676 (location_completer, expression_completer)
677 (complete_line_internal): Make "text" and "prefix" parameters
678 const and adjust.
679 (command_completer, signal_completer): Make "text" and "prefix"
680 parameters const.
681 * completer.h (noop_completer, filename_completer)
682 (expression_completer, location_completer, command_completer)
683 (signal_completer): Change prototypes.
684 * corefile.c (complete_set_gnutarget): Make "text" and "word"
685 parameters const.
686 * cp-abi.c (cp_abi_completer): Likewise.
687 * expression.h (parse_expression_for_completion): Change
688 prototype.
689 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
690 parameters const.
691 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
692 * infrun.c (handle_completer): Make "text" and "word" parameters
693 const.
694 * interps.c (interpreter_completer): Make "text" and "word"
695 parameters const.
696 * language.h (struct language_defn)
697 <la_make_symbol_completion_list>: Make "text" and "word"
698 parameters const.
699 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
700 (parse_exp_in_context): Rename to ...
701 (parse_exp_in_context_1): ... this.
702 (parse_exp_in_context): Reimplement, with const hack from
703 parse_exp_1.
704 (parse_expression_for_completion): Make "string" parameter const.
705 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
706 to pointer to const char. Adjust.
707 (print_command_1): Make "exp" parameter const.
708 (output_command): Rename to ...
709 (output_command_const): ... this. Make "exp" parameter const.
710 (output_command): Reimplement.
711 (x_command): Adjust.
712 (display_command): Rename "exp" parameter to "arg". New "exp"
713 local, const version of "arg".
714 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
715 "cmd_name" local const.
716 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
717 call.
718 (cmdpy_completer): Make "text" and "word" parameters const.
719 (gdbpy_parse_command_name): Make "prefix_text2" local const.
720 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
721 const.
722 * remote.c (_initialize_remote): Make "cmd_name" local const.
723 * symtab.c (language_search_unquoted_string): Make "text" and "p"
724 parameters const. Adjust.
725 (completion_list_add_fields): Make "sym_text", "text" and "word"
726 parameters const.
727 (struct add_name_data) <sym_text, text, word>: Make fields const.
728 (default_make_symbol_completion_list_break_on): Make "text" and
729 "word" parameters const. Adjust locals.
730 (default_make_symbol_completion_list)
731 (make_symbol_completion_list, make_symbol_completion_type)
732 (make_symbol_completion_list_fn): Make "text" and "word"
733 parameters const.
734 (make_file_symbol_completion_list): Make "text", "word" and
735 "srcfile" parameters const. Adjust locals.
736 (add_filename_to_list): Make "text" and "word" parameters const.
737 (struct add_partial_filename_data) <text, word>: Make fields
738 const.
739 (make_source_files_completion_list): Make "text" and "word"
740 parameters const.
741 * symtab.h (default_make_symbol_completion_list_break_on)
742 (default_make_symbol_completion_list, make_symbol_completion_list)
743 (make_symbol_completion_type enum type_code)
744 (make_symbol_completion_list_fn make_file_symbol_completion_list)
745 (make_source_files_completion_list): Change prototype.
746 * top.c (execute_command): Adjust to pass pointer to pointer to
747 const char to lookup_cmd, and to deprecated_cmd_warning prototype
748 change.
749 (set_verbose): Make "cmdname" local const.
750 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
751 and adjust.
752 (validate_actionline): Make "line" parameter a pointer to const
753 char, and adjust.
754 (encode_actions_1): Make "action_exp" local const, and adjust.
755 (encode_actions): Adjust.
756 (replace_comma): Delete.
757 (trace_dump_actions): Make "action_exp" and "next_comma" locals
758 const, and adjust. Don't frob the action string while splitting
759 it at commas. Instead, make a copy of each split substring in
760 turn.
761 (trace_dump_command): Adjust to validate_actionline prototype
762 change.
763 * tracepoint.h (decode_agent_options, decode_agent_options)
764 (encode_actions, validate_actionline): Change prototypes.
765 * valprint.h (output_command): Delete declaration.
766 (output_command_const): Declare.
767 * value.c (function_destroyer): Cast const away in xfree call.
768
a0bcdaa7
PA
7692013-03-13 Pedro Alves <palves@redhat.com>
770
771 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
772 rather than casting 'const char * const *' to 'const char **'.
773 * ada-lex.l (processInt): Make "trailer" local const. Remove
774 'const char **' cast.
775 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
776 locals, and use those as strtol output pointer, instead than doing
777 invalid casts to from 'const char **' to 'char **'.
778 (_initialize_demangle): Remove cast.
779 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
780 locals, and use those as strtol output pointer, instead than doing
781 invalid casts to from 'const char **' to 'char **'.
782 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
783 casts.
784 * stap-probe.c (stap_parse_register_operand)
785 (stap_parse_single_operand): Likewise.
786
8ddb1965
YQ
7872013-03-13 Yao Qi <yao@codesourcery.com>
788
789 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
790 the last matched 'V' blcok in trace frame.
791
2d450646
JB
7922013-03-12 Joel Brobecker <brobecker@adacore.com>
793
794 * NEWS: Create a new section for the next release branch.
795 Rename the section of the current branch, now that it has
796 been cut.
797
b4b79973 7982013-03-12 Joel Brobecker <brobecker@adacore.com>
799
800 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
801 * version.in: Bump version to 7.6.50.20130312-cvs.
802
ee047554
KS
8032013-03-12 Keith Seitz <keiths@redhat.com>
804
805 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
806 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
807 Remove temporary copy of input string.
808 (mi_execute_command_wrapper): Make "cmd" const.
809 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
810 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
811 Use const strings.
812 (mi_parse): Make "cmd" const.
813 Use const strings.
814 * mi/mi-parse.h (mi_parse): Make "cmd" const.
815
bbc13ae3
KS
8162013-03-12 Keith Seitz <keiths@redhat.com>
817
818 * ada-lang.c (ada_read_renaming_var_value): Pass const
819 pointer to expression string to parse_exp_1.
820 (create_excep_cond_exprs): Likewise.
821 * ax-gdb.c (agent_eval_command_one): Likewise.
822 (maint_agent_printf_command): Likewise.
823 Constify much of the string handling/parsing.
824 * breakpoint.c (set_breakpoint_condition): Pass const
825 pointer to expression string to parse_exp_1.
826 (update_watchpoint): Likewise.
827 (parse_cmd_to_aexpr): Constify string handling.
828 Pass const pointer to parse_exp_1.
829 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
830 (find_condition_and_thread): Likewise.
831 Make TOK const.
832 (watch_command_1): Make "arg" const.
833 Constify string handling.
834 Copy the expression string instead of changing the input
835 string.
836 (update_breakpoint_location): Pass const pointer to
837 parse_exp_1.
838 * eval.c (parse_and_eval_address): Make "exp" const.
839 (parse_to_comma_and_eval): Make "expp" const.
840 (parse_and_eval): Make "exp" const.
841 * expression.h (parse_expression): Make argument const.
842 (parse_exp_1): Make first argument const.
843 * findcmd.c (parse_find_args): Treat "args" as const.
844 * linespec.c (parse_linespec): Pass const pointer to
845 linespec_expression_to_pc.
846 (linespec_expression_to_pc): Make "exp_ptr" const.
847 * parse.c (parse_exp_1): Make "stringptr" const.
848 Make a copy of the expression to pass to parse_exp_in_context until
849 this whole interface can be constified.
850 (parse_expression): Make "string" const.
851 * printcmd.c (ui_printf): Treat "arg" as const.
852 Handle const strings.
853 * tracepoint.c (validate_actionline): Pass const pointer to
854 all calls to parse_exp_1.
855 (encode_actions_1): Likewise.
856 * value.h (parse_to_comma_and_eval): Make argument const.
857 (parse_and_eval_address): Likewise.
858 (parse_and_eval): Likewise.
859 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
860 (varobj_set_value): Likewise.
861 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
862 constify string handling.
863 Pass const pointers to parse_and_eval_address and
864 parse_to_comman_and_eval.
865 * cli/cli-utils.c (skip_to_space): Rename to ...
866 (skip_to_space_const): ... this. Handle const strings.
867 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
868 skip_to_space_const.
869 (skip_to_space_const): Declare.
870 * common/format.c (parse_format_string): Make "arg" const.
871 Handle const strings.
872 * common/format.h (parse_format_string): Make "arg" const.
873 * gdbserver/ax.c (ax_printf): Make "format" const.
874 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
875 of the expression string.
876
f3cec7e6
HZ
8772013-03-12 Hui Zhu <hui@codesourcery.com>
878
879 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
880
9df7235c
HZ
8812013-03-12 Yao Qi <yao@codesourcery.com>
882 Hui Zhu <hui@codesourcery.com>
883
884 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
885 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
886 DW_OP_deref_size.
887
82d049ab
PH
8882013-03-12 Paul Hilfinger <hilfingr@adacore.com>
889
890 * ada-lex.l (rules): Only recognize 'thread' as a
891 delimiter when followed by numerals, as for c-exp.y.
892 Use new rewind_to_char function to rewind the input for
893 expression-delimiting tokens.
894 (rewind_to_char): New function.
895
8c1fb155
JK
8962013-03-11 Pedro Alves <palves@redhat.com>
897 Jan Kratochvil <jan.kratochvil@redhat.com>
898
899 * configure: Regenerate.
900 * configure.ac (check dynamic export flag): Link python test with
901 $PYTHON_LIBS.
902
cc81e1c6
DE
9032013-03-11 Doug Evans <dje@google.com>
904 Keith Seitz <keiths@redhat.com>
905
906 * linespec.c (find_linespec_symbols): Call find_function_symbols
907 first, and then call lookup_prefix_sym/find_method.
908
39086a0e
PA
9092013-03-11 Pedro Alves <palves@redhat.com>
910
911 * charset.c (convert_between_encodings): Don't cast between
912 different pointer to pointer types. Instead, make the 'inp' local
913 be of the type iconv expects.
914 (wchar_iterate): Don't cast between different pointer to pointer
915 types. Instead, use new pointer local of the type iconv expects.
916 * target.c (target_read_stralloc, target_fileio_read_stralloc):
917 Add new local of type char pointer, and use it to get a
918 char/string view of the byte buffer, instead of casting between
919 pointer to pointer types.
920
90585175
HAQ
9212013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
922
923 * remote.c (remote_set_trace_buffer_size): Move != operator
924 to the start of next line to fix an ARI warning.
925
59ea5688
MM
9262013-03-11 Markus Metzger <markus.t.metzger@intel.com>
927
928 * NEWS: Add record changes.
929
946287b7
MM
9302013-03-11 Markus Metzger <markus.t.metzger@intel.com>
931
932 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
933 the instruction history disassembly.
934 * disasm.c (dump_insns): Omit the pc prefix, if requested.
935 * disasm.h (DISASSEMBLY_OMIT_PC): New.
936
afedecd3
MM
9372013-03-11 Markus Metzger <markus.t.metzger@intel.com>
938
939 * Makefile.in (SFILES): Add record-btrace.c
940 (COMMON_OBS): Add record-btrace.o
941 * record-btrace.c: New.
942 * objfiles.c: Include btrace.h.
943 (free_objfile): call btrace_free_objfile.
944
15984c13
MM
9452013-03-11 Markus Metzger <markus.t.metzger@intel.com>
946
947 * target.c (target_call_history, target_call_history_from,
948 target_call_history_range): New.
949 * target.h (target_ops) <to_call_history, to_call_history_from,
950 to_call_history_range>: New fields.
951 (target_call_history, target_call_history_from,
952 target_call_history_range): New declaration.
953 * record.c (get_call_history_modifiers, cmd_record_call_history,
954 record_call_history_size): New.
955 (_initialize_record): Add the "record function-call-history" command.
956 Add "set/show record function-call-history-size" commands.
957 * record.h (record_print_flag): New.
958
67c86d06
MM
9592013-03-11 Markus Metzger <markus.t.metzger@intel.com>
960
961 * target.h (target_ops) <to_insn_history, to_insn_history_from,
962 to_insn_history_range>: New fields.
963 (target_insn_history): New.
964 (target_insn_history_from): New.
965 (target_insn_history_range): New.
966 * target.c (target_insn_history): New.
967 (target_insn_history_from): New.
968 (target_insn_history_range): New.
969 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
970 (record_insn_history_size): New.
971 (get_insn_number): New.
972 (get_context_size): New.
973 (no_chunk): New.
974 (get_insn_history_modifiers): New.
975 (cmd_record_insn_history): New.
976 (_initialize_record): Add "set/show record instruction-history-size"
977 command. Add "record instruction-history" command.
978
7c1687a9
MM
9792013-03-11 Markus Metzger <markus.t.metzger@intel.com>
980
981 * record.h (record_disconnect): New.
982 (record_detach): New.
983 (record_mourn_inferior): New.
984 (record_kill): New.
985 * record-full.c (record_disconnect, record_detach,
986 record_mourn_inferior, record_kill): Move to...
987 * record.c: ...here.
988 (DEBUG): New.
989 (record_stop): New.
990 (record_unpush): New.
991 (cmd_record_stop): Call record_stop. Replace unpush_target
992 call with record_unpush call.
993 (record_disconnect, record_detach): Assert that the target
994 is of record stratum. Call record_unpush, record_stop, and
995 DEBUG.
996 (record_mourn_inferior, record_kill): Assert that the target
997 is of record stratum. Call record_unpush and DEBUG.
998
25ea693b
MM
9992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1000
1001 * record-full.h, record-full.c (record_memory_query): Rename
1002 to ...
1003 (record_full_memory_query): ...this. Update all users.
1004 (record_arch_list_add_reg): Rename to ...
1005 (record_full_arch_list_add_reg): ...this. Update all users.
1006 (record_arch_list_add_mem): Rename to ...
1007 (record_full_arch_list_add_mem): ...this. Update all users.
1008 (record_arch_list_add_end): Rename to ...
1009 (record_full_arch_list_add_end): ...this. Update all users.
1010 (record_gdb_operation_disable_set): Rename to ...
1011 (record_full_gdb_operation_disable_set): ...this.
1012 Update all users.
1013
88d1aa9d
MM
10142013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1015
1016 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
1017 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
1018 (RECORD_IS_REPLAY): Renamed to ...
1019 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
1020 (RECORD_FILE_MAGIC): Renamed to ...
1021 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
1022 (record_mem_entry): Renamed to ...
1023 (record_full_mem_entry): ... this. Updated all users.
1024 (record_reg_entry): Renamed to ...
1025 (record_full_reg_entry): ... this. Updated all users.
1026 (record_end_entry): Renamed to ...
1027 (record_full_end_entry): ... this. Updated all users.
1028 (record_type) <record_end, record_reg, record_mem>: Renamed
1029 to ...
1030 (record_full_type) <record_full_end, record_full_reg,
1031 record_full_mem>: ... this. Updated all users.
1032 (record_entry): Renamed to ...
1033 (record_full_entry): ... this. Updated all users.
1034 (record_core_buf_entry): Renamed to ...
1035 (record_full_core_buf_entry): ... this. Updated all users.
1036 (record_core_regbuf): Renamed to ...
1037 (record_full_core_regbuf): ... this. Updated all users.
1038 (record_core_start): Renamed to ...
1039 (record_full_core_start): ... this. Updated all users.
1040 (record_core_end): Renamed to ...
1041 (record_full_core_end): ... this. Updated all users.
1042 (record_core_buf_list): Renamed to ...
1043 (record_full_core_buf_list): ... this. Updated all users.
1044 (record_first): Renamed to ...
1045 (record_full_first): ... this. Updated all users.
1046 (record_list): Renamed to ...
1047 (record_full_list): ... this. Updated all users.
1048 (record_arch_list_head): Renamed to ...
1049 (record_full_arch_list_head): ... this. Updated all users.
1050 (record_arch_list_tail): Renamed to ...
1051 (record_full_arch_list_tail): ... this. Updated all users.
1052 (record_stop_at_limit): Renamed to ...
1053 (record_full_stop_at_limit): ... this. Updated all users.
1054 (record_insn_max_num): Renamed to ...
1055 (record_full_insn_max_num): ... this. Updated all users.
1056 (record_insn_num): Renamed to ...
1057 (record_full_insn_num): ... this. Updated all users.
1058 (record_insn_count): Renamed to ...
1059 (record_full_insn_count): ... this. Updated all users.
1060 (record_ops): Renamed to ...
1061 (record_full_ops): ... this. Updated all users.
1062 (record_core_ops): Renamed to ...
1063 (record_full_core_ops): ... this. Updated all users.
1064 (set_record_cmdlist): Renamed to ...
1065 (set_record_full_cmdlist): ... this. Updated all users.
1066 (show_record_cmdlist): Renamed to ...
1067 (show_record_full_cmdlist): ... this. Updated all users.
1068 (record_cmdlist): Renamed to ...
1069 (record_full_cmdlist): ... this. Updated all users.
1070 (record_beneath_to_resume_ops): Renamed to ...
1071 (record_full_beneath_to_resume_ops): ... this. Updated all users.
1072 (record_beneath_to_resume): Renamed to ...
1073 (record_full_beneath_to_resume): ... this. Updated all users.
1074 (record_beneath_to_wait_ops): Renamed to ...
1075 (record_full_beneath_to_wait_ops): ... this. Updated all users.
1076 (record_beneath_to_wait): Renamed to ...
1077 (record_full_beneath_to_wait): ... this. Updated all users.
1078 (record_beneath_to_store_registers_ops): Renamed to ...
1079 (record_full_beneath_to_store_registers_ops): ... this.
1080 Updated all users.
1081 (record_beneath_to_store_registers): Renamed to ...
1082 (record_full_beneath_to_store_registers): ... this.
1083 Updated all users.
1084 (record_beneath_to_xfer_partial_ops): Renamed to ...
1085 (record_full_beneath_to_xfer_partial_ops): ... this.
1086 Updated all users.
1087 (record_beneath_to_xfer_partial): Renamed to ...
1088 (record_full_beneath_to_xfer_partial): ... this.
1089 Updated all users.
1090 (record_beneath_to_insert_breakpoint): Renamed to ...
1091 (record_full_beneath_to_insert_breakpoint): ... this.
1092 Updated all users.
1093 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
1094 (record_full_beneath_to_stopped_by_watchpoint): ... this.
1095 Updated all users.
1096 (record_beneath_to_stopped_data_address): Renamed to ...
1097 (record_full_beneath_to_stopped_data_address): ... this.
1098 Updated all users.
1099 (record_beneath_to_async): Renamed to ...
1100 (record_full_beneath_to_async): ... this. Updated all users.
1101 (record_goto_insn): Renamed to ...
1102 (record_full_goto_insn): ... this. Updated all users.
1103 (record_save): Renamed to ...
1104 (record_full_save): ... this. Updated all users.
1105 (record_reg_alloc): Renamed to ...
1106 (record_full_reg_alloc): ... this. Updated all users.
1107 (record_reg_release): Renamed to ...
1108 (record_full_reg_release): ... this. Updated all users.
1109 (record_mem_alloc): Renamed to ...
1110 (record_full_mem_alloc): ... this. Updated all users.
1111 (record_mem_release): Renamed to ...
1112 (record_full_mem_release): ... this. Updated all users.
1113 (record_end_alloc): Renamed to ...
1114 (record_full_end_alloc): ... this. Updated all users.
1115 (record_end_release): Renamed to ...
1116 (record_full_end_release): ... this. Updated all users.
1117 (record_entry_release): Renamed to ...
1118 (record_full_entry_release): ... this. Updated all users.
1119 (record_list_release): Renamed to ...
1120 (record_full_list_release): ... this. Updated all users.
1121 (record_list_release_following): Renamed to ...
1122 (record_full_list_release_following): ... this.
1123 Updated all users.
1124 (record_list_release_first): Renamed to ...
1125 (record_full_list_release_first): ... this. Updated all users.
1126 (record_arch_list_add): Renamed to ...
1127 (record_full_arch_list_add): ... this. Updated all users.
1128 (record_get_loc): Renamed to ...
1129 (record_full_get_loc): ... this. Updated all users.
1130 (record_check_insn_num): Renamed to ...
1131 (record_full_check_insn_num): ... this. Updated all users.
1132 (record_arch_list_cleanups): Renamed to ...
1133 (record_full_arch_list_cleanups): ... this. Updated all users.
1134 (record_message): Renamed to ...
1135 (record_full_message): ... this. Updated all users.
1136 (record_message_wrapper): Renamed to ...
1137 (record_full_message_wrapper): ... this. Updated all users.
1138 (record_message_wrapper_safe): Renamed to ...
1139 (record_full_message_wrapper_safe): ... this. Updated all users.
1140 (record_gdb_operation_disable): Renamed to ...
1141 (record_full_gdb_operation_disable): ... this. Updated all users.
1142 (record_hw_watchpoint): Renamed to ...
1143 (record_full_hw_watchpoint): ... this. Updated all users.
1144 (record_exec_insn): Renamed to ...
1145 (record_full_exec_insn): ... this. Updated all users.
1146 (record_restore): Renamed to ...
1147 (record_full_restore): ... this. Updated all users.
1148 (record_async_inferior_event_token): Renamed to ...
1149 (record_full_async_inferior_event_token): ... this.
1150 Updated all users.
1151 (record_async_inferior_event_handler): Renamed to ...
1152 (record_full_async_inferior_event_handler): ... this.
1153 Updated all users.
1154 (record_core_open_1): Renamed to ...
1155 (record_full_core_open_1): ... this. Updated all users.
1156 (record_open_1): Renamed to ...
1157 (record_full_open_1): ... this. Updated all users.
1158 (record_open): Renamed to ...
1159 (record_full_open): ... this. Updated all users.
1160 (record_close): Renamed to ...
1161 (record_full_close): ... this. Updated all users.
1162 (record_resume_step): Renamed to ...
1163 (record_full_resume_step): ... this. Updated all users.
1164 (record_resumed): Renamed to ...
1165 (record_full_resumed): ... this. Updated all users.
1166 (record_execution_dir): Renamed to ...
1167 (record_full_execution_dir): ... this. Updated all users.
1168 (record_resume): Renamed to ...
1169 (record_full_resume): ... this. Updated all users.
1170 (record_get_sig): Renamed to ...
1171 (record_full_get_sig): ... this. Updated all users.
1172 (record_sig_handler): Renamed to ...
1173 (record_full_sig_handler): ... this. Updated all users.
1174 (record_wait_cleanups): Renamed to ...
1175 (record_full_wait_cleanups): ... this. Updated all users.
1176 (record_wait_1): Renamed to ...
1177 (record_full_wait_1): ... this. Updated all users.
1178 (record_wait): Renamed to ...
1179 (record_full_wait): ... this. Updated all users.
1180 (record_stopped_by_watchpoint): Renamed to ...
1181 (record_full_stopped_by_watchpoint): ... this. Updated all users.
1182 (record_disconnect): Renamed to ...
1183 (record_full_disconnect): ... this. Updated all users.
1184 (record_detach): Renamed to ...
1185 (record_full_detach): ... this. Updated all users.
1186 (record_mourn_inferior): Renamed to ...
1187 (record_full_mourn_inferior): ... this. Updated all users.
1188 (record_kill): Renamed to ...
1189 (record_full_kill): ... this. Updated all users.
1190 (record_stopped_data_address): Renamed to ...
1191 (record_full_stopped_data_address): ... this. Updated all users.
1192 (record_registers_change): Renamed to ...
1193 (record_full_registers_change): ... this. Updated all users.
1194 (record_store_registers): Renamed to ...
1195 (record_full_store_registers): ... this. Updated all users.
1196 (record_xfer_partial): Renamed to ...
1197 (record_full_xfer_partial): ... this. Updated all users.
1198 (record_breakpoint): Renamed to ...
1199 (record_full_breakpoint): ... this. Updated all users.
1200 (record_breakpoint_p): Renamed to ...
1201 (record_full_breakpoint_p): ... this. Updated all users.
1202 (record_breakpoints): Renamed to ...
1203 (record_full_breakpoints): ... this. Updated all users.
1204 (record_sync_record_breakpoints): Renamed to ...
1205 (record_full_sync_record_breakpoints): ... this.
1206 Updated all users.
1207 (record_init_record_breakpoints): Renamed to ...
1208 (record_full_init_record_breakpoints): ... this.
1209 Updated all users.
1210 (record_insert_breakpoint): Renamed to ...
1211 (record_full_insert_breakpoint): ... this. Updated all users.
1212 (record_remove_breakpoint): Renamed to ...
1213 (record_full_remove_breakpoint): ... this. Updated all users.
1214 (record_can_execute_reverse): Renamed to ...
1215 (record_full_can_execute_reverse): ... this. Updated all users.
1216 (record_get_bookmark): Renamed to ...
1217 (record_full_get_bookmark): ... this. Updated all users.
1218 (record_goto_bookmark): Renamed to ...
1219 (record_full_goto_bookmark): ... this. Updated all users.
1220 (record_async): Renamed to ...
1221 (record_full_async): ... this. Updated all users.
1222 (record_can_async_p): Renamed to ...
1223 (record_full_can_async_p): ... this. Updated all users.
1224 (record_is_async_p): Renamed to ...
1225 (record_full_is_async_p): ... this. Updated all users.
1226 (record_execution_direction): Renamed to ...
1227 (record_full_execution_direction): ... this. Updated all users.
1228 (record_info): Renamed to ...
1229 (record_full_info): ... this. Updated all users.
1230 (record_delete): Renamed to ...
1231 (record_full_delete): ... this. Updated all users.
1232 (record_is_replaying): Renamed to ...
1233 (record_full_is_replaying): ... this. Updated all users.
1234 (record_goto_entry): Renamed to ...
1235 (record_full_goto_entry): ... this. Updated all users.
1236 (record_goto_begin): Renamed to ...
1237 (record_full_goto_begin): ... this. Updated all users.
1238 (record_goto_end): Renamed to ...
1239 (record_full_goto_end): ... this. Updated all users.
1240 (record_goto): Renamed to ...
1241 (record_full_goto): ... this. Updated all users.
1242 (init_record_ops): Renamed to ...
1243 (init_record_full_ops): ... this. Updated all users.
1244 (record_core_resume): Renamed to ...
1245 (record_full_core_resume): ... this. Updated all users.
1246 (record_core_kill): Renamed to ...
1247 (record_full_core_kill): ... this. Updated all users.
1248 (record_core_fetch_registers): Renamed to ...
1249 (record_full_core_fetch_registers): ... this. Updated all users.
1250 (record_core_prepare_to_store): Renamed to ...
1251 (record_full_core_prepare_to_store): ... this. Updated all users.
1252 (record_core_store_registers): Renamed to ...
1253 (record_full_core_store_registers): ... this. Updated all users.
1254 (record_core_xfer_partial): Renamed to ...
1255 (record_full_core_xfer_partial): ... this. Updated all users.
1256 (record_core_insert_breakpoint): Renamed to ...
1257 (record_full_core_insert_breakpoint): ... this. Updated all users.
1258 (record_core_remove_breakpoint): Renamed to ...
1259 (record_full_core_remove_breakpoint): ... this. Updated all users.
1260 (record_core_has_execution): Renamed to ...
1261 (record_full_core_has_execution): ... this. Updated all users.
1262 (init_record_core_ops): Renamed to ...
1263 (init_record_full_core_ops): ... this. Updated all users.
1264 (cmd_record_restore): Renamed to ...
1265 (cmd_record_full_restore): ... this. Updated all users.
1266 (record_save_cleanups): Renamed to ...
1267 (record_full_save_cleanups): ... this. Updated all users.
1268 (cmd_record_start): Renamed to ...
1269 (cmd_record_full_start): ... this. Updated all users.
1270 (set_record_insn_max_num): Renamed to ...
1271 (set_record_full_insn_max_num): ... this. Updated all users.
1272 (set_record_command): Renamed to ...
1273 (set_record_full_command): ... this. Updated all users.
1274 (show_record_command): Renamed to ...
1275 (show_record_full_command): ... this. Updated all users.
1276 (_initialize_record): Renamed to ...
1277 (_initialize_record_full): ... this. Updated all users.
1278
d02ed0bb
MM
12792013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1280
1281 * record.h: Split into this and ...
1282 * record-full.h: ... this.
1283 * record.c: Split into this and ...
1284 * record-full.c: ... this.
1285 * target.h (target_ops): Add new fields to_info_record,
1286 to_save_record, to_delete_record, to_record_is_replaying,
1287 to_goto_record_begin, to_goto_record_end, to_goto_record.
1288 (target_info_record): New.
1289 (target_save_record): New.
1290 (target_supports_delete_record): New.
1291 (target_delete_record): New.
1292 (target_record_is_replaying): New.
1293 (target_goto_record_begin): New.
1294 (target_goto_record_end): New.
1295 (target_goto_record): New.
1296 * target.c (target_info_record): New.
1297 (target_save_record): New.
1298 (target_supports_delete_record): New.
1299 (target_delete_record): New.
1300 (target_record_is_replaying): New.
1301 (target_goto_record_begin): New.
1302 (target_goto_record_end): New.
1303 (target_goto_record): New.
1304 * record.h: Declare struct cmd_list_element.
1305 (record_cmdlist): New declaration.
1306 (set_record_cmdlist): New declaration.
1307 (show_record_cmdlist): New declaration.
1308 (info_record_cmdlist): New declaration.
1309 (cmd_record_goto): New declaration.
1310 * record.c: Remove unnecessary includes.
1311 Include inferior.h.
1312 (cmd_record_goto): Remove declaration.
1313 (record_cmdlist): Now extern. Initialize.
1314 (set_record_cmdlist): Now extern. Initialize.
1315 (show_record_cmdlist): Now extern. Initialize.
1316 (info_record_cmdlist): Now extern. Initialize.
1317 (find_record_target): New.
1318 (require_record_target): New.
1319 (cmd_record_start): Update.
1320 (cmd_record_delete): Remove target-specific code.
1321 Call target_delete_record.
1322 (cmd_record_stop): Unpush any record target.
1323 (set_record_insn_max_num): Move to record-full.c
1324 (set_record_command): Add comment.
1325 (show_record_command): Add comment.
1326 (info_record_command): Update comment.
1327 Remove target-specific code.
1328 Call the record target's to_info_record.
1329 (cmd_record_start): New.
1330 (cmd_record_goto): Now extern.
1331 Remove target-specific code.
1332 Call target_goto_begin, target_goto_end, or target_goto.
1333 (_initialize_record): Move record target ops initialization to
1334 record-full.c.
1335 Change "record" command help text.
1336 Move "record restore", "record set", and "record show" commands to
1337 record-full.c.
1338 * Makefile.in (SFILES): Add record-full.c.
1339 (HFILES_NO_SRCDIR): Add record-full.h.
1340 (COMMON_OBS): Add record-full.o.
1341 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
1342 * arm-tdep.c: Include record-full.h.
1343 * i386-linux-tdep.c: Include record-full.h instead of record.h.
1344 * i386-tdep.c: Include record-full.h.
1345 * infrun.c: Include record-full.h.
1346 * linux-record.c: Include record-full.h.
1347 * moxie-tdep.c: Include record-full.h.
1348 * record-full.c: Include record-full.h.
1349 Change module comment.
1350 (set_record_full_cmdlist): New.
1351 (show_record_full_cmdlist): New.
1352 (record_full_cmdlist): New.
1353 (record_goto_insn): New declaration.
1354 (record_save): New declaration.
1355 (record_check_insn_num): Change query string.
1356 (record_info): New.
1357 (record_delete): New.
1358 (record_is_replaying): New.
1359 (record_goto_entry): New.
1360 (record_goto_begin): New.
1361 (record_goto_end): New.
1362 (record_goto): New.
1363 (init_record_ops): Update.
1364 (init_record_core_ops): Update.
1365 (cmd_record_save): Rename to record_save. Remove target and arg checks.
1366 (cmd_record_start): New.
1367 (set_record_insn_max_num): Moved from record.c
1368 (set_record_full_command): New.
1369 (show_record_full_command): New.
1370 (_initialize_record_full): New.
1371
b48d48eb
MM
13722013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1373
1374 * target.h (add_deprecated_target_alias): New.
1375 * target.c (add_deprecated_target_alias): New.
1376
a950d57c
MM
13772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1378
1379 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
1380 and signal.h.
1381 (linux_supports_btrace): Add kernel and
1382 cpuid check.
1383 (kernel_supports_btrace): New function.
1384 (cpu_supports_btrace): New function.
1385 (intel_supports_btrace): New function.
1386
9accd112
MM
13872013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1388
1389 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
1390 * remote.c: Include btrace.h.
1391 (struct btrace_target_info): New struct.
1392 (remote_supports_btrace): New function.
1393 (send_Qbtrace): New function.
1394 (remote_enable_btrace): New function.
1395 (remote_disable_btrace): New function.
1396 (remote_teardown_btrace): New function.
1397 (remote_read_btrace): New function.
1398 (init_remote_ops): Add btrace ops.
1399 (enum <unnamed>): Add btrace packets.
1400 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
1401 (_initialize_remote): Add packet configuration for branch tracing.
1402
c12a2917
MM
14032013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1404
1405 * features/btrace.dtd: New file.
1406 * Makefile.in (XMLFILES): Add btrace.dtd.
1407 * btrace.h (parse_xml_btrace): New declaration.
1408 * btrace.c: Include xml-support.h.
1409 (parse_xml_btrace): New function.
1410 (parse_xml_btrace_block): New function.
1411 (block_attributes): New struct.
1412 (btrace_attributes): New struct.
1413 (btrace_children): New struct.
1414 (btrace_elements): New struct.
1415
3e3aea48
MM
14162013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1417
1418 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
1419 (amd64_linux_enable_btrace): New.
1420 (amd64_linux_disable_btrace): New.
1421 (amd64_linux_teardown_btrace): New.
1422 (_initialize_amd64_linux_nat): Initialize btrace ops.
1423 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
1424 (i386_linux_enable_btrace): New.
1425 (i386_linux_disable_btrace): New.
1426 (i386_linux_teardown_btrace): New.
1427 (_initialize_i386_linux_nat): Initialize btrace ops.
1428 * config/i386/linux.mh: Add linux-btrace.o.
1429 * config/i386/linux64.mh: Add linux-btrace.o.
1430
7c97f91e
MM
14312013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1432
1433 * common/linux_btrace.h: New file.
1434 * common/linux_btrace.c: New file.
1435 * Makefile.in (SFILES): Add btrace.c.
1436 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
1437 (COMMON_OBS): Add btrace.o.
1438 (linux-btrace.o): New rule.
1439
1999790b 14402013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
1441
1442 * target.h: Include btrace.h.
1443 (struct target_ops) <to_supports_btrace, to_enable_btrace,
1444 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
1445 * target.c (target_supports_btrace): New function.
1446 (target_enable_btrace): New function.
1447 (target_disable_btrace): New function.
1448 (target_teardown_btrace): New function.
1449 (target_read_btrace): New function.
1450 * btrace.h: New file.
1451 * btrace.c: New file.
1452 * Makefile.in: Add btrace.c.
1453 * gdbthread.h: Include btrace.h.
1454 (struct thread_info): Add btrace field.
1455 * thread.c: Include btrace.h.
1456 (clear_thread_inferior_resources): Call target_teardown_btrace.
1457 * common/btrace-common.h: New file.
1458
61a31a67
JK
14592013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1460
1461 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
1462 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
1463 kill_status to outer block.
1464
05c56a9d
JK
14652013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1466
1467 Fix entry-values if the callee called a noreturn function.
1468 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
1469 get_frame_address_in_block. Add new comment.
1470
9112db09
JK
14712013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1472
1473 Fix entry-values in C++ across CUs.
1474 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
1475 lookup_minimal_symbol. Add a comment.
1476 * dwarf2read.c
1477 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
1478 DW_AT_linkage_name.
1479
9b67fcec
YQ
14802013-03-08 Yao Qi <yao@codesourcery.com>
1481
1482 * tracepoint.c (_initialize_tracepoint): Indent the code.
1483
6221be90
PA
14842013-03-08 Pedro Alves <palves@redhat.com>
1485
1486 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
1487 (parse_find_args, find_command): Change type of pattern buffer
1488 locals to 'gdb_byte *'.
1489
be9a119c 14902013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
1491 Hafiz Abid Qadeer <abidh@codesourcery.com>
1492
1493 * NEWS: Mention set and show trace-buffer-size commands.
1494 Mention new packet.
1495 * target.h (struct target_ops): New method
1496 to_set_trace_buffer_size.
1497 (target_set_trace_buffer_size): New macro.
1498 * target.c (update_current_target): Set up new method.
1499 * tracepoint.c (trace_buffer_size): New global.
1500 (start_tracing): Send it to the target.
1501 (set_trace_buffer_size): New function.
1502 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
1503 * remote.c (remote_set_trace_buffer_size): New function.
1504 (_initialize_remote): Use it.
1505 (QTBuffer:size) New remote command.
1506 (PACKET_QTBuffer_size): New enum.
1507 (remote_protocol_features): Add an entry for
1508 PACKET_QTBuffer_size.
1509
7da3ab79
TT
15102013-03-08 Tom Tromey <tromey@redhat.com>
1511
1512 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
1513 variable.
1514
0c1f71e7
PA
15152013-03-07 Pedro Alves <palves@redhat.com>
1516
1517 * target.c (target_read_stralloc, target_fileio_read_alloc):
1518 *Cast pointer to 'gdb_byte *' in target call.
1519
c8af03a2
PA
15202013-03-07 Pedro Alves <palves@redhat.com>
1521
1522 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
1523 call.
1524
529480d0
KS
15252013-03-07 Keith Seitz <keiths@redhat.com>
1526
1527 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
1528 (trace_pass_command): Likewise.
1529 * cli/cli-cmds.c: Include cli/cli-utils.h.
1530 (source_command): Use skip-spaces.
1531 (disassemble_command): Likewise.
1532 * findcmd.c: Include cli/cli-utils.h.
1533 (parse_find_args): Use skip_spaces.
1534 * go32-nat.c: Include cli/cli-utils.h.
1535 (go32_sldt): Use skip_spaces.
1536 (go32_sgdt): Likewise.
1537 (go32_sidt): Likewise.
1538 (go32_pde): Likewise.
1539 (go32_pte): Likewise.
1540 (go32_pte_for_address): Likewise.
1541 * infcmd.c: Include cli/cli-utils.h.
1542 (registers_info): Use skip_spaces.
1543 * linux-tdep.c (read_mapping): Use skip_spaces_const.
1544 (linux_info_proc): Likewise.
1545 * linux-thread-db.c: Include cli/cli-utils.h.
1546 (info_auto_load_libthread_db): Use skip_spaces_const.
1547 * m32r-rom.c: Include cli/cli-utils.h.
1548 (m32r_upload_command): Use skip_spaces.
1549 * maint.c: Include cli/cli-utils.h.
1550 (maintenance_translate_address): Use skip_spaces.
1551 * mi/mi-parse.c: Include cli/cli-utils.h.
1552 (mi_parse_argv): Use skip_spaces.
1553 (mi_parse): Likewise.
1554 * minsyms.c: Include cli/cli-utils.h.
1555 (msymbol_hash_iw): Use skip_spaces_const.
1556 * objc-lang.c: Include cli/cli-utils.h.
1557 (parse_selector): Use skip_spaces.
1558 (parse_method): Likewise.
1559 * python/python.c: Include cli/cli-utils.h.
1560 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
1561 (python_command)[HAVE_PYTHON]: Likewise.
1562 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
1563 * remote-m32r-sdi.c: Include cli/cli-utils.h.
1564 (m32r_load): Use skip_spaces.
1565 * serial.c: Include cli/cli-utils.h.
1566 (serial_open): Use skip_spaces_const.
1567 * stack.c: Include cli/cli-utils.h.
1568 (parse_frame_specification_1): Use skip_spaces_const.
1569 * symfile.c: Include cli/cli-utils.h.
1570 (set_ext_lang_command): Use skip_spaces.
1571 * symtab.c: Include cli/cli-utils.h.
1572 (rbreak_command): Use skip_spaces.
1573 * thread.c (thread_name_command): Use skip_spaces.
1574 * tracepoint.c (validate_actionline): Use skip_spaces.
1575 (encode_actions_1): Likewise.
1576 (trace_find_range_command): Likewise.
1577 (trace_find_outside_command): Likewise.
1578 (trace_dump_actions): Likewise.
1579
ac91cd70
PA
15802013-03-07 Pedro Alves <palves@redhat.com>
1581
1582 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
1583 * expprint.c (print_subexp_standard): Likewise.
1584 * utils.c (host_char_to_target): Likewise.
1585 * valprint.c (generic_emit_char, generic_printstr): Likewise.
1586 * varobj.c (value_get_print_value): Change type of local to char*.
1587 Cast it gdb_byte * in call to language printer.
1588
2898e560
PA
15892013-03-07 Pedro Alves <palves@redhat.com>
1590
1591 * charset.c (struct wchar_iterator) <input>: Change type to 'const
1592 gdb_byte *'.
1593 (make_wchar_iterator): Remove cast to char*.
1594 (wchar_iterate): Change type of local.
1595
a09b4448
PA
15962013-03-07 Pedro Alves <palves@redhat.com>
1597
1598 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
1599 for 'regcache->register_status'.
1600
20ced3e4
PA
16012013-03-07 Pedro Alves <palves@redhat.com>
1602
c2d6a675 1603 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
1604 int.
1605
fe106009
PA
16062013-03-07 Pedro Alves <palves@redhat.com>
1607
1608 * stap-probe.c (handle_stap_probe): Add cast to char*.
1609
8ac2c12b
PA
16102013-03-07 Pedro Alves <palves@redhat.com>
1611
1612 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
1613 RECORD_MSGRCV>: Pass a signed variable to
1614 regcache_raw_read_signed, instead of an unsigned one.
1615
99f0a309
PA
16162013-03-07 Pedro Alves <palves@redhat.com>
1617
1618 * remote-notif.c (notif_debug): Change type to int.
1619 * remote-notif.h (notif_debug): Likewise.
1620
964b8317
PA
16212013-03-07 Pedro Alves <palves@redhat.com>
1622
1623 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
1624
f0cc8ad4
PA
16252013-03-07 Pedro Alves <palves@redhat.com>
1626
1627 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
1628 * remote.h (hex2bin, bin2hex): ... here.
1629 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
1630
77dec115
EZ
16312013-03-07 Eli Zaretskii <eliz@gnu.org>
1632
1633 * utils.c (initialize_utils): Improve doc strings of "set/show
1634 width", "set/show height", and "set/show pagination".
1635
741d92cf
KS
16362013-03-06 Keith Seitz <keiths@redhat.com>
1637
1638 * ax-gdb.c (gen_printf): Make FORMAT const.
1639 * ax-gdb.h (gen_printf): Likewise.
1640 * ax-general.c (ax_string): Make STR const.
1641 * ax.h (ax_string): Likewise.
1642
7b6c814e
DE
16432013-03-06 Doug Evans <dje@google.com>
1644
1645 * elfread.c (elf_symfile_read): Move debugging printf to more
1646 logical location.
1647
634334ab
PA
16482013-03-06 Pedro Alves <palves@redhat.com>
1649
1650 * python/py-utils.c (target_string_to_unicode): Delete function.
1651 * python/python-internal.h (target_string_to_unicode): Delete
1652 declaration.
1653
e482a1a7
PM
16542013-03-06 Pierre Muller <muller@sourceware.org>
1655
1656 * linespec.c (get_current_search_block): ARI fix, use (void)
1657 for empty parameter list.
1658
4eeaa230
DE
16592013-03-05 Doug Evans <dje@google.com>
1660
1661 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
1662 of old ada_lookup_symbol_list. In !full_search case, don't
1663 search superblocks.
1664 (ada_lookup_symbol_list): Delete arg full_search, all callers
1665 updated. Call ada_lookup_symbol_list_worker.
1666 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
1667 * ada-lang.h (ada_lookup_symbol_list): Update.
1668 * language.h (language_defn): Update comment for
1669 la_iterate_over_symbols.
1670 * linespec.c (iterate_over_file_blocks): New function.
1671 (iterate_over_all_matching_symtabs): Call it.
1672 (lookup_prefix_sym): Ditto.
1673 (get_current_search_block): New function.
1674 (get_search_block): Delete.
1675 (find_label_symbols): Call get_current_search_block.
1676 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
1677 * symtab.c (iterate_over_symbols): Don't search superblocks.
1678
b69b1fb1
YQ
16792013-03-05 Yao Qi <yao@codesourcery.com>
1680
1681 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
1682 parameter VAR's type from "unsigned int" to "int".
1683 * command.h (var_zuinteger_unlimited): Update its comments.
1684 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
1685
3c095f49
CV
16862013-03-05 Corinna Vinschen <vinschen@redhat.de>
1687
1688 * NEWS: Mention new target x86_64-*-cygwin*.
1689
b5b0b0af
CV
16902013-03-05 Corinna Vinschen <vinschen@redhat.de>
1691
1692 * configure.host: Add x86_64-*-cygwin* as host.
1693 * configure.tgt: Add x86_64-*-cygwin* as target.
1694 * config/i386/cygwin64.mh: New file.
1695
f6f99966
JK
16962013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1697
1698 * linespec.c (decode_line_2): Fix duplicate request off by two message.
1699
33f448b1
JK
17002013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1701
1702 * linespec.c (struct linespec_canonical_name): New.
1703 (struct linespec_state): Change canonical_names type to it.
1704 (add_sal_to_sals): Change variable canonical_name to canonical. Change
1705 xrealloc element size. Initialize the different CANONICAL fields.
1706 (canonical_to_fullform): New.
1707 (filter_results): Use it. Add variables canonical, fullform and
1708 cleanup.
1709 (struct decode_line_2_item, decode_line_2_compare_items): New.
1710 (decode_line_2): Remove variables iter and item_names, add variables
1711 items and items_count. Modify the code for these new variables.
1712
feb14725
CV
17132013-03-04 Corinna Vinschen <vinschen@redhat.com>
1714
1715 * coff-pe-read.c (read_pe_exported_syms): Don't return without
1716 calling do_cleanup.
1717
e83b17ba
HZ
17182013-03-04 Luis Machado <lgustavo@codesourcery.com>
1719
1720 * tracepoint.c (build_traceframe_info): Add code for byte order.
1721
a2d13a0d
KB
17222013-03-02 Kevin Buettner <kevinb@redhat.com>
1723
8dddcae8
KB
1724 * v850-tdep.c: (v850e2_register_name): Revise system register
1725 names to match current V850E2M architecture specifications.
1726 Update register number enum comments too.
a2d13a0d 1727
d79e58d8
JW
17282013-03-01 Jiong Wang <jiwang@tilera.com>
1729 Pedro Alves <palves@redhat.com>
1730
1731 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
1732 to END_ADDR.
1733 (tilegx_skip_prologue): Limit prologue analysis to section end.
1734
c4be5165
JK
17352013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1736
1737 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
1738 use it.
1739
e362b510
PA
17402013-03-01 Pedro Alves <palves@redhat.com>
1741
1742 Use gdb_byte for bytes from the program being debugged.
1743
1744 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
1745 Change type of local 'buf' to gdb_byte.
1746 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
1747 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1748 * cris-tdep.c (cris_sigcontext_addr)
1749 (cris_sigtramp_frame_unwind_cache): Likewise.
1750 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
1751 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
1752 Likewise.
1753 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
1754 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
1755 (hppa32_hpux_search_dummy_call_sequence)
1756 (hppa_hpux_supply_save_state): Likewise.
1757 * hppa-linux-tdep.c (insns_match_pattern)
1758 (hppa_linux_find_global_pointer): Likewise.
1759 * hppa-tdep.c (hppa_in_function_epilogue_p)
1760 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
1761 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
1762 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
1763 (i386fbsd_collect_uthread): Likewise.
1764 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
1765 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
1766 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
1767 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
1768 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
1769 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
1770 (ia64_libunwind_frame_prev_register)
1771 (ia64_libunwind_sigtramp_frame_this_id)
1772 (ia64_find_global_pointer_from_dynamic_section)
1773 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
1774 (ia64_unwind_pc): Likewise.
1775 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
1776 * m68hc11-tdep.c (m68hc11_push_dummy_call)
1777 (m68hc11_extract_return_value): Likewise.
1778 * m68klinux-nat.c (fetch_register, store_register): Likewise.
1779 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
1780 (mep_get_insn, mep_push_dummy_call): Likewise.
1781 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
1782 (mips_linux_in_dynsym_stub): Likewise.
1783 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
1784 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
1785 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
1786 to gdb_byte.
1787 * remote-mips.c (mips_set_register): Likewise.
1788 * remote-sim.c (gdbsim_fetch_register): Likewise.
1789 * score-tdep.c (score7_fetch_inst): Change type of parameter
1790 'memblock' and local 'buf' to gdb_byte.
1791 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
1792 Change type of local 'buf' to gdb_byte. Adjust.
1793 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
1794 to gdb_byte**.
1795 (score7_analyze_prologue): Change type of 'memblock' and
1796 'memblock_ptr' locals to gdb_byte*.
1797 * sh64-tdep.c (sh64_extract_return_value)
1798 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
1799 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
1800 * solib-pa64.c (pa64_solib_create_inferior_hook)
1801 (pa64_open_symbol_file_object): Remove local 'buf'.
1802 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
1803 (som_open_symbol_file_object): Likewise.
1804 * solib-spu.c (spu_current_sos): Likewise.
1805 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
1806 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
1807 (spu_store_registers): Likewise.
1808 * target.c (debug_print_register): Likewise.
1809 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
1810 * xstormy16-tdep.c (xstormy16_store_return_value)
1811 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
1812 (xstormy16_find_jmp_table_entry): Likewise.
1813
75cc61ca 18142013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
1815
1816 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
1817 (tilegx_gdbarch_init): Install it.
1818
ddb08e9c
TT
18192013-02-28 Tom Tromey <tromey@redhat.com>
1820
1821 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
1822 PyLong_Check.
1823
62d7fb51
DE
18242013-02-28 Doug Evans <dje@google.com>
1825
1826 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
1827 * python/python.c (gdbpy_find_pc_line): Ditto.
1828
c4a9e8b4
TT
18292013-02-28 Tom Tromey <tromey@redhat.com>
1830
1831 * contrib/excheck.py: New file.
1832 * contrib/exsummary.py: New file.
1833 * contrib/gcc-with-excheck: New file.
1834
7f6a5dde
TT
18352013-02-28 Tom Tromey <tromey@redhat.com>
1836
1837 * python/python.c (gdbpy_print_stack): Call begin_line and
1838 fprintf_filtered inside TRY_CATCH.
1839
9e974e55
TT
18402013-02-28 Tom Tromey <tromey@redhat.com>
1841
1842 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
1843 inside TRY_CATCH.
1844
dd5fa3e7
TT
18452013-02-28 Tom Tromey <tromey@redhat.com>
1846
1847 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
1848 frame_object_to_frame_info inside TRY_CATCH.
1849
86a3263f
TT
18502013-02-28 Tom Tromey <tromey@redhat.com>
1851
1852 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
1853 TRY_CATCH.
1854
81b52a3a
TT
18552013-02-28 Tom Tromey <tromey@redhat.com>
1856
1857 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
1858
d50a0ce2
CV
18592013-02-27 Corinna Vinschen <vinschen@redhat.com>
1860
1861 * windows-nat.c: Throughout, fix format strings and casts of
1862 printf-like functions to avoid type related warnings on all
1863 platforms.
1864 (handle_output_debug_string): Fetch context information address
1865 from debug string using string_to_core_addr.
1866
e1f58301
JW
18672013-02-27 Jiong Wang <jiwang@tilera.com>
1868
1869 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
1870 * regformats/reg-tilegx32.dat: New.
1871
4fcd89fc
JW
18722013-02-27 Jiong Wang <jiwang@tilera.com>
1873
1874 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
1875
748d24e6
JW
18762013-02-27 Jiong Wang <jiwang@tilera.com>
1877
1878 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
1879
6c8e944d
YQ
18802013-02-27 Yao Qi <yao@codesourcery.com>
1881 Pedro Alves <palves@redhat.com>
1882
1883 * tracepoint.c (tfile_trace_find): For tfind
1884 pc/tp/range/outside, look for the next trace frame instead of
1885 always starting from frame 0.
1886
acd7db30
AG
18872013-02-26 Anthony Green <green@moxielogic.com>
1888
1889 * configure.tgt: Add support for moxie-*-rtems* target.
1890
025e6dce
PA
18912013-02-25 Pedro Alves <palves@redhat.com>
1892
1893 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
1894 warning text.
1895
ca9c94ef
MR
18962013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
1897
1898 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
1899 if $fp is used as the virtual frame pointer.
1900
24c274a1
AM
19012013-02-23 Alan Modra <amodra@gmail.com>
1902
1903 * elfread.c (elf_symtab_read): Do not use udata.p here to find
1904 symbol size.
1905 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
1906 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
1907 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
1908 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
1909
bfada189
JK
19102013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1911
1912 Code cleanup.
1913 * elfread.c (build_id_bfd_get): Make the return type const.
1914 (build_id_verify): Make the check parameter const.
1915 (build_id_to_debug_filename): Make the build_id parameter and variable
1916 data const.
1917 (find_separate_debug_file_by_buildid): Make the variable build_id const.
1918
c0355132
AM
19192013-02-21 Alan Modra <amodra@gmail.com>
1920
1921 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
1922
9f44fbc0
SCR
19232013-02-20 Siva Chandra Reddy <sivachandra@google.com>
1924
1925 Add a new method 'disassemble' to gdb.Architecture class.
1926 * python/py-arch.c (archpy_disassmble): Implementation of the
1927 new method gdb.Architecture.disassemble.
1928 (arch_object_methods): Add entry for the new method.
1929
b74ea3eb
JW
19302013-02-20 Jiong Wang <jiwang@tilera.com>
1931
1932 * MAINTAINERS (Write After Approval): Add myself to the list.
1933
61a672f1
PA
19342013-02-19 Pedro Alves <palves@redhat.com>
1935
1936 Garbage collect 'struct monitor_ops'::load_routine.
1937
1938 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
1939 * monitor.c (monitor_load): No longer call
1940 current_monitor->load_routine.
1941 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
1942 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
1943 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
1944
40e397df
PA
19452013-02-19 Pedro Alves <palves@redhat.com>
1946
1947 PR gdb/15161
1948
1949 Harmonize with generic_load.
1950
1951 * monitor.c: Include "readline/readline.h".
1952 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
1953 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
1954 long/strtol for the 'load_offset' local. Error out if no argument
1955 is given or if too many arguments are given. Tilde expand the
1956 passed in file name.
1957
f698ca8e
KT
19582013-02-19 Kai Tietz <ktietz@redhat.com>
1959
1960 PR gdb/15161
1961 * symfile.c (load_section_data): Change type of load_offset
1962 to CORE_ADDR.
1963 (generic_load): User strtoulst instead of strtoul for conversion
1964 of load_offset.
1965
3361b059
WL
19662013-02-19 Jiong Wang <jiwang@tilera.com>
1967
1968 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
1969 for return address, "lr" register, saved on stack.
1970 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
1971 after we invoke tilegx_analyze_prologue.
1972
3e9d5130
WL
19732013-02-19 Jiong Wang <jiwang@tilera.com>
1974
bb1bcd86
WL
1975 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
1976
3361b059 19772013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 1978
b74ea3eb 1979 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 1980
4aaf2503
WL
19812013-02-19 Jiong Wang <jiwang@tilera.com>
1982
b74ea3eb 1983 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
1984 (tilegx_write_pc): New function.
1985 (tilegx_cannot_reference_register): Return zero if REGNO
1986 is TILEGX_FAULTNUM_REGNUM.
1987 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
1988 (tilegx_register_name): Add handling of "faultnum" register.
1989 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
1990 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
1991 handling of TILEGX_FAULTNUM_REGNUM.
1992 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
1993
bc23a956
WL
19942013-02-19 Jiong Wang <jiwang@tilera.com>
1995
1996 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 1997 should be aligned to 64bit.
bc23a956 1998
42f45f1a
KT
19992013-02-19 Kai Tietz <ktietz@redhat.com>
2000
2001 * windows-nat.c (windows_xfer_memory): Fix debug-output
2002 for LLP64.
2003
6ce4c112
LL
20042013-02-19 Lei Liu <lei.liu2@windriver.com>
2005
2006 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
2007 Don't check DSP register number if HAVE_DSP is not set.
2008
30e8ee25
AM
20092013-02-19 Alan Modra <amodra@gmail.com>
2010
2011 * elfread.c (struct build_id): Delete. Use struct elf_build_id
2012 throughout file instead.
2013 (build_id_bfd_get): Update to use new elf_tdata build_id field.
2014 Don't xmalloc return value.
2015 (build_id_verify): Similarly. Don't xfree.
2016 (build_id_to_debug_filename): Update.
2017 (find_separate_debug_file_by_buildid): Update, don't xfree.
2018
4c9ad8c2
TT
20192013-02-18 Tom Tromey <tromey@redhat.com>
2020
2021 PR gdb/15102:
2022 * dwarf2read.c (read_subrange_type): Use result of
2023 'check_typedef'.
2024
983dc440
YQ
20252013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
2026
2027 * frame.c: Remove one extra white space after #include
2028 directive.
2029
7fb2b84a
JK
20302013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2031
2032 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
2033
edceb2a9
JK
20342013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2035
2036 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
2037 and dir commands into an if block.
2038
e81b7af8
TT
20392013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
2040
2041 * python/py-breakpoint (struct pybp_code): Use int instead of
2042 enum type_code.
2043
f5911ea1
HAQ
20442013-02-15 Pedro Alves <pedro@codesourcery.com>
2045 Hafiz Abid Qadeer <abidh@codesourcery.com>
2046
2047 * NEWS: Mention new field "trace-file".
2048 * tracepoint.c (trace_status_mi): Output "trace-file" field.
2049 (tfile_open): Record the trace file's filename in the trace
2050 status.
2051 (tfile_files_info): Mention the name of the trace file.
2052 Check the "filename" field explicitely.
2053 (trace_status_command): Explicitely check "filename" field.
2054 (trace_find_command): Ditto.
2055 (trace_find_pc_command): Ditto.
2056 (trace_find_tracepoint_command): Ditto.
2057 (trace_find_line_command): Ditto.
2058 (trace_find_range_command): Ditto.
2059 (trace_find_outside_command): Ditto.
2060 * tracepoint.h (struct trace_status) <from_file>: Rename it
2061 to "filename" and make it hold the trace file's filename
2062 instead of a boolean.
2063 * remote.c (remote_get_trace_status): Initialize "filename"
2064 field with NULL instead of 0.
2065
796cb314
YQ
20662013-02-15 Yao Qi <yao@codesourcery.com>
2067
2068 * remote.c: Fix a typo.
2069
42e79b1d
PM
20702013-02-14 Pierre Muller <muller@sourceware.org>
2071
2072 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
2073
baea0dae
PA
20742013-02-14 Pedro Alves <palves@redhat.com>
2075
2076 * utils.c (savestring): Don't #undef it. Move function to
2077 common/common-utils.c.
2078 * common/common-utils.c: Include gdb_string.h.
2079 (savestring): Move here from utils.c.
2080 * common/common-utils.h (savestring): Declare.
2081
57c3b6ed
PA
20822013-02-14 Pedro Alves <palves@redhat.com>
2083
2084 * utils.c (savestring): Rename parameter 'size' to 'len'.
2085
d6c44983
YZ
20862013-02-14 Pedro Alves <palves@redhat.com>
2087 Yufeng Zhang <yufeng.zhang@arm.com>
2088
2089 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
2090 (aarch64_inferior_data, struct aarch64_inferior_data):
2091 Delete.
2092 (struct aarch64_process_info): New.
2093 (aarch64_process_list): New global.
2094 (aarch64_find_process_pid, aarch64_add_process)
2095 (aarch64_process_info_get): New functions.
2096 (aarch64_inferior_data_get): Delete.
2097 (aarch64_process_info_get): New function.
2098 (aarch64_forget_process): New function.
2099 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
2100 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
2101 aarch64_get_debug_reg_state.
2102 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
2103 instead of linux_nat_iterate_watchpoint_lwps.
2104 (aarch64_linux_new_fork): New function.
2105 (aarch64_linux_child_post_startup_inferior): Use
2106 aarch64_forget_process instead of aarch64_init_debug_reg_state.
2107 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
2108 (aarch64_linux_remove_hw_breakpoint)
2109 (aarch64_handle_aligned_watchpoint)
2110 (aarch64_handle_unaligned_watchpoint)
2111 (aarch64_linux_insert_watchpoint)
2112 (aarch64_linux_remove_watchpoint)
2113 (aarch64_linux_stopped_data_address): Adjust to pass the current
2114 process id to aarch64_debug_reg_state.
2115 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
2116 linux_nat_new_fork hook, and aarch64_forget_process as
2117 linux_nat_forget_process hook; remove the call to
2118 register_inferior_data_with_cleanup.
2119
4819b3f8
PA
21202013-02-14 Pedro Alves <palves@redhat.com>
2121
2122 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
2123 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
2124 lval_memory.
2125
1773c82c
HAQ
21262013-02-14 Pedro Alves <pedro@codesourcery.com>
2127 Hafiz Abid Qadeer <abidh@codesourcery.com>
2128
2129 * tracepoint.h (validate_trace_state_variable_name): Declare.
2130 * tracepoint.c (validate_trace_state_variable_name): New.
2131 (trace_variable_command): Parse the trace state variable's name
2132 without using parse_expression. Do several validations.
2133 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
2134 trace state variable's name with parse_expression. Validate it.
2135
53778a97
YQ
21362013-02-14 Yao Qi <yao@codesourcery.com>
2137
2138 * infcmd.c (breakpoint_proceeded): Remove it.
2139
7b3ae3a6
YQ
21402013-02-14 Yao Qi <yao@codesourcery.com>
2141
2142 * tracepoint.c (end_actions_pseudocommand): Make it static.
2143 (while_stepping_pseudocommand): Likewise.
2144 * tracepoint.h (end_actions_pseudocommand): Remove the
2145 declaration.
2146 (while_stepping_pseudocommand): Likewise.
2147
64580925
YQ
21482013-02-14 Yao Qi <yao@codesourcery.com>
2149
2150 * cli/cli-decode.c (help_cmd): Remove the declaration of
2151 "cmdlist".
2152 (help_all): Likewise.
2153
26cb8b7c
PA
21542013-02-13 Pedro Alves <palves@redhat.com>
2155
2156 * amd64-linux-nat.c (update_debug_registers_callback):
2157 Update comment.
2158 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
2159 iterate_over_lwps.
2160 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
2161 i386_debug_reg_state.
2162 (amd64_linux_new_fork): New function.
2163 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
2164 linux_nat_new_fork hook, and i386_forget_process as
2165 linux_nat_forget_process hook.
2166 * i386-linux-nat.c (update_debug_registers_callback):
2167 Update comment.
a8256ea1 2168 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
2169 iterate_over_lwps.
2170 (i386_linux_prepare_to_resume): Pass the lwp's pid to
2171 i386_debug_reg_state.
2172 (i386_linux_new_fork): New function.
2173 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
2174 linux_nat_new_fork hook, and i386_forget_process as
2175 linux_nat_forget_process hook.
2176 * i386-nat.c (i386_init_dregs): Delete.
2177 (i386_inferior_data, struct i386_inferior_data):
2178 Delete.
2179 (struct i386_process_info): New.
2180 (i386_process_list): New global.
2181 (i386_find_process_pid, i386_add_process, i386_process_info_get):
2182 New functions.
2183 (i386_inferior_data_get): Delete.
2184 (i386_process_info_get): New function.
2185 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
2186 (i386_forget_process): New function.
2187 (i386_cleanup_dregs): Rewrite.
2188 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
2189 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
2190 (i386_stopped_data_address, i386_insert_hw_breakpoint)
2191 (i386_remove_hw_breakpoint): Adjust to pass the current process id
2192 to i386_debug_reg_state.
2193 (i386_use_watchpoints): Don't register inferior data.
2194 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
2195 adjust comment.
2196 (i386_forget_process): Declare.
2197 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
2198 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
2199 New static globals.
2200 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
2201 (add_initial_lwp): New, factored out from ...
2202 (add_lwp): ... this. Don't check the number of lwps before
2203 calling linux_nat_new_thread.
2204 (linux_nat_iterate_watchpoint_lwps): Delete.
2205 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
2206 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
2207 forks and vforks.
2208 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
2209 initial lwp.
2210 (linux_nat_kill, linux_nat_mourn_inferior): Call
2211 linux_nat_forget_process.
2212 (linux_nat_set_new_fork, linux_nat_set_forget_process)
2213 (linux_nat_forget_process): New functions.
2214 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
2215 type.
2216 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
2217 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
2218 types.
2219 (linux_nat_set_new_fork, linux_nat_set_forget_process)
2220 (linux_nat_forget_process): New declarations.
2221
2222 * amd64fbsd-nat.c (super_mourn_inferior): New global.
2223 (amd64fbsd_mourn_inferior): New function.
2224 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
2225 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
2226
5befea72
MS
22272013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
2228
55015247
YQ
2229 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
2230 Adding _().
5befea72 2231
1d3ffd6b
MS
22322013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
2233
2234 * aarch64-linux-nat.c (debug_reg_change_callback)
2235 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
2236 %s and phex().
2237
6eb04473
MS
22382013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
2239
2240 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
2241 with LONGEST.
2242
a016fc87
HAQ
22432013-02-13 Pedro Alves <palves@redhat.com>
2244 Hafiz Abid Qadeer <abidh@codesourcery.com>
2245
2246 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
2247
e234dfaf
TT
22482013-02-12 Tom Tromey <tromey@redhat.com>
2249
2250 PR symtab/11464:
2251 * c-exp.y (lex_one_token): Initialize other fields of yylval on
2252 NAME return.
2253 (classify_inner_name): Remove 'first_name' argument, add
2254 'context'. Remove unused variable.
2255 (yylex): Explicitly maintain the context type. Exit loop earlier
2256 if NAME result is seen.
2257
0b1afbb3
PA
22582013-02-12 Pedro Alves <palves@redhat.com>
2259
2260 * amd64-darwin-tdep.c: Add (C) after Copyright.
2261 * cli/cli-cmds.h: Ditto.
2262 * cli/cli-decode.c: Ditto.
2263 * cli/cli-decode.h: Ditto.
2264 * cli/cli-dump.c: Ditto.
2265 * cli/cli-dump.h: Ditto.
2266 * cli/cli-interp.c: Ditto.
2267 * cli/cli-logging.c: Ditto.
2268 * cli/cli-script.c: Ditto.
2269 * cli/cli-script.h: Ditto.
2270 * cli/cli-setshow.c: Ditto.
2271 * cli/cli-setshow.h: Ditto.
2272 * cli/cli-utils.c: Ditto.
2273 * cli/cli-utils.h: Ditto.
2274 * config/alpha/nm-osf3.h: Ditto.
2275 * config/djgpp/djconfig.sh: Ditto.
2276 * config/i386/nm-fbsd.h: Ditto.
2277 * config/i386/nm-i386gnu.h: Ditto.
2278 * config/nm-linux.h: Ditto.
2279 * config/nm-nto.h: Ditto.
2280 * config/rs6000/nm-rs6000.h: Ditto.
2281 * config/sparc/nm-sol2.h: Ditto.
2282 * darwin-nat-info.c: Ditto.
2283 * dfp.c: Ditto.
2284 * dfp.h: Ditto.
2285 * gdb-demangle.h: Ditto.
2286 * i386-darwin-nat.c: Ditto.
2287 * i386-darwin-tdep.c: Ditto.
2288 * linux-fork.h: Ditto.
2289 * m32c-tdep.c: Ditto.
2290 * microblaze-linux-tdep.c: Ditto.
2291 * microblaze-rom.c: Ditto.
2292 * microblaze-tdep.c: Ditto.
2293 * microblaze-tdep.h: Ditto.
2294 * mips-linux-tdep.h: Ditto.
2295 * ppc-ravenscar-thread.c: Ditto.
2296 * ppc-ravenscar-thread.h: Ditto.
2297 * prologue-value.c: Ditto.
2298 * prologue-value.h: Ditto.
2299 * ravenscar-thread.c: Ditto.
2300 * ravenscar-thread.h: Ditto.
2301 * sparc-ravenscar-thread.c: Ditto.
2302 * sparc-ravenscar-thread.h: Ditto.
2303 * tilegx-linux-tdep.c: Ditto.
2304 * unwind_stop_reasons.def: Ditto.
2305 * windows-nat.h: Ditto.
2306 * xtensa-linux-tdep.c: Ditto.
2307 * xtensa-xtregs.c: Ditto.
2308 * regformats/regdat.sh: Ditto.
2309 * regformats/regdef.h: Ditto.
2310
6c01dd94
PA
23112013-02-12 Pedro Alves <palves@redhat.com>
2312
2313 * break-catch-sig.c: Update copyright years.
2314
b65a2bd9
SCR
23152013-02-11 Siva Chandra Reddy <sivachandra@google.com>
2316
2317 Add support for a destructor for ui_out data and use it to
2318 provide a ui_out destructor.
2319 * ui-out.h: Declare the new ui_out destructor.
2320 (ui_out_impl): Add a field for data destructor in ui_out_impl.
2321 * ui-out.c (default_data_destroy): Add a default data destructor
2322 which does nothing.
2323 (default_ui_out_impl): Set the new data_destroy field to
2324 default_data_destroy
2325 (uo_data_destroy): Local function which invokes the data
2326 destructor if present.
2327 (clear_table): Local function which clears the table data of a
2328 ui_out object.
2329 (ui_out_destroy): Public function which frees a ui_out object.
2330 (ui_out_table_end): Use the new clear_table function.
2331 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
2332 NULL.
2333 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
2334 to NULL.
2335
c2792f5a
DE
23362013-02-11 Doug Evans <dje@google.com>
2337
2338 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
2339 (printf_decfloat): New function. Broken out from ui_printf.
2340 Remove unnecessary code to shift the entire format string down.
2341 (printf_pointer): New function.
2342 (ui_printf): Code to print C strings, wide C strings, decfloats,
2343 and pointers moved to separate functions.
2344
d9e98382
SDJ
23452013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
2346
2347 * valops.c (value_assign): Handling bitfield offset in
2348 `lval_internalvar_component' case.
2349
4ff3ce77
DE
23502013-02-08 Doug Evans <dje@google.com>
2351
2352 * common/format.c (parse_format_string): Fix whitespace.
2353
901900c4
MGD
23542013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
2355
2356 * stack.c (return_command): Work around uninitialized variable
2357 warning.
2358
b5dbc8d4
YZ
23592013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
2360
2361 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
2362 number of the registers from 36 to 34.
2363
51d66578
MS
23642013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
2365
2366 * NEWS: Mention new AArch64 native and target support.
2367
176b1c95
MS
23682013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
2369
2370 * MAINTAINERS (Write After Approval): Add myself.
2371
9d19df75
MS
23722013-02-08 Jim MacArthur <jim.macarthur@arm.com>
2373 Marcus Shawcroft <marcus.shawcroft@arm.com>
2374 Nigel Stephens <nigel.stephens@arm.com>
2375 Yufeng Zhang <yufeng.zhang@arm.com>
2376
2377 * aarch64-linux-nat.c: New file.
2378 * config/aarch64/linux.mh: New file.
2379 * configure.host: Add AArch64.
2380 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
2381
7e1e0340
DE
23822013-02-07 Doug Evans <dje@google.com>
2383
2384 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
2385 disassemble command.
2386
45e25a36
MS
23872013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
2388
2389 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2390 set_gdbarch_fetch_tls_load_module_address.
2391
bbfdfe1c
DM
23922013-02-06 David S. Miller <davem@davemloft.net>
2393
2394 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
2395 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
2396 * value.c (struct_return_convention): New function.
2397 (using_struct_return): Implement in terms of struct_return_convention.
2398 * value.h (struct_return_convention): Declare.
2399 * stack.c (return_command): Allow successful overriding of the return
2400 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
2401
bc9abe4a
TT
24022013-02-06 Tom Tromey <tromey@redhat.com>
2403
2404 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
2405 outside of TRY_CATCH.
2406
134a2066
YQ
24072013-02-06 Yao Qi <yao@codesourcery.com>
2408
2409 * mi/mi-interp.c: Include "tracepoint.h".
2410 (mi_tsv_modified): Declare.
2411 (mi_tsv_created, mi_tsv_deleted): Update declaration.
2412 (mi_interpreter_init): Call observer_attach_tsv_modified.
2413 (mi_tsv_modified): New.
2414 (mi_tsv_created, mi_tsv_deleted): Update.
2415 * tracepoint.c (trace_variable_command): Call
2416 observer_notify_tsv_modified if the initial value of tsv is
2417 changed.
2418 (delete_trace_state_variable): Call
2419 observer_notify_tsv_deleted earlier.
2420 (trace_variable_command): Caller update.
2421 (create_tsv_from_upload): Likewise.
2422 * observer.sh: Declare "struct trace_state_variable".
2423
2424 * NEWS: Mention the new MI notification "=tsv-modified".
2425
59be2b6a
DE
24262013-02-05 Doug Evans <dje@google.com>
2427
2428 * completer.c (location_completer): Fix typo in comment.
2429
d30113d4
JK
24302013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2431
2432 * breakpoint.c (add_location_to_breakpoint): Insert the location with
2433 ADDRESS sorted.
2434
14ac654f
MS
24352013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2436
2437 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
2438 Refactor if statement to avoid trailing || operator.
2439
543bf33d
AT
24402013-02-05 Andreas Tobler <andreast@fgznet.ch>
2441
2442 * NEWS: Add PowerPC FreeBSD as a new native configuration.
2443
dc18f110
AT
24442013-02-04 Andreas Tobler <andreast@fgznet.ch>
2445
2446 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
2447 * configure.host: Add powerpc*-*-freebsd* target.
2448 * configure.tgt: Add target info for powerpc*-*-freebsd*.
2449 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
2450 * config/powerpc/fbsd.mh: New file.
2451
b3ac9c77
SDJ
24522013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
2453 Denys Vlasenko <dvlasenk@redhat.com>
2454 Pedro Alves <palves@redhat.com>
2455
2456 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
2457 (struct elf_internal_linux_prpsinfo): Forward declare.
2458 * gdbarch.h, gdbarch.c: Regenerate.
2459 * linux-tdep.c: Include `cli/cli-utils.h'.
2460 (linux_fill_prpsinfo): New function.
2461 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
2462 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
2463 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
2464 depending on gdbarch pointer bitness.
2465 * ppc-linux-tdep.c: Include elf-bfd.h.
2466 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
2467 on 32-bit.
2468
176eb98c
MS
24692013-02-04 Jim MacArthur <jim.macarthur@arm.com>
2470 Marcus Shawcroft <marcus.shawcroft@arm.com>
2471 Nigel Stephens <nigel.stephens@arm.com>
2472 Yufeng Zhang <yufeng.zhang@arm.com>
2473
2474 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
2475
cf0dbd6f
MS
24762013-02-04 Jim MacArthur <jim.macarthur@arm.com>
2477 Marcus Shawcroft <marcus.shawcroft@arm.com>
2478 Nigel Stephens <nigel.stephens@arm.com>
2479 Yufeng Zhang <yufeng.zhang@arm.com>
2480
2481 * aarch64-newlib-tdep.c: New file.
2482 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
2483 aarch64*-*-elf.
2484 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
2485 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
2486 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
2487 * osabi.c (gdb_osabi_names): Add "Newlib".
2488
1ae3db19
MS
24892013-02-04 Jim MacArthur <jim.macarthur@arm.com>
2490 Marcus Shawcroft <marcus.shawcroft@arm.com>
2491 Nigel Stephens <nigel.stephens@arm.com>
2492 Yufeng Zhang <yufeng.zhang@arm.com>
2493
2494 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
2495 (ALLDEPFILES): Add aarch64-linux-tdep.c.
2496 * aarch64-linux-tdep.c: New file.
2497 * aarch64-linux-tdep.h: New file.
2498 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
2499 * configure.tgt: Add aarch64-none-linux-gnu.
2500
07b287a0
MS
25012013-02-04 Jim MacArthur <jim.macarthur@arm.com>
2502 Marcus Shawcroft <marcus.shawcroft@arm.com>
2503 Nigel Stephens <nigel.stephens@arm.com>
2504 Yufeng Zhang <yufeng.zhang@arm.com>
2505
2506 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
2507 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
2508 (ALLDEPFILES): Add aarch64-tdep.c.
2509 * aarch64-tdep.c: New file.
2510 * aarch64-tdep.h: New file.
2511 * configure.tgt: Add AArch64.
2512 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
2513 (aarch64-expedite): New definition.
2514 * features/aarch64-core.xml: New file.
2515 * features/aarch64-fpu.xml: New file.
2516 * features/aarch64-without-fpu.c: New file (generated).
2517 * features/aarch64-without-fpu.xml: New file.
2518 * features/aarch64.c: New file (generated).
2519 * features/aarch64.xml: New file.
2520 * regformats/aarch64-without-fpu.dat: New file (generated).
2521 * regformats/aarch64.dat: New file (generated).
2522
0f1b18ab
JK
25232013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2524
2525 * contrib/expect-read1.c: New file.
2526 * contrib/expect-read1.sh: New file.
2527
233d95b5
JK
25282013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2529
2530 * dwarf2read.c (file_file_name): New function with code from
2531 file_full_name.
2532 (file_full_name): Move most of the code to file_file_name.
2533 (macro_start_file): Rename variable full_name to file_name and use
2534 file_file_name for it. Add comp_dir parameter to new_macro_table.
2535 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
2536 macro_source_file->filename access by macro_source_fullname call.
2537 * macroscope.c (_initialize_macroscope): Update the new_macro_table
2538 caller.
2539 * macrotab.c (struct macro_table): New field comp_dir.
2540 (macro_include): New variables link_fullname and source_fullname.
2541 Replace any macro_source_file->filename access by macro_source_fullname
2542 call.
2543 (macro_lookup_inclusion): Remove the partial filenames checking code.
2544 (check_for_redefinition): New variables source_fullname and
2545 found_key_fullname. Replace any macro_source_file->filename access by
2546 macro_source_fullname call.
2547 (macro_undef): New variables source_fullname and key_fullname. Replace
2548 any macro_source_file->filename access by macro_source_fullname call.
2549 (macro_lookup_definition): New variables retval and source_fullname.
2550 Replace any macro_source_file->filename access by macro_source_fullname
2551 call.
2552 (foreach_macro): New variable key_fullname. Replace any
2553 macro_source_file->filename access by macro_source_fullname call.
2554 (foreach_macro_in_scope): New variable datum_fullname. Replace any
2555 macro_source_file->filename access by macro_source_fullname call.
2556 (new_macro_table): Add parameter comp_dir. Initialize T with it.
2557 (macro_source_fullname): New function.
2558 * macrotab.h (struct macro_source_file): Extent the filename field
2559 comment.
2560 (new_macro_table): New parameter comp_dir, add a comment for it.
2561 (macro_source_fullname): new declaration.
2562
da235a7c
JK
25632013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2564
2565 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
2566 this_real_name to outer block. Use it also for
2567 compare_filenames_for_search.
2568 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
2569 with dw2_get_real_path for file_matcher, considering also
2570 BASENAMES_MAY_DIFFER.
2571 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
2572
fbd9ab74
JK
25732013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2574
2575 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
2576 to the file_matcher parameter. Pass 0 to it.
2577 (dwarf2_create_include_psymtab): Copy also DIRNAME.
2578 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
2579 NULL psymtab_to_fullname result.
2580 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
2581 an expected filename instead.
2582 (expand_symtabs_matching_via_partial): Add basenames parameter to the
2583 file_matcher parameter. Call also psymtab_to_fullname, after newly
2584 considering BASENAMES_MAY_DIFFER.
2585 * source.c (rewrite_source_path): Remove static.
2586 * source.h (rewrite_source_path): New declaration.
2587 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
2588 the expand_symtabs_matching field. Comment it.
2589 * symtab.c (file_matches): New function comment. Add parameter
2590 basenames, implement it.
2591 (search_symbols_file_matches): Add basenames parameter. Update the
2592 file_matches caller.
2593 (search_symbols): Match FILES also against symtab_to_fullname.
2594 Optimize it for BASENAMES_MAY_DIFFER.
2595
56d397a3
JK
25962013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2597
2598 * source.c (print_source_lines_base): Print for TUI also "fullname".
2599 * tui/tui-data.c (init_content_element): Change tui_locator_element
2600 field to full_name.
2601 * tui/tui-data.h (struct tui_locator_element): Likewise.
2602 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
2603 tui_update_locator_filename calls to tui_update_locator_fullname.
2604 Replace symtab->filename refererence by symtab_to_fullname call.
2605 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
2606 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
2607 field to full_name. Replace symtab->filename refererence by
2608 symtab_to_fullname call.
2609 (tui_show_symtab_source): Rename parameter to fullname. Change
2610 tui_locator_element field to full_name.
2611 * tui/tui-stack.c: Include source.h.
2612 (tui_set_locator_filename): Rename the declaration to ...
2613 (tui_set_locator_fullname): ... here. Rename its parameter to
2614 fullname, updates its comment.
2615 (tui_set_locator_info): Rename its parameter to fullname.
2616 (tui_set_locator_filename): Rename the definition to ...
2617 (tui_set_locator_fullname): ... here. Rename its parameter to
2618 fullname, updates its comment. Change tui_locator_element field to
2619 full_name.
2620 (tui_set_locator_info): Rename its parameter to fullname.
2621 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
2622 (tui_update_locator_filename): Rename to ...
2623 (tui_update_locator_fullname): ... here. Rename callee to
2624 tui_set_locator_fullname.
2625 (tui_show_frame_info): Replace symtab->filename refererence by
2626 symtab_to_fullname call.
2627 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
2628 (tui_update_locator_fullname): ... here.
2629 * tui/tui-winsource.c (tui_display_main): Rename the callee to
2630 tui_update_locator_fullname. Replace symtab->filename refererence by
2631 symtab_to_fullname call.
2632 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
2633 Rename the callee to tui_update_locator_fullname.
2634 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
2635
05cba821
JK
26362013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2637
2638 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
2639 by symtab_to_filename_for_display calls.
2640 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
2641 (clear_command): New variable sal_fullname, initialize it. Replace
2642 compare_filenames_for_search by filename_cmp with sal_fullname.
2643 (say_where, update_static_tracepoint): Replace symtab->filename
2644 refererences by symtab_to_filename_for_display calls.
2645 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
2646 Likewise.
2647 * dwarf2read.c: Include source.h.
2648 (fixup_go_packaging): Replace symtab->filename refererences by
2649 symtab_to_filename_for_display calls.
2650 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
2651 Replace symtab->filename refererences by symtab_to_filename_for_display
2652 calls.
2653 (create_sals_line_offset, convert_linespec_to_sals): New variable
2654 fullname, initialize it, replace symtab->filename reference by the
2655 variable.
2656 * linux-fork.c: Include source.h.
2657 (info_checkpoints_command): Replace symtab->filename refererences by
2658 symtab_to_filename_for_display calls.
2659 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
2660 by symtab_to_filename_for_display calls.
2661 * mdebugread.c: Include source.h.
2662 (psymtab_to_symtab_1): Replace symtab->filename refererences by
2663 symtab_to_filename_for_display calls.
2664 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2665 (mi_cmd_file_list_exec_source_files): Likewise.
2666 * printcmd.c: Include source.h.
2667 (build_address_symbolic): Replace symtab->filename refererences by
2668 symtab_to_filename_for_display calls.
2669 * psymtab.c (partial_map_symtabs_matching_filename)
2670 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
2671 with psymtab_to_fullname.
2672 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
2673 by symtab_to_filename_for_display calls.
2674 (stpy_get_filename): New variable filename, initialize it, use instead
2675 of symtab->filename refererences.
2676 (salpy_str): Make variable filename const char *. Replace
2677 symtab->filename refererences by symtab_to_filename_for_display calls.
2678 * skip.c: Include source.h and filenames.h.
2679 (skip_file_command): Remove const from the symtab variable. Replace
2680 symtab->filename refererences by symtab_to_fullname call.
2681 (function_name_is_marked_for_skip): New variables searched_for_fullname
2682 and fullname. Use them to search also with symtab's fullname.
2683 * source.c (find_source_lines): Replace symtab->filename refererences
2684 by symtab_to_filename_for_display calls.
2685 (print_source_lines_base): New variable filename, use it instead of
2686 symtab->filename. Replace symtab->filename refererences by
2687 symtab_to_filename_for_display calls.
2688 (line_info, forward_search_command): Replace symtab->filename
2689 refererences by symtab_to_filename_for_display calls.
2690 (reverse_search_command): Replace symtab->filename refererences by
2691 symtab_to_filename_for_display calls. New variable filename for it.
2692 * stack.c (frame_info): Likewise.
2693 * symmisc.c: Include source.h.
2694 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
2695 (maintenance_info_symtabs): Replace symtab->filename refererences by
2696 symtab_to_filename_for_display calls.
2697 * symtab.c (iterate_over_some_symtabs): Call
2698 compare_filenames_for_search also with symtab_to_fullname.
2699 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
2700 symtab->filename refererences by symtab_to_filename_for_display calls.
2701 (find_line_symtab): Replace symtab->filename refererences by
2702 symtab_to_filename_for_display calls.
2703 (file_matches): Replace filename_cmp by compare_filenames_for_search.
2704 (print_symbol_info): Make the last parameter const char *. New
2705 variable s_filename. Use it in the function.
2706 (symtab_symbol_info): Make the last_filename variable const char *.
2707 Replace symtab->filename refererences by symtab_to_filename_for_display
2708 calls.
2709 (rbreak_command): New variable fullname. Use it. Replace
2710 symtab->filename refererence by symtab_to_filename_for_display call.
2711 * tracepoint.c (set_traceframe_context, trace_find_line_command)
2712 (print_one_static_tracepoint_marker): Replace symtab->filename
2713 refererences by symtab_to_filename_for_display calls.
2714 * tui/tui-source.c (tui_set_source_content): New variables filename and
2715 s_filename. Replace symtab->filename refererences by this variable.
2716 Replace other symtab->filename refererences by
2717 symtab_to_filename_for_display calls.
2718
1b56eb55
JK
27192013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
2720 Jan Kratochvil <jan.kratochvil@redhat.com>
2721
2722 Add a new variable that controls a way in which filenames are
2723 displayed.
2724 * NEWS (set filename-display): New entry.
2725 * source.c (filename_display_basename, filename_display_relative)
2726 (filename_display_absolute, filename_display_kind_names)
2727 (filename_display_string, show_filename_display_string)
2728 (symtab_to_filename_for_display): New.
2729 (_initialize_source): Added initialization of 'filename-display'
2730 variable.
2731 * source.h (symtab_to_filename_for_display): Added declaration.
2732 * stack.c (print_frame): Added new variable and calling of a new
2733 function and condition with this variable. Changed third argument of
2734 calling of a function.
2735
aa079c93
JK
27362013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2737
2738 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
2739 Rename field reference filename to fullname.
2740 * tui/tui-data.h (struct tui_source_info): Rename field filename to
2741 fullname. New comment for it.
2742 * tui/tui-source.c (tui_set_source_content): Rename field reference
2743 filename to fullname. Initialize field by symtab_to_fullname now.
2744 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
2745 reference filename to fullname. Use symtab_to_fullname during
2746 comparison.
2747
652a8996
JK
27482013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2749
2750 Code cleanup.
2751 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
2752 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
2753 filename to fullname. Rename variable this_name to this_fullname.
2754 Lowercase FILENAME_CMP call.
2755 (dw2_find_symbol_file): New comment for the returned string.
2756 (dwarf2_gdb_index_functions): Rename the function to
2757 dw2_expand_symtabs_with_fullname.
2758 * psymtab.c (read_psymtabs_with_filename): Rename to ...
2759 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
2760 fullname.
2761 (psym_functions): Rename the function to read_psymtabs_with_fullname.
2762 * symfile.h (struct quick_symbol_functions): Rename field
2763 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
2764 parameter filename to fullname. Document returned string meaning for
2765 find_symbol_file.
2766 * symtab.c (find_line_symtab): Rename the called function to
2767 expand_symtabs_with_fullname.
2768
af529f8f
JK
27692013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2770
2771 Code cleanup.
2772 * breakpoint.c (clear_command): Remove variable is_abs, unify the
2773 call of filename_cmp with compare_filenames_for_search.
2774 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
2775 is_abs, unify the call of FILENAME_CMP with
2776 compare_filenames_for_search. New gdb_asserts for real_path and name.
2777 Unify the call of compare_filenames_for_search with FILENAME_CMP.
2778 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
2779 * symfile.h (struct quick_symbol_functions): Extend the comment for
2780 map_symtabs_matching_filename.
2781 * symtab.c (compare_filenames_for_search): Remove the function comment
2782 relative path requirement. Handle absolute filenames, with a comment.
2783 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
2784 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
2785 real_path and name. Unify the call of compare_filenames_for_search
2786 with FILENAME_CMP.
2787 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
2788
2f202fde
JK
27892013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2790
2791 Code cleanup.
2792 * breakpoint.c (print_breakpoint_location): Replace bp_location field
2793 source_file references by symtab field references. Remove variables
2794 sal and fullname.
2795 (momentary_breakpoint_from_master, add_location_to_breakpoint):
2796 (clear_command, say_where): Replace bp_location field source_file
2797 references by symtab field references.
2798 (bp_location_dtor): Remove the source_file reference.
2799 (update_static_tracepoint): Replace bp_location field source_file
2800 references by symtab field references.
2801 (breakpoint_free_objfile): New function.
2802 * breakpoint.h (struct bp_location): Extend the comment for line_number.
2803 Replace the field source_file by field symtab, extend its comment.
2804 (breakpoint_free_objfile): New declaration.
2805 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
2806 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
2807 field source_file references by symtab field references.
2808
f5b95b50
JK
28092013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2810
2811 Replace xfullpath calls by gdb_realpath calls.
2812 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
2813 function comment.
2814 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
2815 Remove it from the iterate_over_some_symtabs call.
2816 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
2817 Remove it from the dw2_map_expand_apply calls, remove a block handling
2818 it.
2819 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
2820 Remove it from the iterate_over_some_symtabs call.
2821 (partial_map_symtabs_matching_filename): Remove parameter full_path.
2822 Remove it from the partial_map_expand_apply calls, remove a block
2823 handling it. Drop gdb_realpath call and cleanups from the real_path
2824 handling.
2825 * source.c (openp): Drop the comment part about xfullpath. Replace
2826 xfullpath calls by gdb_realpath calls.
2827 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
2828 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
2829 from method map_symtabs_matching_filename and its comment.
2830 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
2831 gdb_realpath call.
2832 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
2833 remove it also from the function comment, remove a block handling it.
2834 Drop gdb_realpath call and cleanups from the real_path handling.
2835 (iterate_over_symtabs): Drop variable full_path and its use.
2836 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
2837 * utils.c (xfullpath): Remove.
2838 * utils.h (xfullpath): Remove.
2839
d78489bf
AT
28402013-02-01 Andreas Tobler <andreast@fgznet.ch>
2841
2842 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
2843 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
2844 (ALLDEPFILES): Add ppc64-tdep.c.
2845 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
2846 ppc64-tdep.o to gdb_target_obs.
2847 * ppc64-tdep.h: New file.
2848 * ppc64-tdep.c: New file.
2849 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
2850 ppc-linux-tdep.c to here.
2851 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
2852 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
2853 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
2854 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
2855 from ppc-linux-tdep.c to here.
2856 (ppc64_convert_from_func_ptr_addr): Rename from
2857 ppc64_linux_convert_from_func_ptr_addr to
2858 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
2859 here.
2860 * rs6000-tdep.c:
2861 (read_insn): Move from ppc-linux-tdep.c to here.
2862 (insns_match_pattern, insn_d_field, insn_ds_field): Move
2863 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
2864 * ppc-linux-tdep.c: Include ppc64-tdep.h.
2865 Removed above functions.
2866 (ppc_linux_init_abi): Adjust.
2867
8db60374
AR
28682013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
2869
2870 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
2871
f2e5f4ce
AR
28722013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
2873
2874 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
2875
c1f7d745
PA
28762013-02-01 Pedro Alves <palves@redhat.com>
2877
2878 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
2879 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
2880
8a92335b
JK
28812013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2882
2883 * elfread.c (elf_symfile_read): Limit separate debug info additions to
2884 files with no separate debug info.
2885 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
2886 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
2887 only for files with no separate debug info.
2888
8eacb197
TT
28892013-01-31 Tom Tromey <tromey@redhat.com>
2890
2891 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
2892 change type.
2893 (struct jit_program_space_data): Rename from jit_inferior_data.
2894 Update comments.
2895 (get_jit_program_space_data): Rename from get_jit_inferior_data.
2896 Change return type. Attach data to program space.
2897 (jit_program_space_data_cleanup): Rename from
2898 jit_inferior_data_cleanup; change argument type.
2899 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
2900 change type.
2901 (jit_register_code): Update.
2902 (jit_update_inferior_cache): Remove.
2903 (jit_breakpoint_deleted): Get jit data from the location's program
2904 space.
2905 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
2906 'ps_data', change type.
2907 (jit_inferior_init, jit_breakpoint_re_set_internal)
2908 (jit_event_handler): Update.
2909 (free_objfile_data): Get data from objfile's program space.
2910 (_initialize_jit): Update.
2911
f25c0135
TT
29122013-01-31 Tom Tromey <tromey@redhat.com>
2913
2914 PR gdb/13987:
2915 * jit.c (struct jit_inferior_data) <cached_code_address,
2916 jit_breakpoint>: New fields.
2917 (jit_breakpoint_re_set_internal): Fix logging. Only create
2918 breakpoint if cached address has changed.
2919 (jit_update_inferior_cache, jit_breakpoint_deleted): New
2920 functions.
2921 (_initialize_jit): Register breakpoint deleted observer.
2922
974a734b
AR
29232013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2924
2925 * infrun.c (handle_syscall_event): Remove unused gdbarch.
2926 (save_infcall_suspend_state): Ifdef out unused inf.
2927 (restore_infcall_suspend_state): Ifdef out unused inf.
2928 * jit.c (jit_register_code): Remove unused i, b, inf_data.
2929 (jit_frame_sniffer): Remove unused inf_data.
2930
df54f8eb
AR
29312013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2932
2933 * c-exp.y (classify_inner_name): Remove unused type.
2934 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
2935 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
2936 need_escape.
2937 (c_get_string): Remove unused kind.
2938 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
2939
5799c0b9
AR
29402013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2941
2942 * charset.c (intermediate_encoding): Remove unused i.
2943 * completer.c (signal_completer): Remove unused i.
2944 * continuations.c (discard_my_continuations_1): Remove unused
2945 continuation_ptr.
2946 * corelow.c (core_close): Remove unuseD name.
2947 (get_core_siginfo): Remove unused pid.
2948 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
2949 i, cps.
2950 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
2951 (loclist_describe_location): Remove unused first.
2952 * event-top.c (command_line_handler): Remove unused got_eof.
2953 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
2954 (resize_section_table): Remove unused old_value.
2955 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
2956 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
2957 * i386-tdep.c (i386_process_record): Remove unused rex.
2958 * infcmd.c (get_return_value): Remove unused uiout.
2959 * jv-lang.c (type_from_class): Remove unused is_array.
2960 * jv-valprint.c (java_val_print): Remove unused i.
2961 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
2962 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
2963 * m2-typeprint.c (m2_print_type): Remove unused code.
2964 * macroexp.c (get_character_constant): Remove unused body_start.
2965 (macro_stringify): Remove unused result.
2966 * objc-lang.c (find_methods): Remove unused gdbarch.
2967 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
2968 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
2969 * stack.c (print_frame_args): Remove unused summary.
2970 * thread.c (thread_apply_command): Remove unused p.
2971 * valarith.c (value_x_unop): Remove unused mangle_ptr.
2972 * valops.c (search_struct_method): Remove unused skip.
2973 * valprint.c (generic_val_print): Remove unused byte_order.
2974 * varobj.c (varobj_update): Remove unused changed.
2975 * cli/cli-cmds.c (complete_command): Remove unused next_item.
2976 (alias_command): Remove unused c.
2977 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
2978 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
2979 format.
2980 (mi_cmd_data_write_memory): Remove unused word_format.
2981 (mi_cmd_data_write_memory_bytes): Remove unused r.
2982 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
2983 p_start, p_end.
2984 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
2985 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
2986 line_width.
2987
c656bca5
AR
29882013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2989
2990 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
2991 * symtab.c (iterate_over_symtabs): Remove unused s.
2992 (find_pc_sect_symtab): Remove unused pspAce.
2993 (find_pc_sect_line): Remove unused alt_symtab.
2994 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
2995 (completion_list_add_name): Remove unused newsize.
2996
7078baeb
TT
29972013-01-31 Tom Tromey <tromey@redhat.com>
2998
2999 PR c++/14998:
3000 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
3001 TYPE_CODE_FUNC.
3002
c2e8b827
AR
30032013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3004
3005 * target.c (target_read_string): Remove unused origlen.
3006
0e43993a
AR
30072013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3008
3009 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
3010 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
3011 * ax-general.c (ax_print): Remove unused is_float.
3012 * blockframe.c (block_innermost_frame): Remove unused start, end.
3013 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
3014
765a97ab
AR
30152013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3016
3017 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
3018 (svr4_read_so_list): Remove unused lmo.
3019 * solib-target.c (solib_target_relocate_section_addresses): Remove
3020 unused flags.
3021
a99dad3d
TT
30222013-01-30 Tom Tromey <tromey@redhat.com>
3023
3024 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
3025
3bff1ecd
TT
30262013-01-30 Tom Tromey <tromey@redhat.com>
3027
3028 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
3029 * utils.c (gnu_debuglink_crc32): Remove.
3030 * utils.h (gnu_debuglink_crc32): Don't declare.
3031
7d455152
TT
30322013-01-30 Tom Tromey <tromey@redhat.com>
3033
3034 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
3035 (read_structure_type, read_enumeration_type): Remove cast.
3036
abee88f2
TT
30372013-01-30 Tom Tromey <tromey@redhat.com>
3038
3039 * dwarf2read.c (read_namespace_type): Remove cast.
3040 (read_typedef): Likewise.
3041
8d9878a4
TT
30422013-01-29 Tom Tromey <tromey@redhat.com>
3043
3044 * dwarf2read.c (free_dwo_file): Remove assert.
3045
a543d2a9
TT
30462013-01-29 Tom Tromey <tromey@redhat.com>
3047
3048 * value.c (deprecated_set_value_modifiable): Remove.
3049 * value.h (deprecated_set_value_modifiable): Remove.
3050
bed911e5
DE
30512013-01-28 Doug Evans <dje@google.com>
3052
3053 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
3054 to addresses from dwo files.
3055
28c64fc2
SCR
30562013-01-25 Siva Chandra Reddy <sivachandra@google.com>
3057
3058 * valops.c (find_overload_match): Remove unused argument 'lax'.
3059 * value.h: Remove unused argument 'lax' from the declaration of
3060 find_overload_match.
3061 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
3062 to find_overload_match.
3063 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
3064 argument to find_overload_match.
3065
4d4ec4e5
TT
30662013-01-25 Tom Tromey <tromey@redhat.com>
3067
3068 * dwarf2read.c (processing_has_namespace_info): Remove.
3069 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
3070 (process_die, read_func_scope, dwarf2_start_symtab)
3071 (new_symbol_full): Update.
3072
195a3f6c
TT
30732013-01-25 Tom Tromey <tromey@redhat.com>
3074
3075 * cp-namespace.c (cp_set_block_scope): Remove.
3076 * cp-support.h (cp_set_block_scope): Remove.
3077 * dbxread.c: Include block.h.
3078 (cp_set_block_scope): New function.
3079 (process_one_symbol): Update.
3080 * dwarf2read.c (read_func_scope): Use block_set_scope.
3081
8ba0730a
PA
30822013-01-25 Pedro Alves <palves@redhat.com>
3083
3084 * remote.c (add_current_inferior_and_thread): Tweak comment.
3085
12aaed36
TT
30862013-01-25 Tom Tromey <tromey@redhat.com>
3087
3088 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3089 (cp_add_using_directive): Add 'copy_names' argument.
3090 * cp-support.h (cp_add_using_directive): Update.
3091 (struct using_direct) <import_src, import_dest, alias,
3092 declaration>: Now const.
3093 * dwarf2read.c (read_import_statement): Use obconcat.
3094 Don't copy names passed to cp_add_using_directive.
3095
7fc75ca7
TT
30962013-01-25 Tom Tromey <tromey@redhat.com>
3097
3098 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
3099
3405876a
PA
31002013-01-25 Pedro Alves <palves@redhat.com>
3101
3102 * remote.c (stop_reply_extract_thread): New.
3103 (add_current_inferior_and_thread): New parameter 'wait_status'.
3104 Handle it.
3105 (remote_start_remote): Pass wait status to
3106 add_current_inferior_and_thread.
3107 (extended_remote_run): Update comment.
3108 (extended_remote_create_inferior_1): Pass wait status to
3109 add_current_inferior_and_thread.
3110
8954db33
AB
31112013-01-25 Andrew Burgess <aburgess@broadcom.com>
3112 Ulrich Weigand <uweigand@de.ibm.com>
3113
3114 * valarith.c (value_vector_widen): New function for replicating a
3115 scalar into a vector.
3116 (value_binop): Use value_vector_widen to widen scalar to vector
3117 rather than casting, this better matches gcc C behaviour.
3118 * valops.c (value_casst): Update logic for casting between vector
3119 types, and for casting from scalar to vector, try to match gcc C
3120 behaviour.
3121 * value.h (value_vector_widen): Declare.
3122 * opencl-lang.c (opencl_value_cast): New opencl specific casting
3123 function, handle special case for casting scalar to vector.
3124 (opencl_relop): Use opencl_value_cast.
3125 (evaluate_subexp_opencl): Use opencl_value_cast instead of
3126 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
3127 in order to use opencl_value_cast.
3128
843b20dc
YQ
31292013-01-25 Yao Qi <yao@codesourcery.com>
3130
3131 * event-loop.c: Include "queue.h".
3132 (gdb_event_p): New typedef.
3133 (DECLARE_QUEUE_P): Use.
3134 (DEFINE_QUEUE_P): Use.
3135 (async_queue_event): Remove.
3136 (gdb_event_xfree): New.
3137 (initialize_event_loop): New.
3138 (process_event): Use QUEUE macros.
3139 (event_queue): Remove.
3140 (gdb_wait_for_event): Caller update.
3141 (check_async_event_handlers): Likewise.
3142 (poll_timers): Likewise.
3143 * event-loop.h (initialize_event_loop): Declare.
3144 * event-loop.c (gdb_event_xfree): New.
3145 * top.c (gdb_init): Call initialize_event_loop.
3146
20ad8856
YQ
31472013-01-25 Yao Qi <yao@codesourcery.com>
3148
3149 * event-loop.c (async_queue_event): Remove one parameter
3150 'position'. Remove code handling 'position' == TAIL.
3151 (gdb_wait_for_event): Caller update.
3152 (check_async_event_handlers): Caller update.
3153 (poll_timers): Caller update.
3154 * event-loop.h (enum queue_position): Remove.
3155
3bbbe775
MK
31562013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
3157
3158 * MAINTAINERS: Update my email.
3159
a87d9ac4
YQ
31602013-01-25 Yao Qi <yao@codesourcery.com>
3161
3162 * main.c (print_gdb_help): Remove "--epoch" from the help
3163 message.
3164
2077afdd
TD
31652013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
3166
3167 * symtab.c (skip_prologue_using_sal): Consider a file
3168 change the same as an increased line number
3169
63da4037
TD
31702013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
3171
30e8ee25 3172 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 3173
45e6c716
TT
31742013-01-24 Tom Tromey <tromey@redhat.com>
3175
3176 * ada-lang.h (ada_decode_symbol): Make return type const.
3177 * ada-lang.c (ada_decode_symbol): Likewise.
3178
b1ae631a
DE
31792013-01-23 Doug Evans <dje@google.com>
3180
3181 * linespec.c (find_linespec_symbols): Make static.
3182
55a78401
SDJ
31832013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
3184
3185 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
3186 type on float conversion for complex type.
3187
bea883fd
SCR
31882013-01-23 Siva Chandra Reddy <sivachandra@google.com>
3189
3190 Add a new class gdb.Architecture which exposes GDB's
3191 internal representation of architecture via GDB Python API.
3192 * Makefile.in: Add entries corresponding to the new file
3193 python/py-arch.c.
3194 * NEWS (Python Scripting): Add entries for the new class
3195 gdb.Architecture and the new method gdb.Frame.architecture.
3196 * python/py-arch.c: Implement gdb.Architecture class.
3197 * python/py-frame.c (frapy_arch): Implement the method
3198 gdb.Frame.architecture().
3199 (frame_object_methods): Add 'architecture' to the method table.
3200 * python/python-internal.h: Add declarations of new utility
3201 functions.
3202 * python/python.c (_initialize_python): Initialize
3203 gdb.Architecture class.
3204
796a7ff8
DE
32052013-01-23 Doug Evans <dje@google.com>
3206
3207 Work around binutils/15021.
3208 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
3209 type_unit_group out of union s. All uses updated.
3210 (read_index_from_section): Watch for index version 8.
3211 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
3212 an imported symtab.
3213 (write_psymtabs_to_index): Increment version number to 8.
3214
0928e93d
PA
32152013-01-22 Pedro Alves <palves@redhat.com>
3216
3217 * annotate.c (breakpoint_changed): Skip if breakpoint is not
3218 user-visible.
3219
9c97429f
PA
32202013-01-22 Pedro Alves <palves@redhat.com>
3221
3222 * annotate.c (annotate_breakpoints_changed): Rename to ...
3223 (annotate_breakpoints_invalid): ... this. Make static.
3224 (breakpoint_changed): Adjust.
3225 (_initialize_annotate): Always install the observers. Install a
3226 "breakpoint_created" observer.
3227 * annotate.h (annotate_breakpoints_changed): Delete declaration.
3228 * breakpoint.c (set_breakpoint_condition)
3229 (breakpoint_set_commands, do_map_commands_command)
3230 (init_raw_breakpoint, clear_command, set_ignore_count)
3231 (enable_breakpoint_disp): No longer call
3232 annotate_breakpoints_changed.
3233
bd00c694
PA
32342013-01-22 Pedro Alves <palves@redhat.com>
3235
3236 * annotate.c: Include "inferior.h".
3237 (frames_invalid_emitted)
3238 (breakpoints_invalid_emitted): New globals.
3239 (async_background_execution_p): New function.
3240 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
3241 emitting the annotation if it has already been emitted.
3242 (annotate_display_prompt): New function.
3243 * annotate.h (annotate_display_prompt): New declaration.
3244 * event-top.c: Include annotate.h.
3245 (display_gdb_prompt): Call annotate_display_prompt.
3246
187d10dd
PA
32472013-01-22 Pedro Alves <palves@redhat.com>
3248
3249 * annotate.c (ignore_count_changed): Delete.
3250 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
3251 (annotate_ignore_count_change): Delete.
3252 (annotate_stopped): Don't emit a delayed breakpoints-changed
3253 annotation.
3254 * annotate.h (annotate_ignore_count_change): Delete.
3255 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
3256 annotate_ignore_count_change.
3257
d84cf7eb
TT
32582013-01-22 Tom Tromey <tromey@redhat.com>
3259
3260 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
3261 require_rvalue for a register location.
3262
8f1d5693
MK
32632013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
3264
3265 * breakpoint.c (print_one_breakpoint_location): Add MI
3266 field 'thread-groups' when printing a breakpoint.
3267 (output_thread_groups): New function.
3268
aa6199c6
SCR
32692013-01-21 Siva Chandra Reddy <sivachandra@google.com>
3270
3271 * python/lib/gdb/commands/explore.py
3272 (CompoundExplorer.explore_expr): Correct the name of a method
3273 being invoked.
3274 (ExploreTypeCommand.invoke): Add a missing 'return'.
3275
d2afef13
TT
32762013-01-21 Tom Tromey <tromey@redhat.com>
3277
3278 * gdb_obstack.h (obconcat): Move declaration here, from...
3279 * symfile.h (obconcat): ... here.
3280 * gdb_obstack.c: New file.
3281 (obconcat): Move from...
3282 * symfile.c (obconcat): ... here.
3283 * Makefile.in (SFILES): Add gdb_obstack.c.
3284 (COMMON_OBS): Add gdb_obstack.o.
3285
10f0c4bb
TT
32862013-01-21 Tom Tromey <tromey@redhat.com>
3287
3288 * symfile.h (obsavestring): Don't declare.
3289 * symfile.c (obsavestring): Remove.
3290 * ada-exp.y: Use obstack_copy0, not obsavestring.
3291 * ada-lang.c: Use obstack_copy0, not obsavestring.
3292 * coffread.c: Use obstack_copy0, not obsavestring.
3293 * cp-namespace.c: Use obstack_copy0, not obsavestring.
3294 * dbxread.c: Use obstack_copy0, not obsavestring.
3295 * dwarf2read.c: Use obstack_copy0, not obsavestring.
3296 * jit.c: Use obstack_copy0, not obsavestring.
3297 * mdebugread.c: Use obstack_copy0, not obsavestring.
3298 * psymtab.c: Use obstack_copy0, not obsavestring.
3299 * stabsread.c: Use obstack_copy0, not obsavestring.
3300 * xcoffread.c: Use obstack_copy0, not obsavestring.
3301
86f62fd7
TT
33022013-01-21 Tom Tromey <tromey@redhat.com>
3303
3304 * dwarf2read.c (fixup_go_packaging): Save package name
3305 on objfile obstack.
3306 * gdbtypes.c (init_type): Don't copy name.
3307
15d034d0
TT
33082013-01-21 Tom Tromey <tromey@redhat.com>
3309
3310 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
3311 const.
3312 (struct attribute) <u.str>: Now const.
3313 (struct fnfieldlist) <name>: Now const.
3314 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
3315 (partial_die_parent_scope): Make return type const.
3316 (partial_die_full_name, add_partial_symbol): Update.
3317 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
3318 'name' const.
3319 (find_file_and_directory): Make 'name' and 'comp_dir' const.
3320 (read_file_scope, read_func_scope, dwarf2_add_field)
3321 (dwarf2_add_member_fn, read_structure_type)
3322 (process_enumeration_scope, read_array_type, read_module_type)
3323 (read_base_type, read_subrange_type): Update.
3324 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
3325 (new_symbol_full, guess_full_die_structure_name): Update.
3326 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
3327 (dwarf2_name): Return const type.
3328 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
3329 const.
3330
748e18ae
TT
33312013-01-21 Tom Tromey <tromey@redhat.com>
3332
3333 * gdbtypes.c (init_type): Make 'name' const.
3334 * gdbtypes.h (init_type): Update.
3335
46212e0b
TT
33362013-01-21 Tom Tromey <tromey@redhat.com>
3337
3338 * buildsym.c (patch_subfile_names): Use set_last_source_file.
3339 (start_symtab): Make 'name' and 'dirname' const. Use
3340 set_last_source_file.
3341 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
3342 (last_source_file): Define. Now static.
3343 (set_last_source_file, get_last_source_file): New functions.
3344 * buildsym.h (last_source_file): Don't declare.
3345 (start_symtab): Update.
3346 (set_last_source_file, get_last_source_file): Declare.
3347 * coffread.c (complete_symtab): Use set_last_source_file.
3348 (coff_end_symtab): Likewise.
3349 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
3350 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
3351 set_last_source_file.
3352 (process_one_symbol): Use get_last_source_file.
3353 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
3354 (psymtab_to_symtab_1): Use get_last_source_file.
3355 * xcoffread.c (process_linenos): Use get_last_source_file.
3356 (complete_symtab): Use set_last_source_file.
3357 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
3358 (scan_xcoff_symtab): Use set_last_source_file.
3359
9d2ceabe
TT
33602013-01-21 Tom Tromey <tromey@redhat.com>
3361
3362 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
3363 (symbol_set_names): Remove casts. Handle field const-ness.
3364
cfc594ee
TT
33652013-01-21 Tom Tromey <tromey@redhat.com>
3366
3367 * dwarf2read.c (new_symbol_full): Remove cast.
3368 * symtab.c (symbol_set_demangled_name): Make 'name' const.
3369 * symtab.h (symbol_set_demangled_name): Update.
3370
5484b13a
TT
33712013-01-21 Tom Tromey <tromey@redhat.com>
3372
3373 * main.c (captured_main): Call bfd_init.
3374
1605ef26
TT
33752013-01-21 Tom Tromey <tromey@redhat.com>
3376
3377 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
3378 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
3379 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
3380 * NEWS: Update.
3381
3b74cdc3
JK
33822013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3383
3384 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
3385
5a352474
JK
33862013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3387
3388 Fix gdb.fortran/common-block.exp crash in PIE mode.
3389 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
3390 LOC_COMMON_BLOCK.
3391 * f-valprint.c (info_common_command_for_block): Expect
3392 LOC_COMMON_BLOCK in gdb_assert.
3393 * symtab.h (struct general_symbol_info): Update comment for the
3394 common_block member.
3395 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
3396 (enum address_class): New member LOC_COMMON_BLOCK.
3397
c60797fd
DB
33982013-01-18 David Blaikie <dblaikie@gmail.com>
3399
3400 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 3401
46f35228
TT
34022013-01-18 Tom Tromey <tromey@redhat.com>
3403
3404 PR c++/14999:
3405 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
3406 Call require_rvalue.
3407
257e7a09
YQ
34082013-01-18 Yao Qi <yao@codesourcery.com>
3409
3410 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
3411 (dbx_read_symtab): New declaration.
3412 (dbx_psymtab_to_symtab): Delete.
3413 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
3414 Rename parameter PST to SELF. Exchanged two parameters.
3415 (start_psymtab): Caller update.
3416 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
3417 (dwarf2_read_symtab): New declaration.
3418 (dwarf2_psymtab_to_symtab): Delete.
3419 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
3420 Rename parameter PST to SELF. Exchanged two parameters.
3421 (create_partial_symtab): Caller update.
3422 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
3423 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
3424 Rename parameter PST to SELF. Exchanged two parameters.
3425 (parse_partial_symbols, new_psymtab): Caller update.
3426 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
3427 two parameters.
3428 * psymtab.c (psymtab_to_symtab): Caller update.
3429 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
3430 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
3431 Rename parameter PST to SELF. Exchanged two parameters.
3432 (xcoff_start_psymtab): Caller update.
3433
0de5618e
YQ
34342013-01-18 Yao Qi <yao@codesourcery.com>
3435
3436 * infrun.c (proceed): Rename local variable 'oneproc' to
3437 'force_step'.
3438
5c04624b
DE
34392013-01-17 Doug Evans <dje@google.com>
3440
848e3e78
DE
3441 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
3442 (dw2_build_type_unit_groups): Delete. All uses updated.
3443
5c04624b
DE
3444 * symtab.h (struct symbol_search): Add comment.
3445
d84fca2c
JK
34462013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3447
3448 * symtab.c (compare_filenames_for_search): New comment for
3449 HAS_DRIVE_SPEC.
3450
6108433d
TT
34512013-01-17 Tom Tromey <tromey@redhat.com>
3452
3453 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
3454
c89ffd86
JK
34552013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3456
3457 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
3458 initialize it by existing make_cleanup. Call new do_cleanups.
3459
db2b2972
TT
34602013-01-17 Tom Tromey <tromey@redhat.com>
3461
3462 * cp-abi.c (cp_abi_completer): New function.
3463 (_initialize_cp_abi): Set completer for "set cp-abi".
3464
be7d37a2
TT
34652013-01-17 Tom Tromey <tromey@redhat.com>
3466
3467 * mem-break.c: Remove obsolete comment.
3468 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
3469
c9fb1240
SD
34702012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
3471
3472 * jit.c (jit_reader_load_command): Interpret the jit reader name
3473 as an absolute path if it begins with a forward slash.
3474
db334a01
SD
34752012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
3476
3477 PR gdb/14550
3478
3479 * jit.c (finalize_symtab): Ensure that only the global block has a
3480 NULL superblock.
3481
7d928dac
PA
34822013-01-17 Pedro Alves <palves@redhat.com>
3483
3484 * acinclude.m4: Include ../config/plugins.m4,
3485 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
3486 * Makefile.in (aclocal_m4_deps): Update.
3487 * aclocal.m4: Renegerate.
3488
fb8cf7c5
DE
34892013-01-16 Doug Evans <dje@google.com>
3490
3491 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
3492
ab04a2af
TT
34932013-01-16 Pedro Alves <palves@redhat.com>
3494 Tom Tromey <tromey@redhat.com>
3495
3496 PR cli/7221:
3497 * NEWS: Add "catch signal".
3498 * breakpoint.c (base_breakpoint_ops): No longer static.
3499 (bpstat_explains_signal): New function.
3500 (init_catchpoint): No longer static.
3501 (base_breakpoint_explains_signal): New function.
3502 (base_breakpoint_ops): Initialize new field.
3503 * breakpoint.h (enum bpstat_signal_value): New.
3504 (struct breakpoint_ops) <explains_signal>: New field.
3505 (bpstat_explains_signal): Remove macro, declare as function.
3506 (base_breakpoint_ops, init_catchpoint): Declare.
3507 * break-catch-sig.c: New file.
3508 * inferior.h (signal_catch_update): Declare.
3509 * infrun.c (signal_catch): New global.
3510 (handle_syscall_event): Update for change to
3511 bpstat_explains_signal.
3512 (handle_inferior_event): Likewise. Always handle random signals
3513 via bpstats.
3514 (signal_cache_update): Check signal_catch.
3515 (signal_catch_update): New function.
3516 (_initialize_infrun): Initialize signal_catch.
3517 * Makefile.in (SFILES): Add break-catch-sig.c.
3518 (COMMON_OBS): Add break-catch-sig.o.
3519
8ac3646f
TT
35202013-01-16 Tom Tromey <tromey@redhat.com>
3521
3522 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
3523 (print_one_catch_solib, print_one_catch_syscall)
3524 (print_one_catch_exec, print_one_exception_catchpoint): Emit
3525 "catch-type".
3526
5a18e302
YQ
35272013-01-16 Yao Qi <yao@codesourcery.com>
3528
3529 * printcmd.c (current_display_number): Make it static.
3530
3f01d0d0
YQ
35312013-01-16 Yao Qi <yao@codesourcery.com>
3532
3533 * infcmd.c (step_once): Don't check '!single_inst' as it was
3534 checked before.
3535
1ed59174
JK
35362013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3537
3538 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
3539
44478ab3
TT
35402013-01-14 Tom Tromey <tromey@redhat.com>
3541
3542 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
3543 set command.
3544 * command.h (add_setshow_string_noescape_cmd): Update.
3545 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
3546 (complete_set_gnutarget): New function.
3547 (_initialize_core): Set the "set gnutarget" completer.
3548
06d66ee9
TT
35492013-01-14 Tom Tromey <tromey@redhat.com>
3550
3551 PR symtab/14442:
3552 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
3553 (c_type_print_modifier): Likewise.
3554 * dwarf2read.c (read_tag_restrict_type): New function.
3555 (read_type_die_1): Handle DW_TAG_restrict_type.
3556 * gdbtypes.c (make_restrict_type): New function.
3557 (recursive_dump_type): Handle TYPE_RESTRICT.
3558 * gdbtypes.h (enum type_flag_values): Renumber.
3559 (enum type_instance_flag_value): Add
3560 TYPE_INSTANCE_FLAG_RESTRICT.
3561 (TYPE_RESTRICT): New macro.
3562 (make_restrict_type): Declare.
3563
c9bf0622
TT
35642013-01-14 Tom Tromey <tromey@redhat.com>
3565
3566 PR symtab/14931:
3567 * psymtab.c (struct psymtab_state): New.
3568 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
3569 functions.
3570 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
3571 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
3572
44d594fd
PA
35732013-01-14 Richard Sharman <richard_sharman@mitel.com>
3574 Pedro Alves <palves@redhat.com>
3575
3576 PR remote/14786
3577
3578 * remote.c (remote_threads_info): Make a copy of the reply from
3579 qfThreadInfo and use that instead of rs->buf.
3580
442e4d9c
YQ
35812013-01-14 Yao Qi <yao@codesourcery.com>
3582
3583 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
3584 (dbx_psymtab_to_symtab): Likewise.
3585 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
3586 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
3587 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
3588
5b12a61c
JK
35892013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3590
3591 * parse.c (parse_exp_in_context): New variable inner_chain. Call
3592 make_cleanup_restore_current_language. Call set_language. Move
3593 OLD_CHAIN and INNER_CHAIN cleanups.
3594 * utils.c (do_restore_current_language)
3595 (make_cleanup_restore_current_language): New functions.
3596 * utils.h (make_cleanup_restore_current_language): New declaration.
3597
f0a4b570
JK
35982013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3599
3600 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
3601 non-existing files.
3602
57b3c00c
JK
3603 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
3604 non-existing files if FILENAME is already absolute.
3605
daefa854
JK
36062013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3607
3608 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
3609 fputs_filtered. Append trailing newline.
3610
ca9c6ee2
YQ
36112013-01-11 Yao Qi <yao@codesourcery.com>
3612 Stan Shebs <stan@codesourcery.com>
3613
3614 * psymtab.c (init_psymbol_list): Clarify the comment.
3615
f28045c2
YQ
36162013-01-11 Yao Qi <yao@codesourcery.com>
3617
3618 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
3619 (update_dprintf_command_list): Assert that 'printf_line' is
3620 non-null. Remove condition check.
3621
da5132d3
JK
36222013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3623
3624 Code cleanup.
3625 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
3626 type const char *.
3627 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
3628 const char *.
3629 * tui/tui-source.h (tui_source_is_displayed): Likewise.
3630
843e694d
AG
36312013-01-09 Anthony Green <green@moxielogic.com>
3632
3633 * cp-abi.c (cplus_print_vtable): Don't return value from void
3634 function.
3635 * ada-lang.c (re_set_catch_assert): Ditto.
3636
da51c347
DE
36372013-01-09 Doug Evans <dje@google.com>
3638
3639 * symfile.h (quick_symbol_functions): Delete member
3640 pre_expand_symtabs_matching. All uses removed.
3641 * dwarf2read.c (dw2_lookup_symbol): Implement.
3642 (dw2_do_expand_symtabs_matching): Delete.
3643 (dw2_pre_expand_symtabs_matching): Delete.
3644 (struct dw2_symtab_iterator): New type.
3645 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
3646 (dw2_expand_symtabs_for_function): Rewrite.
3647 (dwarf2_gdb_index_functions): Update.
3648 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
3649 (psym_functions): Update.
3650
b2259038
TT
36512013-01-09 Tom Tromey <tromey@redhat.com>
3652
3653 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
3654 * configure: Rebuild.
3655 * configure.ac: Add somread.o to the build if BFD has SOM
3656 support.
3657 * somread.c: Include som/aout.h, not syms.h.
3658 (som_symtab_read): Use som_external_symbol_dictionary_record.
3659 Unpack records manually.
3660 (_initialize_somread): Declare.
3661
bdad4180
MF
36622012-01-08 Mike Frysinger <vapier@gentoo.org>
3663
3664 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
3665 Cast return_address to 64bits.
3666
03cdf680
HZ
36672013-01-08 Hui Zhu <hui_zhu@mentor.com>
3668
3669 * printcmd.c: Remove define of function output_command.
3670 * tracepoint.c: Remove extern of function output_command.
3671 * valprint.h: (output_command): New extern.
3672
8a808554
TT
36732013-01-07 Tom Tromey <tromey@redhat.com>
3674
3675 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
3676 Remove.
3677 (objc_language_defn): Use c_printchar, c_printstr,
3678 c_emit_char.
3679
e93a8774
TT
36802013-01-07 Tom Tromey <tromey@redhat.com>
3681
3682 PR cli/7719:
3683 * NEWS: Update.
3684 * ada-valprint.c (printstr, print_field_values): Remove
3685 "inspect_it" code.
3686 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
3687 code.
3688 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
3689 code.
3690 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
3691 * main.c (captured_main): Remove "epoch" argument.
3692 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
3693 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
3694 * p-valprint.c (pascal_object_print_value_fields): Remove
3695 "inspect_it" code.
3696 * printcmd.c (print_command_1): Remove 'inspect' argument.
3697 (print_command, call_command): Update.
3698 (inspect_command): Remove.
3699 (_initialize_printcmd): Make "inspect" an alias for "print".
3700 * top.c (epoch_interface): Remove.
3701 * top.h (epoch_interface): Remove.
3702 * valprint.c (user_print_options): Update.
3703 (print_converted_chars_to_obstack): Remove "inspect_it" code.
3704 * valprint.h (struct value_print_options) <inspect_it>: Remove
3705 field.
3706
37072013-01-04 Tom Tromey <tromey@redhat.com>
3708
3709 * valprint.h (read_string): Add 'extern'.
3710
b967eb24
JB
37112013-01-07 Joel Brobecker <brobecker@adacore.com>
3712
3713 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
3714 used to decide whether to define darwin_read_dyld_info or not.
3715
78a8b30e
PM
37162013-01-03 Pierre Muller <muller@sourceware.org>
3717
3718 * main.c (relocate_gdb_directory): Avoid calling stat function
3719 if DIR is empty.
3720
50da2f25
YQ
37212013-01-03 Yao Qi <yao@codesourcery.com>
3722
3723 * psymtab.c (fixup_psymbol_section): Update declaration.
3724 (fixup_psymbol_section): Remove code returning value.
3725
e7e8980f
YQ
37262013-01-03 Yao Qi <yao@codesourcery.com>
3727
3728 * symtab.h: Remove some out of date comments.
3729 (enum exception_event_kind): Move it ...
3730 * breakpoint.c: ... here.
3731
569283d4
MF
37322013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
3733
9f9d9a96 3734 PR gdb/14405
569283d4
MF
3735 * darwin-nat.c (darwin_read_dyld_info): Only build if
3736 TASK_DYLD_INFO_COUNT is defined.
3737 (darwin_xfer_partial): Call darwin_read_dyld_info only if
3738 TASK_DYLD_INFO_COUNT is defined.
3739
2e36fbea
TT
37402013-01-02 Tom Tromey <tromey@redhat.com>
3741
3742 * symfile.h (struct ecoff_debug_hack): Remove.
3743 * objfiles.c: Don't include mdebugread.h.
3744
4f05add4
TT
37452013-01-02 Tom Tromey <tromey@redhat.com>
3746
3747 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
3748 * configure.ac: Check for Mach-O support in BFD. Update
3749 CONFIG_OBS.
3750 * configure: Rebuild.
3751
def63ff0
TT
37522013-01-02 Tom Tromey <tromey@redhat.com>
3753
3754 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
3755 * configure.ac: Use GDB_AC_CHECK_BFD.
3756 * configure: Rebuild.
3757
60c5dd93
MK
37582013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
3759
3760 * MAINTAINERS: Update my email.
3761
6e58437e
JB
37622013-01-01 Joel Brobecker <brobecker@adacore.com>
3763
3764 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
3765
627fe805
JB
37662013-01-01 Joel Brobecker <brobecker@adacore.com>
3767
3768 * rs6000-nat.c (bss_data_overlap): New function.
3769 (vmap_symtab): Use it to adjust the .bss section's offset.
3770
28e7fd62
JB
37712013-01-01 Joel Brobecker <brobecker@adacore.com>
3772
3773 Update year range in copyright notice of all files.
3774
e93a8774 37752013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
3776
3777 * top.c (print_gdb_version): Update copyright year.
3778
72b20e9c 3779For older changes see ChangeLog-2012.
c906108c
SS
3780\f
3781Local Variables:
3782mode: change-log
3783left-margin: 8
3784fill-column: 74
3785version-control: never
57da7796 3786coding: utf-8
c906108c 3787End:
This page took 1.75244 seconds and 4 git commands to generate.