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