Provide default target methods for record targets that are likely to be shared
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2
3 * record.h (record_disconnect): New.
4 (record_detach): New.
5 (record_mourn_inferior): New.
6 (record_kill): New.
7 * record-full.c (record_disconnect, record_detach,
8 record_mourn_inferior, record_kill): Move to...
9 * record.c: ...here.
10 (DEBUG): New.
11 (record_stop): New.
12 (record_unpush): New.
13 (cmd_record_stop): Call record_stop. Replace unpush_target
14 call with record_unpush call.
15 (record_disconnect, record_detach): Assert that the target
16 is of record stratum. Call record_unpush, record_stop, and
17 DEBUG.
18 (record_mourn_inferior, record_kill): Assert that the target
19 is of record stratum. Call record_unpush and DEBUG.
20
21 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
22
23 * record-full.h, record-full.c (record_memory_query): Rename
24 to ...
25 (record_full_memory_query): ...this. Update all users.
26 (record_arch_list_add_reg): Rename to ...
27 (record_full_arch_list_add_reg): ...this. Update all users.
28 (record_arch_list_add_mem): Rename to ...
29 (record_full_arch_list_add_mem): ...this. Update all users.
30 (record_arch_list_add_end): Rename to ...
31 (record_full_arch_list_add_end): ...this. Update all users.
32 (record_gdb_operation_disable_set): Rename to ...
33 (record_full_gdb_operation_disable_set): ...this.
34 Update all users.
35
36 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
37
38 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
39 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
40 (RECORD_IS_REPLAY): Renamed to ...
41 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
42 (RECORD_FILE_MAGIC): Renamed to ...
43 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
44 (record_mem_entry): Renamed to ...
45 (record_full_mem_entry): ... this. Updated all users.
46 (record_reg_entry): Renamed to ...
47 (record_full_reg_entry): ... this. Updated all users.
48 (record_end_entry): Renamed to ...
49 (record_full_end_entry): ... this. Updated all users.
50 (record_type) <record_end, record_reg, record_mem>: Renamed
51 to ...
52 (record_full_type) <record_full_end, record_full_reg,
53 record_full_mem>: ... this. Updated all users.
54 (record_entry): Renamed to ...
55 (record_full_entry): ... this. Updated all users.
56 (record_core_buf_entry): Renamed to ...
57 (record_full_core_buf_entry): ... this. Updated all users.
58 (record_core_regbuf): Renamed to ...
59 (record_full_core_regbuf): ... this. Updated all users.
60 (record_core_start): Renamed to ...
61 (record_full_core_start): ... this. Updated all users.
62 (record_core_end): Renamed to ...
63 (record_full_core_end): ... this. Updated all users.
64 (record_core_buf_list): Renamed to ...
65 (record_full_core_buf_list): ... this. Updated all users.
66 (record_first): Renamed to ...
67 (record_full_first): ... this. Updated all users.
68 (record_list): Renamed to ...
69 (record_full_list): ... this. Updated all users.
70 (record_arch_list_head): Renamed to ...
71 (record_full_arch_list_head): ... this. Updated all users.
72 (record_arch_list_tail): Renamed to ...
73 (record_full_arch_list_tail): ... this. Updated all users.
74 (record_stop_at_limit): Renamed to ...
75 (record_full_stop_at_limit): ... this. Updated all users.
76 (record_insn_max_num): Renamed to ...
77 (record_full_insn_max_num): ... this. Updated all users.
78 (record_insn_num): Renamed to ...
79 (record_full_insn_num): ... this. Updated all users.
80 (record_insn_count): Renamed to ...
81 (record_full_insn_count): ... this. Updated all users.
82 (record_ops): Renamed to ...
83 (record_full_ops): ... this. Updated all users.
84 (record_core_ops): Renamed to ...
85 (record_full_core_ops): ... this. Updated all users.
86 (set_record_cmdlist): Renamed to ...
87 (set_record_full_cmdlist): ... this. Updated all users.
88 (show_record_cmdlist): Renamed to ...
89 (show_record_full_cmdlist): ... this. Updated all users.
90 (record_cmdlist): Renamed to ...
91 (record_full_cmdlist): ... this. Updated all users.
92 (record_beneath_to_resume_ops): Renamed to ...
93 (record_full_beneath_to_resume_ops): ... this. Updated all users.
94 (record_beneath_to_resume): Renamed to ...
95 (record_full_beneath_to_resume): ... this. Updated all users.
96 (record_beneath_to_wait_ops): Renamed to ...
97 (record_full_beneath_to_wait_ops): ... this. Updated all users.
98 (record_beneath_to_wait): Renamed to ...
99 (record_full_beneath_to_wait): ... this. Updated all users.
100 (record_beneath_to_store_registers_ops): Renamed to ...
101 (record_full_beneath_to_store_registers_ops): ... this.
102 Updated all users.
103 (record_beneath_to_store_registers): Renamed to ...
104 (record_full_beneath_to_store_registers): ... this.
105 Updated all users.
106 (record_beneath_to_xfer_partial_ops): Renamed to ...
107 (record_full_beneath_to_xfer_partial_ops): ... this.
108 Updated all users.
109 (record_beneath_to_xfer_partial): Renamed to ...
110 (record_full_beneath_to_xfer_partial): ... this.
111 Updated all users.
112 (record_beneath_to_insert_breakpoint): Renamed to ...
113 (record_full_beneath_to_insert_breakpoint): ... this.
114 Updated all users.
115 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
116 (record_full_beneath_to_stopped_by_watchpoint): ... this.
117 Updated all users.
118 (record_beneath_to_stopped_data_address): Renamed to ...
119 (record_full_beneath_to_stopped_data_address): ... this.
120 Updated all users.
121 (record_beneath_to_async): Renamed to ...
122 (record_full_beneath_to_async): ... this. Updated all users.
123 (record_goto_insn): Renamed to ...
124 (record_full_goto_insn): ... this. Updated all users.
125 (record_save): Renamed to ...
126 (record_full_save): ... this. Updated all users.
127 (record_reg_alloc): Renamed to ...
128 (record_full_reg_alloc): ... this. Updated all users.
129 (record_reg_release): Renamed to ...
130 (record_full_reg_release): ... this. Updated all users.
131 (record_mem_alloc): Renamed to ...
132 (record_full_mem_alloc): ... this. Updated all users.
133 (record_mem_release): Renamed to ...
134 (record_full_mem_release): ... this. Updated all users.
135 (record_end_alloc): Renamed to ...
136 (record_full_end_alloc): ... this. Updated all users.
137 (record_end_release): Renamed to ...
138 (record_full_end_release): ... this. Updated all users.
139 (record_entry_release): Renamed to ...
140 (record_full_entry_release): ... this. Updated all users.
141 (record_list_release): Renamed to ...
142 (record_full_list_release): ... this. Updated all users.
143 (record_list_release_following): Renamed to ...
144 (record_full_list_release_following): ... this.
145 Updated all users.
146 (record_list_release_first): Renamed to ...
147 (record_full_list_release_first): ... this. Updated all users.
148 (record_arch_list_add): Renamed to ...
149 (record_full_arch_list_add): ... this. Updated all users.
150 (record_get_loc): Renamed to ...
151 (record_full_get_loc): ... this. Updated all users.
152 (record_check_insn_num): Renamed to ...
153 (record_full_check_insn_num): ... this. Updated all users.
154 (record_arch_list_cleanups): Renamed to ...
155 (record_full_arch_list_cleanups): ... this. Updated all users.
156 (record_message): Renamed to ...
157 (record_full_message): ... this. Updated all users.
158 (record_message_wrapper): Renamed to ...
159 (record_full_message_wrapper): ... this. Updated all users.
160 (record_message_wrapper_safe): Renamed to ...
161 (record_full_message_wrapper_safe): ... this. Updated all users.
162 (record_gdb_operation_disable): Renamed to ...
163 (record_full_gdb_operation_disable): ... this. Updated all users.
164 (record_hw_watchpoint): Renamed to ...
165 (record_full_hw_watchpoint): ... this. Updated all users.
166 (record_exec_insn): Renamed to ...
167 (record_full_exec_insn): ... this. Updated all users.
168 (record_restore): Renamed to ...
169 (record_full_restore): ... this. Updated all users.
170 (record_async_inferior_event_token): Renamed to ...
171 (record_full_async_inferior_event_token): ... this.
172 Updated all users.
173 (record_async_inferior_event_handler): Renamed to ...
174 (record_full_async_inferior_event_handler): ... this.
175 Updated all users.
176 (record_core_open_1): Renamed to ...
177 (record_full_core_open_1): ... this. Updated all users.
178 (record_open_1): Renamed to ...
179 (record_full_open_1): ... this. Updated all users.
180 (record_open): Renamed to ...
181 (record_full_open): ... this. Updated all users.
182 (record_close): Renamed to ...
183 (record_full_close): ... this. Updated all users.
184 (record_resume_step): Renamed to ...
185 (record_full_resume_step): ... this. Updated all users.
186 (record_resumed): Renamed to ...
187 (record_full_resumed): ... this. Updated all users.
188 (record_execution_dir): Renamed to ...
189 (record_full_execution_dir): ... this. Updated all users.
190 (record_resume): Renamed to ...
191 (record_full_resume): ... this. Updated all users.
192 (record_get_sig): Renamed to ...
193 (record_full_get_sig): ... this. Updated all users.
194 (record_sig_handler): Renamed to ...
195 (record_full_sig_handler): ... this. Updated all users.
196 (record_wait_cleanups): Renamed to ...
197 (record_full_wait_cleanups): ... this. Updated all users.
198 (record_wait_1): Renamed to ...
199 (record_full_wait_1): ... this. Updated all users.
200 (record_wait): Renamed to ...
201 (record_full_wait): ... this. Updated all users.
202 (record_stopped_by_watchpoint): Renamed to ...
203 (record_full_stopped_by_watchpoint): ... this. Updated all users.
204 (record_disconnect): Renamed to ...
205 (record_full_disconnect): ... this. Updated all users.
206 (record_detach): Renamed to ...
207 (record_full_detach): ... this. Updated all users.
208 (record_mourn_inferior): Renamed to ...
209 (record_full_mourn_inferior): ... this. Updated all users.
210 (record_kill): Renamed to ...
211 (record_full_kill): ... this. Updated all users.
212 (record_stopped_data_address): Renamed to ...
213 (record_full_stopped_data_address): ... this. Updated all users.
214 (record_registers_change): Renamed to ...
215 (record_full_registers_change): ... this. Updated all users.
216 (record_store_registers): Renamed to ...
217 (record_full_store_registers): ... this. Updated all users.
218 (record_xfer_partial): Renamed to ...
219 (record_full_xfer_partial): ... this. Updated all users.
220 (record_breakpoint): Renamed to ...
221 (record_full_breakpoint): ... this. Updated all users.
222 (record_breakpoint_p): Renamed to ...
223 (record_full_breakpoint_p): ... this. Updated all users.
224 (record_breakpoints): Renamed to ...
225 (record_full_breakpoints): ... this. Updated all users.
226 (record_sync_record_breakpoints): Renamed to ...
227 (record_full_sync_record_breakpoints): ... this.
228 Updated all users.
229 (record_init_record_breakpoints): Renamed to ...
230 (record_full_init_record_breakpoints): ... this.
231 Updated all users.
232 (record_insert_breakpoint): Renamed to ...
233 (record_full_insert_breakpoint): ... this. Updated all users.
234 (record_remove_breakpoint): Renamed to ...
235 (record_full_remove_breakpoint): ... this. Updated all users.
236 (record_can_execute_reverse): Renamed to ...
237 (record_full_can_execute_reverse): ... this. Updated all users.
238 (record_get_bookmark): Renamed to ...
239 (record_full_get_bookmark): ... this. Updated all users.
240 (record_goto_bookmark): Renamed to ...
241 (record_full_goto_bookmark): ... this. Updated all users.
242 (record_async): Renamed to ...
243 (record_full_async): ... this. Updated all users.
244 (record_can_async_p): Renamed to ...
245 (record_full_can_async_p): ... this. Updated all users.
246 (record_is_async_p): Renamed to ...
247 (record_full_is_async_p): ... this. Updated all users.
248 (record_execution_direction): Renamed to ...
249 (record_full_execution_direction): ... this. Updated all users.
250 (record_info): Renamed to ...
251 (record_full_info): ... this. Updated all users.
252 (record_delete): Renamed to ...
253 (record_full_delete): ... this. Updated all users.
254 (record_is_replaying): Renamed to ...
255 (record_full_is_replaying): ... this. Updated all users.
256 (record_goto_entry): Renamed to ...
257 (record_full_goto_entry): ... this. Updated all users.
258 (record_goto_begin): Renamed to ...
259 (record_full_goto_begin): ... this. Updated all users.
260 (record_goto_end): Renamed to ...
261 (record_full_goto_end): ... this. Updated all users.
262 (record_goto): Renamed to ...
263 (record_full_goto): ... this. Updated all users.
264 (init_record_ops): Renamed to ...
265 (init_record_full_ops): ... this. Updated all users.
266 (record_core_resume): Renamed to ...
267 (record_full_core_resume): ... this. Updated all users.
268 (record_core_kill): Renamed to ...
269 (record_full_core_kill): ... this. Updated all users.
270 (record_core_fetch_registers): Renamed to ...
271 (record_full_core_fetch_registers): ... this. Updated all users.
272 (record_core_prepare_to_store): Renamed to ...
273 (record_full_core_prepare_to_store): ... this. Updated all users.
274 (record_core_store_registers): Renamed to ...
275 (record_full_core_store_registers): ... this. Updated all users.
276 (record_core_xfer_partial): Renamed to ...
277 (record_full_core_xfer_partial): ... this. Updated all users.
278 (record_core_insert_breakpoint): Renamed to ...
279 (record_full_core_insert_breakpoint): ... this. Updated all users.
280 (record_core_remove_breakpoint): Renamed to ...
281 (record_full_core_remove_breakpoint): ... this. Updated all users.
282 (record_core_has_execution): Renamed to ...
283 (record_full_core_has_execution): ... this. Updated all users.
284 (init_record_core_ops): Renamed to ...
285 (init_record_full_core_ops): ... this. Updated all users.
286 (cmd_record_restore): Renamed to ...
287 (cmd_record_full_restore): ... this. Updated all users.
288 (record_save_cleanups): Renamed to ...
289 (record_full_save_cleanups): ... this. Updated all users.
290 (cmd_record_start): Renamed to ...
291 (cmd_record_full_start): ... this. Updated all users.
292 (set_record_insn_max_num): Renamed to ...
293 (set_record_full_insn_max_num): ... this. Updated all users.
294 (set_record_command): Renamed to ...
295 (set_record_full_command): ... this. Updated all users.
296 (show_record_command): Renamed to ...
297 (show_record_full_command): ... this. Updated all users.
298 (_initialize_record): Renamed to ...
299 (_initialize_record_full): ... this. Updated all users.
300
301 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
302
303 * record.h: Split into this and ...
304 * record-full.h: ... this.
305 * record.c: Split into this and ...
306 * record-full.c: ... this.
307 * target.h (target_ops): Add new fields to_info_record,
308 to_save_record, to_delete_record, to_record_is_replaying,
309 to_goto_record_begin, to_goto_record_end, to_goto_record.
310 (target_info_record): New.
311 (target_save_record): New.
312 (target_supports_delete_record): New.
313 (target_delete_record): New.
314 (target_record_is_replaying): New.
315 (target_goto_record_begin): New.
316 (target_goto_record_end): New.
317 (target_goto_record): New.
318 * target.c (target_info_record): New.
319 (target_save_record): New.
320 (target_supports_delete_record): New.
321 (target_delete_record): New.
322 (target_record_is_replaying): New.
323 (target_goto_record_begin): New.
324 (target_goto_record_end): New.
325 (target_goto_record): New.
326 * record.h: Declare struct cmd_list_element.
327 (record_cmdlist): New declaration.
328 (set_record_cmdlist): New declaration.
329 (show_record_cmdlist): New declaration.
330 (info_record_cmdlist): New declaration.
331 (cmd_record_goto): New declaration.
332 * record.c: Remove unnecessary includes.
333 Include inferior.h.
334 (cmd_record_goto): Remove declaration.
335 (record_cmdlist): Now extern. Initialize.
336 (set_record_cmdlist): Now extern. Initialize.
337 (show_record_cmdlist): Now extern. Initialize.
338 (info_record_cmdlist): Now extern. Initialize.
339 (find_record_target): New.
340 (require_record_target): New.
341 (cmd_record_start): Update.
342 (cmd_record_delete): Remove target-specific code.
343 Call target_delete_record.
344 (cmd_record_stop): Unpush any record target.
345 (set_record_insn_max_num): Move to record-full.c
346 (set_record_command): Add comment.
347 (show_record_command): Add comment.
348 (info_record_command): Update comment.
349 Remove target-specific code.
350 Call the record target's to_info_record.
351 (cmd_record_start): New.
352 (cmd_record_goto): Now extern.
353 Remove target-specific code.
354 Call target_goto_begin, target_goto_end, or target_goto.
355 (_initialize_record): Move record target ops initialization to
356 record-full.c.
357 Change "record" command help text.
358 Move "record restore", "record set", and "record show" commands to
359 record-full.c.
360 * Makefile.in (SFILES): Add record-full.c.
361 (HFILES_NO_SRCDIR): Add record-full.h.
362 (COMMON_OBS): Add record-full.o.
363 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
364 * arm-tdep.c: Include record-full.h.
365 * i386-linux-tdep.c: Include record-full.h instead of record.h.
366 * i386-tdep.c: Include record-full.h.
367 * infrun.c: Include record-full.h.
368 * linux-record.c: Include record-full.h.
369 * moxie-tdep.c: Include record-full.h.
370 * record-full.c: Include record-full.h.
371 Change module comment.
372 (set_record_full_cmdlist): New.
373 (show_record_full_cmdlist): New.
374 (record_full_cmdlist): New.
375 (record_goto_insn): New declaration.
376 (record_save): New declaration.
377 (record_check_insn_num): Change query string.
378 (record_info): New.
379 (record_delete): New.
380 (record_is_replaying): New.
381 (record_goto_entry): New.
382 (record_goto_begin): New.
383 (record_goto_end): New.
384 (record_goto): New.
385 (init_record_ops): Update.
386 (init_record_core_ops): Update.
387 (cmd_record_save): Rename to record_save. Remove target and arg checks.
388 (cmd_record_start): New.
389 (set_record_insn_max_num): Moved from record.c
390 (set_record_full_command): New.
391 (show_record_full_command): New.
392 (_initialize_record_full): New.
393
394 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
395
396 * target.h (add_deprecated_target_alias): New.
397 * target.c (add_deprecated_target_alias): New.
398
399 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
400
401 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
402 and signal.h.
403 (linux_supports_btrace): Add kernel and
404 cpuid check.
405 (kernel_supports_btrace): New function.
406 (cpu_supports_btrace): New function.
407 (intel_supports_btrace): New function.
408
409 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
410
411 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
412 * remote.c: Include btrace.h.
413 (struct btrace_target_info): New struct.
414 (remote_supports_btrace): New function.
415 (send_Qbtrace): New function.
416 (remote_enable_btrace): New function.
417 (remote_disable_btrace): New function.
418 (remote_teardown_btrace): New function.
419 (remote_read_btrace): New function.
420 (init_remote_ops): Add btrace ops.
421 (enum <unnamed>): Add btrace packets.
422 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
423 (_initialize_remote): Add packet configuration for branch tracing.
424
425 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
426
427 * features/btrace.dtd: New file.
428 * Makefile.in (XMLFILES): Add btrace.dtd.
429 * btrace.h (parse_xml_btrace): New declaration.
430 * btrace.c: Include xml-support.h.
431 (parse_xml_btrace): New function.
432 (parse_xml_btrace_block): New function.
433 (block_attributes): New struct.
434 (btrace_attributes): New struct.
435 (btrace_children): New struct.
436 (btrace_elements): New struct.
437
438 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
439
440 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
441 (amd64_linux_enable_btrace): New.
442 (amd64_linux_disable_btrace): New.
443 (amd64_linux_teardown_btrace): New.
444 (_initialize_amd64_linux_nat): Initialize btrace ops.
445 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
446 (i386_linux_enable_btrace): New.
447 (i386_linux_disable_btrace): New.
448 (i386_linux_teardown_btrace): New.
449 (_initialize_i386_linux_nat): Initialize btrace ops.
450 * config/i386/linux.mh: Add linux-btrace.o.
451 * config/i386/linux64.mh: Add linux-btrace.o.
452
453 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
454
455 * common/linux_btrace.h: New file.
456 * common/linux_btrace.c: New file.
457 * Makefile.in (SFILES): Add btrace.c.
458 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
459 (COMMON_OBS): Add btrace.o.
460 (linux-btrace.o): New rule.
461
462 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
463
464 * target.h: Include btrace.h.
465 (struct target_ops) <to_supports_btrace, to_enable_btrace,
466 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
467 * target.c (target_supports_btrace): New function.
468 (target_enable_btrace): New function.
469 (target_disable_btrace): New function.
470 (target_teardown_btrace): New function.
471 (target_read_btrace): New function.
472 * btrace.h: New file.
473 * btrace.c: New file.
474 * Makefile.in: Add btrace.c.
475 * gdbthread.h: Include btrace.h.
476 (struct thread_info): Add btrace field.
477 * thread.c: Include btrace.h.
478 (clear_thread_inferior_resources): Call target_teardown_btrace.
479 * common/btrace-common.h: New file.
480
481 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
482
483 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
484 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
485 kill_status to outer block.
486
487 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
488
489 Fix entry-values if the callee called a noreturn function.
490 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
491 get_frame_address_in_block. Add new comment.
492
493 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
494
495 Fix entry-values in C++ across CUs.
496 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
497 lookup_minimal_symbol. Add a comment.
498 * dwarf2read.c
499 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
500 DW_AT_linkage_name.
501
502 2013-03-08 Yao Qi <yao@codesourcery.com>
503
504 * tracepoint.c (_initialize_tracepoint): Indent the code.
505
506 2013-03-08 Pedro Alves <palves@redhat.com>
507
508 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
509 (parse_find_args, find_command): Change type of pattern buffer
510 locals to 'gdb_byte *'.
511
512 2013-03-08 Stan Shebs <stan@codesourcery.com>
513 Hafiz Abid Qadeer <abidh@codesourcery.com>
514
515 * NEWS: Mention set and show trace-buffer-size commands.
516 Mention new packet.
517 * target.h (struct target_ops): New method
518 to_set_trace_buffer_size.
519 (target_set_trace_buffer_size): New macro.
520 * target.c (update_current_target): Set up new method.
521 * tracepoint.c (trace_buffer_size): New global.
522 (start_tracing): Send it to the target.
523 (set_trace_buffer_size): New function.
524 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
525 * remote.c (remote_set_trace_buffer_size): New function.
526 (_initialize_remote): Use it.
527 (QTBuffer:size) New remote command.
528 (PACKET_QTBuffer_size): New enum.
529 (remote_protocol_features): Add an entry for
530 PACKET_QTBuffer_size.
531
532 2013-03-08 Tom Tromey <tromey@redhat.com>
533
534 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
535 variable.
536
537 2013-03-07 Pedro Alves <palves@redhat.com>
538
539 * target.c (target_read_stralloc, target_fileio_read_alloc):
540 *Cast pointer to 'gdb_byte *' in target call.
541
542 2013-03-07 Pedro Alves <palves@redhat.com>
543
544 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
545 call.
546
547 2013-03-07 Keith Seitz <keiths@redhat.com>
548
549 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
550 (trace_pass_command): Likewise.
551 * cli/cli-cmds.c: Include cli/cli-utils.h.
552 (source_command): Use skip-spaces.
553 (disassemble_command): Likewise.
554 * findcmd.c: Include cli/cli-utils.h.
555 (parse_find_args): Use skip_spaces.
556 * go32-nat.c: Include cli/cli-utils.h.
557 (go32_sldt): Use skip_spaces.
558 (go32_sgdt): Likewise.
559 (go32_sidt): Likewise.
560 (go32_pde): Likewise.
561 (go32_pte): Likewise.
562 (go32_pte_for_address): Likewise.
563 * infcmd.c: Include cli/cli-utils.h.
564 (registers_info): Use skip_spaces.
565 * linux-tdep.c (read_mapping): Use skip_spaces_const.
566 (linux_info_proc): Likewise.
567 * linux-thread-db.c: Include cli/cli-utils.h.
568 (info_auto_load_libthread_db): Use skip_spaces_const.
569 * m32r-rom.c: Include cli/cli-utils.h.
570 (m32r_upload_command): Use skip_spaces.
571 * maint.c: Include cli/cli-utils.h.
572 (maintenance_translate_address): Use skip_spaces.
573 * mi/mi-parse.c: Include cli/cli-utils.h.
574 (mi_parse_argv): Use skip_spaces.
575 (mi_parse): Likewise.
576 * minsyms.c: Include cli/cli-utils.h.
577 (msymbol_hash_iw): Use skip_spaces_const.
578 * objc-lang.c: Include cli/cli-utils.h.
579 (parse_selector): Use skip_spaces.
580 (parse_method): Likewise.
581 * python/python.c: Include cli/cli-utils.h.
582 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
583 (python_command)[HAVE_PYTHON]: Likewise.
584 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
585 * remote-m32r-sdi.c: Include cli/cli-utils.h.
586 (m32r_load): Use skip_spaces.
587 * serial.c: Include cli/cli-utils.h.
588 (serial_open): Use skip_spaces_const.
589 * stack.c: Include cli/cli-utils.h.
590 (parse_frame_specification_1): Use skip_spaces_const.
591 * symfile.c: Include cli/cli-utils.h.
592 (set_ext_lang_command): Use skip_spaces.
593 * symtab.c: Include cli/cli-utils.h.
594 (rbreak_command): Use skip_spaces.
595 * thread.c (thread_name_command): Use skip_spaces.
596 * tracepoint.c (validate_actionline): Use skip_spaces.
597 (encode_actions_1): Likewise.
598 (trace_find_range_command): Likewise.
599 (trace_find_outside_command): Likewise.
600 (trace_dump_actions): Likewise.
601
602 2013-03-07 Pedro Alves <palves@redhat.com>
603
604 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
605 * expprint.c (print_subexp_standard): Likewise.
606 * utils.c (host_char_to_target): Likewise.
607 * valprint.c (generic_emit_char, generic_printstr): Likewise.
608 * varobj.c (value_get_print_value): Change type of local to char*.
609 Cast it gdb_byte * in call to language printer.
610
611 2013-03-07 Pedro Alves <palves@redhat.com>
612
613 * charset.c (struct wchar_iterator) <input>: Change type to 'const
614 gdb_byte *'.
615 (make_wchar_iterator): Remove cast to char*.
616 (wchar_iterate): Change type of local.
617
618 2013-03-07 Pedro Alves <palves@redhat.com>
619
620 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
621 for 'regcache->register_status'.
622
623 2013-03-07 Pedro Alves <palves@redhat.com>
624
625 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
626 int.
627
628 2013-03-07 Pedro Alves <palves@redhat.com>
629
630 * stap-probe.c (handle_stap_probe): Add cast to char*.
631
632 2013-03-07 Pedro Alves <palves@redhat.com>
633
634 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
635 RECORD_MSGRCV>: Pass a signed variable to
636 regcache_raw_read_signed, instead of an unsigned one.
637
638 2013-03-07 Pedro Alves <palves@redhat.com>
639
640 * remote-notif.c (notif_debug): Change type to int.
641 * remote-notif.h (notif_debug): Likewise.
642
643 2013-03-07 Pedro Alves <palves@redhat.com>
644
645 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
646
647 2013-03-07 Pedro Alves <palves@redhat.com>
648
649 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
650 * remote.h (hex2bin, bin2hex): ... here.
651 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
652
653 2013-03-07 Eli Zaretskii <eliz@gnu.org>
654
655 * utils.c (initialize_utils): Improve doc strings of "set/show
656 width", "set/show height", and "set/show pagination".
657
658 2013-03-06 Keith Seitz <keiths@redhat.com>
659
660 * ax-gdb.c (gen_printf): Make FORMAT const.
661 * ax-gdb.h (gen_printf): Likewise.
662 * ax-general.c (ax_string): Make STR const.
663 * ax.h (ax_string): Likewise.
664
665 2013-03-06 Doug Evans <dje@google.com>
666
667 * elfread.c (elf_symfile_read): Move debugging printf to more
668 logical location.
669
670 2013-03-06 Pedro Alves <palves@redhat.com>
671
672 * python/py-utils.c (target_string_to_unicode): Delete function.
673 * python/python-internal.h (target_string_to_unicode): Delete
674 declaration.
675
676 2013-03-06 Pierre Muller <muller@sourceware.org>
677
678 * linespec.c (get_current_search_block): ARI fix, use (void)
679 for empty parameter list.
680
681 2013-03-05 Doug Evans <dje@google.com>
682
683 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
684 of old ada_lookup_symbol_list. In !full_search case, don't
685 search superblocks.
686 (ada_lookup_symbol_list): Delete arg full_search, all callers
687 updated. Call ada_lookup_symbol_list_worker.
688 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
689 * ada-lang.h (ada_lookup_symbol_list): Update.
690 * language.h (language_defn): Update comment for
691 la_iterate_over_symbols.
692 * linespec.c (iterate_over_file_blocks): New function.
693 (iterate_over_all_matching_symtabs): Call it.
694 (lookup_prefix_sym): Ditto.
695 (get_current_search_block): New function.
696 (get_search_block): Delete.
697 (find_label_symbols): Call get_current_search_block.
698 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
699 * symtab.c (iterate_over_symbols): Don't search superblocks.
700
701 2013-03-05 Yao Qi <yao@codesourcery.com>
702
703 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
704 parameter VAR's type from "unsigned int" to "int".
705 * command.h (var_zuinteger_unlimited): Update its comments.
706 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
707
708 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
709
710 * NEWS: Mention new target x86_64-*-cygwin*.
711
712 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
713
714 * configure.host: Add x86_64-*-cygwin* as host.
715 * configure.tgt: Add x86_64-*-cygwin* as target.
716 * config/i386/cygwin64.mh: New file.
717
718 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
719
720 * linespec.c (decode_line_2): Fix duplicate request off by two message.
721
722 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
723
724 * linespec.c (struct linespec_canonical_name): New.
725 (struct linespec_state): Change canonical_names type to it.
726 (add_sal_to_sals): Change variable canonical_name to canonical. Change
727 xrealloc element size. Initialize the different CANONICAL fields.
728 (canonical_to_fullform): New.
729 (filter_results): Use it. Add variables canonical, fullform and
730 cleanup.
731 (struct decode_line_2_item, decode_line_2_compare_items): New.
732 (decode_line_2): Remove variables iter and item_names, add variables
733 items and items_count. Modify the code for these new variables.
734
735 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
736
737 * coff-pe-read.c (read_pe_exported_syms): Don't return without
738 calling do_cleanup.
739
740 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
741
742 * tracepoint.c (build_traceframe_info): Add code for byte order.
743
744 2013-03-02 Kevin Buettner <kevinb@redhat.com>
745
746 * v850-tdep.c: (v850e2_register_name): Revise system register
747 names to match current V850E2M architecture specifications.
748 Update register number enum comments too.
749
750 2013-03-01 Jiong Wang <jiwang@tilera.com>
751 Pedro Alves <palves@redhat.com>
752
753 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
754 to END_ADDR.
755 (tilegx_skip_prologue): Limit prologue analysis to section end.
756
757 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
758
759 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
760 use it.
761
762 2013-03-01 Pedro Alves <palves@redhat.com>
763
764 Use gdb_byte for bytes from the program being debugged.
765
766 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
767 Change type of local 'buf' to gdb_byte.
768 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
769 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
770 * cris-tdep.c (cris_sigcontext_addr)
771 (cris_sigtramp_frame_unwind_cache): Likewise.
772 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
773 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
774 Likewise.
775 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
776 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
777 (hppa32_hpux_search_dummy_call_sequence)
778 (hppa_hpux_supply_save_state): Likewise.
779 * hppa-linux-tdep.c (insns_match_pattern)
780 (hppa_linux_find_global_pointer): Likewise.
781 * hppa-tdep.c (hppa_in_function_epilogue_p)
782 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
783 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
784 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
785 (i386fbsd_collect_uthread): Likewise.
786 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
787 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
788 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
789 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
790 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
791 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
792 (ia64_libunwind_frame_prev_register)
793 (ia64_libunwind_sigtramp_frame_this_id)
794 (ia64_find_global_pointer_from_dynamic_section)
795 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
796 (ia64_unwind_pc): Likewise.
797 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
798 * m68hc11-tdep.c (m68hc11_push_dummy_call)
799 (m68hc11_extract_return_value): Likewise.
800 * m68klinux-nat.c (fetch_register, store_register): Likewise.
801 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
802 (mep_get_insn, mep_push_dummy_call): Likewise.
803 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
804 (mips_linux_in_dynsym_stub): Likewise.
805 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
806 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
807 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
808 to gdb_byte.
809 * remote-mips.c (mips_set_register): Likewise.
810 * remote-sim.c (gdbsim_fetch_register): Likewise.
811 * score-tdep.c (score7_fetch_inst): Change type of parameter
812 'memblock' and local 'buf' to gdb_byte.
813 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
814 Change type of local 'buf' to gdb_byte. Adjust.
815 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
816 to gdb_byte**.
817 (score7_analyze_prologue): Change type of 'memblock' and
818 'memblock_ptr' locals to gdb_byte*.
819 * sh64-tdep.c (sh64_extract_return_value)
820 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
821 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
822 * solib-pa64.c (pa64_solib_create_inferior_hook)
823 (pa64_open_symbol_file_object): Remove local 'buf'.
824 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
825 (som_open_symbol_file_object): Likewise.
826 * solib-spu.c (spu_current_sos): Likewise.
827 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
828 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
829 (spu_store_registers): Likewise.
830 * target.c (debug_print_register): Likewise.
831 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
832 * xstormy16-tdep.c (xstormy16_store_return_value)
833 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
834 (xstormy16_find_jmp_table_entry): Likewise.
835
836 2013-03-01 Jiong Wang <jiwang@tilera.com>
837
838 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
839 (tilegx_gdbarch_init): Install it.
840
841 2013-02-28 Tom Tromey <tromey@redhat.com>
842
843 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
844 PyLong_Check.
845
846 2013-02-28 Doug Evans <dje@google.com>
847
848 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
849 * python/python.c (gdbpy_find_pc_line): Ditto.
850
851 2013-02-28 Tom Tromey <tromey@redhat.com>
852
853 * contrib/excheck.py: New file.
854 * contrib/exsummary.py: New file.
855 * contrib/gcc-with-excheck: New file.
856
857 2013-02-28 Tom Tromey <tromey@redhat.com>
858
859 * python/python.c (gdbpy_print_stack): Call begin_line and
860 fprintf_filtered inside TRY_CATCH.
861
862 2013-02-28 Tom Tromey <tromey@redhat.com>
863
864 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
865 inside TRY_CATCH.
866
867 2013-02-28 Tom Tromey <tromey@redhat.com>
868
869 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
870 frame_object_to_frame_info inside TRY_CATCH.
871
872 2013-02-28 Tom Tromey <tromey@redhat.com>
873
874 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
875 TRY_CATCH.
876
877 2013-02-28 Tom Tromey <tromey@redhat.com>
878
879 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
880
881 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
882
883 * windows-nat.c: Throughout, fix format strings and casts of
884 printf-like functions to avoid type related warnings on all
885 platforms.
886 (handle_output_debug_string): Fetch context information address
887 from debug string using string_to_core_addr.
888
889 2013-02-27 Jiong Wang <jiwang@tilera.com>
890
891 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
892 * regformats/reg-tilegx32.dat: New.
893
894 2013-02-27 Jiong Wang <jiwang@tilera.com>
895
896 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
897
898 2013-02-27 Jiong Wang <jiwang@tilera.com>
899
900 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
901
902 2013-02-27 Yao Qi <yao@codesourcery.com>
903 Pedro Alves <palves@redhat.com>
904
905 * tracepoint.c (tfile_trace_find): For tfind
906 pc/tp/range/outside, look for the next trace frame instead of
907 always starting from frame 0.
908
909 2013-02-26 Anthony Green <green@moxielogic.com>
910
911 * configure.tgt: Add support for moxie-*-rtems* target.
912
913 2013-02-25 Pedro Alves <palves@redhat.com>
914
915 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
916 warning text.
917
918 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
919
920 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
921 if $fp is used as the virtual frame pointer.
922
923 2013-02-23 Alan Modra <amodra@gmail.com>
924
925 * elfread.c (elf_symtab_read): Do not use udata.p here to find
926 symbol size.
927 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
928 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
929 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
930 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
931
932 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
933
934 Code cleanup.
935 * elfread.c (build_id_bfd_get): Make the return type const.
936 (build_id_verify): Make the check parameter const.
937 (build_id_to_debug_filename): Make the build_id parameter and variable
938 data const.
939 (find_separate_debug_file_by_buildid): Make the variable build_id const.
940
941 2013-02-21 Alan Modra <amodra@gmail.com>
942
943 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
944
945 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
946
947 Add a new method 'disassemble' to gdb.Architecture class.
948 * python/py-arch.c (archpy_disassmble): Implementation of the
949 new method gdb.Architecture.disassemble.
950 (arch_object_methods): Add entry for the new method.
951
952 2013-02-20 Jiong Wang <jiwang@tilera.com>
953
954 * MAINTAINERS (Write After Approval): Add myself to the list.
955
956 2013-02-19 Pedro Alves <palves@redhat.com>
957
958 Garbage collect 'struct monitor_ops'::load_routine.
959
960 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
961 * monitor.c (monitor_load): No longer call
962 current_monitor->load_routine.
963 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
964 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
965 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
966
967 2013-02-19 Pedro Alves <palves@redhat.com>
968
969 PR gdb/15161
970
971 Harmonize with generic_load.
972
973 * monitor.c: Include "readline/readline.h".
974 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
975 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
976 long/strtol for the 'load_offset' local. Error out if no argument
977 is given or if too many arguments are given. Tilde expand the
978 passed in file name.
979
980 2013-02-19 Kai Tietz <ktietz@redhat.com>
981
982 PR gdb/15161
983 * symfile.c (load_section_data): Change type of load_offset
984 to CORE_ADDR.
985 (generic_load): User strtoulst instead of strtoul for conversion
986 of load_offset.
987
988 2013-02-19 Jiong Wang <jiwang@tilera.com>
989
990 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
991 for return address, "lr" register, saved on stack.
992 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
993 after we invoke tilegx_analyze_prologue.
994
995 2013-02-19 Jiong Wang <jiwang@tilera.com>
996
997 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
998
999 2013-02-19 Jiong Wang <jiwang@tilera.com>
1000
1001 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
1002
1003 2013-02-19 Jiong Wang <jiwang@tilera.com>
1004
1005 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
1006 (tilegx_write_pc): New function.
1007 (tilegx_cannot_reference_register): Return zero if REGNO
1008 is TILEGX_FAULTNUM_REGNUM.
1009 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
1010 (tilegx_register_name): Add handling of "faultnum" register.
1011 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
1012 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
1013 handling of TILEGX_FAULTNUM_REGNUM.
1014 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
1015
1016 2013-02-19 Jiong Wang <jiwang@tilera.com>
1017
1018 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
1019 should be aligned to 64bit.
1020
1021 2013-02-19 Kai Tietz <ktietz@redhat.com>
1022
1023 * windows-nat.c (windows_xfer_memory): Fix debug-output
1024 for LLP64.
1025
1026 2013-02-19 Lei Liu <lei.liu2@windriver.com>
1027
1028 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
1029 Don't check DSP register number if HAVE_DSP is not set.
1030
1031 2013-02-19 Alan Modra <amodra@gmail.com>
1032
1033 * elfread.c (struct build_id): Delete. Use struct elf_build_id
1034 throughout file instead.
1035 (build_id_bfd_get): Update to use new elf_tdata build_id field.
1036 Don't xmalloc return value.
1037 (build_id_verify): Similarly. Don't xfree.
1038 (build_id_to_debug_filename): Update.
1039 (find_separate_debug_file_by_buildid): Update, don't xfree.
1040
1041 2013-02-18 Tom Tromey <tromey@redhat.com>
1042
1043 PR gdb/15102:
1044 * dwarf2read.c (read_subrange_type): Use result of
1045 'check_typedef'.
1046
1047 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
1048
1049 * frame.c: Remove one extra white space after #include
1050 directive.
1051
1052 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1053
1054 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
1055
1056 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1057
1058 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
1059 and dir commands into an if block.
1060
1061 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
1062
1063 * python/py-breakpoint (struct pybp_code): Use int instead of
1064 enum type_code.
1065
1066 2013-02-15 Pedro Alves <pedro@codesourcery.com>
1067 Hafiz Abid Qadeer <abidh@codesourcery.com>
1068
1069 * NEWS: Mention new field "trace-file".
1070 * tracepoint.c (trace_status_mi): Output "trace-file" field.
1071 (tfile_open): Record the trace file's filename in the trace
1072 status.
1073 (tfile_files_info): Mention the name of the trace file.
1074 Check the "filename" field explicitely.
1075 (trace_status_command): Explicitely check "filename" field.
1076 (trace_find_command): Ditto.
1077 (trace_find_pc_command): Ditto.
1078 (trace_find_tracepoint_command): Ditto.
1079 (trace_find_line_command): Ditto.
1080 (trace_find_range_command): Ditto.
1081 (trace_find_outside_command): Ditto.
1082 * tracepoint.h (struct trace_status) <from_file>: Rename it
1083 to "filename" and make it hold the trace file's filename
1084 instead of a boolean.
1085 * remote.c (remote_get_trace_status): Initialize "filename"
1086 field with NULL instead of 0.
1087
1088 2013-02-15 Yao Qi <yao@codesourcery.com>
1089
1090 * remote.c: Fix a typo.
1091
1092 2013-02-14 Pierre Muller <muller@sourceware.org>
1093
1094 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
1095
1096 2013-02-14 Pedro Alves <palves@redhat.com>
1097
1098 * utils.c (savestring): Don't #undef it. Move function to
1099 common/common-utils.c.
1100 * common/common-utils.c: Include gdb_string.h.
1101 (savestring): Move here from utils.c.
1102 * common/common-utils.h (savestring): Declare.
1103
1104 2013-02-14 Pedro Alves <palves@redhat.com>
1105
1106 * utils.c (savestring): Rename parameter 'size' to 'len'.
1107
1108 2013-02-14 Pedro Alves <palves@redhat.com>
1109 Yufeng Zhang <yufeng.zhang@arm.com>
1110
1111 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
1112 (aarch64_inferior_data, struct aarch64_inferior_data):
1113 Delete.
1114 (struct aarch64_process_info): New.
1115 (aarch64_process_list): New global.
1116 (aarch64_find_process_pid, aarch64_add_process)
1117 (aarch64_process_info_get): New functions.
1118 (aarch64_inferior_data_get): Delete.
1119 (aarch64_process_info_get): New function.
1120 (aarch64_forget_process): New function.
1121 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
1122 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
1123 aarch64_get_debug_reg_state.
1124 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
1125 instead of linux_nat_iterate_watchpoint_lwps.
1126 (aarch64_linux_new_fork): New function.
1127 (aarch64_linux_child_post_startup_inferior): Use
1128 aarch64_forget_process instead of aarch64_init_debug_reg_state.
1129 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
1130 (aarch64_linux_remove_hw_breakpoint)
1131 (aarch64_handle_aligned_watchpoint)
1132 (aarch64_handle_unaligned_watchpoint)
1133 (aarch64_linux_insert_watchpoint)
1134 (aarch64_linux_remove_watchpoint)
1135 (aarch64_linux_stopped_data_address): Adjust to pass the current
1136 process id to aarch64_debug_reg_state.
1137 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
1138 linux_nat_new_fork hook, and aarch64_forget_process as
1139 linux_nat_forget_process hook; remove the call to
1140 register_inferior_data_with_cleanup.
1141
1142 2013-02-14 Pedro Alves <palves@redhat.com>
1143
1144 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
1145 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
1146 lval_memory.
1147
1148 2013-02-14 Pedro Alves <pedro@codesourcery.com>
1149 Hafiz Abid Qadeer <abidh@codesourcery.com>
1150
1151 * tracepoint.h (validate_trace_state_variable_name): Declare.
1152 * tracepoint.c (validate_trace_state_variable_name): New.
1153 (trace_variable_command): Parse the trace state variable's name
1154 without using parse_expression. Do several validations.
1155 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
1156 trace state variable's name with parse_expression. Validate it.
1157
1158 2013-02-14 Yao Qi <yao@codesourcery.com>
1159
1160 * infcmd.c (breakpoint_proceeded): Remove it.
1161
1162 2013-02-14 Yao Qi <yao@codesourcery.com>
1163
1164 * tracepoint.c (end_actions_pseudocommand): Make it static.
1165 (while_stepping_pseudocommand): Likewise.
1166 * tracepoint.h (end_actions_pseudocommand): Remove the
1167 declaration.
1168 (while_stepping_pseudocommand): Likewise.
1169
1170 2013-02-14 Yao Qi <yao@codesourcery.com>
1171
1172 * cli/cli-decode.c (help_cmd): Remove the declaration of
1173 "cmdlist".
1174 (help_all): Likewise.
1175
1176 2013-02-13 Pedro Alves <palves@redhat.com>
1177
1178 * amd64-linux-nat.c (update_debug_registers_callback):
1179 Update comment.
1180 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
1181 iterate_over_lwps.
1182 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
1183 i386_debug_reg_state.
1184 (amd64_linux_new_fork): New function.
1185 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
1186 linux_nat_new_fork hook, and i386_forget_process as
1187 linux_nat_forget_process hook.
1188 * i386-linux-nat.c (update_debug_registers_callback):
1189 Update comment.
1190 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
1191 iterate_over_lwps.
1192 (i386_linux_prepare_to_resume): Pass the lwp's pid to
1193 i386_debug_reg_state.
1194 (i386_linux_new_fork): New function.
1195 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
1196 linux_nat_new_fork hook, and i386_forget_process as
1197 linux_nat_forget_process hook.
1198 * i386-nat.c (i386_init_dregs): Delete.
1199 (i386_inferior_data, struct i386_inferior_data):
1200 Delete.
1201 (struct i386_process_info): New.
1202 (i386_process_list): New global.
1203 (i386_find_process_pid, i386_add_process, i386_process_info_get):
1204 New functions.
1205 (i386_inferior_data_get): Delete.
1206 (i386_process_info_get): New function.
1207 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
1208 (i386_forget_process): New function.
1209 (i386_cleanup_dregs): Rewrite.
1210 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
1211 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
1212 (i386_stopped_data_address, i386_insert_hw_breakpoint)
1213 (i386_remove_hw_breakpoint): Adjust to pass the current process id
1214 to i386_debug_reg_state.
1215 (i386_use_watchpoints): Don't register inferior data.
1216 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
1217 adjust comment.
1218 (i386_forget_process): Declare.
1219 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
1220 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
1221 New static globals.
1222 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
1223 (add_initial_lwp): New, factored out from ...
1224 (add_lwp): ... this. Don't check the number of lwps before
1225 calling linux_nat_new_thread.
1226 (linux_nat_iterate_watchpoint_lwps): Delete.
1227 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
1228 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
1229 forks and vforks.
1230 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
1231 initial lwp.
1232 (linux_nat_kill, linux_nat_mourn_inferior): Call
1233 linux_nat_forget_process.
1234 (linux_nat_set_new_fork, linux_nat_set_forget_process)
1235 (linux_nat_forget_process): New functions.
1236 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
1237 type.
1238 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
1239 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
1240 types.
1241 (linux_nat_set_new_fork, linux_nat_set_forget_process)
1242 (linux_nat_forget_process): New declarations.
1243
1244 * amd64fbsd-nat.c (super_mourn_inferior): New global.
1245 (amd64fbsd_mourn_inferior): New function.
1246 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
1247 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
1248
1249 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
1250
1251 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
1252 Adding _().
1253
1254 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
1255
1256 * aarch64-linux-nat.c (debug_reg_change_callback)
1257 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
1258 %s and phex().
1259
1260 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
1261
1262 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
1263 with LONGEST.
1264
1265 2013-02-13 Pedro Alves <palves@redhat.com>
1266 Hafiz Abid Qadeer <abidh@codesourcery.com>
1267
1268 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
1269
1270 2013-02-12 Tom Tromey <tromey@redhat.com>
1271
1272 PR symtab/11464:
1273 * c-exp.y (lex_one_token): Initialize other fields of yylval on
1274 NAME return.
1275 (classify_inner_name): Remove 'first_name' argument, add
1276 'context'. Remove unused variable.
1277 (yylex): Explicitly maintain the context type. Exit loop earlier
1278 if NAME result is seen.
1279
1280 2013-02-12 Pedro Alves <palves@redhat.com>
1281
1282 * amd64-darwin-tdep.c: Add (C) after Copyright.
1283 * cli/cli-cmds.h: Ditto.
1284 * cli/cli-decode.c: Ditto.
1285 * cli/cli-decode.h: Ditto.
1286 * cli/cli-dump.c: Ditto.
1287 * cli/cli-dump.h: Ditto.
1288 * cli/cli-interp.c: Ditto.
1289 * cli/cli-logging.c: Ditto.
1290 * cli/cli-script.c: Ditto.
1291 * cli/cli-script.h: Ditto.
1292 * cli/cli-setshow.c: Ditto.
1293 * cli/cli-setshow.h: Ditto.
1294 * cli/cli-utils.c: Ditto.
1295 * cli/cli-utils.h: Ditto.
1296 * config/alpha/nm-osf3.h: Ditto.
1297 * config/djgpp/djconfig.sh: Ditto.
1298 * config/i386/nm-fbsd.h: Ditto.
1299 * config/i386/nm-i386gnu.h: Ditto.
1300 * config/nm-linux.h: Ditto.
1301 * config/nm-nto.h: Ditto.
1302 * config/rs6000/nm-rs6000.h: Ditto.
1303 * config/sparc/nm-sol2.h: Ditto.
1304 * darwin-nat-info.c: Ditto.
1305 * dfp.c: Ditto.
1306 * dfp.h: Ditto.
1307 * gdb-demangle.h: Ditto.
1308 * i386-darwin-nat.c: Ditto.
1309 * i386-darwin-tdep.c: Ditto.
1310 * linux-fork.h: Ditto.
1311 * m32c-tdep.c: Ditto.
1312 * microblaze-linux-tdep.c: Ditto.
1313 * microblaze-rom.c: Ditto.
1314 * microblaze-tdep.c: Ditto.
1315 * microblaze-tdep.h: Ditto.
1316 * mips-linux-tdep.h: Ditto.
1317 * ppc-ravenscar-thread.c: Ditto.
1318 * ppc-ravenscar-thread.h: Ditto.
1319 * prologue-value.c: Ditto.
1320 * prologue-value.h: Ditto.
1321 * ravenscar-thread.c: Ditto.
1322 * ravenscar-thread.h: Ditto.
1323 * sparc-ravenscar-thread.c: Ditto.
1324 * sparc-ravenscar-thread.h: Ditto.
1325 * tilegx-linux-tdep.c: Ditto.
1326 * unwind_stop_reasons.def: Ditto.
1327 * windows-nat.h: Ditto.
1328 * xtensa-linux-tdep.c: Ditto.
1329 * xtensa-xtregs.c: Ditto.
1330 * regformats/regdat.sh: Ditto.
1331 * regformats/regdef.h: Ditto.
1332
1333 2013-02-12 Pedro Alves <palves@redhat.com>
1334
1335 * break-catch-sig.c: Update copyright years.
1336
1337 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
1338
1339 Add support for a destructor for ui_out data and use it to
1340 provide a ui_out destructor.
1341 * ui-out.h: Declare the new ui_out destructor.
1342 (ui_out_impl): Add a field for data destructor in ui_out_impl.
1343 * ui-out.c (default_data_destroy): Add a default data destructor
1344 which does nothing.
1345 (default_ui_out_impl): Set the new data_destroy field to
1346 default_data_destroy
1347 (uo_data_destroy): Local function which invokes the data
1348 destructor if present.
1349 (clear_table): Local function which clears the table data of a
1350 ui_out object.
1351 (ui_out_destroy): Public function which frees a ui_out object.
1352 (ui_out_table_end): Use the new clear_table function.
1353 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
1354 NULL.
1355 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
1356 to NULL.
1357
1358 2013-02-11 Doug Evans <dje@google.com>
1359
1360 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
1361 (printf_decfloat): New function. Broken out from ui_printf.
1362 Remove unnecessary code to shift the entire format string down.
1363 (printf_pointer): New function.
1364 (ui_printf): Code to print C strings, wide C strings, decfloats,
1365 and pointers moved to separate functions.
1366
1367 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
1368
1369 * valops.c (value_assign): Handling bitfield offset in
1370 `lval_internalvar_component' case.
1371
1372 2013-02-08 Doug Evans <dje@google.com>
1373
1374 * common/format.c (parse_format_string): Fix whitespace.
1375
1376 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
1377
1378 * stack.c (return_command): Work around uninitialized variable
1379 warning.
1380
1381 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
1382
1383 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
1384 number of the registers from 36 to 34.
1385
1386 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
1387
1388 * NEWS: Mention new AArch64 native and target support.
1389
1390 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
1391
1392 * MAINTAINERS (Write After Approval): Add myself.
1393
1394 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
1395 Marcus Shawcroft <marcus.shawcroft@arm.com>
1396 Nigel Stephens <nigel.stephens@arm.com>
1397 Yufeng Zhang <yufeng.zhang@arm.com>
1398
1399 * aarch64-linux-nat.c: New file.
1400 * config/aarch64/linux.mh: New file.
1401 * configure.host: Add AArch64.
1402 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
1403
1404 2013-02-07 Doug Evans <dje@google.com>
1405
1406 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
1407 disassemble command.
1408
1409 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
1410
1411 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1412 set_gdbarch_fetch_tls_load_module_address.
1413
1414 2013-02-06 David S. Miller <davem@davemloft.net>
1415
1416 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
1417 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
1418 * value.c (struct_return_convention): New function.
1419 (using_struct_return): Implement in terms of struct_return_convention.
1420 * value.h (struct_return_convention): Declare.
1421 * stack.c (return_command): Allow successful overriding of the return
1422 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
1423
1424 2013-02-06 Tom Tromey <tromey@redhat.com>
1425
1426 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
1427 outside of TRY_CATCH.
1428
1429 2013-02-06 Yao Qi <yao@codesourcery.com>
1430
1431 * mi/mi-interp.c: Include "tracepoint.h".
1432 (mi_tsv_modified): Declare.
1433 (mi_tsv_created, mi_tsv_deleted): Update declaration.
1434 (mi_interpreter_init): Call observer_attach_tsv_modified.
1435 (mi_tsv_modified): New.
1436 (mi_tsv_created, mi_tsv_deleted): Update.
1437 * tracepoint.c (trace_variable_command): Call
1438 observer_notify_tsv_modified if the initial value of tsv is
1439 changed.
1440 (delete_trace_state_variable): Call
1441 observer_notify_tsv_deleted earlier.
1442 (trace_variable_command): Caller update.
1443 (create_tsv_from_upload): Likewise.
1444 * observer.sh: Declare "struct trace_state_variable".
1445
1446 * NEWS: Mention the new MI notification "=tsv-modified".
1447
1448 2013-02-05 Doug Evans <dje@google.com>
1449
1450 * completer.c (location_completer): Fix typo in comment.
1451
1452 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1453
1454 * breakpoint.c (add_location_to_breakpoint): Insert the location with
1455 ADDRESS sorted.
1456
1457 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
1458
1459 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
1460 Refactor if statement to avoid trailing || operator.
1461
1462 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
1463
1464 * NEWS: Add PowerPC FreeBSD as a new native configuration.
1465
1466 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
1467
1468 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
1469 * configure.host: Add powerpc*-*-freebsd* target.
1470 * configure.tgt: Add target info for powerpc*-*-freebsd*.
1471 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
1472 * config/powerpc/fbsd.mh: New file.
1473
1474 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
1475 Denys Vlasenko <dvlasenk@redhat.com>
1476 Pedro Alves <palves@redhat.com>
1477
1478 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
1479 (struct elf_internal_linux_prpsinfo): Forward declare.
1480 * gdbarch.h, gdbarch.c: Regenerate.
1481 * linux-tdep.c: Include `cli/cli-utils.h'.
1482 (linux_fill_prpsinfo): New function.
1483 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
1484 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
1485 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
1486 depending on gdbarch pointer bitness.
1487 * ppc-linux-tdep.c: Include elf-bfd.h.
1488 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
1489 on 32-bit.
1490
1491 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
1492 Marcus Shawcroft <marcus.shawcroft@arm.com>
1493 Nigel Stephens <nigel.stephens@arm.com>
1494 Yufeng Zhang <yufeng.zhang@arm.com>
1495
1496 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
1497
1498 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
1499 Marcus Shawcroft <marcus.shawcroft@arm.com>
1500 Nigel Stephens <nigel.stephens@arm.com>
1501 Yufeng Zhang <yufeng.zhang@arm.com>
1502
1503 * aarch64-newlib-tdep.c: New file.
1504 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
1505 aarch64*-*-elf.
1506 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
1507 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
1508 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
1509 * osabi.c (gdb_osabi_names): Add "Newlib".
1510
1511 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
1512 Marcus Shawcroft <marcus.shawcroft@arm.com>
1513 Nigel Stephens <nigel.stephens@arm.com>
1514 Yufeng Zhang <yufeng.zhang@arm.com>
1515
1516 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
1517 (ALLDEPFILES): Add aarch64-linux-tdep.c.
1518 * aarch64-linux-tdep.c: New file.
1519 * aarch64-linux-tdep.h: New file.
1520 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
1521 * configure.tgt: Add aarch64-none-linux-gnu.
1522
1523 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
1524 Marcus Shawcroft <marcus.shawcroft@arm.com>
1525 Nigel Stephens <nigel.stephens@arm.com>
1526 Yufeng Zhang <yufeng.zhang@arm.com>
1527
1528 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
1529 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
1530 (ALLDEPFILES): Add aarch64-tdep.c.
1531 * aarch64-tdep.c: New file.
1532 * aarch64-tdep.h: New file.
1533 * configure.tgt: Add AArch64.
1534 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
1535 (aarch64-expedite): New definition.
1536 * features/aarch64-core.xml: New file.
1537 * features/aarch64-fpu.xml: New file.
1538 * features/aarch64-without-fpu.c: New file (generated).
1539 * features/aarch64-without-fpu.xml: New file.
1540 * features/aarch64.c: New file (generated).
1541 * features/aarch64.xml: New file.
1542 * regformats/aarch64-without-fpu.dat: New file (generated).
1543 * regformats/aarch64.dat: New file (generated).
1544
1545 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1546
1547 * contrib/expect-read1.c: New file.
1548 * contrib/expect-read1.sh: New file.
1549
1550 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1551
1552 * dwarf2read.c (file_file_name): New function with code from
1553 file_full_name.
1554 (file_full_name): Move most of the code to file_file_name.
1555 (macro_start_file): Rename variable full_name to file_name and use
1556 file_file_name for it. Add comp_dir parameter to new_macro_table.
1557 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
1558 macro_source_file->filename access by macro_source_fullname call.
1559 * macroscope.c (_initialize_macroscope): Update the new_macro_table
1560 caller.
1561 * macrotab.c (struct macro_table): New field comp_dir.
1562 (macro_include): New variables link_fullname and source_fullname.
1563 Replace any macro_source_file->filename access by macro_source_fullname
1564 call.
1565 (macro_lookup_inclusion): Remove the partial filenames checking code.
1566 (check_for_redefinition): New variables source_fullname and
1567 found_key_fullname. Replace any macro_source_file->filename access by
1568 macro_source_fullname call.
1569 (macro_undef): New variables source_fullname and key_fullname. Replace
1570 any macro_source_file->filename access by macro_source_fullname call.
1571 (macro_lookup_definition): New variables retval and source_fullname.
1572 Replace any macro_source_file->filename access by macro_source_fullname
1573 call.
1574 (foreach_macro): New variable key_fullname. Replace any
1575 macro_source_file->filename access by macro_source_fullname call.
1576 (foreach_macro_in_scope): New variable datum_fullname. Replace any
1577 macro_source_file->filename access by macro_source_fullname call.
1578 (new_macro_table): Add parameter comp_dir. Initialize T with it.
1579 (macro_source_fullname): New function.
1580 * macrotab.h (struct macro_source_file): Extent the filename field
1581 comment.
1582 (new_macro_table): New parameter comp_dir, add a comment for it.
1583 (macro_source_fullname): new declaration.
1584
1585 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1586
1587 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
1588 this_real_name to outer block. Use it also for
1589 compare_filenames_for_search.
1590 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
1591 with dw2_get_real_path for file_matcher, considering also
1592 BASENAMES_MAY_DIFFER.
1593 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
1594
1595 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1596
1597 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
1598 to the file_matcher parameter. Pass 0 to it.
1599 (dwarf2_create_include_psymtab): Copy also DIRNAME.
1600 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
1601 NULL psymtab_to_fullname result.
1602 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
1603 an expected filename instead.
1604 (expand_symtabs_matching_via_partial): Add basenames parameter to the
1605 file_matcher parameter. Call also psymtab_to_fullname, after newly
1606 considering BASENAMES_MAY_DIFFER.
1607 * source.c (rewrite_source_path): Remove static.
1608 * source.h (rewrite_source_path): New declaration.
1609 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
1610 the expand_symtabs_matching field. Comment it.
1611 * symtab.c (file_matches): New function comment. Add parameter
1612 basenames, implement it.
1613 (search_symbols_file_matches): Add basenames parameter. Update the
1614 file_matches caller.
1615 (search_symbols): Match FILES also against symtab_to_fullname.
1616 Optimize it for BASENAMES_MAY_DIFFER.
1617
1618 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1619
1620 * source.c (print_source_lines_base): Print for TUI also "fullname".
1621 * tui/tui-data.c (init_content_element): Change tui_locator_element
1622 field to full_name.
1623 * tui/tui-data.h (struct tui_locator_element): Likewise.
1624 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
1625 tui_update_locator_filename calls to tui_update_locator_fullname.
1626 Replace symtab->filename refererence by symtab_to_fullname call.
1627 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
1628 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
1629 field to full_name. Replace symtab->filename refererence by
1630 symtab_to_fullname call.
1631 (tui_show_symtab_source): Rename parameter to fullname. Change
1632 tui_locator_element field to full_name.
1633 * tui/tui-stack.c: Include source.h.
1634 (tui_set_locator_filename): Rename the declaration to ...
1635 (tui_set_locator_fullname): ... here. Rename its parameter to
1636 fullname, updates its comment.
1637 (tui_set_locator_info): Rename its parameter to fullname.
1638 (tui_set_locator_filename): Rename the definition to ...
1639 (tui_set_locator_fullname): ... here. Rename its parameter to
1640 fullname, updates its comment. Change tui_locator_element field to
1641 full_name.
1642 (tui_set_locator_info): Rename its parameter to fullname.
1643 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
1644 (tui_update_locator_filename): Rename to ...
1645 (tui_update_locator_fullname): ... here. Rename callee to
1646 tui_set_locator_fullname.
1647 (tui_show_frame_info): Replace symtab->filename refererence by
1648 symtab_to_fullname call.
1649 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
1650 (tui_update_locator_fullname): ... here.
1651 * tui/tui-winsource.c (tui_display_main): Rename the callee to
1652 tui_update_locator_fullname. Replace symtab->filename refererence by
1653 symtab_to_fullname call.
1654 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
1655 Rename the callee to tui_update_locator_fullname.
1656 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
1657
1658 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1659
1660 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
1661 by symtab_to_filename_for_display calls.
1662 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
1663 (clear_command): New variable sal_fullname, initialize it. Replace
1664 compare_filenames_for_search by filename_cmp with sal_fullname.
1665 (say_where, update_static_tracepoint): Replace symtab->filename
1666 refererences by symtab_to_filename_for_display calls.
1667 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
1668 Likewise.
1669 * dwarf2read.c: Include source.h.
1670 (fixup_go_packaging): Replace symtab->filename refererences by
1671 symtab_to_filename_for_display calls.
1672 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
1673 Replace symtab->filename refererences by symtab_to_filename_for_display
1674 calls.
1675 (create_sals_line_offset, convert_linespec_to_sals): New variable
1676 fullname, initialize it, replace symtab->filename reference by the
1677 variable.
1678 * linux-fork.c: Include source.h.
1679 (info_checkpoints_command): Replace symtab->filename refererences by
1680 symtab_to_filename_for_display calls.
1681 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
1682 by symtab_to_filename_for_display calls.
1683 * mdebugread.c: Include source.h.
1684 (psymtab_to_symtab_1): Replace symtab->filename refererences by
1685 symtab_to_filename_for_display calls.
1686 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
1687 (mi_cmd_file_list_exec_source_files): Likewise.
1688 * printcmd.c: Include source.h.
1689 (build_address_symbolic): Replace symtab->filename refererences by
1690 symtab_to_filename_for_display calls.
1691 * psymtab.c (partial_map_symtabs_matching_filename)
1692 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
1693 with psymtab_to_fullname.
1694 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
1695 by symtab_to_filename_for_display calls.
1696 (stpy_get_filename): New variable filename, initialize it, use instead
1697 of symtab->filename refererences.
1698 (salpy_str): Make variable filename const char *. Replace
1699 symtab->filename refererences by symtab_to_filename_for_display calls.
1700 * skip.c: Include source.h and filenames.h.
1701 (skip_file_command): Remove const from the symtab variable. Replace
1702 symtab->filename refererences by symtab_to_fullname call.
1703 (function_name_is_marked_for_skip): New variables searched_for_fullname
1704 and fullname. Use them to search also with symtab's fullname.
1705 * source.c (find_source_lines): Replace symtab->filename refererences
1706 by symtab_to_filename_for_display calls.
1707 (print_source_lines_base): New variable filename, use it instead of
1708 symtab->filename. Replace symtab->filename refererences by
1709 symtab_to_filename_for_display calls.
1710 (line_info, forward_search_command): Replace symtab->filename
1711 refererences by symtab_to_filename_for_display calls.
1712 (reverse_search_command): Replace symtab->filename refererences by
1713 symtab_to_filename_for_display calls. New variable filename for it.
1714 * stack.c (frame_info): Likewise.
1715 * symmisc.c: Include source.h.
1716 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
1717 (maintenance_info_symtabs): Replace symtab->filename refererences by
1718 symtab_to_filename_for_display calls.
1719 * symtab.c (iterate_over_some_symtabs): Call
1720 compare_filenames_for_search also with symtab_to_fullname.
1721 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
1722 symtab->filename refererences by symtab_to_filename_for_display calls.
1723 (find_line_symtab): Replace symtab->filename refererences by
1724 symtab_to_filename_for_display calls.
1725 (file_matches): Replace filename_cmp by compare_filenames_for_search.
1726 (print_symbol_info): Make the last parameter const char *. New
1727 variable s_filename. Use it in the function.
1728 (symtab_symbol_info): Make the last_filename variable const char *.
1729 Replace symtab->filename refererences by symtab_to_filename_for_display
1730 calls.
1731 (rbreak_command): New variable fullname. Use it. Replace
1732 symtab->filename refererence by symtab_to_filename_for_display call.
1733 * tracepoint.c (set_traceframe_context, trace_find_line_command)
1734 (print_one_static_tracepoint_marker): Replace symtab->filename
1735 refererences by symtab_to_filename_for_display calls.
1736 * tui/tui-source.c (tui_set_source_content): New variables filename and
1737 s_filename. Replace symtab->filename refererences by this variable.
1738 Replace other symtab->filename refererences by
1739 symtab_to_filename_for_display calls.
1740
1741 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
1742 Jan Kratochvil <jan.kratochvil@redhat.com>
1743
1744 Add a new variable that controls a way in which filenames are
1745 displayed.
1746 * NEWS (set filename-display): New entry.
1747 * source.c (filename_display_basename, filename_display_relative)
1748 (filename_display_absolute, filename_display_kind_names)
1749 (filename_display_string, show_filename_display_string)
1750 (symtab_to_filename_for_display): New.
1751 (_initialize_source): Added initialization of 'filename-display'
1752 variable.
1753 * source.h (symtab_to_filename_for_display): Added declaration.
1754 * stack.c (print_frame): Added new variable and calling of a new
1755 function and condition with this variable. Changed third argument of
1756 calling of a function.
1757
1758 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1759
1760 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
1761 Rename field reference filename to fullname.
1762 * tui/tui-data.h (struct tui_source_info): Rename field filename to
1763 fullname. New comment for it.
1764 * tui/tui-source.c (tui_set_source_content): Rename field reference
1765 filename to fullname. Initialize field by symtab_to_fullname now.
1766 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
1767 reference filename to fullname. Use symtab_to_fullname during
1768 comparison.
1769
1770 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1771
1772 Code cleanup.
1773 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
1774 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
1775 filename to fullname. Rename variable this_name to this_fullname.
1776 Lowercase FILENAME_CMP call.
1777 (dw2_find_symbol_file): New comment for the returned string.
1778 (dwarf2_gdb_index_functions): Rename the function to
1779 dw2_expand_symtabs_with_fullname.
1780 * psymtab.c (read_psymtabs_with_filename): Rename to ...
1781 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
1782 fullname.
1783 (psym_functions): Rename the function to read_psymtabs_with_fullname.
1784 * symfile.h (struct quick_symbol_functions): Rename field
1785 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
1786 parameter filename to fullname. Document returned string meaning for
1787 find_symbol_file.
1788 * symtab.c (find_line_symtab): Rename the called function to
1789 expand_symtabs_with_fullname.
1790
1791 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1792
1793 Code cleanup.
1794 * breakpoint.c (clear_command): Remove variable is_abs, unify the
1795 call of filename_cmp with compare_filenames_for_search.
1796 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
1797 is_abs, unify the call of FILENAME_CMP with
1798 compare_filenames_for_search. New gdb_asserts for real_path and name.
1799 Unify the call of compare_filenames_for_search with FILENAME_CMP.
1800 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
1801 * symfile.h (struct quick_symbol_functions): Extend the comment for
1802 map_symtabs_matching_filename.
1803 * symtab.c (compare_filenames_for_search): Remove the function comment
1804 relative path requirement. Handle absolute filenames, with a comment.
1805 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
1806 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
1807 real_path and name. Unify the call of compare_filenames_for_search
1808 with FILENAME_CMP.
1809 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
1810
1811 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1812
1813 Code cleanup.
1814 * breakpoint.c (print_breakpoint_location): Replace bp_location field
1815 source_file references by symtab field references. Remove variables
1816 sal and fullname.
1817 (momentary_breakpoint_from_master, add_location_to_breakpoint):
1818 (clear_command, say_where): Replace bp_location field source_file
1819 references by symtab field references.
1820 (bp_location_dtor): Remove the source_file reference.
1821 (update_static_tracepoint): Replace bp_location field source_file
1822 references by symtab field references.
1823 (breakpoint_free_objfile): New function.
1824 * breakpoint.h (struct bp_location): Extend the comment for line_number.
1825 Replace the field source_file by field symtab, extend its comment.
1826 (breakpoint_free_objfile): New declaration.
1827 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
1828 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
1829 field source_file references by symtab field references.
1830
1831 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1832
1833 Replace xfullpath calls by gdb_realpath calls.
1834 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
1835 function comment.
1836 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
1837 Remove it from the iterate_over_some_symtabs call.
1838 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
1839 Remove it from the dw2_map_expand_apply calls, remove a block handling
1840 it.
1841 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
1842 Remove it from the iterate_over_some_symtabs call.
1843 (partial_map_symtabs_matching_filename): Remove parameter full_path.
1844 Remove it from the partial_map_expand_apply calls, remove a block
1845 handling it. Drop gdb_realpath call and cleanups from the real_path
1846 handling.
1847 * source.c (openp): Drop the comment part about xfullpath. Replace
1848 xfullpath calls by gdb_realpath calls.
1849 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
1850 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
1851 from method map_symtabs_matching_filename and its comment.
1852 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
1853 gdb_realpath call.
1854 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
1855 remove it also from the function comment, remove a block handling it.
1856 Drop gdb_realpath call and cleanups from the real_path handling.
1857 (iterate_over_symtabs): Drop variable full_path and its use.
1858 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
1859 * utils.c (xfullpath): Remove.
1860 * utils.h (xfullpath): Remove.
1861
1862 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
1863
1864 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
1865 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
1866 (ALLDEPFILES): Add ppc64-tdep.c.
1867 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
1868 ppc64-tdep.o to gdb_target_obs.
1869 * ppc64-tdep.h: New file.
1870 * ppc64-tdep.c: New file.
1871 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
1872 ppc-linux-tdep.c to here.
1873 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
1874 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
1875 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
1876 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
1877 from ppc-linux-tdep.c to here.
1878 (ppc64_convert_from_func_ptr_addr): Rename from
1879 ppc64_linux_convert_from_func_ptr_addr to
1880 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
1881 here.
1882 * rs6000-tdep.c:
1883 (read_insn): Move from ppc-linux-tdep.c to here.
1884 (insns_match_pattern, insn_d_field, insn_ds_field): Move
1885 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
1886 * ppc-linux-tdep.c: Include ppc64-tdep.h.
1887 Removed above functions.
1888 (ppc_linux_init_abi): Adjust.
1889
1890 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
1891
1892 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
1893
1894 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
1895
1896 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
1897
1898 2013-02-01 Pedro Alves <palves@redhat.com>
1899
1900 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
1901 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
1902
1903 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1904
1905 * elfread.c (elf_symfile_read): Limit separate debug info additions to
1906 files with no separate debug info.
1907 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
1908 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
1909 only for files with no separate debug info.
1910
1911 2013-01-31 Tom Tromey <tromey@redhat.com>
1912
1913 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
1914 change type.
1915 (struct jit_program_space_data): Rename from jit_inferior_data.
1916 Update comments.
1917 (get_jit_program_space_data): Rename from get_jit_inferior_data.
1918 Change return type. Attach data to program space.
1919 (jit_program_space_data_cleanup): Rename from
1920 jit_inferior_data_cleanup; change argument type.
1921 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
1922 change type.
1923 (jit_register_code): Update.
1924 (jit_update_inferior_cache): Remove.
1925 (jit_breakpoint_deleted): Get jit data from the location's program
1926 space.
1927 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
1928 'ps_data', change type.
1929 (jit_inferior_init, jit_breakpoint_re_set_internal)
1930 (jit_event_handler): Update.
1931 (free_objfile_data): Get data from objfile's program space.
1932 (_initialize_jit): Update.
1933
1934 2013-01-31 Tom Tromey <tromey@redhat.com>
1935
1936 PR gdb/13987:
1937 * jit.c (struct jit_inferior_data) <cached_code_address,
1938 jit_breakpoint>: New fields.
1939 (jit_breakpoint_re_set_internal): Fix logging. Only create
1940 breakpoint if cached address has changed.
1941 (jit_update_inferior_cache, jit_breakpoint_deleted): New
1942 functions.
1943 (_initialize_jit): Register breakpoint deleted observer.
1944
1945 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1946
1947 * infrun.c (handle_syscall_event): Remove unused gdbarch.
1948 (save_infcall_suspend_state): Ifdef out unused inf.
1949 (restore_infcall_suspend_state): Ifdef out unused inf.
1950 * jit.c (jit_register_code): Remove unused i, b, inf_data.
1951 (jit_frame_sniffer): Remove unused inf_data.
1952
1953 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1954
1955 * c-exp.y (classify_inner_name): Remove unused type.
1956 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
1957 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
1958 need_escape.
1959 (c_get_string): Remove unused kind.
1960 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
1961
1962 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1963
1964 * charset.c (intermediate_encoding): Remove unused i.
1965 * completer.c (signal_completer): Remove unused i.
1966 * continuations.c (discard_my_continuations_1): Remove unused
1967 continuation_ptr.
1968 * corelow.c (core_close): Remove unuseD name.
1969 (get_core_siginfo): Remove unused pid.
1970 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
1971 i, cps.
1972 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
1973 (loclist_describe_location): Remove unused first.
1974 * event-top.c (command_line_handler): Remove unused got_eof.
1975 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
1976 (resize_section_table): Remove unused old_value.
1977 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
1978 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
1979 * i386-tdep.c (i386_process_record): Remove unused rex.
1980 * infcmd.c (get_return_value): Remove unused uiout.
1981 * jv-lang.c (type_from_class): Remove unused is_array.
1982 * jv-valprint.c (java_val_print): Remove unused i.
1983 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
1984 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
1985 * m2-typeprint.c (m2_print_type): Remove unused code.
1986 * macroexp.c (get_character_constant): Remove unused body_start.
1987 (macro_stringify): Remove unused result.
1988 * objc-lang.c (find_methods): Remove unused gdbarch.
1989 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
1990 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
1991 * stack.c (print_frame_args): Remove unused summary.
1992 * thread.c (thread_apply_command): Remove unused p.
1993 * valarith.c (value_x_unop): Remove unused mangle_ptr.
1994 * valops.c (search_struct_method): Remove unused skip.
1995 * valprint.c (generic_val_print): Remove unused byte_order.
1996 * varobj.c (varobj_update): Remove unused changed.
1997 * cli/cli-cmds.c (complete_command): Remove unused next_item.
1998 (alias_command): Remove unused c.
1999 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
2000 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
2001 format.
2002 (mi_cmd_data_write_memory): Remove unused word_format.
2003 (mi_cmd_data_write_memory_bytes): Remove unused r.
2004 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
2005 p_start, p_end.
2006 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
2007 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
2008 line_width.
2009
2010 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2011
2012 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
2013 * symtab.c (iterate_over_symtabs): Remove unused s.
2014 (find_pc_sect_symtab): Remove unused pspAce.
2015 (find_pc_sect_line): Remove unused alt_symtab.
2016 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
2017 (completion_list_add_name): Remove unused newsize.
2018
2019 2013-01-31 Tom Tromey <tromey@redhat.com>
2020
2021 PR c++/14998:
2022 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
2023 TYPE_CODE_FUNC.
2024
2025 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2026
2027 * target.c (target_read_string): Remove unused origlen.
2028
2029 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2030
2031 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
2032 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
2033 * ax-general.c (ax_print): Remove unused is_float.
2034 * blockframe.c (block_innermost_frame): Remove unused start, end.
2035 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
2036
2037 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
2038
2039 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
2040 (svr4_read_so_list): Remove unused lmo.
2041 * solib-target.c (solib_target_relocate_section_addresses): Remove
2042 unused flags.
2043
2044 2013-01-30 Tom Tromey <tromey@redhat.com>
2045
2046 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
2047
2048 2013-01-30 Tom Tromey <tromey@redhat.com>
2049
2050 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
2051 * utils.c (gnu_debuglink_crc32): Remove.
2052 * utils.h (gnu_debuglink_crc32): Don't declare.
2053
2054 2013-01-30 Tom Tromey <tromey@redhat.com>
2055
2056 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
2057 (read_structure_type, read_enumeration_type): Remove cast.
2058
2059 2013-01-30 Tom Tromey <tromey@redhat.com>
2060
2061 * dwarf2read.c (read_namespace_type): Remove cast.
2062 (read_typedef): Likewise.
2063
2064 2013-01-29 Tom Tromey <tromey@redhat.com>
2065
2066 * dwarf2read.c (free_dwo_file): Remove assert.
2067
2068 2013-01-29 Tom Tromey <tromey@redhat.com>
2069
2070 * value.c (deprecated_set_value_modifiable): Remove.
2071 * value.h (deprecated_set_value_modifiable): Remove.
2072
2073 2013-01-28 Doug Evans <dje@google.com>
2074
2075 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
2076 to addresses from dwo files.
2077
2078 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
2079
2080 * valops.c (find_overload_match): Remove unused argument 'lax'.
2081 * value.h: Remove unused argument 'lax' from the declaration of
2082 find_overload_match.
2083 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
2084 to find_overload_match.
2085 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
2086 argument to find_overload_match.
2087
2088 2013-01-25 Tom Tromey <tromey@redhat.com>
2089
2090 * dwarf2read.c (processing_has_namespace_info): Remove.
2091 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
2092 (process_die, read_func_scope, dwarf2_start_symtab)
2093 (new_symbol_full): Update.
2094
2095 2013-01-25 Tom Tromey <tromey@redhat.com>
2096
2097 * cp-namespace.c (cp_set_block_scope): Remove.
2098 * cp-support.h (cp_set_block_scope): Remove.
2099 * dbxread.c: Include block.h.
2100 (cp_set_block_scope): New function.
2101 (process_one_symbol): Update.
2102 * dwarf2read.c (read_func_scope): Use block_set_scope.
2103
2104 2013-01-25 Pedro Alves <palves@redhat.com>
2105
2106 * remote.c (add_current_inferior_and_thread): Tweak comment.
2107
2108 2013-01-25 Tom Tromey <tromey@redhat.com>
2109
2110 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2111 (cp_add_using_directive): Add 'copy_names' argument.
2112 * cp-support.h (cp_add_using_directive): Update.
2113 (struct using_direct) <import_src, import_dest, alias,
2114 declaration>: Now const.
2115 * dwarf2read.c (read_import_statement): Use obconcat.
2116 Don't copy names passed to cp_add_using_directive.
2117
2118 2013-01-25 Tom Tromey <tromey@redhat.com>
2119
2120 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
2121
2122 2013-01-25 Pedro Alves <palves@redhat.com>
2123
2124 * remote.c (stop_reply_extract_thread): New.
2125 (add_current_inferior_and_thread): New parameter 'wait_status'.
2126 Handle it.
2127 (remote_start_remote): Pass wait status to
2128 add_current_inferior_and_thread.
2129 (extended_remote_run): Update comment.
2130 (extended_remote_create_inferior_1): Pass wait status to
2131 add_current_inferior_and_thread.
2132
2133 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
2134 Ulrich Weigand <uweigand@de.ibm.com>
2135
2136 * valarith.c (value_vector_widen): New function for replicating a
2137 scalar into a vector.
2138 (value_binop): Use value_vector_widen to widen scalar to vector
2139 rather than casting, this better matches gcc C behaviour.
2140 * valops.c (value_casst): Update logic for casting between vector
2141 types, and for casting from scalar to vector, try to match gcc C
2142 behaviour.
2143 * value.h (value_vector_widen): Declare.
2144 * opencl-lang.c (opencl_value_cast): New opencl specific casting
2145 function, handle special case for casting scalar to vector.
2146 (opencl_relop): Use opencl_value_cast.
2147 (evaluate_subexp_opencl): Use opencl_value_cast instead of
2148 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
2149 in order to use opencl_value_cast.
2150
2151 2013-01-25 Yao Qi <yao@codesourcery.com>
2152
2153 * event-loop.c: Include "queue.h".
2154 (gdb_event_p): New typedef.
2155 (DECLARE_QUEUE_P): Use.
2156 (DEFINE_QUEUE_P): Use.
2157 (async_queue_event): Remove.
2158 (gdb_event_xfree): New.
2159 (initialize_event_loop): New.
2160 (process_event): Use QUEUE macros.
2161 (event_queue): Remove.
2162 (gdb_wait_for_event): Caller update.
2163 (check_async_event_handlers): Likewise.
2164 (poll_timers): Likewise.
2165 * event-loop.h (initialize_event_loop): Declare.
2166 * event-loop.c (gdb_event_xfree): New.
2167 * top.c (gdb_init): Call initialize_event_loop.
2168
2169 2013-01-25 Yao Qi <yao@codesourcery.com>
2170
2171 * event-loop.c (async_queue_event): Remove one parameter
2172 'position'. Remove code handling 'position' == TAIL.
2173 (gdb_wait_for_event): Caller update.
2174 (check_async_event_handlers): Caller update.
2175 (poll_timers): Caller update.
2176 * event-loop.h (enum queue_position): Remove.
2177
2178 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
2179
2180 * MAINTAINERS: Update my email.
2181
2182 2013-01-25 Yao Qi <yao@codesourcery.com>
2183
2184 * main.c (print_gdb_help): Remove "--epoch" from the help
2185 message.
2186
2187 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
2188
2189 * symtab.c (skip_prologue_using_sal): Consider a file
2190 change the same as an increased line number
2191
2192 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
2193
2194 * MAINTAINERS (Write After Approval): Add myself to the list.
2195
2196 2013-01-24 Tom Tromey <tromey@redhat.com>
2197
2198 * ada-lang.h (ada_decode_symbol): Make return type const.
2199 * ada-lang.c (ada_decode_symbol): Likewise.
2200
2201 2013-01-23 Doug Evans <dje@google.com>
2202
2203 * linespec.c (find_linespec_symbols): Make static.
2204
2205 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
2206
2207 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
2208 type on float conversion for complex type.
2209
2210 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
2211
2212 Add a new class gdb.Architecture which exposes GDB's
2213 internal representation of architecture via GDB Python API.
2214 * Makefile.in: Add entries corresponding to the new file
2215 python/py-arch.c.
2216 * NEWS (Python Scripting): Add entries for the new class
2217 gdb.Architecture and the new method gdb.Frame.architecture.
2218 * python/py-arch.c: Implement gdb.Architecture class.
2219 * python/py-frame.c (frapy_arch): Implement the method
2220 gdb.Frame.architecture().
2221 (frame_object_methods): Add 'architecture' to the method table.
2222 * python/python-internal.h: Add declarations of new utility
2223 functions.
2224 * python/python.c (_initialize_python): Initialize
2225 gdb.Architecture class.
2226
2227 2013-01-23 Doug Evans <dje@google.com>
2228
2229 Work around binutils/15021.
2230 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
2231 type_unit_group out of union s. All uses updated.
2232 (read_index_from_section): Watch for index version 8.
2233 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
2234 an imported symtab.
2235 (write_psymtabs_to_index): Increment version number to 8.
2236
2237 2013-01-22 Pedro Alves <palves@redhat.com>
2238
2239 * annotate.c (breakpoint_changed): Skip if breakpoint is not
2240 user-visible.
2241
2242 2013-01-22 Pedro Alves <palves@redhat.com>
2243
2244 * annotate.c (annotate_breakpoints_changed): Rename to ...
2245 (annotate_breakpoints_invalid): ... this. Make static.
2246 (breakpoint_changed): Adjust.
2247 (_initialize_annotate): Always install the observers. Install a
2248 "breakpoint_created" observer.
2249 * annotate.h (annotate_breakpoints_changed): Delete declaration.
2250 * breakpoint.c (set_breakpoint_condition)
2251 (breakpoint_set_commands, do_map_commands_command)
2252 (init_raw_breakpoint, clear_command, set_ignore_count)
2253 (enable_breakpoint_disp): No longer call
2254 annotate_breakpoints_changed.
2255
2256 2013-01-22 Pedro Alves <palves@redhat.com>
2257
2258 * annotate.c: Include "inferior.h".
2259 (frames_invalid_emitted)
2260 (breakpoints_invalid_emitted): New globals.
2261 (async_background_execution_p): New function.
2262 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
2263 emitting the annotation if it has already been emitted.
2264 (annotate_display_prompt): New function.
2265 * annotate.h (annotate_display_prompt): New declaration.
2266 * event-top.c: Include annotate.h.
2267 (display_gdb_prompt): Call annotate_display_prompt.
2268
2269 2013-01-22 Pedro Alves <palves@redhat.com>
2270
2271 * annotate.c (ignore_count_changed): Delete.
2272 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
2273 (annotate_ignore_count_change): Delete.
2274 (annotate_stopped): Don't emit a delayed breakpoints-changed
2275 annotation.
2276 * annotate.h (annotate_ignore_count_change): Delete.
2277 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
2278 annotate_ignore_count_change.
2279
2280 2013-01-22 Tom Tromey <tromey@redhat.com>
2281
2282 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
2283 require_rvalue for a register location.
2284
2285 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
2286
2287 * breakpoint.c (print_one_breakpoint_location): Add MI
2288 field 'thread-groups' when printing a breakpoint.
2289 (output_thread_groups): New function.
2290
2291 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
2292
2293 * python/lib/gdb/commands/explore.py
2294 (CompoundExplorer.explore_expr): Correct the name of a method
2295 being invoked.
2296 (ExploreTypeCommand.invoke): Add a missing 'return'.
2297
2298 2013-01-21 Tom Tromey <tromey@redhat.com>
2299
2300 * gdb_obstack.h (obconcat): Move declaration here, from...
2301 * symfile.h (obconcat): ... here.
2302 * gdb_obstack.c: New file.
2303 (obconcat): Move from...
2304 * symfile.c (obconcat): ... here.
2305 * Makefile.in (SFILES): Add gdb_obstack.c.
2306 (COMMON_OBS): Add gdb_obstack.o.
2307
2308 2013-01-21 Tom Tromey <tromey@redhat.com>
2309
2310 * symfile.h (obsavestring): Don't declare.
2311 * symfile.c (obsavestring): Remove.
2312 * ada-exp.y: Use obstack_copy0, not obsavestring.
2313 * ada-lang.c: Use obstack_copy0, not obsavestring.
2314 * coffread.c: Use obstack_copy0, not obsavestring.
2315 * cp-namespace.c: Use obstack_copy0, not obsavestring.
2316 * dbxread.c: Use obstack_copy0, not obsavestring.
2317 * dwarf2read.c: Use obstack_copy0, not obsavestring.
2318 * jit.c: Use obstack_copy0, not obsavestring.
2319 * mdebugread.c: Use obstack_copy0, not obsavestring.
2320 * psymtab.c: Use obstack_copy0, not obsavestring.
2321 * stabsread.c: Use obstack_copy0, not obsavestring.
2322 * xcoffread.c: Use obstack_copy0, not obsavestring.
2323
2324 2013-01-21 Tom Tromey <tromey@redhat.com>
2325
2326 * dwarf2read.c (fixup_go_packaging): Save package name
2327 on objfile obstack.
2328 * gdbtypes.c (init_type): Don't copy name.
2329
2330 2013-01-21 Tom Tromey <tromey@redhat.com>
2331
2332 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
2333 const.
2334 (struct attribute) <u.str>: Now const.
2335 (struct fnfieldlist) <name>: Now const.
2336 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
2337 (partial_die_parent_scope): Make return type const.
2338 (partial_die_full_name, add_partial_symbol): Update.
2339 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
2340 'name' const.
2341 (find_file_and_directory): Make 'name' and 'comp_dir' const.
2342 (read_file_scope, read_func_scope, dwarf2_add_field)
2343 (dwarf2_add_member_fn, read_structure_type)
2344 (process_enumeration_scope, read_array_type, read_module_type)
2345 (read_base_type, read_subrange_type): Update.
2346 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
2347 (new_symbol_full, guess_full_die_structure_name): Update.
2348 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
2349 (dwarf2_name): Return const type.
2350 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
2351 const.
2352
2353 2013-01-21 Tom Tromey <tromey@redhat.com>
2354
2355 * gdbtypes.c (init_type): Make 'name' const.
2356 * gdbtypes.h (init_type): Update.
2357
2358 2013-01-21 Tom Tromey <tromey@redhat.com>
2359
2360 * buildsym.c (patch_subfile_names): Use set_last_source_file.
2361 (start_symtab): Make 'name' and 'dirname' const. Use
2362 set_last_source_file.
2363 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
2364 (last_source_file): Define. Now static.
2365 (set_last_source_file, get_last_source_file): New functions.
2366 * buildsym.h (last_source_file): Don't declare.
2367 (start_symtab): Update.
2368 (set_last_source_file, get_last_source_file): Declare.
2369 * coffread.c (complete_symtab): Use set_last_source_file.
2370 (coff_end_symtab): Likewise.
2371 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
2372 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
2373 set_last_source_file.
2374 (process_one_symbol): Use get_last_source_file.
2375 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
2376 (psymtab_to_symtab_1): Use get_last_source_file.
2377 * xcoffread.c (process_linenos): Use get_last_source_file.
2378 (complete_symtab): Use set_last_source_file.
2379 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
2380 (scan_xcoff_symtab): Use set_last_source_file.
2381
2382 2013-01-21 Tom Tromey <tromey@redhat.com>
2383
2384 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
2385 (symbol_set_names): Remove casts. Handle field const-ness.
2386
2387 2013-01-21 Tom Tromey <tromey@redhat.com>
2388
2389 * dwarf2read.c (new_symbol_full): Remove cast.
2390 * symtab.c (symbol_set_demangled_name): Make 'name' const.
2391 * symtab.h (symbol_set_demangled_name): Update.
2392
2393 2013-01-21 Tom Tromey <tromey@redhat.com>
2394
2395 * main.c (captured_main): Call bfd_init.
2396
2397 2013-01-21 Tom Tromey <tromey@redhat.com>
2398
2399 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
2400 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
2401 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
2402 * NEWS: Update.
2403
2404 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2405
2406 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
2407
2408 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2409
2410 Fix gdb.fortran/common-block.exp crash in PIE mode.
2411 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
2412 LOC_COMMON_BLOCK.
2413 * f-valprint.c (info_common_command_for_block): Expect
2414 LOC_COMMON_BLOCK in gdb_assert.
2415 * symtab.h (struct general_symbol_info): Update comment for the
2416 common_block member.
2417 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
2418 (enum address_class): New member LOC_COMMON_BLOCK.
2419
2420 2013-01-18 David Blaikie <dblaikie@gmail.com>
2421
2422 * MAINTAINERS (Write After Approval): Add "David Blaikie".
2423
2424 2013-01-18 Tom Tromey <tromey@redhat.com>
2425
2426 PR c++/14999:
2427 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
2428 Call require_rvalue.
2429
2430 2013-01-18 Yao Qi <yao@codesourcery.com>
2431
2432 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
2433 (dbx_read_symtab): New declaration.
2434 (dbx_psymtab_to_symtab): Delete.
2435 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
2436 Rename parameter PST to SELF. Exchanged two parameters.
2437 (start_psymtab): Caller update.
2438 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
2439 (dwarf2_read_symtab): New declaration.
2440 (dwarf2_psymtab_to_symtab): Delete.
2441 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
2442 Rename parameter PST to SELF. Exchanged two parameters.
2443 (create_partial_symtab): Caller update.
2444 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
2445 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
2446 Rename parameter PST to SELF. Exchanged two parameters.
2447 (parse_partial_symbols, new_psymtab): Caller update.
2448 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
2449 two parameters.
2450 * psymtab.c (psymtab_to_symtab): Caller update.
2451 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
2452 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
2453 Rename parameter PST to SELF. Exchanged two parameters.
2454 (xcoff_start_psymtab): Caller update.
2455
2456 2013-01-18 Yao Qi <yao@codesourcery.com>
2457
2458 * infrun.c (proceed): Rename local variable 'oneproc' to
2459 'force_step'.
2460
2461 2013-01-17 Doug Evans <dje@google.com>
2462
2463 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
2464 (dw2_build_type_unit_groups): Delete. All uses updated.
2465
2466 * symtab.h (struct symbol_search): Add comment.
2467
2468 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2469
2470 * symtab.c (compare_filenames_for_search): New comment for
2471 HAS_DRIVE_SPEC.
2472
2473 2013-01-17 Tom Tromey <tromey@redhat.com>
2474
2475 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
2476
2477 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2478
2479 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
2480 initialize it by existing make_cleanup. Call new do_cleanups.
2481
2482 2013-01-17 Tom Tromey <tromey@redhat.com>
2483
2484 * cp-abi.c (cp_abi_completer): New function.
2485 (_initialize_cp_abi): Set completer for "set cp-abi".
2486
2487 2013-01-17 Tom Tromey <tromey@redhat.com>
2488
2489 * mem-break.c: Remove obsolete comment.
2490 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
2491
2492 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
2493
2494 * jit.c (jit_reader_load_command): Interpret the jit reader name
2495 as an absolute path if it begins with a forward slash.
2496
2497 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
2498
2499 PR gdb/14550
2500
2501 * jit.c (finalize_symtab): Ensure that only the global block has a
2502 NULL superblock.
2503
2504 2013-01-17 Pedro Alves <palves@redhat.com>
2505
2506 * acinclude.m4: Include ../config/plugins.m4,
2507 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
2508 * Makefile.in (aclocal_m4_deps): Update.
2509 * aclocal.m4: Renegerate.
2510
2511 2013-01-16 Doug Evans <dje@google.com>
2512
2513 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
2514
2515 2013-01-16 Pedro Alves <palves@redhat.com>
2516 Tom Tromey <tromey@redhat.com>
2517
2518 PR cli/7221:
2519 * NEWS: Add "catch signal".
2520 * breakpoint.c (base_breakpoint_ops): No longer static.
2521 (bpstat_explains_signal): New function.
2522 (init_catchpoint): No longer static.
2523 (base_breakpoint_explains_signal): New function.
2524 (base_breakpoint_ops): Initialize new field.
2525 * breakpoint.h (enum bpstat_signal_value): New.
2526 (struct breakpoint_ops) <explains_signal>: New field.
2527 (bpstat_explains_signal): Remove macro, declare as function.
2528 (base_breakpoint_ops, init_catchpoint): Declare.
2529 * break-catch-sig.c: New file.
2530 * inferior.h (signal_catch_update): Declare.
2531 * infrun.c (signal_catch): New global.
2532 (handle_syscall_event): Update for change to
2533 bpstat_explains_signal.
2534 (handle_inferior_event): Likewise. Always handle random signals
2535 via bpstats.
2536 (signal_cache_update): Check signal_catch.
2537 (signal_catch_update): New function.
2538 (_initialize_infrun): Initialize signal_catch.
2539 * Makefile.in (SFILES): Add break-catch-sig.c.
2540 (COMMON_OBS): Add break-catch-sig.o.
2541
2542 2013-01-16 Tom Tromey <tromey@redhat.com>
2543
2544 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
2545 (print_one_catch_solib, print_one_catch_syscall)
2546 (print_one_catch_exec, print_one_exception_catchpoint): Emit
2547 "catch-type".
2548
2549 2013-01-16 Yao Qi <yao@codesourcery.com>
2550
2551 * printcmd.c (current_display_number): Make it static.
2552
2553 2013-01-16 Yao Qi <yao@codesourcery.com>
2554
2555 * infcmd.c (step_once): Don't check '!single_inst' as it was
2556 checked before.
2557
2558 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2559
2560 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
2561
2562 2013-01-14 Tom Tromey <tromey@redhat.com>
2563
2564 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
2565 set command.
2566 * command.h (add_setshow_string_noescape_cmd): Update.
2567 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
2568 (complete_set_gnutarget): New function.
2569 (_initialize_core): Set the "set gnutarget" completer.
2570
2571 2013-01-14 Tom Tromey <tromey@redhat.com>
2572
2573 PR symtab/14442:
2574 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
2575 (c_type_print_modifier): Likewise.
2576 * dwarf2read.c (read_tag_restrict_type): New function.
2577 (read_type_die_1): Handle DW_TAG_restrict_type.
2578 * gdbtypes.c (make_restrict_type): New function.
2579 (recursive_dump_type): Handle TYPE_RESTRICT.
2580 * gdbtypes.h (enum type_flag_values): Renumber.
2581 (enum type_instance_flag_value): Add
2582 TYPE_INSTANCE_FLAG_RESTRICT.
2583 (TYPE_RESTRICT): New macro.
2584 (make_restrict_type): Declare.
2585
2586 2013-01-14 Tom Tromey <tromey@redhat.com>
2587
2588 PR symtab/14931:
2589 * psymtab.c (struct psymtab_state): New.
2590 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
2591 functions.
2592 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
2593 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
2594
2595 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
2596 Pedro Alves <palves@redhat.com>
2597
2598 PR remote/14786
2599
2600 * remote.c (remote_threads_info): Make a copy of the reply from
2601 qfThreadInfo and use that instead of rs->buf.
2602
2603 2013-01-14 Yao Qi <yao@codesourcery.com>
2604
2605 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
2606 (dbx_psymtab_to_symtab): Likewise.
2607 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
2608 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
2609 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
2610
2611 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2612
2613 * parse.c (parse_exp_in_context): New variable inner_chain. Call
2614 make_cleanup_restore_current_language. Call set_language. Move
2615 OLD_CHAIN and INNER_CHAIN cleanups.
2616 * utils.c (do_restore_current_language)
2617 (make_cleanup_restore_current_language): New functions.
2618 * utils.h (make_cleanup_restore_current_language): New declaration.
2619
2620 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2621
2622 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
2623 non-existing files.
2624
2625 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
2626 non-existing files if FILENAME is already absolute.
2627
2628 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2629
2630 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
2631 fputs_filtered. Append trailing newline.
2632
2633 2013-01-11 Yao Qi <yao@codesourcery.com>
2634 Stan Shebs <stan@codesourcery.com>
2635
2636 * psymtab.c (init_psymbol_list): Clarify the comment.
2637
2638 2013-01-11 Yao Qi <yao@codesourcery.com>
2639
2640 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
2641 (update_dprintf_command_list): Assert that 'printf_line' is
2642 non-null. Remove condition check.
2643
2644 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2645
2646 Code cleanup.
2647 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
2648 type const char *.
2649 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
2650 const char *.
2651 * tui/tui-source.h (tui_source_is_displayed): Likewise.
2652
2653 2013-01-09 Anthony Green <green@moxielogic.com>
2654
2655 * cp-abi.c (cplus_print_vtable): Don't return value from void
2656 function.
2657 * ada-lang.c (re_set_catch_assert): Ditto.
2658
2659 2013-01-09 Doug Evans <dje@google.com>
2660
2661 * symfile.h (quick_symbol_functions): Delete member
2662 pre_expand_symtabs_matching. All uses removed.
2663 * dwarf2read.c (dw2_lookup_symbol): Implement.
2664 (dw2_do_expand_symtabs_matching): Delete.
2665 (dw2_pre_expand_symtabs_matching): Delete.
2666 (struct dw2_symtab_iterator): New type.
2667 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
2668 (dw2_expand_symtabs_for_function): Rewrite.
2669 (dwarf2_gdb_index_functions): Update.
2670 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
2671 (psym_functions): Update.
2672
2673 2013-01-09 Tom Tromey <tromey@redhat.com>
2674
2675 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
2676 * configure: Rebuild.
2677 * configure.ac: Add somread.o to the build if BFD has SOM
2678 support.
2679 * somread.c: Include som/aout.h, not syms.h.
2680 (som_symtab_read): Use som_external_symbol_dictionary_record.
2681 Unpack records manually.
2682 (_initialize_somread): Declare.
2683
2684 2012-01-08 Mike Frysinger <vapier@gentoo.org>
2685
2686 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
2687 Cast return_address to 64bits.
2688
2689 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
2690
2691 * printcmd.c: Remove define of function output_command.
2692 * tracepoint.c: Remove extern of function output_command.
2693 * valprint.h: (output_command): New extern.
2694
2695 2013-01-07 Tom Tromey <tromey@redhat.com>
2696
2697 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
2698 Remove.
2699 (objc_language_defn): Use c_printchar, c_printstr,
2700 c_emit_char.
2701
2702 2013-01-07 Tom Tromey <tromey@redhat.com>
2703
2704 PR cli/7719:
2705 * NEWS: Update.
2706 * ada-valprint.c (printstr, print_field_values): Remove
2707 "inspect_it" code.
2708 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
2709 code.
2710 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
2711 code.
2712 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
2713 * main.c (captured_main): Remove "epoch" argument.
2714 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
2715 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
2716 * p-valprint.c (pascal_object_print_value_fields): Remove
2717 "inspect_it" code.
2718 * printcmd.c (print_command_1): Remove 'inspect' argument.
2719 (print_command, call_command): Update.
2720 (inspect_command): Remove.
2721 (_initialize_printcmd): Make "inspect" an alias for "print".
2722 * top.c (epoch_interface): Remove.
2723 * top.h (epoch_interface): Remove.
2724 * valprint.c (user_print_options): Update.
2725 (print_converted_chars_to_obstack): Remove "inspect_it" code.
2726 * valprint.h (struct value_print_options) <inspect_it>: Remove
2727 field.
2728
2729 2013-01-04 Tom Tromey <tromey@redhat.com>
2730
2731 * valprint.h (read_string): Add 'extern'.
2732
2733 2013-01-07 Joel Brobecker <brobecker@adacore.com>
2734
2735 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
2736 used to decide whether to define darwin_read_dyld_info or not.
2737
2738 2013-01-03 Pierre Muller <muller@sourceware.org>
2739
2740 * main.c (relocate_gdb_directory): Avoid calling stat function
2741 if DIR is empty.
2742
2743 2013-01-03 Yao Qi <yao@codesourcery.com>
2744
2745 * psymtab.c (fixup_psymbol_section): Update declaration.
2746 (fixup_psymbol_section): Remove code returning value.
2747
2748 2013-01-03 Yao Qi <yao@codesourcery.com>
2749
2750 * symtab.h: Remove some out of date comments.
2751 (enum exception_event_kind): Move it ...
2752 * breakpoint.c: ... here.
2753
2754 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
2755
2756 PR gdb/14405
2757 * darwin-nat.c (darwin_read_dyld_info): Only build if
2758 TASK_DYLD_INFO_COUNT is defined.
2759 (darwin_xfer_partial): Call darwin_read_dyld_info only if
2760 TASK_DYLD_INFO_COUNT is defined.
2761
2762 2013-01-02 Tom Tromey <tromey@redhat.com>
2763
2764 * symfile.h (struct ecoff_debug_hack): Remove.
2765 * objfiles.c: Don't include mdebugread.h.
2766
2767 2013-01-02 Tom Tromey <tromey@redhat.com>
2768
2769 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
2770 * configure.ac: Check for Mach-O support in BFD. Update
2771 CONFIG_OBS.
2772 * configure: Rebuild.
2773
2774 2013-01-02 Tom Tromey <tromey@redhat.com>
2775
2776 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
2777 * configure.ac: Use GDB_AC_CHECK_BFD.
2778 * configure: Rebuild.
2779
2780 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
2781
2782 * MAINTAINERS: Update my email.
2783
2784 2013-01-01 Joel Brobecker <brobecker@adacore.com>
2785
2786 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
2787
2788 2013-01-01 Joel Brobecker <brobecker@adacore.com>
2789
2790 * rs6000-nat.c (bss_data_overlap): New function.
2791 (vmap_symtab): Use it to adjust the .bss section's offset.
2792
2793 2013-01-01 Joel Brobecker <brobecker@adacore.com>
2794
2795 Update year range in copyright notice of all files.
2796
2797 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
2798
2799 * top.c (print_gdb_version): Update copyright year.
2800
2801 For older changes see ChangeLog-2012.
2802 \f
2803 Local Variables:
2804 mode: change-log
2805 left-margin: 8
2806 fill-column: 74
2807 version-control: never
2808 coding: utf-8
2809 End:
This page took 0.0847290000000001 seconds and 5 git commands to generate.