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