1 2013-05-30 Joel Brobecker <brobecker@adacore.com>
3 * windows-nat.c (windows_delete_thread): Add missing space
6 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
8 * inferior.c (top level): Include tilde.h.
9 (add_inferior_command): Call tilde_expand on the value of 'exec'
12 2013-05-30 Pedro Alves <pedro@codesourcery.com>
13 Yao Qi <yao@codesourcery.com>
15 * tracepoint.c (encode_actions_1): Remove parameter 't'.
17 (encode_actions): Likewise.
18 * remote.c (remote_download_tracepoint): Caller update.
19 * tracepoint.h (encode_actions): Update declaration.
21 2013-05-30 Pedro Alves <palves@redhat.com>
23 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
26 2013-05-30 Yao Qi <yao@codesourcery.com>
28 * remote.c (remote_check_symbols): Remove unused parameter
31 (remote_start_remote, remote_new_objfile): Caller update.
33 2013-05-30 Yao Qi <yao@codesourcery.com>
35 * mi/mi-cmds.c (mi_cmds): Define MI command
36 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
39 2013-05-29 Pedro Alves <palves@redhat.com>
41 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
42 (remote_insert_watchpoint, remote_remove_watchpoint)
43 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
44 (remote_verify_memory, compare_sections_command)
45 (remote_search_memory): Set the general process/thread on the
48 2013-05-29 Pedro Alves <palves@redhat.com>
50 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
51 (_initialize_aarch64_tdep): Don't call
52 initialize_tdesc_aarch64_without_fpu.
53 * features/Makefile (WHICH): Remove reference to
55 * features/aarch64-without-fpu.c: Delete file.
56 * regformats/aarch64-without-fpu.dat: Delete file.
58 2013-05-28 Yao Qi <yao@codesourcery.com>
60 * tracepoint.c (stringify_collection_list): Remove parameter
62 (encode_actions): Caller update. Remove local variables.
64 2013-05-24 Yao Qi <yao@codesourcery.com>
66 * tracepoint.c (TFILE_PID): Remove.
67 (tfile_open): Don't add thread and inferior.
68 (tfile_close): Don't set 'inferior_ptid'. Don't call
70 (tfile_thread_alive): Remove.
71 (init_tfile_ops): Don't set field 'to_thread_alive' of
74 2013-05-23 Doug Evans <dje@google.com>
76 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
78 2013-05-23 Pedro Alves <palves@redhat.com>
80 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
81 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
82 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
83 Only define if HAVE_SOCKETS is defined.
84 * configure.ac: Check for sys/socket.h.
85 * config.in, configure: Regenerate.
87 2013-05-23 Pedro Alves <palves@redhat.com>
89 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
90 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
91 printing uint32_t variables.
93 2013-05-23 Pedro Alves <palves@redhat.com>
95 * NEWS: Mention GDBserver range stepping support.
97 2013-05-23 Yao Qi <yao@codesourcery.com>
98 Pedro Alves <palves@redhat.com>
100 * gdbthread.h (struct thread_control_state) <may_range_step>: New
102 * infcmd.c (step_once, until_next_command): Enable range stepping.
103 * infrun.c (displaced_step_prepare): Disable range stepping.
104 (resume): Disable range stepping if stepping over a breakpoint or
105 we have software watchpoints. If range stepping is enabled,
106 assert the thread is in the stepping range.
107 (clear_proceed_status_thread): Clear may_range_step.
108 (handle_inferior_event): Disable range stepping as soon as we know
109 the thread that hit the event. Re-enable it whenever we're going
110 to step with a step range.
111 * remote.c (struct vCont_action_support) <r>: New field.
112 (use_range_stepping): New global.
113 (remote_vcont_probe): Handle 'r' action.
114 (append_resumption): Append an 'r' action if the thread may range
116 (show_range_stepping): New function.
117 (set_range_stepping): New function.
118 (_initialize_remote): Call add_setshow_boolean_cmd to register the
119 'set range-stepping' and 'show range-stepping' commands.
120 * NEWS: Mention range stepping, the new vCont;r action, and the
121 new "set/show range-stepping" commands.
123 2013-05-23 Yao Qi <yao@codesourcery.com>
124 Pedro Alves <palves@redhat.com>
126 * remote.c (struct vCont_action_support): New struct.
127 (struct remote_state) <support_vCont_t>: Remove field.
128 <vCont_actions_support>: New field.
129 (remote_vcont_probe, remote_stop_ns): Update.
131 2013-05-23 Yao Qi <yao@codesourcery.com>
132 Pedro Alves <palves@redhat.com>
134 * gdbthread.h (pc_in_thread_step_range): New declaration.
135 * thread.c (pc_in_thread_step_range): New function.
136 * infrun.c (handle_inferior_event): Use it.
138 2013-05-23 Joel Brobecker <brobecker@adacore.com>
140 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
143 2013-05-22 Keith Seitz <keiths@redhat.com>
145 * ada-lang.c (is_known_support_routine): Add explicit free of
146 'func_name' from find_frame_funname.
147 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
148 for func_name from find_frame_funname.
149 * python/py-frame.c (frapy_name): Add explicit free of
150 'name' from find_frame_funname.
151 * stack.c (find_frame_funname): Add comment explaining that
152 funcp must be freed by the caller.
153 Return copy of symbol names instead of pointers.
154 (print_frame): Add a cleanup for 'funname' from
156 * stack.h (find_frame_funname): Remove "const" from
159 2013-05-22 Tom Tromey <tromey@redhat.com>
162 * c-valprint.c (c_value_print): Use value_addr for
163 references. Convert back to reference type with value_ref.
165 2013-05-22 Eli Zaretskii <eliz@gnu.org>
167 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
168 unloaded DLL, it will be done by handle_solib_event. See
169 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
172 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
174 * ui-out.c: Create typedef ui_out_level_p and define vector
175 operations for that type.
176 (struct ui_out): Use a vector instead of an array.
177 (current_level): Return level from a vector.
178 (push_level): Create a level in a vector.
179 (pop_level): Delete a level in a vector.
180 (ui_out_new): Create initial level zero level, and store in a
182 (ui_out_destroy): Add vector cleanup.
184 2013-05-22 Pedro Alves <palves@redhat.com>
186 * python/python-internal.h (gdb_Py_DECREF): Tag with
187 "ARI: editCase function".
189 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
191 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
193 2013-05-21 Pedro Alves <palves@redhat.com>
195 * python/py-prettyprint.c (apply_val_pretty_printer): Check
196 whether PRINTER is NULL before installing a Py_DECREF cleanup.
197 * python/py-utils.c (py_decref): Don't check for NULL before
200 2013-05-21 Pedro Alves <palves@redhat.com>
202 * python/py-utils.c (py_decref): Remove extra braces.
203 (gdb_pymodule_addobject): Remove extra braces.
204 * python-internal.h (gdb_Py_DECREF): New static inline function.
205 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
207 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
209 * breakpoints.c (detach_breakpoints): Do not
210 detach breakpoints locations with loc_type bp_loc_other.
212 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
214 Workaround Python 2.6.
215 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
218 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
220 Code cleanup: constification.
221 * solib.c (solib_ops): Make return type and ops variable type const.
222 (set_solib_ops): Make the new_ops parameter and ops variable const.
223 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
224 (solib_add, solib_keep_data_in_core, clear_solib)
225 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
226 (reload_shared_libraries, solib_global_lookup): Make the ops variable
228 * solib.h (set_solib_ops): Make the new_ops parameter const.
230 2013-05-21 Joel Brobecker <brobecker@adacore.com>
232 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
234 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
235 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
236 (SYSTEM_GDBINIT_FILES): New variables.
237 (all): Add stamp-system-gdbinit.
238 (stamp-system-gdbinit): New rule.
239 (clean-system-gdbinit, install-system-gdbinit)
240 (uninstall-system-gdbinit): New rules. Make them .PHONY.
241 (install-only): Add dependency on install-system-gdbinit.
242 (uninstall): Add dependency on uninstall-system-gdbinit.
243 (clean): Add dependency on clean-system-gdbinit.
244 * system-gdbinit/elinos.py: New file.
245 * system-gdbinit/wrs-linux.py: New file.
247 2013-05-21 Joel Brobecker <brobecker@adacore.com>
249 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
251 2013-05-21 Hui Zhu <hui@codesourcery.com>
253 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
254 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
255 * mi/mi-cmd-break.c (ctype.h): New include.
256 (gdb_obstack.h): New include.
257 (mi_argv_to_format, mi_cmd_break_insert_1): New.
258 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
259 (mi_cmd_dprintf_insert): New.
260 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
261 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
263 2013-05-20 Tom Tromey <tromey@redhat.com>
265 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
267 2013-05-20 Tom Tromey <tromey@redhat.com>
269 * python/py-value.c (valpy_get_dynamic_type): Simplify
270 dynamic_type assignment. Use Py_XINCREF.
272 2013-05-20 Tom Tromey <tromey@redhat.com>
274 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
276 2013-05-20 Tom Tromey <tromey@redhat.com>
278 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
279 (gdbpy_selected_frame): Move object-construction code
282 2013-05-20 Tom Tromey <tromey@redhat.com>
284 * python/py-arch.c (gdbpy_initialize_arch): Use
285 gdb_pymodule_addobject.
286 * python/py-block.c (gdbpy_initialize_blocks): Use
287 gdb_pymodule_addobject.
288 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
289 gdb_pymodule_addobject.
290 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
291 gdb_pymodule_addobject.
292 * python/py-event.c (gdbpy_initialize_event_generic): Use
293 gdb_pymodule_addobject.
294 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
295 gdb_pymodule_addobject.
296 * python/py-evts.c (add_new_registry): Use
297 gdb_pymodule_addobject.
298 (gdbpy_initialize_py_events): Likewise.
299 * python/py-finishbreakpoint.c
300 (gdbpy_initialize_finishbreakpoints): Use
301 gdb_pymodule_addobject.
302 * python/py-frame.c (gdbpy_initialize_frames): Use
303 gdb_pymodule_addobject.
304 * python/py-function.c (gdbpy_initialize_functions): Use
305 gdb_pymodule_addobject.
306 * python/py-inferior.c (gdbpy_initialize_inferior): Use
307 gdb_pymodule_addobject.
308 * python/py-infthread.c (gdbpy_initialize_thread): Use
309 gdb_pymodule_addobject.
310 * python/py-objfile.c (gdbpy_initialize_objfile): Use
311 gdb_pymodule_addobject.
312 * python/py-param.c (gdbpy_initialize_parameters): Use
313 gdb_pymodule_addobject.
314 * python/py-progspace.c (gdbpy_initialize_pspace): Use
315 gdb_pymodule_addobject.
316 * python/py-symbol.c (gdbpy_initialize_symbols): Use
317 gdb_pymodule_addobject.
318 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
319 gdb_pymodule_addobject.
320 * python/py-type.c (gdbpy_initialize_types): Use
321 gdb_pymodule_addobject.
322 * python/py-utils.c (gdb_pymodule_addobject): New function.
323 * python/py-value.c (gdbpy_initialize_values): Use
324 gdb_pymodule_addobject.
325 * python/python-internal.h (gdb_pymodule_addobject): Declare.
326 * python/python.c (_initialize_python): Use
327 gdb_pymodule_addobject.
329 2013-05-20 Tom Tromey <tromey@redhat.com>
331 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
332 * python/py-param.c (get_set_value, get_show_value): Use
334 * python/python.c (start_type_printers, apply_type_printers):
335 Use explicit decrefs.
337 2013-05-20 Tom Tromey <tromey@redhat.com>
339 * python/py-evts.c (gdbpy_initialize_py_events): Don't
342 2013-05-20 Tom Tromey <tromey@redhat.com>
344 * python/python.c (gdbpy_run_events): Decref the result
345 of PyObject_CallObject.
347 2013-05-20 Tom Tromey <tromey@redhat.com>
349 * python/py-symtab.c (set_sal): Use
350 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
351 (symtab_and_line_to_sal_object): Update.
353 2013-05-20 Tom Tromey <tromey@redhat.com>
355 * python/py-param.c (compute_enum_values): Decref 'item'.
357 2013-05-20 Tom Tromey <tromey@redhat.com>
359 * mi/mi-main.c: Include python-internal.h.
360 (mi_cmd_list_features): Check gdb_python_initialized.
361 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
362 (python_inferior_exit, python_new_objfile, add_thread_object)
363 (delete_thread_object, py_free_inferior): Check
364 gdb_python_initialized.
365 * python/py-prettyprint.c (apply_val_pretty_printer): Check
366 gdb_python_initialized.
367 * python/py-type.c (save_objfile_types): Check
368 gdb_python_initialized.
369 * python/python-internal.h (gdb_python_initialized): Declare.
370 * python/python.c (ensure_python_env): Throw exception if
371 Python not initialized.
372 (before_prompt_hook, source_python_script_for_objfile)
373 (start_type_printers, apply_type_printers,
374 free_type_printers): Check gdb_python_initialized.
375 * varobj.c (varobj_get_display_hint)
376 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
377 (install_new_value_visualizer, varobj_set_visualizer)
378 (value_get_print_value): Check gdb_python_initialized.
380 2013-05-20 Tom Tromey <tromey@redhat.com>
382 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
384 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
385 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
387 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
389 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
391 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
393 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
394 init function to return 'int'.
395 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
396 Return 'int'. Check errors.
397 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
399 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
400 Return 'int'. Check errors.
401 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
403 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
405 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
407 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
409 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
411 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
413 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
415 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
417 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
419 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
421 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
423 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
425 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
427 * python/python-internal.h (gdbpy_initialize_auto_load,
428 gdbpy_initialize_values, gdbpy_initialize_frames,
429 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
430 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
431 gdbpy_initialize_blocks, gdbpy_initialize_types,
432 gdbpy_initialize_functions, gdbpy_initialize_pspace,
433 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
434 gdbpy_initialize_finishbreakpoints,
435 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
436 gdbpy_initialize_thread, gdbpy_initialize_inferior,
437 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
438 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
439 gdbpy_initialize_signal_event,
440 gdbpy_initialize_breakpoint_event,
441 gdbpy_initialize_continue_event,
442 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
443 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
444 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
445 * python/python.c (gdb_python_initialized): New global.
446 (gdbpy_initialize_events): Return 'int'. Check errors.
447 (_initialize_python): Check errors. Set
448 gdb_python_initialized.
450 2013-05-20 Tom Tromey <tromey@redhat.com>
452 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
453 Decref the reslut of PyObject_CallMethod.
455 2013-05-20 Tom Tromey <tromey@redhat.com>
457 * python/py-event.c (gdbpy_initialize_event_generic): Return
458 early if PyType_Ready fails.
460 2013-05-20 Tom Tromey <tromey@redhat.com>
462 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
463 as 'default' in the switch.
465 2013-05-20 Tom Tromey <tromey@redhat.com>
467 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
468 get_addr_from_python calls out of TRY_CATCH.
469 (infpy_write_memory, infpy_search_memory): Likewise.
470 * python/py-utils.c (get_addr_from_python): Return negative
471 value on error. Use TRY_CATCH.
472 * python/python-internal.h (get_addr_from_python): Use
473 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
475 2013-05-20 Tom Tromey <tromey@redhat.com>
477 * python/py-event.c (evpy_emit_event): Decref the
478 result of PyObject_CallFunctionObjArgs.
480 2013-05-20 Tom Tromey <tromey@redhat.com>
482 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
485 2013-05-20 Tom Tromey <tromey@redhat.com>
487 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
489 2013-05-20 Tom Tromey <tromey@redhat.com>
491 * python/py-event.h (gdbpy_initialize_event_generic): Use
492 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
493 * python/py-evts.c (add_new_registry): Use
494 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
495 * python/python-internal.h
496 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
498 2013-05-20 Tom Tromey <tromey@redhat.com>
500 * python/py-arch.c (archpy_disassemble): Update.
501 * python/py-type.c (typy_get_composite, typy_lookup_typename)
502 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
503 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
504 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
506 (GDB_PY_HANDLE_EXCEPTION): Update.
507 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
509 2013-05-20 Tom Tromey <tromey@redhat.com>
511 * python/python-internal.h (events_object_type): Remove.
513 2013-05-20 Tom Tromey <tromey@redhat.com>
515 * python/py-event.h (evpy_emit_event): Use
516 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
517 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
520 2013-05-20 Tom Tromey <tromey@redhat.com>
522 * py-evtregistry.c (create_event_object): Decref
523 eventregistry_object if PyList_New fails.
525 2013-05-20 Tom Tromey <tromey@redhat.com>
527 * py-cmd.c (gdbpy_string_to_argv): Check result of
530 2013-05-20 Tom Tromey <tromey@redhat.com>
532 * python/python.c (before_prompt_hook): Add cleanup to
535 2013-05-20 Tom Tromey <tromey@redhat.com>
537 * python/py-function.c (fnpy_init): Decref result of
538 PyObject_GetAttrString.
540 2013-05-20 Tom Tromey <tromey@redhat.com>
542 * python/py-threadevent.c (get_event_thread): Use
543 CPYCHECKER_RETURNS_BORROWED_REF.
544 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
546 (pspace_to_pspace_object, objfile_to_objfile_object)
547 (find_thread_object): Use it.
549 2013-05-20 Tom Tromey <tromey@redhat.com>
551 * python/py-arch.c (arch_object_type): Use
552 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
553 * python/py-block.c (block_syms_iterator_object_type):
554 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
555 * python/py-bpevent.c (breakpoint_event_object_type):
556 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
557 * python/py-cmd.c (cmdpy_object_type): Use
558 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
559 * python/py-continueevent.c (continue_event_object_type):
560 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
561 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
562 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
563 * python/py-events.h (thread_event_object_type):
564 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
565 * python/py-evtregistry.c (eventregistry_object_type): Use
566 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
567 * python/py-exitedevent.c (exited_event_object_type):
568 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
569 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
570 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
571 * python/py-function.c (fnpy_object_type): Use
572 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
573 * python/py-inferior.c (inferior_object_type, membuf_object_type):
574 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
575 * python/py-infthread.c (thread_object_type): Use
576 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
577 * python/py-lazy-string.c (lazy_string_object_type):
578 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
579 * python/py-newobjfileevent.c (new_objfile_event_object_type):
580 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
581 * python/py-objfile.c (objfile_object_type): Use
582 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
583 * python/py-param.c (parmpy_object_type):
584 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
585 * python/py-progspace.c (pspace_object_type):
586 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
587 * python/py-signalevent.c (signal_event_object_type):
588 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
589 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
590 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
591 * python/py-type.c (type_object_type, field_object_type)
592 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
593 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
595 (value_object_type, block_object_type, symbol_object_type)
596 (event_object_type, stop_event_object_type, breakpoint_object_type)
597 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
599 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
601 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
602 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
604 2013-05-20 Doug Evans <dje@google.com>
606 When reading CU, stay in DWO. Be more tolerent of bad debug info.
608 * dwarf2read.c (struct dwarf2_per_cu_data): New member
609 reading_dwo_directly.
610 (struct signatured_type): New member dwo_unit.
611 (struct die_reader_specs): New member comp_dir.
612 (create_signatured_type_table_from_index): Use malloc for
613 all_type_units instead of objfile's obstack.
614 (create_all_type_units): Ditto.
615 (fill_in_sig_entry_from_dwo_entry): New function.
616 (add_type_unit): New function.
617 (lookup_dwo_signatured_type): New function.
618 (lookup_dwp_signatured_type): New function.
619 (lookup_signatured_type): New arg cu. All callers updated.
620 (init_cu_die_reader): Initialize comp_dir.
621 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
622 Change assert of matching type signatures to call error on mismatch.
623 (lookup_dwo_unit): Add assert.
624 (init_tu_and_read_dwo_dies): New function.
625 (init_cutu_and_read_dies): Call it.
626 (build_type_unit_groups): Handle case of no type unit groups created.
627 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
628 (lookup_dwo_cutu): Tweak complaint.
629 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
630 (dwarf2_per_objfile_free): Free all_type_units.
632 2013-05-20 Joel Brobecker <brobecker@adacore.com>
634 * windows-nat.c (handle_unload_dll): Add missing empty line.
636 2013-05-20 Joel Brobecker <brobecker@adacore.com>
638 * dwarf2read.c (prototyped_function_p): New function.
639 (read_subroutine_type): Use it.
641 2013-05-20 Joel Brobecker <brobecker@adacore.com>
643 * rs6000-aix-tdep.c: De-indent some example code provided
646 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
648 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
649 region is ok for a hardware watchpoint using the new ptrace interface
652 2013-05-17 Doug Evans <dje@google.com>
654 * NEWS: Mention new maintenance commands check-symtabs, and
655 expand-symtabs, and renamed check-psymtabs.
656 * psymtab.c (maintenance_check_psymtabs): Renamed from
657 maintenance_check_symtabs. Only process already-expanded symbol
659 (_initialize_psymtab): Update.
660 * symmisc.c (maintenance_check_symtabs): New function.
661 (maintenance_expand_name_matcher): New function
662 (maintenance_expand_file_matcher): New function
663 (maintenance_expand_symtabs): New function.
664 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
667 2013-05-17 Tom Tromey <tromey@redhat.com>
669 * python/py-inferior.c (infpy_read_memory): Don't call
670 PyErr_SetString if PyObject_New fails.
671 * python/py-frame.c (frame_info_to_frame_object): Don't call
672 PyErr_SetString if PyObject_New fails.
674 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
676 * acinclude.m4: Add check for dlopen in libdl.
677 * configure.ac: Ditto.
678 * configure: Regenerate.
680 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
682 * frame.c (frame_stash): Convert to htab.
683 (frame_addr_hash): New function.
684 (frame_addr_hash_eq): New function.
685 (frame_stash_create): Convert function to create
687 (frame_stash_add): Convert function to add an entry to a hash
689 (frame_stash_find): Convert function to search the hash table.
690 (frame_stash_invalidate): Convert function to empty the hash
692 (get_frame_id): Only add to stash if a frame_id is created.
693 (_initialize_frame): Call frame_stash_create.
695 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
697 * configure.ac: Ensure MIG is available when building for GNU Hurd
699 * configure: Regenerate.
701 2013-05-16 Joel Brobecker <brobecker@adacore.com>
703 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
705 2013-05-16 Joel Brobecker <brobecker@adacore.com>
707 * ada-lang.c (ada_make_symbol_completion_list): Make sure
708 all cleanups are done before returning from this function.
710 2013-05-15 Joel Brobecker <brobecker@adacore.com>
712 * utils.h: #include "exceptions.h".
713 (enum errors): Remove partial declaration.
715 2013-05-15 Joel Brobecker <brobecker@adacore.com>
717 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
718 * gdbarch.h, gdbarch.c: Regenerate.
719 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
722 * rs6000-aix-tdep.h: New file.
723 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
724 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
726 (struct field_info, struct ld_info_desc): New types.
727 (ld_info32_desc, ld_info64_desc): New static constants.
728 (struct ld_info): New type.
729 (rs6000_aix_extract_ld_info): New function.
730 (rs6000_aix_shared_library_to_xml): Likewise.
731 (rs6000_aix_ld_info_to_xml): Likewise.
732 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
733 (rs6000_aix_init_osabi): Add call to
734 set_gdbarch_core_xfer_shared_libraries_aix.
735 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
736 Remove "xml-utils.h" include.
737 (LdInfo): Delete typedef.
738 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
740 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
741 Adjust code accordingly.
742 (rs6000_core_ldinfo): Delete, folded into
743 rs6000_aix_core_xfer_shared_libraries_aix.
744 (rs6000_xfer_shared_library): Delete.
745 (rs6000_xfer_shared_libraries): Reimplement.
747 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
749 * record.c (record_goto_cmdlist): New.
750 (cmd_record_goto): Split into this ...
751 (cmd_record_goto_begin): ... this
752 (cmd_record_goto_end): ... and this.
753 (_initialize_record): Change "record goto" to prefix command.
754 Add commands for "record goto begin" and "record goto end".
755 Add an alias for "record goto start" to "record goto begin".
757 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
759 * linespec.c (convert_linespec_to_sals): New comment for
760 SOURCE_FILENAME assignment.
762 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
764 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
767 2013-05-14 Tom Tromey <tromey@redhat.com>
769 * eval.c (parse_and_eval_long): Make 'exp' const.
770 * value.h (parse_and_eval_long): Update.
772 2013-05-14 Tom Tromey <tromey@redhat.com>
774 * ui-file.c (gdb_fopen): Make arguments const.
775 * ui-file.h (gdb_fopen): Make arguments const.
777 2013-05-14 Tom Tromey <tromey@redhat.com>
779 * remote.c (remote_set_trace_notes): Make arguments const.
780 * target.c (update_current_target): Update cast.
781 * target.h (to_set_trace_notes): Make arguments const.
783 2013-05-14 Tom Tromey <tromey@redhat.com>
785 * go32-nat.c (go32_terminal_info): Make 'args' const.
786 * inferior.h (child_terminal_info): Update.
787 * inflow.c (child_terminal_info): Make 'args' const.
788 * target.c (default_terminal_info): Make 'args' const.
789 (debug_to_terminal_save_ours): Likewise.
790 * target.h (struct target_ops) <to_terminal_info>: Make argument
793 2013-05-13 Tom Tromey <tromey@redhat.com>
795 * gcore.c (create_gcore_bfd): Make 'filename' const.
796 * gcore.h (create_gcore_bfd): Make 'filename' const.
797 * record-full.c (record_full_save): Make 'recfilename' const.
798 * target.c (target_save_record): Make 'filename' const.
799 * target.h (struct target_ops) <to_save_record>: Make 'filename'
801 (target_save_record): Likewise.
803 2013-05-13 Tom Tromey <tromey@redhat.com>
806 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
807 ranges section has been read.
809 2013-05-13 Tom Tromey <tromey@redhat.com>
812 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
813 STRUCTOP_PTR>: Return a not_lval value for
814 EVAL_AVOID_SIDE_EFFECTS.
815 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
816 for EVAL_AVOID_SIDE_EFFECTS.
818 2013-05-13 Joel Brobecker <brobecker@adacore.com>
820 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
821 floating point registers to register type before storing
823 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
826 2013-05-10 Joel Brobecker <brobecker@adacore.com>
827 Tom Tromey <tromey@redhat.com>
829 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
831 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
833 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
834 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
835 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
836 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
838 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
839 Tom Tromey <tromey@redhat.com>
842 * configure: Rebuild.
843 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
846 2013-05-10 Pedro Alves <palves@redhat.com>
848 * remote.c (_initialize_remote): Fix spelling of
849 qXfer:traceframe-info:read packet in packet config command.
851 2013-05-10 David Taylor <dtaylor@emc.com>
855 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
856 "QTro" at start of packet.
858 2013-05-10 Joel Brobecker <brobecker@adacore.com>
860 * solib-aix.c (solib_aix_relocate_section_addresses):
861 For the .bss section action, apply the same offset as
864 2013-05-10 Joel Brobecker <brobecker@adacore.com>
866 * solib-aix.c (solib_aix_relocate_section_addresses):
867 Remove FIXME comment.
869 2013-05-10 Joel Brobecker <brobecker@adacore.com>
872 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
873 New functions, directly copied from sparc-sol-thread.c.
874 * sparc-sol-thread.c: Delete.
875 * configure.ac: Remove code handling sparc-solaris-thread.c.
876 * configure: Regenerate.
878 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
880 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
882 (backtrace_command): Add "no-filters" option parsing.
883 (_initialize_stack): Alter help to reflect "no-filters" option.
884 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
885 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
886 (py-frame.o): Add target
887 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
889 * python/python.h: Add new frame filter constants, and flag enum.
890 (apply_frame_filter): Add definition.
891 * python/python.c (apply_frame_filter): New non-Python
893 * python/py-utils.c (py_xdecref): New function.
894 (make_cleanup_py_xdecref): Ditto.
895 * python/py-objfile.c: Declare frame_filters dictionary.
896 (objfpy_dealloc): Add frame_filters dealloc.
897 (objfpy_new): Initialize frame_filters attribute.
898 (objfile_to_objfile_object): Ditto.
899 (objfpy_get_frame_filters): New function.
900 (objfpy_set_frame_filters): New function.
901 * python/py-progspace.c: Declare frame_filters dictionary.
902 (pspy_dealloc): Add frame_filters dealloc.
903 (pspy_new): Initialize frame_filters attribute.
904 (pspacee_to_pspace_object): Ditto.
905 (pspy_get_frame_filters): New function.
906 (pspy_set_frame_filters): New function.
907 * python/py-framefilter.c: New file.
908 * python/lib/gdb/command/frame_filters.py: New file.
909 * python/lib/gdb/frames.py: New file.
910 * python/lib/gdb/__init__.py: Initialize global frame_filters
912 * python/lib/gdb/FrameDecorator.py: New file.
913 * python/lib/gdb/FrameIterator.py: New file.
914 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
915 * mi/mi-cmds.h: Declare.
916 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
917 --no-frame-filter logic, and Python frame filter logic.
918 (stack_enable_frame_filters): New function.
919 (parse_no_frame_option): Ditto.
920 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
922 (mi_cmd_stack_list_locals): Ditto.
923 (mi_cmd_stack_list_args): Ditto.
924 (mi_cmd_stack_list_variables): Ditto.
925 * NEWS: Add frame filter note.
927 2013-05-09 Doug Evans <dje@google.com>
929 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
931 (syms_from_objfile): Ditto. Make static.
932 (symbol_file_add_with_addrs): Renamed from
933 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
934 num_offsets. All callers updated.
935 * symfile.h (syms_from_objfile): Delete.
937 * symfile.c (decrement_reading_symtab): Add assert.
938 (increment_reading_symtab): Ditto.
940 2013-05-09 Joel Brobecker <brobecker@adacore.com>
942 * source.c (forward_search_command): Replace call to getc
944 (reverse_search_command): Likewise.
946 2013-05-08 Doug Evans <dje@google.com>
948 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
951 2013-05-08 Joel Brobecker <brobecker@adacore.com>
953 * sol-thread.c (info_cb): Factorize the code a little.
955 2013-05-08 Joel Brobecker <brobecker@adacore.com>
957 * sol-thread.c (info_cb): Rework the output of the "maintenance
958 info sol-threads" command a bit.
960 2013-05-08 Joel Brobecker <brobecker@adacore.com>
962 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
963 Replace ti.ti_startfunc by ti.ti_pc.
965 2013-05-08 Joel Brobecker <brobecker@adacore.com>
967 * solib-aix.c (solib_aix_free_library_list): New function
968 for the case where HAVE_LIBEXPAT is not defined.
970 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
972 PR breakpoints/15413:
973 * breakpoint.c (condition_completer): Simplify the code to
974 disconsider multiple locations of breakpoints when completing the
977 2013-05-07 Pierre Muller <muller@sourceware.org>
979 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
980 instead of <sys/wait.h>.
982 2013-05-07 Pierre Muller <muller@sourceware.org>
984 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
985 trailing new line from warning message.
987 2013-05-07 Pierre Muller <muller@sourceware.org>
989 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
990 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
992 2013-05-07 Joel Brobecker <brobecker@adacore.com>
994 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
995 error message (ARI fix).
997 2013-05-07 Joel Brobecker <brobecker@adacore.com>
999 * features/library-list-aix.dtd: Replace library-list by
1001 * rs6000-nat.c: Replace library-list by library-list-aix
1003 * solib-aix.c: Likewise.
1005 2013-05-07 Joel Brobecker <brobecker@adacore.com>
1007 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
1008 Renames TARGET_OBJECT_AIX_LIBRARIES.
1009 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
1010 TARGET_OBJECT_LIBRARIES_AIX throughout.
1011 * solib-aix.c: Likwise.
1013 2013-05-07 Yao Qi <yao@codesourcery.com>
1015 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
1016 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
1018 2013-05-07 Yao Qi <yao@codesourcery.com>
1020 * solib-dsbt.c (enable_break): Declare.
1021 (dsbt_current_sos): Remove call to enable_break2.
1022 (enable_break2): Rename to enable_break. Set solib breakpoint
1023 on '_dl_debug_state'.
1024 (enable_break): Remove.
1026 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
1028 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
1029 debug state prior to replicating existing hardware watchpoints or
1032 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1034 * gcore.c (gcore_create_callback): Ignore sections with
1035 separate_debug_objfile_backlink != NULL.
1037 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
1038 Andrew Jenner <andrew@codesourcery.com>
1039 Chung-Lin Tang <cltang@codesourcery.com>
1040 Julian Brown <julian@codesourcery.com>
1042 Based on the nios2-elf port from Altera Corporation.
1044 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
1046 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
1047 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
1048 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
1049 * nios2-tdep.h: New.
1050 * nios2-tdep.c: New.
1051 * nios2-linux-tdep.c: New.
1052 * features/Makefile (WHICH): Add nios2-linux.
1053 (nios2-linux-expedite): Set.
1054 * features/nios2-cpu.xml: New.
1055 * features/nios2.xml: New.
1056 * features/nios2-linux.xml: New.
1057 * features/nios2.c: New (autogenerated).
1058 * features/nios2-linux.c: New (autogenerated).
1059 * regformats/nios2-linux.dat: New (autogenerated).
1060 * NEWS (Changes since GDB 7.6): Add new Nios II targets
1063 2013-05-06 Doug Evans <dje@google.com>
1065 * symfile.c: Whitespace cleanup.
1067 * solist.h (struct target_so_ops): New member clear_so.
1068 * solib-svr4.c (svr4_clear_so): New function.
1069 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
1070 * solib.c (clear_so): Renamed from free_so_symbols.
1071 All callers updated. Call target clear_so if it exists.
1073 2013-05-06 Tom Tromey <tromey@redhat.com>
1075 * ada-lang.c (ada_value_primitive_packed_val): Don't
1077 * value.c (set_value_parent): Incref the new parent and decref
1079 (value_copy, value_primitive_field): Use set_value_parent.
1081 2013-05-06 Tom Tromey <tromey@redhat.com>
1083 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
1084 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
1086 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
1087 * dwarf2read.c (write_constant_as_bytes)
1088 (dwarf2_fetch_constant_bytes): New functions.
1090 2013-05-06 Tom Tromey <tromey@redhat.com>
1092 * dwarf2read.c (dwarf2_const_value_data): Remove unused
1094 (dwarf2_const_value_attr): Update.
1096 2013-05-06 Tom Tromey <tromey@redhat.com>
1098 * somread.c (som_symfile_offsets): Add 'const' to addrs.
1099 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
1100 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
1103 2013-05-06 Tom Tromey <tromey@redhat.com>
1105 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
1108 2013-05-06 Doug Evans <dje@google.com>
1110 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
1111 * stabsread.h (process_one_symbol): Update declaration.
1112 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
1113 * elfread.c (elf_symfile_relocate_probe): Ditto.
1114 * psymtab.c (relocate_psymtabs): Ditto.
1115 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
1116 (objfile_relocate): Ditto.
1117 * objfiles.h (objfile_relocate): Update declaration.
1118 * symfile.c (relative_addr_info_to_section_offsets): Constify
1120 (default_symfile_offsets): Ditto.
1121 (syms_from_objfile_1): Constify offsets parameter.
1122 (syms_from_objfile): Ditto.
1123 (symbol_file_add_with_addrs_or_offsets): Ditto.
1124 (symfile_map_offsets_to_segments): Constify data parameter.
1125 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
1126 delta parameters of member relocate.
1127 (struct sym_probe_fns): Constify new_offsets,
1128 delta parameters of member sym_relocate_probe.
1129 (struct sym_fns): Constify section_addr_info parameter of member
1131 (relative_addr_info_to_section_offsets): Update declaration.
1132 (default_symfile_offsets): Ditto.
1133 (syms_from_objfile): Ditto.
1134 (symfile_map_offsets_to_segments): Ditto.
1136 * symfile.c (syms_from_objfile_1): Use correct section count when
1137 objfile->sf == NULL.
1139 2013-05-06 Mike Frysinger <vapier@gentoo.org>
1141 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
1143 2013-05-06 Doug Evans <dje@google.com>
1145 * psympriv.h (struct partial_symtab): Augment comment for member
1148 2013-05-06 Joel Brobecker <brobecker@adacore.com>
1150 Reimplement shared library support on ppc-aix...
1151 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
1152 * features/library-list-aix.dtd: New file.
1153 * solib-aix.h, solib-aix.c: New file.
1154 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
1155 (rs6000_find_toc_address_hook): Delete.
1156 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
1157 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
1158 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
1160 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
1161 (vmap_symtab, fixup_breakpoints): Delete.
1162 (rs6000_xfer_shared_libraries): New function.
1163 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
1164 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
1165 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
1166 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
1167 (rs6000_xfer_shared_library): New function.
1168 (find_toc_address): Delete.
1169 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
1170 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
1171 * xcoffread.c (record_minimal_symbol): Reloate symbol address
1172 before creating minimal symbol. Adjust function description
1174 (scan_xcoff_symtab): Replace call to
1175 prim_record_minimal_symbol_and_info by call to
1176 record_minimal_symbol.
1177 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
1178 around default_symfile_offsets.
1179 * configure.tgt: Add solib-aix.o to gdb_target_obs for
1180 powerpc-aix targets.
1181 * config/rs6000/nm-rs6000.h: Delete.
1182 * config/powerpc/aix.mh (NAT_FILE): Delete.
1183 (NATDEPFILES): Remove xcoffsolib.o.
1184 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
1185 (ALL_TARGET_OBS): Add solib-aix.o.
1186 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
1187 config/rs6000/nm-rs6000.h. Add solib-aix.h.
1188 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
1189 * xcoffsolib.h, xcoffsolib.c: Delete.
1191 * solib.c (reload_shared_libraries): Remove reference to
1192 SOLIB_CREATE_INFERIOR_HOOK.
1193 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
1194 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
1195 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
1197 * corelow.c (deprecated_core_resize_section_table): Delete.
1198 * exec.c: Remove include of xcoffsolib.h".
1199 (map_vmap, vmap): Delete.
1200 (exec_close_1): Remove references to vmap.
1201 (exec_file_attach): Remove vmap handling code, and reference
1202 to DEPRECATED_IBM6000_TARGET.
1203 (bfdsec_to_vmap): Delete.
1204 (exec_files_info): Remove block of code handling VMAP.
1205 * infcmd.c (post_create_inferior): Remove reference to
1206 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
1207 * infrun.c (follow_exec): Remove reference to
1208 SOLIB_CREATE_INFERIOR_HOOK.
1209 * stack.c (print_frame): Remove reference to PC_SOLIB.
1210 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
1211 (dsbt_relocate_main_executable): Likewise.
1212 * solib-frv.c (frv_current_sos): Likewise.
1214 2013-05-06 Joel Brobecker <brobecker@adacore.com>
1216 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
1217 to target_write_memory and target_read_memory.
1219 2013-05-06 Joel Brobecker <brobecker@adacore.com>
1221 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
1222 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
1224 2013-05-06 Joel Brobecker <brobecker@adacore.com>
1226 * darwin-nat.c: Replace all "%x" instances in format strings
1227 into "0x%x" throughout.
1229 2013-05-06 Joel Brobecker <brobecker@adacore.com>
1231 * darwin-nat.c (darwin_mourn_inferior): Replace call to
1232 gdb_assert by call to MACH_CHECK_ERROR.
1233 (darwin_attach_pid): Raise an error rather than a failed
1234 assertion when various system calls failed. Report a warning
1235 instead of raising a failed assertion when PREV_NOT is not NULL
1236 after call to mach_port_request_notification.
1237 (darwin_ptrace_me): Raise an error rather than a failed
1238 assertion when read returns nonzero.
1240 2013-05-06 Joel Brobecker <brobecker@adacore.com>
1242 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
1244 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1246 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
1248 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1250 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
1251 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
1252 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
1253 a stale cleanup. Fix double free of NAME.
1255 2013-05-04 Eli Zaretskii <eliz@gnu.org>
1257 * windows-nat.c (windows_delete_thread): Accept an additional
1258 argument, the thread's exit code, and announce thread death when
1259 print_thread_events is non-zero and we are deleting a thread that
1260 is not the main thread.
1261 (get_windows_debug_event): Pass thread exit code to
1262 windows_delete_thread.
1264 2013-05-03 Kevin Buettner <kevinb@redhat.com>
1266 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
1267 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
1268 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
1269 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
1270 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
1271 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
1272 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
1273 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
1274 (gdbarch_tdep): New struct.
1275 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
1277 (v850e3v5_register_name): New function.
1278 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
1279 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
1280 code handling the struct return conventions for the RH850 ABI.
1282 (v850_eight_byte_align_p): New function.
1283 (v850_push_call_dummy): Push structs by value, not by reference
1284 for the RH850 ABI. Add support for eight byte alignment.
1285 (v850_dbtrap_breakpoint_from_pc): New function.
1286 (v850_gdbarch_init): Add ABI detection code. Register
1287 v850e3v5_register_name for the v850e3v5 architecture. Set the
1288 number of registers for v850e3v5. Register
1289 v850_dbtrap_breakpoint_from_pc as appropriate.
1290 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
1292 2013-05-03 Doug Evans <dje@google.com>
1294 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
1295 of bfd_count_sections.
1296 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
1297 * symfile.c (default_symfile_offsets): Ditto.
1298 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
1299 one entry, not bfd_count_sections entries.
1301 2013-05-03 Kevin Buettner <kevinb@redhat.com>
1303 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
1304 `save' and `restore' register groups. Don't include SPL
1305 or SPH in these groups.
1306 (rl78_dwarf_reg_to_regnum): Adjust mapping for
1307 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
1308 RL78_ES_REGNUM, and RL78_CS_REGNUM.
1309 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
1310 dwarf2_append_unwinders().
1312 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1314 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
1315 ignore SIGINT and SIGTRAP in case these internal signals are
1318 2013-05-01 Joel Brobecker <brobecker@adacore.com>
1320 * darwin-nat.c (darwin_read_write_inferior): Change types
1321 of parameters rdaddr and wraddr to "gdb_byte *". Change type
1322 of copy_count to "mach_msg_type_number_t".
1323 (darwin_read_dyld_info): Change type of parameter
1324 rdaddr to "gdb_byte *".
1326 2013-05-01 Joel Brobecker <brobecker@adacore.com>
1328 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
1329 of &info->load_map from "char *" to "gdb_byte *".
1331 2013-05-01 Joel Brobecker <brobecker@adacore.com>
1333 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
1334 from "char *" to "gdb_byte *".
1335 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
1337 2013-04-30 Doug Evans <dje@google.com>
1339 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
1340 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
1341 DWO stub. If DWO isn't found, just use stub.
1342 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
1344 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
1345 calling init_cutu_and_read_dies.
1347 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
1349 * target-descriptions.c (maint_print_c_tdesc_cmd):
1350 Add case to parse structures as register types and
1353 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
1355 * MAINTAINERS (Write After Approval): Add myself to the list.
1357 2013-04-30 Joel Brobecker <brobecker@adacore.com>
1359 * sol-thread.c (rw_common): Change type of parameter "buf"
1361 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
1362 rw_common to "gdb_byte *" instead of "char *".
1364 2013-04-30 Joel Brobecker <brobecker@adacore.com>
1366 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
1367 of local variable msym to const struct bound_minimal_symbol.
1368 Adjust use accordingly.
1369 [ti.ti_state == TD_THR_SLEEP]: Likewise.
1371 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
1373 * i386gnu-nat.c (CREG_OFFSET): New macro.
1374 (creg_offset): New array.
1375 (CREG_ADDR): Use creg_offset instead of reg_offset.
1377 2013-04-30 Joel Brobecker <brobecker@adacore.com>
1379 * mep-tdep.c (mep_write_pc): Delete.
1380 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
1381 Add call to set_gdbarch_pc_regnum.
1383 2013-04-30 Joel Brobecker <brobecker@adacore.com>
1385 * common/filestuff.c: Replace #include <dirent.h> by
1386 #include "gdb_dirent.h".
1388 2013-04-30 Joel Brobecker <brobecker@adacore.com>
1390 * common/filestuff.c: Replace #include <sys/stat.h> by
1391 #include "gdb_stat.h".
1393 2013-04-29 Pierre Muller <muller@sourceware.org>
1395 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
1396 editCase function rule.
1397 (get_DW_AT_signature_type): Likewise.
1399 2013-04-29 Joel Brobecker <brobecker@adacore.com>
1401 * m32r-tdep.c (m32r_write_pc): Delete.
1402 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
1403 Add call to set_gdbarch_pc_regnum.
1405 2013-04-29 Pierre Muller <muller@sourceware.org>
1407 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
1409 2013-04-29 Joel Brobecker <brobecker@adacore.com>
1411 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
1413 2013-04-28 Yao Qi <yao@codesourcery.com>
1415 * solib-dsbt.c (fetch_loadmap): Re-indent.
1416 (displacement_from_map, enable_break2): Likewise.
1417 (dsbt_relocate_section_addresses): Likewise.
1419 2013-04-26 Joel Brobecker <brobecker@adacore.com>
1423 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
1426 * dwarf2read.c (process_full_comp_unit): Always create a static
1429 2013-04-25 Hui Zhu <hui@codesourcery.com>
1431 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
1432 to loc->cmd_bytecode.
1434 2013-04-24 Doug Evans <dje@google.com>
1436 * dwarf2read.c (setup_type_unit_groups): Fix comment.
1438 2013-04-22 Keith Seitz <keiths@redhat.com>
1440 * tracepoint.c (trace_save): Call the writer's start method.
1442 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
1445 * cli/cli-decode.c (lookup_command): Show an error if there is no space
1448 2013-04-23 Tom Tromey <tromey@redhat.com>
1450 * common/filestuff.c: Check USE_WIN32API before including
1452 (HAVE_F_GETFD): New define.
1453 (mark_cloexec): Check HAVE_F_GETFD.
1454 (gdb_open_cloexec): Change 'mode' to unsigned long.
1455 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
1456 (gdb_pipe_cloexec): Check HAVE_PIPE.
1457 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
1460 2013-04-23 Hui Zhu <hui@codesourcery.com>
1463 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
1465 2013-04-23 Hui Zhu <hui@codesourcery.com>
1468 * breakpoint.c (dprintf_print_recreate): New.
1469 (save_breakpoints): Let it not save dprintf commands.
1470 (initialize_breakpoint_ops): Set dprintf_print_recreate.
1472 2013-04-22 Tom Tromey <tromey@redhat.com>
1475 * Makefile.in (SFILES): Add filestuff.c
1476 (COMMON_OBS): Add filestuff.o.
1477 (filestuff.o): New target.
1478 * auto-load.c (auto_load_objfile_script_1): Use
1480 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
1481 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
1482 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
1483 * common/agent.c (gdb_connect_sync_socket): Use
1485 * common/filestuff.c: New file.
1486 * common/filestuff.h: New file.
1487 * common/linux-osdata.c (linux_common_core_of_thread)
1488 (command_from_pid, commandline_from_pid, print_source_lines)
1489 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
1490 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
1492 * common/linux-procfs.c (linux_proc_get_int)
1493 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
1494 * config.in, configure: Rebuild.
1495 * configure.ac: Don't check for sys/socket.h. Check for
1497 * corelow.c (core_open): Use gdb_open_cloexec.
1498 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
1499 * fork-child.c (fork_inferior): Call close_most_fds.
1500 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
1501 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
1502 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
1503 Use gdb_fopen_cloexec.
1504 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
1506 (linux_async_pipe): Use gdb_pipe_cloexec.
1507 * remote-fileio.c (remote_fileio_func_open): Use
1509 * remote.c (remote_file_put, remote_file_get): Use
1511 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
1513 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
1514 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
1515 * solib.c (solib_find): Use gdb_open_cloexec.
1516 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
1517 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
1518 (tfile_open): Use gdb_open_cloexec.
1519 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
1520 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
1521 * xml-support.c (xml_fetch_content_from_file): Use
1523 * main.c (captured_main): Call notice_open_fds.
1525 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
1527 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
1528 'char *' to 'gdb_byte *'.
1529 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
1532 2013-04-22 Yao Qi <yao@codesourcery.com>
1534 * infrun.c: Fix typo in comment.
1536 2013-04-22 Andrew Haley <aph@redhat.com>
1538 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
1541 2013-04-20 Yao Qi <yao@codesourcery.com>
1543 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
1544 'char *' to 'gdb_byte *'. Cast the return value of
1545 'bt_ctf_get_char_array' to 'gdb_byte *'.
1547 2013-04-19 Pedro Alves <palves@redhat.com>
1549 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
1551 * configure: Regenerate.
1553 2013-04-19 Pedro Alves <palves@redhat.com>
1555 * ser-tcp.c (net_read_prim): Cast second argument to recv to
1558 2013-04-19 Pedro Alves <palves@redhat.com>
1560 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
1561 Change type of 'myaddr' parameter to gdb_byte pointer.
1562 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
1563 to 'long long' pointer instead of to 'unsigned long long'.
1564 (monitor_write_memory_block, monitor_read_memory_single)
1565 (monitor_read_memory): Change type of 'myaddr' parameter to
1568 2013-04-19 Pedro Alves <palves@redhat.com>
1570 * record.c (validate_history_size): Make parameter 'setting'
1573 2013-04-19 Pedro Alves <palves@redhat.com>
1575 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
1578 2013-04-19 Pedro Alves <palves@redhat.com>
1580 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
1583 2013-04-19 Pedro Alves <palves@redhat.com>
1585 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
1586 * ada-tasks.c (read_fat_string_value): Likewise.
1588 2013-04-19 Pedro Alves <palves@redhat.com>
1590 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
1591 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
1592 'offset', and adjust.
1594 2013-04-19 Pedro Alves <palves@redhat.com>
1596 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
1597 (read_index_from_section): Add cast to 'char *'.
1599 2013-04-19 Pedro Alves <palves@redhat.com>
1601 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
1603 2013-04-19 Pedro Alves <palves@redhat.com>
1605 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
1607 2013-04-19 Pedro Alves <palves@redhat.com>
1609 * record-full.c (record_full_get_bookmark): Change local 'ret'
1610 type to char * and add cast to gdb_byte *.
1611 (record_full_goto_bookmark): Handle 'bookmark' argument as a
1613 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
1615 2013-04-19 Pedro Alves <palves@redhat.com>
1617 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
1618 * python/py-prettyprint.c (print_string_repr): Change type of
1619 'output' local to char *. Add cast to gdb_byte * in
1620 LA_PRINT_STRING call.
1621 (print_children): Change type of 'output' local to char *.
1622 * python/py-value.c (valpy_string): Add cast to const char * in
1623 PyUnicode_Decode call.
1625 2013-04-19 Pedro Alves <palves@redhat.com>
1627 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
1628 and change its type to 'const char *'. Adjust.
1629 (mips_send_packet): Add cast to 'char *', and remove cast to
1631 (mips_receive_packet): Remove cast to 'unsigned char *'.
1632 (mips_load_srec): Use bfd_byte.
1633 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
1634 (pmon_checkset): Make 'value' parameter unsigned.
1636 2013-04-19 Pedro Alves <palves@redhat.com>
1638 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
1640 2013-04-19 Pedro Alves <palves@redhat.com>
1642 * remote.c (remote_write_bytes_aux, compare_sections_command)
1644 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
1645 (remote_hostio_readlink, remote_bfd_iovec_pread)
1646 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
1647 binary buffer, and char when buffer is used as string.
1648 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
1649 (trace_save, tfile_open, traceframe_walk_blocks)
1650 (tfile_fetch_registers): Likewise.
1652 2013-04-19 Pedro Alves <palves@redhat.com>
1654 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
1655 buffer and size_t size. Adjust.
1656 * ser-base.h (ser_base_write): Adjust.
1657 * ser-go32.c (cnts): Change type to size_t.
1658 (dos_write): Change prototype -- take 'void *'
1659 buffer and size_t size. Adjust.
1660 (dos_info): Print elements of 'cnts' as unsigned long.
1661 * serial.c (serial_write): Likewise.
1662 * serial.h (serial_write): Adjust.
1663 (struct serial_ops) <write>: Change prototype -- take 'void *'
1664 buffer and size_t size. Adjust.
1666 2013-04-19 Pedro Alves <palves@redhat.com>
1668 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
1670 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
1672 2013-04-19 Pedro Alves <palves@redhat.com>
1674 * alpha-tdep.c (alpha_extract_return_value): Use
1675 regcache_cooked_read_unsigned to read 'v0'.
1677 2013-04-19 Pedro Alves <palves@redhat.com>
1679 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
1680 parameters 'at', 'as' and 'offset' to uint32_t.
1682 2013-04-19 Pedro Alves <palves@redhat.com>
1684 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
1685 'is64' to signed 'int'.
1687 2013-04-19 Pedro Alves <palves@redhat.com>
1689 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
1692 2013-04-19 Pedro Alves <palves@redhat.com>
1694 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
1695 'insnbuf' buffer type to unsigned int[].
1697 2013-04-19 Pedro Alves <palves@redhat.com>
1699 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
1701 2013-04-19 Pedro Alves <palves@redhat.com>
1703 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
1706 2013-04-19 Pedro Alves <palves@redhat.com>
1708 * alpha-tdep.c (heuristic_fence_post): Change type to int.
1709 (alpha_heuristic_proc_start): Adjust to check -1 instead of
1711 * mips-tdep.c (heuristic_fence_post): Change type to int.
1712 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
1714 2013-04-19 Pedro Alves <palves@redhat.com>
1716 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
1717 (struct gdbarch_tdep) <cris_version>: Make unsigned.
1718 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
1720 2013-04-19 Pedro Alves <palves@redhat.com>
1722 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
1723 it to get a string view of the byte buffer.
1724 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
1725 type to gdb_byte *. Adjust.
1726 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
1727 Change local to char *.
1728 * solib-darwin.c (find_program_interpreter): Change return type to
1730 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
1731 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
1732 * solib-frv.c (enable_break2): Change local 'buf' to char *.
1733 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
1734 * solib-svr4.c (find_program_interpreter): Change return type to
1736 (enable_break): Change local 'interp_name' to char *.
1737 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
1738 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
1739 (spu_pseudo_register_write_spu): Use char for string buffer.
1741 (info_spu_event_command, info_spu_signal_command): Add casts to
1744 2013-04-19 Pedro Alves <palves@redhat.com>
1746 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
1748 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
1749 * ada-lang.c (ada_value_assign): Use gdb_byte.
1750 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
1751 (alphanbsd_sigtramp_offset): Use gdb_byte.
1752 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
1753 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
1754 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
1755 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
1756 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
1757 * arm-tdep.c (arm_stub_unwind_sniffer)
1758 (arm_displaced_init_closure): Use gdb_byte.
1759 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
1760 (arm_default_thumb_le_breakpoint)
1761 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
1762 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
1763 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
1764 * arm-wince-tdep.c (arm_wince_le_breakpoint)
1765 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
1766 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
1767 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
1768 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
1769 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
1770 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
1771 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
1772 (cris_store_return_value, cris_extract_return_value): Use
1774 (constraint): Change type of parameter to char * from signed
1775 char*. Use gdb_byte.
1776 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
1777 of local buffer to gdb_byte *.
1778 * dwarf2read.c (read_index_from_section): Use gdb_byte.
1779 (create_dwp_hash_table): Change type of locals to gdb_byte *.
1780 (add_address_entry): Change type of local buffer to gdb_byte[].
1781 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
1782 (frv_push_dummy_call): Use gdb_byte.
1783 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
1784 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
1785 (hppa_hpux_supply_save_state): Use gdb_byte.
1786 * hppa-tdep.c (hppa32_push_dummy_call)
1787 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
1788 * ia64-tdep.c (extract_bit_field, replace_bit_field)
1789 (slotN_contents, replace_slotN_contents): Change type of parameter
1791 (fetch_instruction, ia64_pseudo_register_write)
1792 (ia64_register_to_value, ia64_value_to_register)
1793 (ia64_extract_return_value, ia64_store_return_value)
1794 (ia64_push_dummy_call): Use gdb_byte.
1795 * m32c-tdep.c (m32c_return_value): Remove cast.
1796 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
1797 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
1799 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
1800 * mn10300-tdep.c (mn10300_store_return_value)
1801 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
1803 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
1804 (moxie_process_record): Remove casts.
1805 * ppc-ravenscar-thread.c (supply_register_at_address)
1806 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
1807 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
1808 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
1809 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
1810 * remote.c (compare_sections_command): Use gdb_byte.
1811 * score-tdep.c (score7_free_memblock): Change type of parameter to
1813 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
1814 gdb_byte *. Use gdb_byte.
1815 (sh_push_dummy_call_fpu): Use gdb_byte.
1816 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
1817 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
1818 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
1819 Change parameter type to 'gdb_byte *'. Use gdb_byte.
1820 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
1821 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
1822 (sh64_store_return_value, sh64_register_convert_to_virtual):
1823 Change parameter type to 'gdb_byte *'. Use gdb_byte.
1824 (sh64_pseudo_register_write): Use gdb_byte.
1825 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
1826 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
1828 (irix_current_sos): Use gdb_byte.
1829 * solib-som.c (som_current_sos): Use gdb_byte.
1830 * sparc-ravenscar-thread.c (supply_register_at_address)
1831 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
1832 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
1833 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
1834 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
1836 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
1838 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
1839 * xstormy16-tdep.c (xstormy16_extract_return_value)
1840 (xstormy16_store_return_value): Change parameter type to
1841 'gdb_byte *'. Adjust.
1842 (xstormy16_push_dummy_call): Use gdb_byte.
1843 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
1844 (call0_analyze_prologue, execute_code): Use gdb_byte.
1846 2013-04-19 Vladimir Kargov <kargov@gmail.com>
1847 Pedro Alves <palves@redhat.com>
1849 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
1852 2013-04-17 Doug Evans <dje@google.com>
1854 * dwarf2read.c (struct signatured_type): New member type.
1855 (struct attribute): Replace member signatured_type with signature.
1856 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
1857 (read_call_site_scope): Call follow_die_ref instead of
1858 follow_die_ref_or_sig.
1859 (read_structure_type): Rewrite handling of signatured types.
1860 (read_enumeration_type): Ditto.
1861 (read_attribute_value): Update.
1862 (build_error_marker_type): New function.
1863 (lookup_die_type): Add assert. Rewrite handling of signatured types.
1864 Don't call error for bad types, just build an error marker type.
1865 (dump_die_shallow): Update.
1866 (follow_die_sig_1): Renamed from follow_die_sig.
1867 Don't call error for bad types, instead return NULL.
1868 (follow_die_sig): New function.
1869 (get_signatured_type, get_DW_AT_signature_type): New functions.
1871 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
1873 * aarch64-tdep.c (aarch64_write_pc): Removed.
1874 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
1877 2013-04-17 Yao Qi <yao@codesourcery.com>
1879 * top.c (print_gdb_configuration): Print configure-time
1880 parameter on using libbabeltrace or not.
1882 2013-04-16 Pedro Alves <palves@redhat.com>
1884 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
1886 2013-04-16 Pedro Alves <palves@redhat.com>
1888 * common/glibc_thread_db.h: Update from upstream glibc
1889 (git 568035b7874a099087b77f7bba3e36a1173787b0).
1891 2013-04-16 Pedro Alves <palves@redhat.com>
1893 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
1894 * common/glibc_thread_db.h: ... this new file ...
1895 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
1897 2013-04-16 Will Newton <will.newton@gmail.com>
1898 Pedro Alves <palves@redhat.com>
1902 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
1903 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
1906 2013-04-16 Pedro Alves <palves@redhat.com>
1907 Eli Zaretskii <eliz@gnu.org>
1909 * NEWS: Mention "set foo unlimited".
1911 2013-04-15 Doug Evans <dje@google.com>
1913 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
1914 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
1915 (create_dwo_cu_reader): Renamed from
1916 create_dwo_debug_info_hash_table_reader.
1917 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
1918 Remove support for multiple CUs in a DWO file.
1919 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
1921 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
1923 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
1924 (create_dwo_in_dwp): Ditto.
1926 2013-04-15 Tom Tromey <tromey@redhat.com>
1928 * NEWS: Move recent entries into "since 7.6" section.
1930 2013-04-15 Tom Tromey <tromey@redhat.com>
1934 * break-catch-throw.c (struct exception_catchpoint)
1935 <exception_rx, pattern>: New fields.
1936 (fetch_probe_arguments, dtor_exception_catchpoint)
1937 (check_status_exception_catchpoint)
1938 (print_one_detail_exception_catchpoint): New functions.
1939 (handle_gnu_v3_exceptions): Add "except_rx" argument.
1940 Compile regular expression if needed.
1941 (extract_exception_regexp): New function.
1942 (catch_exception_command_1): Use extract_exception_regexp.
1943 (compute_exception): Use fetch_probe_arguments.
1944 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
1945 and check_status fields.
1946 * cp-abi.c (cplus_typename_from_type_info): New function.
1947 * cp-abi.h (cplus_typename_from_type_info): Declare.
1948 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
1949 * gdb_regex.h (compile_rx_or_error): Declare.
1950 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
1952 (init_gnuv3_ops): Set get_type_from_type_info field.
1953 * probe.c (compile_rx_or_error): Move...
1954 * utils.c (compile_rx_or_error): ... here.
1956 2013-04-15 Tom Tromey <tromey@redhat.com>
1960 * break-catch-throw.c (compute_exception): New function.
1961 (exception_funcs): New global.
1962 (_initialize_break_catch_throw): Create $_exception.
1963 * cp-abi.c (cplus_type_from_type_info): New function.
1964 * cp-abi.h (cplus_type_from_type_info): Declare.
1965 (struct cp_abi_ops) <get_type_from_type_info>: New field.
1966 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
1967 (gnuv3_get_type_from_type_info): New functions.
1968 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
1970 2013-04-15 Tom Tromey <tromey@redhat.com>
1972 * break-catch-throw.c (struct exception_names): New.
1973 (exception_functions): Change type.
1974 (re_set_exception_catchpoint): Look for SDT probes.
1976 2013-04-15 Tom Tromey <tromey@redhat.com>
1979 * break-catch-throw.c (exception_functions): New global.
1980 (gnu_v3_exception_catchpoint_ops): Move earlier.
1981 (struct exception_catchpoint): New.
1982 (classify_exception_breakpoint): Rewrite.
1983 (re_set_exception_catchpoint): New function.
1984 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
1985 Allocate a struct exception_catchpoint.
1986 (catch_exception_command_1): Update.
1987 (initialize_throw_catchpoint_ops): Set 're_set' method.
1989 2013-04-15 Tom Tromey <tromey@redhat.com>
1991 * Makefile.in (SFILES): Add break-catch-throw.c
1992 (COMMON_OBS): Add break-catch-throw.o.
1993 * break-catch-throw.c: New file.
1994 * breakpoint.c: Move exception-catching code to new file.
1995 (ep_parse_optional_if_clause): No longer static.
1996 * breakpoint.h (ep_parse_optional_if_clause): Declare.
1998 2013-04-15 Tom Tromey <tromey@redhat.com>
2002 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
2003 * c-exp.y (TYPEID): New token.
2004 (exp): Add new TYPEID productions.
2005 (ident_tokens): Add "typeid".
2006 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
2007 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
2008 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
2009 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
2010 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
2012 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
2013 (build_std_type_info_type, gnuv3_get_typeid_type)
2014 (gnuv3_get_typeid): New functions.
2015 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
2016 new fields on ABI object.
2017 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
2018 * std-operator.def (OP_TYPEID): New.
2020 2013-04-15 Tom Tromey <tromey@redhat.com>
2022 * elfread.c (elf_symtab_read): Install versioned symbol under
2023 unversioned name as well.
2025 2013-04-15 Tom Tromey <tromey@redhat.com>
2028 * c-lang.c (cplus_language_defn): Use gdb_demangle.
2029 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
2030 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
2031 (gdb_demangle): New function.
2032 * cp-support.h (gdb_demangle): Declare.
2033 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
2034 (dwarf2_name): Use gdb_demangle.
2035 * gdbtypes.c (check_stub_method): Use gdb_demangle.
2036 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
2038 (gnuv3_print_method_ptr): Use gdb_demangle.
2039 * jv-lang.c (java_demangle): Use gdb_demangle.
2040 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
2041 * language.c (unk_lang_demangle): Use gdb_demangle.
2042 * symtab.c (symbol_find_demangled_name)
2043 (demangle_for_lookup): Use gdb_demangle.
2045 2013-04-15 Tom Tromey <tromey@redhat.com>
2049 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
2051 (classify_exception_breakpoint): New function.
2052 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2053 (print_mention_exception_catchpoint)
2054 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
2055 (catch_exception_command_1): Handle "rethrow" catchpoint.
2056 (catch_rethrow_command): New function.
2057 (_initialize_breakpoint): Add "catch rethrow" command.
2059 2013-04-15 Pierre Muller <muller@sourceware.org>
2061 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
2062 set_gdbarch_write_pc as deprecated anymore.
2064 2013-04-15 Joel Brobecker <brobecker@adacore.com>
2066 * spu-tdep.c (spu_write_pc): Add empty line after local variable
2069 2013-04-13 Yao Qi <yao@codesourcery.com>
2071 * ctf.c (_initialize_ctf): Include "completer.h".
2072 Call add_target_with_completer instead of add_target.
2074 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2076 Fix GDB regression related to PR binutils/14813.
2077 * jit.c (mem_bfd_iovec_close): Return 0 for success.
2078 * minidebug.c (lzma_close): Add return value comment.
2079 * remote.c (remote_bfd_iovec_close): Return 0 for success.
2080 * solib-spu.c (spu_bfd_iovec_close): Likewise.
2081 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
2083 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2085 * config.in: Regenerate.
2087 2013-04-12 Tom Tromey <tromey@redhat.com>
2089 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
2091 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
2092 (struct die_reader_specs) <buffer>: Likewise.
2093 (die_reader_func_ftype): Make 'info_ptr' const.
2094 (struct line_header) <include_dirs, statement_program_start,
2095 statement_program_end>: Now const.
2096 (struct file_entry) <name>: Likewise.
2097 (struct partial_die_info) <sibling>: Likewise.
2098 (struct dwarf_block) <data>: Likewise.
2099 (dwarf2_read_section): Remove cast.
2100 (dwarf2_get_section_info): Make 'bufp' const.
2101 (read_index_from_section): Constify.
2102 (dw2_get_file_names_reader): Make 'info_ptr' const.
2103 (dw2_get_primary_filename_reader): Likewise.
2104 (read_comp_unit_head): Make 'info_ptr' and return type const.
2105 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
2107 (read_abbrev_offset): Constify.
2108 (dwarf2_create_include_psymtab): Make 'name' const.
2109 (create_debug_types_hash_table): Update.
2110 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
2111 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
2113 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
2114 (load_partial_comp_unit_reader): Make 'info_ptr' const.
2115 (read_comp_units_from_section): Constify.
2116 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
2117 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
2119 (dwarf2_compute_name, setup_type_unit_groups): Constify.
2120 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
2121 (create_dwp_hash_table, dwarf2_ranges_read)
2122 (dwarf2_record_block_ranges): Constify.
2123 (read_die_and_children, read_die_and_siblings_1)
2124 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
2126 (read_full_die_1, read_full_die): Make 'info_ptr' const.
2127 (abbrev_table_read_table): Constify.
2128 (load_partial_dies): Make 'info_ptr' const.
2129 (read_partial_die, read_attribute_value, read_attribute): Make
2130 'info_ptr' and return type const.
2131 (read_address, read_initial_length)
2132 (read_checked_initial_length_and_offset, read_offset)
2133 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
2135 (read_direct_string): Make 'buf' and return type const.
2136 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
2137 (read_indirect_string): Make return type const.
2138 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
2139 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
2141 (read_str_index): Make return type const.
2142 (add_include_dir): Make 'include_dir' const.
2143 (add_file_name): Make 'name' const.
2144 (dwarf_decode_line_header): Constify.
2145 (psymtab_include_file_name): Make return type const.
2146 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
2147 (dwarf2_start_subfile): Make 'filename' const.
2148 (dwarf2_const_value_attr): Make 'bytes' const.
2149 (read_signatured_type_reader): Make 'info_ptr' const.
2150 (decode_locdesc): Constify.
2151 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
2153 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
2154 'mac_end', and return type const.
2155 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
2156 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
2158 (per_cu_header_read_in): Constify.
2159 * symfile.h (dwarf2_get_section_info): Update.
2161 2013-04-12 Tom Tromey <tromey@redhat.com>
2163 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
2165 2013-04-12 Eli Zaretskii <eliz@gnu.org>
2167 * NEWS: Mention "show configuration", --configuration.
2168 * top.c (print_gdb_configuration): New function, displays the
2169 details about GDB configure-time parameters.
2170 (print_gdb_version): Mention "show configuration".
2171 * cli/cli-cmds.c (show_configuration): New function.
2172 (_initialize_cli_cmds): Add the "show configuration" command.
2173 * main.c (captured_main) <print_configuration>: New static var.
2174 <long_options>: Use it.
2175 If --configuration was given, call print_gdb_configuration.
2177 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2178 Pedro Alves <palves@redhat.com>
2180 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
2181 (generated_files): Add gcore.
2182 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
2183 HAVE_NATIVE_GCORE_HOST.
2185 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
2186 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
2187 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
2188 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
2189 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
2190 Add HAVE_NATIVE_GCORE_HOST.
2191 * configure: Regenerate.
2192 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
2193 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
2194 AC_CONFIG_FILES for gcore.
2195 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
2197 * gdb_gcore.sh: Rename to ...
2198 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
2199 and GCORE_TRANSFORM_NAME substitutions.
2201 Fix parsing tabs in ${gdb_target_obs}.
2202 * configure.tgt (gdb_have_gcore): Replace case with for and if.
2204 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2206 * remote.c (unpush_and_perror): Add output message final dot.
2208 2013-04-11 Yao Qi <yao@codesourcery.com>
2210 * tracepoint.c (tfile_interp_line): Fit parameters line and
2213 2013-04-10 Joel Brobecker <brobecker@adacore.com>
2215 * solib.c (solib_map_sections): Remove code overwriting
2216 SO->SO_NAME with the bfd's filename.
2218 2013-04-10 Pedro Alves <palves@redhat.com>
2220 * cli/cli-decode.c (integer_unlimited_completer): New function.
2221 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
2222 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
2224 * cli/cli-setshow.c: Include "cli/cli-utils.h".
2225 (is_unlimited_literal): New function.
2226 (do_set_command): Handle literal "unlimited" arguments.
2227 * frame.c (_initialize_frame) <set backtrace limit>: Document
2229 * printcmd.c (_initialize_printcmd) <set print
2230 max-symbolic-offset>: Add help text.
2231 * record-full.c (_initialize_record_full) <set record full
2232 insn-number-max>: Likewise.
2233 * record.c (_initialize_record) <set record
2234 instruction-history-size, set record function-call-history-size>:
2236 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
2238 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
2240 * source.c (_initialize_source) <set listsize>: Add help text.
2241 * utils.c (initialize_utils) <set height, set width>: Likewise.
2242 <set pagination>: Mention "set height unlimited".
2243 * valprint.c (_initialize_valprint) <set print elements, set print
2244 repeats>: Document "unlimited".
2246 2013-04-10 Pedro Alves <palves@redhat.com>
2248 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
2249 instead of disconnect_tracing.
2250 * infcmd.c (detach_command, disconnect_command): Call
2251 query_if_trace_running. Adjust.
2252 * top.c: Include "tracepoint.h".
2253 (quit_target): Delete. Contents moved ...
2254 (quit_force): ... here. Wrap each stage of teardown in
2255 TRY_CATCH. Call disconnect_tracing before detaching.
2257 2013-04-10 Hui Zhu <hui@codesourcery.com>
2258 Yao Qi <yao@codesourcery.com>
2260 * configure.ac: Check libbabeltrace is installed.
2261 * config.in: Regenerate.
2262 * configure: Regenerate.
2263 * Makefile.in (LIBBABELTRACE): New.
2264 (CLIBS): Add LIBBABELTRACE.
2265 * ctf.c: Include "exec.h".
2266 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
2267 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
2268 (ctf_save_metadata_header): Define new type aliases in
2270 (ctf_write_header): Define event type "tsv_def" and "tp_def"
2271 in metadata. Start a new faked packet for trace status.
2272 (ctf_write_status): Write trace status to CTF.
2273 (ctf_write_uploaded_tsv): Write TSV to CTF.
2274 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
2275 (ctf_write_definition_end): End the faked packet.
2277 (ctx, ctf_iter, trace_dirname): New.
2278 (start_pos): New variable.
2279 (ctf_destroy, ctf_open_dir, ctf_open): New.
2280 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
2282 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
2283 (ctf_fetch_registers, ctf_xfer_partial): New.
2284 (ctf_get_trace_state_variable_value): New.
2285 (ctf_get_tpnum_from_frame_event): New.
2286 (ctf_get_traceframe_address): New.
2287 (ctf_trace_find, ctf_has_stack): New.
2288 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
2289 (ctf_get_trace_status, ctf_read_status): New.
2290 (_initialize_ctf): New.
2291 * tracepoint.c (get_tracepoint_number): New
2292 (get_uploaded_tsv): Remove 'static'.
2293 (struct traceframe_info, trace_regblock_size): Move it to ...
2294 * tracepoint.h: ... here.
2295 (get_tracepoint_number): Declare it.
2296 (get_uploaded_tsv): Declare it.
2298 * NEWS: Mention new configure option.
2300 2013-04-10 Pedro Alves <palves@redhat.com>
2301 Hui Zhu <hui@codesourcery.com>
2303 * breakpoint.c (dprintf_re_set): New.
2304 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
2307 2013-04-09 Joel Brobecker <brobecker@adacore.com>
2309 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
2310 Remove solib-svr4.o from the list.
2312 2013-04-09 Joel Brobecker <brobecker@adacore.com>
2314 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
2315 Use gdb_assert_not_reached instead of invalid boolean expression.
2317 2013-04-09 Pedro Alves <palves@redhat.com>
2319 * remote.c (unpush_and_perror): New function.
2320 (readchar, remote_serial_write): Use it.
2322 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
2324 * NEWS: Mention new btrace RSP packets.
2326 2013-04-08 Tom Tromey <tromey@redhat.com>
2328 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
2331 2013-04-08 Tom Tromey <tromey@redhat.com>
2333 * maint.c (print_bfd_section_info): Print the section index.
2334 * symmisc.c (dump_msymbols): Print the section index.
2336 2013-04-08 Tom Tromey <tromey@redhat.com>
2339 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
2340 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
2341 * breakpoint.c (resolve_sal_pc): Update.
2342 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2343 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
2344 (minsym_lookup_iterator_cb): Use it.
2345 (default_read_var_value): Update.
2346 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
2348 * infcmd.c (jump_command): Update.
2349 * linespec.c (minsym_found): Update.
2350 * maint.c (maintenance_translate_address): Update.
2351 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
2352 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
2353 * parse.c (write_exp_msymbol): Update.
2354 * printcmd.c (address_info): Update.
2355 * psymtab.c (find_pc_sect_psymbol): Update.
2356 (fixup_psymbol_section): Check SYMBOL_SECTION, not
2358 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
2359 Don't initialize SYMBOL_OBJ_SECTION.
2360 * spu-tdep.c (spu_catch_start): Update.
2361 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
2362 * symmisc.c (dump_msymbols, print_symbol): Update.
2363 * symtab.c (fixup_section): Don't set 'obj_section'. Change
2364 how fallback section is computed.
2365 (fixup_symbol_section): Update.
2366 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
2368 (allocate_symbol, initialize_symbol, allocate_template_symbol):
2369 Initialize SYMBOL_SECTION.
2370 * symtab.h (struct general_symbol_info) <section>: Update comment.
2371 <obj_section>: Remove.
2372 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
2373 (SYMBOL_OBJFILE): New macro.
2375 2013-04-08 Tom Tromey <tromey@redhat.com>
2377 * coffread.c (record_minimal_symbol): Update.
2378 * dbxread.c (record_minimal_symbol): Update.
2379 * elfread.c (record_minimal_symbol): Update.
2380 * machoread.c (macho_symtab_add_minsym): Update.
2381 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
2383 * minsyms.c (prim_record_minimal_symbol): Update.
2384 (prim_record_minimal_symbol_full): Remove 'bfd_section'
2386 (prim_record_minimal_symbol_and_info): Likewise.
2387 * minsyms.h (prim_record_minimal_symbol_full)
2388 (prim_record_minimal_symbol_and_info): Update.
2389 * symtab.c (allocate_symbol, initialize_symbol)
2390 (allocate_template_symbol): Initialize SYMBOL_SECTION.
2391 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
2394 2013-04-08 Tom Tromey <tromey@redhat.com>
2397 * solib-som.c (som_solib_section_offsets): Use BFD section
2398 indices. Set offsets for all sections.
2399 * somread.c (som_symtab_read): Compute BFD section for
2400 symbol. Use prim_record_minimal_symbol_and_info.
2401 (som_symfile_read): Fix comment.
2402 (struct find_section_offset_arg): New.
2403 (find_section_offset, set_section_index): New functions.
2404 (som_symfile_offsets): Use set_section_index to compute
2407 2013-04-08 Tom Tromey <tromey@redhat.com>
2409 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
2410 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
2411 gdb_bfd_section_index.
2412 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
2414 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
2416 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
2418 * objfiles.c (add_to_objfile_sections_full): New function.
2419 (add_to_objfile_sections): Use it.
2420 (build_section_table): Rewrite.
2421 (objfile_relocate1): Use gdb_bfd_section_index. Update.
2422 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
2423 (struct objfile) <sections>: Update comment.
2424 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
2426 (ALL_OBJSECTIONS): Use it.
2427 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
2428 * solib-frv.c (frv_relocate_main_executable): Update.
2429 * solib-target.c (solib_target_relocate_section_addresses):
2430 Use gdb_bfd_section_index.
2431 * symfile.c (build_section_addr_info_from_section_table):
2432 Use gdb_bfd_section_index.
2433 (build_section_addr_info_from_bfd, place_section): Likewise.
2434 * symtab.c (fixup_section): Update.
2435 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
2437 2013-04-08 Tom Tromey <tromey@redhat.com>
2439 * minsyms.h (struct bound_minimal_symbol): New.
2440 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
2441 Remove objfile argument.
2442 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
2443 Return bound_minimal_symbol.
2444 * minsyms.c (lookup_minimal_symbol_by_pc_1)
2445 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
2446 Return bound_minimal_symbol.
2447 (in_gnu_ifunc_stub): Update.
2448 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
2449 Remove 'objfile_p' argument.
2450 (lookup_solib_trampoline_symbol_by_pc): Update.
2451 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
2452 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
2453 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
2454 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
2455 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
2456 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
2457 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
2458 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
2459 stack.c, symtab.c, tui/tui-disasm.c: Update.
2461 2013-04-08 Tom Tromey <tromey@redhat.com>
2463 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
2464 Use symbol's obstack, not an objfile.
2465 * coffread.c (process_coff_symbol): Update.
2466 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
2467 * jv-lang.c (add_class_symbol): Update.
2468 * mdebugread.c (new_symbol): Update.
2469 * minsyms.c (prim_record_minimal_symbol_full)
2470 (terminate_minimal_symbol_table): Update.
2471 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
2472 * stabsread.c (define_symbol, read_enum_type): Update.
2473 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
2474 Handle Ada specially.
2475 (symbol_set_language): Add 'obstack' argument.
2476 (symbol_set_names): Update.
2477 (symbol_natural_name, symbol_demangled_name): Always use
2479 * symtab.h (struct general_symbol_info)
2480 <language_specific::obstack>: New field.
2481 <ada_mangled>: New field.
2482 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
2483 (symbol_set_language): Update.
2485 2013-04-08 Tom Tromey <tromey@redhat.com>
2487 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
2488 Take an obstack, not an objfile.
2489 (symbol_set_names): Update.
2490 * symtab.h (symbol_set_demangled_name): Update.
2492 2013-04-08 Tom Tromey <tromey@redhat.com>
2494 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
2496 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
2497 (read_func_scope): Call allocate_template_symbol.
2498 (new_symbol_full): Call allocate_symbol.
2499 * jit.c (finalize_symtab): Call allocate_symbol.
2500 * jv-lang.c (add_class_symbol): Call allocate_symbol.
2501 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
2502 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
2503 (common_block_end): Call allocate_symbol.
2504 * symtab.c (allocate_symbol, initialize_symbol)
2505 (allocate_template_symbol): New functions.
2506 * symtab.c (allocate_symbol, initialize_symbol)
2507 (allocate_template_symbol): Declare.
2508 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
2510 2013-04-08 Pedro Alves <palves@redhat.com>
2511 Keith Seitz <keiths@redhat.com>
2513 * breakpoint.c (create_breakpoint): Rename
2514 "parse_condition_and_thread" parameter to "parse_arg". Update
2515 describing comment. If !PARSE_ARG, then error out if ARG is not
2516 the empty string after extracting the location.
2517 * breakpoint.h (create_breakpoint): Rename
2518 "parse_condition_and_thread" parameter to "parse_arg".
2520 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
2522 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
2524 2013-04-07 Yao Qi <yao@codesourcery.com>
2526 * remote.c (remote_trace_find): Change type of parameters 'addr1'
2527 and 'addr2' to CORE_ADDR.
2528 * target.c (update_current_target): Update.
2529 * target.h (struct target_ops) <to_trace_find>: Change parameter
2531 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
2532 'addr2' to CORE_ADDR.
2533 (tfile_trace_find): Likewise.
2534 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
2535 Change local variable 'addr' to type CORE_ADDR.
2536 * tracepoint.h (tfind_1): Update declaration.
2538 2013-04-06 Eli Zaretskii <eliz@gnu.org>
2540 * windows-nat.c (windows_get_absolute_argv0): Move from here...
2541 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
2544 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
2546 * main.h (windows_get_absolute_argv0): ...to here.
2548 2013-04-05 Doug Evans <dje@google.com>
2550 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
2551 (read_cutu_die_from_dwo): Add comments.
2552 (read_structure_type): Update comment.
2553 (read_enumeration_type, read_namespace_type): Update comment.
2554 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
2556 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2558 Convert man pages to texinfo, new gdbinit.5 texinfo page.
2559 * Makefile.in (gdb.z): Remove.
2560 (install-only): Remove $(man1dir) and gdb.1 installation.
2563 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2565 Fix compatibility with Linux kernel 3.8.3.
2566 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
2567 to more inner block. Remove parsing of NUMBER from outer block.
2568 Parse NUMBER only if KEYWORD has been identified.
2570 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2572 Fix variable name shadowing.
2573 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
2574 filename to mapsfilename and update its uses.
2576 2013-04-05 Eli Zaretskii <eliz@gnu.org>
2578 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
2579 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
2580 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
2581 details of the problem.
2583 2013-04-04 Pedro Alves <palves@redhat.com>
2584 Hui Zhu <hui@codesourcery.com>
2586 * breakpoint.c (validate_commands_for_breakpoint): If validating a
2587 tracepoint, reset its STEP_COUNT and call validate_actionline.
2589 2013-04-03 Doug Evans <dje@google.com>
2591 * dwarf2read.c (read_die_and_siblings_1): Renamed from
2592 read_die_and_siblings.
2593 (read_die_and_siblings): New function.
2594 (read_cutu_die_from_dwo): Dump die if requested.
2595 (read_die_and_children): Call read_full_die_1 and
2596 read_die_and_siblings_1.
2597 (read_full_die): Dump die if requested.
2599 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
2601 * dwarf2read.c (struct dwo_file): New member comp_dir.
2602 Rename member name to dwo_name. All uses updated.
2603 (hash_dwo_file): Include comp_dir in computation.
2604 (eq_dwo_file): Ditto.
2605 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
2606 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
2608 * psymtab.c (read_psymtabs_with_fullname): Don't call
2609 psymtab_to_fullname if the basenames are different.
2611 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2613 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
2614 New entry about "fullname" presence.
2616 2013-04-03 Pedro Alves <palves@redhat.com>
2618 * NEWS: Mention x86_64/Cygwin as new native configuration.
2620 2013-04-02 Doug Evans <dje@google.com>
2622 * dwarf2read.c (read_structure_type): Fix typo in comment.
2624 2013-04-02 Pedro Alves <palves@redhat.com>
2626 * NEWS: Mention "set/show debug aarch64", "set/show debug
2627 coff-pe-read" and "set/show debug mach-o".
2629 2013-04-02 Pedro Alves <palves@redhat.com>
2631 * NEWS: Mention "set/show remote trace-buffer-size-packet".
2633 2013-04-02 Eli Zaretskii <eliz@gnu.org>
2635 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
2636 gdb_string.h is now in common/.
2638 2013-04-02 Pedro Alves <palves@redhat.com>
2640 * NEWS: Move "set debug notification" and "set trace-buffer-size"
2641 under "New options".
2643 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2647 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
2649 2013-04-02 Pedro Alves <palves@redhat.com>
2653 * remote.c (send_interrupt_sequence): Use remote_serial_write.
2654 (remote_serial_write): New function.
2655 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
2657 2013-04-01 Jiong Wang <jiwang@tilera.com>
2659 * NEWS: Mention TILE-Gx in "New native configurations" and
2660 "New targets" sections.
2662 2013-04-01 Doug Evans <dje@google.com>
2664 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
2665 (process_enumeration_scope): Simplify.
2667 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
2669 (struct signatured_type): ... to here.
2670 (sig_type_ptr): New typedef.
2671 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
2672 out of union 't'. All uses updated.
2673 (dw2_get_file_names_reader): Assert not called for a type unit.
2674 (dw2_get_file_names): Assert not called for a type unit or type
2676 (build_type_psymtabs_reader): Assert called for a type unit.
2677 (build_type_psymtab_dependencies): Assert called for a type unit group.
2679 * dwarf2read.c (free_dwo_file): Add comment.
2680 (dwarf2_per_objfile_free): Unref dwp bfd.
2682 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
2684 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
2685 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
2686 (read_pe_exported_syms): Remove unused 'exportix'.
2687 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
2688 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
2689 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
2691 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
2693 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
2694 (print_it_watchpoint): Remove unused 'bl'.
2695 (say_where): Remove unused 'uiout'.
2696 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
2697 (bkpt_breakpoint_hit): Remove unused 'b'.
2698 (internal_bkpt_print_it): Remove unused 'uiout'.
2699 * buildsym.c (augment_type_symtab): Remove unused 'i'.
2701 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
2703 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
2704 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
2706 2013-03-29 Doug Evans <dje@google.com>
2708 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
2709 Delete arg is_dwp. All callers updated.
2710 (open_dwp_file): New function.
2711 (open_and_init_dwp_file): Call it.
2712 (get_dwp_file): New function.
2713 (lookup_dwo_cutu): Call it.
2715 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
2716 unnecessary, cleanup.
2718 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
2720 * dwarf2read.c (read_cutu_die_from_dwo): New function.
2721 (lookup_dwo_unit): New function.
2722 (init_cutu_and_read_dies): Move DWO handling to new functions.
2724 * dwarf2read.c (struct signatured_type): Tweak comment.
2725 (struct dwo_unit): Tweak comment.
2726 (create_debug_types_hash_table): Tweak comment. Reformat long line.
2727 (create_dwo_debug_info_hash_table): Tweak comment.
2728 (dwarf2_per_cu_offset_and_type): Tweak comment.
2730 * dwarf2read.c (lookup_signatured_type): Remove complaint about
2731 missing .debug_types section.
2733 2013-03-29 Yao Qi <yao@codesourcery.com>
2735 * corelow.c: Include "completer.h".
2736 (_initialize_corelow): Call add_target_with_completer with
2737 argument 'filename_completer'.
2738 * tracepoint.c: Likewise.
2739 * exec.c (_initialize_exec): Likewise.
2740 * target.c (add_target): Rename to ...
2741 (add_target_with_completer): ... this. Call set_cmd_completer
2742 if parameter completer is not NULL.
2744 * target.h: Include "command.h".
2745 (add_target_with_completer): Declare it.
2747 2013-03-28 Joel Brobecker <brobecker@adacore.com>
2749 * coffread.c (is_import_fixup_symbol): New function.
2750 (record_minimal_symbol): Use is_import_fixup_symbol to
2751 detect import fixup symbols, and discard them.
2753 2013-03-28 Doug Evans <dje@google.com>
2755 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
2756 types hash table until we know we need it.
2758 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
2761 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
2762 All callers updated.
2763 (dw2_print_stats): Print #read CUs too.
2764 (dump_die_shallow): Print signatured types better.
2766 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
2767 info_or_types_section to section. All uses updated.
2768 (struct dwo_unit): Ditto.
2770 2013-03-28 Pedro Alves <palves@redhat.com>
2772 * NEWS (New options): New section.
2773 (New options): Mention set/show remote trace-status-packet.
2774 * remote.c (PACKET_qTStatus): New enumeration value.
2775 (remote_get_trace_status): Skip sending qTStatus if the packet is
2776 disabled. Use packet_ok.
2777 (_initialize_remote): Register a configuration command for
2780 2013-03-28 Doug Evans <dje@google.com>
2782 * symfile.c (find_separate_debug_file): Add comment.
2783 (terminate_after_last_dir_separator): Tweak comment.
2785 * dwarf2read.c (create_partial_symtab): Add forward decl.
2786 (create_partial_symtab): Move to be closer to other psymtab functions.
2787 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
2789 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
2790 (compute_symtab_includes): Remove unnecessary forward declaration.
2791 (die_needs_namespace): Add comment marking group of functions for
2792 dwarf2 name computation.
2794 * typeprint.c (_initialize_typeprint): Improve type help text.
2796 * python/python.c (finish_python_initialization): Provide suggestion
2797 for how to tell gdb to find its python files.
2799 2013-03-28 Pedro Alves <palves@redhat.com>
2803 * source.c (_initialize_source): Change back "set listsize" to an
2806 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
2809 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
2811 2013-03-27 Pedro Alves <palves@redhat.com>
2813 * top.c (history_size): Rename to ...
2814 (history_size_setshow_var): ... this. Add comment.
2815 (show_commands): Use readline's 'history_length' instead of
2816 computing the history length by calling history_get in a loop.
2817 (set_history_size_command): Error out for sizes over INT_MAX.
2818 Restore previous history size on invalid size.
2819 (init_history): If HISTSIZE is negative, leave the history size as
2821 (init_main): Adjust.
2823 2013-03-27 Pedro Alves <palves@redhat.com>
2825 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
2826 coff_pe_read" command to "set debug coff-pe-read".
2828 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
2830 * record.c (command_size_to_target_size): Fix size comparison.
2831 Change parameter type from pointer to integer to integer.
2834 2013-03-27 Pierre Muller <muller@sourceware.org>
2836 * windows-nat.c (handle_output_debug_string): Avoid typecast
2837 from integer of different size warning.
2839 2013-03-26 Joel Brobecker <brobecker@adacore.com>
2841 * windows-nat.c (handle_output_debug_string): Add empty line
2842 after local block variable definition.
2844 2013-03-26 Pedro Alves <palves@redhat.com>
2846 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
2847 (net_open): Make 'polls' local unsigned.
2849 2013-03-26 Pedro Alves <palves@redhat.com>
2851 * remote.c (_initialize_remote): Make "set remoteaddresssize"
2852 a zuinteger command instead of uinteger.
2854 2013-03-26 Pedro Alves <palves@redhat.com>
2856 * record-full.c (record_full_insn_num): Make it unsigned.
2857 (record_full_check_insn_num, record_full_message)
2858 (record_full_registers_change, record_full_xfer_partial): Remove
2859 record_full_insn_max_num check (it's always != 0).
2860 (record_full_info, record_full_restore): Use %u as format string.
2861 (): Use %u as format string.
2862 (set_record_full_insn_max_num): Remove record_full_insn_max_num
2863 check (it's always != 0).
2865 2013-03-26 Pedro Alves <palves@redhat.com>
2867 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
2868 and "set dcache size" commands zuinteger instead of uinteger.
2870 2013-03-26 Pedro Alves <palves@redhat.com>
2872 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
2873 command zuinteger instead of uinteger.
2875 2013-03-26 Pedro Alves <palves@redhat.com>
2877 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
2878 zuinteger instead of uinteger.
2880 2013-03-26 Pedro Alves <palves@redhat.com>
2882 * record.c (record_insn_history_size_setshow_var)
2883 (record_call_history_size_setshow_var): New globals.
2884 (command_size_to_target_size): New function.
2885 (cmd_record_insn_history, cmd_record_call_history): Use
2886 command_size_to_target_size instead of cast.
2887 (validate_history_size, set_record_insn_history_size)
2888 (set_record_call_history_size): New functions.
2889 (_initialize_record): Install set_record_insn_history_size and
2890 set_record_call_history_size as "set" hooks of "set record
2891 instruction-history-size" and "set record
2892 function-call-history-size".
2894 2013-03-26 Pedro Alves <palves@redhat.com>
2896 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
2897 use with history_max_entries use. Remove FIXME note.
2899 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
2901 * record-btrace.c (record_btrace_close): Call
2902 record_btrace_auto_disable.
2904 2013-03-25 Joel Brobecker <brobecker@adacore.com>
2906 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
2908 2013-03-25 Doug Evans <dje@google.com>
2910 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
2912 2013-03-25 Tom Tromey <tromey@redhat.com>
2915 * c-exp.y (exp): Add new productions for destructors after '.' and
2917 (write_destructor_name): New function.
2919 2013-03-25 Tom Tromey <tromey@redhat.com>
2922 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
2923 value_struct_elt, not lookup_struct_elt_type.
2924 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
2925 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
2926 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
2928 2013-03-25 Yao Qi <yao@codesourcery.com>
2930 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
2931 instead of '_mkdir'.
2933 2013-03-23 Eli Zaretskii <eliz@gnu.org>
2935 * windows-nat.c (windows_get_absolute_argv0): New function.
2936 * windows-nat.h: Add its prototype.
2938 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
2939 Use IS_DIR_SEPARATOR instead of looking for a character inside
2940 SLASH_STRING. Include filenames.h.
2941 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
2942 relocate_gdb_directory works when passed gdb_program_name.
2943 Include windows-nat.h.
2945 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2947 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
2948 * remote.c (trace_error): Remove the special handling of '2'.
2949 (readchar) <SERIAL_EOF>
2950 (readchar) <SERIAL_ERROR>
2951 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
2952 (remote_get_trace_status): Call throw_exception if EX is
2954 * utils.c (perror_with_name): Rename to ...
2955 (throw_perror_with_name): ... here. New parameter errcode, describe it
2956 in the function comment.
2957 (perror_with_name): New function wrapper.
2958 * utils.h (enum errors): New stub declaration.
2959 (throw_perror_with_name): New declaration.
2961 2013-03-22 Pedro Alves <palves@redhat.com>
2962 Yao Qi <yao@codesourcery.com>
2963 Mark Kettenis <kettenis@gnu.org>
2965 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
2966 Don't let the user set the value to UINT_MAX directly.
2967 <var_integer>: Don't let the user set the value to INT_MAX
2970 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2972 * remote.c (remote_unpush_target): New function.
2973 (remote_open_1): Remove two pop_target calls, update one comment, add
2974 comment to target_preopen call. Replace pop_target call by
2975 remote_unpush_target call.
2976 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
2977 pop_target calls by remote_unpush_target calls.
2979 2013-03-22 Pedro Alves <palves@redhat.com>
2981 * linux-nat.c (linux_child_follow_fork): Don't call
2982 linux_enable_event_reporting.
2983 (linux_handle_extended_wait): Don't call
2984 linux_enable_event_reporting.
2986 2013-03-22 Pedro Alves <palves@redhat.com>
2988 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
2989 use it to rewrite the trampoline buffers with type gdb_byte[], and
2990 undefine the macro. Remove char* cast.
2992 2013-03-21 Doug Evans <dje@google.com>
2994 New commands "mt set per-command {space,time,symtab} {on,off}".
2996 * event-top.c: #include "maint.h".
2997 * main.c: #include "maint.h".
2998 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
2999 timeval-utils.h, maint.h, cli/cli-setshow.h.
3000 (per_command_time, per_command_space): New static globals.
3001 (per_command_symtab): New static global.
3002 (per_command_setlist, per_command_showlist): New static globals.
3003 (struct cmd_stats): Move here from utils.c.
3004 (set_per_command_time): Renamed from set_display_time in utils.c
3005 and moved here. All callers updated.
3006 (set_per_command_space): Renamed from set_display_space in utils.c
3007 and moved here. All callers updated.
3008 (count_symtabs_and_blocks): New function.
3009 (report_command_stats): Moved here from utils.c. Add support for
3010 printing symtab stats. Only print data if enabled before command
3012 (make_command_stats_cleanup): Ditto.
3013 (sert_per_command_cmd, show_per_command_cmd): New functions.
3014 (_initialize_maint_cmds): Add new commands
3015 mt set per-command {space,time,symtab} {on,off}.
3016 * maint.h: New file.
3017 * top.c: #include "maint.h".
3018 * utils.c (reset_prompt_for_continue_wait_time): New function.
3019 (get_prompt_for_continue_wait_time): New function.
3020 * utils.h (reset_prompt_for_continue_wait_time): Declare
3021 (get_prompt_for_continue_wait_time): Declare.
3022 (make_command_stats_cleanup): Moved to maint.h.
3023 (set_display_time, set_display_space): Moved to maint.h and renamed
3024 to set_per_command_time, set_per_command_space.
3025 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
3026 parse_binary_operation and made non-static. Don't call error,
3027 just return an error marker. All callers updated.
3028 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
3030 2013-03-21 Tom Tromey <tromey@redhat.com>
3032 * symfile.c (alloc_section_addr_info): Update header. Don't set
3033 'num_sections' field.
3034 (build_section_addr_info_from_section_table): Set 'num_sections'.
3035 (build_section_addr_info_from_bfd): Likewise.
3036 (build_section_addr_info_from_objfile): Remove dead loop
3038 (free_section_addr_info): Unconditionally call xfree.
3039 (relative_addr_info_to_section_offsets, addrs_section_sort)
3040 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
3042 (syms_from_objfile_1): Remove dead 'if' condition. Check
3044 (add_symbol_file_command): Set 'num_sections'.
3045 * symfile-mem.c (symbol_file_add_from_memory): Set
3047 * somread.c (som_symfile_offsets): Remove dead loop condition.
3048 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
3049 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
3051 2013-03-21 Tom Tromey <tromey@redhat.com>
3053 * tracepoint.h (decode_agent_options): Add 'trace_string'
3055 * tracepoint.c (decode_agent_options): Add 'trace_string'
3057 (validate_actionline): Update.
3058 (collect_symbol): Add 'trace_string' argument.
3059 (struct add_local_symbols_data) <trace_string>: New field.
3060 (do_collect_symbol): Update.
3061 (add_local_symbols): Add 'trace_string' argument.
3062 (encode_actions_1): Update.
3063 (trace_dump_actions): Update.
3064 * dwarf2loc.c (access_memory): Update.
3065 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
3066 * ax-general.c (new_agent_expr): Update.
3067 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
3068 (gen_trace_for_return_address): Add argument.
3069 (trace_kludge, trace_string_kludge): Remove.
3070 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
3071 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
3072 (gen_trace_for_var): Add 'trace_string' argument.
3073 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
3074 (gen_printf, agent_eval_command_one): Update.
3076 2013-03-21 Tom Tromey <tromey@redhat.com>
3079 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
3080 Handle FILENAME token.
3082 2013-03-21 Tom Tromey <tromey@redhat.com>
3084 * c-exp.y (YYPRINT): Define.
3085 (c_print_token): New function.
3087 2013-03-21 Tom Tromey <tromey@redhat.com>
3089 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
3091 2013-03-21 Yao Qi <yao@codesourcery.com>
3093 * ctf.c: Include "gdb_stat.h".
3094 [USE_WIN32API]: New macro 'mkdir'.
3095 (ctf_start): Use permission bits macros if they are defined.
3097 2013-03-20 Keith Seitz <keiths@redhat.com>
3099 * breakpoint.h (struct breakpoint): Add comment to
3100 extra_string indicating that this member is mallod'd.
3101 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
3103 2013-03-20 Pedro Alves <palves@redhat.com>
3107 * cli/cli-setshow.c (do_set_command)
3108 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
3109 the result of parsing the command argument. Throw error if the
3110 value is greater than UINT_MAX. Print the invalid value with
3112 <var_integer, var_zinteger>: Use LONGEST for variable holding the
3113 result of parsing the command argument. Throw error if the value
3114 is greater than INT_MAX, not greater or equal. Also throw error
3115 if the value is less than INT_MIN. Print the invalid value with
3117 <var_zuinteger_unlimited>: Throw error if the value is greater
3118 than INT_MAX, not greater or equal.
3119 (do_show_command) <var_integer, var_zinteger,
3120 var_zuinteger_unlimited>: Use %d for printing int, not %u.
3122 2013-03-20 Tom Tromey <tromey@redhat.com>
3124 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
3126 * dwarf2read.c (read_func_scope): Remove old FIXME.
3127 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
3129 * findvar.c (symbol_read_needs_frame, default_read_var_value):
3130 Unconditionally call via computed ops, if possible.
3131 * printcmd.c (address_info): Unconditionally call via computed ops,
3133 * stack.c (read_frame_arg): Unconditionally call via computed ops,
3135 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
3136 * tracepoint.c (scope_info): Unconditionally call via computed ops,
3139 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3140 Tom Tromey <tromey@redhat.com>
3143 * coffread.c (coff_register_index): New global.
3144 (process_coff_symbol, coff_read_enum_type): Set
3145 SYMBOL_ACLASS_INDEX.
3146 (_initialize_coffread): Initialize new global.
3147 * dwarf2loc.c (locexpr_find_frame_base_location)
3148 (dwarf2_block_frame_base_locexpr_funcs)
3149 (loclist_find_frame_base_location)
3150 (dwarf2_block_frame_base_loclist_funcs): New.
3151 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
3152 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
3153 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
3154 (dwarf2_block_frame_base_loclist_funcs): New.
3155 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
3156 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
3158 (read_func_scope): Update.
3159 (fixup_go_packaging, mark_common_block_symbol_computed)
3160 (var_decode_location, new_symbol_full, dwarf2_const_value):
3161 Set SYMBOL_ACLASS_INDEX.
3162 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
3163 (_initialize_dwarf2_read): Initialize new globals.
3164 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
3165 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
3166 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
3168 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
3169 (_initialize_mdebugread): Initialize new globals.
3170 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
3171 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
3172 (stab_register_index, stab_regparm_index): New globals.
3173 (define_symbol, read_enum_type, common_block_end): Set
3174 SYMBOL_ACLASS_INDEX.
3175 (_initialize_stabsread): Initialize new globals.
3176 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
3178 (MAX_SYMBOL_IMPLS): New define.
3179 (register_symbol_computed_impl, register_symbol_block_impl)
3180 (register_symbol_register_impl)
3181 (initialize_ordinary_address_classes): New functions.
3182 (_initialize_symtab): Call initialize_ordinary_address_classes.
3183 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
3184 (struct symbol_impl): New.
3185 (SYMBOL_ACLASS_BITS): New define.
3186 (struct symbol) <aclass, ops>: Remove fields.
3187 <aclass_index>: New field.
3188 (symbol_impls): Declare.
3189 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
3190 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
3191 (register_symbol_computed_impl, register_symbol_block_impl)
3192 (register_symbol_register_impl): Declare.
3193 (struct symbol_computed_ops): Add location_has_loclist.
3194 (struct symbol_block_ops): New.
3195 (SYMBOL_BLOCK_OPS): New.
3196 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
3198 2013-03-20 Tom Tromey <tromey@redhat.com>
3200 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
3201 (print_partial_symbols, recursively_search_psymtabs): Use
3204 2013-03-20 Pierre Muller <muller@sourceware.org>
3206 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
3207 addtion, subtraction, multiplication and division binary operator.
3209 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3212 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
3213 * bsd-kvm.c (bsd_kvm_close): Likewise.
3214 * bsd-uthread.c (bsd_uthread_close): Likewise.
3215 * corelow.c (core_close): Likewise.
3216 (core_close_cleanup): Remove parameter quitting from a caller.
3217 * event-top.c (async_disconnect): Likewise.
3218 * exec.c (exec_close_1): Remove parameter quitting.
3219 * go32-nat.c (go32_close): Likewise.
3220 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
3221 parameter quitting from a caller.
3222 * mips-linux-nat.c (super_close): Remove parameter quitting from the
3224 (mips_linux_close): Remove parameter quitting. Remove parameter
3225 quitting from a caller.
3226 * monitor.c (monitor_close): Remove parameter quitting.
3227 * monitor.h (monitor_close): Likewise.
3228 * record-btrace.c (record_btrace_close): Likewise.
3229 * record-full.c (record_full_close): Likewise.
3230 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
3231 it also from fprintf_unfiltered.
3232 * remote-mips.c (mips_close): Remove parameter quitting.
3233 (mips_detach): Remove parameter quitting from a caller.
3234 * remote-sim.c (gdbsim_close): Remove parameter quitting.
3235 (gdbsim_close): Remove duplicate function comment. Remove parameter
3236 quitting and remove it also from printf_filtered.
3237 * remote.c (remote_close): Remove parameter quitting.
3238 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
3239 * target.c (update_current_target): Remove parameter int from to_close
3241 (push_target, unpush_target, pop_target): Remove parameter quitting from
3243 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
3244 Remove parameter quitting from a caller.
3245 (target_preopen): Remove parameter quitting from a caller.
3246 (target_close): Remove parameter quitting. Remove parameter quitting
3247 from a caller two times. Remove parameter quitting also from
3249 * target.h (struct target_ops): Remove parameter quitting and as int
3250 from fields to_xclose and to_close.
3251 (extern struct target_ops current_target):
3252 (target_close, pop_all_targets): Remove parameter quitting. Update the
3254 (pop_all_targets_above): Remove parameter quitting.
3255 * top.c (quit_target): Remove parameter quitting from a caller.
3256 * tracepoint.c (tfile_close): Remove parameter quitting.
3257 * windows-nat.c (windows_close): Remove parameter quitting.
3259 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
3261 * windows-nat.c (handle_output_debug_string): Replace call
3262 to string_to_core_addr with call to strtoull.
3264 2013-03-20 Yao Qi <yao@codesourcery.com>
3266 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
3267 and write it to CTF metadata.
3269 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
3271 * windows-nat.c (handle_output_debug_string): Change type of n to
3272 SIZE_T to avoid crash on 64 bit systems.
3274 2013-03-17 Eli Zaretskii <eliz@gnu.org>
3276 * python/python-internal.h (HAVE_SNPRINTF)
3277 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
3278 about redefinition of snprintf by pyerrors.h.
3280 2013-03-15 Steve Ellcey <sellcey@mips.com>
3282 * remote-sim.c (sim_command_completer): Make char arguments const.
3284 2013-03-15 Tom Tromey <tromey@redhat.com>
3287 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
3289 2013-03-14 Tom Tromey <tromey@redhat.com>
3291 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
3293 (get_file_crc): Move from symfile.c.
3294 (gdb_bfd_crc): New function.
3295 * gdb_bfd.h (gdb_bfd_crc): Declare.
3296 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
3297 * symfile.c (get_file_crc): Move to gdb_bfd.c.
3298 (separate_debug_file_exists): Use gdb_bfd_crc.
3300 2013-03-14 Tom Tromey <tromey@redhat.com>
3302 * symfile.c (get_debug_link_info): Remove.
3303 (find_separate_debug_file_by_debuglink): Use
3304 bfd_get_debug_link_info.
3306 2013-03-14 Tom Tromey <tromey@redhat.com>
3308 * symtab.c (error_in_psymtab_expansion): New function.
3309 (lookup_symbol_aux_quick)
3310 (basic_lookup_transparent_type_quick): Remove "last resort"
3311 code. Use error_in_psymtab_expansion.
3313 2013-03-14 Doug Evans <dje@google.com>
3314 Jan Kratochvil <jan.kratochvil@redhat.com>
3316 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
3317 any successful compare_filenames_for_search or FILENAME_CMP.
3318 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
3319 * symtab.c (iterate_over_some_symtabs): Likewise.
3321 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3323 * source.c (print_source_lines_base): Make a local copy of
3326 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
3327 Jan Kratochvil <jan.kratochvil@redhat.com>
3329 * source.c (print_source_lines_base): Suppress "file" for TUI.
3331 2013-03-14 Keith Seitz <keiths@redhat.com>
3332 Alan Matsuoka <alanm@redhat.com>
3336 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
3338 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
3341 2013-03-14 Yao Qi <yao@codesourcery.com>
3343 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
3344 status to tfile if trace is stopped by command 'tstop'.
3346 2013-03-14 Yao Qi <yao@codesourcery.com>
3348 * tracepoint.c (tfile_write_status): Write trace notes and user
3349 name into tfile if they are not NULL.
3351 2013-03-14 Hui Zhu <hui@codesourcery.com>
3352 Yao Qi <yao@codesourcery.com>
3354 * Makefile.in (REMOTE_OBS): Add ctf.o.
3355 (SFILES): Add ctf.c.
3356 (HFILES_NO_SRCDIR): Add ctf.h.
3357 * ctf.c, ctf.h: New files.
3358 * tracepoint.c: Include 'ctf.h'.
3359 (collect_pseudocommand): Remove static.
3360 (trace_save_command): Parse option "-ctf".
3361 Produce different trace file writers per option.
3362 Adjust output message.
3363 (trace_save_tfile, trace_save_ctf): New.
3364 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
3365 * mi/mi-main.c: Include 'ctf.h'.
3366 (mi_cmd_trace_save): Handle option '-ctf'. Call either
3367 trace_save_tfile or trace_save_ctf.
3368 * NEWS: Mention these changes.
3370 2013-03-14 Yao Qi <yao@codesourcery.com>
3372 * tracepoint.c (trace_file_writer_xfree): New.
3373 (struct tfile_writer_data): New.
3374 (tfile_dtor, tfile_can_target_save, tfile_start): New.
3375 (tfile_write_header, tfile_write_regblock_type): New.
3376 (tfile_write_status, tfile_write_uploaded_tsv): New.
3377 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
3378 (tfile_write_raw_data, (tfile_end): New.
3379 (tfile_write_ops): New global variable.
3380 (TRACE_WRITE_R_BLOCK): New macro.
3381 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
3382 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
3383 (TRACE_WRITE_V_BLOCK): New macro.
3384 (trace_save): Add extra one parameter WRITER. Make it static.
3385 Use WRITER to writer trace.
3386 (tfile_trace_file_writer_new): New.
3387 (trace_save_command): Caller update.
3388 (trace_save_tfile): Write trace data in TFILE format.
3389 * tracepoint.h (struct trace_frame_write_ops): New.
3390 (struct trace_file_write_ops): New.
3391 (struct trace_file_writer): New.
3392 (trace_save): Remove its declaration.
3393 (trace_save_tfile): Declare it.
3394 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
3395 instead of trace_save.
3397 2013-03-13 Pedro Alves <palves@redhat.com>
3399 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
3401 2013-03-13 Pedro Alves <palves@redhat.com>
3403 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
3405 * demangle.c (current_demangling_style_string): Make it const.
3406 (set_demangling_command): Assert the demangling style is known.
3407 Remove all handling of unknown styles. Set
3408 'current_demangling_style_string' to an element of the
3409 demangling_style_names array.
3410 (set_demangling_style): Delete.
3411 (_initialize_demangler): Set current_demangling_style_string to the
3412 element of the demangling_style_names array that corresponds to
3413 the default demangling style. Remove FIXME note. Don't call
3414 set_demangling_style.
3415 * gdb-demangle.h (set_demangling_style): Remove declaration.
3417 2013-03-13 Pedro Alves <palves@redhat.com>
3419 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
3421 (ada_make_symbol_completion_list): Make "text0" parameter const.
3422 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
3423 * breakpoint.c (condition_completer): Make "text" and "word"
3424 parameters const. Adjust.
3425 (check_tracepoint_command): Adjust to validate_actionline
3427 (catch_syscall_completer): Make "text" and "word" parameters
3429 * cli/cli-cmds.c (show_user): Make "comname" local const.
3430 (valid_command_p): Make "command" parameter const.
3431 (alias_command): Make "alias_prefix" and "command_prefix" locals
3433 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
3434 (add_alias_cmd): Make "name" and "oldname" parameters const.
3435 Adjust. No longer make copy of OLDNAME.
3436 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
3437 (add_setshow_cmd_full, add_setshow_enum_cmd)
3438 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
3439 (add_setshow_filename_cmd, add_setshow_string_cmd)
3440 (add_setshow_string_noescape_cmd)
3441 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3442 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3443 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
3444 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
3445 Make "name" parameter const.
3446 (help_cmd): Rename "command" parameter to "arg". New const local
3448 (find_cmd): Make "command" parameter const.
3449 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
3450 deprecated_cmd_warning prototype change.
3451 (undef_cmd_error): Make "cmdtype" parameter const.
3452 (lookup_cmd): Make "line" parameter const.
3453 (deprecated_cmd_warning): Change type of "text" parameter to
3454 pointer to const char, from pointer to pointer to char. Adjust.
3455 (lookup_cmd_composition): Make "text" parameter const.
3456 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
3458 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
3460 * cli/cli-script.c (validate_comname): Make "tem" local const.
3461 (define_command): New const local "tem_c". Use it in calls to
3463 (document_command): Make "tem" and "comfull" locals const.
3464 (show_user_1): Make "prefix" and "name" parameters const.
3465 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
3467 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
3468 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
3469 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
3470 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
3471 (complete_on_enum, add_setshow_enum_cmd)
3472 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
3473 (add_setshow_filename_cmd, add_setshow_string_cmd)
3474 (add_setshow_string_noescape_cmd)
3475 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3476 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3477 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
3478 Change prototypes, constifying strings.
3479 * completer.c (noop_completer, filename_completer): Make "text"
3480 and "prefix" parameters const.
3481 (location_completer, expression_completer)
3482 (complete_line_internal): Make "text" and "prefix" parameters
3484 (command_completer, signal_completer): Make "text" and "prefix"
3486 * completer.h (noop_completer, filename_completer)
3487 (expression_completer, location_completer, command_completer)
3488 (signal_completer): Change prototypes.
3489 * corefile.c (complete_set_gnutarget): Make "text" and "word"
3491 * cp-abi.c (cp_abi_completer): Likewise.
3492 * expression.h (parse_expression_for_completion): Change
3494 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
3496 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
3497 * infrun.c (handle_completer): Make "text" and "word" parameters
3499 * interps.c (interpreter_completer): Make "text" and "word"
3501 * language.h (struct language_defn)
3502 <la_make_symbol_completion_list>: Make "text" and "word"
3504 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
3505 (parse_exp_in_context): Rename to ...
3506 (parse_exp_in_context_1): ... this.
3507 (parse_exp_in_context): Reimplement, with const hack from
3509 (parse_expression_for_completion): Make "string" parameter const.
3510 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
3511 to pointer to const char. Adjust.
3512 (print_command_1): Make "exp" parameter const.
3513 (output_command): Rename to ...
3514 (output_command_const): ... this. Make "exp" parameter const.
3515 (output_command): Reimplement.
3516 (x_command): Adjust.
3517 (display_command): Rename "exp" parameter to "arg". New "exp"
3518 local, const version of "arg".
3519 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
3520 "cmd_name" local const.
3521 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
3523 (cmdpy_completer): Make "text" and "word" parameters const.
3524 (gdbpy_parse_command_name): Make "prefix_text2" local const.
3525 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
3527 * remote.c (_initialize_remote): Make "cmd_name" local const.
3528 * symtab.c (language_search_unquoted_string): Make "text" and "p"
3529 parameters const. Adjust.
3530 (completion_list_add_fields): Make "sym_text", "text" and "word"
3532 (struct add_name_data) <sym_text, text, word>: Make fields const.
3533 (default_make_symbol_completion_list_break_on): Make "text" and
3534 "word" parameters const. Adjust locals.
3535 (default_make_symbol_completion_list)
3536 (make_symbol_completion_list, make_symbol_completion_type)
3537 (make_symbol_completion_list_fn): Make "text" and "word"
3539 (make_file_symbol_completion_list): Make "text", "word" and
3540 "srcfile" parameters const. Adjust locals.
3541 (add_filename_to_list): Make "text" and "word" parameters const.
3542 (struct add_partial_filename_data) <text, word>: Make fields
3544 (make_source_files_completion_list): Make "text" and "word"
3546 * symtab.h (default_make_symbol_completion_list_break_on)
3547 (default_make_symbol_completion_list, make_symbol_completion_list)
3548 (make_symbol_completion_type enum type_code)
3549 (make_symbol_completion_list_fn make_file_symbol_completion_list)
3550 (make_source_files_completion_list): Change prototype.
3551 * top.c (execute_command): Adjust to pass pointer to pointer to
3552 const char to lookup_cmd, and to deprecated_cmd_warning prototype
3554 (set_verbose): Make "cmdname" local const.
3555 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
3557 (validate_actionline): Make "line" parameter a pointer to const
3559 (encode_actions_1): Make "action_exp" local const, and adjust.
3560 (encode_actions): Adjust.
3561 (replace_comma): Delete.
3562 (trace_dump_actions): Make "action_exp" and "next_comma" locals
3563 const, and adjust. Don't frob the action string while splitting
3564 it at commas. Instead, make a copy of each split substring in
3566 (trace_dump_command): Adjust to validate_actionline prototype
3568 * tracepoint.h (decode_agent_options, decode_agent_options)
3569 (encode_actions, validate_actionline): Change prototypes.
3570 * valprint.h (output_command): Delete declaration.
3571 (output_command_const): Declare.
3572 * value.c (function_destroyer): Cast const away in xfree call.
3574 2013-03-13 Pedro Alves <palves@redhat.com>
3576 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
3577 rather than casting 'const char * const *' to 'const char **'.
3578 * ada-lex.l (processInt): Make "trailer" local const. Remove
3579 'const char **' cast.
3580 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
3581 locals, and use those as strtol output pointer, instead than doing
3582 invalid casts to from 'const char **' to 'char **'.
3583 (_initialize_demangle): Remove cast.
3584 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
3585 locals, and use those as strtol output pointer, instead than doing
3586 invalid casts to from 'const char **' to 'char **'.
3587 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
3589 * stap-probe.c (stap_parse_register_operand)
3590 (stap_parse_single_operand): Likewise.
3592 2013-03-13 Yao Qi <yao@codesourcery.com>
3594 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
3595 the last matched 'V' blcok in trace frame.
3597 2013-03-12 Joel Brobecker <brobecker@adacore.com>
3599 * NEWS: Create a new section for the next release branch.
3600 Rename the section of the current branch, now that it has
3603 2013-03-12 Joel Brobecker <brobecker@adacore.com>
3605 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
3606 * version.in: Bump version to 7.6.50.20130312-cvs.
3608 2013-03-12 Keith Seitz <keiths@redhat.com>
3610 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
3611 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
3612 Remove temporary copy of input string.
3613 (mi_execute_command_wrapper): Make "cmd" const.
3614 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
3615 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
3617 (mi_parse): Make "cmd" const.
3619 * mi/mi-parse.h (mi_parse): Make "cmd" const.
3621 2013-03-12 Keith Seitz <keiths@redhat.com>
3623 * ada-lang.c (ada_read_renaming_var_value): Pass const
3624 pointer to expression string to parse_exp_1.
3625 (create_excep_cond_exprs): Likewise.
3626 * ax-gdb.c (agent_eval_command_one): Likewise.
3627 (maint_agent_printf_command): Likewise.
3628 Constify much of the string handling/parsing.
3629 * breakpoint.c (set_breakpoint_condition): Pass const
3630 pointer to expression string to parse_exp_1.
3631 (update_watchpoint): Likewise.
3632 (parse_cmd_to_aexpr): Constify string handling.
3633 Pass const pointer to parse_exp_1.
3634 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
3635 (find_condition_and_thread): Likewise.
3637 (watch_command_1): Make "arg" const.
3638 Constify string handling.
3639 Copy the expression string instead of changing the input
3641 (update_breakpoint_location): Pass const pointer to
3643 * eval.c (parse_and_eval_address): Make "exp" const.
3644 (parse_to_comma_and_eval): Make "expp" const.
3645 (parse_and_eval): Make "exp" const.
3646 * expression.h (parse_expression): Make argument const.
3647 (parse_exp_1): Make first argument const.
3648 * findcmd.c (parse_find_args): Treat "args" as const.
3649 * linespec.c (parse_linespec): Pass const pointer to
3650 linespec_expression_to_pc.
3651 (linespec_expression_to_pc): Make "exp_ptr" const.
3652 * parse.c (parse_exp_1): Make "stringptr" const.
3653 Make a copy of the expression to pass to parse_exp_in_context until
3654 this whole interface can be constified.
3655 (parse_expression): Make "string" const.
3656 * printcmd.c (ui_printf): Treat "arg" as const.
3657 Handle const strings.
3658 * tracepoint.c (validate_actionline): Pass const pointer to
3659 all calls to parse_exp_1.
3660 (encode_actions_1): Likewise.
3661 * value.h (parse_to_comma_and_eval): Make argument const.
3662 (parse_and_eval_address): Likewise.
3663 (parse_and_eval): Likewise.
3664 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
3665 (varobj_set_value): Likewise.
3666 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
3667 constify string handling.
3668 Pass const pointers to parse_and_eval_address and
3669 parse_to_comman_and_eval.
3670 * cli/cli-utils.c (skip_to_space): Rename to ...
3671 (skip_to_space_const): ... this. Handle const strings.
3672 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
3673 skip_to_space_const.
3674 (skip_to_space_const): Declare.
3675 * common/format.c (parse_format_string): Make "arg" const.
3676 Handle const strings.
3677 * common/format.h (parse_format_string): Make "arg" const.
3678 * gdbserver/ax.c (ax_printf): Make "format" const.
3679 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
3680 of the expression string.
3682 2013-03-12 Hui Zhu <hui@codesourcery.com>
3684 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
3686 2013-03-12 Yao Qi <yao@codesourcery.com>
3687 Hui Zhu <hui@codesourcery.com>
3689 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
3690 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
3693 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
3695 * ada-lex.l (rules): Only recognize 'thread' as a
3696 delimiter when followed by numerals, as for c-exp.y.
3697 Use new rewind_to_char function to rewind the input for
3698 expression-delimiting tokens.
3699 (rewind_to_char): New function.
3701 2013-03-11 Pedro Alves <palves@redhat.com>
3702 Jan Kratochvil <jan.kratochvil@redhat.com>
3704 * configure: Regenerate.
3705 * configure.ac (check dynamic export flag): Link python test with
3708 2013-03-11 Doug Evans <dje@google.com>
3709 Keith Seitz <keiths@redhat.com>
3711 * linespec.c (find_linespec_symbols): Call find_function_symbols
3712 first, and then call lookup_prefix_sym/find_method.
3714 2013-03-11 Pedro Alves <palves@redhat.com>
3716 * charset.c (convert_between_encodings): Don't cast between
3717 different pointer to pointer types. Instead, make the 'inp' local
3718 be of the type iconv expects.
3719 (wchar_iterate): Don't cast between different pointer to pointer
3720 types. Instead, use new pointer local of the type iconv expects.
3721 * target.c (target_read_stralloc, target_fileio_read_stralloc):
3722 Add new local of type char pointer, and use it to get a
3723 char/string view of the byte buffer, instead of casting between
3724 pointer to pointer types.
3726 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
3728 * remote.c (remote_set_trace_buffer_size): Move != operator
3729 to the start of next line to fix an ARI warning.
3731 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3733 * NEWS: Add record changes.
3735 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3737 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
3738 the instruction history disassembly.
3739 * disasm.c (dump_insns): Omit the pc prefix, if requested.
3740 * disasm.h (DISASSEMBLY_OMIT_PC): New.
3742 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3744 * Makefile.in (SFILES): Add record-btrace.c
3745 (COMMON_OBS): Add record-btrace.o
3746 * record-btrace.c: New.
3747 * objfiles.c: Include btrace.h.
3748 (free_objfile): call btrace_free_objfile.
3750 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3752 * target.c (target_call_history, target_call_history_from,
3753 target_call_history_range): New.
3754 * target.h (target_ops) <to_call_history, to_call_history_from,
3755 to_call_history_range>: New fields.
3756 (target_call_history, target_call_history_from,
3757 target_call_history_range): New declaration.
3758 * record.c (get_call_history_modifiers, cmd_record_call_history,
3759 record_call_history_size): New.
3760 (_initialize_record): Add the "record function-call-history" command.
3761 Add "set/show record function-call-history-size" commands.
3762 * record.h (record_print_flag): New.
3764 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3766 * target.h (target_ops) <to_insn_history, to_insn_history_from,
3767 to_insn_history_range>: New fields.
3768 (target_insn_history): New.
3769 (target_insn_history_from): New.
3770 (target_insn_history_range): New.
3771 * target.c (target_insn_history): New.
3772 (target_insn_history_from): New.
3773 (target_insn_history_range): New.
3774 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
3775 (record_insn_history_size): New.
3776 (get_insn_number): New.
3777 (get_context_size): New.
3779 (get_insn_history_modifiers): New.
3780 (cmd_record_insn_history): New.
3781 (_initialize_record): Add "set/show record instruction-history-size"
3782 command. Add "record instruction-history" command.
3784 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3786 * record.h (record_disconnect): New.
3787 (record_detach): New.
3788 (record_mourn_inferior): New.
3790 * record-full.c (record_disconnect, record_detach,
3791 record_mourn_inferior, record_kill): Move to...
3792 * record.c: ...here.
3795 (record_unpush): New.
3796 (cmd_record_stop): Call record_stop. Replace unpush_target
3797 call with record_unpush call.
3798 (record_disconnect, record_detach): Assert that the target
3799 is of record stratum. Call record_unpush, record_stop, and
3801 (record_mourn_inferior, record_kill): Assert that the target
3802 is of record stratum. Call record_unpush and DEBUG.
3804 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3806 * record-full.h, record-full.c (record_memory_query): Rename
3808 (record_full_memory_query): ...this. Update all users.
3809 (record_arch_list_add_reg): Rename to ...
3810 (record_full_arch_list_add_reg): ...this. Update all users.
3811 (record_arch_list_add_mem): Rename to ...
3812 (record_full_arch_list_add_mem): ...this. Update all users.
3813 (record_arch_list_add_end): Rename to ...
3814 (record_full_arch_list_add_end): ...this. Update all users.
3815 (record_gdb_operation_disable_set): Rename to ...
3816 (record_full_gdb_operation_disable_set): ...this.
3819 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3821 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
3822 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
3823 (RECORD_IS_REPLAY): Renamed to ...
3824 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
3825 (RECORD_FILE_MAGIC): Renamed to ...
3826 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
3827 (record_mem_entry): Renamed to ...
3828 (record_full_mem_entry): ... this. Updated all users.
3829 (record_reg_entry): Renamed to ...
3830 (record_full_reg_entry): ... this. Updated all users.
3831 (record_end_entry): Renamed to ...
3832 (record_full_end_entry): ... this. Updated all users.
3833 (record_type) <record_end, record_reg, record_mem>: Renamed
3835 (record_full_type) <record_full_end, record_full_reg,
3836 record_full_mem>: ... this. Updated all users.
3837 (record_entry): Renamed to ...
3838 (record_full_entry): ... this. Updated all users.
3839 (record_core_buf_entry): Renamed to ...
3840 (record_full_core_buf_entry): ... this. Updated all users.
3841 (record_core_regbuf): Renamed to ...
3842 (record_full_core_regbuf): ... this. Updated all users.
3843 (record_core_start): Renamed to ...
3844 (record_full_core_start): ... this. Updated all users.
3845 (record_core_end): Renamed to ...
3846 (record_full_core_end): ... this. Updated all users.
3847 (record_core_buf_list): Renamed to ...
3848 (record_full_core_buf_list): ... this. Updated all users.
3849 (record_first): Renamed to ...
3850 (record_full_first): ... this. Updated all users.
3851 (record_list): Renamed to ...
3852 (record_full_list): ... this. Updated all users.
3853 (record_arch_list_head): Renamed to ...
3854 (record_full_arch_list_head): ... this. Updated all users.
3855 (record_arch_list_tail): Renamed to ...
3856 (record_full_arch_list_tail): ... this. Updated all users.
3857 (record_stop_at_limit): Renamed to ...
3858 (record_full_stop_at_limit): ... this. Updated all users.
3859 (record_insn_max_num): Renamed to ...
3860 (record_full_insn_max_num): ... this. Updated all users.
3861 (record_insn_num): Renamed to ...
3862 (record_full_insn_num): ... this. Updated all users.
3863 (record_insn_count): Renamed to ...
3864 (record_full_insn_count): ... this. Updated all users.
3865 (record_ops): Renamed to ...
3866 (record_full_ops): ... this. Updated all users.
3867 (record_core_ops): Renamed to ...
3868 (record_full_core_ops): ... this. Updated all users.
3869 (set_record_cmdlist): Renamed to ...
3870 (set_record_full_cmdlist): ... this. Updated all users.
3871 (show_record_cmdlist): Renamed to ...
3872 (show_record_full_cmdlist): ... this. Updated all users.
3873 (record_cmdlist): Renamed to ...
3874 (record_full_cmdlist): ... this. Updated all users.
3875 (record_beneath_to_resume_ops): Renamed to ...
3876 (record_full_beneath_to_resume_ops): ... this. Updated all users.
3877 (record_beneath_to_resume): Renamed to ...
3878 (record_full_beneath_to_resume): ... this. Updated all users.
3879 (record_beneath_to_wait_ops): Renamed to ...
3880 (record_full_beneath_to_wait_ops): ... this. Updated all users.
3881 (record_beneath_to_wait): Renamed to ...
3882 (record_full_beneath_to_wait): ... this. Updated all users.
3883 (record_beneath_to_store_registers_ops): Renamed to ...
3884 (record_full_beneath_to_store_registers_ops): ... this.
3886 (record_beneath_to_store_registers): Renamed to ...
3887 (record_full_beneath_to_store_registers): ... this.
3889 (record_beneath_to_xfer_partial_ops): Renamed to ...
3890 (record_full_beneath_to_xfer_partial_ops): ... this.
3892 (record_beneath_to_xfer_partial): Renamed to ...
3893 (record_full_beneath_to_xfer_partial): ... this.
3895 (record_beneath_to_insert_breakpoint): Renamed to ...
3896 (record_full_beneath_to_insert_breakpoint): ... this.
3898 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
3899 (record_full_beneath_to_stopped_by_watchpoint): ... this.
3901 (record_beneath_to_stopped_data_address): Renamed to ...
3902 (record_full_beneath_to_stopped_data_address): ... this.
3904 (record_beneath_to_async): Renamed to ...
3905 (record_full_beneath_to_async): ... this. Updated all users.
3906 (record_goto_insn): Renamed to ...
3907 (record_full_goto_insn): ... this. Updated all users.
3908 (record_save): Renamed to ...
3909 (record_full_save): ... this. Updated all users.
3910 (record_reg_alloc): Renamed to ...
3911 (record_full_reg_alloc): ... this. Updated all users.
3912 (record_reg_release): Renamed to ...
3913 (record_full_reg_release): ... this. Updated all users.
3914 (record_mem_alloc): Renamed to ...
3915 (record_full_mem_alloc): ... this. Updated all users.
3916 (record_mem_release): Renamed to ...
3917 (record_full_mem_release): ... this. Updated all users.
3918 (record_end_alloc): Renamed to ...
3919 (record_full_end_alloc): ... this. Updated all users.
3920 (record_end_release): Renamed to ...
3921 (record_full_end_release): ... this. Updated all users.
3922 (record_entry_release): Renamed to ...
3923 (record_full_entry_release): ... this. Updated all users.
3924 (record_list_release): Renamed to ...
3925 (record_full_list_release): ... this. Updated all users.
3926 (record_list_release_following): Renamed to ...
3927 (record_full_list_release_following): ... this.
3929 (record_list_release_first): Renamed to ...
3930 (record_full_list_release_first): ... this. Updated all users.
3931 (record_arch_list_add): Renamed to ...
3932 (record_full_arch_list_add): ... this. Updated all users.
3933 (record_get_loc): Renamed to ...
3934 (record_full_get_loc): ... this. Updated all users.
3935 (record_check_insn_num): Renamed to ...
3936 (record_full_check_insn_num): ... this. Updated all users.
3937 (record_arch_list_cleanups): Renamed to ...
3938 (record_full_arch_list_cleanups): ... this. Updated all users.
3939 (record_message): Renamed to ...
3940 (record_full_message): ... this. Updated all users.
3941 (record_message_wrapper): Renamed to ...
3942 (record_full_message_wrapper): ... this. Updated all users.
3943 (record_message_wrapper_safe): Renamed to ...
3944 (record_full_message_wrapper_safe): ... this. Updated all users.
3945 (record_gdb_operation_disable): Renamed to ...
3946 (record_full_gdb_operation_disable): ... this. Updated all users.
3947 (record_hw_watchpoint): Renamed to ...
3948 (record_full_hw_watchpoint): ... this. Updated all users.
3949 (record_exec_insn): Renamed to ...
3950 (record_full_exec_insn): ... this. Updated all users.
3951 (record_restore): Renamed to ...
3952 (record_full_restore): ... this. Updated all users.
3953 (record_async_inferior_event_token): Renamed to ...
3954 (record_full_async_inferior_event_token): ... this.
3956 (record_async_inferior_event_handler): Renamed to ...
3957 (record_full_async_inferior_event_handler): ... this.
3959 (record_core_open_1): Renamed to ...
3960 (record_full_core_open_1): ... this. Updated all users.
3961 (record_open_1): Renamed to ...
3962 (record_full_open_1): ... this. Updated all users.
3963 (record_open): Renamed to ...
3964 (record_full_open): ... this. Updated all users.
3965 (record_close): Renamed to ...
3966 (record_full_close): ... this. Updated all users.
3967 (record_resume_step): Renamed to ...
3968 (record_full_resume_step): ... this. Updated all users.
3969 (record_resumed): Renamed to ...
3970 (record_full_resumed): ... this. Updated all users.
3971 (record_execution_dir): Renamed to ...
3972 (record_full_execution_dir): ... this. Updated all users.
3973 (record_resume): Renamed to ...
3974 (record_full_resume): ... this. Updated all users.
3975 (record_get_sig): Renamed to ...
3976 (record_full_get_sig): ... this. Updated all users.
3977 (record_sig_handler): Renamed to ...
3978 (record_full_sig_handler): ... this. Updated all users.
3979 (record_wait_cleanups): Renamed to ...
3980 (record_full_wait_cleanups): ... this. Updated all users.
3981 (record_wait_1): Renamed to ...
3982 (record_full_wait_1): ... this. Updated all users.
3983 (record_wait): Renamed to ...
3984 (record_full_wait): ... this. Updated all users.
3985 (record_stopped_by_watchpoint): Renamed to ...
3986 (record_full_stopped_by_watchpoint): ... this. Updated all users.
3987 (record_disconnect): Renamed to ...
3988 (record_full_disconnect): ... this. Updated all users.
3989 (record_detach): Renamed to ...
3990 (record_full_detach): ... this. Updated all users.
3991 (record_mourn_inferior): Renamed to ...
3992 (record_full_mourn_inferior): ... this. Updated all users.
3993 (record_kill): Renamed to ...
3994 (record_full_kill): ... this. Updated all users.
3995 (record_stopped_data_address): Renamed to ...
3996 (record_full_stopped_data_address): ... this. Updated all users.
3997 (record_registers_change): Renamed to ...
3998 (record_full_registers_change): ... this. Updated all users.
3999 (record_store_registers): Renamed to ...
4000 (record_full_store_registers): ... this. Updated all users.
4001 (record_xfer_partial): Renamed to ...
4002 (record_full_xfer_partial): ... this. Updated all users.
4003 (record_breakpoint): Renamed to ...
4004 (record_full_breakpoint): ... this. Updated all users.
4005 (record_breakpoint_p): Renamed to ...
4006 (record_full_breakpoint_p): ... this. Updated all users.
4007 (record_breakpoints): Renamed to ...
4008 (record_full_breakpoints): ... this. Updated all users.
4009 (record_sync_record_breakpoints): Renamed to ...
4010 (record_full_sync_record_breakpoints): ... this.
4012 (record_init_record_breakpoints): Renamed to ...
4013 (record_full_init_record_breakpoints): ... this.
4015 (record_insert_breakpoint): Renamed to ...
4016 (record_full_insert_breakpoint): ... this. Updated all users.
4017 (record_remove_breakpoint): Renamed to ...
4018 (record_full_remove_breakpoint): ... this. Updated all users.
4019 (record_can_execute_reverse): Renamed to ...
4020 (record_full_can_execute_reverse): ... this. Updated all users.
4021 (record_get_bookmark): Renamed to ...
4022 (record_full_get_bookmark): ... this. Updated all users.
4023 (record_goto_bookmark): Renamed to ...
4024 (record_full_goto_bookmark): ... this. Updated all users.
4025 (record_async): Renamed to ...
4026 (record_full_async): ... this. Updated all users.
4027 (record_can_async_p): Renamed to ...
4028 (record_full_can_async_p): ... this. Updated all users.
4029 (record_is_async_p): Renamed to ...
4030 (record_full_is_async_p): ... this. Updated all users.
4031 (record_execution_direction): Renamed to ...
4032 (record_full_execution_direction): ... this. Updated all users.
4033 (record_info): Renamed to ...
4034 (record_full_info): ... this. Updated all users.
4035 (record_delete): Renamed to ...
4036 (record_full_delete): ... this. Updated all users.
4037 (record_is_replaying): Renamed to ...
4038 (record_full_is_replaying): ... this. Updated all users.
4039 (record_goto_entry): Renamed to ...
4040 (record_full_goto_entry): ... this. Updated all users.
4041 (record_goto_begin): Renamed to ...
4042 (record_full_goto_begin): ... this. Updated all users.
4043 (record_goto_end): Renamed to ...
4044 (record_full_goto_end): ... this. Updated all users.
4045 (record_goto): Renamed to ...
4046 (record_full_goto): ... this. Updated all users.
4047 (init_record_ops): Renamed to ...
4048 (init_record_full_ops): ... this. Updated all users.
4049 (record_core_resume): Renamed to ...
4050 (record_full_core_resume): ... this. Updated all users.
4051 (record_core_kill): Renamed to ...
4052 (record_full_core_kill): ... this. Updated all users.
4053 (record_core_fetch_registers): Renamed to ...
4054 (record_full_core_fetch_registers): ... this. Updated all users.
4055 (record_core_prepare_to_store): Renamed to ...
4056 (record_full_core_prepare_to_store): ... this. Updated all users.
4057 (record_core_store_registers): Renamed to ...
4058 (record_full_core_store_registers): ... this. Updated all users.
4059 (record_core_xfer_partial): Renamed to ...
4060 (record_full_core_xfer_partial): ... this. Updated all users.
4061 (record_core_insert_breakpoint): Renamed to ...
4062 (record_full_core_insert_breakpoint): ... this. Updated all users.
4063 (record_core_remove_breakpoint): Renamed to ...
4064 (record_full_core_remove_breakpoint): ... this. Updated all users.
4065 (record_core_has_execution): Renamed to ...
4066 (record_full_core_has_execution): ... this. Updated all users.
4067 (init_record_core_ops): Renamed to ...
4068 (init_record_full_core_ops): ... this. Updated all users.
4069 (cmd_record_restore): Renamed to ...
4070 (cmd_record_full_restore): ... this. Updated all users.
4071 (record_save_cleanups): Renamed to ...
4072 (record_full_save_cleanups): ... this. Updated all users.
4073 (cmd_record_start): Renamed to ...
4074 (cmd_record_full_start): ... this. Updated all users.
4075 (set_record_insn_max_num): Renamed to ...
4076 (set_record_full_insn_max_num): ... this. Updated all users.
4077 (set_record_command): Renamed to ...
4078 (set_record_full_command): ... this. Updated all users.
4079 (show_record_command): Renamed to ...
4080 (show_record_full_command): ... this. Updated all users.
4081 (_initialize_record): Renamed to ...
4082 (_initialize_record_full): ... this. Updated all users.
4084 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4086 * record.h: Split into this and ...
4087 * record-full.h: ... this.
4088 * record.c: Split into this and ...
4089 * record-full.c: ... this.
4090 * target.h (target_ops): Add new fields to_info_record,
4091 to_save_record, to_delete_record, to_record_is_replaying,
4092 to_goto_record_begin, to_goto_record_end, to_goto_record.
4093 (target_info_record): New.
4094 (target_save_record): New.
4095 (target_supports_delete_record): New.
4096 (target_delete_record): New.
4097 (target_record_is_replaying): New.
4098 (target_goto_record_begin): New.
4099 (target_goto_record_end): New.
4100 (target_goto_record): New.
4101 * target.c (target_info_record): New.
4102 (target_save_record): New.
4103 (target_supports_delete_record): New.
4104 (target_delete_record): New.
4105 (target_record_is_replaying): New.
4106 (target_goto_record_begin): New.
4107 (target_goto_record_end): New.
4108 (target_goto_record): New.
4109 * record.h: Declare struct cmd_list_element.
4110 (record_cmdlist): New declaration.
4111 (set_record_cmdlist): New declaration.
4112 (show_record_cmdlist): New declaration.
4113 (info_record_cmdlist): New declaration.
4114 (cmd_record_goto): New declaration.
4115 * record.c: Remove unnecessary includes.
4117 (cmd_record_goto): Remove declaration.
4118 (record_cmdlist): Now extern. Initialize.
4119 (set_record_cmdlist): Now extern. Initialize.
4120 (show_record_cmdlist): Now extern. Initialize.
4121 (info_record_cmdlist): Now extern. Initialize.
4122 (find_record_target): New.
4123 (require_record_target): New.
4124 (cmd_record_start): Update.
4125 (cmd_record_delete): Remove target-specific code.
4126 Call target_delete_record.
4127 (cmd_record_stop): Unpush any record target.
4128 (set_record_insn_max_num): Move to record-full.c
4129 (set_record_command): Add comment.
4130 (show_record_command): Add comment.
4131 (info_record_command): Update comment.
4132 Remove target-specific code.
4133 Call the record target's to_info_record.
4134 (cmd_record_start): New.
4135 (cmd_record_goto): Now extern.
4136 Remove target-specific code.
4137 Call target_goto_begin, target_goto_end, or target_goto.
4138 (_initialize_record): Move record target ops initialization to
4140 Change "record" command help text.
4141 Move "record restore", "record set", and "record show" commands to
4143 * Makefile.in (SFILES): Add record-full.c.
4144 (HFILES_NO_SRCDIR): Add record-full.h.
4145 (COMMON_OBS): Add record-full.o.
4146 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
4147 * arm-tdep.c: Include record-full.h.
4148 * i386-linux-tdep.c: Include record-full.h instead of record.h.
4149 * i386-tdep.c: Include record-full.h.
4150 * infrun.c: Include record-full.h.
4151 * linux-record.c: Include record-full.h.
4152 * moxie-tdep.c: Include record-full.h.
4153 * record-full.c: Include record-full.h.
4154 Change module comment.
4155 (set_record_full_cmdlist): New.
4156 (show_record_full_cmdlist): New.
4157 (record_full_cmdlist): New.
4158 (record_goto_insn): New declaration.
4159 (record_save): New declaration.
4160 (record_check_insn_num): Change query string.
4162 (record_delete): New.
4163 (record_is_replaying): New.
4164 (record_goto_entry): New.
4165 (record_goto_begin): New.
4166 (record_goto_end): New.
4168 (init_record_ops): Update.
4169 (init_record_core_ops): Update.
4170 (cmd_record_save): Rename to record_save. Remove target and arg checks.
4171 (cmd_record_start): New.
4172 (set_record_insn_max_num): Moved from record.c
4173 (set_record_full_command): New.
4174 (show_record_full_command): New.
4175 (_initialize_record_full): New.
4177 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4179 * target.h (add_deprecated_target_alias): New.
4180 * target.c (add_deprecated_target_alias): New.
4182 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4184 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
4186 (linux_supports_btrace): Add kernel and
4188 (kernel_supports_btrace): New function.
4189 (cpu_supports_btrace): New function.
4190 (intel_supports_btrace): New function.
4192 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4194 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
4195 * remote.c: Include btrace.h.
4196 (struct btrace_target_info): New struct.
4197 (remote_supports_btrace): New function.
4198 (send_Qbtrace): New function.
4199 (remote_enable_btrace): New function.
4200 (remote_disable_btrace): New function.
4201 (remote_teardown_btrace): New function.
4202 (remote_read_btrace): New function.
4203 (init_remote_ops): Add btrace ops.
4204 (enum <unnamed>): Add btrace packets.
4205 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
4206 (_initialize_remote): Add packet configuration for branch tracing.
4208 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4210 * features/btrace.dtd: New file.
4211 * Makefile.in (XMLFILES): Add btrace.dtd.
4212 * btrace.h (parse_xml_btrace): New declaration.
4213 * btrace.c: Include xml-support.h.
4214 (parse_xml_btrace): New function.
4215 (parse_xml_btrace_block): New function.
4216 (block_attributes): New struct.
4217 (btrace_attributes): New struct.
4218 (btrace_children): New struct.
4219 (btrace_elements): New struct.
4221 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4223 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
4224 (amd64_linux_enable_btrace): New.
4225 (amd64_linux_disable_btrace): New.
4226 (amd64_linux_teardown_btrace): New.
4227 (_initialize_amd64_linux_nat): Initialize btrace ops.
4228 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
4229 (i386_linux_enable_btrace): New.
4230 (i386_linux_disable_btrace): New.
4231 (i386_linux_teardown_btrace): New.
4232 (_initialize_i386_linux_nat): Initialize btrace ops.
4233 * config/i386/linux.mh: Add linux-btrace.o.
4234 * config/i386/linux64.mh: Add linux-btrace.o.
4236 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4238 * common/linux_btrace.h: New file.
4239 * common/linux_btrace.c: New file.
4240 * Makefile.in (SFILES): Add btrace.c.
4241 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
4242 (COMMON_OBS): Add btrace.o.
4243 (linux-btrace.o): New rule.
4245 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4247 * target.h: Include btrace.h.
4248 (struct target_ops) <to_supports_btrace, to_enable_btrace,
4249 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
4250 * target.c (target_supports_btrace): New function.
4251 (target_enable_btrace): New function.
4252 (target_disable_btrace): New function.
4253 (target_teardown_btrace): New function.
4254 (target_read_btrace): New function.
4255 * btrace.h: New file.
4256 * btrace.c: New file.
4257 * Makefile.in: Add btrace.c.
4258 * gdbthread.h: Include btrace.h.
4259 (struct thread_info): Add btrace field.
4260 * thread.c: Include btrace.h.
4261 (clear_thread_inferior_resources): Call target_teardown_btrace.
4262 * common/btrace-common.h: New file.
4264 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4266 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
4267 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
4268 kill_status to outer block.
4270 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4272 Fix entry-values if the callee called a noreturn function.
4273 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4274 get_frame_address_in_block. Add new comment.
4276 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4278 Fix entry-values in C++ across CUs.
4279 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
4280 lookup_minimal_symbol. Add a comment.
4282 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
4285 2013-03-08 Yao Qi <yao@codesourcery.com>
4287 * tracepoint.c (_initialize_tracepoint): Indent the code.
4289 2013-03-08 Pedro Alves <palves@redhat.com>
4291 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
4292 (parse_find_args, find_command): Change type of pattern buffer
4293 locals to 'gdb_byte *'.
4295 2013-03-08 Stan Shebs <stan@codesourcery.com>
4296 Hafiz Abid Qadeer <abidh@codesourcery.com>
4298 * NEWS: Mention set and show trace-buffer-size commands.
4300 * target.h (struct target_ops): New method
4301 to_set_trace_buffer_size.
4302 (target_set_trace_buffer_size): New macro.
4303 * target.c (update_current_target): Set up new method.
4304 * tracepoint.c (trace_buffer_size): New global.
4305 (start_tracing): Send it to the target.
4306 (set_trace_buffer_size): New function.
4307 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
4308 * remote.c (remote_set_trace_buffer_size): New function.
4309 (_initialize_remote): Use it.
4310 (QTBuffer:size) New remote command.
4311 (PACKET_QTBuffer_size): New enum.
4312 (remote_protocol_features): Add an entry for
4313 PACKET_QTBuffer_size.
4315 2013-03-08 Tom Tromey <tromey@redhat.com>
4317 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
4320 2013-03-07 Pedro Alves <palves@redhat.com>
4322 * target.c (target_read_stralloc, target_fileio_read_alloc):
4323 *Cast pointer to 'gdb_byte *' in target call.
4325 2013-03-07 Pedro Alves <palves@redhat.com>
4327 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
4330 2013-03-07 Keith Seitz <keiths@redhat.com>
4332 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
4333 (trace_pass_command): Likewise.
4334 * cli/cli-cmds.c: Include cli/cli-utils.h.
4335 (source_command): Use skip-spaces.
4336 (disassemble_command): Likewise.
4337 * findcmd.c: Include cli/cli-utils.h.
4338 (parse_find_args): Use skip_spaces.
4339 * go32-nat.c: Include cli/cli-utils.h.
4340 (go32_sldt): Use skip_spaces.
4341 (go32_sgdt): Likewise.
4342 (go32_sidt): Likewise.
4343 (go32_pde): Likewise.
4344 (go32_pte): Likewise.
4345 (go32_pte_for_address): Likewise.
4346 * infcmd.c: Include cli/cli-utils.h.
4347 (registers_info): Use skip_spaces.
4348 * linux-tdep.c (read_mapping): Use skip_spaces_const.
4349 (linux_info_proc): Likewise.
4350 * linux-thread-db.c: Include cli/cli-utils.h.
4351 (info_auto_load_libthread_db): Use skip_spaces_const.
4352 * m32r-rom.c: Include cli/cli-utils.h.
4353 (m32r_upload_command): Use skip_spaces.
4354 * maint.c: Include cli/cli-utils.h.
4355 (maintenance_translate_address): Use skip_spaces.
4356 * mi/mi-parse.c: Include cli/cli-utils.h.
4357 (mi_parse_argv): Use skip_spaces.
4358 (mi_parse): Likewise.
4359 * minsyms.c: Include cli/cli-utils.h.
4360 (msymbol_hash_iw): Use skip_spaces_const.
4361 * objc-lang.c: Include cli/cli-utils.h.
4362 (parse_selector): Use skip_spaces.
4363 (parse_method): Likewise.
4364 * python/python.c: Include cli/cli-utils.h.
4365 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
4366 (python_command)[HAVE_PYTHON]: Likewise.
4367 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
4368 * remote-m32r-sdi.c: Include cli/cli-utils.h.
4369 (m32r_load): Use skip_spaces.
4370 * serial.c: Include cli/cli-utils.h.
4371 (serial_open): Use skip_spaces_const.
4372 * stack.c: Include cli/cli-utils.h.
4373 (parse_frame_specification_1): Use skip_spaces_const.
4374 * symfile.c: Include cli/cli-utils.h.
4375 (set_ext_lang_command): Use skip_spaces.
4376 * symtab.c: Include cli/cli-utils.h.
4377 (rbreak_command): Use skip_spaces.
4378 * thread.c (thread_name_command): Use skip_spaces.
4379 * tracepoint.c (validate_actionline): Use skip_spaces.
4380 (encode_actions_1): Likewise.
4381 (trace_find_range_command): Likewise.
4382 (trace_find_outside_command): Likewise.
4383 (trace_dump_actions): Likewise.
4385 2013-03-07 Pedro Alves <palves@redhat.com>
4387 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
4388 * expprint.c (print_subexp_standard): Likewise.
4389 * utils.c (host_char_to_target): Likewise.
4390 * valprint.c (generic_emit_char, generic_printstr): Likewise.
4391 * varobj.c (value_get_print_value): Change type of local to char*.
4392 Cast it gdb_byte * in call to language printer.
4394 2013-03-07 Pedro Alves <palves@redhat.com>
4396 * charset.c (struct wchar_iterator) <input>: Change type to 'const
4398 (make_wchar_iterator): Remove cast to char*.
4399 (wchar_iterate): Change type of local.
4401 2013-03-07 Pedro Alves <palves@redhat.com>
4403 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
4404 for 'regcache->register_status'.
4406 2013-03-07 Pedro Alves <palves@redhat.com>
4408 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
4411 2013-03-07 Pedro Alves <palves@redhat.com>
4413 * stap-probe.c (handle_stap_probe): Add cast to char*.
4415 2013-03-07 Pedro Alves <palves@redhat.com>
4417 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
4418 RECORD_MSGRCV>: Pass a signed variable to
4419 regcache_raw_read_signed, instead of an unsigned one.
4421 2013-03-07 Pedro Alves <palves@redhat.com>
4423 * remote-notif.c (notif_debug): Change type to int.
4424 * remote-notif.h (notif_debug): Likewise.
4426 2013-03-07 Pedro Alves <palves@redhat.com>
4428 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
4430 2013-03-07 Pedro Alves <palves@redhat.com>
4432 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
4433 * remote.h (hex2bin, bin2hex): ... here.
4434 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
4436 2013-03-07 Eli Zaretskii <eliz@gnu.org>
4438 * utils.c (initialize_utils): Improve doc strings of "set/show
4439 width", "set/show height", and "set/show pagination".
4441 2013-03-06 Keith Seitz <keiths@redhat.com>
4443 * ax-gdb.c (gen_printf): Make FORMAT const.
4444 * ax-gdb.h (gen_printf): Likewise.
4445 * ax-general.c (ax_string): Make STR const.
4446 * ax.h (ax_string): Likewise.
4448 2013-03-06 Doug Evans <dje@google.com>
4450 * elfread.c (elf_symfile_read): Move debugging printf to more
4453 2013-03-06 Pedro Alves <palves@redhat.com>
4455 * python/py-utils.c (target_string_to_unicode): Delete function.
4456 * python/python-internal.h (target_string_to_unicode): Delete
4459 2013-03-06 Pierre Muller <muller@sourceware.org>
4461 * linespec.c (get_current_search_block): ARI fix, use (void)
4462 for empty parameter list.
4464 2013-03-05 Doug Evans <dje@google.com>
4466 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
4467 of old ada_lookup_symbol_list. In !full_search case, don't
4469 (ada_lookup_symbol_list): Delete arg full_search, all callers
4470 updated. Call ada_lookup_symbol_list_worker.
4471 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
4472 * ada-lang.h (ada_lookup_symbol_list): Update.
4473 * language.h (language_defn): Update comment for
4474 la_iterate_over_symbols.
4475 * linespec.c (iterate_over_file_blocks): New function.
4476 (iterate_over_all_matching_symtabs): Call it.
4477 (lookup_prefix_sym): Ditto.
4478 (get_current_search_block): New function.
4479 (get_search_block): Delete.
4480 (find_label_symbols): Call get_current_search_block.
4481 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
4482 * symtab.c (iterate_over_symbols): Don't search superblocks.
4484 2013-03-05 Yao Qi <yao@codesourcery.com>
4486 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
4487 parameter VAR's type from "unsigned int" to "int".
4488 * command.h (var_zuinteger_unlimited): Update its comments.
4489 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
4491 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
4493 * NEWS: Mention new target x86_64-*-cygwin*.
4495 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
4497 * configure.host: Add x86_64-*-cygwin* as host.
4498 * configure.tgt: Add x86_64-*-cygwin* as target.
4499 * config/i386/cygwin64.mh: New file.
4501 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4503 * linespec.c (decode_line_2): Fix duplicate request off by two message.
4505 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4507 * linespec.c (struct linespec_canonical_name): New.
4508 (struct linespec_state): Change canonical_names type to it.
4509 (add_sal_to_sals): Change variable canonical_name to canonical. Change
4510 xrealloc element size. Initialize the different CANONICAL fields.
4511 (canonical_to_fullform): New.
4512 (filter_results): Use it. Add variables canonical, fullform and
4514 (struct decode_line_2_item, decode_line_2_compare_items): New.
4515 (decode_line_2): Remove variables iter and item_names, add variables
4516 items and items_count. Modify the code for these new variables.
4518 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
4520 * coff-pe-read.c (read_pe_exported_syms): Don't return without
4523 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
4525 * tracepoint.c (build_traceframe_info): Add code for byte order.
4527 2013-03-02 Kevin Buettner <kevinb@redhat.com>
4529 * v850-tdep.c: (v850e2_register_name): Revise system register
4530 names to match current V850E2M architecture specifications.
4531 Update register number enum comments too.
4533 2013-03-01 Jiong Wang <jiwang@tilera.com>
4534 Pedro Alves <palves@redhat.com>
4536 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
4538 (tilegx_skip_prologue): Limit prologue analysis to section end.
4540 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4542 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
4545 2013-03-01 Pedro Alves <palves@redhat.com>
4547 Use gdb_byte for bytes from the program being debugged.
4549 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
4550 Change type of local 'buf' to gdb_byte.
4551 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
4552 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
4553 * cris-tdep.c (cris_sigcontext_addr)
4554 (cris_sigtramp_frame_unwind_cache): Likewise.
4555 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
4556 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
4558 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
4559 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
4560 (hppa32_hpux_search_dummy_call_sequence)
4561 (hppa_hpux_supply_save_state): Likewise.
4562 * hppa-linux-tdep.c (insns_match_pattern)
4563 (hppa_linux_find_global_pointer): Likewise.
4564 * hppa-tdep.c (hppa_in_function_epilogue_p)
4565 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
4566 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
4567 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
4568 (i386fbsd_collect_uthread): Likewise.
4569 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
4570 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
4571 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
4572 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
4573 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
4574 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
4575 (ia64_libunwind_frame_prev_register)
4576 (ia64_libunwind_sigtramp_frame_this_id)
4577 (ia64_find_global_pointer_from_dynamic_section)
4578 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
4579 (ia64_unwind_pc): Likewise.
4580 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
4581 * m68hc11-tdep.c (m68hc11_push_dummy_call)
4582 (m68hc11_extract_return_value): Likewise.
4583 * m68klinux-nat.c (fetch_register, store_register): Likewise.
4584 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
4585 (mep_get_insn, mep_push_dummy_call): Likewise.
4586 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
4587 (mips_linux_in_dynsym_stub): Likewise.
4588 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
4589 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
4590 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
4592 * remote-mips.c (mips_set_register): Likewise.
4593 * remote-sim.c (gdbsim_fetch_register): Likewise.
4594 * score-tdep.c (score7_fetch_inst): Change type of parameter
4595 'memblock' and local 'buf' to gdb_byte.
4596 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
4597 Change type of local 'buf' to gdb_byte. Adjust.
4598 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
4600 (score7_analyze_prologue): Change type of 'memblock' and
4601 'memblock_ptr' locals to gdb_byte*.
4602 * sh64-tdep.c (sh64_extract_return_value)
4603 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
4604 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
4605 * solib-pa64.c (pa64_solib_create_inferior_hook)
4606 (pa64_open_symbol_file_object): Remove local 'buf'.
4607 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
4608 (som_open_symbol_file_object): Likewise.
4609 * solib-spu.c (spu_current_sos): Likewise.
4610 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4611 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
4612 (spu_store_registers): Likewise.
4613 * target.c (debug_print_register): Likewise.
4614 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
4615 * xstormy16-tdep.c (xstormy16_store_return_value)
4616 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
4617 (xstormy16_find_jmp_table_entry): Likewise.
4619 2013-03-01 Jiong Wang <jiwang@tilera.com>
4621 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
4622 (tilegx_gdbarch_init): Install it.
4624 2013-02-28 Tom Tromey <tromey@redhat.com>
4626 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
4629 2013-02-28 Doug Evans <dje@google.com>
4631 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
4632 * python/python.c (gdbpy_find_pc_line): Ditto.
4634 2013-02-28 Tom Tromey <tromey@redhat.com>
4636 * contrib/excheck.py: New file.
4637 * contrib/exsummary.py: New file.
4638 * contrib/gcc-with-excheck: New file.
4640 2013-02-28 Tom Tromey <tromey@redhat.com>
4642 * python/python.c (gdbpy_print_stack): Call begin_line and
4643 fprintf_filtered inside TRY_CATCH.
4645 2013-02-28 Tom Tromey <tromey@redhat.com>
4647 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
4650 2013-02-28 Tom Tromey <tromey@redhat.com>
4652 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
4653 frame_object_to_frame_info inside TRY_CATCH.
4655 2013-02-28 Tom Tromey <tromey@redhat.com>
4657 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
4660 2013-02-28 Tom Tromey <tromey@redhat.com>
4662 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
4664 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
4666 * windows-nat.c: Throughout, fix format strings and casts of
4667 printf-like functions to avoid type related warnings on all
4669 (handle_output_debug_string): Fetch context information address
4670 from debug string using string_to_core_addr.
4672 2013-02-27 Jiong Wang <jiwang@tilera.com>
4674 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
4675 * regformats/reg-tilegx32.dat: New.
4677 2013-02-27 Jiong Wang <jiwang@tilera.com>
4679 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
4681 2013-02-27 Jiong Wang <jiwang@tilera.com>
4683 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
4685 2013-02-27 Yao Qi <yao@codesourcery.com>
4686 Pedro Alves <palves@redhat.com>
4688 * tracepoint.c (tfile_trace_find): For tfind
4689 pc/tp/range/outside, look for the next trace frame instead of
4690 always starting from frame 0.
4692 2013-02-26 Anthony Green <green@moxielogic.com>
4694 * configure.tgt: Add support for moxie-*-rtems* target.
4696 2013-02-25 Pedro Alves <palves@redhat.com>
4698 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
4701 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
4703 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
4704 if $fp is used as the virtual frame pointer.
4706 2013-02-23 Alan Modra <amodra@gmail.com>
4708 * elfread.c (elf_symtab_read): Do not use udata.p here to find
4710 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
4711 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
4712 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
4713 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
4715 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4718 * elfread.c (build_id_bfd_get): Make the return type const.
4719 (build_id_verify): Make the check parameter const.
4720 (build_id_to_debug_filename): Make the build_id parameter and variable
4722 (find_separate_debug_file_by_buildid): Make the variable build_id const.
4724 2013-02-21 Alan Modra <amodra@gmail.com>
4726 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
4728 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
4730 Add a new method 'disassemble' to gdb.Architecture class.
4731 * python/py-arch.c (archpy_disassmble): Implementation of the
4732 new method gdb.Architecture.disassemble.
4733 (arch_object_methods): Add entry for the new method.
4735 2013-02-20 Jiong Wang <jiwang@tilera.com>
4737 * MAINTAINERS (Write After Approval): Add myself to the list.
4739 2013-02-19 Pedro Alves <palves@redhat.com>
4741 Garbage collect 'struct monitor_ops'::load_routine.
4743 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
4744 * monitor.c (monitor_load): No longer call
4745 current_monitor->load_routine.
4746 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
4747 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
4748 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
4750 2013-02-19 Pedro Alves <palves@redhat.com>
4754 Harmonize with generic_load.
4756 * monitor.c: Include "readline/readline.h".
4757 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
4758 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
4759 long/strtol for the 'load_offset' local. Error out if no argument
4760 is given or if too many arguments are given. Tilde expand the
4761 passed in file name.
4763 2013-02-19 Kai Tietz <ktietz@redhat.com>
4766 * symfile.c (load_section_data): Change type of load_offset
4768 (generic_load): User strtoulst instead of strtoul for conversion
4771 2013-02-19 Jiong Wang <jiwang@tilera.com>
4773 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
4774 for return address, "lr" register, saved on stack.
4775 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
4776 after we invoke tilegx_analyze_prologue.
4778 2013-02-19 Jiong Wang <jiwang@tilera.com>
4780 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
4782 2013-02-19 Jiong Wang <jiwang@tilera.com>
4784 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
4786 2013-02-19 Jiong Wang <jiwang@tilera.com>
4788 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4789 (tilegx_write_pc): New function.
4790 (tilegx_cannot_reference_register): Return zero if REGNO
4791 is TILEGX_FAULTNUM_REGNUM.
4792 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
4793 (tilegx_register_name): Add handling of "faultnum" register.
4794 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
4795 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
4796 handling of TILEGX_FAULTNUM_REGNUM.
4797 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
4799 2013-02-19 Jiong Wang <jiwang@tilera.com>
4801 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
4802 should be aligned to 64bit.
4804 2013-02-19 Kai Tietz <ktietz@redhat.com>
4806 * windows-nat.c (windows_xfer_memory): Fix debug-output
4809 2013-02-19 Lei Liu <lei.liu2@windriver.com>
4811 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
4812 Don't check DSP register number if HAVE_DSP is not set.
4814 2013-02-19 Alan Modra <amodra@gmail.com>
4816 * elfread.c (struct build_id): Delete. Use struct elf_build_id
4817 throughout file instead.
4818 (build_id_bfd_get): Update to use new elf_tdata build_id field.
4819 Don't xmalloc return value.
4820 (build_id_verify): Similarly. Don't xfree.
4821 (build_id_to_debug_filename): Update.
4822 (find_separate_debug_file_by_buildid): Update, don't xfree.
4824 2013-02-18 Tom Tromey <tromey@redhat.com>
4827 * dwarf2read.c (read_subrange_type): Use result of
4830 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
4832 * frame.c: Remove one extra white space after #include
4835 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4837 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
4839 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4841 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
4842 and dir commands into an if block.
4844 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
4846 * python/py-breakpoint (struct pybp_code): Use int instead of
4849 2013-02-15 Pedro Alves <pedro@codesourcery.com>
4850 Hafiz Abid Qadeer <abidh@codesourcery.com>
4852 * NEWS: Mention new field "trace-file".
4853 * tracepoint.c (trace_status_mi): Output "trace-file" field.
4854 (tfile_open): Record the trace file's filename in the trace
4856 (tfile_files_info): Mention the name of the trace file.
4857 Check the "filename" field explicitely.
4858 (trace_status_command): Explicitely check "filename" field.
4859 (trace_find_command): Ditto.
4860 (trace_find_pc_command): Ditto.
4861 (trace_find_tracepoint_command): Ditto.
4862 (trace_find_line_command): Ditto.
4863 (trace_find_range_command): Ditto.
4864 (trace_find_outside_command): Ditto.
4865 * tracepoint.h (struct trace_status) <from_file>: Rename it
4866 to "filename" and make it hold the trace file's filename
4867 instead of a boolean.
4868 * remote.c (remote_get_trace_status): Initialize "filename"
4869 field with NULL instead of 0.
4871 2013-02-15 Yao Qi <yao@codesourcery.com>
4873 * remote.c: Fix a typo.
4875 2013-02-14 Pierre Muller <muller@sourceware.org>
4877 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
4879 2013-02-14 Pedro Alves <palves@redhat.com>
4881 * utils.c (savestring): Don't #undef it. Move function to
4882 common/common-utils.c.
4883 * common/common-utils.c: Include gdb_string.h.
4884 (savestring): Move here from utils.c.
4885 * common/common-utils.h (savestring): Declare.
4887 2013-02-14 Pedro Alves <palves@redhat.com>
4889 * utils.c (savestring): Rename parameter 'size' to 'len'.
4891 2013-02-14 Pedro Alves <palves@redhat.com>
4892 Yufeng Zhang <yufeng.zhang@arm.com>
4894 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
4895 (aarch64_inferior_data, struct aarch64_inferior_data):
4897 (struct aarch64_process_info): New.
4898 (aarch64_process_list): New global.
4899 (aarch64_find_process_pid, aarch64_add_process)
4900 (aarch64_process_info_get): New functions.
4901 (aarch64_inferior_data_get): Delete.
4902 (aarch64_process_info_get): New function.
4903 (aarch64_forget_process): New function.
4904 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
4905 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
4906 aarch64_get_debug_reg_state.
4907 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
4908 instead of linux_nat_iterate_watchpoint_lwps.
4909 (aarch64_linux_new_fork): New function.
4910 (aarch64_linux_child_post_startup_inferior): Use
4911 aarch64_forget_process instead of aarch64_init_debug_reg_state.
4912 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
4913 (aarch64_linux_remove_hw_breakpoint)
4914 (aarch64_handle_aligned_watchpoint)
4915 (aarch64_handle_unaligned_watchpoint)
4916 (aarch64_linux_insert_watchpoint)
4917 (aarch64_linux_remove_watchpoint)
4918 (aarch64_linux_stopped_data_address): Adjust to pass the current
4919 process id to aarch64_debug_reg_state.
4920 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
4921 linux_nat_new_fork hook, and aarch64_forget_process as
4922 linux_nat_forget_process hook; remove the call to
4923 register_inferior_data_with_cleanup.
4925 2013-02-14 Pedro Alves <palves@redhat.com>
4927 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
4928 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
4931 2013-02-14 Pedro Alves <pedro@codesourcery.com>
4932 Hafiz Abid Qadeer <abidh@codesourcery.com>
4934 * tracepoint.h (validate_trace_state_variable_name): Declare.
4935 * tracepoint.c (validate_trace_state_variable_name): New.
4936 (trace_variable_command): Parse the trace state variable's name
4937 without using parse_expression. Do several validations.
4938 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
4939 trace state variable's name with parse_expression. Validate it.
4941 2013-02-14 Yao Qi <yao@codesourcery.com>
4943 * infcmd.c (breakpoint_proceeded): Remove it.
4945 2013-02-14 Yao Qi <yao@codesourcery.com>
4947 * tracepoint.c (end_actions_pseudocommand): Make it static.
4948 (while_stepping_pseudocommand): Likewise.
4949 * tracepoint.h (end_actions_pseudocommand): Remove the
4951 (while_stepping_pseudocommand): Likewise.
4953 2013-02-14 Yao Qi <yao@codesourcery.com>
4955 * cli/cli-decode.c (help_cmd): Remove the declaration of
4957 (help_all): Likewise.
4959 2013-02-13 Pedro Alves <palves@redhat.com>
4961 * amd64-linux-nat.c (update_debug_registers_callback):
4963 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
4965 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
4966 i386_debug_reg_state.
4967 (amd64_linux_new_fork): New function.
4968 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
4969 linux_nat_new_fork hook, and i386_forget_process as
4970 linux_nat_forget_process hook.
4971 * i386-linux-nat.c (update_debug_registers_callback):
4973 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
4975 (i386_linux_prepare_to_resume): Pass the lwp's pid to
4976 i386_debug_reg_state.
4977 (i386_linux_new_fork): New function.
4978 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
4979 linux_nat_new_fork hook, and i386_forget_process as
4980 linux_nat_forget_process hook.
4981 * i386-nat.c (i386_init_dregs): Delete.
4982 (i386_inferior_data, struct i386_inferior_data):
4984 (struct i386_process_info): New.
4985 (i386_process_list): New global.
4986 (i386_find_process_pid, i386_add_process, i386_process_info_get):
4988 (i386_inferior_data_get): Delete.
4989 (i386_process_info_get): New function.
4990 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
4991 (i386_forget_process): New function.
4992 (i386_cleanup_dregs): Rewrite.
4993 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
4994 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
4995 (i386_stopped_data_address, i386_insert_hw_breakpoint)
4996 (i386_remove_hw_breakpoint): Adjust to pass the current process id
4997 to i386_debug_reg_state.
4998 (i386_use_watchpoints): Don't register inferior data.
4999 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
5001 (i386_forget_process): Declare.
5002 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
5003 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
5005 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
5006 (add_initial_lwp): New, factored out from ...
5007 (add_lwp): ... this. Don't check the number of lwps before
5008 calling linux_nat_new_thread.
5009 (linux_nat_iterate_watchpoint_lwps): Delete.
5010 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
5011 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
5013 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
5015 (linux_nat_kill, linux_nat_mourn_inferior): Call
5016 linux_nat_forget_process.
5017 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5018 (linux_nat_forget_process): New functions.
5019 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
5021 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
5022 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
5024 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5025 (linux_nat_forget_process): New declarations.
5027 * amd64fbsd-nat.c (super_mourn_inferior): New global.
5028 (amd64fbsd_mourn_inferior): New function.
5029 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
5030 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
5032 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5034 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5037 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5039 * aarch64-linux-nat.c (debug_reg_change_callback)
5040 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
5043 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5045 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
5048 2013-02-13 Pedro Alves <palves@redhat.com>
5049 Hafiz Abid Qadeer <abidh@codesourcery.com>
5051 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
5053 2013-02-12 Tom Tromey <tromey@redhat.com>
5056 * c-exp.y (lex_one_token): Initialize other fields of yylval on
5058 (classify_inner_name): Remove 'first_name' argument, add
5059 'context'. Remove unused variable.
5060 (yylex): Explicitly maintain the context type. Exit loop earlier
5061 if NAME result is seen.
5063 2013-02-12 Pedro Alves <palves@redhat.com>
5065 * amd64-darwin-tdep.c: Add (C) after Copyright.
5066 * cli/cli-cmds.h: Ditto.
5067 * cli/cli-decode.c: Ditto.
5068 * cli/cli-decode.h: Ditto.
5069 * cli/cli-dump.c: Ditto.
5070 * cli/cli-dump.h: Ditto.
5071 * cli/cli-interp.c: Ditto.
5072 * cli/cli-logging.c: Ditto.
5073 * cli/cli-script.c: Ditto.
5074 * cli/cli-script.h: Ditto.
5075 * cli/cli-setshow.c: Ditto.
5076 * cli/cli-setshow.h: Ditto.
5077 * cli/cli-utils.c: Ditto.
5078 * cli/cli-utils.h: Ditto.
5079 * config/alpha/nm-osf3.h: Ditto.
5080 * config/djgpp/djconfig.sh: Ditto.
5081 * config/i386/nm-fbsd.h: Ditto.
5082 * config/i386/nm-i386gnu.h: Ditto.
5083 * config/nm-linux.h: Ditto.
5084 * config/nm-nto.h: Ditto.
5085 * config/rs6000/nm-rs6000.h: Ditto.
5086 * config/sparc/nm-sol2.h: Ditto.
5087 * darwin-nat-info.c: Ditto.
5090 * gdb-demangle.h: Ditto.
5091 * i386-darwin-nat.c: Ditto.
5092 * i386-darwin-tdep.c: Ditto.
5093 * linux-fork.h: Ditto.
5094 * m32c-tdep.c: Ditto.
5095 * microblaze-linux-tdep.c: Ditto.
5096 * microblaze-rom.c: Ditto.
5097 * microblaze-tdep.c: Ditto.
5098 * microblaze-tdep.h: Ditto.
5099 * mips-linux-tdep.h: Ditto.
5100 * ppc-ravenscar-thread.c: Ditto.
5101 * ppc-ravenscar-thread.h: Ditto.
5102 * prologue-value.c: Ditto.
5103 * prologue-value.h: Ditto.
5104 * ravenscar-thread.c: Ditto.
5105 * ravenscar-thread.h: Ditto.
5106 * sparc-ravenscar-thread.c: Ditto.
5107 * sparc-ravenscar-thread.h: Ditto.
5108 * tilegx-linux-tdep.c: Ditto.
5109 * unwind_stop_reasons.def: Ditto.
5110 * windows-nat.h: Ditto.
5111 * xtensa-linux-tdep.c: Ditto.
5112 * xtensa-xtregs.c: Ditto.
5113 * regformats/regdat.sh: Ditto.
5114 * regformats/regdef.h: Ditto.
5116 2013-02-12 Pedro Alves <palves@redhat.com>
5118 * break-catch-sig.c: Update copyright years.
5120 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
5122 Add support for a destructor for ui_out data and use it to
5123 provide a ui_out destructor.
5124 * ui-out.h: Declare the new ui_out destructor.
5125 (ui_out_impl): Add a field for data destructor in ui_out_impl.
5126 * ui-out.c (default_data_destroy): Add a default data destructor
5128 (default_ui_out_impl): Set the new data_destroy field to
5129 default_data_destroy
5130 (uo_data_destroy): Local function which invokes the data
5131 destructor if present.
5132 (clear_table): Local function which clears the table data of a
5134 (ui_out_destroy): Public function which frees a ui_out object.
5135 (ui_out_table_end): Use the new clear_table function.
5136 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
5138 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
5141 2013-02-11 Doug Evans <dje@google.com>
5143 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
5144 (printf_decfloat): New function. Broken out from ui_printf.
5145 Remove unnecessary code to shift the entire format string down.
5146 (printf_pointer): New function.
5147 (ui_printf): Code to print C strings, wide C strings, decfloats,
5148 and pointers moved to separate functions.
5150 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
5152 * valops.c (value_assign): Handling bitfield offset in
5153 `lval_internalvar_component' case.
5155 2013-02-08 Doug Evans <dje@google.com>
5157 * common/format.c (parse_format_string): Fix whitespace.
5159 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
5161 * stack.c (return_command): Work around uninitialized variable
5164 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
5166 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
5167 number of the registers from 36 to 34.
5169 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
5171 * NEWS: Mention new AArch64 native and target support.
5173 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
5175 * MAINTAINERS (Write After Approval): Add myself.
5177 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
5178 Marcus Shawcroft <marcus.shawcroft@arm.com>
5179 Nigel Stephens <nigel.stephens@arm.com>
5180 Yufeng Zhang <yufeng.zhang@arm.com>
5182 * aarch64-linux-nat.c: New file.
5183 * config/aarch64/linux.mh: New file.
5184 * configure.host: Add AArch64.
5185 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
5187 2013-02-07 Doug Evans <dje@google.com>
5189 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
5190 disassemble command.
5192 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
5194 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
5195 set_gdbarch_fetch_tls_load_module_address.
5197 2013-02-06 David S. Miller <davem@davemloft.net>
5199 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
5200 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5201 * value.c (struct_return_convention): New function.
5202 (using_struct_return): Implement in terms of struct_return_convention.
5203 * value.h (struct_return_convention): Declare.
5204 * stack.c (return_command): Allow successful overriding of the return
5205 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5207 2013-02-06 Tom Tromey <tromey@redhat.com>
5209 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
5210 outside of TRY_CATCH.
5212 2013-02-06 Yao Qi <yao@codesourcery.com>
5214 * mi/mi-interp.c: Include "tracepoint.h".
5215 (mi_tsv_modified): Declare.
5216 (mi_tsv_created, mi_tsv_deleted): Update declaration.
5217 (mi_interpreter_init): Call observer_attach_tsv_modified.
5218 (mi_tsv_modified): New.
5219 (mi_tsv_created, mi_tsv_deleted): Update.
5220 * tracepoint.c (trace_variable_command): Call
5221 observer_notify_tsv_modified if the initial value of tsv is
5223 (delete_trace_state_variable): Call
5224 observer_notify_tsv_deleted earlier.
5225 (trace_variable_command): Caller update.
5226 (create_tsv_from_upload): Likewise.
5227 * observer.sh: Declare "struct trace_state_variable".
5229 * NEWS: Mention the new MI notification "=tsv-modified".
5231 2013-02-05 Doug Evans <dje@google.com>
5233 * completer.c (location_completer): Fix typo in comment.
5235 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5237 * breakpoint.c (add_location_to_breakpoint): Insert the location with
5240 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
5242 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
5243 Refactor if statement to avoid trailing || operator.
5245 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
5247 * NEWS: Add PowerPC FreeBSD as a new native configuration.
5249 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
5251 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
5252 * configure.host: Add powerpc*-*-freebsd* target.
5253 * configure.tgt: Add target info for powerpc*-*-freebsd*.
5254 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
5255 * config/powerpc/fbsd.mh: New file.
5257 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
5258 Denys Vlasenko <dvlasenk@redhat.com>
5259 Pedro Alves <palves@redhat.com>
5261 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
5262 (struct elf_internal_linux_prpsinfo): Forward declare.
5263 * gdbarch.h, gdbarch.c: Regenerate.
5264 * linux-tdep.c: Include `cli/cli-utils.h'.
5265 (linux_fill_prpsinfo): New function.
5266 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
5267 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
5268 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
5269 depending on gdbarch pointer bitness.
5270 * ppc-linux-tdep.c: Include elf-bfd.h.
5271 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
5274 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5275 Marcus Shawcroft <marcus.shawcroft@arm.com>
5276 Nigel Stephens <nigel.stephens@arm.com>
5277 Yufeng Zhang <yufeng.zhang@arm.com>
5279 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
5281 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5282 Marcus Shawcroft <marcus.shawcroft@arm.com>
5283 Nigel Stephens <nigel.stephens@arm.com>
5284 Yufeng Zhang <yufeng.zhang@arm.com>
5286 * aarch64-newlib-tdep.c: New file.
5287 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
5289 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
5290 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
5291 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
5292 * osabi.c (gdb_osabi_names): Add "Newlib".
5294 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5295 Marcus Shawcroft <marcus.shawcroft@arm.com>
5296 Nigel Stephens <nigel.stephens@arm.com>
5297 Yufeng Zhang <yufeng.zhang@arm.com>
5299 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
5300 (ALLDEPFILES): Add aarch64-linux-tdep.c.
5301 * aarch64-linux-tdep.c: New file.
5302 * aarch64-linux-tdep.h: New file.
5303 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
5304 * configure.tgt: Add aarch64-none-linux-gnu.
5306 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5307 Marcus Shawcroft <marcus.shawcroft@arm.com>
5308 Nigel Stephens <nigel.stephens@arm.com>
5309 Yufeng Zhang <yufeng.zhang@arm.com>
5311 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
5312 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
5313 (ALLDEPFILES): Add aarch64-tdep.c.
5314 * aarch64-tdep.c: New file.
5315 * aarch64-tdep.h: New file.
5316 * configure.tgt: Add AArch64.
5317 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
5318 (aarch64-expedite): New definition.
5319 * features/aarch64-core.xml: New file.
5320 * features/aarch64-fpu.xml: New file.
5321 * features/aarch64-without-fpu.c: New file (generated).
5322 * features/aarch64-without-fpu.xml: New file.
5323 * features/aarch64.c: New file (generated).
5324 * features/aarch64.xml: New file.
5325 * regformats/aarch64-without-fpu.dat: New file (generated).
5326 * regformats/aarch64.dat: New file (generated).
5328 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5330 * contrib/expect-read1.c: New file.
5331 * contrib/expect-read1.sh: New file.
5333 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5335 * dwarf2read.c (file_file_name): New function with code from
5337 (file_full_name): Move most of the code to file_file_name.
5338 (macro_start_file): Rename variable full_name to file_name and use
5339 file_file_name for it. Add comp_dir parameter to new_macro_table.
5340 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
5341 macro_source_file->filename access by macro_source_fullname call.
5342 * macroscope.c (_initialize_macroscope): Update the new_macro_table
5344 * macrotab.c (struct macro_table): New field comp_dir.
5345 (macro_include): New variables link_fullname and source_fullname.
5346 Replace any macro_source_file->filename access by macro_source_fullname
5348 (macro_lookup_inclusion): Remove the partial filenames checking code.
5349 (check_for_redefinition): New variables source_fullname and
5350 found_key_fullname. Replace any macro_source_file->filename access by
5351 macro_source_fullname call.
5352 (macro_undef): New variables source_fullname and key_fullname. Replace
5353 any macro_source_file->filename access by macro_source_fullname call.
5354 (macro_lookup_definition): New variables retval and source_fullname.
5355 Replace any macro_source_file->filename access by macro_source_fullname
5357 (foreach_macro): New variable key_fullname. Replace any
5358 macro_source_file->filename access by macro_source_fullname call.
5359 (foreach_macro_in_scope): New variable datum_fullname. Replace any
5360 macro_source_file->filename access by macro_source_fullname call.
5361 (new_macro_table): Add parameter comp_dir. Initialize T with it.
5362 (macro_source_fullname): New function.
5363 * macrotab.h (struct macro_source_file): Extent the filename field
5365 (new_macro_table): New parameter comp_dir, add a comment for it.
5366 (macro_source_fullname): new declaration.
5368 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5370 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
5371 this_real_name to outer block. Use it also for
5372 compare_filenames_for_search.
5373 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
5374 with dw2_get_real_path for file_matcher, considering also
5375 BASENAMES_MAY_DIFFER.
5376 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
5378 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5380 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
5381 to the file_matcher parameter. Pass 0 to it.
5382 (dwarf2_create_include_psymtab): Copy also DIRNAME.
5383 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
5384 NULL psymtab_to_fullname result.
5385 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
5386 an expected filename instead.
5387 (expand_symtabs_matching_via_partial): Add basenames parameter to the
5388 file_matcher parameter. Call also psymtab_to_fullname, after newly
5389 considering BASENAMES_MAY_DIFFER.
5390 * source.c (rewrite_source_path): Remove static.
5391 * source.h (rewrite_source_path): New declaration.
5392 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
5393 the expand_symtabs_matching field. Comment it.
5394 * symtab.c (file_matches): New function comment. Add parameter
5395 basenames, implement it.
5396 (search_symbols_file_matches): Add basenames parameter. Update the
5397 file_matches caller.
5398 (search_symbols): Match FILES also against symtab_to_fullname.
5399 Optimize it for BASENAMES_MAY_DIFFER.
5401 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5403 * source.c (print_source_lines_base): Print for TUI also "fullname".
5404 * tui/tui-data.c (init_content_element): Change tui_locator_element
5406 * tui/tui-data.h (struct tui_locator_element): Likewise.
5407 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
5408 tui_update_locator_filename calls to tui_update_locator_fullname.
5409 Replace symtab->filename refererence by symtab_to_fullname call.
5410 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
5411 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
5412 field to full_name. Replace symtab->filename refererence by
5413 symtab_to_fullname call.
5414 (tui_show_symtab_source): Rename parameter to fullname. Change
5415 tui_locator_element field to full_name.
5416 * tui/tui-stack.c: Include source.h.
5417 (tui_set_locator_filename): Rename the declaration to ...
5418 (tui_set_locator_fullname): ... here. Rename its parameter to
5419 fullname, updates its comment.
5420 (tui_set_locator_info): Rename its parameter to fullname.
5421 (tui_set_locator_filename): Rename the definition to ...
5422 (tui_set_locator_fullname): ... here. Rename its parameter to
5423 fullname, updates its comment. Change tui_locator_element field to
5425 (tui_set_locator_info): Rename its parameter to fullname.
5426 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
5427 (tui_update_locator_filename): Rename to ...
5428 (tui_update_locator_fullname): ... here. Rename callee to
5429 tui_set_locator_fullname.
5430 (tui_show_frame_info): Replace symtab->filename refererence by
5431 symtab_to_fullname call.
5432 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
5433 (tui_update_locator_fullname): ... here.
5434 * tui/tui-winsource.c (tui_display_main): Rename the callee to
5435 tui_update_locator_fullname. Replace symtab->filename refererence by
5436 symtab_to_fullname call.
5437 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
5438 Rename the callee to tui_update_locator_fullname.
5439 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
5441 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5443 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
5444 by symtab_to_filename_for_display calls.
5445 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
5446 (clear_command): New variable sal_fullname, initialize it. Replace
5447 compare_filenames_for_search by filename_cmp with sal_fullname.
5448 (say_where, update_static_tracepoint): Replace symtab->filename
5449 refererences by symtab_to_filename_for_display calls.
5450 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
5452 * dwarf2read.c: Include source.h.
5453 (fixup_go_packaging): Replace symtab->filename refererences by
5454 symtab_to_filename_for_display calls.
5455 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
5456 Replace symtab->filename refererences by symtab_to_filename_for_display
5458 (create_sals_line_offset, convert_linespec_to_sals): New variable
5459 fullname, initialize it, replace symtab->filename reference by the
5461 * linux-fork.c: Include source.h.
5462 (info_checkpoints_command): Replace symtab->filename refererences by
5463 symtab_to_filename_for_display calls.
5464 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
5465 by symtab_to_filename_for_display calls.
5466 * mdebugread.c: Include source.h.
5467 (psymtab_to_symtab_1): Replace symtab->filename refererences by
5468 symtab_to_filename_for_display calls.
5469 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
5470 (mi_cmd_file_list_exec_source_files): Likewise.
5471 * printcmd.c: Include source.h.
5472 (build_address_symbolic): Replace symtab->filename refererences by
5473 symtab_to_filename_for_display calls.
5474 * psymtab.c (partial_map_symtabs_matching_filename)
5475 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
5476 with psymtab_to_fullname.
5477 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
5478 by symtab_to_filename_for_display calls.
5479 (stpy_get_filename): New variable filename, initialize it, use instead
5480 of symtab->filename refererences.
5481 (salpy_str): Make variable filename const char *. Replace
5482 symtab->filename refererences by symtab_to_filename_for_display calls.
5483 * skip.c: Include source.h and filenames.h.
5484 (skip_file_command): Remove const from the symtab variable. Replace
5485 symtab->filename refererences by symtab_to_fullname call.
5486 (function_name_is_marked_for_skip): New variables searched_for_fullname
5487 and fullname. Use them to search also with symtab's fullname.
5488 * source.c (find_source_lines): Replace symtab->filename refererences
5489 by symtab_to_filename_for_display calls.
5490 (print_source_lines_base): New variable filename, use it instead of
5491 symtab->filename. Replace symtab->filename refererences by
5492 symtab_to_filename_for_display calls.
5493 (line_info, forward_search_command): Replace symtab->filename
5494 refererences by symtab_to_filename_for_display calls.
5495 (reverse_search_command): Replace symtab->filename refererences by
5496 symtab_to_filename_for_display calls. New variable filename for it.
5497 * stack.c (frame_info): Likewise.
5498 * symmisc.c: Include source.h.
5499 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
5500 (maintenance_info_symtabs): Replace symtab->filename refererences by
5501 symtab_to_filename_for_display calls.
5502 * symtab.c (iterate_over_some_symtabs): Call
5503 compare_filenames_for_search also with symtab_to_fullname.
5504 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
5505 symtab->filename refererences by symtab_to_filename_for_display calls.
5506 (find_line_symtab): Replace symtab->filename refererences by
5507 symtab_to_filename_for_display calls.
5508 (file_matches): Replace filename_cmp by compare_filenames_for_search.
5509 (print_symbol_info): Make the last parameter const char *. New
5510 variable s_filename. Use it in the function.
5511 (symtab_symbol_info): Make the last_filename variable const char *.
5512 Replace symtab->filename refererences by symtab_to_filename_for_display
5514 (rbreak_command): New variable fullname. Use it. Replace
5515 symtab->filename refererence by symtab_to_filename_for_display call.
5516 * tracepoint.c (set_traceframe_context, trace_find_line_command)
5517 (print_one_static_tracepoint_marker): Replace symtab->filename
5518 refererences by symtab_to_filename_for_display calls.
5519 * tui/tui-source.c (tui_set_source_content): New variables filename and
5520 s_filename. Replace symtab->filename refererences by this variable.
5521 Replace other symtab->filename refererences by
5522 symtab_to_filename_for_display calls.
5524 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
5525 Jan Kratochvil <jan.kratochvil@redhat.com>
5527 Add a new variable that controls a way in which filenames are
5529 * NEWS (set filename-display): New entry.
5530 * source.c (filename_display_basename, filename_display_relative)
5531 (filename_display_absolute, filename_display_kind_names)
5532 (filename_display_string, show_filename_display_string)
5533 (symtab_to_filename_for_display): New.
5534 (_initialize_source): Added initialization of 'filename-display'
5536 * source.h (symtab_to_filename_for_display): Added declaration.
5537 * stack.c (print_frame): Added new variable and calling of a new
5538 function and condition with this variable. Changed third argument of
5539 calling of a function.
5541 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5543 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
5544 Rename field reference filename to fullname.
5545 * tui/tui-data.h (struct tui_source_info): Rename field filename to
5546 fullname. New comment for it.
5547 * tui/tui-source.c (tui_set_source_content): Rename field reference
5548 filename to fullname. Initialize field by symtab_to_fullname now.
5549 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
5550 reference filename to fullname. Use symtab_to_fullname during
5553 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5556 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
5557 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
5558 filename to fullname. Rename variable this_name to this_fullname.
5559 Lowercase FILENAME_CMP call.
5560 (dw2_find_symbol_file): New comment for the returned string.
5561 (dwarf2_gdb_index_functions): Rename the function to
5562 dw2_expand_symtabs_with_fullname.
5563 * psymtab.c (read_psymtabs_with_filename): Rename to ...
5564 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
5566 (psym_functions): Rename the function to read_psymtabs_with_fullname.
5567 * symfile.h (struct quick_symbol_functions): Rename field
5568 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
5569 parameter filename to fullname. Document returned string meaning for
5571 * symtab.c (find_line_symtab): Rename the called function to
5572 expand_symtabs_with_fullname.
5574 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5577 * breakpoint.c (clear_command): Remove variable is_abs, unify the
5578 call of filename_cmp with compare_filenames_for_search.
5579 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
5580 is_abs, unify the call of FILENAME_CMP with
5581 compare_filenames_for_search. New gdb_asserts for real_path and name.
5582 Unify the call of compare_filenames_for_search with FILENAME_CMP.
5583 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
5584 * symfile.h (struct quick_symbol_functions): Extend the comment for
5585 map_symtabs_matching_filename.
5586 * symtab.c (compare_filenames_for_search): Remove the function comment
5587 relative path requirement. Handle absolute filenames, with a comment.
5588 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
5589 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
5590 real_path and name. Unify the call of compare_filenames_for_search
5592 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
5594 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5597 * breakpoint.c (print_breakpoint_location): Replace bp_location field
5598 source_file references by symtab field references. Remove variables
5600 (momentary_breakpoint_from_master, add_location_to_breakpoint):
5601 (clear_command, say_where): Replace bp_location field source_file
5602 references by symtab field references.
5603 (bp_location_dtor): Remove the source_file reference.
5604 (update_static_tracepoint): Replace bp_location field source_file
5605 references by symtab field references.
5606 (breakpoint_free_objfile): New function.
5607 * breakpoint.h (struct bp_location): Extend the comment for line_number.
5608 Replace the field source_file by field symtab, extend its comment.
5609 (breakpoint_free_objfile): New declaration.
5610 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
5611 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
5612 field source_file references by symtab field references.
5614 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5616 Replace xfullpath calls by gdb_realpath calls.
5617 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
5619 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
5620 Remove it from the iterate_over_some_symtabs call.
5621 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
5622 Remove it from the dw2_map_expand_apply calls, remove a block handling
5624 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
5625 Remove it from the iterate_over_some_symtabs call.
5626 (partial_map_symtabs_matching_filename): Remove parameter full_path.
5627 Remove it from the partial_map_expand_apply calls, remove a block
5628 handling it. Drop gdb_realpath call and cleanups from the real_path
5630 * source.c (openp): Drop the comment part about xfullpath. Replace
5631 xfullpath calls by gdb_realpath calls.
5632 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
5633 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
5634 from method map_symtabs_matching_filename and its comment.
5635 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
5637 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
5638 remove it also from the function comment, remove a block handling it.
5639 Drop gdb_realpath call and cleanups from the real_path handling.
5640 (iterate_over_symtabs): Drop variable full_path and its use.
5641 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
5642 * utils.c (xfullpath): Remove.
5643 * utils.h (xfullpath): Remove.
5645 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
5647 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
5648 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
5649 (ALLDEPFILES): Add ppc64-tdep.c.
5650 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
5651 ppc64-tdep.o to gdb_target_obs.
5652 * ppc64-tdep.h: New file.
5653 * ppc64-tdep.c: New file.
5654 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
5655 ppc-linux-tdep.c to here.
5656 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
5657 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
5658 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
5659 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
5660 from ppc-linux-tdep.c to here.
5661 (ppc64_convert_from_func_ptr_addr): Rename from
5662 ppc64_linux_convert_from_func_ptr_addr to
5663 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
5666 (read_insn): Move from ppc-linux-tdep.c to here.
5667 (insns_match_pattern, insn_d_field, insn_ds_field): Move
5668 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
5669 * ppc-linux-tdep.c: Include ppc64-tdep.h.
5670 Removed above functions.
5671 (ppc_linux_init_abi): Adjust.
5673 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
5675 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
5677 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
5679 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
5681 2013-02-01 Pedro Alves <palves@redhat.com>
5683 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
5684 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
5686 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5688 * elfread.c (elf_symfile_read): Limit separate debug info additions to
5689 files with no separate debug info.
5690 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
5691 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
5692 only for files with no separate debug info.
5694 2013-01-31 Tom Tromey <tromey@redhat.com>
5696 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
5698 (struct jit_program_space_data): Rename from jit_inferior_data.
5700 (get_jit_program_space_data): Rename from get_jit_inferior_data.
5701 Change return type. Attach data to program space.
5702 (jit_program_space_data_cleanup): Rename from
5703 jit_inferior_data_cleanup; change argument type.
5704 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
5706 (jit_register_code): Update.
5707 (jit_update_inferior_cache): Remove.
5708 (jit_breakpoint_deleted): Get jit data from the location's program
5710 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
5711 'ps_data', change type.
5712 (jit_inferior_init, jit_breakpoint_re_set_internal)
5713 (jit_event_handler): Update.
5714 (free_objfile_data): Get data from objfile's program space.
5715 (_initialize_jit): Update.
5717 2013-01-31 Tom Tromey <tromey@redhat.com>
5720 * jit.c (struct jit_inferior_data) <cached_code_address,
5721 jit_breakpoint>: New fields.
5722 (jit_breakpoint_re_set_internal): Fix logging. Only create
5723 breakpoint if cached address has changed.
5724 (jit_update_inferior_cache, jit_breakpoint_deleted): New
5726 (_initialize_jit): Register breakpoint deleted observer.
5728 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
5730 * infrun.c (handle_syscall_event): Remove unused gdbarch.
5731 (save_infcall_suspend_state): Ifdef out unused inf.
5732 (restore_infcall_suspend_state): Ifdef out unused inf.
5733 * jit.c (jit_register_code): Remove unused i, b, inf_data.
5734 (jit_frame_sniffer): Remove unused inf_data.
5736 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
5738 * c-exp.y (classify_inner_name): Remove unused type.
5739 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
5740 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
5742 (c_get_string): Remove unused kind.
5743 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
5745 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
5747 * charset.c (intermediate_encoding): Remove unused i.
5748 * completer.c (signal_completer): Remove unused i.
5749 * continuations.c (discard_my_continuations_1): Remove unused
5751 * corelow.c (core_close): Remove unuseD name.
5752 (get_core_siginfo): Remove unused pid.
5753 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
5755 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
5756 (loclist_describe_location): Remove unused first.
5757 * event-top.c (command_line_handler): Remove unused got_eof.
5758 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
5759 (resize_section_table): Remove unused old_value.
5760 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
5761 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
5762 * i386-tdep.c (i386_process_record): Remove unused rex.
5763 * infcmd.c (get_return_value): Remove unused uiout.
5764 * jv-lang.c (type_from_class): Remove unused is_array.
5765 * jv-valprint.c (java_val_print): Remove unused i.
5766 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
5767 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
5768 * m2-typeprint.c (m2_print_type): Remove unused code.
5769 * macroexp.c (get_character_constant): Remove unused body_start.
5770 (macro_stringify): Remove unused result.
5771 * objc-lang.c (find_methods): Remove unused gdbarch.
5772 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
5773 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
5774 * stack.c (print_frame_args): Remove unused summary.
5775 * thread.c (thread_apply_command): Remove unused p.
5776 * valarith.c (value_x_unop): Remove unused mangle_ptr.
5777 * valops.c (search_struct_method): Remove unused skip.
5778 * valprint.c (generic_val_print): Remove unused byte_order.
5779 * varobj.c (varobj_update): Remove unused changed.
5780 * cli/cli-cmds.c (complete_command): Remove unused next_item.
5781 (alias_command): Remove unused c.
5782 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
5783 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
5785 (mi_cmd_data_write_memory): Remove unused word_format.
5786 (mi_cmd_data_write_memory_bytes): Remove unused r.
5787 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
5789 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
5790 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
5793 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
5795 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
5796 * symtab.c (iterate_over_symtabs): Remove unused s.
5797 (find_pc_sect_symtab): Remove unused pspAce.
5798 (find_pc_sect_line): Remove unused alt_symtab.
5799 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
5800 (completion_list_add_name): Remove unused newsize.
5802 2013-01-31 Tom Tromey <tromey@redhat.com>
5805 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
5808 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
5810 * target.c (target_read_string): Remove unused origlen.
5812 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
5814 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
5815 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
5816 * ax-general.c (ax_print): Remove unused is_float.
5817 * blockframe.c (block_innermost_frame): Remove unused start, end.
5818 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
5820 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
5822 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
5823 (svr4_read_so_list): Remove unused lmo.
5824 * solib-target.c (solib_target_relocate_section_addresses): Remove
5827 2013-01-30 Tom Tromey <tromey@redhat.com>
5829 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
5831 2013-01-30 Tom Tromey <tromey@redhat.com>
5833 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
5834 * utils.c (gnu_debuglink_crc32): Remove.
5835 * utils.h (gnu_debuglink_crc32): Don't declare.
5837 2013-01-30 Tom Tromey <tromey@redhat.com>
5839 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
5840 (read_structure_type, read_enumeration_type): Remove cast.
5842 2013-01-30 Tom Tromey <tromey@redhat.com>
5844 * dwarf2read.c (read_namespace_type): Remove cast.
5845 (read_typedef): Likewise.
5847 2013-01-29 Tom Tromey <tromey@redhat.com>
5849 * dwarf2read.c (free_dwo_file): Remove assert.
5851 2013-01-29 Tom Tromey <tromey@redhat.com>
5853 * value.c (deprecated_set_value_modifiable): Remove.
5854 * value.h (deprecated_set_value_modifiable): Remove.
5856 2013-01-28 Doug Evans <dje@google.com>
5858 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
5859 to addresses from dwo files.
5861 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
5863 * valops.c (find_overload_match): Remove unused argument 'lax'.
5864 * value.h: Remove unused argument 'lax' from the declaration of
5865 find_overload_match.
5866 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
5867 to find_overload_match.
5868 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
5869 argument to find_overload_match.
5871 2013-01-25 Tom Tromey <tromey@redhat.com>
5873 * dwarf2read.c (processing_has_namespace_info): Remove.
5874 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
5875 (process_die, read_func_scope, dwarf2_start_symtab)
5876 (new_symbol_full): Update.
5878 2013-01-25 Tom Tromey <tromey@redhat.com>
5880 * cp-namespace.c (cp_set_block_scope): Remove.
5881 * cp-support.h (cp_set_block_scope): Remove.
5882 * dbxread.c: Include block.h.
5883 (cp_set_block_scope): New function.
5884 (process_one_symbol): Update.
5885 * dwarf2read.c (read_func_scope): Use block_set_scope.
5887 2013-01-25 Pedro Alves <palves@redhat.com>
5889 * remote.c (add_current_inferior_and_thread): Tweak comment.
5891 2013-01-25 Tom Tromey <tromey@redhat.com>
5893 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5894 (cp_add_using_directive): Add 'copy_names' argument.
5895 * cp-support.h (cp_add_using_directive): Update.
5896 (struct using_direct) <import_src, import_dest, alias,
5897 declaration>: Now const.
5898 * dwarf2read.c (read_import_statement): Use obconcat.
5899 Don't copy names passed to cp_add_using_directive.
5901 2013-01-25 Tom Tromey <tromey@redhat.com>
5903 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
5905 2013-01-25 Pedro Alves <palves@redhat.com>
5907 * remote.c (stop_reply_extract_thread): New.
5908 (add_current_inferior_and_thread): New parameter 'wait_status'.
5910 (remote_start_remote): Pass wait status to
5911 add_current_inferior_and_thread.
5912 (extended_remote_run): Update comment.
5913 (extended_remote_create_inferior_1): Pass wait status to
5914 add_current_inferior_and_thread.
5916 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
5917 Ulrich Weigand <uweigand@de.ibm.com>
5919 * valarith.c (value_vector_widen): New function for replicating a
5920 scalar into a vector.
5921 (value_binop): Use value_vector_widen to widen scalar to vector
5922 rather than casting, this better matches gcc C behaviour.
5923 * valops.c (value_casst): Update logic for casting between vector
5924 types, and for casting from scalar to vector, try to match gcc C
5926 * value.h (value_vector_widen): Declare.
5927 * opencl-lang.c (opencl_value_cast): New opencl specific casting
5928 function, handle special case for casting scalar to vector.
5929 (opencl_relop): Use opencl_value_cast.
5930 (evaluate_subexp_opencl): Use opencl_value_cast instead of
5931 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
5932 in order to use opencl_value_cast.
5934 2013-01-25 Yao Qi <yao@codesourcery.com>
5936 * event-loop.c: Include "queue.h".
5937 (gdb_event_p): New typedef.
5938 (DECLARE_QUEUE_P): Use.
5939 (DEFINE_QUEUE_P): Use.
5940 (async_queue_event): Remove.
5941 (gdb_event_xfree): New.
5942 (initialize_event_loop): New.
5943 (process_event): Use QUEUE macros.
5944 (event_queue): Remove.
5945 (gdb_wait_for_event): Caller update.
5946 (check_async_event_handlers): Likewise.
5947 (poll_timers): Likewise.
5948 * event-loop.h (initialize_event_loop): Declare.
5949 * event-loop.c (gdb_event_xfree): New.
5950 * top.c (gdb_init): Call initialize_event_loop.
5952 2013-01-25 Yao Qi <yao@codesourcery.com>
5954 * event-loop.c (async_queue_event): Remove one parameter
5955 'position'. Remove code handling 'position' == TAIL.
5956 (gdb_wait_for_event): Caller update.
5957 (check_async_event_handlers): Caller update.
5958 (poll_timers): Caller update.
5959 * event-loop.h (enum queue_position): Remove.
5961 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
5963 * MAINTAINERS: Update my email.
5965 2013-01-25 Yao Qi <yao@codesourcery.com>
5967 * main.c (print_gdb_help): Remove "--epoch" from the help
5970 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
5972 * symtab.c (skip_prologue_using_sal): Consider a file
5973 change the same as an increased line number
5975 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
5977 * MAINTAINERS (Write After Approval): Add myself to the list.
5979 2013-01-24 Tom Tromey <tromey@redhat.com>
5981 * ada-lang.h (ada_decode_symbol): Make return type const.
5982 * ada-lang.c (ada_decode_symbol): Likewise.
5984 2013-01-23 Doug Evans <dje@google.com>
5986 * linespec.c (find_linespec_symbols): Make static.
5988 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
5990 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
5991 type on float conversion for complex type.
5993 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
5995 Add a new class gdb.Architecture which exposes GDB's
5996 internal representation of architecture via GDB Python API.
5997 * Makefile.in: Add entries corresponding to the new file
5999 * NEWS (Python Scripting): Add entries for the new class
6000 gdb.Architecture and the new method gdb.Frame.architecture.
6001 * python/py-arch.c: Implement gdb.Architecture class.
6002 * python/py-frame.c (frapy_arch): Implement the method
6003 gdb.Frame.architecture().
6004 (frame_object_methods): Add 'architecture' to the method table.
6005 * python/python-internal.h: Add declarations of new utility
6007 * python/python.c (_initialize_python): Initialize
6008 gdb.Architecture class.
6010 2013-01-23 Doug Evans <dje@google.com>
6012 Work around binutils/15021.
6013 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
6014 type_unit_group out of union s. All uses updated.
6015 (read_index_from_section): Watch for index version 8.
6016 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
6018 (write_psymtabs_to_index): Increment version number to 8.
6020 2013-01-22 Pedro Alves <palves@redhat.com>
6022 * annotate.c (breakpoint_changed): Skip if breakpoint is not
6025 2013-01-22 Pedro Alves <palves@redhat.com>
6027 * annotate.c (annotate_breakpoints_changed): Rename to ...
6028 (annotate_breakpoints_invalid): ... this. Make static.
6029 (breakpoint_changed): Adjust.
6030 (_initialize_annotate): Always install the observers. Install a
6031 "breakpoint_created" observer.
6032 * annotate.h (annotate_breakpoints_changed): Delete declaration.
6033 * breakpoint.c (set_breakpoint_condition)
6034 (breakpoint_set_commands, do_map_commands_command)
6035 (init_raw_breakpoint, clear_command, set_ignore_count)
6036 (enable_breakpoint_disp): No longer call
6037 annotate_breakpoints_changed.
6039 2013-01-22 Pedro Alves <palves@redhat.com>
6041 * annotate.c: Include "inferior.h".
6042 (frames_invalid_emitted)
6043 (breakpoints_invalid_emitted): New globals.
6044 (async_background_execution_p): New function.
6045 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
6046 emitting the annotation if it has already been emitted.
6047 (annotate_display_prompt): New function.
6048 * annotate.h (annotate_display_prompt): New declaration.
6049 * event-top.c: Include annotate.h.
6050 (display_gdb_prompt): Call annotate_display_prompt.
6052 2013-01-22 Pedro Alves <palves@redhat.com>
6054 * annotate.c (ignore_count_changed): Delete.
6055 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
6056 (annotate_ignore_count_change): Delete.
6057 (annotate_stopped): Don't emit a delayed breakpoints-changed
6059 * annotate.h (annotate_ignore_count_change): Delete.
6060 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
6061 annotate_ignore_count_change.
6063 2013-01-22 Tom Tromey <tromey@redhat.com>
6065 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
6066 require_rvalue for a register location.
6068 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
6070 * breakpoint.c (print_one_breakpoint_location): Add MI
6071 field 'thread-groups' when printing a breakpoint.
6072 (output_thread_groups): New function.
6074 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
6076 * python/lib/gdb/commands/explore.py
6077 (CompoundExplorer.explore_expr): Correct the name of a method
6079 (ExploreTypeCommand.invoke): Add a missing 'return'.
6081 2013-01-21 Tom Tromey <tromey@redhat.com>
6083 * gdb_obstack.h (obconcat): Move declaration here, from...
6084 * symfile.h (obconcat): ... here.
6085 * gdb_obstack.c: New file.
6086 (obconcat): Move from...
6087 * symfile.c (obconcat): ... here.
6088 * Makefile.in (SFILES): Add gdb_obstack.c.
6089 (COMMON_OBS): Add gdb_obstack.o.
6091 2013-01-21 Tom Tromey <tromey@redhat.com>
6093 * symfile.h (obsavestring): Don't declare.
6094 * symfile.c (obsavestring): Remove.
6095 * ada-exp.y: Use obstack_copy0, not obsavestring.
6096 * ada-lang.c: Use obstack_copy0, not obsavestring.
6097 * coffread.c: Use obstack_copy0, not obsavestring.
6098 * cp-namespace.c: Use obstack_copy0, not obsavestring.
6099 * dbxread.c: Use obstack_copy0, not obsavestring.
6100 * dwarf2read.c: Use obstack_copy0, not obsavestring.
6101 * jit.c: Use obstack_copy0, not obsavestring.
6102 * mdebugread.c: Use obstack_copy0, not obsavestring.
6103 * psymtab.c: Use obstack_copy0, not obsavestring.
6104 * stabsread.c: Use obstack_copy0, not obsavestring.
6105 * xcoffread.c: Use obstack_copy0, not obsavestring.
6107 2013-01-21 Tom Tromey <tromey@redhat.com>
6109 * dwarf2read.c (fixup_go_packaging): Save package name
6111 * gdbtypes.c (init_type): Don't copy name.
6113 2013-01-21 Tom Tromey <tromey@redhat.com>
6115 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
6117 (struct attribute) <u.str>: Now const.
6118 (struct fnfieldlist) <name>: Now const.
6119 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
6120 (partial_die_parent_scope): Make return type const.
6121 (partial_die_full_name, add_partial_symbol): Update.
6122 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
6124 (find_file_and_directory): Make 'name' and 'comp_dir' const.
6125 (read_file_scope, read_func_scope, dwarf2_add_field)
6126 (dwarf2_add_member_fn, read_structure_type)
6127 (process_enumeration_scope, read_array_type, read_module_type)
6128 (read_base_type, read_subrange_type): Update.
6129 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
6130 (new_symbol_full, guess_full_die_structure_name): Update.
6131 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
6132 (dwarf2_name): Return const type.
6133 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
6136 2013-01-21 Tom Tromey <tromey@redhat.com>
6138 * gdbtypes.c (init_type): Make 'name' const.
6139 * gdbtypes.h (init_type): Update.
6141 2013-01-21 Tom Tromey <tromey@redhat.com>
6143 * buildsym.c (patch_subfile_names): Use set_last_source_file.
6144 (start_symtab): Make 'name' and 'dirname' const. Use
6145 set_last_source_file.
6146 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
6147 (last_source_file): Define. Now static.
6148 (set_last_source_file, get_last_source_file): New functions.
6149 * buildsym.h (last_source_file): Don't declare.
6150 (start_symtab): Update.
6151 (set_last_source_file, get_last_source_file): Declare.
6152 * coffread.c (complete_symtab): Use set_last_source_file.
6153 (coff_end_symtab): Likewise.
6154 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
6155 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
6156 set_last_source_file.
6157 (process_one_symbol): Use get_last_source_file.
6158 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
6159 (psymtab_to_symtab_1): Use get_last_source_file.
6160 * xcoffread.c (process_linenos): Use get_last_source_file.
6161 (complete_symtab): Use set_last_source_file.
6162 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
6163 (scan_xcoff_symtab): Use set_last_source_file.
6165 2013-01-21 Tom Tromey <tromey@redhat.com>
6167 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
6168 (symbol_set_names): Remove casts. Handle field const-ness.
6170 2013-01-21 Tom Tromey <tromey@redhat.com>
6172 * dwarf2read.c (new_symbol_full): Remove cast.
6173 * symtab.c (symbol_set_demangled_name): Make 'name' const.
6174 * symtab.h (symbol_set_demangled_name): Update.
6176 2013-01-21 Tom Tromey <tromey@redhat.com>
6178 * main.c (captured_main): Call bfd_init.
6180 2013-01-21 Tom Tromey <tromey@redhat.com>
6182 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
6183 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
6184 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
6187 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6189 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
6191 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6193 Fix gdb.fortran/common-block.exp crash in PIE mode.
6194 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
6196 * f-valprint.c (info_common_command_for_block): Expect
6197 LOC_COMMON_BLOCK in gdb_assert.
6198 * symtab.h (struct general_symbol_info): Update comment for the
6199 common_block member.
6200 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
6201 (enum address_class): New member LOC_COMMON_BLOCK.
6203 2013-01-18 David Blaikie <dblaikie@gmail.com>
6205 * MAINTAINERS (Write After Approval): Add "David Blaikie".
6207 2013-01-18 Tom Tromey <tromey@redhat.com>
6210 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
6211 Call require_rvalue.
6213 2013-01-18 Yao Qi <yao@codesourcery.com>
6215 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
6216 (dbx_read_symtab): New declaration.
6217 (dbx_psymtab_to_symtab): Delete.
6218 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
6219 Rename parameter PST to SELF. Exchanged two parameters.
6220 (start_psymtab): Caller update.
6221 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
6222 (dwarf2_read_symtab): New declaration.
6223 (dwarf2_psymtab_to_symtab): Delete.
6224 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
6225 Rename parameter PST to SELF. Exchanged two parameters.
6226 (create_partial_symtab): Caller update.
6227 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
6228 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
6229 Rename parameter PST to SELF. Exchanged two parameters.
6230 (parse_partial_symbols, new_psymtab): Caller update.
6231 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
6233 * psymtab.c (psymtab_to_symtab): Caller update.
6234 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
6235 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
6236 Rename parameter PST to SELF. Exchanged two parameters.
6237 (xcoff_start_psymtab): Caller update.
6239 2013-01-18 Yao Qi <yao@codesourcery.com>
6241 * infrun.c (proceed): Rename local variable 'oneproc' to
6244 2013-01-17 Doug Evans <dje@google.com>
6246 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
6247 (dw2_build_type_unit_groups): Delete. All uses updated.
6249 * symtab.h (struct symbol_search): Add comment.
6251 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6253 * symtab.c (compare_filenames_for_search): New comment for
6256 2013-01-17 Tom Tromey <tromey@redhat.com>
6258 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
6260 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6262 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
6263 initialize it by existing make_cleanup. Call new do_cleanups.
6265 2013-01-17 Tom Tromey <tromey@redhat.com>
6267 * cp-abi.c (cp_abi_completer): New function.
6268 (_initialize_cp_abi): Set completer for "set cp-abi".
6270 2013-01-17 Tom Tromey <tromey@redhat.com>
6272 * mem-break.c: Remove obsolete comment.
6273 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
6275 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
6277 * jit.c (jit_reader_load_command): Interpret the jit reader name
6278 as an absolute path if it begins with a forward slash.
6280 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
6284 * jit.c (finalize_symtab): Ensure that only the global block has a
6287 2013-01-17 Pedro Alves <palves@redhat.com>
6289 * acinclude.m4: Include ../config/plugins.m4,
6290 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
6291 * Makefile.in (aclocal_m4_deps): Update.
6292 * aclocal.m4: Renegerate.
6294 2013-01-16 Doug Evans <dje@google.com>
6296 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
6298 2013-01-16 Pedro Alves <palves@redhat.com>
6299 Tom Tromey <tromey@redhat.com>
6302 * NEWS: Add "catch signal".
6303 * breakpoint.c (base_breakpoint_ops): No longer static.
6304 (bpstat_explains_signal): New function.
6305 (init_catchpoint): No longer static.
6306 (base_breakpoint_explains_signal): New function.
6307 (base_breakpoint_ops): Initialize new field.
6308 * breakpoint.h (enum bpstat_signal_value): New.
6309 (struct breakpoint_ops) <explains_signal>: New field.
6310 (bpstat_explains_signal): Remove macro, declare as function.
6311 (base_breakpoint_ops, init_catchpoint): Declare.
6312 * break-catch-sig.c: New file.
6313 * inferior.h (signal_catch_update): Declare.
6314 * infrun.c (signal_catch): New global.
6315 (handle_syscall_event): Update for change to
6316 bpstat_explains_signal.
6317 (handle_inferior_event): Likewise. Always handle random signals
6319 (signal_cache_update): Check signal_catch.
6320 (signal_catch_update): New function.
6321 (_initialize_infrun): Initialize signal_catch.
6322 * Makefile.in (SFILES): Add break-catch-sig.c.
6323 (COMMON_OBS): Add break-catch-sig.o.
6325 2013-01-16 Tom Tromey <tromey@redhat.com>
6327 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
6328 (print_one_catch_solib, print_one_catch_syscall)
6329 (print_one_catch_exec, print_one_exception_catchpoint): Emit
6332 2013-01-16 Yao Qi <yao@codesourcery.com>
6334 * printcmd.c (current_display_number): Make it static.
6336 2013-01-16 Yao Qi <yao@codesourcery.com>
6338 * infcmd.c (step_once): Don't check '!single_inst' as it was
6341 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6343 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
6345 2013-01-14 Tom Tromey <tromey@redhat.com>
6347 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
6349 * command.h (add_setshow_string_noescape_cmd): Update.
6350 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
6351 (complete_set_gnutarget): New function.
6352 (_initialize_core): Set the "set gnutarget" completer.
6354 2013-01-14 Tom Tromey <tromey@redhat.com>
6357 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
6358 (c_type_print_modifier): Likewise.
6359 * dwarf2read.c (read_tag_restrict_type): New function.
6360 (read_type_die_1): Handle DW_TAG_restrict_type.
6361 * gdbtypes.c (make_restrict_type): New function.
6362 (recursive_dump_type): Handle TYPE_RESTRICT.
6363 * gdbtypes.h (enum type_flag_values): Renumber.
6364 (enum type_instance_flag_value): Add
6365 TYPE_INSTANCE_FLAG_RESTRICT.
6366 (TYPE_RESTRICT): New macro.
6367 (make_restrict_type): Declare.
6369 2013-01-14 Tom Tromey <tromey@redhat.com>
6372 * psymtab.c (struct psymtab_state): New.
6373 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
6375 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
6376 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
6378 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
6379 Pedro Alves <palves@redhat.com>
6383 * remote.c (remote_threads_info): Make a copy of the reply from
6384 qfThreadInfo and use that instead of rs->buf.
6386 2013-01-14 Yao Qi <yao@codesourcery.com>
6388 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
6389 (dbx_psymtab_to_symtab): Likewise.
6390 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
6391 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
6392 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
6394 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6396 * parse.c (parse_exp_in_context): New variable inner_chain. Call
6397 make_cleanup_restore_current_language. Call set_language. Move
6398 OLD_CHAIN and INNER_CHAIN cleanups.
6399 * utils.c (do_restore_current_language)
6400 (make_cleanup_restore_current_language): New functions.
6401 * utils.h (make_cleanup_restore_current_language): New declaration.
6403 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6405 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
6408 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
6409 non-existing files if FILENAME is already absolute.
6411 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6413 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
6414 fputs_filtered. Append trailing newline.
6416 2013-01-11 Yao Qi <yao@codesourcery.com>
6417 Stan Shebs <stan@codesourcery.com>
6419 * psymtab.c (init_psymbol_list): Clarify the comment.
6421 2013-01-11 Yao Qi <yao@codesourcery.com>
6423 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
6424 (update_dprintf_command_list): Assert that 'printf_line' is
6425 non-null. Remove condition check.
6427 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6430 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
6432 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
6434 * tui/tui-source.h (tui_source_is_displayed): Likewise.
6436 2013-01-09 Anthony Green <green@moxielogic.com>
6438 * cp-abi.c (cplus_print_vtable): Don't return value from void
6440 * ada-lang.c (re_set_catch_assert): Ditto.
6442 2013-01-09 Doug Evans <dje@google.com>
6444 * symfile.h (quick_symbol_functions): Delete member
6445 pre_expand_symtabs_matching. All uses removed.
6446 * dwarf2read.c (dw2_lookup_symbol): Implement.
6447 (dw2_do_expand_symtabs_matching): Delete.
6448 (dw2_pre_expand_symtabs_matching): Delete.
6449 (struct dw2_symtab_iterator): New type.
6450 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
6451 (dw2_expand_symtabs_for_function): Rewrite.
6452 (dwarf2_gdb_index_functions): Update.
6453 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
6454 (psym_functions): Update.
6456 2013-01-09 Tom Tromey <tromey@redhat.com>
6458 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
6459 * configure: Rebuild.
6460 * configure.ac: Add somread.o to the build if BFD has SOM
6462 * somread.c: Include som/aout.h, not syms.h.
6463 (som_symtab_read): Use som_external_symbol_dictionary_record.
6464 Unpack records manually.
6465 (_initialize_somread): Declare.
6467 2012-01-08 Mike Frysinger <vapier@gentoo.org>
6469 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
6470 Cast return_address to 64bits.
6472 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
6474 * printcmd.c: Remove define of function output_command.
6475 * tracepoint.c: Remove extern of function output_command.
6476 * valprint.h: (output_command): New extern.
6478 2013-01-07 Tom Tromey <tromey@redhat.com>
6480 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
6482 (objc_language_defn): Use c_printchar, c_printstr,
6485 2013-01-07 Tom Tromey <tromey@redhat.com>
6489 * ada-valprint.c (printstr, print_field_values): Remove
6491 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
6493 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
6495 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
6496 * main.c (captured_main): Remove "epoch" argument.
6497 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
6498 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
6499 * p-valprint.c (pascal_object_print_value_fields): Remove
6501 * printcmd.c (print_command_1): Remove 'inspect' argument.
6502 (print_command, call_command): Update.
6503 (inspect_command): Remove.
6504 (_initialize_printcmd): Make "inspect" an alias for "print".
6505 * top.c (epoch_interface): Remove.
6506 * top.h (epoch_interface): Remove.
6507 * valprint.c (user_print_options): Update.
6508 (print_converted_chars_to_obstack): Remove "inspect_it" code.
6509 * valprint.h (struct value_print_options) <inspect_it>: Remove
6512 2013-01-04 Tom Tromey <tromey@redhat.com>
6514 * valprint.h (read_string): Add 'extern'.
6516 2013-01-07 Joel Brobecker <brobecker@adacore.com>
6518 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
6519 used to decide whether to define darwin_read_dyld_info or not.
6521 2013-01-03 Pierre Muller <muller@sourceware.org>
6523 * main.c (relocate_gdb_directory): Avoid calling stat function
6526 2013-01-03 Yao Qi <yao@codesourcery.com>
6528 * psymtab.c (fixup_psymbol_section): Update declaration.
6529 (fixup_psymbol_section): Remove code returning value.
6531 2013-01-03 Yao Qi <yao@codesourcery.com>
6533 * symtab.h: Remove some out of date comments.
6534 (enum exception_event_kind): Move it ...
6535 * breakpoint.c: ... here.
6537 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
6540 * darwin-nat.c (darwin_read_dyld_info): Only build if
6541 TASK_DYLD_INFO_COUNT is defined.
6542 (darwin_xfer_partial): Call darwin_read_dyld_info only if
6543 TASK_DYLD_INFO_COUNT is defined.
6545 2013-01-02 Tom Tromey <tromey@redhat.com>
6547 * symfile.h (struct ecoff_debug_hack): Remove.
6548 * objfiles.c: Don't include mdebugread.h.
6550 2013-01-02 Tom Tromey <tromey@redhat.com>
6552 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
6553 * configure.ac: Check for Mach-O support in BFD. Update
6555 * configure: Rebuild.
6557 2013-01-02 Tom Tromey <tromey@redhat.com>
6559 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
6560 * configure.ac: Use GDB_AC_CHECK_BFD.
6561 * configure: Rebuild.
6563 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
6565 * MAINTAINERS: Update my email.
6567 2013-01-01 Joel Brobecker <brobecker@adacore.com>
6569 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
6571 2013-01-01 Joel Brobecker <brobecker@adacore.com>
6573 * rs6000-nat.c (bss_data_overlap): New function.
6574 (vmap_symtab): Use it to adjust the .bss section's offset.
6576 2013-01-01 Joel Brobecker <brobecker@adacore.com>
6578 Update year range in copyright notice of all files.
6580 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
6582 * top.c (print_gdb_version): Update copyright year.
6584 For older changes see ChangeLog-2012.
6590 version-control: never