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