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