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