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