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