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