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