add the cleanup checker
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
af83e3f8
TT
12013-05-30 Tom Tromey <tromey@redhat.com>
2
3 * contrib/cleanup_check.py: New file.
4 * contrib/gcc-with-excheck: Add option parsing.
5
564eac42
JB
62013-05-30 Joel Brobecker <brobecker@adacore.com>
7
8 * windows-nat.c (windows_delete_thread): Add missing space
9 in cast expression.
10
47902076
HAQ
112013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
12
13 * inferior.c (top level): Include tilde.h.
14 (add_inferior_command): Call tilde_expand on the value of 'exec'
15 argument.
16
23da373a
YQ
172013-05-30 Pedro Alves <pedro@codesourcery.com>
18 Yao Qi <yao@codesourcery.com>
19
20 * tracepoint.c (encode_actions_1): Remove parameter 't'.
21 Caller update.
22 (encode_actions): Likewise.
23 * remote.c (remote_download_tracepoint): Caller update.
24 * tracepoint.h (encode_actions): Update declaration.
25
a6e6f791
PA
262013-05-30 Pedro Alves <palves@redhat.com>
27
28 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
29 pointer.
30
36d25514
YQ
312013-05-30 Yao Qi <yao@codesourcery.com>
32
33 * remote.c (remote_check_symbols): Remove unused parameter
34 'objfile'.
35 Declaration update.
36 (remote_start_remote, remote_new_objfile): Caller update.
37
62a813cc
YQ
382013-05-30 Yao Qi <yao@codesourcery.com>
39
40 * mi/mi-cmds.c (mi_cmds): Define MI command
41 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
42 DEF_MI_CMD_CLI.
43
28439a30
PA
442013-05-29 Pedro Alves <palves@redhat.com>
45
46 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
47 (remote_insert_watchpoint, remote_remove_watchpoint)
48 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
49 (remote_verify_memory, compare_sections_command)
50 (remote_search_memory): Set the general process/thread on the
51 remote side.
52
6ac1c082
PA
532013-05-29 Pedro Alves <palves@redhat.com>
54
55 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
56 (_initialize_aarch64_tdep): Don't call
57 initialize_tdesc_aarch64_without_fpu.
58 * features/Makefile (WHICH): Remove reference to
59 aarch64-without-fpu.
60 * features/aarch64-without-fpu.c: Delete file.
61 * regformats/aarch64-without-fpu.dat: Delete file.
62
a73e3634
YQ
632013-05-28 Yao Qi <yao@codesourcery.com>
64
65 * tracepoint.c (stringify_collection_list): Remove parameter
66 'string'.
67 (encode_actions): Caller update. Remove local variables.
68
c0ea94eb
YQ
692013-05-24 Yao Qi <yao@codesourcery.com>
70
71 * tracepoint.c (TFILE_PID): Remove.
72 (tfile_open): Don't add thread and inferior.
73 (tfile_close): Don't set 'inferior_ptid'. Don't call
74 exit_inferior_silent.
75 (tfile_thread_alive): Remove.
76 (init_tfile_ops): Don't set field 'to_thread_alive' of
77 tfile_ops.
78
20d7f211
DE
792013-05-23 Doug Evans <dje@google.com>
80
81 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
82
8658d16d
PA
832013-05-23 Pedro Alves <palves@redhat.com>
84
85 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
86 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
87 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
88 Only define if HAVE_SOCKETS is defined.
89 * configure.ac: Check for sys/socket.h.
90 * config.in, configure: Regenerate.
91
21aa081e
PA
922013-05-23 Pedro Alves <palves@redhat.com>
93
94 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
95 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
96 printing uint32_t variables.
97
c2d6af84
PA
982013-05-23 Pedro Alves <palves@redhat.com>
99
100 * NEWS: Mention GDBserver range stepping support.
101
c1e36e3e
PA
1022013-05-23 Yao Qi <yao@codesourcery.com>
103 Pedro Alves <palves@redhat.com>
104
105 * gdbthread.h (struct thread_control_state) <may_range_step>: New
106 field.
107 * infcmd.c (step_once, until_next_command): Enable range stepping.
108 * infrun.c (displaced_step_prepare): Disable range stepping.
109 (resume): Disable range stepping if stepping over a breakpoint or
110 we have software watchpoints. If range stepping is enabled,
111 assert the thread is in the stepping range.
112 (clear_proceed_status_thread): Clear may_range_step.
113 (handle_inferior_event): Disable range stepping as soon as we know
114 the thread that hit the event. Re-enable it whenever we're going
115 to step with a step range.
116 * remote.c (struct vCont_action_support) <r>: New field.
117 (use_range_stepping): New global.
118 (remote_vcont_probe): Handle 'r' action.
119 (append_resumption): Append an 'r' action if the thread may range
120 step.
121 (show_range_stepping): New function.
122 (set_range_stepping): New function.
123 (_initialize_remote): Call add_setshow_boolean_cmd to register the
124 'set range-stepping' and 'show range-stepping' commands.
125 * NEWS: Mention range stepping, the new vCont;r action, and the
126 new "set/show range-stepping" commands.
127
d458bd84
PA
1282013-05-23 Yao Qi <yao@codesourcery.com>
129 Pedro Alves <palves@redhat.com>
130
131 * remote.c (struct vCont_action_support): New struct.
132 (struct remote_state) <support_vCont_t>: Remove field.
133 <vCont_actions_support>: New field.
134 (remote_vcont_probe, remote_stop_ns): Update.
135
ce4c476a
PA
1362013-05-23 Yao Qi <yao@codesourcery.com>
137 Pedro Alves <palves@redhat.com>
138
139 * gdbthread.h (pc_in_thread_step_range): New declaration.
140 * thread.c (pc_in_thread_step_range): New function.
141 * infrun.c (handle_inferior_event): Use it.
142
ce70887a
JB
1432013-05-23 Joel Brobecker <brobecker@adacore.com>
144
145 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
146 of sprintf.
147
55b87a52
KS
1482013-05-22 Keith Seitz <keiths@redhat.com>
149
150 * ada-lang.c (is_known_support_routine): Add explicit free of
151 'func_name' from find_frame_funname.
152 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
153 for func_name from find_frame_funname.
154 * python/py-frame.c (frapy_name): Add explicit free of
155 'name' from find_frame_funname.
156 * stack.c (find_frame_funname): Add comment explaining that
157 funcp must be freed by the caller.
158 Return copy of symbol names instead of pointers.
159 (print_frame): Add a cleanup for 'funname' from
160 find_frame_funname.
161 * stack.h (find_frame_funname): Remove "const" from
162 'funname' parameter.
163
5f2e6b00
TT
1642013-05-22 Tom Tromey <tromey@redhat.com>
165
166 PR c++/15401:
167 * c-valprint.c (c_value_print): Use value_addr for
168 references. Convert back to reference type with value_ref.
169
d85c4847
EZ
1702013-05-22 Eli Zaretskii <eliz@gnu.org>
171
172 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
173 unloaded DLL, it will be done by handle_solib_event. See
174 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
175 details.
176
54eb231c
PM
1772013-05-22 Phil Muldoon <pmuldoon@redhat.com>
178
179 * ui-out.c: Create typedef ui_out_level_p and define vector
180 operations for that type.
181 (struct ui_out): Use a vector instead of an array.
182 (current_level): Return level from a vector.
183 (push_level): Create a level in a vector.
184 (pop_level): Delete a level in a vector.
185 (ui_out_new): Create initial level zero level, and store in a
186 vector.
187 (ui_out_destroy): Add vector cleanup.
188
ac90359c
PA
1892013-05-22 Pedro Alves <palves@redhat.com>
190
191 * python/python-internal.h (gdb_Py_DECREF): Tag with
192 "ARI: editCase function".
193
6dcc1893
PP
1942013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
195
196 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
197
c8c735b9
PA
1982013-05-21 Pedro Alves <palves@redhat.com>
199
200 * python/py-prettyprint.c (apply_val_pretty_printer): Check
201 whether PRINTER is NULL before installing a Py_DECREF cleanup.
202 * python/py-utils.c (py_decref): Don't check for NULL before
203 calling Py_DECREF.
204
1915daeb
PA
2052013-05-21 Pedro Alves <palves@redhat.com>
206
207 * python/py-utils.c (py_decref): Remove extra braces.
208 (gdb_pymodule_addobject): Remove extra braces.
209 * python-internal.h (gdb_Py_DECREF): New static inline function.
210 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
211
bd9673a4
PW
2122013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
213
214 * breakpoints.c (detach_breakpoints): Do not
215 detach breakpoints locations with loc_type bp_loc_other.
216
ff6009d0
JK
2172013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
218
219 Workaround Python 2.6.
220 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
221 a block.
222
3641da11
JK
2232013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
224
225 Code cleanup: constification.
226 * solib.c (solib_ops): Make return type and ops variable type const.
227 (set_solib_ops): Make the new_ops parameter and ops variable const.
228 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
229 (solib_add, solib_keep_data_in_core, clear_solib)
230 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
231 (reload_shared_libraries, solib_global_lookup): Make the ops variable
232 const.
233 * solib.h (set_solib_ops): Make the new_ops parameter const.
234
776af39e
JB
2352013-05-21 Joel Brobecker <brobecker@adacore.com>
236
237 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
238 variable.
239 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
240 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
241 (SYSTEM_GDBINIT_FILES): New variables.
242 (all): Add stamp-system-gdbinit.
243 (stamp-system-gdbinit): New rule.
244 (clean-system-gdbinit, install-system-gdbinit)
245 (uninstall-system-gdbinit): New rules. Make them .PHONY.
246 (install-only): Add dependency on install-system-gdbinit.
247 (uninstall): Add dependency on uninstall-system-gdbinit.
248 (clean): Add dependency on clean-system-gdbinit.
249 * system-gdbinit/elinos.py: New file.
250 * system-gdbinit/wrs-linux.py: New file.
251
1509e573
JB
2522013-05-21 Joel Brobecker <brobecker@adacore.com>
253
254 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
255
c5867ab6
HZ
2562013-05-21 Hui Zhu <hui@codesourcery.com>
257
258 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
259 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
260 * mi/mi-cmd-break.c (ctype.h): New include.
261 (gdb_obstack.h): New include.
262 (mi_argv_to_format, mi_cmd_break_insert_1): New.
263 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
264 (mi_cmd_dprintf_insert): New.
265 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
266 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
267
7d38e38f
TT
2682013-05-20 Tom Tromey <tromey@redhat.com>
269
270 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
271
97b77b39
TT
2722013-05-20 Tom Tromey <tromey@redhat.com>
273
274 * python/py-value.c (valpy_get_dynamic_type): Simplify
275 dynamic_type assignment. Use Py_XINCREF.
276
53e66479
TT
2772013-05-20 Tom Tromey <tromey@redhat.com>
278
279 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
280
dcf87832
TT
2812013-05-20 Tom Tromey <tromey@redhat.com>
282
283 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
284 (gdbpy_selected_frame): Move object-construction code
285 out of TRY_CATCH.
286
aa36459a
TT
2872013-05-20 Tom Tromey <tromey@redhat.com>
288
289 * python/py-arch.c (gdbpy_initialize_arch): Use
290 gdb_pymodule_addobject.
291 * python/py-block.c (gdbpy_initialize_blocks): Use
292 gdb_pymodule_addobject.
293 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
294 gdb_pymodule_addobject.
295 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
296 gdb_pymodule_addobject.
297 * python/py-event.c (gdbpy_initialize_event_generic): Use
298 gdb_pymodule_addobject.
299 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
300 gdb_pymodule_addobject.
301 * python/py-evts.c (add_new_registry): Use
302 gdb_pymodule_addobject.
303 (gdbpy_initialize_py_events): Likewise.
304 * python/py-finishbreakpoint.c
305 (gdbpy_initialize_finishbreakpoints): Use
306 gdb_pymodule_addobject.
307 * python/py-frame.c (gdbpy_initialize_frames): Use
308 gdb_pymodule_addobject.
309 * python/py-function.c (gdbpy_initialize_functions): Use
310 gdb_pymodule_addobject.
311 * python/py-inferior.c (gdbpy_initialize_inferior): Use
312 gdb_pymodule_addobject.
313 * python/py-infthread.c (gdbpy_initialize_thread): Use
314 gdb_pymodule_addobject.
315 * python/py-objfile.c (gdbpy_initialize_objfile): Use
316 gdb_pymodule_addobject.
317 * python/py-param.c (gdbpy_initialize_parameters): Use
318 gdb_pymodule_addobject.
319 * python/py-progspace.c (gdbpy_initialize_pspace): Use
320 gdb_pymodule_addobject.
321 * python/py-symbol.c (gdbpy_initialize_symbols): Use
322 gdb_pymodule_addobject.
323 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
324 gdb_pymodule_addobject.
325 * python/py-type.c (gdbpy_initialize_types): Use
326 gdb_pymodule_addobject.
327 * python/py-utils.c (gdb_pymodule_addobject): New function.
328 * python/py-value.c (gdbpy_initialize_values): Use
329 gdb_pymodule_addobject.
330 * python/python-internal.h (gdb_pymodule_addobject): Declare.
331 * python/python.c (_initialize_python): Use
332 gdb_pymodule_addobject.
333
3d4a3c3e
TT
3342013-05-20 Tom Tromey <tromey@redhat.com>
335
336 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
337 * python/py-param.c (get_set_value, get_show_value): Use
338 explicit decrefs.
339 * python/python.c (start_type_printers, apply_type_printers):
340 Use explicit decrefs.
341
72ff8829
TT
3422013-05-20 Tom Tromey <tromey@redhat.com>
343
344 * python/py-evts.c (gdbpy_initialize_py_events): Don't
345 incref the module.
346
02146ba5
TT
3472013-05-20 Tom Tromey <tromey@redhat.com>
348
349 * python/python.c (gdbpy_run_events): Decref the result
350 of PyObject_CallObject.
351
33ee792f
TT
3522013-05-20 Tom Tromey <tromey@redhat.com>
353
354 * python/py-symtab.c (set_sal): Use
355 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
356 (symtab_and_line_to_sal_object): Update.
357
fcb49fc8
TT
3582013-05-20 Tom Tromey <tromey@redhat.com>
359
360 * python/py-param.c (compute_enum_values): Decref 'item'.
361
0646da15
TT
3622013-05-20 Tom Tromey <tromey@redhat.com>
363
364 * mi/mi-main.c: Include python-internal.h.
365 (mi_cmd_list_features): Check gdb_python_initialized.
366 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
367 (python_inferior_exit, python_new_objfile, add_thread_object)
368 (delete_thread_object, py_free_inferior): Check
369 gdb_python_initialized.
370 * python/py-prettyprint.c (apply_val_pretty_printer): Check
371 gdb_python_initialized.
372 * python/py-type.c (save_objfile_types): Check
373 gdb_python_initialized.
374 * python/python-internal.h (gdb_python_initialized): Declare.
375 * python/python.c (ensure_python_env): Throw exception if
376 Python not initialized.
377 (before_prompt_hook, source_python_script_for_objfile)
378 (start_type_printers, apply_type_printers,
379 free_type_printers): Check gdb_python_initialized.
380 * varobj.c (varobj_get_display_hint)
381 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
382 (install_new_value_visualizer, varobj_set_visualizer)
383 (value_get_print_value): Check gdb_python_initialized.
384
999633ed
TT
3852013-05-20 Tom Tromey <tromey@redhat.com>
386
387 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
388 Check errors.
389 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
390 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
391 Check errors.
392 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
393 Check errors.
394 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
395 Check errors.
396 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
397 Check errors.
398 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
399 init function to return 'int'.
400 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
401 Return 'int'. Check errors.
402 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
403 Check errors.
404 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
405 Return 'int'. Check errors.
406 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
407 Check errors.
408 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
409 Check errors.
410 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
411 Check errors.
412 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
413 Check errors.
414 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
415 Check errors.
416 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
417 Check errors.
418 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
419 Check errors.
420 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
421 Check errors.
422 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
423 Check errors.
424 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
425 Check errors.
426 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
427 Check errors.
428 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
429 Check errors.
430 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
431 Check errors.
432 * python/python-internal.h (gdbpy_initialize_auto_load,
433 gdbpy_initialize_values, gdbpy_initialize_frames,
434 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
435 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
436 gdbpy_initialize_blocks, gdbpy_initialize_types,
437 gdbpy_initialize_functions, gdbpy_initialize_pspace,
438 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
439 gdbpy_initialize_finishbreakpoints,
440 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
441 gdbpy_initialize_thread, gdbpy_initialize_inferior,
442 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
443 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
444 gdbpy_initialize_signal_event,
445 gdbpy_initialize_breakpoint_event,
446 gdbpy_initialize_continue_event,
447 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
448 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
449 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
450 * python/python.c (gdb_python_initialized): New global.
451 (gdbpy_initialize_events): Return 'int'. Check errors.
452 (_initialize_python): Check errors. Set
453 gdb_python_initialized.
454
18868860
TT
4552013-05-20 Tom Tromey <tromey@redhat.com>
456
457 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
458 Decref the reslut of PyObject_CallMethod.
459
9f4ff0c2
TT
4602013-05-20 Tom Tromey <tromey@redhat.com>
461
462 * python/py-event.c (gdbpy_initialize_event_generic): Return
463 early if PyType_Ready fails.
464
0d3a2e8a
TT
4652013-05-20 Tom Tromey <tromey@redhat.com>
466
467 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
468 as 'default' in the switch.
469
b86af38a
TT
4702013-05-20 Tom Tromey <tromey@redhat.com>
471
472 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
473 get_addr_from_python calls out of TRY_CATCH.
474 (infpy_write_memory, infpy_search_memory): Likewise.
475 * python/py-utils.c (get_addr_from_python): Return negative
476 value on error. Use TRY_CATCH.
477 * python/python-internal.h (get_addr_from_python): Use
478 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
479
c127ec58
TT
4802013-05-20 Tom Tromey <tromey@redhat.com>
481
482 * python/py-event.c (evpy_emit_event): Decref the
483 result of PyObject_CallFunctionObjArgs.
484
ba327838
TT
4852013-05-20 Tom Tromey <tromey@redhat.com>
486
487 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
488 Correctly decref.
489
d8191432
TT
4902013-05-20 Tom Tromey <tromey@redhat.com>
491
492 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
493
5d153bd1
TT
4942013-05-20 Tom Tromey <tromey@redhat.com>
495
496 * python/py-event.h (gdbpy_initialize_event_generic): Use
497 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
498 * python/py-evts.c (add_new_registry): Use
499 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
500 * python/python-internal.h
501 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
502
56cc411c
TT
5032013-05-20 Tom Tromey <tromey@redhat.com>
504
505 * python/py-arch.c (archpy_disassemble): Update.
506 * python/py-type.c (typy_get_composite, typy_lookup_typename)
507 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
508 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
509 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
510 macro.
511 (GDB_PY_HANDLE_EXCEPTION): Update.
512 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
513
8919e174
TT
5142013-05-20 Tom Tromey <tromey@redhat.com>
515
516 * python/python-internal.h (events_object_type): Remove.
517
9b08f225
TT
5182013-05-20 Tom Tromey <tromey@redhat.com>
519
520 * python/py-event.h (evpy_emit_event): Use
521 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
522 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
523 New macro.
524
f04010ff
TT
5252013-05-20 Tom Tromey <tromey@redhat.com>
526
527 * py-evtregistry.c (create_event_object): Decref
528 eventregistry_object if PyList_New fails.
529
3919fd96
TT
5302013-05-20 Tom Tromey <tromey@redhat.com>
531
532 * py-cmd.c (gdbpy_string_to_argv): Check result of
533 PyList_New.
534
0430e8cb
TT
5352013-05-20 Tom Tromey <tromey@redhat.com>
536
537 * python/python.c (before_prompt_hook): Add cleanup to
538 decref 'hook'.
539
764123e4
TT
5402013-05-20 Tom Tromey <tromey@redhat.com>
541
542 * python/py-function.c (fnpy_init): Decref result of
543 PyObject_GetAttrString.
544
634c58be
TT
5452013-05-20 Tom Tromey <tromey@redhat.com>
546
547 * python/py-threadevent.c (get_event_thread): Use
548 CPYCHECKER_RETURNS_BORROWED_REF.
549 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
550 New define.
551 (pspace_to_pspace_object, objfile_to_objfile_object)
552 (find_thread_object): Use it.
553
62eec1a5
TT
5542013-05-20 Tom Tromey <tromey@redhat.com>
555
556 * python/py-arch.c (arch_object_type): Use
557 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
558 * python/py-block.c (block_syms_iterator_object_type):
559 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
560 * python/py-bpevent.c (breakpoint_event_object_type):
561 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
562 * python/py-cmd.c (cmdpy_object_type): Use
563 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
564 * python/py-continueevent.c (continue_event_object_type):
565 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
566 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
567 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
568 * python/py-events.h (thread_event_object_type):
569 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
570 * python/py-evtregistry.c (eventregistry_object_type): Use
571 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
572 * python/py-exitedevent.c (exited_event_object_type):
573 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
574 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
575 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
576 * python/py-function.c (fnpy_object_type): Use
577 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
578 * python/py-inferior.c (inferior_object_type, membuf_object_type):
579 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
580 * python/py-infthread.c (thread_object_type): Use
581 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
582 * python/py-lazy-string.c (lazy_string_object_type):
583 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
584 * python/py-newobjfileevent.c (new_objfile_event_object_type):
585 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
586 * python/py-objfile.c (objfile_object_type): Use
587 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
588 * python/py-param.c (parmpy_object_type):
589 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
590 * python/py-progspace.c (pspace_object_type):
591 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
592 * python/py-signalevent.c (signal_event_object_type):
593 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
594 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
595 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
596 * python/py-type.c (type_object_type, field_object_type)
597 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
598 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
599 define.
600 (value_object_type, block_object_type, symbol_object_type)
601 (event_object_type, stop_event_object_type, breakpoint_object_type)
602 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
603
81ea8796
AT
6042013-05-20 Andreas Tobler <andreas@fgznet.ch>
605
606 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
607 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
608
a2ce51a0
DE
6092013-05-20 Doug Evans <dje@google.com>
610
611 When reading CU, stay in DWO. Be more tolerent of bad debug info.
612 For Fission.
613 * dwarf2read.c (struct dwarf2_per_cu_data): New member
614 reading_dwo_directly.
615 (struct signatured_type): New member dwo_unit.
616 (struct die_reader_specs): New member comp_dir.
617 (create_signatured_type_table_from_index): Use malloc for
618 all_type_units instead of objfile's obstack.
619 (create_all_type_units): Ditto.
620 (fill_in_sig_entry_from_dwo_entry): New function.
621 (add_type_unit): New function.
622 (lookup_dwo_signatured_type): New function.
623 (lookup_dwp_signatured_type): New function.
624 (lookup_signatured_type): New arg cu. All callers updated.
625 (init_cu_die_reader): Initialize comp_dir.
626 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
627 Change assert of matching type signatures to call error on mismatch.
628 (lookup_dwo_unit): Add assert.
629 (init_tu_and_read_dwo_dies): New function.
630 (init_cutu_and_read_dies): Call it.
631 (build_type_unit_groups): Handle case of no type unit groups created.
632 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
633 (lookup_dwo_cutu): Tweak complaint.
634 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
635 (dwarf2_per_objfile_free): Free all_type_units.
636
a25cd31f
JB
6372013-05-20 Joel Brobecker <brobecker@adacore.com>
638
639 * windows-nat.c (handle_unload_dll): Add missing empty line.
640
4d804846
JB
6412013-05-20 Joel Brobecker <brobecker@adacore.com>
642
643 * dwarf2read.c (prototyped_function_p): New function.
644 (read_subroutine_type): Use it.
645
1c432e72
JB
6462013-05-20 Joel Brobecker <brobecker@adacore.com>
647
648 * rs6000-aix-tdep.c: De-indent some example code provided
649 as a comment.
650
4feebbdd
EBM
6512013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
652
653 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
654 region is ok for a hardware watchpoint using the new ptrace interface
655 on Power servers.
656
7d0c9981
DE
6572013-05-17 Doug Evans <dje@google.com>
658
659 * NEWS: Mention new maintenance commands check-symtabs, and
660 expand-symtabs, and renamed check-psymtabs.
661 * psymtab.c (maintenance_check_psymtabs): Renamed from
662 maintenance_check_symtabs. Only process already-expanded symbol
663 tables.
664 (_initialize_psymtab): Update.
665 * symmisc.c (maintenance_check_symtabs): New function.
666 (maintenance_expand_name_matcher): New function
667 (maintenance_expand_file_matcher): New function
668 (maintenance_expand_symtabs): New function.
669 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
670 commands.
671
6cbc7c3d
TT
6722013-05-17 Tom Tromey <tromey@redhat.com>
673
674 * python/py-inferior.c (infpy_read_memory): Don't call
675 PyErr_SetString if PyObject_New fails.
676 * python/py-frame.c (frame_info_to_frame_object): Don't call
677 PyErr_SetString if PyObject_New fails.
678
a48b32c0
L
6792013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
680
681 * acinclude.m4: Add check for dlopen in libdl.
682 * configure.ac: Ditto.
683 * configure: Regenerate.
684
3de661e6
PM
6852013-05-17 Phil Muldoon <pmuldoon@redhat.com>
686
687 * frame.c (frame_stash): Convert to htab.
688 (frame_addr_hash): New function.
689 (frame_addr_hash_eq): New function.
690 (frame_stash_create): Convert function to create
691 a hash table.
692 (frame_stash_add): Convert function to add an entry to a hash
693 table.
694 (frame_stash_find): Convert function to search the hash table.
695 (frame_stash_invalidate): Convert function to empty the hash
696 table.
697 (get_frame_id): Only add to stash if a frame_id is created.
698 (_initialize_frame): Call frame_stash_create.
699
bb4168a9 7002013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
701
702 * configure.ac: Ensure MIG is available when building for GNU Hurd
703 hosts.
704 * configure: Regenerate.
705
d1be3247
JB
7062013-05-16 Joel Brobecker <brobecker@adacore.com>
707
708 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
709
b8fea896
JB
7102013-05-16 Joel Brobecker <brobecker@adacore.com>
711
712 * ada-lang.c (ada_make_symbol_completion_list): Make sure
713 all cleanups are done before returning from this function.
714
af880d85
JB
7152013-05-15 Joel Brobecker <brobecker@adacore.com>
716
717 * utils.h: #include "exceptions.h".
718 (enum errors): Remove partial declaration.
719
356a5233
JB
7202013-05-15 Joel Brobecker <brobecker@adacore.com>
721
722 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
723 * gdbarch.h, gdbarch.c: Regenerate.
724 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
725 handling.
726
727 * rs6000-aix-tdep.h: New file.
728 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
729 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
730 "xml-utils.h".
731 (struct field_info, struct ld_info_desc): New types.
732 (ld_info32_desc, ld_info64_desc): New static constants.
733 (struct ld_info): New type.
734 (rs6000_aix_extract_ld_info): New function.
735 (rs6000_aix_shared_library_to_xml): Likewise.
736 (rs6000_aix_ld_info_to_xml): Likewise.
737 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
738 (rs6000_aix_init_osabi): Add call to
739 set_gdbarch_core_xfer_shared_libraries_aix.
740 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
741 Remove "xml-utils.h" include.
742 (LdInfo): Delete typedef.
743 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
744 Delete macros.
745 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
746 Adjust code accordingly.
747 (rs6000_core_ldinfo): Delete, folded into
748 rs6000_aix_core_xfer_shared_libraries_aix.
749 (rs6000_xfer_shared_library): Delete.
750 (rs6000_xfer_shared_libraries): Reimplement.
751
742ce053
MM
7522013-05-15 Markus Metzger <markus.t.metzger@intel.com>
753
754 * record.c (record_goto_cmdlist): New.
755 (cmd_record_goto): Split into this ...
756 (cmd_record_goto_begin): ... this
757 (cmd_record_goto_end): ... and this.
758 (_initialize_record): Change "record goto" to prefix command.
759 Add commands for "record goto begin" and "record goto end".
760 Add an alias for "record goto start" to "record goto begin".
761
e93ba630
JK
7622013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
763
764 * linespec.c (convert_linespec_to_sals): New comment for
765 SOURCE_FILENAME assignment.
766
5821aace
JK
7672013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
768
769 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
770 internal_warning.
771
a1b8c4cc
TT
7722013-05-14 Tom Tromey <tromey@redhat.com>
773
774 * eval.c (parse_and_eval_long): Make 'exp' const.
775 * value.h (parse_and_eval_long): Update.
776
23b3a2c3
TT
7772013-05-14 Tom Tromey <tromey@redhat.com>
778
779 * ui-file.c (gdb_fopen): Make arguments const.
780 * ui-file.h (gdb_fopen): Make arguments const.
781
ca623f82
TT
7822013-05-14 Tom Tromey <tromey@redhat.com>
783
784 * remote.c (remote_set_trace_notes): Make arguments const.
785 * target.c (update_current_target): Update cast.
786 * target.h (to_set_trace_notes): Make arguments const.
787
503ebb2c
TT
7882013-05-14 Tom Tromey <tromey@redhat.com>
789
790 * go32-nat.c (go32_terminal_info): Make 'args' const.
791 * inferior.h (child_terminal_info): Update.
792 * inflow.c (child_terminal_info): Make 'args' const.
793 * target.c (default_terminal_info): Make 'args' const.
794 (debug_to_terminal_save_ours): Likewise.
795 * target.h (struct target_ops) <to_terminal_info>: Make argument
796 const.
797
85e1311a
TT
7982013-05-13 Tom Tromey <tromey@redhat.com>
799
800 * gcore.c (create_gcore_bfd): Make 'filename' const.
801 * gcore.h (create_gcore_bfd): Make 'filename' const.
802 * record-full.c (record_full_save): Make 'recfilename' const.
803 * target.c (target_save_record): Make 'filename' const.
804 * target.h (struct target_ops) <to_save_record>: Make 'filename'
805 const.
806 (target_save_record): Likewise.
807
d62bfeaf
TT
8082013-05-13 Tom Tromey <tromey@redhat.com>
809
92ce080b 810 PR gdb/15338:
d62bfeaf
TT
811 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
812 ranges section has been read.
813
ac1ca910
TT
8142013-05-13 Tom Tromey <tromey@redhat.com>
815
816 PR exp/15364:
817 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
818 STRUCTOP_PTR>: Return a not_lval value for
819 EVAL_AVOID_SIDE_EFFECTS.
820 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
821 for EVAL_AVOID_SIDE_EFFECTS.
822
36d1c68c
JB
8232013-05-13 Joel Brobecker <brobecker@adacore.com>
824
825 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
826 floating point registers to register type before storing
827 value.
828 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
829 Likewise.
830
21ff4686
TT
8312013-05-10 Joel Brobecker <brobecker@adacore.com>
832 Tom Tromey <tromey@redhat.com>
833
834 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
835 New functions.
836 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
837 Declare.
838 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
839 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
840 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
841 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
842
d3685d60
TT
8432013-05-10 Freddie Chopin <freddie_chopin@op.pl>
844 Tom Tromey <tromey@redhat.com>
845
846 PR build/15414:
847 * configure: Rebuild.
848 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
849 with -Wno-format.
850
eb9fe518
PA
8512013-05-10 Pedro Alves <palves@redhat.com>
852
853 * remote.c (_initialize_remote): Fix spelling of
854 qXfer:traceframe-info:read packet in packet config command.
855
9779ab84
PA
8562013-05-10 David Taylor <dtaylor@emc.com>
857
858 PR remote/15455
859
860 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
861 "QTro" at start of packet.
862
060cfbef
JB
8632013-05-10 Joel Brobecker <brobecker@adacore.com>
864
865 * solib-aix.c (solib_aix_relocate_section_addresses):
866 For the .bss section action, apply the same offset as
867 the .data section.
868
ab1c4e88
JB
8692013-05-10 Joel Brobecker <brobecker@adacore.com>
870
871 * solib-aix.c (solib_aix_relocate_section_addresses):
872 Remove FIXME comment.
873
c1357578
JB
8742013-05-10 Joel Brobecker <brobecker@adacore.com>
875
876 PR tdep/15420:
877 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
878 New functions, directly copied from sparc-sol-thread.c.
879 * sparc-sol-thread.c: Delete.
880 * configure.ac: Remove code handling sparc-solaris-thread.c.
881 * configure: Regenerate.
882
1e611234
PM
8832013-05-10 Phil Muldoon <pmuldoon@redhat.com>
884
885 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
886 filter logic.
887 (backtrace_command): Add "no-filters" option parsing.
888 (_initialize_stack): Alter help to reflect "no-filters" option.
889 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
890 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
891 (py-frame.o): Add target
892 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
893 filter files.
894 * python/python.h: Add new frame filter constants, and flag enum.
895 (apply_frame_filter): Add definition.
896 * python/python.c (apply_frame_filter): New non-Python
897 enabled function.
898 * python/py-utils.c (py_xdecref): New function.
899 (make_cleanup_py_xdecref): Ditto.
900 * python/py-objfile.c: Declare frame_filters dictionary.
901 (objfpy_dealloc): Add frame_filters dealloc.
902 (objfpy_new): Initialize frame_filters attribute.
903 (objfile_to_objfile_object): Ditto.
904 (objfpy_get_frame_filters): New function.
905 (objfpy_set_frame_filters): New function.
906 * python/py-progspace.c: Declare frame_filters dictionary.
907 (pspy_dealloc): Add frame_filters dealloc.
908 (pspy_new): Initialize frame_filters attribute.
909 (pspacee_to_pspace_object): Ditto.
910 (pspy_get_frame_filters): New function.
911 (pspy_set_frame_filters): New function.
912 * python/py-framefilter.c: New file.
913 * python/lib/gdb/command/frame_filters.py: New file.
914 * python/lib/gdb/frames.py: New file.
915 * python/lib/gdb/__init__.py: Initialize global frame_filters
916 dictionary
917 * python/lib/gdb/FrameDecorator.py: New file.
918 * python/lib/gdb/FrameIterator.py: New file.
919 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
920 * mi/mi-cmds.h: Declare.
921 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
922 --no-frame-filter logic, and Python frame filter logic.
923 (stack_enable_frame_filters): New function.
924 (parse_no_frame_option): Ditto.
925 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
926 filter logic.
927 (mi_cmd_stack_list_locals): Ditto.
928 (mi_cmd_stack_list_args): Ditto.
929 (mi_cmd_stack_list_variables): Ditto.
930 * NEWS: Add frame filter note.
931
2cb9c859
DE
9322013-05-09 Doug Evans <dje@google.com>
933
6bf667bb
DE
934 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
935 All callers updated.
936 (syms_from_objfile): Ditto. Make static.
937 (symbol_file_add_with_addrs): Renamed from
938 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
939 num_offsets. All callers updated.
940 * symfile.h (syms_from_objfile): Delete.
941
2cb9c859
DE
942 * symfile.c (decrement_reading_symtab): Add assert.
943 (increment_reading_symtab): Ditto.
944
40aea477
JB
9452013-05-09 Joel Brobecker <brobecker@adacore.com>
946
947 * source.c (forward_search_command): Replace call to getc
948 by call to fgetc.
949 (reverse_search_command): Likewise.
950
680d1742
DE
9512013-05-08 Doug Evans <dje@google.com>
952
953 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
954 matching test.
955
17e760ae
JB
9562013-05-08 Joel Brobecker <brobecker@adacore.com>
957
958 * sol-thread.c (info_cb): Factorize the code a little.
959
c0f5f490
JB
9602013-05-08 Joel Brobecker <brobecker@adacore.com>
961
962 * sol-thread.c (info_cb): Rework the output of the "maintenance
963 info sol-threads" command a bit.
964
5d74e061
JB
9652013-05-08 Joel Brobecker <brobecker@adacore.com>
966
967 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
968 Replace ti.ti_startfunc by ti.ti_pc.
969
814a3ff7
JB
9702013-05-08 Joel Brobecker <brobecker@adacore.com>
971
972 * solib-aix.c (solib_aix_free_library_list): New function
973 for the case where HAVE_LIBEXPAT is not defined.
974
58ce7251
SDJ
9752013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
976
977 PR breakpoints/15413:
978 * breakpoint.c (condition_completer): Simplify the code to
979 disconsider multiple locations of breakpoints when completing the
980 "condition" command.
981
be8b1ea6
PM
9822013-05-07 Pierre Muller <muller@sourceware.org>
983
984 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
985 instead of <sys/wait.h>.
986
1e52bda6
PM
9872013-05-07 Pierre Muller <muller@sourceware.org>
988
989 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
990 trailing new line from warning message.
991
27fd0c6b
PM
9922013-05-07 Pierre Muller <muller@sourceware.org>
993
994 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
995 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
996
e228ac87
JB
9972013-05-07 Joel Brobecker <brobecker@adacore.com>
998
999 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
1000 error message (ARI fix).
1001
10022013-05-07 Joel Brobecker <brobecker@adacore.com>
1003
1004 * features/library-list-aix.dtd: Replace library-list by
1005 library-list-aix.
1006 * rs6000-nat.c: Replace library-list by library-list-aix
1007 throughout.
1008 * solib-aix.c: Likewise.
1009
10102013-05-07 Joel Brobecker <brobecker@adacore.com>
1011
1012 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
1013 Renames TARGET_OBJECT_AIX_LIBRARIES.
1014 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
1015 TARGET_OBJECT_LIBRARIES_AIX throughout.
1016 * solib-aix.c: Likwise.
1017
26a4dda9
YQ
10182013-05-07 Yao Qi <yao@codesourcery.com>
1019
1020 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
1021 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
1022
3582629f
YQ
10232013-05-07 Yao Qi <yao@codesourcery.com>
1024
1025 * solib-dsbt.c (enable_break): Declare.
1026 (dsbt_current_sos): Remove call to enable_break2.
1027 (enable_break2): Rename to enable_break. Set solib breakpoint
1028 on '_dl_debug_state'.
1029 (enable_break): Remove.
1030
aacbb8a5
LM
10312013-05-07 Luis Machado <lgustavo@codesourcery.com>
1032
1033 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
1034 debug state prior to replicating existing hardware watchpoints or
1035 breakpoints.
1036
0c013353
JK
10372013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1038
1039 * gcore.c (gcore_create_callback): Ignore sections with
1040 separate_debug_objfile_backlink != NULL.
1041
a1217d97
SL
10422013-05-06 Sandra Loosemore <sandra@codesourcery.com>
1043 Andrew Jenner <andrew@codesourcery.com>
1044 Chung-Lin Tang <cltang@codesourcery.com>
1045 Julian Brown <julian@codesourcery.com>
1046
1047 Based on the nios2-elf port from Altera Corporation.
1048
1049 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
1050 nios2-linux-tdep.o.
1051 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
1052 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
1053 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
1054 * nios2-tdep.h: New.
1055 * nios2-tdep.c: New.
1056 * nios2-linux-tdep.c: New.
1057 * features/Makefile (WHICH): Add nios2-linux.
1058 (nios2-linux-expedite): Set.
1059 * features/nios2-cpu.xml: New.
1060 * features/nios2.xml: New.
1061 * features/nios2-linux.xml: New.
1062 * features/nios2.c: New (autogenerated).
1063 * features/nios2-linux.c: New (autogenerated).
1064 * regformats/nios2-linux.dat: New (autogenerated).
1065 * NEWS (Changes since GDB 7.6): Add new Nios II targets
1066 and commands.
1067
0892cb63
DE
10682013-05-06 Doug Evans <dje@google.com>
1069
3b7bacac
DE
1070 * symfile.c: Whitespace cleanup.
1071
0892cb63
DE
1072 * solist.h (struct target_so_ops): New member clear_so.
1073 * solib-svr4.c (svr4_clear_so): New function.
1074 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
1075 * solib.c (clear_so): Renamed from free_so_symbols.
1076 All callers updated. Call target clear_so if it exists.
1077
40501e00
TT
10782013-05-06 Tom Tromey <tromey@redhat.com>
1079
1080 * ada-lang.c (ada_value_primitive_packed_val): Don't
1081 call value_incref.
1082 * value.c (set_value_parent): Incref the new parent and decref
1083 the old parent.
1084 (value_copy, value_primitive_field): Use set_value_parent.
1085
b6807d98
TT
10862013-05-06 Tom Tromey <tromey@redhat.com>
1087
1088 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
1089 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
1090 if needed.
1091 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
1092 * dwarf2read.c (write_constant_as_bytes)
1093 (dwarf2_fetch_constant_bytes): New functions.
1094
3aef2284
TT
10952013-05-06 Tom Tromey <tromey@redhat.com>
1096
1097 * dwarf2read.c (dwarf2_const_value_data): Remove unused
1098 parameters.
1099 (dwarf2_const_value_attr): Update.
1100
66f65e2b
TT
11012013-05-06 Tom Tromey <tromey@redhat.com>
1102
1103 * somread.c (som_symfile_offsets): Add 'const' to addrs.
1104 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
1105 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
1106 Remove declaration.
1107
7919a973
TT
11082013-05-06 Tom Tromey <tromey@redhat.com>
1109
1110 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
1111 objfile's obstack.
1112
a7bfba49
DE
11132013-05-06 Doug Evans <dje@google.com>
1114
3189cb12
DE
1115 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
1116 * stabsread.h (process_one_symbol): Update declaration.
1117 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
1118 * elfread.c (elf_symfile_relocate_probe): Ditto.
1119 * psymtab.c (relocate_psymtabs): Ditto.
1120 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
1121 (objfile_relocate): Ditto.
1122 * objfiles.h (objfile_relocate): Update declaration.
1123 * symfile.c (relative_addr_info_to_section_offsets): Constify
1124 addrs parameter.
1125 (default_symfile_offsets): Ditto.
1126 (syms_from_objfile_1): Constify offsets parameter.
1127 (syms_from_objfile): Ditto.
1128 (symbol_file_add_with_addrs_or_offsets): Ditto.
1129 (symfile_map_offsets_to_segments): Constify data parameter.
1130 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
1131 delta parameters of member relocate.
1132 (struct sym_probe_fns): Constify new_offsets,
1133 delta parameters of member sym_relocate_probe.
1134 (struct sym_fns): Constify section_addr_info parameter of member
1135 sym_offsets.
1136 (relative_addr_info_to_section_offsets): Update declaration.
1137 (default_symfile_offsets): Ditto.
1138 (syms_from_objfile): Ditto.
1139 (symfile_map_offsets_to_segments): Ditto.
1140
a7bfba49
DE
1141 * symfile.c (syms_from_objfile_1): Use correct section count when
1142 objfile->sf == NULL.
1143
5f8e0b8f
MF
11442013-05-06 Mike Frysinger <vapier@gentoo.org>
1145
1146 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
1147
ea52d893
DE
11482013-05-06 Doug Evans <dje@google.com>
1149
1150 * psympriv.h (struct partial_symtab): Augment comment for member
1151 section_offsets.
1152
4d1eb6b4
JB
11532013-05-06 Joel Brobecker <brobecker@adacore.com>
1154
1155 Reimplement shared library support on ppc-aix...
1156 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
1157 * features/library-list-aix.dtd: New file.
1158 * solib-aix.h, solib-aix.c: New file.
1159 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
1160 (rs6000_find_toc_address_hook): Delete.
1161 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
1162 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
1163 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
1164 "xml-utils.h".
1165 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
1166 (vmap_symtab, fixup_breakpoints): Delete.
1167 (rs6000_xfer_shared_libraries): New function.
1168 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
1169 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
1170 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
1171 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
1172 (rs6000_xfer_shared_library): New function.
1173 (find_toc_address): Delete.
1174 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
1175 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
1176 * xcoffread.c (record_minimal_symbol): Reloate symbol address
1177 before creating minimal symbol. Adjust function description
1178 accordingly.
1179 (scan_xcoff_symtab): Replace call to
1180 prim_record_minimal_symbol_and_info by call to
1181 record_minimal_symbol.
1182 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
1183 around default_symfile_offsets.
1184 * configure.tgt: Add solib-aix.o to gdb_target_obs for
1185 powerpc-aix targets.
1186 * config/rs6000/nm-rs6000.h: Delete.
1187 * config/powerpc/aix.mh (NAT_FILE): Delete.
1188 (NATDEPFILES): Remove xcoffsolib.o.
1189 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
1190 (ALL_TARGET_OBS): Add solib-aix.o.
1191 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
1192 config/rs6000/nm-rs6000.h. Add solib-aix.h.
1193 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
1194 * xcoffsolib.h, xcoffsolib.c: Delete.
1195
1196 * solib.c (reload_shared_libraries): Remove reference to
1197 SOLIB_CREATE_INFERIOR_HOOK.
1198 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
1199 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
1200 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
1201 comment.
1202 * corelow.c (deprecated_core_resize_section_table): Delete.
1203 * exec.c: Remove include of xcoffsolib.h".
1204 (map_vmap, vmap): Delete.
1205 (exec_close_1): Remove references to vmap.
1206 (exec_file_attach): Remove vmap handling code, and reference
1207 to DEPRECATED_IBM6000_TARGET.
1208 (bfdsec_to_vmap): Delete.
1209 (exec_files_info): Remove block of code handling VMAP.
1210 * infcmd.c (post_create_inferior): Remove reference to
1211 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
1212 * infrun.c (follow_exec): Remove reference to
1213 SOLIB_CREATE_INFERIOR_HOOK.
1214 * stack.c (print_frame): Remove reference to PC_SOLIB.
1215 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
1216 (dsbt_relocate_main_executable): Likewise.
1217 * solib-frv.c (frv_current_sos): Likewise.
1218
0c4f667c
JB
12192013-05-06 Joel Brobecker <brobecker@adacore.com>
1220
1221 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
1222 to target_write_memory and target_read_memory.
1223
726ce67c
JB
12242013-05-06 Joel Brobecker <brobecker@adacore.com>
1225
1226 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
1227 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
1228
c8c9911f
JB
12292013-05-06 Joel Brobecker <brobecker@adacore.com>
1230
1231 * darwin-nat.c: Replace all "%x" instances in format strings
1232 into "0x%x" throughout.
1233
fda184b6
JB
12342013-05-06 Joel Brobecker <brobecker@adacore.com>
1235
1236 * darwin-nat.c (darwin_mourn_inferior): Replace call to
1237 gdb_assert by call to MACH_CHECK_ERROR.
1238 (darwin_attach_pid): Raise an error rather than a failed
1239 assertion when various system calls failed. Report a warning
1240 instead of raising a failed assertion when PREV_NOT is not NULL
1241 after call to mach_port_request_notification.
1242 (darwin_ptrace_me): Raise an error rather than a failed
1243 assertion when read returns nonzero.
1244
d1d69afb
JB
12452013-05-06 Joel Brobecker <brobecker@adacore.com>
1246
1247 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
1248
dc90b24d
JK
12492013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1250
1251 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
1252
faab9922
JK
12532013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1254
1255 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
1256 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
1257 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
1258 a stale cleanup. Fix double free of NAME.
1259
e0ea48a0
EZ
12602013-05-04 Eli Zaretskii <eliz@gnu.org>
1261
1262 * windows-nat.c (windows_delete_thread): Accept an additional
1263 argument, the thread's exit code, and announce thread death when
1264 print_thread_events is non-zero and we are deleting a thread that
1265 is not the main thread.
1266 (get_windows_debug_event): Pass thread exit code to
1267 windows_delete_thread.
1268
83b2706a
KB
12692013-05-03 Kevin Buettner <kevinb@redhat.com>
1270
1271 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
1272 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
1273 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
1274 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
1275 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
1276 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
1277 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
1278 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
1279 (gdbarch_tdep): New struct.
1280 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
1281 E_NUM_REGS.
1282 (v850e3v5_register_name): New function.
1283 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
1284 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
1285 code handling the struct return conventions for the RH850 ABI.
1286 Update all callers.
1287 (v850_eight_byte_align_p): New function.
1288 (v850_push_call_dummy): Push structs by value, not by reference
1289 for the RH850 ABI. Add support for eight byte alignment.
1290 (v850_dbtrap_breakpoint_from_pc): New function.
1291 (v850_gdbarch_init): Add ABI detection code. Register
1292 v850e3v5_register_name for the v850e3v5 architecture. Set the
1293 number of registers for v850e3v5. Register
1294 v850_dbtrap_breakpoint_from_pc as appropriate.
1295 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
1296
d445b2f6
DE
12972013-05-03 Doug Evans <dje@google.com>
1298
1299 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
1300 of bfd_count_sections.
1301 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
1302 * symfile.c (default_symfile_offsets): Ditto.
1303 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
1304 one entry, not bfd_count_sections entries.
1305
b3ce41ea
KB
13062013-05-03 Kevin Buettner <kevinb@redhat.com>
1307
1308 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
1309 `save' and `restore' register groups. Don't include SPL
1310 or SPH in these groups.
1311 (rl78_dwarf_reg_to_regnum): Adjust mapping for
1312 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
1313 RL78_ES_REGNUM, and RL78_CS_REGNUM.
1314 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
1315 dwarf2_append_unwinders().
1316
96f7d3f1
PW
13172013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1318
1319 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
1320 ignore SIGINT and SIGTRAP in case these internal signals are
1321 caught explicitely.
1322
b9dd1947
JB
13232013-05-01 Joel Brobecker <brobecker@adacore.com>
1324
1325 * darwin-nat.c (darwin_read_write_inferior): Change types
1326 of parameters rdaddr and wraddr to "gdb_byte *". Change type
1327 of copy_count to "mach_msg_type_number_t".
1328 (darwin_read_dyld_info): Change type of parameter
1329 rdaddr to "gdb_byte *".
1330
4ca18a63
JB
13312013-05-01 Joel Brobecker <brobecker@adacore.com>
1332
1333 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
1334 of &info->load_map from "char *" to "gdb_byte *".
1335
2b692d32
JB
13362013-05-01 Joel Brobecker <brobecker@adacore.com>
1337
1338 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
1339 from "char *" to "gdb_byte *".
1340 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
1341
a98c29a0
DE
13422013-04-30 Doug Evans <dje@google.com>
1343
6a506a2d
DE
1344 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
1345 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
1346 DWO stub. If DWO isn't found, just use stub.
1347 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
1348
a98c29a0
DE
1349 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
1350 calling init_cutu_and_read_dies.
1351
f92b06da
WT
13522013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
1353
1354 * target-descriptions.c (maint_print_c_tdesc_cmd):
1355 Add case to parse structures as register types and
1356 bitfields.
1357
95eebdcc
WT
13582013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
1359
1360 * MAINTAINERS (Write After Approval): Add myself to the list.
1361
019c1128
JB
13622013-04-30 Joel Brobecker <brobecker@adacore.com>
1363
1364 * sol-thread.c (rw_common): Change type of parameter "buf"
1365 to "gdb_byte *".
1366 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
1367 rw_common to "gdb_byte *" instead of "char *".
1368
5812197c
JB
13692013-04-30 Joel Brobecker <brobecker@adacore.com>
1370
1371 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
1372 of local variable msym to const struct bound_minimal_symbol.
1373 Adjust use accordingly.
1374 [ti.ti_state == TD_THR_SLEEP]: Likewise.
1375
ecccb813
TS
13762013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
1377
1378 * i386gnu-nat.c (CREG_OFFSET): New macro.
1379 (creg_offset): New array.
1380 (CREG_ADDR): Use creg_offset instead of reg_offset.
1381
f1d02dd4 13822013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
1383
1384 * mep-tdep.c (mep_write_pc): Delete.
1385 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
1386 Add call to set_gdbarch_pc_regnum.
1387
f1d02dd4 13882013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
1389
1390 * common/filestuff.c: Replace #include <dirent.h> by
1391 #include "gdb_dirent.h".
1392
f1d02dd4 13932013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
1394
1395 * common/filestuff.c: Replace #include <sys/stat.h> by
1396 #include "gdb_stat.h".
1397
b385a60d
PM
13982013-04-29 Pierre Muller <muller@sourceware.org>
1399
1400 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
1401 editCase function rule.
1402 (get_DW_AT_signature_type): Likewise.
1403
d27b54ad
JB
14042013-04-29 Joel Brobecker <brobecker@adacore.com>
1405
1406 * m32r-tdep.c (m32r_write_pc): Delete.
1407 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
1408 Add call to set_gdbarch_pc_regnum.
1409
47d21dc5
PM
14102013-04-29 Pierre Muller <muller@sourceware.org>
1411
1412 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
1413
9056882e
JB
14142013-04-29 Joel Brobecker <brobecker@adacore.com>
1415
1416 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
1417
7ee4732a
YQ
14182013-04-28 Yao Qi <yao@codesourcery.com>
1419
1420 * solib-dsbt.c (fetch_loadmap): Re-indent.
1421 (displacement_from_map, enable_break2): Likewise.
1422 (dsbt_relocate_section_addresses): Likewise.
1423
2260af53 14242013-04-26 Joel Brobecker <brobecker@adacore.com>
1425
1426 GDB 7.6 released.
1427
ff546935
TT
14282013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
1429
1430 PR corefiles/14983:
1431 * dwarf2read.c (process_full_comp_unit): Always create a static
1432 block.
1433
40fb6c5e
HZ
14342013-04-25 Hui Zhu <hui@codesourcery.com>
1435
1436 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
1437 to loc->cmd_bytecode.
1438
74e04d1c
DE
14392013-04-24 Doug Evans <dje@google.com>
1440
1441 * dwarf2read.c (setup_type_unit_groups): Fix comment.
1442
3cf62c1d
KS
14432013-04-22 Keith Seitz <keiths@redhat.com>
1444
1445 * tracepoint.c (trace_save): Call the writer's start method.
1446
bf9e4d0c
MB
14472013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
1448
1449 PR gdb/10462
1450 * cli/cli-decode.c (lookup_command): Show an error if there is no space
1451 before argument.
1452
5d71132c
TT
14532013-04-23 Tom Tromey <tromey@redhat.com>
1454
1455 * common/filestuff.c: Check USE_WIN32API before including
1456 sys/socket.h.
1457 (HAVE_F_GETFD): New define.
1458 (mark_cloexec): Check HAVE_F_GETFD.
1459 (gdb_open_cloexec): Change 'mode' to unsigned long.
1460 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
1461 (gdb_pipe_cloexec): Check HAVE_PIPE.
1462 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
1463 long.
1464
a11cfd87
HZ
14652013-04-23 Hui Zhu <hui@codesourcery.com>
1466
1467 PR gdb/15293
a11cfd87
HZ
1468 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
1469
2d9442cc
HZ
14702013-04-23 Hui Zhu <hui@codesourcery.com>
1471
1472 PR gdb/15165
2d9442cc
HZ
1473 * breakpoint.c (dprintf_print_recreate): New.
1474 (save_breakpoints): Let it not save dprintf commands.
1475 (initialize_breakpoint_ops): Set dprintf_print_recreate.
1476
614c279d
TT
14772013-04-22 Tom Tromey <tromey@redhat.com>
1478
1479 PR gdb/7912:
1480 * Makefile.in (SFILES): Add filestuff.c
1481 (COMMON_OBS): Add filestuff.o.
1482 (filestuff.o): New target.
1483 * auto-load.c (auto_load_objfile_script_1): Use
1484 gdb_fopen_cloexec.
1485 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
1486 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
1487 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
1488 * common/agent.c (gdb_connect_sync_socket): Use
1489 gdb_socket_cloexec.
1490 * common/filestuff.c: New file.
1491 * common/filestuff.h: New file.
1492 * common/linux-osdata.c (linux_common_core_of_thread)
1493 (command_from_pid, commandline_from_pid, print_source_lines)
1494 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
1495 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
1496 gdb_fopen_cloexec.
1497 * common/linux-procfs.c (linux_proc_get_int)
1498 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
1499 * config.in, configure: Rebuild.
1500 * configure.ac: Don't check for sys/socket.h. Check for
1501 fdwalk, pipe2.
1502 * corelow.c (core_open): Use gdb_open_cloexec.
1503 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
1504 * fork-child.c (fork_inferior): Call close_most_fds.
1505 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
1506 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
1507 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
1508 Use gdb_fopen_cloexec.
1509 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
1510 gdb_open_cloexec.
1511 (linux_async_pipe): Use gdb_pipe_cloexec.
1512 * remote-fileio.c (remote_fileio_func_open): Use
1513 gdb_open_cloexec.
1514 * remote.c (remote_file_put, remote_file_get): Use
1515 gdb_fopen_cloexec.
1516 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
1517 close_most_fds.
1518 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
1519 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
1520 * solib.c (solib_find): Use gdb_open_cloexec.
1521 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
1522 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
1523 (tfile_open): Use gdb_open_cloexec.
1524 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
1525 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
1526 * xml-support.c (xml_fetch_content_from_file): Use
1527 gdb_fopen_cloexec.
1528 * main.c (captured_main): Call notice_open_fds.
1529
5fda2332
EBM
15302013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
1531
1532 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
1533 'char *' to 'gdb_byte *'.
1534 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
1535 'gdb_byte'.
1536
eb6c553b
YQ
15372013-04-22 Yao Qi <yao@codesourcery.com>
1538
1539 * infrun.c: Fix typo in comment.
1540
9991b207
SDJ
15412013-04-22 Andrew Haley <aph@redhat.com>
1542
1543 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
1544 instead of "long".
1545
8b4833e3
YQ
15462013-04-20 Yao Qi <yao@codesourcery.com>
1547
1548 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
1549 'char *' to 'gdb_byte *'. Cast the return value of
1550 'bt_ctf_get_char_array' to 'gdb_byte *'.
1551
bd3f3b55
PA
15522013-04-19 Pedro Alves <palves@redhat.com>
1553
1554 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
1555 -Wpointer-sign.
1556 * configure: Regenerate.
1557
c49e7f76
PA
15582013-04-19 Pedro Alves <palves@redhat.com>
1559
1560 * ser-tcp.c (net_read_prim): Cast second argument to recv to
1561 'void *'.
1562
12ff8552
PA
15632013-04-19 Pedro Alves <palves@redhat.com>
1564
1565 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
1566 Change type of 'myaddr' parameter to gdb_byte pointer.
1567 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
1568 to 'long long' pointer instead of to 'unsigned long long'.
1569 (monitor_write_memory_block, monitor_read_memory_single)
1570 (monitor_read_memory): Change type of 'myaddr' parameter to
1571 gdb_byte pointer.
1572
9c37696b
PA
15732013-04-19 Pedro Alves <palves@redhat.com>
1574
1575 * record.c (validate_history_size): Make parameter 'setting'
1576 unsigned.
1577
a398505b
PA
15782013-04-19 Pedro Alves <palves@redhat.com>
1579
1580 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
1581 to 'gdb_byte *'.
1582
9f8afa72
PA
15832013-04-19 Pedro Alves <palves@redhat.com>
1584
1585 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
1586 local to int.
1587
c714b426
PA
15882013-04-19 Pedro Alves <palves@redhat.com>
1589
1590 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
1591 * ada-tasks.c (read_fat_string_value): Likewise.
1592
507a579c
PA
15932013-04-19 Pedro Alves <palves@redhat.com>
1594
1595 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
1596 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
1597 'offset', and adjust.
1598
f9d83a0b
PA
15992013-04-19 Pedro Alves <palves@redhat.com>
1600
1601 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
1602 (read_index_from_section): Add cast to 'char *'.
1603
745eb4fd
PA
16042013-04-19 Pedro Alves <palves@redhat.com>
1605
1606 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
1607
db5be46f
PA
16082013-04-19 Pedro Alves <palves@redhat.com>
1609
1610 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
1611
0f928d68
PA
16122013-04-19 Pedro Alves <palves@redhat.com>
1613
1614 * record-full.c (record_full_get_bookmark): Change local 'ret'
1615 type to char * and add cast to gdb_byte *.
1616 (record_full_goto_bookmark): Handle 'bookmark' argument as a
1617 string.
1618 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
1619
89f6d837
PA
16202013-04-19 Pedro Alves <palves@redhat.com>
1621
1622 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
1623 * python/py-prettyprint.c (print_string_repr): Change type of
1624 'output' local to char *. Add cast to gdb_byte * in
1625 LA_PRINT_STRING call.
1626 (print_children): Change type of 'output' local to char *.
1627 * python/py-value.c (valpy_string): Add cast to const char * in
1628 PyUnicode_Decode call.
1629
ce6ec7d8
PA
16302013-04-19 Pedro Alves <palves@redhat.com>
1631
1632 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
1633 and change its type to 'const char *'. Adjust.
1634 (mips_send_packet): Add cast to 'char *', and remove cast to
1635 'unsigned char *'.
1636 (mips_receive_packet): Remove cast to 'unsigned char *'.
1637 (mips_load_srec): Use bfd_byte.
1638 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
1639 (pmon_checkset): Make 'value' parameter unsigned.
1640
fda0389f
PA
16412013-04-19 Pedro Alves <palves@redhat.com>
1642
1643 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
1644
bc20a4af
PA
16452013-04-19 Pedro Alves <palves@redhat.com>
1646
1647 * remote.c (remote_write_bytes_aux, compare_sections_command)
1648 (remote_read_qxfer)
1649 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
1650 (remote_hostio_readlink, remote_bfd_iovec_pread)
1651 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
1652 binary buffer, and char when buffer is used as string.
1653 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
1654 (trace_save, tfile_open, traceframe_walk_blocks)
1655 (tfile_fetch_registers): Likewise.
1656
c628b528
PA
16572013-04-19 Pedro Alves <palves@redhat.com>
1658
1659 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
1660 buffer and size_t size. Adjust.
1661 * ser-base.h (ser_base_write): Adjust.
1662 * ser-go32.c (cnts): Change type to size_t.
1663 (dos_write): Change prototype -- take 'void *'
1664 buffer and size_t size. Adjust.
1665 (dos_info): Print elements of 'cnts' as unsigned long.
1666 * serial.c (serial_write): Likewise.
1667 * serial.h (serial_write): Adjust.
1668 (struct serial_ops) <write>: Change prototype -- take 'void *'
1669 buffer and size_t size. Adjust.
1670
51a5cd90
PA
16712013-04-19 Pedro Alves <palves@redhat.com>
1672
1673 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
1674 gdb_byte *.
1675 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
1676
a9933661
PA
16772013-04-19 Pedro Alves <palves@redhat.com>
1678
1679 * alpha-tdep.c (alpha_extract_return_value): Use
1680 regcache_cooked_read_unsigned to read 'v0'.
1681
19afdd07
PA
16822013-04-19 Pedro Alves <palves@redhat.com>
1683
1684 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
1685 parameters 'at', 'as' and 'offset' to uint32_t.
1686
96b32e50
PA
16872013-04-19 Pedro Alves <palves@redhat.com>
1688
1689 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
1690 'is64' to signed 'int'.
1691
eb1bd1fb
PA
16922013-04-19 Pedro Alves <palves@redhat.com>
1693
1694 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
1695 parameter to int *.
1696
463920bf
PA
16972013-04-19 Pedro Alves <palves@redhat.com>
1698
1699 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
1700 'insnbuf' buffer type to unsigned int[].
1701
70242eb1
PA
17022013-04-19 Pedro Alves <palves@redhat.com>
1703
1704 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
1705
9d1dd0e2
PA
17062013-04-19 Pedro Alves <palves@redhat.com>
1707
1708 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
1709 unsigned long *.
1710
44096aee
PA
17112013-04-19 Pedro Alves <palves@redhat.com>
1712
1713 * alpha-tdep.c (heuristic_fence_post): Change type to int.
1714 (alpha_heuristic_proc_start): Adjust to check -1 instead of
1715 UINT_MAX.
1716 * mips-tdep.c (heuristic_fence_post): Change type to int.
1717 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
1718
e4286e57
PA
17192013-04-19 Pedro Alves <palves@redhat.com>
1720
1721 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
1722 (struct gdbarch_tdep) <cris_version>: Make unsigned.
1723 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
1724
001f13d8
PA
17252013-04-19 Pedro Alves <palves@redhat.com>
1726
1727 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
1728 it to get a string view of the byte buffer.
1729 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
1730 type to gdb_byte *. Adjust.
1731 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
1732 Change local to char *.
1733 * solib-darwin.c (find_program_interpreter): Change return type to
1734 char *. Adjust.
1735 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
1736 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
1737 * solib-frv.c (enable_break2): Change local 'buf' to char *.
1738 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
1739 * solib-svr4.c (find_program_interpreter): Change return type to
1740 char *. Adjust.
1741 (enable_break): Change local 'interp_name' to char *.
1742 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
1743 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
1744 (spu_pseudo_register_write_spu): Use char for string buffer.
1745 Adjust.
1746 (info_spu_event_command, info_spu_signal_command): Add casts to
1747 'char *'.
1748
948f8e3d
PA
17492013-04-19 Pedro Alves <palves@redhat.com>
1750
1751 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
1752 gdb_byte[].
1753 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
1754 * ada-lang.c (ada_value_assign): Use gdb_byte.
1755 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
1756 (alphanbsd_sigtramp_offset): Use gdb_byte.
1757 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
1758 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
1759 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
1760 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
1761 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
1762 * arm-tdep.c (arm_stub_unwind_sniffer)
1763 (arm_displaced_init_closure): Use gdb_byte.
1764 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
1765 (arm_default_thumb_le_breakpoint)
1766 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
1767 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
1768 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
1769 * arm-wince-tdep.c (arm_wince_le_breakpoint)
1770 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
1771 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
1772 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
1773 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
1774 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
1775 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
1776 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
1777 (cris_store_return_value, cris_extract_return_value): Use
1778 gdb_byte.
1779 (constraint): Change type of parameter to char * from signed
1780 char*. Use gdb_byte.
1781 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
1782 of local buffer to gdb_byte *.
1783 * dwarf2read.c (read_index_from_section): Use gdb_byte.
1784 (create_dwp_hash_table): Change type of locals to gdb_byte *.
1785 (add_address_entry): Change type of local buffer to gdb_byte[].
1786 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
1787 (frv_push_dummy_call): Use gdb_byte.
1788 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
1789 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
1790 (hppa_hpux_supply_save_state): Use gdb_byte.
1791 * hppa-tdep.c (hppa32_push_dummy_call)
1792 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
1793 * ia64-tdep.c (extract_bit_field, replace_bit_field)
1794 (slotN_contents, replace_slotN_contents): Change type of parameter
1795 to gdb_byte *.
1796 (fetch_instruction, ia64_pseudo_register_write)
1797 (ia64_register_to_value, ia64_value_to_register)
1798 (ia64_extract_return_value, ia64_store_return_value)
1799 (ia64_push_dummy_call): Use gdb_byte.
1800 * m32c-tdep.c (m32c_return_value): Remove cast.
1801 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
1802 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
1803 gdb_byte.
1804 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
1805 * mn10300-tdep.c (mn10300_store_return_value)
1806 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
1807 gdb_byte.
1808 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
1809 (moxie_process_record): Remove casts.
1810 * ppc-ravenscar-thread.c (supply_register_at_address)
1811 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
1812 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
1813 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
1814 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
1815 * remote.c (compare_sections_command): Use gdb_byte.
1816 * score-tdep.c (score7_free_memblock): Change type of parameter to
1817 gdb_byte *.
1818 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
1819 gdb_byte *. Use gdb_byte.
1820 (sh_push_dummy_call_fpu): Use gdb_byte.
1821 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
1822 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
1823 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
1824 Change parameter type to 'gdb_byte *'. Use gdb_byte.
1825 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
1826 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
1827 (sh64_store_return_value, sh64_register_convert_to_virtual):
1828 Change parameter type to 'gdb_byte *'. Use gdb_byte.
1829 (sh64_pseudo_register_write): Use gdb_byte.
1830 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
1831 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
1832 buffer.
1833 (irix_current_sos): Use gdb_byte.
1834 * solib-som.c (som_current_sos): Use gdb_byte.
1835 * sparc-ravenscar-thread.c (supply_register_at_address)
1836 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
1837 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
1838 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
1839 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
1840 'gdb_byte *'.
1841 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
1842 'gdb_byte *'.
1843 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
1844 * xstormy16-tdep.c (xstormy16_extract_return_value)
1845 (xstormy16_store_return_value): Change parameter type to
1846 'gdb_byte *'. Adjust.
1847 (xstormy16_push_dummy_call): Use gdb_byte.
1848 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
1849 (call0_analyze_prologue, execute_code): Use gdb_byte.
1850
433730c9
PA
18512013-04-19 Vladimir Kargov <kargov@gmail.com>
1852 Pedro Alves <palves@redhat.com>
1853
1854 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
1855 value contents.
1856
ac9ec31b
DE
18572013-04-17 Doug Evans <dje@google.com>
1858
1859 * dwarf2read.c (struct signatured_type): New member type.
1860 (struct attribute): Replace member signatured_type with signature.
1861 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
1862 (read_call_site_scope): Call follow_die_ref instead of
1863 follow_die_ref_or_sig.
1864 (read_structure_type): Rewrite handling of signatured types.
1865 (read_enumeration_type): Ditto.
1866 (read_attribute_value): Update.
1867 (build_error_marker_type): New function.
1868 (lookup_die_type): Add assert. Rewrite handling of signatured types.
1869 Don't call error for bad types, just build an error marker type.
1870 (dump_die_shallow): Update.
1871 (follow_die_sig_1): Renamed from follow_die_sig.
1872 Don't call error for bad types, instead return NULL.
1873 (follow_die_sig): New function.
1874 (get_signatured_type, get_DW_AT_signature_type): New functions.
1875
e546e8bb
YZ
18762013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
1877
1878 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
1879 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
1880 function.
e546e8bb 1881
ab116149
YQ
18822013-04-17 Yao Qi <yao@codesourcery.com>
1883
1884 * top.c (print_gdb_configuration): Print configure-time
1885 parameter on using libbabeltrace or not.
1886
488a42b8
PA
18872013-04-16 Pedro Alves <palves@redhat.com>
1888
1889 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
1890
f5fb825b
PA
18912013-04-16 Pedro Alves <palves@redhat.com>
1892
85d494ea 1893 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
1894 (git 568035b7874a099087b77f7bba3e36a1173787b0).
1895
e1154999
PA
18962013-04-16 Pedro Alves <palves@redhat.com>
1897
1898 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
1899 * common/glibc_thread_db.h: ... this new file ...
1900 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
1901
e3b50a7f
PA
19022013-04-16 Will Newton <will.newton@gmail.com>
1903 Pedro Alves <palves@redhat.com>
1904
1905 PR build/11881
1906
1907 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
1908 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
1909 HAVE_THREAD_DB_H.
1910
1c2e4450
PA
19112013-04-16 Pedro Alves <palves@redhat.com>
1912 Eli Zaretskii <eliz@gnu.org>
1913
1914 * NEWS: Mention "set foo unlimited".
1915
4031ecc5
DE
19162013-04-15 Doug Evans <dje@google.com>
1917
19c3d4c9
DE
1918 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
1919 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
1920 (create_dwo_cu_reader): Renamed from
1921 create_dwo_debug_info_hash_table_reader.
1922 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
1923 Remove support for multiple CUs in a DWO file.
1924 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
1925
4031ecc5
DE
1926 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
1927 instead of phex.
1928 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
1929 (create_dwo_in_dwp): Ditto.
1930
b340913d
TT
19312013-04-15 Tom Tromey <tromey@redhat.com>
1932
1933 * NEWS: Move recent entries into "since 7.6" section.
1934
cc16e6c9
TT
19352013-04-15 Tom Tromey <tromey@redhat.com>
1936
1937 PR c++/13588:
1938 * NEWS: Update.
1939 * break-catch-throw.c (struct exception_catchpoint)
1940 <exception_rx, pattern>: New fields.
1941 (fetch_probe_arguments, dtor_exception_catchpoint)
1942 (check_status_exception_catchpoint)
1943 (print_one_detail_exception_catchpoint): New functions.
1944 (handle_gnu_v3_exceptions): Add "except_rx" argument.
1945 Compile regular expression if needed.
1946 (extract_exception_regexp): New function.
1947 (catch_exception_command_1): Use extract_exception_regexp.
1948 (compute_exception): Use fetch_probe_arguments.
1949 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
1950 and check_status fields.
1951 * cp-abi.c (cplus_typename_from_type_info): New function.
1952 * cp-abi.h (cplus_typename_from_type_info): Declare.
1953 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
1954 * gdb_regex.h (compile_rx_or_error): Declare.
1955 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
1956 comment.
1957 (init_gnuv3_ops): Set get_type_from_type_info field.
1958 * probe.c (compile_rx_or_error): Move...
1959 * utils.c (compile_rx_or_error): ... here.
1960
72f1fe8a
TT
19612013-04-15 Tom Tromey <tromey@redhat.com>
1962
1963 PR c++/15176:
1964 * NEWS: Update.
1965 * break-catch-throw.c (compute_exception): New function.
1966 (exception_funcs): New global.
1967 (_initialize_break_catch_throw): Create $_exception.
1968 * cp-abi.c (cplus_type_from_type_info): New function.
1969 * cp-abi.h (cplus_type_from_type_info): Declare.
1970 (struct cp_abi_ops) <get_type_from_type_info>: New field.
1971 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
1972 (gnuv3_get_type_from_type_info): New functions.
1973 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
1974
fc4746a2
TT
19752013-04-15 Tom Tromey <tromey@redhat.com>
1976
1977 * break-catch-throw.c (struct exception_names): New.
1978 (exception_functions): Change type.
1979 (re_set_exception_catchpoint): Look for SDT probes.
1980
15a73f56
TT
19812013-04-15 Tom Tromey <tromey@redhat.com>
1982
1983 PR c++/10119:
1984 * break-catch-throw.c (exception_functions): New global.
1985 (gnu_v3_exception_catchpoint_ops): Move earlier.
1986 (struct exception_catchpoint): New.
1987 (classify_exception_breakpoint): Rewrite.
1988 (re_set_exception_catchpoint): New function.
1989 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
1990 Allocate a struct exception_catchpoint.
1991 (catch_exception_command_1): Update.
1992 (initialize_throw_catchpoint_ops): Set 're_set' method.
1993
916703c0
TT
19942013-04-15 Tom Tromey <tromey@redhat.com>
1995
1996 * Makefile.in (SFILES): Add break-catch-throw.c
1997 (COMMON_OBS): Add break-catch-throw.o.
1998 * break-catch-throw.c: New file.
1999 * breakpoint.c: Move exception-catching code to new file.
2000 (ep_parse_optional_if_clause): No longer static.
2001 * breakpoint.h (ep_parse_optional_if_clause): Declare.
2002
6e72ca20
TT
20032013-04-15 Tom Tromey <tromey@redhat.com>
2004
2005 PR c++/9065:
2006 * NEWS: Update.
2007 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
2008 * c-exp.y (TYPEID): New token.
2009 (exp): Add new TYPEID productions.
2010 (ident_tokens): Add "typeid".
2011 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
2012 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
2013 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
2014 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
2015 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
2016 case.
2017 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
2018 (build_std_type_info_type, gnuv3_get_typeid_type)
2019 (gnuv3_get_typeid): New functions.
2020 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
2021 new fields on ABI object.
2022 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
2023 * std-operator.def (OP_TYPEID): New.
2024
715c6909
TT
20252013-04-15 Tom Tromey <tromey@redhat.com>
2026
2027 * elfread.c (elf_symtab_read): Install versioned symbol under
2028 unversioned name as well.
2029
8de20a37
TT
20302013-04-15 Tom Tromey <tromey@redhat.com>
2031
2032 PR c++/11990:
2033 * c-lang.c (cplus_language_defn): Use gdb_demangle.
2034 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
2035 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
2036 (gdb_demangle): New function.
2037 * cp-support.h (gdb_demangle): Declare.
2038 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
2039 (dwarf2_name): Use gdb_demangle.
2040 * gdbtypes.c (check_stub_method): Use gdb_demangle.
2041 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
2042 suffixes from name.
2043 (gnuv3_print_method_ptr): Use gdb_demangle.
2044 * jv-lang.c (java_demangle): Use gdb_demangle.
2045 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
2046 * language.c (unk_lang_demangle): Use gdb_demangle.
2047 * symtab.c (symbol_find_demangled_name)
2048 (demangle_for_lookup): Use gdb_demangle.
2049
591f19e8
TT
20502013-04-15 Tom Tromey <tromey@redhat.com>
2051
2052 PR c++/12824:
2053 * NEWS: Update.
2054 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
2055 New constant.
2056 (classify_exception_breakpoint): New function.
2057 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2058 (print_mention_exception_catchpoint)
2059 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
2060 (catch_exception_command_1): Handle "rethrow" catchpoint.
2061 (catch_rethrow_command): New function.
2062 (_initialize_breakpoint): Add "catch rethrow" command.
2063
4d40cad2
PM
20642013-04-15 Pierre Muller <muller@sourceware.org>
2065
2066 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
2067 set_gdbarch_write_pc as deprecated anymore.
2068
30bcb456
JB
20692013-04-15 Joel Brobecker <brobecker@adacore.com>
2070
2071 * spu-tdep.c (spu_write_pc): Add empty line after local variable
2072 declarations.
2073
da9160e4
YQ
20742013-04-13 Yao Qi <yao@codesourcery.com>
2075
2076 * ctf.c (_initialize_ctf): Include "completer.h".
2077 Call add_target_with_completer instead of add_target.
2078
39ed5604
JK
20792013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2080
2081 Fix GDB regression related to PR binutils/14813.
2082 * jit.c (mem_bfd_iovec_close): Return 0 for success.
2083 * minidebug.c (lzma_close): Add return value comment.
2084 * remote.c (remote_bfd_iovec_close): Return 0 for success.
2085 * solib-spu.c (spu_bfd_iovec_close): Likewise.
2086 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
2087
20882013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
2089
2090 * config.in: Regenerate.
2091
d521ce57
TT
20922013-04-12 Tom Tromey <tromey@redhat.com>
2093
2094 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
2095 const.
2096 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
2097 (struct die_reader_specs) <buffer>: Likewise.
2098 (die_reader_func_ftype): Make 'info_ptr' const.
2099 (struct line_header) <include_dirs, statement_program_start,
2100 statement_program_end>: Now const.
2101 (struct file_entry) <name>: Likewise.
2102 (struct partial_die_info) <sibling>: Likewise.
2103 (struct dwarf_block) <data>: Likewise.
2104 (dwarf2_read_section): Remove cast.
2105 (dwarf2_get_section_info): Make 'bufp' const.
2106 (read_index_from_section): Constify.
2107 (dw2_get_file_names_reader): Make 'info_ptr' const.
2108 (dw2_get_primary_filename_reader): Likewise.
2109 (read_comp_unit_head): Make 'info_ptr' and return type const.
2110 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
2111 Likewise.
2112 (read_abbrev_offset): Constify.
2113 (dwarf2_create_include_psymtab): Make 'name' const.
2114 (create_debug_types_hash_table): Update.
2115 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
2116 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
2117 Constify.
2118 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
2119 (load_partial_comp_unit_reader): Make 'info_ptr' const.
2120 (read_comp_units_from_section): Constify.
2121 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
2122 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
2123 const.
2124 (dwarf2_compute_name, setup_type_unit_groups): Constify.
2125 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
2126 (create_dwp_hash_table, dwarf2_ranges_read)
2127 (dwarf2_record_block_ranges): Constify.
2128 (read_die_and_children, read_die_and_siblings_1)
2129 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
2130 const.
2131 (read_full_die_1, read_full_die): Make 'info_ptr' const.
2132 (abbrev_table_read_table): Constify.
2133 (load_partial_dies): Make 'info_ptr' const.
2134 (read_partial_die, read_attribute_value, read_attribute): Make
2135 'info_ptr' and return type const.
2136 (read_address, read_initial_length)
2137 (read_checked_initial_length_and_offset, read_offset)
2138 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
2139 const.
2140 (read_direct_string): Make 'buf' and return type const.
2141 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
2142 (read_indirect_string): Make return type const.
2143 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
2144 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
2145 'info_ptr' const.
2146 (read_str_index): Make return type const.
2147 (add_include_dir): Make 'include_dir' const.
2148 (add_file_name): Make 'name' const.
2149 (dwarf_decode_line_header): Constify.
2150 (psymtab_include_file_name): Make return type const.
2151 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
2152 (dwarf2_start_subfile): Make 'filename' const.
2153 (dwarf2_const_value_attr): Make 'bytes' const.
2154 (read_signatured_type_reader): Make 'info_ptr' const.
2155 (decode_locdesc): Constify.
2156 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
2157 const.
2158 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
2159 'mac_end', and return type const.
2160 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
2161 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
2162 type const.
2163 (per_cu_header_read_in): Constify.
2164 * symfile.h (dwarf2_get_section_info): Update.
2165
d47a1bc1
TT
21662013-04-12 Tom Tromey <tromey@redhat.com>
2167
2168 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
2169
6eaaf48b
EZ
21702013-04-12 Eli Zaretskii <eliz@gnu.org>
2171
fc4c25bf 2172 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
2173 * top.c (print_gdb_configuration): New function, displays the
2174 details about GDB configure-time parameters.
2175 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
2176 * cli/cli-cmds.c (show_configuration): New function.
2177 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
2178 * main.c (captured_main) <print_configuration>: New static var.
2179 <long_options>: Use it.
2180 If --configuration was given, call print_gdb_configuration.
2181
b292c783
JK
21822013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2183 Pedro Alves <palves@redhat.com>
2184
2185 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
2186 (generated_files): Add gcore.
2187 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
2188 HAVE_NATIVE_GCORE_HOST.
2189 (gcore): New.
2190 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
2191 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
2192 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
2193 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
2194 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
2195 Add HAVE_NATIVE_GCORE_HOST.
2196 * configure: Regenerate.
2197 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
2198 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
2199 AC_CONFIG_FILES for gcore.
2200 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
2201 gdb_have_gcore.
2202 * gdb_gcore.sh: Rename to ...
2203 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
2204 and GCORE_TRANSFORM_NAME substitutions.
2205
c96b3c4f
JK
2206 Fix parsing tabs in ${gdb_target_obs}.
2207 * configure.tgt (gdb_have_gcore): Replace case with for and if.
2208
d6cb50a2
JK
22092013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2210
2211 * remote.c (unpush_and_perror): Add output message final dot.
2212
cf2cb5ec
YQ
22132013-04-11 Yao Qi <yao@codesourcery.com>
2214
2215 * tracepoint.c (tfile_interp_line): Fit parameters line and
2216 utpp in one line.
2217
07293be4
JB
22182013-04-10 Joel Brobecker <brobecker@adacore.com>
2219
2220 * solib.c (solib_map_sections): Remove code overwriting
2221 SO->SO_NAME with the bfd's filename.
2222
f81d1120
PA
22232013-04-10 Pedro Alves <palves@redhat.com>
2224
2225 * cli/cli-decode.c (integer_unlimited_completer): New function.
2226 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
2227 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
2228 completer.
2229 * cli/cli-setshow.c: Include "cli/cli-utils.h".
2230 (is_unlimited_literal): New function.
2231 (do_set_command): Handle literal "unlimited" arguments.
2232 * frame.c (_initialize_frame) <set backtrace limit>: Document
2233 "unlimited".
2234 * printcmd.c (_initialize_printcmd) <set print
2235 max-symbolic-offset>: Add help text.
2236 * record-full.c (_initialize_record_full) <set record full
2237 insn-number-max>: Likewise.
2238 * record.c (_initialize_record) <set record
2239 instruction-history-size, set record function-call-history-size>:
2240 Add help text.
2241 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
2242 help text.
2243 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
2244 Likewise.
2245 * source.c (_initialize_source) <set listsize>: Add help text.
2246 * utils.c (initialize_utils) <set height, set width>: Likewise.
2247 <set pagination>: Mention "set height unlimited".
2248 * valprint.c (_initialize_valprint) <set print elements, set print
2249 repeats>: Document "unlimited".
2250
2f9d54cf
PA
22512013-04-10 Pedro Alves <palves@redhat.com>
2252
2253 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
2254 instead of disconnect_tracing.
2255 * infcmd.c (detach_command, disconnect_command): Call
2256 query_if_trace_running. Adjust.
2257 * top.c: Include "tracepoint.h".
2258 (quit_target): Delete. Contents moved ...
2259 (quit_force): ... here. Wrap each stage of teardown in
2260 TRY_CATCH. Call disconnect_tracing before detaching.
2261
393fd4c3
YQ
22622013-04-10 Hui Zhu <hui@codesourcery.com>
2263 Yao Qi <yao@codesourcery.com>
2264
2265 * configure.ac: Check libbabeltrace is installed.
2266 * config.in: Regenerate.
2267 * configure: Regenerate.
2268 * Makefile.in (LIBBABELTRACE): New.
2269 (CLIBS): Add LIBBABELTRACE.
2270 * ctf.c: Include "exec.h".
2271 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
2272 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
2273 (ctf_save_metadata_header): Define new type aliases in
2274 metadata.
2275 (ctf_write_header): Define event type "tsv_def" and "tp_def"
2276 in metadata. Start a new faked packet for trace status.
2277 (ctf_write_status): Write trace status to CTF.
2278 (ctf_write_uploaded_tsv): Write TSV to CTF.
2279 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
2280 (ctf_write_definition_end): End the faked packet.
2281
2282 (ctx, ctf_iter, trace_dirname): New.
2283 (start_pos): New variable.
2284 (ctf_destroy, ctf_open_dir, ctf_open): New.
2285 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
2286 macros.
2287 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
2288 (ctf_fetch_registers, ctf_xfer_partial): New.
2289 (ctf_get_trace_state_variable_value): New.
2290 (ctf_get_tpnum_from_frame_event): New.
2291 (ctf_get_traceframe_address): New.
2292 (ctf_trace_find, ctf_has_stack): New.
2293 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
2294 (ctf_get_trace_status, ctf_read_status): New.
2295 (_initialize_ctf): New.
2296 * tracepoint.c (get_tracepoint_number): New
2297 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 2298 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
2299 * tracepoint.h: ... here.
2300 (get_tracepoint_number): Declare it.
2301 (get_uploaded_tsv): Declare it.
2302
2303 * NEWS: Mention new configure option.
2304
5c2b4418
HZ
23052013-04-10 Pedro Alves <palves@redhat.com>
2306 Hui Zhu <hui@codesourcery.com>
2307
2308 * breakpoint.c (dprintf_re_set): New.
2309 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
2310 to dprintf_re_set.
2311
a5c66735
JB
23122013-04-09 Joel Brobecker <brobecker@adacore.com>
2313
2314 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
2315 Remove solib-svr4.o from the list.
2316
9e77999c
JB
23172013-04-09 Joel Brobecker <brobecker@adacore.com>
2318
2319 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
2320 Use gdb_assert_not_reached instead of invalid boolean expression.
2321
1927e618
PA
23222013-04-09 Pedro Alves <palves@redhat.com>
2323
2324 * remote.c (unpush_and_perror): New function.
2325 (readchar, remote_serial_write): Use it.
2326
10782d74
MM
23272013-04-09 Markus Metzger <markus.t.metzger@intel.com>
2328
2329 * NEWS: Mention new btrace RSP packets.
2330
4c8429ef
TT
23312013-04-08 Tom Tromey <tromey@redhat.com>
2332
2333 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
2334 long.
2335
8625fc1b
TT
23362013-04-08 Tom Tromey <tromey@redhat.com>
2337
2338 * maint.c (print_bfd_section_info): Print the section index.
2339 * symmisc.c (dump_msymbols): Print the section index.
2340
e27d198c
TT
23412013-04-08 Tom Tromey <tromey@redhat.com>
2342
2343 PR symtab/8424:
2344 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
2345 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
2346 * breakpoint.c (resolve_sal_pc): Update.
2347 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2348 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
2349 (minsym_lookup_iterator_cb): Use it.
2350 (default_read_var_value): Update.
2351 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
2352 Update.
2353 * infcmd.c (jump_command): Update.
2354 * linespec.c (minsym_found): Update.
2355 * maint.c (maintenance_translate_address): Update.
2356 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
2357 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
2358 * parse.c (write_exp_msymbol): Update.
2359 * printcmd.c (address_info): Update.
2360 * psymtab.c (find_pc_sect_psymbol): Update.
2361 (fixup_psymbol_section): Check SYMBOL_SECTION, not
2362 SYMBOL_OBJ_SECTION.
2363 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
2364 Don't initialize SYMBOL_OBJ_SECTION.
2365 * spu-tdep.c (spu_catch_start): Update.
2366 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
2367 * symmisc.c (dump_msymbols, print_symbol): Update.
2368 * symtab.c (fixup_section): Don't set 'obj_section'. Change
2369 how fallback section is computed.
2370 (fixup_symbol_section): Update.
2371 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
2372 Update.
2373 (allocate_symbol, initialize_symbol, allocate_template_symbol):
2374 Initialize SYMBOL_SECTION.
2375 * symtab.h (struct general_symbol_info) <section>: Update comment.
2376 <obj_section>: Remove.
2377 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
2378 (SYMBOL_OBJFILE): New macro.
2379
e6dc44a8
TT
23802013-04-08 Tom Tromey <tromey@redhat.com>
2381
2382 * coffread.c (record_minimal_symbol): Update.
2383 * dbxread.c (record_minimal_symbol): Update.
2384 * elfread.c (record_minimal_symbol): Update.
2385 * machoread.c (macho_symtab_add_minsym): Update.
2386 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
2387 Update.
2388 * minsyms.c (prim_record_minimal_symbol): Update.
2389 (prim_record_minimal_symbol_full): Remove 'bfd_section'
2390 argument.
2391 (prim_record_minimal_symbol_and_info): Likewise.
2392 * minsyms.h (prim_record_minimal_symbol_full)
2393 (prim_record_minimal_symbol_and_info): Update.
2394 * symtab.c (allocate_symbol, initialize_symbol)
2395 (allocate_template_symbol): Initialize SYMBOL_SECTION.
2396 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
2397 Update.
2398
36192a8d
TT
23992013-04-08 Tom Tromey <tromey@redhat.com>
2400
2401 PR symtab/8423:
2402 * solib-som.c (som_solib_section_offsets): Use BFD section
2403 indices. Set offsets for all sections.
2404 * somread.c (som_symtab_read): Compute BFD section for
2405 symbol. Use prim_record_minimal_symbol_and_info.
2406 (som_symfile_read): Fix comment.
2407 (struct find_section_offset_arg): New.
2408 (find_section_offset, set_section_index): New functions.
2409 (som_symfile_offsets): Use set_section_index to compute
2410 section indices.
2411
65cf3563
TT
24122013-04-08 Tom Tromey <tromey@redhat.com>
2413
2414 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
2415 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
2416 gdb_bfd_section_index.
2417 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
2418 New functions.
2419 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
2420 Declare.
2421 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
2422 Update.
2423 * objfiles.c (add_to_objfile_sections_full): New function.
2424 (add_to_objfile_sections): Use it.
2425 (build_section_table): Rewrite.
2426 (objfile_relocate1): Use gdb_bfd_section_index. Update.
2427 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
2428 (struct objfile) <sections>: Update comment.
2429 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
2430 is NULL.
2431 (ALL_OBJSECTIONS): Use it.
2432 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
2433 * solib-frv.c (frv_relocate_main_executable): Update.
2434 * solib-target.c (solib_target_relocate_section_addresses):
2435 Use gdb_bfd_section_index.
2436 * symfile.c (build_section_addr_info_from_section_table):
2437 Use gdb_bfd_section_index.
2438 (build_section_addr_info_from_bfd, place_section): Likewise.
2439 * symtab.c (fixup_section): Update.
2440 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
2441
7cbd4a93
TT
24422013-04-08 Tom Tromey <tromey@redhat.com>
2443
2444 * minsyms.h (struct bound_minimal_symbol): New.
2445 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
2446 Remove objfile argument.
2447 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
2448 Return bound_minimal_symbol.
2449 * minsyms.c (lookup_minimal_symbol_by_pc_1)
2450 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
2451 Return bound_minimal_symbol.
2452 (in_gnu_ifunc_stub): Update.
2453 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
2454 Remove 'objfile_p' argument.
2455 (lookup_solib_trampoline_symbol_by_pc): Update.
2456 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
2457 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
2458 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
2459 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
2460 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
2461 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
2462 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
2463 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
2464 stack.c, symtab.c, tui/tui-disasm.c: Update.
2465
f85f34ed
TT
24662013-04-08 Tom Tromey <tromey@redhat.com>
2467
2468 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
2469 Use symbol's obstack, not an objfile.
2470 * coffread.c (process_coff_symbol): Update.
2471 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
2472 * jv-lang.c (add_class_symbol): Update.
2473 * mdebugread.c (new_symbol): Update.
2474 * minsyms.c (prim_record_minimal_symbol_full)
2475 (terminate_minimal_symbol_table): Update.
2476 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
2477 * stabsread.c (define_symbol, read_enum_type): Update.
2478 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
2479 Handle Ada specially.
2480 (symbol_set_language): Add 'obstack' argument.
2481 (symbol_set_names): Update.
2482 (symbol_natural_name, symbol_demangled_name): Always use
2483 ada_decode_symbol.
2484 * symtab.h (struct general_symbol_info)
2485 <language_specific::obstack>: New field.
2486 <ada_mangled>: New field.
2487 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
2488 (symbol_set_language): Update.
2489
ccde22c0
TT
24902013-04-08 Tom Tromey <tromey@redhat.com>
2491
2492 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
2493 Take an obstack, not an objfile.
2494 (symbol_set_names): Update.
2495 * symtab.h (symbol_set_demangled_name): Update.
2496
e623cf5d
TT
24972013-04-08 Tom Tromey <tromey@redhat.com>
2498
2499 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
2500 allocate_symbol.
2501 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
2502 (read_func_scope): Call allocate_template_symbol.
2503 (new_symbol_full): Call allocate_symbol.
2504 * jit.c (finalize_symtab): Call allocate_symbol.
2505 * jv-lang.c (add_class_symbol): Call allocate_symbol.
2506 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
2507 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
2508 (common_block_end): Call allocate_symbol.
2509 * symtab.c (allocate_symbol, initialize_symbol)
2510 (allocate_template_symbol): New functions.
2511 * symtab.c (allocate_symbol, initialize_symbol)
2512 (allocate_template_symbol): Declare.
2513 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
2514
f6de8ec2
PA
25152013-04-08 Pedro Alves <palves@redhat.com>
2516 Keith Seitz <keiths@redhat.com>
2517
2518 * breakpoint.c (create_breakpoint): Rename
2519 "parse_condition_and_thread" parameter to "parse_arg". Update
2520 describing comment. If !PARSE_ARG, then error out if ARG is not
2521 the empty string after extracting the location.
2522 * breakpoint.h (create_breakpoint): Rename
2523 "parse_condition_and_thread" parameter to "parse_arg".
2524
f65ce5fb
AR
25252013-04-08 Aleksandar Ristovski <aristovski@qnx.com
2526
2527 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
2528
cc5925ad
YQ
25292013-04-07 Yao Qi <yao@codesourcery.com>
2530
2531 * remote.c (remote_trace_find): Change type of parameters 'addr1'
2532 and 'addr2' to CORE_ADDR.
2533 * target.c (update_current_target): Update.
2534 * target.h (struct target_ops) <to_trace_find>: Change parameter
2535 type to CORE_ADDR.
2536 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
2537 'addr2' to CORE_ADDR.
2538 (tfile_trace_find): Likewise.
2539 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
2540 Change local variable 'addr' to type CORE_ADDR.
2541 * tracepoint.h (tfind_1): Update declaration.
2542
d9ac0664
EZ
25432013-04-06 Eli Zaretskii <eliz@gnu.org>
2544
2545 * windows-nat.c (windows_get_absolute_argv0): Move from here...
2546 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
2547 Include main.h.
2548
2549 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
2550 here...
2551 * main.h (windows_get_absolute_argv0): ...to here.
2552
02142a6c
DE
25532013-04-05 Doug Evans <dje@google.com>
2554
2555 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
2556 (read_cutu_die_from_dwo): Add comments.
2557 (read_structure_type): Update comment.
2558 (read_enumeration_type, read_namespace_type): Update comment.
2559 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
2560
43662968
JK
25612013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2562
2563 Convert man pages to texinfo, new gdbinit.5 texinfo page.
2564 * Makefile.in (gdb.z): Remove.
2565 (install-only): Remove $(man1dir) and gdb.1 installation.
2566 * gdb.1: Remove.
2567
9ead1b84
JK
25682013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2569
2570 Fix compatibility with Linux kernel 3.8.3.
2571 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
2572 to more inner block. Remove parsing of NUMBER from outer block.
2573 Parse NUMBER only if KEYWORD has been identified.
2574
d1794952
JK
25752013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2576
2577 Fix variable name shadowing.
2578 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
2579 filename to mapsfilename and update its uses.
2580
9025569e
EZ
25812013-04-05 Eli Zaretskii <eliz@gnu.org>
2582
2583 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
2584 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
2585 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
2586 details of the problem.
2587
c9a6ce02
PA
25882013-04-04 Pedro Alves <palves@redhat.com>
2589 Hui Zhu <hui@codesourcery.com>
2590
2591 * breakpoint.c (validate_commands_for_breakpoint): If validating a
2592 tracepoint, reset its STEP_COUNT and call validate_actionline.
2593
5ff888ce
DE
25942013-04-03 Doug Evans <dje@google.com>
2595
bf6af496
DE
2596 * dwarf2read.c (read_die_and_siblings_1): Renamed from
2597 read_die_and_siblings.
2598 (read_die_and_siblings): New function.
2599 (read_cutu_die_from_dwo): Dump die if requested.
2600 (read_die_and_children): Call read_full_die_1 and
2601 read_die_and_siblings_1.
2602 (read_full_die): Dump die if requested.
2603
2604 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
2605
0ac5b59e
DE
2606 * dwarf2read.c (struct dwo_file): New member comp_dir.
2607 Rename member name to dwo_name. All uses updated.
2608 (hash_dwo_file): Include comp_dir in computation.
2609 (eq_dwo_file): Ditto.
2610 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
2611 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
2612
5ff888ce
DE
2613 * psymtab.c (read_psymtabs_with_fullname): Don't call
2614 psymtab_to_fullname if the basenames are different.
2615
ec83d211
JK
26162013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2617
2618 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
2619 New entry about "fullname" presence.
2620
4f4352f7
PA
26212013-04-03 Pedro Alves <palves@redhat.com>
2622
2623 * NEWS: Mention x86_64/Cygwin as new native configuration.
2624
3d1d5ea3
DE
26252013-04-02 Doug Evans <dje@google.com>
2626
2627 * dwarf2read.c (read_structure_type): Fix typo in comment.
2628
be9a8770
PA
26292013-04-02 Pedro Alves <palves@redhat.com>
2630
2631 * NEWS: Mention "set/show debug aarch64", "set/show debug
2632 coff-pe-read" and "set/show debug mach-o".
2633
a46c1e42
PA
26342013-04-02 Pedro Alves <palves@redhat.com>
2635
2636 * NEWS: Mention "set/show remote trace-buffer-size-packet".
2637
3ad18b19
EZ
26382013-04-02 Eli Zaretskii <eliz@gnu.org>
2639
2640 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
2641 gdb_string.h is now in common/.
2642
e9f1758d
PA
26432013-04-02 Pedro Alves <palves@redhat.com>
2644
2645 * NEWS: Move "set debug notification" and "set trace-buffer-size"
2646 under "New options".
2647
049dc89b
JK
26482013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2649
2650 Revert this patch:
2651 PR gdb/15275
2652 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
2653
c33e31fd
PA
26542013-04-02 Pedro Alves <palves@redhat.com>
2655
2656 PR gdb/15275
2657
2658 * remote.c (send_interrupt_sequence): Use remote_serial_write.
2659 (remote_serial_write): New function.
2660 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
2661
ea5f3910
JW
26622013-04-01 Jiong Wang <jiwang@tilera.com>
2663
2664 * NEWS: Mention TILE-Gx in "New native configurations" and
2665 "New targets" sections.
2666
5c6fa7ab
DE
26672013-04-01 Doug Evans <dje@google.com>
2668
c0f78cd4
DE
2669 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
2670 (process_enumeration_scope): Simplify.
2671
0186c6a7
DE
2672 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
2673 type_unit_group ...
2674 (struct signatured_type): ... to here.
2675 (sig_type_ptr): New typedef.
2676 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
2677 out of union 't'. All uses updated.
2678 (dw2_get_file_names_reader): Assert not called for a type unit.
2679 (dw2_get_file_names): Assert not called for a type unit or type
2680 unit group.
2681 (build_type_psymtabs_reader): Assert called for a type unit.
2682 (build_type_psymtab_dependencies): Assert called for a type unit group.
2683
5c6fa7ab
DE
2684 * dwarf2read.c (free_dwo_file): Add comment.
2685 (dwarf2_per_objfile_free): Unref dwp bfd.
2686
b3c0ad67 26872013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
2688
2689 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
2690 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
2691 (read_pe_exported_syms): Remove unused 'exportix'.
2692 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
2693 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
2694 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
2695
e2df1547
AR
26962013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
2697
2698 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
2699 (print_it_watchpoint): Remove unused 'bl'.
2700 (say_where): Remove unused 'uiout'.
2701 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
2702 (bkpt_breakpoint_hit): Remove unused 'b'.
2703 (internal_bkpt_print_it): Remove unused 'uiout'.
2704 * buildsym.c (augment_type_symtab): Remove unused 'i'.
2705
d81e75c0
TD
27062013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
2707
2708 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
2709 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
2710
5a8b3f62
DE
27112013-03-29 Doug Evans <dje@google.com>
2712
ab5088bf
DE
2713 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
2714 Delete arg is_dwp. All callers updated.
2715 (open_dwp_file): New function.
2716 (open_and_init_dwp_file): Call it.
2717 (get_dwp_file): New function.
2718 (lookup_dwo_cutu): Call it.
2719
a8ad1e57
DE
2720 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
2721 unnecessary, cleanup.
2722
6296d8c1
DE
2723 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
2724
b0c7bfa9
DE
2725 * dwarf2read.c (read_cutu_die_from_dwo): New function.
2726 (lookup_dwo_unit): New function.
2727 (init_cutu_and_read_dies): Move DWO handling to new functions.
2728
c88ee1f0
DE
2729 * dwarf2read.c (struct signatured_type): Tweak comment.
2730 (struct dwo_unit): Tweak comment.
2731 (create_debug_types_hash_table): Tweak comment. Reformat long line.
2732 (create_dwo_debug_info_hash_table): Tweak comment.
2733 (dwarf2_per_cu_offset_and_type): Tweak comment.
2734
5a8b3f62
DE
2735 * dwarf2read.c (lookup_signatured_type): Remove complaint about
2736 missing .debug_types section.
2737
9852c492
YQ
27382013-03-29 Yao Qi <yao@codesourcery.com>
2739
2740 * corelow.c: Include "completer.h".
2741 (_initialize_corelow): Call add_target_with_completer with
2742 argument 'filename_completer'.
2743 * tracepoint.c: Likewise.
2744 * exec.c (_initialize_exec): Likewise.
2745 * target.c (add_target): Rename to ...
2746 (add_target_with_completer): ... this. Call set_cmd_completer
2747 if parameter completer is not NULL.
2748 (add_target): New.
2749 * target.h: Include "command.h".
2750 (add_target_with_completer): Declare it.
2751
af312be7
JB
27522013-03-28 Joel Brobecker <brobecker@adacore.com>
2753
2754 * coffread.c (is_import_fixup_symbol): New function.
2755 (record_minimal_symbol): Use is_import_fixup_symbol to
2756 detect import fixup symbols, and discard them.
2757
8a0459fd
DE
27582013-03-28 Doug Evans <dje@google.com>
2759
0349ea22
DE
2760 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
2761 types hash table until we know we need it.
2762
f652bce2
DE
2763 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
2764 index numbers.
2765
e4a48d9d
DE
2766 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
2767 All callers updated.
2768 (dw2_print_stats): Print #read CUs too.
2769 (dump_die_shallow): Print signatured types better.
2770
8a0459fd
DE
2771 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
2772 info_or_types_section to section. All uses updated.
2773 (struct dwo_unit): Ditto.
2774
bd3eecc3
PA
27752013-03-28 Pedro Alves <palves@redhat.com>
2776
2777 * NEWS (New options): New section.
2778 (New options): Mention set/show remote trace-status-packet.
2779 * remote.c (PACKET_qTStatus): New enumeration value.
2780 (remote_get_trace_status): Skip sending qTStatus if the packet is
2781 disabled. Use packet_ok.
2782 (_initialize_remote): Register a configuration command for
2783 qTStatus packet.
2784
41245087
DE
27852013-03-28 Doug Evans <dje@google.com>
2786
7edbb660
DE
2787 * symfile.c (find_separate_debug_file): Add comment.
2788 (terminate_after_last_dir_separator): Tweak comment.
2789
0018ea6f
DE
2790 * dwarf2read.c (create_partial_symtab): Add forward decl.
2791 (create_partial_symtab): Move to be closer to other psymtab functions.
2792 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
2793
ca69b9e6
DE
2794 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
2795 (compute_symtab_includes): Remove unnecessary forward declaration.
2796 (die_needs_namespace): Add comment marking group of functions for
2797 dwarf2 name computation.
2798
a9375afe
DE
2799 * typeprint.c (_initialize_typeprint): Improve type help text.
2800
41245087
DE
2801 * python/python.c (finish_python_initialization): Provide suggestion
2802 for how to tell gdb to find its python files.
2803
7f7cc265
PA
28042013-03-28 Pedro Alves <palves@redhat.com>
2805
2806 PR gdb/15294
2807
2808 * source.c (_initialize_source): Change back "set listsize" to an
2809 integer command.
2810
ec21308c
JK
28112013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
2812
2813 PR gdb/15275
2814 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
2815
840a9a1f
PA
28162013-03-27 Pedro Alves <palves@redhat.com>
2817
2818 * top.c (history_size): Rename to ...
2819 (history_size_setshow_var): ... this. Add comment.
2820 (show_commands): Use readline's 'history_length' instead of
2821 computing the history length by calling history_get in a loop.
2822 (set_history_size_command): Error out for sizes over INT_MAX.
2823 Restore previous history size on invalid size.
2824 (init_history): If HISTSIZE is negative, leave the history size as
2825 zero. Add comments.
2826 (init_main): Adjust.
2827
826ecc4d
PA
28282013-03-27 Pedro Alves <palves@redhat.com>
2829
2830 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
2831 coff_pe_read" command to "set debug coff-pe-read".
2832
0ccfeeae
MM
28332013-03-27 Markus Metzger <markus.t.metzger@intel.com>
2834
2835 * record.c (command_size_to_target_size): Fix size comparison.
2836 Change parameter type from pointer to integer to integer.
2837 Update all users.
2838
40653b35
PM
28392013-03-27 Pierre Muller <muller@sourceware.org>
2840
2841 * windows-nat.c (handle_output_debug_string): Avoid typecast
2842 from integer of different size warning.
2843
c62fa0e2
JB
28442013-03-26 Joel Brobecker <brobecker@adacore.com>
2845
2846 * windows-nat.c (handle_output_debug_string): Add empty line
2847 after local block variable definition.
2848
2c619be2
PA
28492013-03-26 Pedro Alves <palves@redhat.com>
2850
2851 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
2852 (net_open): Make 'polls' local unsigned.
2853
1b493192
PA
28542013-03-26 Pedro Alves <palves@redhat.com>
2855
2856 * remote.c (_initialize_remote): Make "set remoteaddresssize"
2857 a zuinteger command instead of uinteger.
2858
7ee70bf5
PA
28592013-03-26 Pedro Alves <palves@redhat.com>
2860
2861 * record-full.c (record_full_insn_num): Make it unsigned.
2862 (record_full_check_insn_num, record_full_message)
2863 (record_full_registers_change, record_full_xfer_partial): Remove
2864 record_full_insn_max_num check (it's always != 0).
2865 (record_full_info, record_full_restore): Use %u as format string.
2866 (): Use %u as format string.
2867 (set_record_full_insn_max_num): Remove record_full_insn_max_num
2868 check (it's always != 0).
2869
dfd1f9bb
PA
28702013-03-26 Pedro Alves <palves@redhat.com>
2871
2872 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
2873 and "set dcache size" commands zuinteger instead of uinteger.
2874
addb4faf
PA
28752013-03-26 Pedro Alves <palves@redhat.com>
2876
2877 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
2878 command zuinteger instead of uinteger.
2879
b75bf488
PA
28802013-03-26 Pedro Alves <palves@redhat.com>
2881
2882 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
2883 zuinteger instead of uinteger.
2884
42c634cb
PA
28852013-03-26 Pedro Alves <palves@redhat.com>
2886
2887 * record.c (record_insn_history_size_setshow_var)
2888 (record_call_history_size_setshow_var): New globals.
2889 (command_size_to_target_size): New function.
2890 (cmd_record_insn_history, cmd_record_call_history): Use
2891 command_size_to_target_size instead of cast.
2892 (validate_history_size, set_record_insn_history_size)
2893 (set_record_call_history_size): New functions.
2894 (_initialize_record): Install set_record_insn_history_size and
2895 set_record_call_history_size as "set" hooks of "set record
2896 instruction-history-size" and "set record
2897 function-call-history-size".
2898
1fb2e2b5
PA
28992013-03-26 Pedro Alves <palves@redhat.com>
2900
2901 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
2902 use with history_max_entries use. Remove FIXME note.
2903
99c819ee
MM
29042013-03-26 Markus Metzger <markus.t.metzger@intel.com>
2905
2906 * record-btrace.c (record_btrace_close): Call
2907 record_btrace_auto_disable.
2908
9f9e404c
JB
29092013-03-25 Joel Brobecker <brobecker@adacore.com>
2910
2911 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
2912
ebcdfe33
DE
29132013-03-25 Doug Evans <dje@google.com>
2914
2915 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
2916
24955f63
TT
29172013-03-25 Tom Tromey <tromey@redhat.com>
2918
2919 PR symtab/11462:
2920 * c-exp.y (exp): Add new productions for destructors after '.' and
2921 '->'.
2922 (write_destructor_name): New function.
2923
fce632b6
TT
29242013-03-25 Tom Tromey <tromey@redhat.com>
2925
2926 PR c++/9197:
2927 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
2928 value_struct_elt, not lookup_struct_elt_type.
2929 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
2930 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
2931 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
2932
a4341769
YQ
29332013-03-25 Yao Qi <yao@codesourcery.com>
2934
2935 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
2936 instead of '_mkdir'.
2937
b5981e5a
EZ
29382013-03-23 Eli Zaretskii <eliz@gnu.org>
2939
2940 * windows-nat.c (windows_get_absolute_argv0): New function.
2941 * windows-nat.h: Add its prototype.
2942
2943 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
2944 Use IS_DIR_SEPARATOR instead of looking for a character inside
2945 SLASH_STRING. Include filenames.h.
2946 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
2947 relocate_gdb_directory works when passed gdb_program_name.
2948 Include windows-nat.h.
2949
598d3636
JK
29502013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2951
2952 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
2953 * remote.c (trace_error): Remove the special handling of '2'.
2954 (readchar) <SERIAL_EOF>
2955 (readchar) <SERIAL_ERROR>
2956 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
2957 (remote_get_trace_status): Call throw_exception if EX is
2958 TARGET_CLOSE_ERROR.
2959 * utils.c (perror_with_name): Rename to ...
2960 (throw_perror_with_name): ... here. New parameter errcode, describe it
2961 in the function comment.
2962 (perror_with_name): New function wrapper.
2963 * utils.h (enum errors): New stub declaration.
2964 (throw_perror_with_name): New declaration.
2965
82b821e9
PA
29662013-03-22 Pedro Alves <palves@redhat.com>
2967 Yao Qi <yao@codesourcery.com>
2968 Mark Kettenis <kettenis@gnu.org>
2969
2970 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
2971 Don't let the user set the value to UINT_MAX directly.
2972 <var_integer>: Don't let the user set the value to INT_MAX
2973 directly.
2974
78a095c3
JK
29752013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2976
2977 * remote.c (remote_unpush_target): New function.
2978 (remote_open_1): Remove two pop_target calls, update one comment, add
2979 comment to target_preopen call. Replace pop_target call by
2980 remote_unpush_target call.
2981 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
2982 pop_target calls by remote_unpush_target calls.
2983
3e74e146
PA
29842013-03-22 Pedro Alves <palves@redhat.com>
2985
2986 * linux-nat.c (linux_child_follow_fork): Don't call
2987 linux_enable_event_reporting.
2988 (linux_handle_extended_wait): Don't call
2989 linux_enable_event_reporting.
2990
a2213dca
PA
29912013-03-22 Pedro Alves <palves@redhat.com>
2992
2993 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
2994 use it to rewrite the trampoline buffers with type gdb_byte[], and
2995 undefine the macro. Remove char* cast.
2996
bd712aed
DE
29972013-03-21 Doug Evans <dje@google.com>
2998
2999 New commands "mt set per-command {space,time,symtab} {on,off}".
3000 * NEWS: Add entry.
3001 * event-top.c: #include "maint.h".
3002 * main.c: #include "maint.h".
3003 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
3004 timeval-utils.h, maint.h, cli/cli-setshow.h.
3005 (per_command_time, per_command_space): New static globals.
3006 (per_command_symtab): New static global.
3007 (per_command_setlist, per_command_showlist): New static globals.
3008 (struct cmd_stats): Move here from utils.c.
3009 (set_per_command_time): Renamed from set_display_time in utils.c
3010 and moved here. All callers updated.
3011 (set_per_command_space): Renamed from set_display_space in utils.c
3012 and moved here. All callers updated.
3013 (count_symtabs_and_blocks): New function.
3014 (report_command_stats): Moved here from utils.c. Add support for
3015 printing symtab stats. Only print data if enabled before command
3016 executed.
3017 (make_command_stats_cleanup): Ditto.
3018 (sert_per_command_cmd, show_per_command_cmd): New functions.
3019 (_initialize_maint_cmds): Add new commands
3020 mt set per-command {space,time,symtab} {on,off}.
3021 * maint.h: New file.
3022 * top.c: #include "maint.h".
3023 * utils.c (reset_prompt_for_continue_wait_time): New function.
3024 (get_prompt_for_continue_wait_time): New function.
3025 * utils.h (reset_prompt_for_continue_wait_time): Declare
3026 (get_prompt_for_continue_wait_time): Declare.
3027 (make_command_stats_cleanup): Moved to maint.h.
3028 (set_display_time, set_display_space): Moved to maint.h and renamed
3029 to set_per_command_time, set_per_command_space.
3030 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
3031 parse_binary_operation and made non-static. Don't call error,
3032 just return an error marker. All callers updated.
3033 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
3034
d76488d8
TT
30352013-03-21 Tom Tromey <tromey@redhat.com>
3036
3037 * symfile.c (alloc_section_addr_info): Update header. Don't set
3038 'num_sections' field.
3039 (build_section_addr_info_from_section_table): Set 'num_sections'.
3040 (build_section_addr_info_from_bfd): Likewise.
3041 (build_section_addr_info_from_objfile): Remove dead loop
3042 condition.
3043 (free_section_addr_info): Unconditionally call xfree.
3044 (relative_addr_info_to_section_offsets, addrs_section_sort)
3045 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
3046 condition.
3047 (syms_from_objfile_1): Remove dead 'if' condition. Check
3048 'num_sections'.
3049 (add_symbol_file_command): Set 'num_sections'.
3050 * symfile-mem.c (symbol_file_add_from_memory): Set
3051 'num_sections'.
3052 * somread.c (som_symfile_offsets): Remove dead loop condition.
3053 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
3054 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
3055
a72e5169 30562013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
3057
3058 * tracepoint.h (decode_agent_options): Add 'trace_string'
3059 argument.
3060 * tracepoint.c (decode_agent_options): Add 'trace_string'
3061 argument.
3062 (validate_actionline): Update.
3063 (collect_symbol): Add 'trace_string' argument.
3064 (struct add_local_symbols_data) <trace_string>: New field.
3065 (do_collect_symbol): Update.
3066 (add_local_symbols): Add 'trace_string' argument.
3067 (encode_actions_1): Update.
3068 (trace_dump_actions): Update.
3069 * dwarf2loc.c (access_memory): Update.
3070 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
3071 * ax-general.c (new_agent_expr): Update.
3072 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
3073 (gen_trace_for_return_address): Add argument.
3074 (trace_kludge, trace_string_kludge): Remove.
3075 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
3076 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
3077 (gen_trace_for_var): Add 'trace_string' argument.
3078 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
3079 (gen_printf, agent_eval_command_one): Update.
3080
b2f83c08
TT
30812013-03-21 Tom Tromey <tromey@redhat.com>
3082
3083 PR exp/15109:
3084 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
3085 Handle FILENAME token.
3086
9507860e
TT
30872013-03-21 Tom Tromey <tromey@redhat.com>
3088
3089 * c-exp.y (YYPRINT): Define.
3090 (c_print_token): New function.
3091
e403aa4b
TT
30922013-03-21 Tom Tromey <tromey@redhat.com>
3093
3094 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
3095
af307d6a
YQ
30962013-03-21 Yao Qi <yao@codesourcery.com>
3097
3098 * ctf.c: Include "gdb_stat.h".
3099 [USE_WIN32API]: New macro 'mkdir'.
3100 (ctf_start): Use permission bits macros if they are defined.
3101
fb81d016
KS
31022013-03-20 Keith Seitz <keiths@redhat.com>
3103
3104 * breakpoint.h (struct breakpoint): Add comment to
3105 extra_string indicating that this member is mallod'd.
3106 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
3107
ef0026f0
PA
31082013-03-20 Pedro Alves <palves@redhat.com>
3109
3110 PR gdb/15289
3111
3112 * cli/cli-setshow.c (do_set_command)
3113 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
3114 the result of parsing the command argument. Throw error if the
3115 value is greater than UINT_MAX. Print the invalid value with
3116 plongest.
3117 <var_integer, var_zinteger>: Use LONGEST for variable holding the
3118 result of parsing the command argument. Throw error if the value
3119 is greater than INT_MAX, not greater or equal. Also throw error
3120 if the value is less than INT_MIN. Print the invalid value with
3121 plongest.
3122 <var_zuinteger_unlimited>: Throw error if the value is greater
3123 than INT_MAX, not greater or equal.
3124 (do_show_command) <var_integer, var_zinteger,
3125 var_zuinteger_unlimited>: Use %d for printing int, not %u.
3126
24d6c2a0
TT
31272013-03-20 Tom Tromey <tromey@redhat.com>
3128
3129 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
3130 if possible.
3131 * dwarf2read.c (read_func_scope): Remove old FIXME.
3132 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
3133 not LOC_COMPUTED.
3134 * findvar.c (symbol_read_needs_frame, default_read_var_value):
3135 Unconditionally call via computed ops, if possible.
3136 * printcmd.c (address_info): Unconditionally call via computed ops,
3137 if possible.
3138 * stack.c (read_frame_arg): Unconditionally call via computed ops,
3139 if possible.
3140 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
3141 * tracepoint.c (scope_info): Unconditionally call via computed ops,
3142 if possible.
3143
f1e6e072
TT
31442013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3145 Tom Tromey <tromey@redhat.com>
3146
3147 PR symtab/8421:
3148 * coffread.c (coff_register_index): New global.
3149 (process_coff_symbol, coff_read_enum_type): Set
3150 SYMBOL_ACLASS_INDEX.
3151 (_initialize_coffread): Initialize new global.
3152 * dwarf2loc.c (locexpr_find_frame_base_location)
3153 (dwarf2_block_frame_base_locexpr_funcs)
3154 (loclist_find_frame_base_location)
3155 (dwarf2_block_frame_base_loclist_funcs): New.
3156 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
3157 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
3158 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
3159 (dwarf2_block_frame_base_loclist_funcs): New.
3160 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
3161 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
3162 globals.
3163 (read_func_scope): Update.
3164 (fixup_go_packaging, mark_common_block_symbol_computed)
3165 (var_decode_location, new_symbol_full, dwarf2_const_value):
3166 Set SYMBOL_ACLASS_INDEX.
3167 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
3168 (_initialize_dwarf2_read): Initialize new globals.
3169 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
3170 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
3171 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
3172 globals.
3173 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
3174 (_initialize_mdebugread): Initialize new globals.
3175 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
3176 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
3177 (stab_register_index, stab_regparm_index): New globals.
3178 (define_symbol, read_enum_type, common_block_end): Set
3179 SYMBOL_ACLASS_INDEX.
3180 (_initialize_stabsread): Initialize new globals.
3181 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
3182 globals.
3183 (MAX_SYMBOL_IMPLS): New define.
3184 (register_symbol_computed_impl, register_symbol_block_impl)
3185 (register_symbol_register_impl)
3186 (initialize_ordinary_address_classes): New functions.
3187 (_initialize_symtab): Call initialize_ordinary_address_classes.
3188 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
3189 (struct symbol_impl): New.
3190 (SYMBOL_ACLASS_BITS): New define.
3191 (struct symbol) <aclass, ops>: Remove fields.
3192 <aclass_index>: New field.
3193 (symbol_impls): Declare.
3194 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
3195 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
3196 (register_symbol_computed_impl, register_symbol_block_impl)
3197 (register_symbol_register_impl): Declare.
3198 (struct symbol_computed_ops): Add location_has_loclist.
3199 (struct symbol_block_ops): New.
3200 (SYMBOL_BLOCK_OPS): New.
3201 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
3202
dbccfd4c
TT
32032013-03-20 Tom Tromey <tromey@redhat.com>
3204
3205 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
3206 (print_partial_symbols, recursively_search_psymtabs): Use
3207 PSYMBOL_CLASS.
3208
e3f1ad4f
PM
32092013-03-20 Pierre Muller <muller@sourceware.org>
3210
3211 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
3212 addtion, subtraction, multiplication and division binary operator.
3213
460014f5
JK
32142013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3215
3216 Code cleanup.
3217 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
3218 * bsd-kvm.c (bsd_kvm_close): Likewise.
3219 * bsd-uthread.c (bsd_uthread_close): Likewise.
3220 * corelow.c (core_close): Likewise.
3221 (core_close_cleanup): Remove parameter quitting from a caller.
3222 * event-top.c (async_disconnect): Likewise.
3223 * exec.c (exec_close_1): Remove parameter quitting.
3224 * go32-nat.c (go32_close): Likewise.
3225 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
3226 parameter quitting from a caller.
3227 * mips-linux-nat.c (super_close): Remove parameter quitting from the
3228 variable.
3229 (mips_linux_close): Remove parameter quitting. Remove parameter
3230 quitting from a caller.
3231 * monitor.c (monitor_close): Remove parameter quitting.
3232 * monitor.h (monitor_close): Likewise.
3233 * record-btrace.c (record_btrace_close): Likewise.
3234 * record-full.c (record_full_close): Likewise.
3235 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
3236 it also from fprintf_unfiltered.
3237 * remote-mips.c (mips_close): Remove parameter quitting.
3238 (mips_detach): Remove parameter quitting from a caller.
3239 * remote-sim.c (gdbsim_close): Remove parameter quitting.
3240 (gdbsim_close): Remove duplicate function comment. Remove parameter
3241 quitting and remove it also from printf_filtered.
3242 * remote.c (remote_close): Remove parameter quitting.
3243 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
3244 * target.c (update_current_target): Remove parameter int from to_close
3245 de_fault.
3246 (push_target, unpush_target, pop_target): Remove parameter quitting from
3247 a caller.
3248 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
3249 Remove parameter quitting from a caller.
3250 (target_preopen): Remove parameter quitting from a caller.
3251 (target_close): Remove parameter quitting. Remove parameter quitting
3252 from a caller two times. Remove parameter quitting also from
3253 fprintf_unfiltered.
3254 * target.h (struct target_ops): Remove parameter quitting and as int
3255 from fields to_xclose and to_close.
3256 (extern struct target_ops current_target):
3257 (target_close, pop_all_targets): Remove parameter quitting. Update the
3258 comment.
3259 (pop_all_targets_above): Remove parameter quitting.
3260 * top.c (quit_target): Remove parameter quitting from a caller.
3261 * tracepoint.c (tfile_close): Remove parameter quitting.
3262 * windows-nat.c (windows_close): Remove parameter quitting.
3263
35a7120b
CV
32642013-03-20 Corinna Vinschen <vinschen@redhat.com>
3265
3266 * windows-nat.c (handle_output_debug_string): Replace call
3267 to string_to_core_addr with call to strtoull.
3268
8249a5a9
YQ
32692013-03-20 Yao Qi <yao@codesourcery.com>
3270
3271 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
3272 and write it to CTF metadata.
3273
2c15ef43
CV
32742013-03-19 Corinna Vinschen <vinschen@redhat.com>
3275
3276 * windows-nat.c (handle_output_debug_string): Change type of n to
3277 SIZE_T to avoid crash on 64 bit systems.
3278
1cdd3232
EZ
32792013-03-17 Eli Zaretskii <eliz@gnu.org>
3280
3281 * python/python-internal.h (HAVE_SNPRINTF)
3282 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
3283 about redefinition of snprintf by pyerrors.h.
3284
3cb2ab1a
SE
32852013-03-15 Steve Ellcey <sellcey@mips.com>
3286
3287 * remote-sim.c (sim_command_completer): Make char arguments const.
3288
9ce98649
TT
32892013-03-15 Tom Tromey <tromey@redhat.com>
3290
3291 PR c++/15116:
3292 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
3293
dccee2de
TT
32942013-03-14 Tom Tromey <tromey@redhat.com>
3295
3296 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
3297 New fields.
3298 (get_file_crc): Move from symfile.c.
3299 (gdb_bfd_crc): New function.
3300 * gdb_bfd.h (gdb_bfd_crc): Declare.
3301 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
3302 * symfile.c (get_file_crc): Move to gdb_bfd.c.
3303 (separate_debug_file_exists): Use gdb_bfd_crc.
3304
cc0ea93c
TT
33052013-03-14 Tom Tromey <tromey@redhat.com>
3306
3307 * symfile.c (get_debug_link_info): Remove.
3308 (find_separate_debug_file_by_debuglink): Use
3309 bfd_get_debug_link_info.
3310
08c23b0d
TT
33112013-03-14 Tom Tromey <tromey@redhat.com>
3312
3313 * symtab.c (error_in_psymtab_expansion): New function.
3314 (lookup_symbol_aux_quick)
3315 (basic_lookup_transparent_type_quick): Remove "last resort"
3316 code. Use error_in_psymtab_expansion.
3317
288e77a7
JK
33182013-03-14 Doug Evans <dje@google.com>
3319 Jan Kratochvil <jan.kratochvil@redhat.com>
3320
3321 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
3322 any successful compare_filenames_for_search or FILENAME_CMP.
3323 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
3324 * symtab.c (iterate_over_some_symtabs): Likewise.
3325
8f1b8b82
JK
33262013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3327
3328 * source.c (print_source_lines_base): Make a local copy of
3329 symtab_to_fullname.
3330
23eb71e4
JK
33312013-03-14 Hui Zhu <hui_zhu@mentor.com>
3332 Jan Kratochvil <jan.kratochvil@redhat.com>
3333
3334 * source.c (print_source_lines_base): Suppress "file" for TUI.
3335
bb869963
SDJ
33362013-03-14 Keith Seitz <keiths@redhat.com>
3337 Alan Matsuoka <alanm@redhat.com>
3338
3339 PR c++/15203
3340 PR c++/15210
3341 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
3342 TYPE_CODE_METHOD.
3343 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
3344 symbols.
3345
d6682f9e
YQ
33462013-03-14 Yao Qi <yao@codesourcery.com>
3347
3348 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
3349 status to tfile if trace is stopped by command 'tstop'.
3350
a22fa6e4
YQ
33512013-03-14 Yao Qi <yao@codesourcery.com>
3352
3353 * tracepoint.c (tfile_write_status): Write trace notes and user
3354 name into tfile if they are not NULL.
3355
d0353e76
YQ
33562013-03-14 Hui Zhu <hui@codesourcery.com>
3357 Yao Qi <yao@codesourcery.com>
3358
3359 * Makefile.in (REMOTE_OBS): Add ctf.o.
3360 (SFILES): Add ctf.c.
3361 (HFILES_NO_SRCDIR): Add ctf.h.
3362 * ctf.c, ctf.h: New files.
3363 * tracepoint.c: Include 'ctf.h'.
3364 (collect_pseudocommand): Remove static.
3365 (trace_save_command): Parse option "-ctf".
3366 Produce different trace file writers per option.
3367 Adjust output message.
3368 (trace_save_tfile, trace_save_ctf): New.
3369 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
3370 * mi/mi-main.c: Include 'ctf.h'.
3371 (mi_cmd_trace_save): Handle option '-ctf'. Call either
3372 trace_save_tfile or trace_save_ctf.
3373 * NEWS: Mention these changes.
3374
3f43bc09
YQ
33752013-03-14 Yao Qi <yao@codesourcery.com>
3376
3377 * tracepoint.c (trace_file_writer_xfree): New.
3378 (struct tfile_writer_data): New.
3379 (tfile_dtor, tfile_can_target_save, tfile_start): New.
3380 (tfile_write_header, tfile_write_regblock_type): New.
3381 (tfile_write_status, tfile_write_uploaded_tsv): New.
3382 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
3383 (tfile_write_raw_data, (tfile_end): New.
3384 (tfile_write_ops): New global variable.
3385 (TRACE_WRITE_R_BLOCK): New macro.
3386 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
3387 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
3388 (TRACE_WRITE_V_BLOCK): New macro.
3389 (trace_save): Add extra one parameter WRITER. Make it static.
3390 Use WRITER to writer trace.
3391 (tfile_trace_file_writer_new): New.
3392 (trace_save_command): Caller update.
3393 (trace_save_tfile): Write trace data in TFILE format.
3394 * tracepoint.h (struct trace_frame_write_ops): New.
3395 (struct trace_file_write_ops): New.
3396 (struct trace_file_writer): New.
3397 (trace_save): Remove its declaration.
3398 (trace_save_tfile): Declare it.
3399 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
3400 instead of trace_save.
3401
58665b40
PA
34022013-03-13 Pedro Alves <palves@redhat.com>
3403
3404 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
3405
10217050
PA
34062013-03-13 Pedro Alves <palves@redhat.com>
3407
3408 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
3409 commented out code.
3410 * demangle.c (current_demangling_style_string): Make it const.
3411 (set_demangling_command): Assert the demangling style is known.
3412 Remove all handling of unknown styles. Set
3413 'current_demangling_style_string' to an element of the
3414 demangling_style_names array.
3415 (set_demangling_style): Delete.
3416 (_initialize_demangler): Set current_demangling_style_string to the
3417 element of the demangling_style_names array that corresponds to
3418 the default demangling style. Remove FIXME note. Don't call
3419 set_demangling_style.
3420 * gdb-demangle.h (set_demangling_style): Remove declaration.
3421
6f937416
PA
34222013-03-13 Pedro Alves <palves@redhat.com>
3423
3424 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
3425 fields const.
3426 (ada_make_symbol_completion_list): Make "text0" parameter const.
3427 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
3428 * breakpoint.c (condition_completer): Make "text" and "word"
3429 parameters const. Adjust.
3430 (check_tracepoint_command): Adjust to validate_actionline
3431 prototype change.
3432 (catch_syscall_completer): Make "text" and "word" parameters
3433 const.
3434 * cli/cli-cmds.c (show_user): Make "comname" local const.
3435 (valid_command_p): Make "command" parameter const.
3436 (alias_command): Make "alias_prefix" and "command_prefix" locals
3437 const.
3438 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
3439 (add_alias_cmd): Make "name" and "oldname" parameters const.
3440 Adjust. No longer make copy of OLDNAME.
3441 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
3442 (add_setshow_cmd_full, add_setshow_enum_cmd)
3443 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
3444 (add_setshow_filename_cmd, add_setshow_string_cmd)
3445 (add_setshow_string_noescape_cmd)
3446 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3447 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3448 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
3449 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
3450 Make "name" parameter const.
3451 (help_cmd): Rename "command" parameter to "arg". New const local
3452 "command".
3453 (find_cmd): Make "command" parameter const.
3454 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
3455 deprecated_cmd_warning prototype change.
3456 (undef_cmd_error): Make "cmdtype" parameter const.
3457 (lookup_cmd): Make "line" parameter const.
3458 (deprecated_cmd_warning): Change type of "text" parameter to
3459 pointer to const char, from pointer to pointer to char. Adjust.
3460 (lookup_cmd_composition): Make "text" parameter const.
3461 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
3462 parameters const.
3463 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
3464 const.
3465 * cli/cli-script.c (validate_comname): Make "tem" local const.
3466 (define_command): New const local "tem_c". Use it in calls to
3467 lookup_cmd.
3468 (document_command): Make "tem" and "comfull" locals const.
3469 (show_user_1): Make "prefix" and "name" parameters const.
3470 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
3471 const.
3472 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
3473 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
3474 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
3475 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
3476 (complete_on_enum, add_setshow_enum_cmd)
3477 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
3478 (add_setshow_filename_cmd, add_setshow_string_cmd)
3479 (add_setshow_string_noescape_cmd)
3480 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3481 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3482 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
3483 Change prototypes, constifying strings.
3484 * completer.c (noop_completer, filename_completer): Make "text"
3485 and "prefix" parameters const.
3486 (location_completer, expression_completer)
3487 (complete_line_internal): Make "text" and "prefix" parameters
3488 const and adjust.
3489 (command_completer, signal_completer): Make "text" and "prefix"
3490 parameters const.
3491 * completer.h (noop_completer, filename_completer)
3492 (expression_completer, location_completer, command_completer)
3493 (signal_completer): Change prototypes.
3494 * corefile.c (complete_set_gnutarget): Make "text" and "word"
3495 parameters const.
3496 * cp-abi.c (cp_abi_completer): Likewise.
3497 * expression.h (parse_expression_for_completion): Change
3498 prototype.
3499 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
3500 parameters const.
3501 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
3502 * infrun.c (handle_completer): Make "text" and "word" parameters
3503 const.
3504 * interps.c (interpreter_completer): Make "text" and "word"
3505 parameters const.
3506 * language.h (struct language_defn)
3507 <la_make_symbol_completion_list>: Make "text" and "word"
3508 parameters const.
3509 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
3510 (parse_exp_in_context): Rename to ...
3511 (parse_exp_in_context_1): ... this.
3512 (parse_exp_in_context): Reimplement, with const hack from
3513 parse_exp_1.
3514 (parse_expression_for_completion): Make "string" parameter const.
3515 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
3516 to pointer to const char. Adjust.
3517 (print_command_1): Make "exp" parameter const.
3518 (output_command): Rename to ...
3519 (output_command_const): ... this. Make "exp" parameter const.
3520 (output_command): Reimplement.
3521 (x_command): Adjust.
3522 (display_command): Rename "exp" parameter to "arg". New "exp"
3523 local, const version of "arg".
3524 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
3525 "cmd_name" local const.
3526 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
3527 call.
3528 (cmdpy_completer): Make "text" and "word" parameters const.
3529 (gdbpy_parse_command_name): Make "prefix_text2" local const.
3530 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
3531 const.
3532 * remote.c (_initialize_remote): Make "cmd_name" local const.
3533 * symtab.c (language_search_unquoted_string): Make "text" and "p"
3534 parameters const. Adjust.
3535 (completion_list_add_fields): Make "sym_text", "text" and "word"
3536 parameters const.
3537 (struct add_name_data) <sym_text, text, word>: Make fields const.
3538 (default_make_symbol_completion_list_break_on): Make "text" and
3539 "word" parameters const. Adjust locals.
3540 (default_make_symbol_completion_list)
3541 (make_symbol_completion_list, make_symbol_completion_type)
3542 (make_symbol_completion_list_fn): Make "text" and "word"
3543 parameters const.
3544 (make_file_symbol_completion_list): Make "text", "word" and
3545 "srcfile" parameters const. Adjust locals.
3546 (add_filename_to_list): Make "text" and "word" parameters const.
3547 (struct add_partial_filename_data) <text, word>: Make fields
3548 const.
3549 (make_source_files_completion_list): Make "text" and "word"
3550 parameters const.
3551 * symtab.h (default_make_symbol_completion_list_break_on)
3552 (default_make_symbol_completion_list, make_symbol_completion_list)
3553 (make_symbol_completion_type enum type_code)
3554 (make_symbol_completion_list_fn make_file_symbol_completion_list)
3555 (make_source_files_completion_list): Change prototype.
3556 * top.c (execute_command): Adjust to pass pointer to pointer to
3557 const char to lookup_cmd, and to deprecated_cmd_warning prototype
3558 change.
3559 (set_verbose): Make "cmdname" local const.
3560 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
3561 and adjust.
3562 (validate_actionline): Make "line" parameter a pointer to const
3563 char, and adjust.
3564 (encode_actions_1): Make "action_exp" local const, and adjust.
3565 (encode_actions): Adjust.
3566 (replace_comma): Delete.
3567 (trace_dump_actions): Make "action_exp" and "next_comma" locals
3568 const, and adjust. Don't frob the action string while splitting
3569 it at commas. Instead, make a copy of each split substring in
3570 turn.
3571 (trace_dump_command): Adjust to validate_actionline prototype
3572 change.
3573 * tracepoint.h (decode_agent_options, decode_agent_options)
3574 (encode_actions, validate_actionline): Change prototypes.
3575 * valprint.h (output_command): Delete declaration.
3576 (output_command_const): Declare.
3577 * value.c (function_destroyer): Cast const away in xfree call.
3578
a0bcdaa7
PA
35792013-03-13 Pedro Alves <palves@redhat.com>
3580
3581 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
3582 rather than casting 'const char * const *' to 'const char **'.
3583 * ada-lex.l (processInt): Make "trailer" local const. Remove
3584 'const char **' cast.
3585 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
3586 locals, and use those as strtol output pointer, instead than doing
3587 invalid casts to from 'const char **' to 'char **'.
3588 (_initialize_demangle): Remove cast.
3589 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
3590 locals, and use those as strtol output pointer, instead than doing
3591 invalid casts to from 'const char **' to 'char **'.
3592 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
3593 casts.
3594 * stap-probe.c (stap_parse_register_operand)
3595 (stap_parse_single_operand): Likewise.
3596
8ddb1965
YQ
35972013-03-13 Yao Qi <yao@codesourcery.com>
3598
3599 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
3600 the last matched 'V' blcok in trace frame.
3601
2d450646
JB
36022013-03-12 Joel Brobecker <brobecker@adacore.com>
3603
3604 * NEWS: Create a new section for the next release branch.
3605 Rename the section of the current branch, now that it has
3606 been cut.
3607
b4b79973 36082013-03-12 Joel Brobecker <brobecker@adacore.com>
3609
3610 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
3611 * version.in: Bump version to 7.6.50.20130312-cvs.
3612
ee047554
KS
36132013-03-12 Keith Seitz <keiths@redhat.com>
3614
3615 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
3616 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
3617 Remove temporary copy of input string.
3618 (mi_execute_command_wrapper): Make "cmd" const.
3619 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
3620 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
3621 Use const strings.
3622 (mi_parse): Make "cmd" const.
3623 Use const strings.
3624 * mi/mi-parse.h (mi_parse): Make "cmd" const.
3625
bbc13ae3
KS
36262013-03-12 Keith Seitz <keiths@redhat.com>
3627
3628 * ada-lang.c (ada_read_renaming_var_value): Pass const
3629 pointer to expression string to parse_exp_1.
3630 (create_excep_cond_exprs): Likewise.
3631 * ax-gdb.c (agent_eval_command_one): Likewise.
3632 (maint_agent_printf_command): Likewise.
3633 Constify much of the string handling/parsing.
3634 * breakpoint.c (set_breakpoint_condition): Pass const
3635 pointer to expression string to parse_exp_1.
3636 (update_watchpoint): Likewise.
3637 (parse_cmd_to_aexpr): Constify string handling.
3638 Pass const pointer to parse_exp_1.
3639 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
3640 (find_condition_and_thread): Likewise.
3641 Make TOK const.
3642 (watch_command_1): Make "arg" const.
3643 Constify string handling.
3644 Copy the expression string instead of changing the input
3645 string.
3646 (update_breakpoint_location): Pass const pointer to
3647 parse_exp_1.
3648 * eval.c (parse_and_eval_address): Make "exp" const.
3649 (parse_to_comma_and_eval): Make "expp" const.
3650 (parse_and_eval): Make "exp" const.
3651 * expression.h (parse_expression): Make argument const.
3652 (parse_exp_1): Make first argument const.
3653 * findcmd.c (parse_find_args): Treat "args" as const.
3654 * linespec.c (parse_linespec): Pass const pointer to
3655 linespec_expression_to_pc.
3656 (linespec_expression_to_pc): Make "exp_ptr" const.
3657 * parse.c (parse_exp_1): Make "stringptr" const.
3658 Make a copy of the expression to pass to parse_exp_in_context until
3659 this whole interface can be constified.
3660 (parse_expression): Make "string" const.
3661 * printcmd.c (ui_printf): Treat "arg" as const.
3662 Handle const strings.
3663 * tracepoint.c (validate_actionline): Pass const pointer to
3664 all calls to parse_exp_1.
3665 (encode_actions_1): Likewise.
3666 * value.h (parse_to_comma_and_eval): Make argument const.
3667 (parse_and_eval_address): Likewise.
3668 (parse_and_eval): Likewise.
3669 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
3670 (varobj_set_value): Likewise.
3671 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
3672 constify string handling.
3673 Pass const pointers to parse_and_eval_address and
3674 parse_to_comman_and_eval.
3675 * cli/cli-utils.c (skip_to_space): Rename to ...
3676 (skip_to_space_const): ... this. Handle const strings.
3677 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
3678 skip_to_space_const.
3679 (skip_to_space_const): Declare.
3680 * common/format.c (parse_format_string): Make "arg" const.
3681 Handle const strings.
3682 * common/format.h (parse_format_string): Make "arg" const.
3683 * gdbserver/ax.c (ax_printf): Make "format" const.
3684 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
3685 of the expression string.
3686
f3cec7e6
HZ
36872013-03-12 Hui Zhu <hui@codesourcery.com>
3688
3689 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
3690
9df7235c
HZ
36912013-03-12 Yao Qi <yao@codesourcery.com>
3692 Hui Zhu <hui@codesourcery.com>
3693
3694 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
3695 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
3696 DW_OP_deref_size.
3697
82d049ab
PH
36982013-03-12 Paul Hilfinger <hilfingr@adacore.com>
3699
5f8e0b8f
MF
3700 * ada-lex.l (rules): Only recognize 'thread' as a
3701 delimiter when followed by numerals, as for c-exp.y.
3702 Use new rewind_to_char function to rewind the input for
3703 expression-delimiting tokens.
3704 (rewind_to_char): New function.
82d049ab 3705
8c1fb155
JK
37062013-03-11 Pedro Alves <palves@redhat.com>
3707 Jan Kratochvil <jan.kratochvil@redhat.com>
3708
3709 * configure: Regenerate.
3710 * configure.ac (check dynamic export flag): Link python test with
3711 $PYTHON_LIBS.
3712
cc81e1c6
DE
37132013-03-11 Doug Evans <dje@google.com>
3714 Keith Seitz <keiths@redhat.com>
3715
3716 * linespec.c (find_linespec_symbols): Call find_function_symbols
3717 first, and then call lookup_prefix_sym/find_method.
3718
39086a0e
PA
37192013-03-11 Pedro Alves <palves@redhat.com>
3720
3721 * charset.c (convert_between_encodings): Don't cast between
3722 different pointer to pointer types. Instead, make the 'inp' local
3723 be of the type iconv expects.
3724 (wchar_iterate): Don't cast between different pointer to pointer
3725 types. Instead, use new pointer local of the type iconv expects.
3726 * target.c (target_read_stralloc, target_fileio_read_stralloc):
3727 Add new local of type char pointer, and use it to get a
3728 char/string view of the byte buffer, instead of casting between
3729 pointer to pointer types.
3730
90585175
HAQ
37312013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
3732
3733 * remote.c (remote_set_trace_buffer_size): Move != operator
3734 to the start of next line to fix an ARI warning.
3735
59ea5688
MM
37362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3737
3738 * NEWS: Add record changes.
3739
946287b7
MM
37402013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3741
3742 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
3743 the instruction history disassembly.
3744 * disasm.c (dump_insns): Omit the pc prefix, if requested.
3745 * disasm.h (DISASSEMBLY_OMIT_PC): New.
3746
afedecd3
MM
37472013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3748
3749 * Makefile.in (SFILES): Add record-btrace.c
3750 (COMMON_OBS): Add record-btrace.o
3751 * record-btrace.c: New.
3752 * objfiles.c: Include btrace.h.
3753 (free_objfile): call btrace_free_objfile.
3754
15984c13
MM
37552013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3756
3757 * target.c (target_call_history, target_call_history_from,
3758 target_call_history_range): New.
3759 * target.h (target_ops) <to_call_history, to_call_history_from,
3760 to_call_history_range>: New fields.
3761 (target_call_history, target_call_history_from,
3762 target_call_history_range): New declaration.
3763 * record.c (get_call_history_modifiers, cmd_record_call_history,
3764 record_call_history_size): New.
3765 (_initialize_record): Add the "record function-call-history" command.
3766 Add "set/show record function-call-history-size" commands.
3767 * record.h (record_print_flag): New.
3768
67c86d06
MM
37692013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3770
3771 * target.h (target_ops) <to_insn_history, to_insn_history_from,
3772 to_insn_history_range>: New fields.
3773 (target_insn_history): New.
3774 (target_insn_history_from): New.
3775 (target_insn_history_range): New.
3776 * target.c (target_insn_history): New.
3777 (target_insn_history_from): New.
3778 (target_insn_history_range): New.
3779 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
3780 (record_insn_history_size): New.
3781 (get_insn_number): New.
3782 (get_context_size): New.
3783 (no_chunk): New.
3784 (get_insn_history_modifiers): New.
3785 (cmd_record_insn_history): New.
3786 (_initialize_record): Add "set/show record instruction-history-size"
3787 command. Add "record instruction-history" command.
3788
7c1687a9
MM
37892013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3790
3791 * record.h (record_disconnect): New.
3792 (record_detach): New.
3793 (record_mourn_inferior): New.
3794 (record_kill): New.
3795 * record-full.c (record_disconnect, record_detach,
3796 record_mourn_inferior, record_kill): Move to...
3797 * record.c: ...here.
3798 (DEBUG): New.
3799 (record_stop): New.
3800 (record_unpush): New.
3801 (cmd_record_stop): Call record_stop. Replace unpush_target
3802 call with record_unpush call.
3803 (record_disconnect, record_detach): Assert that the target
3804 is of record stratum. Call record_unpush, record_stop, and
3805 DEBUG.
3806 (record_mourn_inferior, record_kill): Assert that the target
3807 is of record stratum. Call record_unpush and DEBUG.
3808
25ea693b
MM
38092013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3810
3811 * record-full.h, record-full.c (record_memory_query): Rename
3812 to ...
3813 (record_full_memory_query): ...this. Update all users.
3814 (record_arch_list_add_reg): Rename to ...
3815 (record_full_arch_list_add_reg): ...this. Update all users.
3816 (record_arch_list_add_mem): Rename to ...
3817 (record_full_arch_list_add_mem): ...this. Update all users.
3818 (record_arch_list_add_end): Rename to ...
3819 (record_full_arch_list_add_end): ...this. Update all users.
3820 (record_gdb_operation_disable_set): Rename to ...
3821 (record_full_gdb_operation_disable_set): ...this.
3822 Update all users.
3823
88d1aa9d
MM
38242013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3825
3826 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
3827 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
3828 (RECORD_IS_REPLAY): Renamed to ...
3829 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
3830 (RECORD_FILE_MAGIC): Renamed to ...
3831 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
3832 (record_mem_entry): Renamed to ...
3833 (record_full_mem_entry): ... this. Updated all users.
3834 (record_reg_entry): Renamed to ...
3835 (record_full_reg_entry): ... this. Updated all users.
3836 (record_end_entry): Renamed to ...
3837 (record_full_end_entry): ... this. Updated all users.
3838 (record_type) <record_end, record_reg, record_mem>: Renamed
3839 to ...
3840 (record_full_type) <record_full_end, record_full_reg,
3841 record_full_mem>: ... this. Updated all users.
3842 (record_entry): Renamed to ...
3843 (record_full_entry): ... this. Updated all users.
3844 (record_core_buf_entry): Renamed to ...
3845 (record_full_core_buf_entry): ... this. Updated all users.
3846 (record_core_regbuf): Renamed to ...
3847 (record_full_core_regbuf): ... this. Updated all users.
3848 (record_core_start): Renamed to ...
3849 (record_full_core_start): ... this. Updated all users.
3850 (record_core_end): Renamed to ...
3851 (record_full_core_end): ... this. Updated all users.
3852 (record_core_buf_list): Renamed to ...
3853 (record_full_core_buf_list): ... this. Updated all users.
3854 (record_first): Renamed to ...
3855 (record_full_first): ... this. Updated all users.
3856 (record_list): Renamed to ...
3857 (record_full_list): ... this. Updated all users.
3858 (record_arch_list_head): Renamed to ...
3859 (record_full_arch_list_head): ... this. Updated all users.
3860 (record_arch_list_tail): Renamed to ...
3861 (record_full_arch_list_tail): ... this. Updated all users.
3862 (record_stop_at_limit): Renamed to ...
3863 (record_full_stop_at_limit): ... this. Updated all users.
3864 (record_insn_max_num): Renamed to ...
3865 (record_full_insn_max_num): ... this. Updated all users.
3866 (record_insn_num): Renamed to ...
3867 (record_full_insn_num): ... this. Updated all users.
3868 (record_insn_count): Renamed to ...
3869 (record_full_insn_count): ... this. Updated all users.
3870 (record_ops): Renamed to ...
3871 (record_full_ops): ... this. Updated all users.
3872 (record_core_ops): Renamed to ...
3873 (record_full_core_ops): ... this. Updated all users.
3874 (set_record_cmdlist): Renamed to ...
3875 (set_record_full_cmdlist): ... this. Updated all users.
3876 (show_record_cmdlist): Renamed to ...
3877 (show_record_full_cmdlist): ... this. Updated all users.
3878 (record_cmdlist): Renamed to ...
3879 (record_full_cmdlist): ... this. Updated all users.
3880 (record_beneath_to_resume_ops): Renamed to ...
3881 (record_full_beneath_to_resume_ops): ... this. Updated all users.
3882 (record_beneath_to_resume): Renamed to ...
3883 (record_full_beneath_to_resume): ... this. Updated all users.
3884 (record_beneath_to_wait_ops): Renamed to ...
3885 (record_full_beneath_to_wait_ops): ... this. Updated all users.
3886 (record_beneath_to_wait): Renamed to ...
3887 (record_full_beneath_to_wait): ... this. Updated all users.
3888 (record_beneath_to_store_registers_ops): Renamed to ...
3889 (record_full_beneath_to_store_registers_ops): ... this.
3890 Updated all users.
3891 (record_beneath_to_store_registers): Renamed to ...
3892 (record_full_beneath_to_store_registers): ... this.
3893 Updated all users.
3894 (record_beneath_to_xfer_partial_ops): Renamed to ...
3895 (record_full_beneath_to_xfer_partial_ops): ... this.
3896 Updated all users.
3897 (record_beneath_to_xfer_partial): Renamed to ...
3898 (record_full_beneath_to_xfer_partial): ... this.
3899 Updated all users.
3900 (record_beneath_to_insert_breakpoint): Renamed to ...
3901 (record_full_beneath_to_insert_breakpoint): ... this.
3902 Updated all users.
3903 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
3904 (record_full_beneath_to_stopped_by_watchpoint): ... this.
3905 Updated all users.
3906 (record_beneath_to_stopped_data_address): Renamed to ...
3907 (record_full_beneath_to_stopped_data_address): ... this.
3908 Updated all users.
3909 (record_beneath_to_async): Renamed to ...
3910 (record_full_beneath_to_async): ... this. Updated all users.
3911 (record_goto_insn): Renamed to ...
3912 (record_full_goto_insn): ... this. Updated all users.
3913 (record_save): Renamed to ...
3914 (record_full_save): ... this. Updated all users.
3915 (record_reg_alloc): Renamed to ...
3916 (record_full_reg_alloc): ... this. Updated all users.
3917 (record_reg_release): Renamed to ...
3918 (record_full_reg_release): ... this. Updated all users.
3919 (record_mem_alloc): Renamed to ...
3920 (record_full_mem_alloc): ... this. Updated all users.
3921 (record_mem_release): Renamed to ...
3922 (record_full_mem_release): ... this. Updated all users.
3923 (record_end_alloc): Renamed to ...
3924 (record_full_end_alloc): ... this. Updated all users.
3925 (record_end_release): Renamed to ...
3926 (record_full_end_release): ... this. Updated all users.
3927 (record_entry_release): Renamed to ...
3928 (record_full_entry_release): ... this. Updated all users.
3929 (record_list_release): Renamed to ...
3930 (record_full_list_release): ... this. Updated all users.
3931 (record_list_release_following): Renamed to ...
3932 (record_full_list_release_following): ... this.
3933 Updated all users.
3934 (record_list_release_first): Renamed to ...
3935 (record_full_list_release_first): ... this. Updated all users.
3936 (record_arch_list_add): Renamed to ...
3937 (record_full_arch_list_add): ... this. Updated all users.
3938 (record_get_loc): Renamed to ...
3939 (record_full_get_loc): ... this. Updated all users.
3940 (record_check_insn_num): Renamed to ...
3941 (record_full_check_insn_num): ... this. Updated all users.
3942 (record_arch_list_cleanups): Renamed to ...
3943 (record_full_arch_list_cleanups): ... this. Updated all users.
3944 (record_message): Renamed to ...
3945 (record_full_message): ... this. Updated all users.
3946 (record_message_wrapper): Renamed to ...
3947 (record_full_message_wrapper): ... this. Updated all users.
3948 (record_message_wrapper_safe): Renamed to ...
3949 (record_full_message_wrapper_safe): ... this. Updated all users.
3950 (record_gdb_operation_disable): Renamed to ...
3951 (record_full_gdb_operation_disable): ... this. Updated all users.
3952 (record_hw_watchpoint): Renamed to ...
3953 (record_full_hw_watchpoint): ... this. Updated all users.
3954 (record_exec_insn): Renamed to ...
3955 (record_full_exec_insn): ... this. Updated all users.
3956 (record_restore): Renamed to ...
3957 (record_full_restore): ... this. Updated all users.
3958 (record_async_inferior_event_token): Renamed to ...
3959 (record_full_async_inferior_event_token): ... this.
3960 Updated all users.
3961 (record_async_inferior_event_handler): Renamed to ...
3962 (record_full_async_inferior_event_handler): ... this.
3963 Updated all users.
3964 (record_core_open_1): Renamed to ...
3965 (record_full_core_open_1): ... this. Updated all users.
3966 (record_open_1): Renamed to ...
3967 (record_full_open_1): ... this. Updated all users.
3968 (record_open): Renamed to ...
3969 (record_full_open): ... this. Updated all users.
3970 (record_close): Renamed to ...
3971 (record_full_close): ... this. Updated all users.
3972 (record_resume_step): Renamed to ...
3973 (record_full_resume_step): ... this. Updated all users.
3974 (record_resumed): Renamed to ...
3975 (record_full_resumed): ... this. Updated all users.
3976 (record_execution_dir): Renamed to ...
3977 (record_full_execution_dir): ... this. Updated all users.
3978 (record_resume): Renamed to ...
3979 (record_full_resume): ... this. Updated all users.
3980 (record_get_sig): Renamed to ...
3981 (record_full_get_sig): ... this. Updated all users.
3982 (record_sig_handler): Renamed to ...
3983 (record_full_sig_handler): ... this. Updated all users.
3984 (record_wait_cleanups): Renamed to ...
3985 (record_full_wait_cleanups): ... this. Updated all users.
3986 (record_wait_1): Renamed to ...
3987 (record_full_wait_1): ... this. Updated all users.
3988 (record_wait): Renamed to ...
3989 (record_full_wait): ... this. Updated all users.
3990 (record_stopped_by_watchpoint): Renamed to ...
3991 (record_full_stopped_by_watchpoint): ... this. Updated all users.
3992 (record_disconnect): Renamed to ...
3993 (record_full_disconnect): ... this. Updated all users.
3994 (record_detach): Renamed to ...
3995 (record_full_detach): ... this. Updated all users.
3996 (record_mourn_inferior): Renamed to ...
3997 (record_full_mourn_inferior): ... this. Updated all users.
3998 (record_kill): Renamed to ...
3999 (record_full_kill): ... this. Updated all users.
4000 (record_stopped_data_address): Renamed to ...
4001 (record_full_stopped_data_address): ... this. Updated all users.
4002 (record_registers_change): Renamed to ...
4003 (record_full_registers_change): ... this. Updated all users.
4004 (record_store_registers): Renamed to ...
4005 (record_full_store_registers): ... this. Updated all users.
4006 (record_xfer_partial): Renamed to ...
4007 (record_full_xfer_partial): ... this. Updated all users.
4008 (record_breakpoint): Renamed to ...
4009 (record_full_breakpoint): ... this. Updated all users.
4010 (record_breakpoint_p): Renamed to ...
4011 (record_full_breakpoint_p): ... this. Updated all users.
4012 (record_breakpoints): Renamed to ...
4013 (record_full_breakpoints): ... this. Updated all users.
4014 (record_sync_record_breakpoints): Renamed to ...
4015 (record_full_sync_record_breakpoints): ... this.
4016 Updated all users.
4017 (record_init_record_breakpoints): Renamed to ...
4018 (record_full_init_record_breakpoints): ... this.
4019 Updated all users.
4020 (record_insert_breakpoint): Renamed to ...
4021 (record_full_insert_breakpoint): ... this. Updated all users.
4022 (record_remove_breakpoint): Renamed to ...
4023 (record_full_remove_breakpoint): ... this. Updated all users.
4024 (record_can_execute_reverse): Renamed to ...
4025 (record_full_can_execute_reverse): ... this. Updated all users.
4026 (record_get_bookmark): Renamed to ...
4027 (record_full_get_bookmark): ... this. Updated all users.
4028 (record_goto_bookmark): Renamed to ...
4029 (record_full_goto_bookmark): ... this. Updated all users.
4030 (record_async): Renamed to ...
4031 (record_full_async): ... this. Updated all users.
4032 (record_can_async_p): Renamed to ...
4033 (record_full_can_async_p): ... this. Updated all users.
4034 (record_is_async_p): Renamed to ...
4035 (record_full_is_async_p): ... this. Updated all users.
4036 (record_execution_direction): Renamed to ...
4037 (record_full_execution_direction): ... this. Updated all users.
4038 (record_info): Renamed to ...
4039 (record_full_info): ... this. Updated all users.
4040 (record_delete): Renamed to ...
4041 (record_full_delete): ... this. Updated all users.
4042 (record_is_replaying): Renamed to ...
4043 (record_full_is_replaying): ... this. Updated all users.
4044 (record_goto_entry): Renamed to ...
4045 (record_full_goto_entry): ... this. Updated all users.
4046 (record_goto_begin): Renamed to ...
4047 (record_full_goto_begin): ... this. Updated all users.
4048 (record_goto_end): Renamed to ...
4049 (record_full_goto_end): ... this. Updated all users.
4050 (record_goto): Renamed to ...
4051 (record_full_goto): ... this. Updated all users.
4052 (init_record_ops): Renamed to ...
4053 (init_record_full_ops): ... this. Updated all users.
4054 (record_core_resume): Renamed to ...
4055 (record_full_core_resume): ... this. Updated all users.
4056 (record_core_kill): Renamed to ...
4057 (record_full_core_kill): ... this. Updated all users.
4058 (record_core_fetch_registers): Renamed to ...
4059 (record_full_core_fetch_registers): ... this. Updated all users.
4060 (record_core_prepare_to_store): Renamed to ...
4061 (record_full_core_prepare_to_store): ... this. Updated all users.
4062 (record_core_store_registers): Renamed to ...
4063 (record_full_core_store_registers): ... this. Updated all users.
4064 (record_core_xfer_partial): Renamed to ...
4065 (record_full_core_xfer_partial): ... this. Updated all users.
4066 (record_core_insert_breakpoint): Renamed to ...
4067 (record_full_core_insert_breakpoint): ... this. Updated all users.
4068 (record_core_remove_breakpoint): Renamed to ...
4069 (record_full_core_remove_breakpoint): ... this. Updated all users.
4070 (record_core_has_execution): Renamed to ...
4071 (record_full_core_has_execution): ... this. Updated all users.
4072 (init_record_core_ops): Renamed to ...
4073 (init_record_full_core_ops): ... this. Updated all users.
4074 (cmd_record_restore): Renamed to ...
4075 (cmd_record_full_restore): ... this. Updated all users.
4076 (record_save_cleanups): Renamed to ...
4077 (record_full_save_cleanups): ... this. Updated all users.
4078 (cmd_record_start): Renamed to ...
4079 (cmd_record_full_start): ... this. Updated all users.
4080 (set_record_insn_max_num): Renamed to ...
4081 (set_record_full_insn_max_num): ... this. Updated all users.
4082 (set_record_command): Renamed to ...
4083 (set_record_full_command): ... this. Updated all users.
4084 (show_record_command): Renamed to ...
4085 (show_record_full_command): ... this. Updated all users.
4086 (_initialize_record): Renamed to ...
4087 (_initialize_record_full): ... this. Updated all users.
4088
d02ed0bb
MM
40892013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4090
4091 * record.h: Split into this and ...
4092 * record-full.h: ... this.
4093 * record.c: Split into this and ...
4094 * record-full.c: ... this.
4095 * target.h (target_ops): Add new fields to_info_record,
4096 to_save_record, to_delete_record, to_record_is_replaying,
4097 to_goto_record_begin, to_goto_record_end, to_goto_record.
4098 (target_info_record): New.
4099 (target_save_record): New.
4100 (target_supports_delete_record): New.
4101 (target_delete_record): New.
4102 (target_record_is_replaying): New.
4103 (target_goto_record_begin): New.
4104 (target_goto_record_end): New.
4105 (target_goto_record): New.
4106 * target.c (target_info_record): New.
4107 (target_save_record): New.
4108 (target_supports_delete_record): New.
4109 (target_delete_record): New.
4110 (target_record_is_replaying): New.
4111 (target_goto_record_begin): New.
4112 (target_goto_record_end): New.
4113 (target_goto_record): New.
4114 * record.h: Declare struct cmd_list_element.
4115 (record_cmdlist): New declaration.
4116 (set_record_cmdlist): New declaration.
4117 (show_record_cmdlist): New declaration.
4118 (info_record_cmdlist): New declaration.
4119 (cmd_record_goto): New declaration.
4120 * record.c: Remove unnecessary includes.
4121 Include inferior.h.
4122 (cmd_record_goto): Remove declaration.
4123 (record_cmdlist): Now extern. Initialize.
4124 (set_record_cmdlist): Now extern. Initialize.
4125 (show_record_cmdlist): Now extern. Initialize.
4126 (info_record_cmdlist): Now extern. Initialize.
4127 (find_record_target): New.
4128 (require_record_target): New.
4129 (cmd_record_start): Update.
4130 (cmd_record_delete): Remove target-specific code.
4131 Call target_delete_record.
4132 (cmd_record_stop): Unpush any record target.
4133 (set_record_insn_max_num): Move to record-full.c
4134 (set_record_command): Add comment.
4135 (show_record_command): Add comment.
4136 (info_record_command): Update comment.
4137 Remove target-specific code.
4138 Call the record target's to_info_record.
4139 (cmd_record_start): New.
4140 (cmd_record_goto): Now extern.
4141 Remove target-specific code.
4142 Call target_goto_begin, target_goto_end, or target_goto.
4143 (_initialize_record): Move record target ops initialization to
4144 record-full.c.
4145 Change "record" command help text.
4146 Move "record restore", "record set", and "record show" commands to
4147 record-full.c.
4148 * Makefile.in (SFILES): Add record-full.c.
4149 (HFILES_NO_SRCDIR): Add record-full.h.
4150 (COMMON_OBS): Add record-full.o.
4151 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
4152 * arm-tdep.c: Include record-full.h.
4153 * i386-linux-tdep.c: Include record-full.h instead of record.h.
4154 * i386-tdep.c: Include record-full.h.
4155 * infrun.c: Include record-full.h.
4156 * linux-record.c: Include record-full.h.
4157 * moxie-tdep.c: Include record-full.h.
4158 * record-full.c: Include record-full.h.
4159 Change module comment.
4160 (set_record_full_cmdlist): New.
4161 (show_record_full_cmdlist): New.
4162 (record_full_cmdlist): New.
4163 (record_goto_insn): New declaration.
4164 (record_save): New declaration.
4165 (record_check_insn_num): Change query string.
4166 (record_info): New.
4167 (record_delete): New.
4168 (record_is_replaying): New.
4169 (record_goto_entry): New.
4170 (record_goto_begin): New.
4171 (record_goto_end): New.
4172 (record_goto): New.
4173 (init_record_ops): Update.
4174 (init_record_core_ops): Update.
4175 (cmd_record_save): Rename to record_save. Remove target and arg checks.
4176 (cmd_record_start): New.
4177 (set_record_insn_max_num): Moved from record.c
4178 (set_record_full_command): New.
4179 (show_record_full_command): New.
4180 (_initialize_record_full): New.
4181
b48d48eb
MM
41822013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4183
4184 * target.h (add_deprecated_target_alias): New.
4185 * target.c (add_deprecated_target_alias): New.
4186
a950d57c
MM
41872013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4188
4189 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
4190 and signal.h.
4191 (linux_supports_btrace): Add kernel and
4192 cpuid check.
4193 (kernel_supports_btrace): New function.
4194 (cpu_supports_btrace): New function.
4195 (intel_supports_btrace): New function.
4196
9accd112
MM
41972013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4198
4199 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
4200 * remote.c: Include btrace.h.
4201 (struct btrace_target_info): New struct.
4202 (remote_supports_btrace): New function.
4203 (send_Qbtrace): New function.
4204 (remote_enable_btrace): New function.
4205 (remote_disable_btrace): New function.
4206 (remote_teardown_btrace): New function.
4207 (remote_read_btrace): New function.
4208 (init_remote_ops): Add btrace ops.
4209 (enum <unnamed>): Add btrace packets.
4210 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
4211 (_initialize_remote): Add packet configuration for branch tracing.
4212
c12a2917
MM
42132013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4214
4215 * features/btrace.dtd: New file.
4216 * Makefile.in (XMLFILES): Add btrace.dtd.
4217 * btrace.h (parse_xml_btrace): New declaration.
4218 * btrace.c: Include xml-support.h.
4219 (parse_xml_btrace): New function.
4220 (parse_xml_btrace_block): New function.
4221 (block_attributes): New struct.
4222 (btrace_attributes): New struct.
4223 (btrace_children): New struct.
4224 (btrace_elements): New struct.
4225
3e3aea48
MM
42262013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4227
4228 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
4229 (amd64_linux_enable_btrace): New.
4230 (amd64_linux_disable_btrace): New.
4231 (amd64_linux_teardown_btrace): New.
4232 (_initialize_amd64_linux_nat): Initialize btrace ops.
4233 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
4234 (i386_linux_enable_btrace): New.
4235 (i386_linux_disable_btrace): New.
4236 (i386_linux_teardown_btrace): New.
4237 (_initialize_i386_linux_nat): Initialize btrace ops.
4238 * config/i386/linux.mh: Add linux-btrace.o.
4239 * config/i386/linux64.mh: Add linux-btrace.o.
4240
7c97f91e
MM
42412013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4242
4243 * common/linux_btrace.h: New file.
4244 * common/linux_btrace.c: New file.
4245 * Makefile.in (SFILES): Add btrace.c.
4246 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
4247 (COMMON_OBS): Add btrace.o.
4248 (linux-btrace.o): New rule.
4249
1999790b 42502013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
4251
4252 * target.h: Include btrace.h.
4253 (struct target_ops) <to_supports_btrace, to_enable_btrace,
4254 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
4255 * target.c (target_supports_btrace): New function.
4256 (target_enable_btrace): New function.
4257 (target_disable_btrace): New function.
4258 (target_teardown_btrace): New function.
4259 (target_read_btrace): New function.
4260 * btrace.h: New file.
4261 * btrace.c: New file.
4262 * Makefile.in: Add btrace.c.
4263 * gdbthread.h: Include btrace.h.
4264 (struct thread_info): Add btrace field.
4265 * thread.c: Include btrace.h.
4266 (clear_thread_inferior_resources): Call target_teardown_btrace.
4267 * common/btrace-common.h: New file.
4268
61a31a67
JK
42692013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4270
4271 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
4272 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
4273 kill_status to outer block.
4274
05c56a9d
JK
42752013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4276
4277 Fix entry-values if the callee called a noreturn function.
4278 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4279 get_frame_address_in_block. Add new comment.
4280
9112db09
JK
42812013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4282
4283 Fix entry-values in C++ across CUs.
4284 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
4285 lookup_minimal_symbol. Add a comment.
4286 * dwarf2read.c
4287 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
4288 DW_AT_linkage_name.
4289
9b67fcec
YQ
42902013-03-08 Yao Qi <yao@codesourcery.com>
4291
4292 * tracepoint.c (_initialize_tracepoint): Indent the code.
4293
6221be90
PA
42942013-03-08 Pedro Alves <palves@redhat.com>
4295
4296 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
4297 (parse_find_args, find_command): Change type of pattern buffer
4298 locals to 'gdb_byte *'.
4299
be9a119c 43002013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
4301 Hafiz Abid Qadeer <abidh@codesourcery.com>
4302
4303 * NEWS: Mention set and show trace-buffer-size commands.
4304 Mention new packet.
4305 * target.h (struct target_ops): New method
4306 to_set_trace_buffer_size.
4307 (target_set_trace_buffer_size): New macro.
4308 * target.c (update_current_target): Set up new method.
4309 * tracepoint.c (trace_buffer_size): New global.
4310 (start_tracing): Send it to the target.
4311 (set_trace_buffer_size): New function.
4312 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
4313 * remote.c (remote_set_trace_buffer_size): New function.
4314 (_initialize_remote): Use it.
4315 (QTBuffer:size) New remote command.
4316 (PACKET_QTBuffer_size): New enum.
4317 (remote_protocol_features): Add an entry for
4318 PACKET_QTBuffer_size.
4319
7da3ab79
TT
43202013-03-08 Tom Tromey <tromey@redhat.com>
4321
4322 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
4323 variable.
4324
0c1f71e7
PA
43252013-03-07 Pedro Alves <palves@redhat.com>
4326
4327 * target.c (target_read_stralloc, target_fileio_read_alloc):
4328 *Cast pointer to 'gdb_byte *' in target call.
4329
c8af03a2
PA
43302013-03-07 Pedro Alves <palves@redhat.com>
4331
4332 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
4333 call.
4334
529480d0
KS
43352013-03-07 Keith Seitz <keiths@redhat.com>
4336
4337 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
4338 (trace_pass_command): Likewise.
4339 * cli/cli-cmds.c: Include cli/cli-utils.h.
4340 (source_command): Use skip-spaces.
4341 (disassemble_command): Likewise.
4342 * findcmd.c: Include cli/cli-utils.h.
4343 (parse_find_args): Use skip_spaces.
4344 * go32-nat.c: Include cli/cli-utils.h.
4345 (go32_sldt): Use skip_spaces.
4346 (go32_sgdt): Likewise.
4347 (go32_sidt): Likewise.
4348 (go32_pde): Likewise.
4349 (go32_pte): Likewise.
4350 (go32_pte_for_address): Likewise.
4351 * infcmd.c: Include cli/cli-utils.h.
4352 (registers_info): Use skip_spaces.
4353 * linux-tdep.c (read_mapping): Use skip_spaces_const.
4354 (linux_info_proc): Likewise.
4355 * linux-thread-db.c: Include cli/cli-utils.h.
4356 (info_auto_load_libthread_db): Use skip_spaces_const.
4357 * m32r-rom.c: Include cli/cli-utils.h.
4358 (m32r_upload_command): Use skip_spaces.
4359 * maint.c: Include cli/cli-utils.h.
4360 (maintenance_translate_address): Use skip_spaces.
4361 * mi/mi-parse.c: Include cli/cli-utils.h.
4362 (mi_parse_argv): Use skip_spaces.
4363 (mi_parse): Likewise.
4364 * minsyms.c: Include cli/cli-utils.h.
4365 (msymbol_hash_iw): Use skip_spaces_const.
4366 * objc-lang.c: Include cli/cli-utils.h.
4367 (parse_selector): Use skip_spaces.
4368 (parse_method): Likewise.
4369 * python/python.c: Include cli/cli-utils.h.
4370 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
4371 (python_command)[HAVE_PYTHON]: Likewise.
4372 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
4373 * remote-m32r-sdi.c: Include cli/cli-utils.h.
4374 (m32r_load): Use skip_spaces.
4375 * serial.c: Include cli/cli-utils.h.
4376 (serial_open): Use skip_spaces_const.
4377 * stack.c: Include cli/cli-utils.h.
4378 (parse_frame_specification_1): Use skip_spaces_const.
4379 * symfile.c: Include cli/cli-utils.h.
4380 (set_ext_lang_command): Use skip_spaces.
4381 * symtab.c: Include cli/cli-utils.h.
4382 (rbreak_command): Use skip_spaces.
4383 * thread.c (thread_name_command): Use skip_spaces.
4384 * tracepoint.c (validate_actionline): Use skip_spaces.
4385 (encode_actions_1): Likewise.
4386 (trace_find_range_command): Likewise.
4387 (trace_find_outside_command): Likewise.
4388 (trace_dump_actions): Likewise.
4389
ac91cd70
PA
43902013-03-07 Pedro Alves <palves@redhat.com>
4391
4392 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
4393 * expprint.c (print_subexp_standard): Likewise.
4394 * utils.c (host_char_to_target): Likewise.
4395 * valprint.c (generic_emit_char, generic_printstr): Likewise.
4396 * varobj.c (value_get_print_value): Change type of local to char*.
4397 Cast it gdb_byte * in call to language printer.
4398
2898e560
PA
43992013-03-07 Pedro Alves <palves@redhat.com>
4400
4401 * charset.c (struct wchar_iterator) <input>: Change type to 'const
4402 gdb_byte *'.
4403 (make_wchar_iterator): Remove cast to char*.
4404 (wchar_iterate): Change type of local.
4405
a09b4448
PA
44062013-03-07 Pedro Alves <palves@redhat.com>
4407
4408 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
4409 for 'regcache->register_status'.
4410
20ced3e4
PA
44112013-03-07 Pedro Alves <palves@redhat.com>
4412
c2d6a675 4413 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
4414 int.
4415
fe106009
PA
44162013-03-07 Pedro Alves <palves@redhat.com>
4417
4418 * stap-probe.c (handle_stap_probe): Add cast to char*.
4419
8ac2c12b
PA
44202013-03-07 Pedro Alves <palves@redhat.com>
4421
4422 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
4423 RECORD_MSGRCV>: Pass a signed variable to
4424 regcache_raw_read_signed, instead of an unsigned one.
4425
99f0a309
PA
44262013-03-07 Pedro Alves <palves@redhat.com>
4427
4428 * remote-notif.c (notif_debug): Change type to int.
4429 * remote-notif.h (notif_debug): Likewise.
4430
964b8317
PA
44312013-03-07 Pedro Alves <palves@redhat.com>
4432
4433 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
4434
f0cc8ad4
PA
44352013-03-07 Pedro Alves <palves@redhat.com>
4436
4437 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
4438 * remote.h (hex2bin, bin2hex): ... here.
4439 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
4440
77dec115
EZ
44412013-03-07 Eli Zaretskii <eliz@gnu.org>
4442
4443 * utils.c (initialize_utils): Improve doc strings of "set/show
4444 width", "set/show height", and "set/show pagination".
4445
741d92cf
KS
44462013-03-06 Keith Seitz <keiths@redhat.com>
4447
4448 * ax-gdb.c (gen_printf): Make FORMAT const.
4449 * ax-gdb.h (gen_printf): Likewise.
4450 * ax-general.c (ax_string): Make STR const.
4451 * ax.h (ax_string): Likewise.
4452
7b6c814e
DE
44532013-03-06 Doug Evans <dje@google.com>
4454
4455 * elfread.c (elf_symfile_read): Move debugging printf to more
4456 logical location.
4457
634334ab
PA
44582013-03-06 Pedro Alves <palves@redhat.com>
4459
4460 * python/py-utils.c (target_string_to_unicode): Delete function.
4461 * python/python-internal.h (target_string_to_unicode): Delete
4462 declaration.
4463
e482a1a7
PM
44642013-03-06 Pierre Muller <muller@sourceware.org>
4465
4466 * linespec.c (get_current_search_block): ARI fix, use (void)
4467 for empty parameter list.
4468
4eeaa230
DE
44692013-03-05 Doug Evans <dje@google.com>
4470
4471 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
4472 of old ada_lookup_symbol_list. In !full_search case, don't
4473 search superblocks.
4474 (ada_lookup_symbol_list): Delete arg full_search, all callers
4475 updated. Call ada_lookup_symbol_list_worker.
4476 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
4477 * ada-lang.h (ada_lookup_symbol_list): Update.
4478 * language.h (language_defn): Update comment for
4479 la_iterate_over_symbols.
4480 * linespec.c (iterate_over_file_blocks): New function.
4481 (iterate_over_all_matching_symtabs): Call it.
4482 (lookup_prefix_sym): Ditto.
4483 (get_current_search_block): New function.
4484 (get_search_block): Delete.
4485 (find_label_symbols): Call get_current_search_block.
4486 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
4487 * symtab.c (iterate_over_symbols): Don't search superblocks.
4488
b69b1fb1
YQ
44892013-03-05 Yao Qi <yao@codesourcery.com>
4490
4491 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
4492 parameter VAR's type from "unsigned int" to "int".
4493 * command.h (var_zuinteger_unlimited): Update its comments.
4494 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
4495
3c095f49
CV
44962013-03-05 Corinna Vinschen <vinschen@redhat.de>
4497
4498 * NEWS: Mention new target x86_64-*-cygwin*.
4499
b5b0b0af
CV
45002013-03-05 Corinna Vinschen <vinschen@redhat.de>
4501
4502 * configure.host: Add x86_64-*-cygwin* as host.
4503 * configure.tgt: Add x86_64-*-cygwin* as target.
4504 * config/i386/cygwin64.mh: New file.
4505
f6f99966
JK
45062013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4507
4508 * linespec.c (decode_line_2): Fix duplicate request off by two message.
4509
33f448b1
JK
45102013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4511
4512 * linespec.c (struct linespec_canonical_name): New.
4513 (struct linespec_state): Change canonical_names type to it.
4514 (add_sal_to_sals): Change variable canonical_name to canonical. Change
4515 xrealloc element size. Initialize the different CANONICAL fields.
4516 (canonical_to_fullform): New.
4517 (filter_results): Use it. Add variables canonical, fullform and
4518 cleanup.
4519 (struct decode_line_2_item, decode_line_2_compare_items): New.
4520 (decode_line_2): Remove variables iter and item_names, add variables
4521 items and items_count. Modify the code for these new variables.
4522
feb14725
CV
45232013-03-04 Corinna Vinschen <vinschen@redhat.com>
4524
4525 * coff-pe-read.c (read_pe_exported_syms): Don't return without
4526 calling do_cleanup.
4527
e83b17ba
HZ
45282013-03-04 Luis Machado <lgustavo@codesourcery.com>
4529
4530 * tracepoint.c (build_traceframe_info): Add code for byte order.
4531
a2d13a0d
KB
45322013-03-02 Kevin Buettner <kevinb@redhat.com>
4533
8dddcae8
KB
4534 * v850-tdep.c: (v850e2_register_name): Revise system register
4535 names to match current V850E2M architecture specifications.
4536 Update register number enum comments too.
a2d13a0d 4537
d79e58d8
JW
45382013-03-01 Jiong Wang <jiwang@tilera.com>
4539 Pedro Alves <palves@redhat.com>
4540
4541 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
4542 to END_ADDR.
4543 (tilegx_skip_prologue): Limit prologue analysis to section end.
4544
c4be5165
JK
45452013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4546
4547 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
4548 use it.
4549
e362b510
PA
45502013-03-01 Pedro Alves <palves@redhat.com>
4551
4552 Use gdb_byte for bytes from the program being debugged.
4553
4554 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
4555 Change type of local 'buf' to gdb_byte.
4556 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
4557 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
4558 * cris-tdep.c (cris_sigcontext_addr)
4559 (cris_sigtramp_frame_unwind_cache): Likewise.
4560 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
4561 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
4562 Likewise.
4563 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
4564 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
4565 (hppa32_hpux_search_dummy_call_sequence)
4566 (hppa_hpux_supply_save_state): Likewise.
4567 * hppa-linux-tdep.c (insns_match_pattern)
4568 (hppa_linux_find_global_pointer): Likewise.
4569 * hppa-tdep.c (hppa_in_function_epilogue_p)
4570 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
4571 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
4572 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
4573 (i386fbsd_collect_uthread): Likewise.
4574 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
4575 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
4576 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
4577 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
4578 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
4579 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
4580 (ia64_libunwind_frame_prev_register)
4581 (ia64_libunwind_sigtramp_frame_this_id)
4582 (ia64_find_global_pointer_from_dynamic_section)
4583 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
4584 (ia64_unwind_pc): Likewise.
4585 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
4586 * m68hc11-tdep.c (m68hc11_push_dummy_call)
4587 (m68hc11_extract_return_value): Likewise.
4588 * m68klinux-nat.c (fetch_register, store_register): Likewise.
4589 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
4590 (mep_get_insn, mep_push_dummy_call): Likewise.
4591 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
4592 (mips_linux_in_dynsym_stub): Likewise.
4593 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
4594 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
4595 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
4596 to gdb_byte.
4597 * remote-mips.c (mips_set_register): Likewise.
4598 * remote-sim.c (gdbsim_fetch_register): Likewise.
4599 * score-tdep.c (score7_fetch_inst): Change type of parameter
4600 'memblock' and local 'buf' to gdb_byte.
4601 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
4602 Change type of local 'buf' to gdb_byte. Adjust.
4603 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
4604 to gdb_byte**.
4605 (score7_analyze_prologue): Change type of 'memblock' and
4606 'memblock_ptr' locals to gdb_byte*.
4607 * sh64-tdep.c (sh64_extract_return_value)
4608 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
4609 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
4610 * solib-pa64.c (pa64_solib_create_inferior_hook)
4611 (pa64_open_symbol_file_object): Remove local 'buf'.
4612 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
4613 (som_open_symbol_file_object): Likewise.
4614 * solib-spu.c (spu_current_sos): Likewise.
4615 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4616 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
4617 (spu_store_registers): Likewise.
4618 * target.c (debug_print_register): Likewise.
4619 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
4620 * xstormy16-tdep.c (xstormy16_store_return_value)
4621 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
4622 (xstormy16_find_jmp_table_entry): Likewise.
4623
75cc61ca 46242013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
4625
4626 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
4627 (tilegx_gdbarch_init): Install it.
4628
ddb08e9c
TT
46292013-02-28 Tom Tromey <tromey@redhat.com>
4630
4631 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
4632 PyLong_Check.
4633
62d7fb51
DE
46342013-02-28 Doug Evans <dje@google.com>
4635
4636 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
4637 * python/python.c (gdbpy_find_pc_line): Ditto.
4638
c4a9e8b4
TT
46392013-02-28 Tom Tromey <tromey@redhat.com>
4640
4641 * contrib/excheck.py: New file.
4642 * contrib/exsummary.py: New file.
4643 * contrib/gcc-with-excheck: New file.
4644
7f6a5dde
TT
46452013-02-28 Tom Tromey <tromey@redhat.com>
4646
4647 * python/python.c (gdbpy_print_stack): Call begin_line and
4648 fprintf_filtered inside TRY_CATCH.
4649
9e974e55
TT
46502013-02-28 Tom Tromey <tromey@redhat.com>
4651
4652 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
4653 inside TRY_CATCH.
4654
dd5fa3e7
TT
46552013-02-28 Tom Tromey <tromey@redhat.com>
4656
4657 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
4658 frame_object_to_frame_info inside TRY_CATCH.
4659
86a3263f
TT
46602013-02-28 Tom Tromey <tromey@redhat.com>
4661
4662 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
4663 TRY_CATCH.
4664
81b52a3a
TT
46652013-02-28 Tom Tromey <tromey@redhat.com>
4666
4667 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
4668
d50a0ce2
CV
46692013-02-27 Corinna Vinschen <vinschen@redhat.com>
4670
4671 * windows-nat.c: Throughout, fix format strings and casts of
4672 printf-like functions to avoid type related warnings on all
4673 platforms.
4674 (handle_output_debug_string): Fetch context information address
4675 from debug string using string_to_core_addr.
4676
e1f58301
JW
46772013-02-27 Jiong Wang <jiwang@tilera.com>
4678
4679 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
4680 * regformats/reg-tilegx32.dat: New.
4681
4fcd89fc
JW
46822013-02-27 Jiong Wang <jiwang@tilera.com>
4683
4684 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
4685
748d24e6
JW
46862013-02-27 Jiong Wang <jiwang@tilera.com>
4687
4688 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
4689
6c8e944d
YQ
46902013-02-27 Yao Qi <yao@codesourcery.com>
4691 Pedro Alves <palves@redhat.com>
4692
4693 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
4694 pc/tp/range/outside, look for the next trace frame instead of
4695 always starting from frame 0.
6c8e944d 4696
acd7db30
AG
46972013-02-26 Anthony Green <green@moxielogic.com>
4698
4699 * configure.tgt: Add support for moxie-*-rtems* target.
4700
025e6dce
PA
47012013-02-25 Pedro Alves <palves@redhat.com>
4702
4703 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
4704 warning text.
4705
ca9c94ef
MR
47062013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
4707
4708 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
4709 if $fp is used as the virtual frame pointer.
4710
24c274a1
AM
47112013-02-23 Alan Modra <amodra@gmail.com>
4712
4713 * elfread.c (elf_symtab_read): Do not use udata.p here to find
4714 symbol size.
4715 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
4716 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
4717 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
4718 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
4719
bfada189
JK
47202013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4721
4722 Code cleanup.
4723 * elfread.c (build_id_bfd_get): Make the return type const.
4724 (build_id_verify): Make the check parameter const.
4725 (build_id_to_debug_filename): Make the build_id parameter and variable
4726 data const.
4727 (find_separate_debug_file_by_buildid): Make the variable build_id const.
4728
c0355132
AM
47292013-02-21 Alan Modra <amodra@gmail.com>
4730
4731 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
4732
9f44fbc0
SCR
47332013-02-20 Siva Chandra Reddy <sivachandra@google.com>
4734
4735 Add a new method 'disassemble' to gdb.Architecture class.
4736 * python/py-arch.c (archpy_disassmble): Implementation of the
4737 new method gdb.Architecture.disassemble.
4738 (arch_object_methods): Add entry for the new method.
4739
b74ea3eb
JW
47402013-02-20 Jiong Wang <jiwang@tilera.com>
4741
4742 * MAINTAINERS (Write After Approval): Add myself to the list.
4743
61a672f1
PA
47442013-02-19 Pedro Alves <palves@redhat.com>
4745
4746 Garbage collect 'struct monitor_ops'::load_routine.
4747
4748 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
4749 * monitor.c (monitor_load): No longer call
4750 current_monitor->load_routine.
4751 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
4752 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
4753 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
4754
40e397df
PA
47552013-02-19 Pedro Alves <palves@redhat.com>
4756
4757 PR gdb/15161
4758
4759 Harmonize with generic_load.
4760
4761 * monitor.c: Include "readline/readline.h".
4762 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
4763 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
4764 long/strtol for the 'load_offset' local. Error out if no argument
4765 is given or if too many arguments are given. Tilde expand the
4766 passed in file name.
4767
f698ca8e
KT
47682013-02-19 Kai Tietz <ktietz@redhat.com>
4769
4770 PR gdb/15161
4771 * symfile.c (load_section_data): Change type of load_offset
4772 to CORE_ADDR.
4773 (generic_load): User strtoulst instead of strtoul for conversion
4774 of load_offset.
4775
3361b059
WL
47762013-02-19 Jiong Wang <jiwang@tilera.com>
4777
4778 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
4779 for return address, "lr" register, saved on stack.
4780 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
4781 after we invoke tilegx_analyze_prologue.
4782
3e9d5130
WL
47832013-02-19 Jiong Wang <jiwang@tilera.com>
4784
bb1bcd86
WL
4785 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
4786
3361b059 47872013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 4788
b74ea3eb 4789 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 4790
4aaf2503
WL
47912013-02-19 Jiong Wang <jiwang@tilera.com>
4792
b74ea3eb 4793 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
4794 (tilegx_write_pc): New function.
4795 (tilegx_cannot_reference_register): Return zero if REGNO
4796 is TILEGX_FAULTNUM_REGNUM.
4797 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
4798 (tilegx_register_name): Add handling of "faultnum" register.
4799 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
4800 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
4801 handling of TILEGX_FAULTNUM_REGNUM.
4802 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
4803
bc23a956
WL
48042013-02-19 Jiong Wang <jiwang@tilera.com>
4805
4806 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 4807 should be aligned to 64bit.
bc23a956 4808
42f45f1a
KT
48092013-02-19 Kai Tietz <ktietz@redhat.com>
4810
4811 * windows-nat.c (windows_xfer_memory): Fix debug-output
4812 for LLP64.
4813
6ce4c112
LL
48142013-02-19 Lei Liu <lei.liu2@windriver.com>
4815
4816 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
4817 Don't check DSP register number if HAVE_DSP is not set.
4818
30e8ee25
AM
48192013-02-19 Alan Modra <amodra@gmail.com>
4820
4821 * elfread.c (struct build_id): Delete. Use struct elf_build_id
4822 throughout file instead.
4823 (build_id_bfd_get): Update to use new elf_tdata build_id field.
4824 Don't xmalloc return value.
4825 (build_id_verify): Similarly. Don't xfree.
4826 (build_id_to_debug_filename): Update.
4827 (find_separate_debug_file_by_buildid): Update, don't xfree.
4828
4c9ad8c2
TT
48292013-02-18 Tom Tromey <tromey@redhat.com>
4830
4831 PR gdb/15102:
4832 * dwarf2read.c (read_subrange_type): Use result of
4833 'check_typedef'.
4834
983dc440
YQ
48352013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
4836
4837 * frame.c: Remove one extra white space after #include
4838 directive.
4839
7fb2b84a
JK
48402013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4841
4842 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
4843
edceb2a9
JK
48442013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4845
4846 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
4847 and dir commands into an if block.
4848
e81b7af8
TT
48492013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
4850
4851 * python/py-breakpoint (struct pybp_code): Use int instead of
4852 enum type_code.
4853
f5911ea1
HAQ
48542013-02-15 Pedro Alves <pedro@codesourcery.com>
4855 Hafiz Abid Qadeer <abidh@codesourcery.com>
4856
4857 * NEWS: Mention new field "trace-file".
4858 * tracepoint.c (trace_status_mi): Output "trace-file" field.
4859 (tfile_open): Record the trace file's filename in the trace
4860 status.
4861 (tfile_files_info): Mention the name of the trace file.
4862 Check the "filename" field explicitely.
4863 (trace_status_command): Explicitely check "filename" field.
4864 (trace_find_command): Ditto.
4865 (trace_find_pc_command): Ditto.
4866 (trace_find_tracepoint_command): Ditto.
4867 (trace_find_line_command): Ditto.
4868 (trace_find_range_command): Ditto.
4869 (trace_find_outside_command): Ditto.
4870 * tracepoint.h (struct trace_status) <from_file>: Rename it
4871 to "filename" and make it hold the trace file's filename
4872 instead of a boolean.
4873 * remote.c (remote_get_trace_status): Initialize "filename"
4874 field with NULL instead of 0.
4875
796cb314
YQ
48762013-02-15 Yao Qi <yao@codesourcery.com>
4877
4878 * remote.c: Fix a typo.
4879
42e79b1d
PM
48802013-02-14 Pierre Muller <muller@sourceware.org>
4881
4882 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
4883
baea0dae
PA
48842013-02-14 Pedro Alves <palves@redhat.com>
4885
4886 * utils.c (savestring): Don't #undef it. Move function to
4887 common/common-utils.c.
4888 * common/common-utils.c: Include gdb_string.h.
4889 (savestring): Move here from utils.c.
4890 * common/common-utils.h (savestring): Declare.
4891
57c3b6ed
PA
48922013-02-14 Pedro Alves <palves@redhat.com>
4893
4894 * utils.c (savestring): Rename parameter 'size' to 'len'.
4895
d6c44983
YZ
48962013-02-14 Pedro Alves <palves@redhat.com>
4897 Yufeng Zhang <yufeng.zhang@arm.com>
4898
4899 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
4900 (aarch64_inferior_data, struct aarch64_inferior_data):
4901 Delete.
4902 (struct aarch64_process_info): New.
4903 (aarch64_process_list): New global.
4904 (aarch64_find_process_pid, aarch64_add_process)
4905 (aarch64_process_info_get): New functions.
4906 (aarch64_inferior_data_get): Delete.
4907 (aarch64_process_info_get): New function.
4908 (aarch64_forget_process): New function.
4909 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
4910 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
4911 aarch64_get_debug_reg_state.
4912 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
4913 instead of linux_nat_iterate_watchpoint_lwps.
4914 (aarch64_linux_new_fork): New function.
4915 (aarch64_linux_child_post_startup_inferior): Use
4916 aarch64_forget_process instead of aarch64_init_debug_reg_state.
4917 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
4918 (aarch64_linux_remove_hw_breakpoint)
4919 (aarch64_handle_aligned_watchpoint)
4920 (aarch64_handle_unaligned_watchpoint)
4921 (aarch64_linux_insert_watchpoint)
4922 (aarch64_linux_remove_watchpoint)
4923 (aarch64_linux_stopped_data_address): Adjust to pass the current
4924 process id to aarch64_debug_reg_state.
4925 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
4926 linux_nat_new_fork hook, and aarch64_forget_process as
4927 linux_nat_forget_process hook; remove the call to
4928 register_inferior_data_with_cleanup.
4929
4819b3f8
PA
49302013-02-14 Pedro Alves <palves@redhat.com>
4931
4932 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
4933 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
4934 lval_memory.
4935
1773c82c
HAQ
49362013-02-14 Pedro Alves <pedro@codesourcery.com>
4937 Hafiz Abid Qadeer <abidh@codesourcery.com>
4938
4939 * tracepoint.h (validate_trace_state_variable_name): Declare.
4940 * tracepoint.c (validate_trace_state_variable_name): New.
4941 (trace_variable_command): Parse the trace state variable's name
4942 without using parse_expression. Do several validations.
4943 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
4944 trace state variable's name with parse_expression. Validate it.
4945
53778a97
YQ
49462013-02-14 Yao Qi <yao@codesourcery.com>
4947
4948 * infcmd.c (breakpoint_proceeded): Remove it.
4949
7b3ae3a6
YQ
49502013-02-14 Yao Qi <yao@codesourcery.com>
4951
4952 * tracepoint.c (end_actions_pseudocommand): Make it static.
4953 (while_stepping_pseudocommand): Likewise.
4954 * tracepoint.h (end_actions_pseudocommand): Remove the
4955 declaration.
4956 (while_stepping_pseudocommand): Likewise.
4957
64580925
YQ
49582013-02-14 Yao Qi <yao@codesourcery.com>
4959
4960 * cli/cli-decode.c (help_cmd): Remove the declaration of
4961 "cmdlist".
4962 (help_all): Likewise.
4963
26cb8b7c
PA
49642013-02-13 Pedro Alves <palves@redhat.com>
4965
4966 * amd64-linux-nat.c (update_debug_registers_callback):
4967 Update comment.
4968 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
4969 iterate_over_lwps.
4970 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
4971 i386_debug_reg_state.
4972 (amd64_linux_new_fork): New function.
4973 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
4974 linux_nat_new_fork hook, and i386_forget_process as
4975 linux_nat_forget_process hook.
4976 * i386-linux-nat.c (update_debug_registers_callback):
4977 Update comment.
a8256ea1 4978 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
4979 iterate_over_lwps.
4980 (i386_linux_prepare_to_resume): Pass the lwp's pid to
4981 i386_debug_reg_state.
4982 (i386_linux_new_fork): New function.
4983 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
4984 linux_nat_new_fork hook, and i386_forget_process as
4985 linux_nat_forget_process hook.
4986 * i386-nat.c (i386_init_dregs): Delete.
4987 (i386_inferior_data, struct i386_inferior_data):
4988 Delete.
4989 (struct i386_process_info): New.
4990 (i386_process_list): New global.
4991 (i386_find_process_pid, i386_add_process, i386_process_info_get):
4992 New functions.
4993 (i386_inferior_data_get): Delete.
4994 (i386_process_info_get): New function.
4995 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
4996 (i386_forget_process): New function.
4997 (i386_cleanup_dregs): Rewrite.
4998 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
4999 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
5000 (i386_stopped_data_address, i386_insert_hw_breakpoint)
5001 (i386_remove_hw_breakpoint): Adjust to pass the current process id
5002 to i386_debug_reg_state.
5003 (i386_use_watchpoints): Don't register inferior data.
5004 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
5005 adjust comment.
5006 (i386_forget_process): Declare.
5007 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
5008 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
5009 New static globals.
5010 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
5011 (add_initial_lwp): New, factored out from ...
5012 (add_lwp): ... this. Don't check the number of lwps before
5013 calling linux_nat_new_thread.
5014 (linux_nat_iterate_watchpoint_lwps): Delete.
5015 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
5016 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
5017 forks and vforks.
5018 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
5019 initial lwp.
5020 (linux_nat_kill, linux_nat_mourn_inferior): Call
5021 linux_nat_forget_process.
5022 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5023 (linux_nat_forget_process): New functions.
5024 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
5025 type.
5026 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
5027 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
5028 types.
5029 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5030 (linux_nat_forget_process): New declarations.
5031
5032 * amd64fbsd-nat.c (super_mourn_inferior): New global.
5033 (amd64fbsd_mourn_inferior): New function.
5034 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
5035 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
5036
5befea72
MS
50372013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5038
55015247
YQ
5039 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5040 Adding _().
5befea72 5041
1d3ffd6b
MS
50422013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5043
5044 * aarch64-linux-nat.c (debug_reg_change_callback)
5045 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
5046 %s and phex().
5047
6eb04473
MS
50482013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5049
5050 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
5051 with LONGEST.
5052
a016fc87
HAQ
50532013-02-13 Pedro Alves <palves@redhat.com>
5054 Hafiz Abid Qadeer <abidh@codesourcery.com>
5055
5056 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
5057
e234dfaf
TT
50582013-02-12 Tom Tromey <tromey@redhat.com>
5059
5060 PR symtab/11464:
5061 * c-exp.y (lex_one_token): Initialize other fields of yylval on
5062 NAME return.
5063 (classify_inner_name): Remove 'first_name' argument, add
5064 'context'. Remove unused variable.
5065 (yylex): Explicitly maintain the context type. Exit loop earlier
5066 if NAME result is seen.
5067
0b1afbb3
PA
50682013-02-12 Pedro Alves <palves@redhat.com>
5069
5070 * amd64-darwin-tdep.c: Add (C) after Copyright.
5071 * cli/cli-cmds.h: Ditto.
5072 * cli/cli-decode.c: Ditto.
5073 * cli/cli-decode.h: Ditto.
5074 * cli/cli-dump.c: Ditto.
5075 * cli/cli-dump.h: Ditto.
5076 * cli/cli-interp.c: Ditto.
5077 * cli/cli-logging.c: Ditto.
5078 * cli/cli-script.c: Ditto.
5079 * cli/cli-script.h: Ditto.
5080 * cli/cli-setshow.c: Ditto.
5081 * cli/cli-setshow.h: Ditto.
5082 * cli/cli-utils.c: Ditto.
5083 * cli/cli-utils.h: Ditto.
5084 * config/alpha/nm-osf3.h: Ditto.
5085 * config/djgpp/djconfig.sh: Ditto.
5086 * config/i386/nm-fbsd.h: Ditto.
5087 * config/i386/nm-i386gnu.h: Ditto.
5088 * config/nm-linux.h: Ditto.
5089 * config/nm-nto.h: Ditto.
5090 * config/rs6000/nm-rs6000.h: Ditto.
5091 * config/sparc/nm-sol2.h: Ditto.
5092 * darwin-nat-info.c: Ditto.
5093 * dfp.c: Ditto.
5094 * dfp.h: Ditto.
5095 * gdb-demangle.h: Ditto.
5096 * i386-darwin-nat.c: Ditto.
5097 * i386-darwin-tdep.c: Ditto.
5098 * linux-fork.h: Ditto.
5099 * m32c-tdep.c: Ditto.
5100 * microblaze-linux-tdep.c: Ditto.
5101 * microblaze-rom.c: Ditto.
5102 * microblaze-tdep.c: Ditto.
5103 * microblaze-tdep.h: Ditto.
5104 * mips-linux-tdep.h: Ditto.
5105 * ppc-ravenscar-thread.c: Ditto.
5106 * ppc-ravenscar-thread.h: Ditto.
5107 * prologue-value.c: Ditto.
5108 * prologue-value.h: Ditto.
5109 * ravenscar-thread.c: Ditto.
5110 * ravenscar-thread.h: Ditto.
5111 * sparc-ravenscar-thread.c: Ditto.
5112 * sparc-ravenscar-thread.h: Ditto.
5113 * tilegx-linux-tdep.c: Ditto.
5114 * unwind_stop_reasons.def: Ditto.
5115 * windows-nat.h: Ditto.
5116 * xtensa-linux-tdep.c: Ditto.
5117 * xtensa-xtregs.c: Ditto.
5118 * regformats/regdat.sh: Ditto.
5119 * regformats/regdef.h: Ditto.
5120
6c01dd94
PA
51212013-02-12 Pedro Alves <palves@redhat.com>
5122
5123 * break-catch-sig.c: Update copyright years.
5124
b65a2bd9
SCR
51252013-02-11 Siva Chandra Reddy <sivachandra@google.com>
5126
5127 Add support for a destructor for ui_out data and use it to
5128 provide a ui_out destructor.
5129 * ui-out.h: Declare the new ui_out destructor.
5130 (ui_out_impl): Add a field for data destructor in ui_out_impl.
5131 * ui-out.c (default_data_destroy): Add a default data destructor
5132 which does nothing.
5133 (default_ui_out_impl): Set the new data_destroy field to
5134 default_data_destroy
5135 (uo_data_destroy): Local function which invokes the data
5136 destructor if present.
5137 (clear_table): Local function which clears the table data of a
5138 ui_out object.
5139 (ui_out_destroy): Public function which frees a ui_out object.
5140 (ui_out_table_end): Use the new clear_table function.
5141 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
5142 NULL.
5143 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
5144 to NULL.
5145
c2792f5a
DE
51462013-02-11 Doug Evans <dje@google.com>
5147
5148 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
5149 (printf_decfloat): New function. Broken out from ui_printf.
5150 Remove unnecessary code to shift the entire format string down.
5151 (printf_pointer): New function.
5152 (ui_printf): Code to print C strings, wide C strings, decfloats,
5153 and pointers moved to separate functions.
5154
d9e98382
SDJ
51552013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
5156
5157 * valops.c (value_assign): Handling bitfield offset in
5158 `lval_internalvar_component' case.
5159
4ff3ce77
DE
51602013-02-08 Doug Evans <dje@google.com>
5161
5162 * common/format.c (parse_format_string): Fix whitespace.
5163
901900c4
MGD
51642013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
5165
5166 * stack.c (return_command): Work around uninitialized variable
5167 warning.
5168
b5dbc8d4
YZ
51692013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
5170
5171 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
5172 number of the registers from 36 to 34.
5173
51d66578
MS
51742013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
5175
5176 * NEWS: Mention new AArch64 native and target support.
5177
176b1c95
MS
51782013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
5179
5180 * MAINTAINERS (Write After Approval): Add myself.
5181
9d19df75
MS
51822013-02-08 Jim MacArthur <jim.macarthur@arm.com>
5183 Marcus Shawcroft <marcus.shawcroft@arm.com>
5184 Nigel Stephens <nigel.stephens@arm.com>
5185 Yufeng Zhang <yufeng.zhang@arm.com>
5186
5187 * aarch64-linux-nat.c: New file.
5188 * config/aarch64/linux.mh: New file.
5189 * configure.host: Add AArch64.
5190 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
5191
7e1e0340
DE
51922013-02-07 Doug Evans <dje@google.com>
5193
5194 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
5195 disassemble command.
5196
45e25a36
MS
51972013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
5198
5199 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
5200 set_gdbarch_fetch_tls_load_module_address.
5201
bbfdfe1c
DM
52022013-02-06 David S. Miller <davem@davemloft.net>
5203
5204 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
5205 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5206 * value.c (struct_return_convention): New function.
5207 (using_struct_return): Implement in terms of struct_return_convention.
5208 * value.h (struct_return_convention): Declare.
5209 * stack.c (return_command): Allow successful overriding of the return
5210 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5211
bc9abe4a
TT
52122013-02-06 Tom Tromey <tromey@redhat.com>
5213
5214 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
5215 outside of TRY_CATCH.
5216
134a2066
YQ
52172013-02-06 Yao Qi <yao@codesourcery.com>
5218
5219 * mi/mi-interp.c: Include "tracepoint.h".
5220 (mi_tsv_modified): Declare.
5221 (mi_tsv_created, mi_tsv_deleted): Update declaration.
5222 (mi_interpreter_init): Call observer_attach_tsv_modified.
5223 (mi_tsv_modified): New.
5224 (mi_tsv_created, mi_tsv_deleted): Update.
5225 * tracepoint.c (trace_variable_command): Call
5226 observer_notify_tsv_modified if the initial value of tsv is
5227 changed.
5228 (delete_trace_state_variable): Call
5229 observer_notify_tsv_deleted earlier.
5230 (trace_variable_command): Caller update.
5231 (create_tsv_from_upload): Likewise.
5232 * observer.sh: Declare "struct trace_state_variable".
5233
5234 * NEWS: Mention the new MI notification "=tsv-modified".
5235
59be2b6a
DE
52362013-02-05 Doug Evans <dje@google.com>
5237
5238 * completer.c (location_completer): Fix typo in comment.
5239
d30113d4
JK
52402013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5241
5242 * breakpoint.c (add_location_to_breakpoint): Insert the location with
5243 ADDRESS sorted.
5244
14ac654f
MS
52452013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
5246
5247 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
5248 Refactor if statement to avoid trailing || operator.
5249
543bf33d
AT
52502013-02-05 Andreas Tobler <andreast@fgznet.ch>
5251
5252 * NEWS: Add PowerPC FreeBSD as a new native configuration.
5253
dc18f110
AT
52542013-02-04 Andreas Tobler <andreast@fgznet.ch>
5255
5256 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
5257 * configure.host: Add powerpc*-*-freebsd* target.
5258 * configure.tgt: Add target info for powerpc*-*-freebsd*.
5259 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
5260 * config/powerpc/fbsd.mh: New file.
5261
b3ac9c77
SDJ
52622013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
5263 Denys Vlasenko <dvlasenk@redhat.com>
5264 Pedro Alves <palves@redhat.com>
5265
5266 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
5267 (struct elf_internal_linux_prpsinfo): Forward declare.
5268 * gdbarch.h, gdbarch.c: Regenerate.
5269 * linux-tdep.c: Include `cli/cli-utils.h'.
5270 (linux_fill_prpsinfo): New function.
5271 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
5272 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
5273 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
5274 depending on gdbarch pointer bitness.
5275 * ppc-linux-tdep.c: Include elf-bfd.h.
5276 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
5277 on 32-bit.
5278
176eb98c
MS
52792013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5280 Marcus Shawcroft <marcus.shawcroft@arm.com>
5281 Nigel Stephens <nigel.stephens@arm.com>
5282 Yufeng Zhang <yufeng.zhang@arm.com>
5283
5284 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
5285
cf0dbd6f
MS
52862013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5287 Marcus Shawcroft <marcus.shawcroft@arm.com>
5288 Nigel Stephens <nigel.stephens@arm.com>
5289 Yufeng Zhang <yufeng.zhang@arm.com>
5290
5291 * aarch64-newlib-tdep.c: New file.
5292 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
5293 aarch64*-*-elf.
5294 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
5295 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
5296 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
5297 * osabi.c (gdb_osabi_names): Add "Newlib".
5298
1ae3db19
MS
52992013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5300 Marcus Shawcroft <marcus.shawcroft@arm.com>
5301 Nigel Stephens <nigel.stephens@arm.com>
5302 Yufeng Zhang <yufeng.zhang@arm.com>
5303
5304 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
5305 (ALLDEPFILES): Add aarch64-linux-tdep.c.
5306 * aarch64-linux-tdep.c: New file.
5307 * aarch64-linux-tdep.h: New file.
5308 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
5309 * configure.tgt: Add aarch64-none-linux-gnu.
5310
07b287a0
MS
53112013-02-04 Jim MacArthur <jim.macarthur@arm.com>
5312 Marcus Shawcroft <marcus.shawcroft@arm.com>
5313 Nigel Stephens <nigel.stephens@arm.com>
5314 Yufeng Zhang <yufeng.zhang@arm.com>
5315
5316 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
5317 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
5318 (ALLDEPFILES): Add aarch64-tdep.c.
5319 * aarch64-tdep.c: New file.
5320 * aarch64-tdep.h: New file.
5321 * configure.tgt: Add AArch64.
5322 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
5323 (aarch64-expedite): New definition.
5324 * features/aarch64-core.xml: New file.
5325 * features/aarch64-fpu.xml: New file.
5326 * features/aarch64-without-fpu.c: New file (generated).
5327 * features/aarch64-without-fpu.xml: New file.
5328 * features/aarch64.c: New file (generated).
5329 * features/aarch64.xml: New file.
5330 * regformats/aarch64-without-fpu.dat: New file (generated).
5331 * regformats/aarch64.dat: New file (generated).
5332
0f1b18ab
JK
53332013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5334
5335 * contrib/expect-read1.c: New file.
5336 * contrib/expect-read1.sh: New file.
5337
233d95b5
JK
53382013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5339
5340 * dwarf2read.c (file_file_name): New function with code from
5341 file_full_name.
5342 (file_full_name): Move most of the code to file_file_name.
5343 (macro_start_file): Rename variable full_name to file_name and use
5344 file_file_name for it. Add comp_dir parameter to new_macro_table.
5345 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
5346 macro_source_file->filename access by macro_source_fullname call.
5347 * macroscope.c (_initialize_macroscope): Update the new_macro_table
5348 caller.
5349 * macrotab.c (struct macro_table): New field comp_dir.
5350 (macro_include): New variables link_fullname and source_fullname.
5351 Replace any macro_source_file->filename access by macro_source_fullname
5352 call.
5353 (macro_lookup_inclusion): Remove the partial filenames checking code.
5354 (check_for_redefinition): New variables source_fullname and
5355 found_key_fullname. Replace any macro_source_file->filename access by
5356 macro_source_fullname call.
5357 (macro_undef): New variables source_fullname and key_fullname. Replace
5358 any macro_source_file->filename access by macro_source_fullname call.
5359 (macro_lookup_definition): New variables retval and source_fullname.
5360 Replace any macro_source_file->filename access by macro_source_fullname
5361 call.
5362 (foreach_macro): New variable key_fullname. Replace any
5363 macro_source_file->filename access by macro_source_fullname call.
5364 (foreach_macro_in_scope): New variable datum_fullname. Replace any
5365 macro_source_file->filename access by macro_source_fullname call.
5366 (new_macro_table): Add parameter comp_dir. Initialize T with it.
5367 (macro_source_fullname): New function.
5368 * macrotab.h (struct macro_source_file): Extent the filename field
5369 comment.
5370 (new_macro_table): New parameter comp_dir, add a comment for it.
5371 (macro_source_fullname): new declaration.
5372
da235a7c
JK
53732013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5374
5375 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
5376 this_real_name to outer block. Use it also for
5377 compare_filenames_for_search.
5378 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
5379 with dw2_get_real_path for file_matcher, considering also
5380 BASENAMES_MAY_DIFFER.
5381 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
5382
fbd9ab74
JK
53832013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5384
5385 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
5386 to the file_matcher parameter. Pass 0 to it.
5387 (dwarf2_create_include_psymtab): Copy also DIRNAME.
5388 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
5389 NULL psymtab_to_fullname result.
5390 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
5391 an expected filename instead.
5392 (expand_symtabs_matching_via_partial): Add basenames parameter to the
5393 file_matcher parameter. Call also psymtab_to_fullname, after newly
5394 considering BASENAMES_MAY_DIFFER.
5395 * source.c (rewrite_source_path): Remove static.
5396 * source.h (rewrite_source_path): New declaration.
5397 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
5398 the expand_symtabs_matching field. Comment it.
5399 * symtab.c (file_matches): New function comment. Add parameter
5400 basenames, implement it.
5401 (search_symbols_file_matches): Add basenames parameter. Update the
5402 file_matches caller.
5403 (search_symbols): Match FILES also against symtab_to_fullname.
5404 Optimize it for BASENAMES_MAY_DIFFER.
5405
56d397a3
JK
54062013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5407
5408 * source.c (print_source_lines_base): Print for TUI also "fullname".
5409 * tui/tui-data.c (init_content_element): Change tui_locator_element
5410 field to full_name.
5411 * tui/tui-data.h (struct tui_locator_element): Likewise.
5412 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
5413 tui_update_locator_filename calls to tui_update_locator_fullname.
5414 Replace symtab->filename refererence by symtab_to_fullname call.
5415 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
5416 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
5417 field to full_name. Replace symtab->filename refererence by
5418 symtab_to_fullname call.
5419 (tui_show_symtab_source): Rename parameter to fullname. Change
5420 tui_locator_element field to full_name.
5421 * tui/tui-stack.c: Include source.h.
5422 (tui_set_locator_filename): Rename the declaration to ...
5423 (tui_set_locator_fullname): ... here. Rename its parameter to
5424 fullname, updates its comment.
5425 (tui_set_locator_info): Rename its parameter to fullname.
5426 (tui_set_locator_filename): Rename the definition to ...
5427 (tui_set_locator_fullname): ... here. Rename its parameter to
5428 fullname, updates its comment. Change tui_locator_element field to
5429 full_name.
5430 (tui_set_locator_info): Rename its parameter to fullname.
5431 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
5432 (tui_update_locator_filename): Rename to ...
5433 (tui_update_locator_fullname): ... here. Rename callee to
5434 tui_set_locator_fullname.
5435 (tui_show_frame_info): Replace symtab->filename refererence by
5436 symtab_to_fullname call.
5437 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
5438 (tui_update_locator_fullname): ... here.
5439 * tui/tui-winsource.c (tui_display_main): Rename the callee to
5440 tui_update_locator_fullname. Replace symtab->filename refererence by
5441 symtab_to_fullname call.
5442 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
5443 Rename the callee to tui_update_locator_fullname.
5444 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
5445
05cba821
JK
54462013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5447
5448 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
5449 by symtab_to_filename_for_display calls.
5450 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
5451 (clear_command): New variable sal_fullname, initialize it. Replace
5452 compare_filenames_for_search by filename_cmp with sal_fullname.
5453 (say_where, update_static_tracepoint): Replace symtab->filename
5454 refererences by symtab_to_filename_for_display calls.
5455 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
5456 Likewise.
5457 * dwarf2read.c: Include source.h.
5458 (fixup_go_packaging): Replace symtab->filename refererences by
5459 symtab_to_filename_for_display calls.
5460 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
5461 Replace symtab->filename refererences by symtab_to_filename_for_display
5462 calls.
5463 (create_sals_line_offset, convert_linespec_to_sals): New variable
5464 fullname, initialize it, replace symtab->filename reference by the
5465 variable.
5466 * linux-fork.c: Include source.h.
5467 (info_checkpoints_command): Replace symtab->filename refererences by
5468 symtab_to_filename_for_display calls.
5469 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
5470 by symtab_to_filename_for_display calls.
5471 * mdebugread.c: Include source.h.
5472 (psymtab_to_symtab_1): Replace symtab->filename refererences by
5473 symtab_to_filename_for_display calls.
5474 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
5475 (mi_cmd_file_list_exec_source_files): Likewise.
5476 * printcmd.c: Include source.h.
5477 (build_address_symbolic): Replace symtab->filename refererences by
5478 symtab_to_filename_for_display calls.
5479 * psymtab.c (partial_map_symtabs_matching_filename)
5480 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
5481 with psymtab_to_fullname.
5482 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
5483 by symtab_to_filename_for_display calls.
5484 (stpy_get_filename): New variable filename, initialize it, use instead
5485 of symtab->filename refererences.
5486 (salpy_str): Make variable filename const char *. Replace
5487 symtab->filename refererences by symtab_to_filename_for_display calls.
5488 * skip.c: Include source.h and filenames.h.
5489 (skip_file_command): Remove const from the symtab variable. Replace
5490 symtab->filename refererences by symtab_to_fullname call.
5491 (function_name_is_marked_for_skip): New variables searched_for_fullname
5492 and fullname. Use them to search also with symtab's fullname.
5493 * source.c (find_source_lines): Replace symtab->filename refererences
5494 by symtab_to_filename_for_display calls.
5495 (print_source_lines_base): New variable filename, use it instead of
5496 symtab->filename. Replace symtab->filename refererences by
5497 symtab_to_filename_for_display calls.
5498 (line_info, forward_search_command): Replace symtab->filename
5499 refererences by symtab_to_filename_for_display calls.
5500 (reverse_search_command): Replace symtab->filename refererences by
5501 symtab_to_filename_for_display calls. New variable filename for it.
5502 * stack.c (frame_info): Likewise.
5503 * symmisc.c: Include source.h.
5504 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
5505 (maintenance_info_symtabs): Replace symtab->filename refererences by
5506 symtab_to_filename_for_display calls.
5507 * symtab.c (iterate_over_some_symtabs): Call
5508 compare_filenames_for_search also with symtab_to_fullname.
5509 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
5510 symtab->filename refererences by symtab_to_filename_for_display calls.
5511 (find_line_symtab): Replace symtab->filename refererences by
5512 symtab_to_filename_for_display calls.
5513 (file_matches): Replace filename_cmp by compare_filenames_for_search.
5514 (print_symbol_info): Make the last parameter const char *. New
5515 variable s_filename. Use it in the function.
5516 (symtab_symbol_info): Make the last_filename variable const char *.
5517 Replace symtab->filename refererences by symtab_to_filename_for_display
5518 calls.
5519 (rbreak_command): New variable fullname. Use it. Replace
5520 symtab->filename refererence by symtab_to_filename_for_display call.
5521 * tracepoint.c (set_traceframe_context, trace_find_line_command)
5522 (print_one_static_tracepoint_marker): Replace symtab->filename
5523 refererences by symtab_to_filename_for_display calls.
5524 * tui/tui-source.c (tui_set_source_content): New variables filename and
5525 s_filename. Replace symtab->filename refererences by this variable.
5526 Replace other symtab->filename refererences by
5527 symtab_to_filename_for_display calls.
5528
1b56eb55
JK
55292013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
5530 Jan Kratochvil <jan.kratochvil@redhat.com>
5531
5532 Add a new variable that controls a way in which filenames are
5533 displayed.
5534 * NEWS (set filename-display): New entry.
5535 * source.c (filename_display_basename, filename_display_relative)
5536 (filename_display_absolute, filename_display_kind_names)
5537 (filename_display_string, show_filename_display_string)
5538 (symtab_to_filename_for_display): New.
5539 (_initialize_source): Added initialization of 'filename-display'
5540 variable.
5541 * source.h (symtab_to_filename_for_display): Added declaration.
5542 * stack.c (print_frame): Added new variable and calling of a new
5543 function and condition with this variable. Changed third argument of
5544 calling of a function.
5545
aa079c93
JK
55462013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5547
5548 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
5549 Rename field reference filename to fullname.
5550 * tui/tui-data.h (struct tui_source_info): Rename field filename to
5551 fullname. New comment for it.
5552 * tui/tui-source.c (tui_set_source_content): Rename field reference
5553 filename to fullname. Initialize field by symtab_to_fullname now.
5554 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
5555 reference filename to fullname. Use symtab_to_fullname during
5556 comparison.
5557
652a8996
JK
55582013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5559
5560 Code cleanup.
5561 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
5562 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
5563 filename to fullname. Rename variable this_name to this_fullname.
5564 Lowercase FILENAME_CMP call.
5565 (dw2_find_symbol_file): New comment for the returned string.
5566 (dwarf2_gdb_index_functions): Rename the function to
5567 dw2_expand_symtabs_with_fullname.
5568 * psymtab.c (read_psymtabs_with_filename): Rename to ...
5569 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
5570 fullname.
5571 (psym_functions): Rename the function to read_psymtabs_with_fullname.
5572 * symfile.h (struct quick_symbol_functions): Rename field
5573 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
5574 parameter filename to fullname. Document returned string meaning for
5575 find_symbol_file.
5576 * symtab.c (find_line_symtab): Rename the called function to
5577 expand_symtabs_with_fullname.
5578
af529f8f
JK
55792013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5580
5581 Code cleanup.
5582 * breakpoint.c (clear_command): Remove variable is_abs, unify the
5583 call of filename_cmp with compare_filenames_for_search.
5584 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
5585 is_abs, unify the call of FILENAME_CMP with
5586 compare_filenames_for_search. New gdb_asserts for real_path and name.
5587 Unify the call of compare_filenames_for_search with FILENAME_CMP.
5588 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
5589 * symfile.h (struct quick_symbol_functions): Extend the comment for
5590 map_symtabs_matching_filename.
5591 * symtab.c (compare_filenames_for_search): Remove the function comment
5592 relative path requirement. Handle absolute filenames, with a comment.
5593 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
5594 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
5595 real_path and name. Unify the call of compare_filenames_for_search
5596 with FILENAME_CMP.
5597 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
5598
2f202fde
JK
55992013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5600
5601 Code cleanup.
5602 * breakpoint.c (print_breakpoint_location): Replace bp_location field
5603 source_file references by symtab field references. Remove variables
5604 sal and fullname.
5605 (momentary_breakpoint_from_master, add_location_to_breakpoint):
5606 (clear_command, say_where): Replace bp_location field source_file
5607 references by symtab field references.
5608 (bp_location_dtor): Remove the source_file reference.
5609 (update_static_tracepoint): Replace bp_location field source_file
5610 references by symtab field references.
5611 (breakpoint_free_objfile): New function.
5612 * breakpoint.h (struct bp_location): Extend the comment for line_number.
5613 Replace the field source_file by field symtab, extend its comment.
5614 (breakpoint_free_objfile): New declaration.
5615 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
5616 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
5617 field source_file references by symtab field references.
5618
f5b95b50
JK
56192013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5620
5621 Replace xfullpath calls by gdb_realpath calls.
5622 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
5623 function comment.
5624 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
5625 Remove it from the iterate_over_some_symtabs call.
5626 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
5627 Remove it from the dw2_map_expand_apply calls, remove a block handling
5628 it.
5629 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
5630 Remove it from the iterate_over_some_symtabs call.
5631 (partial_map_symtabs_matching_filename): Remove parameter full_path.
5632 Remove it from the partial_map_expand_apply calls, remove a block
5633 handling it. Drop gdb_realpath call and cleanups from the real_path
5634 handling.
5635 * source.c (openp): Drop the comment part about xfullpath. Replace
5636 xfullpath calls by gdb_realpath calls.
5637 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
5638 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
5639 from method map_symtabs_matching_filename and its comment.
5640 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
5641 gdb_realpath call.
5642 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
5643 remove it also from the function comment, remove a block handling it.
5644 Drop gdb_realpath call and cleanups from the real_path handling.
5645 (iterate_over_symtabs): Drop variable full_path and its use.
5646 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
5647 * utils.c (xfullpath): Remove.
5648 * utils.h (xfullpath): Remove.
5649
d78489bf
AT
56502013-02-01 Andreas Tobler <andreast@fgznet.ch>
5651
5652 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
5653 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
5654 (ALLDEPFILES): Add ppc64-tdep.c.
5655 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
5656 ppc64-tdep.o to gdb_target_obs.
5657 * ppc64-tdep.h: New file.
5658 * ppc64-tdep.c: New file.
5659 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
5660 ppc-linux-tdep.c to here.
5661 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
5662 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
5663 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
5664 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
5665 from ppc-linux-tdep.c to here.
5666 (ppc64_convert_from_func_ptr_addr): Rename from
5667 ppc64_linux_convert_from_func_ptr_addr to
5668 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
5669 here.
5670 * rs6000-tdep.c:
5671 (read_insn): Move from ppc-linux-tdep.c to here.
5672 (insns_match_pattern, insn_d_field, insn_ds_field): Move
5673 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
5674 * ppc-linux-tdep.c: Include ppc64-tdep.h.
5675 Removed above functions.
5676 (ppc_linux_init_abi): Adjust.
5677
8db60374
AR
56782013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
5679
5680 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
5681
f2e5f4ce
AR
56822013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
5683
5684 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
5685
c1f7d745
PA
56862013-02-01 Pedro Alves <palves@redhat.com>
5687
5688 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
5689 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
5690
8a92335b
JK
56912013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5692
5693 * elfread.c (elf_symfile_read): Limit separate debug info additions to
5694 files with no separate debug info.
5695 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
5696 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
5697 only for files with no separate debug info.
5698
8eacb197
TT
56992013-01-31 Tom Tromey <tromey@redhat.com>
5700
5701 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
5702 change type.
5703 (struct jit_program_space_data): Rename from jit_inferior_data.
5704 Update comments.
5705 (get_jit_program_space_data): Rename from get_jit_inferior_data.
5706 Change return type. Attach data to program space.
5707 (jit_program_space_data_cleanup): Rename from
5708 jit_inferior_data_cleanup; change argument type.
5709 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
5710 change type.
5711 (jit_register_code): Update.
5712 (jit_update_inferior_cache): Remove.
5713 (jit_breakpoint_deleted): Get jit data from the location's program
5714 space.
5715 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
5716 'ps_data', change type.
5717 (jit_inferior_init, jit_breakpoint_re_set_internal)
5718 (jit_event_handler): Update.
5719 (free_objfile_data): Get data from objfile's program space.
5720 (_initialize_jit): Update.
5721
f25c0135
TT
57222013-01-31 Tom Tromey <tromey@redhat.com>
5723
5724 PR gdb/13987:
5725 * jit.c (struct jit_inferior_data) <cached_code_address,
5726 jit_breakpoint>: New fields.
5727 (jit_breakpoint_re_set_internal): Fix logging. Only create
5728 breakpoint if cached address has changed.
5729 (jit_update_inferior_cache, jit_breakpoint_deleted): New
5730 functions.
5731 (_initialize_jit): Register breakpoint deleted observer.
5732
974a734b
AR
57332013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
5734
5735 * infrun.c (handle_syscall_event): Remove unused gdbarch.
5736 (save_infcall_suspend_state): Ifdef out unused inf.
5737 (restore_infcall_suspend_state): Ifdef out unused inf.
5738 * jit.c (jit_register_code): Remove unused i, b, inf_data.
5739 (jit_frame_sniffer): Remove unused inf_data.
5740
df54f8eb
AR
57412013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
5742
5743 * c-exp.y (classify_inner_name): Remove unused type.
5744 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
5745 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
5746 need_escape.
5747 (c_get_string): Remove unused kind.
5748 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
5749
5799c0b9
AR
57502013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
5751
5752 * charset.c (intermediate_encoding): Remove unused i.
5753 * completer.c (signal_completer): Remove unused i.
5754 * continuations.c (discard_my_continuations_1): Remove unused
5755 continuation_ptr.
5756 * corelow.c (core_close): Remove unuseD name.
5757 (get_core_siginfo): Remove unused pid.
5758 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
5759 i, cps.
5760 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
5761 (loclist_describe_location): Remove unused first.
5762 * event-top.c (command_line_handler): Remove unused got_eof.
5763 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
5764 (resize_section_table): Remove unused old_value.
5765 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
5766 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
5767 * i386-tdep.c (i386_process_record): Remove unused rex.
5768 * infcmd.c (get_return_value): Remove unused uiout.
5769 * jv-lang.c (type_from_class): Remove unused is_array.
5770 * jv-valprint.c (java_val_print): Remove unused i.
5771 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
5772 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
5773 * m2-typeprint.c (m2_print_type): Remove unused code.
5774 * macroexp.c (get_character_constant): Remove unused body_start.
5775 (macro_stringify): Remove unused result.
5776 * objc-lang.c (find_methods): Remove unused gdbarch.
5777 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
5778 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
5779 * stack.c (print_frame_args): Remove unused summary.
5780 * thread.c (thread_apply_command): Remove unused p.
5781 * valarith.c (value_x_unop): Remove unused mangle_ptr.
5782 * valops.c (search_struct_method): Remove unused skip.
5783 * valprint.c (generic_val_print): Remove unused byte_order.
5784 * varobj.c (varobj_update): Remove unused changed.
5785 * cli/cli-cmds.c (complete_command): Remove unused next_item.
5786 (alias_command): Remove unused c.
5787 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
5788 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
5789 format.
5790 (mi_cmd_data_write_memory): Remove unused word_format.
5791 (mi_cmd_data_write_memory_bytes): Remove unused r.
5792 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
5793 p_start, p_end.
5794 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
5795 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
5796 line_width.
5797
c656bca5
AR
57982013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
5799
5800 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
5801 * symtab.c (iterate_over_symtabs): Remove unused s.
5802 (find_pc_sect_symtab): Remove unused pspAce.
5803 (find_pc_sect_line): Remove unused alt_symtab.
5804 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
5805 (completion_list_add_name): Remove unused newsize.
5806
7078baeb
TT
58072013-01-31 Tom Tromey <tromey@redhat.com>
5808
5809 PR c++/14998:
5810 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
5811 TYPE_CODE_FUNC.
5812
c2e8b827
AR
58132013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
5814
5815 * target.c (target_read_string): Remove unused origlen.
5816
0e43993a
AR
58172013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
5818
5819 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
5820 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
5821 * ax-general.c (ax_print): Remove unused is_float.
5822 * blockframe.c (block_innermost_frame): Remove unused start, end.
5823 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
5824
765a97ab
AR
58252013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
5826
5827 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
5828 (svr4_read_so_list): Remove unused lmo.
5829 * solib-target.c (solib_target_relocate_section_addresses): Remove
5830 unused flags.
5831
a99dad3d
TT
58322013-01-30 Tom Tromey <tromey@redhat.com>
5833
5834 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
5835
3bff1ecd
TT
58362013-01-30 Tom Tromey <tromey@redhat.com>
5837
5838 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
5839 * utils.c (gnu_debuglink_crc32): Remove.
5840 * utils.h (gnu_debuglink_crc32): Don't declare.
5841
7d455152
TT
58422013-01-30 Tom Tromey <tromey@redhat.com>
5843
5844 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
5845 (read_structure_type, read_enumeration_type): Remove cast.
5846
abee88f2
TT
58472013-01-30 Tom Tromey <tromey@redhat.com>
5848
5849 * dwarf2read.c (read_namespace_type): Remove cast.
5850 (read_typedef): Likewise.
5851
8d9878a4
TT
58522013-01-29 Tom Tromey <tromey@redhat.com>
5853
5854 * dwarf2read.c (free_dwo_file): Remove assert.
5855
a543d2a9
TT
58562013-01-29 Tom Tromey <tromey@redhat.com>
5857
5858 * value.c (deprecated_set_value_modifiable): Remove.
5859 * value.h (deprecated_set_value_modifiable): Remove.
5860
bed911e5
DE
58612013-01-28 Doug Evans <dje@google.com>
5862
5863 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
5864 to addresses from dwo files.
5865
28c64fc2
SCR
58662013-01-25 Siva Chandra Reddy <sivachandra@google.com>
5867
5868 * valops.c (find_overload_match): Remove unused argument 'lax'.
5869 * value.h: Remove unused argument 'lax' from the declaration of
5870 find_overload_match.
5871 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
5872 to find_overload_match.
5873 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
5874 argument to find_overload_match.
5875
4d4ec4e5
TT
58762013-01-25 Tom Tromey <tromey@redhat.com>
5877
5878 * dwarf2read.c (processing_has_namespace_info): Remove.
5879 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
5880 (process_die, read_func_scope, dwarf2_start_symtab)
5881 (new_symbol_full): Update.
5882
195a3f6c
TT
58832013-01-25 Tom Tromey <tromey@redhat.com>
5884
5885 * cp-namespace.c (cp_set_block_scope): Remove.
5886 * cp-support.h (cp_set_block_scope): Remove.
5887 * dbxread.c: Include block.h.
5888 (cp_set_block_scope): New function.
5889 (process_one_symbol): Update.
5890 * dwarf2read.c (read_func_scope): Use block_set_scope.
5891
8ba0730a
PA
58922013-01-25 Pedro Alves <palves@redhat.com>
5893
5894 * remote.c (add_current_inferior_and_thread): Tweak comment.
5895
12aaed36
TT
58962013-01-25 Tom Tromey <tromey@redhat.com>
5897
5898 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5899 (cp_add_using_directive): Add 'copy_names' argument.
5900 * cp-support.h (cp_add_using_directive): Update.
5901 (struct using_direct) <import_src, import_dest, alias,
5902 declaration>: Now const.
5903 * dwarf2read.c (read_import_statement): Use obconcat.
5904 Don't copy names passed to cp_add_using_directive.
5905
7fc75ca7
TT
59062013-01-25 Tom Tromey <tromey@redhat.com>
5907
5908 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
5909
3405876a
PA
59102013-01-25 Pedro Alves <palves@redhat.com>
5911
5912 * remote.c (stop_reply_extract_thread): New.
5913 (add_current_inferior_and_thread): New parameter 'wait_status'.
5914 Handle it.
5915 (remote_start_remote): Pass wait status to
5916 add_current_inferior_and_thread.
5917 (extended_remote_run): Update comment.
5918 (extended_remote_create_inferior_1): Pass wait status to
5919 add_current_inferior_and_thread.
5920
8954db33
AB
59212013-01-25 Andrew Burgess <aburgess@broadcom.com>
5922 Ulrich Weigand <uweigand@de.ibm.com>
5923
5924 * valarith.c (value_vector_widen): New function for replicating a
5925 scalar into a vector.
5926 (value_binop): Use value_vector_widen to widen scalar to vector
5927 rather than casting, this better matches gcc C behaviour.
5928 * valops.c (value_casst): Update logic for casting between vector
5929 types, and for casting from scalar to vector, try to match gcc C
5930 behaviour.
5931 * value.h (value_vector_widen): Declare.
5932 * opencl-lang.c (opencl_value_cast): New opencl specific casting
5933 function, handle special case for casting scalar to vector.
5934 (opencl_relop): Use opencl_value_cast.
5935 (evaluate_subexp_opencl): Use opencl_value_cast instead of
5936 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
5937 in order to use opencl_value_cast.
5938
843b20dc
YQ
59392013-01-25 Yao Qi <yao@codesourcery.com>
5940
5941 * event-loop.c: Include "queue.h".
5942 (gdb_event_p): New typedef.
5943 (DECLARE_QUEUE_P): Use.
5944 (DEFINE_QUEUE_P): Use.
5945 (async_queue_event): Remove.
5946 (gdb_event_xfree): New.
5947 (initialize_event_loop): New.
5948 (process_event): Use QUEUE macros.
5949 (event_queue): Remove.
5950 (gdb_wait_for_event): Caller update.
5951 (check_async_event_handlers): Likewise.
5952 (poll_timers): Likewise.
5953 * event-loop.h (initialize_event_loop): Declare.
5954 * event-loop.c (gdb_event_xfree): New.
5955 * top.c (gdb_init): Call initialize_event_loop.
5956
20ad8856
YQ
59572013-01-25 Yao Qi <yao@codesourcery.com>
5958
5959 * event-loop.c (async_queue_event): Remove one parameter
5960 'position'. Remove code handling 'position' == TAIL.
5961 (gdb_wait_for_event): Caller update.
5962 (check_async_event_handlers): Caller update.
5963 (poll_timers): Caller update.
5964 * event-loop.h (enum queue_position): Remove.
5965
3bbbe775
MK
59662013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
5967
5968 * MAINTAINERS: Update my email.
5969
a87d9ac4
YQ
59702013-01-25 Yao Qi <yao@codesourcery.com>
5971
5972 * main.c (print_gdb_help): Remove "--epoch" from the help
5973 message.
5974
2077afdd
TD
59752013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
5976
5977 * symtab.c (skip_prologue_using_sal): Consider a file
5978 change the same as an increased line number
5979
63da4037
TD
59802013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
5981
30e8ee25 5982 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 5983
45e6c716
TT
59842013-01-24 Tom Tromey <tromey@redhat.com>
5985
5986 * ada-lang.h (ada_decode_symbol): Make return type const.
5987 * ada-lang.c (ada_decode_symbol): Likewise.
5988
b1ae631a
DE
59892013-01-23 Doug Evans <dje@google.com>
5990
5991 * linespec.c (find_linespec_symbols): Make static.
5992
55a78401
SDJ
59932013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
5994
5995 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
5996 type on float conversion for complex type.
5997
bea883fd
SCR
59982013-01-23 Siva Chandra Reddy <sivachandra@google.com>
5999
6000 Add a new class gdb.Architecture which exposes GDB's
6001 internal representation of architecture via GDB Python API.
6002 * Makefile.in: Add entries corresponding to the new file
6003 python/py-arch.c.
6004 * NEWS (Python Scripting): Add entries for the new class
6005 gdb.Architecture and the new method gdb.Frame.architecture.
6006 * python/py-arch.c: Implement gdb.Architecture class.
6007 * python/py-frame.c (frapy_arch): Implement the method
6008 gdb.Frame.architecture().
6009 (frame_object_methods): Add 'architecture' to the method table.
6010 * python/python-internal.h: Add declarations of new utility
6011 functions.
6012 * python/python.c (_initialize_python): Initialize
6013 gdb.Architecture class.
6014
796a7ff8
DE
60152013-01-23 Doug Evans <dje@google.com>
6016
6017 Work around binutils/15021.
6018 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
6019 type_unit_group out of union s. All uses updated.
6020 (read_index_from_section): Watch for index version 8.
6021 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
6022 an imported symtab.
6023 (write_psymtabs_to_index): Increment version number to 8.
6024
0928e93d
PA
60252013-01-22 Pedro Alves <palves@redhat.com>
6026
6027 * annotate.c (breakpoint_changed): Skip if breakpoint is not
6028 user-visible.
6029
9c97429f
PA
60302013-01-22 Pedro Alves <palves@redhat.com>
6031
6032 * annotate.c (annotate_breakpoints_changed): Rename to ...
6033 (annotate_breakpoints_invalid): ... this. Make static.
6034 (breakpoint_changed): Adjust.
6035 (_initialize_annotate): Always install the observers. Install a
6036 "breakpoint_created" observer.
6037 * annotate.h (annotate_breakpoints_changed): Delete declaration.
6038 * breakpoint.c (set_breakpoint_condition)
6039 (breakpoint_set_commands, do_map_commands_command)
6040 (init_raw_breakpoint, clear_command, set_ignore_count)
6041 (enable_breakpoint_disp): No longer call
6042 annotate_breakpoints_changed.
6043
bd00c694
PA
60442013-01-22 Pedro Alves <palves@redhat.com>
6045
6046 * annotate.c: Include "inferior.h".
6047 (frames_invalid_emitted)
6048 (breakpoints_invalid_emitted): New globals.
6049 (async_background_execution_p): New function.
6050 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
6051 emitting the annotation if it has already been emitted.
6052 (annotate_display_prompt): New function.
6053 * annotate.h (annotate_display_prompt): New declaration.
6054 * event-top.c: Include annotate.h.
6055 (display_gdb_prompt): Call annotate_display_prompt.
6056
187d10dd
PA
60572013-01-22 Pedro Alves <palves@redhat.com>
6058
6059 * annotate.c (ignore_count_changed): Delete.
6060 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
6061 (annotate_ignore_count_change): Delete.
6062 (annotate_stopped): Don't emit a delayed breakpoints-changed
6063 annotation.
6064 * annotate.h (annotate_ignore_count_change): Delete.
6065 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
6066 annotate_ignore_count_change.
6067
d84cf7eb
TT
60682013-01-22 Tom Tromey <tromey@redhat.com>
6069
6070 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
6071 require_rvalue for a register location.
6072
8f1d5693
MK
60732013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
6074
6075 * breakpoint.c (print_one_breakpoint_location): Add MI
6076 field 'thread-groups' when printing a breakpoint.
6077 (output_thread_groups): New function.
6078
aa6199c6
SCR
60792013-01-21 Siva Chandra Reddy <sivachandra@google.com>
6080
6081 * python/lib/gdb/commands/explore.py
6082 (CompoundExplorer.explore_expr): Correct the name of a method
6083 being invoked.
6084 (ExploreTypeCommand.invoke): Add a missing 'return'.
6085
d2afef13
TT
60862013-01-21 Tom Tromey <tromey@redhat.com>
6087
6088 * gdb_obstack.h (obconcat): Move declaration here, from...
6089 * symfile.h (obconcat): ... here.
6090 * gdb_obstack.c: New file.
6091 (obconcat): Move from...
6092 * symfile.c (obconcat): ... here.
6093 * Makefile.in (SFILES): Add gdb_obstack.c.
6094 (COMMON_OBS): Add gdb_obstack.o.
6095
10f0c4bb
TT
60962013-01-21 Tom Tromey <tromey@redhat.com>
6097
6098 * symfile.h (obsavestring): Don't declare.
6099 * symfile.c (obsavestring): Remove.
6100 * ada-exp.y: Use obstack_copy0, not obsavestring.
6101 * ada-lang.c: Use obstack_copy0, not obsavestring.
6102 * coffread.c: Use obstack_copy0, not obsavestring.
6103 * cp-namespace.c: Use obstack_copy0, not obsavestring.
6104 * dbxread.c: Use obstack_copy0, not obsavestring.
6105 * dwarf2read.c: Use obstack_copy0, not obsavestring.
6106 * jit.c: Use obstack_copy0, not obsavestring.
6107 * mdebugread.c: Use obstack_copy0, not obsavestring.
6108 * psymtab.c: Use obstack_copy0, not obsavestring.
6109 * stabsread.c: Use obstack_copy0, not obsavestring.
6110 * xcoffread.c: Use obstack_copy0, not obsavestring.
6111
86f62fd7
TT
61122013-01-21 Tom Tromey <tromey@redhat.com>
6113
6114 * dwarf2read.c (fixup_go_packaging): Save package name
6115 on objfile obstack.
6116 * gdbtypes.c (init_type): Don't copy name.
6117
15d034d0
TT
61182013-01-21 Tom Tromey <tromey@redhat.com>
6119
6120 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
6121 const.
6122 (struct attribute) <u.str>: Now const.
6123 (struct fnfieldlist) <name>: Now const.
6124 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
6125 (partial_die_parent_scope): Make return type const.
6126 (partial_die_full_name, add_partial_symbol): Update.
6127 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
6128 'name' const.
6129 (find_file_and_directory): Make 'name' and 'comp_dir' const.
6130 (read_file_scope, read_func_scope, dwarf2_add_field)
6131 (dwarf2_add_member_fn, read_structure_type)
6132 (process_enumeration_scope, read_array_type, read_module_type)
6133 (read_base_type, read_subrange_type): Update.
6134 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
6135 (new_symbol_full, guess_full_die_structure_name): Update.
6136 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
6137 (dwarf2_name): Return const type.
6138 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
6139 const.
6140
748e18ae
TT
61412013-01-21 Tom Tromey <tromey@redhat.com>
6142
6143 * gdbtypes.c (init_type): Make 'name' const.
6144 * gdbtypes.h (init_type): Update.
6145
46212e0b
TT
61462013-01-21 Tom Tromey <tromey@redhat.com>
6147
6148 * buildsym.c (patch_subfile_names): Use set_last_source_file.
6149 (start_symtab): Make 'name' and 'dirname' const. Use
6150 set_last_source_file.
6151 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
6152 (last_source_file): Define. Now static.
6153 (set_last_source_file, get_last_source_file): New functions.
6154 * buildsym.h (last_source_file): Don't declare.
6155 (start_symtab): Update.
6156 (set_last_source_file, get_last_source_file): Declare.
6157 * coffread.c (complete_symtab): Use set_last_source_file.
6158 (coff_end_symtab): Likewise.
6159 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
6160 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
6161 set_last_source_file.
6162 (process_one_symbol): Use get_last_source_file.
6163 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
6164 (psymtab_to_symtab_1): Use get_last_source_file.
6165 * xcoffread.c (process_linenos): Use get_last_source_file.
6166 (complete_symtab): Use set_last_source_file.
6167 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
6168 (scan_xcoff_symtab): Use set_last_source_file.
6169
9d2ceabe
TT
61702013-01-21 Tom Tromey <tromey@redhat.com>
6171
6172 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
6173 (symbol_set_names): Remove casts. Handle field const-ness.
6174
cfc594ee
TT
61752013-01-21 Tom Tromey <tromey@redhat.com>
6176
6177 * dwarf2read.c (new_symbol_full): Remove cast.
6178 * symtab.c (symbol_set_demangled_name): Make 'name' const.
6179 * symtab.h (symbol_set_demangled_name): Update.
6180
5484b13a
TT
61812013-01-21 Tom Tromey <tromey@redhat.com>
6182
6183 * main.c (captured_main): Call bfd_init.
6184
1605ef26
TT
61852013-01-21 Tom Tromey <tromey@redhat.com>
6186
6187 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
6188 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
6189 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
6190 * NEWS: Update.
6191
3b74cdc3
JK
61922013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6193
6194 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
6195
5a352474
JK
61962013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6197
6198 Fix gdb.fortran/common-block.exp crash in PIE mode.
6199 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
6200 LOC_COMMON_BLOCK.
6201 * f-valprint.c (info_common_command_for_block): Expect
6202 LOC_COMMON_BLOCK in gdb_assert.
6203 * symtab.h (struct general_symbol_info): Update comment for the
6204 common_block member.
6205 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
6206 (enum address_class): New member LOC_COMMON_BLOCK.
6207
c60797fd
DB
62082013-01-18 David Blaikie <dblaikie@gmail.com>
6209
6210 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 6211
46f35228
TT
62122013-01-18 Tom Tromey <tromey@redhat.com>
6213
6214 PR c++/14999:
6215 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
6216 Call require_rvalue.
6217
257e7a09
YQ
62182013-01-18 Yao Qi <yao@codesourcery.com>
6219
6220 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
6221 (dbx_read_symtab): New declaration.
6222 (dbx_psymtab_to_symtab): Delete.
6223 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
6224 Rename parameter PST to SELF. Exchanged two parameters.
6225 (start_psymtab): Caller update.
6226 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
6227 (dwarf2_read_symtab): New declaration.
6228 (dwarf2_psymtab_to_symtab): Delete.
6229 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
6230 Rename parameter PST to SELF. Exchanged two parameters.
6231 (create_partial_symtab): Caller update.
6232 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
6233 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
6234 Rename parameter PST to SELF. Exchanged two parameters.
6235 (parse_partial_symbols, new_psymtab): Caller update.
6236 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
6237 two parameters.
6238 * psymtab.c (psymtab_to_symtab): Caller update.
6239 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
6240 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
6241 Rename parameter PST to SELF. Exchanged two parameters.
6242 (xcoff_start_psymtab): Caller update.
6243
0de5618e
YQ
62442013-01-18 Yao Qi <yao@codesourcery.com>
6245
6246 * infrun.c (proceed): Rename local variable 'oneproc' to
6247 'force_step'.
6248
5c04624b
DE
62492013-01-17 Doug Evans <dje@google.com>
6250
848e3e78
DE
6251 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
6252 (dw2_build_type_unit_groups): Delete. All uses updated.
6253
5c04624b
DE
6254 * symtab.h (struct symbol_search): Add comment.
6255
d84fca2c
JK
62562013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6257
6258 * symtab.c (compare_filenames_for_search): New comment for
6259 HAS_DRIVE_SPEC.
6260
6108433d
TT
62612013-01-17 Tom Tromey <tromey@redhat.com>
6262
6263 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
6264
c89ffd86
JK
62652013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6266
6267 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
6268 initialize it by existing make_cleanup. Call new do_cleanups.
6269
db2b2972
TT
62702013-01-17 Tom Tromey <tromey@redhat.com>
6271
6272 * cp-abi.c (cp_abi_completer): New function.
6273 (_initialize_cp_abi): Set completer for "set cp-abi".
6274
be7d37a2
TT
62752013-01-17 Tom Tromey <tromey@redhat.com>
6276
6277 * mem-break.c: Remove obsolete comment.
6278 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
6279
c9fb1240
SD
62802012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
6281
6282 * jit.c (jit_reader_load_command): Interpret the jit reader name
6283 as an absolute path if it begins with a forward slash.
6284
db334a01
SD
62852012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
6286
6287 PR gdb/14550
6288
6289 * jit.c (finalize_symtab): Ensure that only the global block has a
6290 NULL superblock.
6291
7d928dac
PA
62922013-01-17 Pedro Alves <palves@redhat.com>
6293
6294 * acinclude.m4: Include ../config/plugins.m4,
6295 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
6296 * Makefile.in (aclocal_m4_deps): Update.
6297 * aclocal.m4: Renegerate.
6298
fb8cf7c5
DE
62992013-01-16 Doug Evans <dje@google.com>
6300
6301 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
6302
ab04a2af
TT
63032013-01-16 Pedro Alves <palves@redhat.com>
6304 Tom Tromey <tromey@redhat.com>
6305
6306 PR cli/7221:
6307 * NEWS: Add "catch signal".
6308 * breakpoint.c (base_breakpoint_ops): No longer static.
6309 (bpstat_explains_signal): New function.
6310 (init_catchpoint): No longer static.
6311 (base_breakpoint_explains_signal): New function.
6312 (base_breakpoint_ops): Initialize new field.
6313 * breakpoint.h (enum bpstat_signal_value): New.
6314 (struct breakpoint_ops) <explains_signal>: New field.
6315 (bpstat_explains_signal): Remove macro, declare as function.
6316 (base_breakpoint_ops, init_catchpoint): Declare.
6317 * break-catch-sig.c: New file.
6318 * inferior.h (signal_catch_update): Declare.
6319 * infrun.c (signal_catch): New global.
6320 (handle_syscall_event): Update for change to
6321 bpstat_explains_signal.
6322 (handle_inferior_event): Likewise. Always handle random signals
6323 via bpstats.
6324 (signal_cache_update): Check signal_catch.
6325 (signal_catch_update): New function.
6326 (_initialize_infrun): Initialize signal_catch.
6327 * Makefile.in (SFILES): Add break-catch-sig.c.
6328 (COMMON_OBS): Add break-catch-sig.o.
6329
8ac3646f
TT
63302013-01-16 Tom Tromey <tromey@redhat.com>
6331
6332 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
6333 (print_one_catch_solib, print_one_catch_syscall)
6334 (print_one_catch_exec, print_one_exception_catchpoint): Emit
6335 "catch-type".
6336
5a18e302
YQ
63372013-01-16 Yao Qi <yao@codesourcery.com>
6338
6339 * printcmd.c (current_display_number): Make it static.
6340
3f01d0d0
YQ
63412013-01-16 Yao Qi <yao@codesourcery.com>
6342
6343 * infcmd.c (step_once): Don't check '!single_inst' as it was
6344 checked before.
6345
1ed59174
JK
63462013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6347
6348 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
6349
44478ab3
TT
63502013-01-14 Tom Tromey <tromey@redhat.com>
6351
6352 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
6353 set command.
6354 * command.h (add_setshow_string_noescape_cmd): Update.
6355 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
6356 (complete_set_gnutarget): New function.
6357 (_initialize_core): Set the "set gnutarget" completer.
6358
06d66ee9
TT
63592013-01-14 Tom Tromey <tromey@redhat.com>
6360
6361 PR symtab/14442:
6362 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
6363 (c_type_print_modifier): Likewise.
6364 * dwarf2read.c (read_tag_restrict_type): New function.
6365 (read_type_die_1): Handle DW_TAG_restrict_type.
6366 * gdbtypes.c (make_restrict_type): New function.
6367 (recursive_dump_type): Handle TYPE_RESTRICT.
6368 * gdbtypes.h (enum type_flag_values): Renumber.
6369 (enum type_instance_flag_value): Add
6370 TYPE_INSTANCE_FLAG_RESTRICT.
6371 (TYPE_RESTRICT): New macro.
6372 (make_restrict_type): Declare.
6373
c9bf0622
TT
63742013-01-14 Tom Tromey <tromey@redhat.com>
6375
6376 PR symtab/14931:
6377 * psymtab.c (struct psymtab_state): New.
6378 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
6379 functions.
6380 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
6381 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
6382
44d594fd
PA
63832013-01-14 Richard Sharman <richard_sharman@mitel.com>
6384 Pedro Alves <palves@redhat.com>
6385
6386 PR remote/14786
6387
6388 * remote.c (remote_threads_info): Make a copy of the reply from
6389 qfThreadInfo and use that instead of rs->buf.
6390
442e4d9c
YQ
63912013-01-14 Yao Qi <yao@codesourcery.com>
6392
6393 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
6394 (dbx_psymtab_to_symtab): Likewise.
6395 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
6396 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
6397 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
6398
5b12a61c
JK
63992013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6400
6401 * parse.c (parse_exp_in_context): New variable inner_chain. Call
6402 make_cleanup_restore_current_language. Call set_language. Move
6403 OLD_CHAIN and INNER_CHAIN cleanups.
6404 * utils.c (do_restore_current_language)
6405 (make_cleanup_restore_current_language): New functions.
6406 * utils.h (make_cleanup_restore_current_language): New declaration.
6407
f0a4b570
JK
64082013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6409
6410 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
6411 non-existing files.
6412
57b3c00c
JK
6413 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
6414 non-existing files if FILENAME is already absolute.
6415
daefa854
JK
64162013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6417
6418 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
6419 fputs_filtered. Append trailing newline.
6420
ca9c6ee2
YQ
64212013-01-11 Yao Qi <yao@codesourcery.com>
6422 Stan Shebs <stan@codesourcery.com>
6423
6424 * psymtab.c (init_psymbol_list): Clarify the comment.
6425
f28045c2
YQ
64262013-01-11 Yao Qi <yao@codesourcery.com>
6427
6428 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
6429 (update_dprintf_command_list): Assert that 'printf_line' is
6430 non-null. Remove condition check.
6431
da5132d3
JK
64322013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6433
6434 Code cleanup.
6435 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
6436 type const char *.
6437 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
6438 const char *.
6439 * tui/tui-source.h (tui_source_is_displayed): Likewise.
6440
843e694d
AG
64412013-01-09 Anthony Green <green@moxielogic.com>
6442
6443 * cp-abi.c (cplus_print_vtable): Don't return value from void
6444 function.
6445 * ada-lang.c (re_set_catch_assert): Ditto.
6446
da51c347
DE
64472013-01-09 Doug Evans <dje@google.com>
6448
6449 * symfile.h (quick_symbol_functions): Delete member
6450 pre_expand_symtabs_matching. All uses removed.
6451 * dwarf2read.c (dw2_lookup_symbol): Implement.
6452 (dw2_do_expand_symtabs_matching): Delete.
6453 (dw2_pre_expand_symtabs_matching): Delete.
6454 (struct dw2_symtab_iterator): New type.
6455 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
6456 (dw2_expand_symtabs_for_function): Rewrite.
6457 (dwarf2_gdb_index_functions): Update.
6458 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
6459 (psym_functions): Update.
6460
b2259038
TT
64612013-01-09 Tom Tromey <tromey@redhat.com>
6462
6463 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
6464 * configure: Rebuild.
6465 * configure.ac: Add somread.o to the build if BFD has SOM
6466 support.
6467 * somread.c: Include som/aout.h, not syms.h.
6468 (som_symtab_read): Use som_external_symbol_dictionary_record.
6469 Unpack records manually.
6470 (_initialize_somread): Declare.
6471
bdad4180
MF
64722012-01-08 Mike Frysinger <vapier@gentoo.org>
6473
6474 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
6475 Cast return_address to 64bits.
6476
03cdf680
HZ
64772013-01-08 Hui Zhu <hui_zhu@mentor.com>
6478
6479 * printcmd.c: Remove define of function output_command.
6480 * tracepoint.c: Remove extern of function output_command.
6481 * valprint.h: (output_command): New extern.
6482
8a808554
TT
64832013-01-07 Tom Tromey <tromey@redhat.com>
6484
6485 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
6486 Remove.
6487 (objc_language_defn): Use c_printchar, c_printstr,
6488 c_emit_char.
6489
e93a8774
TT
64902013-01-07 Tom Tromey <tromey@redhat.com>
6491
6492 PR cli/7719:
6493 * NEWS: Update.
6494 * ada-valprint.c (printstr, print_field_values): Remove
6495 "inspect_it" code.
6496 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
6497 code.
6498 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
6499 code.
6500 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
6501 * main.c (captured_main): Remove "epoch" argument.
6502 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
6503 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
6504 * p-valprint.c (pascal_object_print_value_fields): Remove
6505 "inspect_it" code.
6506 * printcmd.c (print_command_1): Remove 'inspect' argument.
6507 (print_command, call_command): Update.
6508 (inspect_command): Remove.
6509 (_initialize_printcmd): Make "inspect" an alias for "print".
6510 * top.c (epoch_interface): Remove.
6511 * top.h (epoch_interface): Remove.
6512 * valprint.c (user_print_options): Update.
6513 (print_converted_chars_to_obstack): Remove "inspect_it" code.
6514 * valprint.h (struct value_print_options) <inspect_it>: Remove
6515 field.
6516
65172013-01-04 Tom Tromey <tromey@redhat.com>
6518
6519 * valprint.h (read_string): Add 'extern'.
6520
b967eb24
JB
65212013-01-07 Joel Brobecker <brobecker@adacore.com>
6522
6523 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
6524 used to decide whether to define darwin_read_dyld_info or not.
6525
78a8b30e
PM
65262013-01-03 Pierre Muller <muller@sourceware.org>
6527
6528 * main.c (relocate_gdb_directory): Avoid calling stat function
6529 if DIR is empty.
6530
50da2f25
YQ
65312013-01-03 Yao Qi <yao@codesourcery.com>
6532
6533 * psymtab.c (fixup_psymbol_section): Update declaration.
6534 (fixup_psymbol_section): Remove code returning value.
6535
e7e8980f
YQ
65362013-01-03 Yao Qi <yao@codesourcery.com>
6537
6538 * symtab.h: Remove some out of date comments.
6539 (enum exception_event_kind): Move it ...
6540 * breakpoint.c: ... here.
6541
569283d4
MF
65422013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
6543
9f9d9a96 6544 PR gdb/14405
569283d4
MF
6545 * darwin-nat.c (darwin_read_dyld_info): Only build if
6546 TASK_DYLD_INFO_COUNT is defined.
6547 (darwin_xfer_partial): Call darwin_read_dyld_info only if
6548 TASK_DYLD_INFO_COUNT is defined.
6549
2e36fbea
TT
65502013-01-02 Tom Tromey <tromey@redhat.com>
6551
6552 * symfile.h (struct ecoff_debug_hack): Remove.
6553 * objfiles.c: Don't include mdebugread.h.
6554
4f05add4
TT
65552013-01-02 Tom Tromey <tromey@redhat.com>
6556
6557 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
6558 * configure.ac: Check for Mach-O support in BFD. Update
6559 CONFIG_OBS.
6560 * configure: Rebuild.
6561
def63ff0
TT
65622013-01-02 Tom Tromey <tromey@redhat.com>
6563
6564 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
6565 * configure.ac: Use GDB_AC_CHECK_BFD.
6566 * configure: Rebuild.
6567
60c5dd93
MK
65682013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
6569
6570 * MAINTAINERS: Update my email.
6571
6e58437e
JB
65722013-01-01 Joel Brobecker <brobecker@adacore.com>
6573
6574 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
6575
627fe805
JB
65762013-01-01 Joel Brobecker <brobecker@adacore.com>
6577
6578 * rs6000-nat.c (bss_data_overlap): New function.
6579 (vmap_symtab): Use it to adjust the .bss section's offset.
6580
28e7fd62
JB
65812013-01-01 Joel Brobecker <brobecker@adacore.com>
6582
6583 Update year range in copyright notice of all files.
6584
e93a8774 65852013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
6586
6587 * top.c (print_gdb_version): Update copyright year.
6588
72b20e9c 6589For older changes see ChangeLog-2012.
c906108c
SS
6590\f
6591Local Variables:
6592mode: change-log
6593left-margin: 8
6594fill-column: 74
6595version-control: never
57da7796 6596coding: utf-8
c906108c 6597End:
This page took 1.791241 seconds and 4 git commands to generate.