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