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