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