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