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