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