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