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