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