637a462b6f4bfa2ee7f157be8045675094a0b86d
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-12-12 Pedro Alves <palves@redhat.com>
2
3 * cli/cli-cmds.c (source_script_from_stream) Use have_python
4 instead of catching UNSUPPORTED_ERROR.
5 * exceptions.h (UNSUPPORTED_ERROR): Delete.
6 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
7 error if called.
8 * python/python.h (have_python): New static inline function.
9
10 2013-12-11 Doug Evans <dje@google.com>
11
12 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
13 "can't find DWO" warning.
14
15 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
16
17 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
18 to get_probe_argument_count and evaluate_probe_argument.
19 * probe.c (get_probe_argument_count): Adjust declaration to accept
20 frame. Pass frame to probe_ops's get_probe_argument_count.
21 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
22 (probe_safe_evaluate_at_pc): Pass frame to
23 get_probe_argument_count and evaluate_probe_argument.
24 * probe.h (struct probe_ops) <get_probe_argument_count,
25 evaluate_probe_argument>: Adjust declarations to accept frame.
26 (get_probe_argument_count, evaluate_probe_argument): Likewise.
27 * solib-svr4.c (solib_event_probe_action): Get current frame.
28 Pass it to get_probe_argument_count.
29 (svr4_handle_solib_event): Get current frame. Pass it to
30 get_probe_argument_count and evaluate_probe_argument.
31 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
32 accept gdbarch. Do not obtain it from the probe's objfile.
33 (stap_get_probe_argument_count): Adjust declaration to accept
34 frame. Obtain gdbarch from the frame. Call generic
35 can_evaluate_probe_arguments. Pass gdbarch to
36 stap_parse_probe_arguments.
37 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
38 stap_parse_probe_arguments.
39 (stap_evaluate_probe_argument): Adjust declaration to accept
40 frame. Obtain gdbarch from the frame. Pass gdbarch to
41 stap_get_arg.
42 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
43 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
44 get_probe_argument_count and evaluate_probe_argument.
45
46 2013-12-10 Doug Evans <dje@google.com>
47
48 PR 16286
49 * c-lang.c (c_get_string): Ignore the declared size of the object
50 if a specific length is requested.
51
52 2013-12-10 Doug Evans <dje@google.com>
53
54 * interps.h (interp_exec_p): Delete.
55 * interps.c (interp_exec_p): Delete.
56 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
57 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
58
59 2013-12-10 Yao Qi <yao@codesourcery.com>
60
61 * amd64-tdep.c (amd64_analyze_stack_align): Call
62 target_read_code instead of target_read_memory.
63 (amd64_analyze_prologue): Call read_code_unsigned_integer
64 instead of read_memory_unsigned_integer. Call read_code
65 instead of read_memory.
66 (amd64_skip_xmm_prologue): Likewise.
67
68 2013-12-10 Yao Qi <yao@codesourcery.com>
69
70 * corefile.c (read_code): New function.
71 (read_code_integer): New function.
72 (read_code_unsigned_integer): New function.
73 * gdbcore.h (read_code): Declare.
74 (read_code_integer): Declare.
75 (read_code_unsigned_integer): Declare.
76 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
77 of target_read_memory. Call read_code_unsigned_integer instead
78 of read_memory_unsigned_integer.
79 (i386_analyze_struct_return): Likewise.
80 (i386_skip_probe): Likewise.
81 (i386_analyze_stack_align): Likewise.
82 (i386_match_pattern): Likewise.
83 (i386_skip_noop): Likewise.
84 (i386_analyze_frame_setup): Likewise.
85 (i386_analyze_register_saves): Likewise.
86 (i386_skip_prologue): Likewise.
87 (i386_skip_main_prologue): Likewise.
88 (i386_frame_cache_1): Likewise.
89
90 2013-12-10 Yao Qi <yao@codesourcery.com>
91
92 * infrun.c: Include "target-dcache.h".
93 (prepare_for_detach): Call target_dcache_invalidate.
94 (wait_for_inferior): Likewise.
95 (fetch_inferior_event): Likewise.
96 (infrun_thread_stop_requested_callback): Likewise. Set
97 overlay_cache_invalid to 1.
98
99 2013-12-10 Joel Brobecker <brobecker@adacore.com>
100
101 * symtab.c (symbol_find_demangled_name): Add handling of
102 Ada symbols.
103
104 2013-12-10 Joel Brobecker <brobecker@adacore.com>
105
106 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
107 * NEWS: Expand the entry documenting the new -exec-run --start
108 option to mention the corresponding new entry in the output of
109 "-list-features".
110
111 2013-12-10 Joel Brobecker <brobecker@adacore.com>
112
113 * windows-nat.c (handle_load_dll): Add comments.
114 (windows_ensure_ntdll_loaded): New function.
115 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
116 Add FIXME comment.
117
118 2013-12-08 Joel Brobecker <brobecker@adacore.com>
119
120 GDB 7.6.2 released.
121
122 2013-12-08 Yao Qi <yao@codesourcery.com>
123
124 * stack.c (frame_info): Initialize variable caller_pc.
125
126 2013-12-06 Pedro Alves <palves@redhat.com>
127
128 * frame.c (enum cached_copy_status): New enum.
129 (struct frame_info) <prev_pc.p>: Change type to enum
130 cached_copy_status.
131 (fprint_frame): Handle not saved and unavailable prev_pc values.
132 (frame_unwind_pc_if_available): Delete and merge contents into ...
133 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
134 to use enum cached_copy_status.
135 (frame_unwind_caller_pc_if_available): Delete.
136 (create_new_frame): Adjust.
137 * frame.h (frame_unwind_caller_pc_if_available): Delete
138 declaration.
139 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
140 frame_unwind_caller_pc_if_available, and handle
141 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
142 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
143 (val_print_not_saved): New function.
144 * valprint.h (val_print_not_saved): Declare.
145
146 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
147 Pedro Alves <palves@redhat.com>
148
149 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
150 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
151 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
152 * spu-tdep.c (spu_software_single_step): Throw
153 OPTIMIZED_OUT_ERROR.
154 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
155
156 2013-12-06 Tom Tromey <tromey@redhat.com>
157
158 * objfiles.c (free_objfile): Update comment.
159
160 2013-12-06 Tom Tromey <tromey@redhat.com>
161
162 * objfiles.h (objfile_to_front): Remove.
163 * objfiles.c (objfile_to_front): Remove.
164
165 2013-12-06 Tom Tromey <tromey@redhat.com>
166
167 * minsyms.c (get_symbol_leading_char): Remove unnecessary
168 declaration.
169
170 2013-12-06 Tom Tromey <tromey@redhat.com>
171
172 * psympriv.h (struct partial_symtab) <user>: Move earlier.
173
174 2013-12-06 Tom Tromey <tromey@redhat.com>
175
176 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
177 (list_command): Likewise.
178
179 2013-12-06 Tom Tromey <tromey@redhat.com>
180
181 * psymtab.c (allocate_psymtab): Put the filename in the filename
182 bcache.
183
184 2013-12-06 Tom Tromey <tromey@redhat.com>
185
186 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
187 * symtab.h (struct symtab) <dirname>: Now const.
188
189 2013-12-06 Tom Tromey <tromey@redhat.com>
190
191 * symfile.c (allocate_symtab): Remove cast.
192 * symtab.h (struct symtab) <filename>: Now const.
193
194 2013-12-06 Tom Tromey <tromey@redhat.com>
195
196 * break-catch-throw.c (fetch_probe_arguments): Use
197 get_probe_argument_count and evaluate_probe_argument.
198 * elfread.c (elf_get_probe_argument_count)
199 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
200 (elf_compile_to_ax): Remove.
201 (elf_probe_fns): Update.
202 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
203 (evaluate_probe_argument): Call method on probe, not via sym
204 functions.
205 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
206 evaluate_probe_argument.
207 (compile_probe_arg): Use get_probe_argument_count. Call method on
208 probe, not via sym functions.
209 * symfile-debug.c (debug_sym_get_probe_argument_count)
210 (debug_can_evaluate_probe_arguments)
211 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
212 Remove.
213 (debug_sym_probe_fns): Remove.
214 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
215 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
216 sym_compile_to_ax>: Remove fields.
217
218 2013-12-06 Pierre Muller <muller@sourceware.org>
219
220 Fix completion for pascal language.
221 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
222 (exp : field_exp name COMPLETE): New rule.
223 (exp : SIZEOF): Set correct current_type.
224 (last_was_structop): Remove static variable.
225 (yylex): Remove saw_structop local variable.
226 Adapt code to removal of variables above.
227
228 2013-12-06 Joel Brobecker <brobecker@adacore.com>
229
230 * frame.c (get_prev_frame_1): Delete variable "this_id".
231 Replace its use by a call to get_frame_id.
232
233 2013-12-05 Anthony Green <green@moxielogic.com>
234
235 * moxie-tdep.c (moxie_software_single_step): New function.
236 (INST2OFFSET): New helper macro.
237 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
238 (moxie_process_readu): Move this up in the file.
239
240 2013-12-05 Doug Evans <xdje42@gmail.com>
241
242 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
243
244 2013-12-05 Joel Brobecker <brobecker@adacore.com>
245 Tristan Gingold <gingold@adacore.com>
246
247 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
248 Accept version 2. Ignore operations using opcode 6.
249
250 2013-12-05 Joel Brobecker <brobecker@adacore.com>
251
252 * ada-lex.l (find_dot_all): Fix coding style violations.
253
254 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
255
256 * NEWS: Add section for Intel(R) Architecture Instructions
257 Extesions mentioning MPX.
258
259 2013-12-03 Joel Brobecker <brobecker@adacore.com>
260
261 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
262
263 2013-12-03 Joel Brobecker <brobecker@adacore.com>
264
265 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
266 when parse_exp_1 threw an error. Add comment.
267
268 2013-12-03 Joel Brobecker <brobecker@adacore.com>
269
270 * NEWS: Mention "-list-features" in the entry documenting
271 the support for the "--language" option.
272
273 2013-12-03 Tom Tromey <tromey@redhat.com>
274 Jan Kratochvil <jan.kratochvil@redhat.com>
275 Doug Evans <dje@google.com>
276 Samuel Bronson <naesten@gmail.com>
277
278 Bring back gdb-add-index as a contrib script.
279 * contrib/gdb-add-index.sh: New file.
280 * NEWS: Note the addition.
281
282 2013-12-03 Samuel Bronson <naesten@gmail.com>
283
284 * MAINTAINERS (Write After Approval): Add myself to the list.
285
286 2013-12-03 Joel Brobecker <brobecker@adacore.com>
287
288 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
289
290 2013-12-03 Joel Brobecker <brobecker@adacore.com>
291
292 * mi/mi-main.c: Remove trailing spaces throughout.
293
294 2013-12-03 Pedro Alves <palves@redhat.com>
295 Joel Brobecker <brobecker@adacore.com>
296
297 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
298 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
299 of a regular error when the GDB/MI command does not exist.
300 * mi/mi-main.c (mi_cmd_list_features): Add
301 "undefined-command-error-code".
302 (mi_print_exception): Print an "undefined-command"
303 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
304 * NEWS: Add entry documenting the new "code" variable in
305 "^error" result records.
306
307 2013-12-03 Joel Brobecker <brobecker@adacore.com>
308
309 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
310 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
311 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
312 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
313 field to output of "-list-features".
314
315 * NEWS: Add entry for new -info-gdb-mi-command.
316
317 2013-12-02 Doug Evans <dje@google.com>
318 Jan Kratochvil <jan.kratochvil@redhat.com>
319
320 * objfiles.c (allocate_objfile): Save original_name as an absolute
321 path.
322 * objfiles.h (struct objfile): Expand comment on original_name.
323 * source.c (openp): Call gdb_abspath.
324 * utils.c (gdb_abspath): New function.
325 * utils.h (gdb_abspath): Declare.
326
327 2013-12-02 Pedro Alves <palves@redhat.com>
328
329 * dcache.c (dcache_read_line): Use target_read_raw_memory.
330 * target.c (target_read_raw_memory): New function.
331 (target_read_stack, target_write_memory, target_write_raw_memory):
332 Update comment.
333 (target_read_code): Add comment.
334 * target.h (target_read_raw_memory): Declare.
335
336 2013-12-02 Pedro Alves <palves@redhat.com>
337
338 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
339 unconditionally.
340
341 2013-12-02 Pedro Alves <pedro@codesourcery.com>
342 Maciej W. Rozycki <macro@codesourcery.com>
343
344 * remote.c (putpkt_for_catch_errors): Remove function.
345 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
346 gracefully.
347
348 2013-12-02 Pedro Alves <palves@redhat.com>
349
350 PR remote/15974
351 * remote-notif.c (handle_notification): Return early if no
352 notification is found.
353
354 2013-12-02 Joel Brobecker <brobecker@adacore.com>
355
356 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
357 preprocessor check.
358
359 2013-12-02 Joel Brobecker <brobecker@adacore.com>
360
361 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
362
363 2013-12-02 Joel Brobecker <brobecker@adacore.com>
364
365 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
366 * ctf.c (ctf_start): Remove obsolete comment.
367
368 2013-12-02 Joel Brobecker <brobecker@adacore.com>
369
370 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
371
372 2013-11-30 Doug Evans <xdje42@gmail.com>
373
374 * auto-load.h (script_language): New members name, auto_load_enabled.
375 Add missing comments on struct members.
376 (auto_load_objfile_script): Delete.
377 * auto-load.c: #include "cli/cli-cmds.h".
378 (auto_load_gdb_scripts_enabled): New function.
379 (script_language_gdb): Update, add new members.
380 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
381 and call to maybe_add_script moved to caller.
382 (auto_load_objfile_script_1): Auto-load safe-checking and
383 call to maybe_add_script moved here.
384 (auto_load_objfile_script): Make static. Early exit if support for
385 scripting language hasn't been compiled in, or auto-loading has been
386 disabled.
387 (source_section_scripts): Argument "source_name" renamed to
388 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
389 with section_name. Skip loading script if support for scripting
390 language hasn't been compiled in, or auto-loading has been disabled.
391 Call language->source_script_for_objfile instead of calling
392 source_python_script_for_objfile directly.
393 (load_auto_scripts_for_objfile): Update.
394 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
395 (gdbpy_load_auto_script_for_objfile): Delete.
396 (auto_load_python_scripts_enabled): New function.
397 (script_language_python): Update, add new members.
398 (gdbpy_script_language_defn): New function.
399 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
400 (gdbpy_script_language_defn): Declare.
401
402 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
403 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
404 (source_section_scripts): Moved here from py-auto-load.c.
405 (auto_load_section_scripts): Ditto.
406 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
407 auto-load.c, renamed AUTO_SECTION_NAME.
408 (source_section_scripts, auto_load_section_scripts): Moved to
409 auto-load.c.
410
411 2013-11-30 Yao Qi <yao@codesourcery.com>
412
413 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
414
415 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
416
417 * gdbarch.sh: Remove include of "gdb_string.h", replace by
418 <string.h>.
419
420 2013-11-29 Doug Evans <xdje42@gmail.com>
421
422 * python/py-auto-load.c (source_section_scripts): Move comment to
423 more relevant location.
424
425 Whitespace cleanup.
426 * python/py-breakpoint.c: Remove trailing whitespace.
427 * python/py-cmd.c: Ditto.
428 * python/py-evts.c: Ditto.
429 * python/py-finishbreakpoint.c: Ditto.
430 * python/py-frame.c: Ditto.
431 * python/py-function.c: Ditto.
432 * python/py-inferior.c: Ditto.
433 * python/py-infthread.c: Ditto.
434 * python/py-param.c: Ditto.
435 * python/py-prettyprint.c: Ditto.
436 * python/py-symbol.c: Ditto.
437 * python/py-type.c: Ditto.
438 * python/py-utils.c: Ditto.
439 * python/py-value.c: Ditto.
440 * python/python-internal.h: Ditto.
441 * python/python.c: Ditto.
442
443 2013-11-29 Pedro Alves <palves@redhat.com>
444
445 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
446
447 2013-11-29 Pedro Alves <palves@redhat.com>
448
449 * breakpoint.c (build_target_condition_list): Release previous
450 conditions.
451 (build_target_command_list): Release previous commands.
452 (bp_location_dtor): Release target conditions and commands.
453 * remote.c (remote_add_target_side_condition): Don't release
454 conditions.
455 (remote_add_target_side_commands): Don't release commands.
456
457 2013-11-29 Yao Qi <yao@codesourcery.com>
458 Pedro Alves <palves@redhat.com>
459
460 * dcache.c (dcache_read_line): Use current_target.beneath
461 instead of &current_target.
462 * target.c (memory_xfer_partial_1): Factor code out to ...
463 (raw_memory_xfer_partial): ... it. New function.
464 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
465 is TARGET_OBJECT_RAW_MEMORY.
466
467 2013-11-28 Doug Evans <xdje42@gmail.com>
468
469 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
470 breakpoint_object. All uses updated.
471 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
472 breakpoint_object. All uses updated.
473 * python.c (*): All uses of breakpoint_object updated.
474 * python.h (*): All uses of breakpoint_object updated.
475 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
476 * python/py-finishbreakpoint.c (*): Ditto.
477
478 2013-11-28 Doug Evans <xdje42@gmail.com>
479
480 * configure.ac: Add comments delineating libpython and libmcheck.
481 * configure: Regenerate.
482
483 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
484 Pedro Alves <palves@redhat.com>
485
486 * valprint.c (value_check_printable): If the value is entirely
487 unavailable, print a single "<unavailable>" instead of printing
488 all subfields.
489
490 2013-11-28 Pedro Alves <palves@redhat.com>
491
492 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
493 Add "set debug frame" output.
494 (frame_stop_reason_symbol_string): New function.
495
496 2013-11-28 Pedro Alves <palves@redhat.com>
497
498 * frame-unwind.c (default_frame_unwind_stop_reason): Return
499 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
500 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
501
502 2013-11-28 Pedro Alves <palves@redhat.com>
503
504 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
505 set the unwind stop reason to UNWIND_OUTERMOST, not
506 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
507
508 2013-11-28 Pedro Alves <palves@redhat.com>
509
510 * frame.c (frame_unwind_register): Say the register was "not
511 saved" instead of "optimized out".
512
513 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
514
515 PR 16152
516 * configure: Rebuild.
517 * configure.ac: Tighten cygwin detection check.
518
519 2013-11-27 Pedro Alves <palves@redhat.com>
520
521 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
522 register in the previous frame's arch.
523
524 2013-11-27 Pedro Alves <palves@redhat.com>
525
526 * frame-unwind.c (frame_unwind_got_optimized): Return
527 an lval_register value instead of a not_lval value.
528
529 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
530
531 * frame.c: Include "valprint.h".
532 (frame_unwind_register_value): Use value_optimized_out.
533 * value.c (value_fetch_lazy): Likewise.
534
535 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
536
537 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
538
539 2013-11-26 Tom Tromey <tromey@redhat.com>
540
541 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
542 2013-11-22.
543
544 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
545
546 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
547 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
548 (HAS_MPX): New macro.
549 (HAS_AVX): New macro.
550 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
551
552 2013-11-25 Keith Seitz <keiths@redhat.com>
553
554 PR c++/14819
555 * c-exp.y (classify_inner_name): If no matching symbol was
556 found, try looking up the token as a base class.
557 Likewise if a constructor was found.
558 * cp-namespace.c (find_type_baseclass_by_name): New function.
559 * cp-support.h (find_type_baseclass_by_name): Declare.
560 * valops.c (value_struct_elt_for_reference): If we get
561 a non-static field, try to get a value based on the
562 current instance, if any.
563
564 2013-11-24 Yao Qi <yao@codesourcery.com>
565
566 * disasm.c (dis_asm_read_memory): Call target_read_code
567 instead of target_read_memory.
568
569 2013-11-24 Yao Qi <yao@codesourcery.com>
570
571 * NEWS: Add note on new "set code-cache" option.
572 * target-dcache.c (code_cache_enabled_1): New variable.
573 (code_cache_enabled): New variable.
574 (show_code_cache, set_code_cache): New function.
575 (code_cache_enabled_p): New function.
576 (_initialize_target_dcache): Register command.
577 * target-dcache.h (code_cache_enabled_p): Declare.
578 * target.c (memory_xfer_partial_1):Handle
579 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
580 (target_read_code): New function.
581 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
582 New.
583 (target_read_code): Declare.
584
585 2013-11-24 Yao Qi <yao@codesourcery.com>
586
587 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
588 (stack_cache_enabled_1): ... this. New variable.
589 (stack_cache_enabled_p): Rename to ...
590 (stack_cache_enabled): ... this. New variable.
591 (set_stack_cache_enabled_p): Rename to ...
592 (set_stack_cache): ... this. Update caller.
593 (show_stack_cache_enabled_p): Rename to ...
594 (show_stack_cache): ... this. Update caller.
595 (stack_cache_enabled): Rename to ...
596 (stack_cache_enabled_p): ... this. Update caller.
597 (_initialize_target_dcache): Replace "data cache" with
598 "target memory cache".
599 * target-dcache.h (stack_cache_enabled): Remove declaration.
600 (stack_cache_enabled_p): Add declaration.
601
602 2013-11-23 Doug Evans <xdje42@gmail.com>
603
604 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
605 superfluous.
606
607 2013-11-23 Doug Evans <xdje42@gmail.com>
608
609 * python/py-frame.c (frapy_block): Fix error message text.
610
611 2013-11-23 Doug Evans <xdje42@gmail.com>
612
613 * cli/cli-script.c (multi_line_command_p): New function.
614 (recurse_read_control_structure, read_command_lines_1): Call it.
615 (execute_control_command): Consistently have a blank line between
616 each case.
617
618 2013-11-22 Sterling Augustine <saugustine@google.com>
619
620 PR gdb/16196:
621 * valprint.c (read_string): Set new variable fetchlen based on
622 fetchlimit and size. Use it in call to partial_memory_read.
623 Update comment.
624
625 2013-11-22 Tom Tromey <tromey@redhat.com>
626
627 PR backtrace/16155:
628 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
629 the return address column is unspecified.
630
631 2013-11-22 Tom Tromey <tromey@redhat.com>
632 Pedro Alves <palves@redhat.com>
633
634 PR backtrace/16155
635 * value.c (value_fetch_lazy): Internal error if
636 get_frame_register_value returns the same register.
637
638 2013-11-22 Pedro Alves <palves@redhat.com>
639 Tom Tromey <tromey@redhat.com>
640
641 * frame.c (frame_stash_add): Now returns whether a frame with the
642 same ID was already known.
643 (compute_frame_id): New function, factored out from get_frame_id.
644 (get_frame_id): No longer lazilly compute the frame id here.
645 (get_prev_frame_if_no_cycle): New function. Detects wider stack
646 cycles.
647 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
648 and checking for stack cycles here.
649
650 2013-11-22 Pedro Alves <palves@redhat.com>
651
652 PR 16155
653 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
654 this frame and the new previous frame, not between this frame and
655 the next frame.
656
657 2013-11-22 Pedro Alves <palves@redhat.com>
658
659 PR 16155
660 * dwarf2-frame.c (struct dwarf2_frame_cache)
661 <checked_tailcall_bottom, entry_cfa_sp_offset,
662 entry_cfa_sp_offset_p>: New fields.
663 (dwarf2_frame_cache): Adjust to use the new cache fields instead
664 of locals. Don't call dwarf2_tailcall_sniffer_first here.
665 (dwarf2_frame_prev_register): Call it here, but only once.
666
667 2013-11-21 Doug Evans <xdje42@gmail.com>
668
669 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
670 (type_equality_entry): Move here from python/py-type.c.
671 (type_equality_entry_d): Ditto.
672 (compare_maybe_null_strings, check_types_equal): Ditto.
673 (check_types_worklist, types_deeply_equal): Ditto.
674 * gdbtypes.h (types_deeply_equal): Declare.
675 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
676 (typy_richcompare): Update.
677
678 2013-11-20 Joel Brobecker <brobecker@adacore.com>
679
680 * python/py-value.c (is_intlike): Delete.
681 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
682 by use of is_integral_type.
683 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
684 by use of is_integral_type and check for TYPE_CODE_PTR.
685
686 2013-11-20 Tom Tromey <tromey@redhat.com>
687
688 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
689 strerror module.
690 * gnulib/aclocal.m4: Update.
691 * gnulib/config.in: Update.
692 * gnulib/configure: Update.
693 * gnulib/import/Makefile.am: Update.
694 * gnulib/import/Makefile.in: Update.
695 * gnulib/import/errno.in.h: Remove.
696 * gnulib/import/intprops.h: Remove.
697 * gnulib/import/m4/errno_h.m4: Remove.
698 * gnulib/import/m4/gnulib-cache.m4: Update.
699 * gnulib/import/m4/gnulib-comp.m4: Update.
700 * gnulib/import/m4/strerror.m4: Remove.
701 * gnulib/import/m4/sys_socket_h.m4: Remove.
702 * gnulib/import/strerror-override.c: Remove.
703 * gnulib/import/strerror-override.h: Remove.
704 * gnulib/import/strerror.c: Remove.
705 * gnulib/update-gnulib.sh: Update.
706
707 2013-11-20 Yao Qi <yao@codesourcery.com>
708
709 * target-dcache.c (target_dcache_get_or_init): Call
710 set_address_space_data if 'dcache' is NULL.
711
712 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
713
714 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
715
716 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
717
718 * python/lib/gdb/command/bound_register.py: New file.
719 * data-directory/Makefile.in: Copy bond_register.py to the right path
720 to be initialized at gdb startup.
721
722 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
723
724 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
725 Add MPX registers.
726 (amd64_linux_read_description): Add initialization for MPX and
727 AVX independently.
728 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
729 (amd64_linux_gregset_reg_offset): Add MPX registers.
730 (amd64_linux_core_read_description): Add initialization for MPX
731 registers.
732 (_initialize_amd64_linux_tdep): Initialize MPX targets.
733 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
734 register on the list.
735 (tdesc_amd64_mpx_linux) Add new target for MPX.
736 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
737 (amd64_mpx_names): MPX register names.
738 (amd64_init_abi): Add MPX register while initializing the ABI.
739 (_initialize_amd64_tdep): Initialize MPX targets.
740 * amd64-tdep.h (amd64_regnum): Add MPX registers.
741 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
742
743 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
744
745 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
746 registers on the range of registers to be read from
747 xsave buffer.
748 (i386_linux_read_description): Add case for MPX.
749 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
750 (i386_linux_gregset_reg_offset): Add MPX registers.
751 (i386_linux_core_read_description): Initialize also MPX.
752 (_initialize_i386_linux_tdep): Add mpx initialization.
753 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
754 mpx_register_names.
755 (i386_regnum): Add MPX registers.
756 (I386_MPX_NUM_REGS): New macro.
757 (i386_bnd_regnum_p): New function.
758 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
759 number of registers to be the number of BNDSTATUS.
760 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
761 * i386-tdep.c: Include features/i386/i386-mpx.c.
762 (i386_mpx_names): Add MPX register names array.
763 (i386_bnd_names): Add bnd pseudo register names array.
764 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
765 registers.
766 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
767 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
768 registers.
769 (i386_bnd_type): New function.
770 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
771 register types.
772 (i386_pseudo_register_read_into_value): Add bnd case.
773 (i386_pseudo_register_write): Add bnd pseudo registers.
774 (i386_register_reggroup_p): Add MPX register to the group all.
775 (i386_validate_tdesc_p): Add MPX to the target description
776 validation.
777 (i386_pseudo_register_name): Add bnd pseudo registers.
778 (i386_gdbarch_init): Add MPX for architecture initialization.
779 (_initia_initialize_i386_tdep): Add mpx initialization.
780 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
781 XSAVE buffer.
782 (XSAVE_MPX_ADDR): New macro.
783 (i387_supply_xsave): Add MPX case.
784 (i387_collect_xsave): Add MPX case.
785 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
786 (I387_BNDCFGU_REGNUM): New macro.
787 (I387_NUM_MPX_REGS): New macro.
788 (I387_NUM_BND_REGS): New macro.
789 (I387_NUM_MPX_CTRL_REGS): New macro.
790 (I387_MPXEND_REGNUM): New macro.
791 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
792 (I386_XSTATE_BNDCFG): Likewise.
793 (I386_XSTATE_MPX_MASK): Likewise.
794 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
795 (I386_XSTATE_BNDREGS_SIZE): New macro.
796 (I386_XSTATE_BNDCFG_SIZE): Likewise.
797 (I386_XSTATE_SIZE): Adapt for MPX.
798 (I386_XSTATE_MAX_SIZE): Likewise.
799
800 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
801
802 * features/i386/Makefile: Adapts for using MPX registers.
803 * features/i386/32bit-mpx.xml: New file.
804 * features/i386/64bit-mpx.xml: Likewise.
805 * features/i386/amd64-mpx-linux.c: Likewise.
806 * features/i386/amd64-mpx-linux.xml: Likewise.
807 * features/i386/amd64-mpx.c: Likewise.
808 * features/i386/amd64-mpx.xml: Likewise.
809 * features/i386/i386-mpx-linux.c: Likewise.
810 * features/i386/i386-mpx-linux.xml: Likewise.
811 * features/i386/i386-mpx.c: Likewise.
812 * features/i386/i386-mpx.xml: Likewise.
813 * regformats/i386/amd64-mpx-linux.dat: New file.
814 * regformats/i386/amd64-mpx.dat: Likewise.
815 * regformats/i386/i386-mpx-linux.dat: Likewise.
816 * regformats/i386/i386-mpx.dat: Likewise.
817
818 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
819
820 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
821 Modified logic of creating a bitfield to be in sync with
822 tdesc_gdb_type.
823
824 2013-11-20 Will Newton <will.newton@linaro.org>
825
826 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
827 error message.
828
829 2013-11-20 Yao Qi <yao@codesourcery.com>
830
831 * progspace.h (struct address_space_data): Declare.
832 * target-dcache.c: Include "progspace.h".
833 (target_dache): Remove.
834 (target_dcache_aspace_key): New.
835 (target_dcache_cleanup): New function.
836 (target_dcache_init_p): Get data through
837 target_dcache_aspace_key.
838 (target_dcache_invalidate): Likewise.
839 (target_dcache_get): Likewise.
840 (target_dcache_get_or_init): Likewise.
841 (_initialize_target_dcache): Initialize
842 target_dcache_aspace_key.
843
844 2013-11-20 Yao Qi <yao@codesourcery.com>
845
846 * progspace.c (struct address_space): Update comments.
847 <REGISTRY_FIELDS>: New fields.
848 DEFINE_REGISTRY for address_space.
849 (new_address_space): Call address_space_alloc_data.
850 (free_address_space): Call address_space_free_data.
851 * progspace.h: Use DECLARE_REGISTRY.
852
853 2013-11-20 Yao Qi <yao@codesourcery.com>
854
855 * Makefile.in (SFILES):Add target-dcache.c.
856 (HFILES_NO_SRCDIR): Add target-dcache.h.
857 (COMMON_OBS): Add target-dcache.o.
858 * dcache.c: Remove inclusion to "target.h". Include
859 "target-dcache.h".
860 * memattr.c: Include "target-dcache.h".
861 * top.c: Likewise.
862 * tracepoint.c: Likewise.
863 * target.c: (stack_cache_enabled_p_1): Move to
864 target-dcache.c.
865 (stack_cache_enabled_p): Likewise.
866 (set_stack_cache_enabled_p): Likewise.
867 (show_stack_cache_enabled_p): Likewise.
868 (target_dcache, target_dcache_init_p): Likewise.
869 (target_dcache_invalidate): Likewise.
870 (target_dcache_get, target_dcache_get_or_init): Likewise.
871 (memory_xfer_partial_1): Call function stack_cache_enabled.
872 (initialize_target): Move code to target-dcache.c.
873 * target.h (target_dcache_invalidate): Move to
874 target-dcache.h.
875 (target_dcache_get): Likewise.
876 * target-dcache.c: New.
877 * target-dcache.h: New.
878
879 2013-11-20 Yao Qi <yao@codesourcery.com>
880
881 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
882 it is initialized.
883
884 2013-11-20 Yao Qi <yao@codesourcery.com>
885
886 * dcache.c (last_cache): Remove.
887 (dcache_free, dcache_init): Update.
888 (dcache_update):
889 (dcache_print_line): Add parameter 'dcache'. Replace
890 'target_dcache' with 'dcache'.
891 (dcache_info): Move code to dcache_info_1. Call
892 'dcache_info_1'.
893 (dcache_info_1): New function.
894 (set_dcache_size): Call target_dcache_invalidate.
895 (set_dcache_line_size): Call target_dcache_invalidate.
896 * target.c (target_dcache_init_p): New function.
897 (target_dcache_invalidate): Check target_dcache_init_p first.
898 (target_dcache_get, target_dcache_get_or_init): New function.
899 (memory_xfer_partial_1): Adjust.
900 (initialize_target): Don't initialize 'target_dcache'.
901 * target.h (struct dcache_struct): Declare.
902 (target_dcache_get): Declare.
903
904 2013-11-19 Yao Qi <yao@codesourcery.com>
905
906 * varobj.c (varobj_get_type): Fix typo.
907
908 2013-11-19 Joel Brobecker <brobecker@adacore.com>
909
910 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
911
912 2013-11-19 Joel Brobecker <brobecker@adacore.com>
913
914 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
915 "stat.h".
916
917 2013-11-18 Tom Tromey <tromey@redhat.com>
918
919 * common/gdb_stat.h: Remove.
920 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
921 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
922 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
923 * corefile.c: Use sys/stat.h, not gdb_stat.h.
924 * ctf.c: Use sys/stat.h, not gdb_stat.h.
925 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
926 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
927 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
928 * exec.c: Use sys/stat.h, not gdb_stat.h.
929 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
930 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
931 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
932 * jit.c: Use sys/stat.h, not gdb_stat.h.
933 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
934 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
935 * main.c: Use sys/stat.h, not gdb_stat.h.
936 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
937 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
938 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
939 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
940 * procfs.c: Use sys/stat.h, not gdb_stat.h.
941 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
942 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
943 * remote.c: Use sys/stat.h, not gdb_stat.h.
944 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
945 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
946 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
947 * source.c: Use sys/stat.h, not gdb_stat.h.
948 * symfile.c: Use sys/stat.h, not gdb_stat.h.
949 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
950 * symtab.c: Use sys/stat.h, not gdb_stat.h.
951 * top.c: Use sys/stat.h, not gdb_stat.h.
952 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
953
954 2013-11-18 Tom Tromey <tromey@redhat.com>
955
956 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
957 sys_stat.
958 * gnulib/aclocal.m4: Update.
959 * gnulib/config.in: Update.
960 * gnulib/configure: Update.
961 * gnulib/import/Makefile.am: Update.
962 * gnulib/import/Makefile.in: Update.
963 * gnulib/import/m4/gnulib-cache.m4: Update.
964 * gnulib/import/m4/gnulib-comp.m4: Update.
965 * gnulib/import/m4/sys_stat_h.m4: New.
966 * gnulib/import/m4/time_h.m4: New.
967 * gnulib/import/sys_stat.in.h: New.
968 * gnulib/import/time.in.h: New.
969
970 2013-11-18 Tom Tromey <tromey@redhat.com>
971
972 * configure: Rebuild.
973 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
974
975 2013-11-18 Tom Tromey <tromey@redhat.com>
976
977 * configure: Rebuild.
978 * configure.ac: Don't check for unistd.h.
979
980 2013-11-18 Tom Tromey <tromey@redhat.com>
981
982 * configure: Rebuild.
983 * configure.ac: Don't check for stdlib.h
984 * defs.h: Include stdlib.h unconditionally.
985
986 2013-11-18 Tom Tromey <tromey@redhat.com>
987
988 * config.in: Rebuild.
989 * configure: Rebuild.
990 * configure.ac: Don't check for stddef.h.
991 * defs.h: Unconditionally include stddef.h. Remove duplicate
992 inclusion.
993
994 2013-11-18 Tom Tromey <tromey@redhat.com>
995
996 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
997 * common/gdb_dirent.h: Remove.
998 * common/filestuff.c: Use dirent.h.
999 * common/linux-osdata.c: Use dirent.h.
1000 (NAMELEN): Define.
1001 * config.in: Rebuild.
1002 * configure: Rebuild.
1003 * configure.ac: Don't use AC_HEADER_DIRENT.
1004 * linux-fork.c: Use dirent.h
1005 * linux-nat.c: Use dirent.h.
1006 * nto-procfs.c: Use dirent.h.
1007 * procfs.c: Use dirent.h.
1008
1009 2013-11-18 Tom Tromey <tromey@redhat.com>
1010
1011 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1012 * gnulib/aclocal.m4: Update.
1013 * gnulib/config.in: Update.
1014 * gnulib/configure: Update.
1015 * gnulib/import/Makefile.am: Update.
1016 * gnulib/import/Makefile.in: Update.
1017 * gnulib/import/dirent.in.h: New.
1018 * gnulib/import/m4/dirent_h.m4: New.
1019 * gnulib/import/m4/gnulib-cache.m4: Update.
1020 * gnulib/import/m4/gnulib-comp.m4: Update.
1021
1022 2013-11-18 Tom Tromey <tromey@redhat.com>
1023
1024 * configure: Rebuild.
1025 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1026 strings.h.
1027
1028 2013-11-18 Tom Tromey <tromey@redhat.com>
1029
1030 * common/gdb_string.h: Remove.
1031 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1032 * ada-exp.y: Use string.h, not gdb_string.h.
1033 * ada-lang.c: Use string.h, not gdb_string.h.
1034 * ada-lex.l: Use string.h, not gdb_string.h.
1035 * ada-typeprint.c: Use string.h, not gdb_string.h.
1036 * ada-valprint.c: Use string.h, not gdb_string.h.
1037 * aix-thread.c: Use string.h, not gdb_string.h.
1038 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1039 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1040 * alpha-nat.c: Use string.h, not gdb_string.h.
1041 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1042 * alpha-tdep.c: Use string.h, not gdb_string.h.
1043 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1044 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1045 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1046 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1047 * amd64-nat.c: Use string.h, not gdb_string.h.
1048 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1049 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1050 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1051 * arch-utils.c: Use string.h, not gdb_string.h.
1052 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1053 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1054 * arm-tdep.c: Use string.h, not gdb_string.h.
1055 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1056 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1057 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1058 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1059 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1060 * avr-tdep.c: Use string.h, not gdb_string.h.
1061 * ax-gdb.c: Use string.h, not gdb_string.h.
1062 * ax-general.c: Use string.h, not gdb_string.h.
1063 * bcache.c: Use string.h, not gdb_string.h.
1064 * bfin-tdep.c: Use string.h, not gdb_string.h.
1065 * breakpoint.c: Use string.h, not gdb_string.h.
1066 * build-id.c: Use string.h, not gdb_string.h.
1067 * buildsym.c: Use string.h, not gdb_string.h.
1068 * c-exp.y: Use string.h, not gdb_string.h.
1069 * c-lang.c: Use string.h, not gdb_string.h.
1070 * c-typeprint.c: Use string.h, not gdb_string.h.
1071 * c-valprint.c: Use string.h, not gdb_string.h.
1072 * charset.c: Use string.h, not gdb_string.h.
1073 * cli-out.c: Use string.h, not gdb_string.h.
1074 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1075 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1076 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1077 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1078 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1079 * cli/cli-script.c: Use string.h, not gdb_string.h.
1080 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1081 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1082 * coffread.c: Use string.h, not gdb_string.h.
1083 * common/common-utils.c: Use string.h, not gdb_string.h.
1084 * common/filestuff.c: Use string.h, not gdb_string.h.
1085 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1086 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1087 * common/signals.c: Use string.h, not gdb_string.h.
1088 * common/vec.h: Use string.h, not gdb_string.h.
1089 * core-regset.c: Use string.h, not gdb_string.h.
1090 * corefile.c: Use string.h, not gdb_string.h.
1091 * corelow.c: Use string.h, not gdb_string.h.
1092 * cp-abi.c: Use string.h, not gdb_string.h.
1093 * cp-support.c: Use string.h, not gdb_string.h.
1094 * cp-valprint.c: Use string.h, not gdb_string.h.
1095 * cris-tdep.c: Use string.h, not gdb_string.h.
1096 * d-lang.c: Use string.h, not gdb_string.h.
1097 * dbxread.c: Use string.h, not gdb_string.h.
1098 * dcache.c: Use string.h, not gdb_string.h.
1099 * demangle.c: Use string.h, not gdb_string.h.
1100 * dicos-tdep.c: Use string.h, not gdb_string.h.
1101 * disasm.c: Use string.h, not gdb_string.h.
1102 * doublest.c: Use string.h, not gdb_string.h.
1103 * dsrec.c: Use string.h, not gdb_string.h.
1104 * dummy-frame.c: Use string.h, not gdb_string.h.
1105 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1106 * dwarf2loc.c: Use string.h, not gdb_string.h.
1107 * dwarf2read.c: Use string.h, not gdb_string.h.
1108 * elfread.c: Use string.h, not gdb_string.h.
1109 * environ.c: Use string.h, not gdb_string.h.
1110 * eval.c: Use string.h, not gdb_string.h.
1111 * event-loop.c: Use string.h, not gdb_string.h.
1112 * exceptions.c: Use string.h, not gdb_string.h.
1113 * exec.c: Use string.h, not gdb_string.h.
1114 * expprint.c: Use string.h, not gdb_string.h.
1115 * f-exp.y: Use string.h, not gdb_string.h.
1116 * f-lang.c: Use string.h, not gdb_string.h.
1117 * f-typeprint.c: Use string.h, not gdb_string.h.
1118 * f-valprint.c: Use string.h, not gdb_string.h.
1119 * fbsd-nat.c: Use string.h, not gdb_string.h.
1120 * findcmd.c: Use string.h, not gdb_string.h.
1121 * findvar.c: Use string.h, not gdb_string.h.
1122 * fork-child.c: Use string.h, not gdb_string.h.
1123 * frame.c: Use string.h, not gdb_string.h.
1124 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1125 * frv-tdep.c: Use string.h, not gdb_string.h.
1126 * gdb.c: Use string.h, not gdb_string.h.
1127 * gdb_bfd.c: Use string.h, not gdb_string.h.
1128 * gdbarch.c: Use string.h, not gdb_string.h.
1129 * gdbtypes.c: Use string.h, not gdb_string.h.
1130 * gnu-nat.c: Use string.h, not gdb_string.h.
1131 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1132 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1133 * go-exp.y: Use string.h, not gdb_string.h.
1134 * go-lang.c: Use string.h, not gdb_string.h.
1135 * go32-nat.c: Use string.h, not gdb_string.h.
1136 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1137 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1138 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1139 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1140 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1141 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1142 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1143 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1144 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1145 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1146 * i386-tdep.c: Use string.h, not gdb_string.h.
1147 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1148 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1149 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1150 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1151 * i387-tdep.c: Use string.h, not gdb_string.h.
1152 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1153 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1154 * inf-child.c: Use string.h, not gdb_string.h.
1155 * inf-ptrace.c: Use string.h, not gdb_string.h.
1156 * inf-ttrace.c: Use string.h, not gdb_string.h.
1157 * infcall.c: Use string.h, not gdb_string.h.
1158 * infcmd.c: Use string.h, not gdb_string.h.
1159 * inflow.c: Use string.h, not gdb_string.h.
1160 * infrun.c: Use string.h, not gdb_string.h.
1161 * interps.c: Use string.h, not gdb_string.h.
1162 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1163 * irix5-nat.c: Use string.h, not gdb_string.h.
1164 * jv-exp.y: Use string.h, not gdb_string.h.
1165 * jv-lang.c: Use string.h, not gdb_string.h.
1166 * jv-typeprint.c: Use string.h, not gdb_string.h.
1167 * jv-valprint.c: Use string.h, not gdb_string.h.
1168 * language.c: Use string.h, not gdb_string.h.
1169 * linux-fork.c: Use string.h, not gdb_string.h.
1170 * linux-nat.c: Use string.h, not gdb_string.h.
1171 * lm32-tdep.c: Use string.h, not gdb_string.h.
1172 * m2-exp.y: Use string.h, not gdb_string.h.
1173 * m2-typeprint.c: Use string.h, not gdb_string.h.
1174 * m32c-tdep.c: Use string.h, not gdb_string.h.
1175 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1176 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1177 * m32r-rom.c: Use string.h, not gdb_string.h.
1178 * m32r-tdep.c: Use string.h, not gdb_string.h.
1179 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1180 * m68k-tdep.c: Use string.h, not gdb_string.h.
1181 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1182 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1183 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1184 * m88k-tdep.c: Use string.h, not gdb_string.h.
1185 * macrocmd.c: Use string.h, not gdb_string.h.
1186 * main.c: Use string.h, not gdb_string.h.
1187 * mdebugread.c: Use string.h, not gdb_string.h.
1188 * mem-break.c: Use string.h, not gdb_string.h.
1189 * memattr.c: Use string.h, not gdb_string.h.
1190 * memory-map.c: Use string.h, not gdb_string.h.
1191 * mep-tdep.c: Use string.h, not gdb_string.h.
1192 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1193 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1194 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1195 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1196 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1197 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1198 * mi/mi-console.c: Use string.h, not gdb_string.h.
1199 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1200 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1201 * mi/mi-main.c: Use string.h, not gdb_string.h.
1202 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1203 * microblaze-rom.c: Use string.h, not gdb_string.h.
1204 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1205 * mingw-hdep.c: Use string.h, not gdb_string.h.
1206 * minidebug.c: Use string.h, not gdb_string.h.
1207 * minsyms.c: Use string.h, not gdb_string.h.
1208 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1209 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1210 * mips-tdep.c: Use string.h, not gdb_string.h.
1211 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1212 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1213 * mipsread.c: Use string.h, not gdb_string.h.
1214 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1215 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1216 * monitor.c: Use string.h, not gdb_string.h.
1217 * moxie-tdep.c: Use string.h, not gdb_string.h.
1218 * mt-tdep.c: Use string.h, not gdb_string.h.
1219 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1220 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1221 * nto-procfs.c: Use string.h, not gdb_string.h.
1222 * nto-tdep.c: Use string.h, not gdb_string.h.
1223 * objc-lang.c: Use string.h, not gdb_string.h.
1224 * objfiles.c: Use string.h, not gdb_string.h.
1225 * opencl-lang.c: Use string.h, not gdb_string.h.
1226 * osabi.c: Use string.h, not gdb_string.h.
1227 * osdata.c: Use string.h, not gdb_string.h.
1228 * p-exp.y: Use string.h, not gdb_string.h.
1229 * p-lang.c: Use string.h, not gdb_string.h.
1230 * p-typeprint.c: Use string.h, not gdb_string.h.
1231 * parse.c: Use string.h, not gdb_string.h.
1232 * posix-hdep.c: Use string.h, not gdb_string.h.
1233 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1234 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1235 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1236 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1237 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1238 * printcmd.c: Use string.h, not gdb_string.h.
1239 * procfs.c: Use string.h, not gdb_string.h.
1240 * prologue-value.c: Use string.h, not gdb_string.h.
1241 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1242 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1243 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1244 * regcache.c: Use string.h, not gdb_string.h.
1245 * registry.c: Use string.h, not gdb_string.h.
1246 * remote-fileio.c: Use string.h, not gdb_string.h.
1247 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1248 * remote-mips.c: Use string.h, not gdb_string.h.
1249 * remote-sim.c: Use string.h, not gdb_string.h.
1250 * remote.c: Use string.h, not gdb_string.h.
1251 * reverse.c: Use string.h, not gdb_string.h.
1252 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1253 * ser-base.c: Use string.h, not gdb_string.h.
1254 * ser-go32.c: Use string.h, not gdb_string.h.
1255 * ser-mingw.c: Use string.h, not gdb_string.h.
1256 * ser-pipe.c: Use string.h, not gdb_string.h.
1257 * ser-tcp.c: Use string.h, not gdb_string.h.
1258 * ser-unix.c: Use string.h, not gdb_string.h.
1259 * serial.c: Use string.h, not gdb_string.h.
1260 * sh-tdep.c: Use string.h, not gdb_string.h.
1261 * sh64-tdep.c: Use string.h, not gdb_string.h.
1262 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1263 * skip.c: Use string.h, not gdb_string.h.
1264 * sol-thread.c: Use string.h, not gdb_string.h.
1265 * solib-dsbt.c: Use string.h, not gdb_string.h.
1266 * solib-frv.c: Use string.h, not gdb_string.h.
1267 * solib-osf.c: Use string.h, not gdb_string.h.
1268 * solib-spu.c: Use string.h, not gdb_string.h.
1269 * solib-target.c: Use string.h, not gdb_string.h.
1270 * solib.c: Use string.h, not gdb_string.h.
1271 * somread.c: Use string.h, not gdb_string.h.
1272 * source.c: Use string.h, not gdb_string.h.
1273 * sparc-nat.c: Use string.h, not gdb_string.h.
1274 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1275 * sparc-tdep.c: Use string.h, not gdb_string.h.
1276 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1277 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1278 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1279 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1280 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1281 * spu-multiarch.c: Use string.h, not gdb_string.h.
1282 * spu-tdep.c: Use string.h, not gdb_string.h.
1283 * stabsread.c: Use string.h, not gdb_string.h.
1284 * stack.c: Use string.h, not gdb_string.h.
1285 * std-regs.c: Use string.h, not gdb_string.h.
1286 * symfile.c: Use string.h, not gdb_string.h.
1287 * symmisc.c: Use string.h, not gdb_string.h.
1288 * symtab.c: Use string.h, not gdb_string.h.
1289 * target.c: Use string.h, not gdb_string.h.
1290 * thread.c: Use string.h, not gdb_string.h.
1291 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1292 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1293 * top.c: Use string.h, not gdb_string.h.
1294 * tracepoint.c: Use string.h, not gdb_string.h.
1295 * tui/tui-command.c: Use string.h, not gdb_string.h.
1296 * tui/tui-data.c: Use string.h, not gdb_string.h.
1297 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1298 * tui/tui-file.c: Use string.h, not gdb_string.h.
1299 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1300 * tui/tui-out.c: Use string.h, not gdb_string.h.
1301 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1302 * tui/tui-source.c: Use string.h, not gdb_string.h.
1303 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1304 * tui/tui-win.c: Use string.h, not gdb_string.h.
1305 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1306 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1307 * typeprint.c: Use string.h, not gdb_string.h.
1308 * ui-file.c: Use string.h, not gdb_string.h.
1309 * ui-out.c: Use string.h, not gdb_string.h.
1310 * user-regs.c: Use string.h, not gdb_string.h.
1311 * utils.c: Use string.h, not gdb_string.h.
1312 * v850-tdep.c: Use string.h, not gdb_string.h.
1313 * valarith.c: Use string.h, not gdb_string.h.
1314 * valops.c: Use string.h, not gdb_string.h.
1315 * valprint.c: Use string.h, not gdb_string.h.
1316 * value.c: Use string.h, not gdb_string.h.
1317 * varobj.c: Use string.h, not gdb_string.h.
1318 * vax-tdep.c: Use string.h, not gdb_string.h.
1319 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1320 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1321 * windows-nat.c: Use string.h, not gdb_string.h.
1322 * xcoffread.c: Use string.h, not gdb_string.h.
1323 * xml-support.c: Use string.h, not gdb_string.h.
1324 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1325 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1326
1327 2013-11-18 Tom Tromey <tromey@redhat.com>
1328
1329 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1330 and strstr.
1331 * gnulib/aclocal.m4: Update.
1332 * gnulib/config.in: Update.
1333 * gnulib/configure: Update.
1334 * gnulib/import/Makefile.am: Update.
1335 * gnulib/import/Makefile.in: Update.
1336 * gnulib/import/errno.in.h: New.
1337 * gnulib/import/intprops.h: New.
1338 * gnulib/import/m4/errno_h.m4: New.
1339 * gnulib/import/m4/gnulib-cache.m4: Update.
1340 * gnulib/import/m4/gnulib-comp.m4: Update.
1341 * gnulib/import/m4/strerror.m4: New.
1342 * gnulib/import/m4/strstr.m4: New.
1343 * gnulib/import/m4/sys_socket_h.m4: New.
1344 * gnulib/import/strerror-override.c: New.
1345 * gnulib/import/strerror-override.h: New.
1346 * gnulib/import/strerror.c: New.
1347 * gnulib/import/strstr.c: New.
1348
1349 2013-11-18 Tom Tromey <tromey@redhat.com>
1350
1351 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1352 multiple lines.
1353
1354 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1355
1356 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1357 * sparc-tdep.h: And its prototype.
1358
1359 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1360 function.
1361 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1362
1363 2013-11-18 Pedro Alves <palves@redhat.com>
1364
1365 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1366 use unpack_pointer.
1367
1368 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1369
1370 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1371 to -list-features output.
1372
1373 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1374
1375 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1376 <read_addr_from_reg>: Renames "read_reg".
1377 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1378 Adjust comment.
1379 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1380 Use read_addr_from_reg in place of read_reg.
1381 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1382 in place of read_reg.
1383 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1384 dwarf_expr_read_reg.
1385 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1386 with dwarf_expr_read_addr_from_reg.
1387 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1388 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1389 needs_frame_read_addr_from_reg.
1390
1391 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1392
1393 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1394
1395 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1396
1397 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1398 NULL.
1399
1400 2013-11-15 Tom Tromey <tromey@redhat.com>
1401
1402 PR c++/16117:
1403 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1404 (classify_name): Likewise. Prefer a field of "this" over a
1405 filename.
1406 (classify_inner_name, yylex): Update.
1407
1408 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1409
1410 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1411 Extend the documentation a bit.
1412 <get_reg_value>: New field.
1413 * dwarf2loc.c (dwarf_expr_get_reg_value)
1414 (needs_frame_get_reg_value): New functions.
1415 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1416 callback.
1417 * dwarf2-frame.c (get_reg_value): New function.
1418 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1419 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1420 Use new callback to compute result_val.
1421
1422 2013-11-15 Alan Modra <amodra@gmail.com>
1423
1424 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1425 (ppc64_desc_entry_point): ..this. Update comments here and at
1426 call points.
1427 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1428 ppc64_standard_linkage3): Update comments.
1429 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1430 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1431 patterns.
1432 (ppc64_standard_linkage4_target): New function.
1433 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1434 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1435 nop match. Fix comment wrap.
1436
1437 2013-11-14 Pedro Alves <palves@redhat.com>
1438
1439 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1440 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1441
1442 2013-11-14 Pedro Alves <palves@redhat.com>
1443
1444 * infrun.c (struct execution_control_state)
1445 <stepped_after_stopped_by_watchpoint>: New field.
1446 (get_inferior_stop_soon): New function.
1447 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1448 moved to struct execution_control_state -- adjust. Use
1449 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1450 new function.
1451 (handle_signal_stop): New function, factored out from
1452 handle_inferior_event.
1453
1454 2013-11-14 Pedro Alves <palves@redhat.com>
1455
1456 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1457 return a boolean.
1458 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1459 boolean.
1460 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1461 Adjust to return a boolean.
1462 * breakpoint.h (enum bpstat_signal_value): Delete.
1463 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1464 (bpstat_explains_signal): Likewise.
1465 * infrun.c (handle_inferior_event) <random signal checks>:
1466 bpstat_explains_signal now returns a boolean - adjust. No longer
1467 consider hiding signals.
1468
1469 2013-11-14 Pedro Alves <palves@redhat.com>
1470
1471 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1472 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1473 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1474 BPSTAT_SIGNAL_HIDE.
1475 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1476 instead of BPSTAT_SIGNAL_HIDE.
1477 * infrun.c (handle_inferior_event): Rework random signal checks.
1478
1479 2013-11-14 Pedro Alves <palves@redhat.com>
1480
1481 * infrun.c (struct execution_control_state): Remove
1482 'random_signal' field.
1483 (handle_syscall_event): Use bpstat_causes_stop instead of
1484 bpstat_explains_signal. Don't set ecs->random_signal.
1485 (handle_inferior_event): New 'random_signal' local.
1486 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1487 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1488 bpstat_explains_signal. Don't set ecs->random_signal.
1489 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1490 ecs->random_signal.
1491
1492 2013-11-14 Pedro Alves <palves@redhat.com>
1493
1494 * infrun.c (handle_inferior_event): Move comment from the
1495 function's body to the function's description, adjusted.
1496
1497 2013-11-14 Pedro Alves <palves@redhat.com>
1498
1499 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1500 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1501 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1502 case.
1503
1504 2013-11-14 Tom Tromey <tromey@redhat.com>
1505
1506 * python/py-linetable.c (ltpy_has_line)
1507 (ltpy_get_all_source_lines): Fix loop termination condition.
1508
1509 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1510
1511 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1512 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1513 PARSE->LANGUAGE during command execution, if set.
1514 * mi/mi-parse.c: Add "language.h" #include.
1515 (mi_parse): Add parsing of "--language" command option.
1516
1517 * NEWS: Add entry mentioning the new "--language" command option.
1518
1519 2013-11-14 Pedro Alves <palves@redhat.com>
1520 Joel Brobecker <brobecker@adacore.com>
1521
1522 * cli/cli-utils.h (extract_arg_const): Add declaration.
1523 * cli/cli-utils.c (extract_arg_const): New function.
1524 (extract_arg): Reimplement using extract_arg_const.
1525
1526 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1527
1528 * language.h: Add "symtab.h" #include.
1529
1530 2013-11-13 Doug Evans <xdje42@gmail.com>
1531
1532 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1533 specific breakpoints, don't evaluate breakpoint condition if
1534 different thread.
1535
1536 2013-11-13 Keith Seitz <keiths@redhat.com>
1537
1538 PR c++/7935
1539 PR c++/10541
1540 * cp-support.c (insepct_type): Add support for substituting
1541 namespace aliases, too.
1542 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1543 for DW_TAG_imported_declaration.
1544 (add_partial_symbol): Likewise.
1545 (process_die): Handle namespace aliases with
1546 read_namespace_alias.
1547 (die_needs_namespace): Add DW_TAG_imported_declaration.
1548 (read_namespace_alias): New function.
1549 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1550 (new_symbol_full): Handle DW_TAG_imported_declaration.
1551
1552 2013-11-13 Keith Seitz <keiths@redhat.com>
1553
1554 * p-exp.y (uptok): Make first parameter const.
1555 (yylex): Make `tokstart' and `tokptr' const.
1556 Don't copy the lexer input to a temporary buffer.
1557 Make `p' const.
1558 Remove const workaround for parse_escape.
1559 Create a temporary buffer for a convenience variable instead
1560 of doing in-place modification of the input.
1561 If a match is found with a different case from the input,
1562 do not change the input at all.
1563 Use `tmp' to construct the resultant stoken instead of
1564 `tokstart'.
1565
1566 2013-11-13 Doug Evans <xdje42@gmail.com>
1567
1568 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1569
1570 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1571
1572 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1573 entry with "ada-exceptions".
1574
1575 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1576
1577 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1578 after re-initialization of OBJFILE's obstack.
1579
1580 2013-11-12 Doug Evans <xdje42@gmail.com>
1581
1582 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1583 bs->stop != 0 on entry. Update function comment. Simplify early
1584 exit for frame mismatch. Reindent rest of function.
1585
1586 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1587
1588 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1589 NULL.
1590
1591 2013-11-12 Doug Evans <dje@google.com>
1592
1593 Work around gold/15646.
1594 * dwarf2read.c (read_index_from_section): Update comment.
1595 (struct dw2_symtab_iterator): New member global_seen.
1596 (dw2_symtab_iter_init): Initialize it.
1597 (dw2_symtab_iter_next): Skip duplicate global symbols.
1598 (dw2_expand_symtabs_matching): Ditto.
1599
1600 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1601
1602 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1603 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1604 command.
1605 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1606 (mi_cmd_info_ada_exceptions): New function.
1607 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1608
1609 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1610
1611 * ada-lang.h: #include "vec.h".
1612 (struct ada_exc_info): New.
1613 (ada_exc_info): New typedef.
1614 (DEF_VEC_O(ada_exc_info)): New vector.
1615 (ada_exceptions_list): Add declaration.
1616 * ada-lang.c (ada_is_exception_sym)
1617 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1618 (sort_remove_dups_ada_exceptions_list)
1619 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1620 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1621 (ada_exceptions_list_1, ada_exceptions_list)
1622 (info_exceptions_command): New function.
1623 (_initialize_ada_language): Add "info exception" command.
1624
1625 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1626
1627 PR python/15629
1628 * NEWS: Add linetable feature.
1629 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1630 * python/py-linetable.c: New file.
1631 * python/py-symtab.c (stpy_get_linetable): New function.
1632 * python/python-internal.h (symtab_to_linetable_object): Declare.
1633 (gdbpy_initialize_linetable): Ditto.
1634 * python/python.c (_initialize_python): Call
1635 gdbpy_initialize_linetable.
1636
1637 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1638
1639 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1640 the documentation of fields "except_string" and "condition".
1641 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1642 CONDITION on the heap before passing it to
1643 create_ada_exception_catchpoint.
1644 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1645 CONDITION.
1646
1647 2013-11-11 Tom Tromey <tromey@redhat.com>
1648
1649 * config.in, configure: Rebuild.
1650 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1651
1652 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1653
1654 * remote-sim.c (gdbsim_detach): Break declaration into
1655 shorter lines. No code change.
1656
1657 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1658
1659 * remote-sim.c (gdbsim_detach): Fix prototype.
1660
1661 2013-11-08 Doug Evans <dje@google.com>
1662
1663 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1664 (create_debug_types_hash_table): Only print debugging messages for
1665 each TU if dwarf2-read >= 2.
1666 (process_queue): Ditto.
1667 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1668 Update doc string.
1669
1670 2013-11-08 Tom Tromey <tromey@redhat.com>
1671
1672 * configure: Rebuild.
1673 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1674
1675 2013-11-08 Tom Tromey <tromey@redhat.com>
1676
1677 * configure, config.in: Rebuild.
1678 * configure.ac: Remove unused configury.
1679
1680 2013-11-08 Tom Tromey <tromey@redhat.com>
1681
1682 * m32c-tdep.c: Use gdb_string.h.
1683
1684 2013-11-08 Tom Tromey <tromey@redhat.com>
1685
1686 * configure, config.in: Rebuild.
1687 * configure.ac: Remove all link.h-related checks.
1688
1689 2013-11-08 Tom Tromey <tromey@redhat.com>
1690
1691 * acinclude.m4: Include common.m4.
1692 * common/common.m4: New file.
1693 * configure, config.in: Rebuild.
1694 * configure.ac: Use GDB_AC_COMMON.
1695
1696 2013-11-08 Doug Evans <dje@google.com>
1697
1698 * NEWS: Mention that "set debug symtab-create" now accepts a
1699 verbosity level.
1700 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1701 to set the symtab's primary flag.
1702 * jit.c (finalize_symtab): Ditto.
1703 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1704 * symfile.c (allocate_symtab): Only print debugging messages for
1705 symtab_create_debug levels 2 and higher.
1706 * symtab.c (symtab_create_debug): Change type to unsigned int.
1707 (set_symtab_primary): New function.
1708 (_initialize_symtab): Change "set debug symtab-create" to a
1709 zuinteger option.
1710 * symtab.h (set_symtab_primary): Declare.
1711 (symtab_create_debug): Update decl.
1712
1713 2013-11-08 Tom Tromey <tromey@redhat.com>
1714
1715 * aix-thread.c (aix_thread_detach): Update.
1716 * corelow.c (core_detach): Update.
1717 * darwin-nat.c (darwin_detach): Update.
1718 * dec-thread.c (dec_thread_detach): Update.
1719 * gnu-nat.c (gnu_detach): Update.
1720 * go32-nat.c (go32_detach): Update.
1721 * inf-ptrace.c (inf_ptrace_detach): Update.
1722 * inf-ttrace.c (inf_ttrace_detach): Update.
1723 * linux-fork.c (linux_fork_detach): Update.
1724 * linux-fork.h (linux_fork_detach): Update.
1725 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1726 local for const-correctness.
1727 * linux-thread-db.c (thread_db_detach): Update.
1728 * monitor.c (monitor_detach): Update.
1729 * nto-procfs.c (procfs_detach): Update.
1730 * procfs.c (procfs_detach): Update.
1731 * record.c (record_detach): Update.
1732 * record.h (record_detach): Update.
1733 * remote-m32r-sdi.c (m32r_detach): Update.
1734 * remote-mips.c (mips_detach): Update.
1735 * remote-sim.c (gdbsim_detach): Update.
1736 * remote.c (remote_detach_1, remote_detach)
1737 (extended_remote_detach): Update.
1738 * sol-thread.c (sol_thread_detach): Update.
1739 * target.c (target_detach): Make "args" const.
1740 (init_dummy_target): Update.
1741 * target.h (struct target_ops) <to_detach>: Make argument const.
1742 (target_detach): Likewise.
1743 * windows-nat.c (windows_detach): Update.
1744
1745 2013-11-07 Doug Evans <dje@google.com>
1746
1747 PR 11786
1748 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1749 and align fields for PT_GNU_RELRO segments.
1750
1751 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1752
1753 PR python/15747
1754 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1755
1756 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1757
1758 * NEWS: Document Python temporary breakpoint support.
1759 * python/py-breakpoint.c (bppy_get_temporary): New function.
1760 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1761 to temporary if True.
1762
1763 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1764
1765 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1766 removed to allow analyzing unconditional branch instructions
1767 with PC-relative offsets of zero.
1768
1769 2013-11-07 Yao Qi <yao@codesourcery.com>
1770
1771 * mi/mi-cmd-var.c: Include "language.h".
1772 (mi_cmd_var_info_expression): Get language name from
1773 language_defn.
1774 * varobj.c (varobj_language_string): Remove.
1775 (variable_language): Remove declaration.
1776 (languages): Remove.
1777 (varobj_get_language): Change the type of return value.
1778 (variable_language): Remove.
1779 * varobj.h (enum varobj_languages): Remove.
1780 (varobj_language_string): Remove declaration.
1781 (varobj_get_language): Update declaration.
1782
1783 2013-11-07 Yao Qi <yao@codesourcery.com>
1784
1785 * language.h (struct language_defn) <la_natural_name>: New
1786 field.
1787 * ada-lang.c (ada_language_defn): Initialize field
1788 'la_natural_name'.
1789 * c-lang.c (c_language_defn): Likewise.
1790 (cplus_language_defn, asm_language_defn): Likewise.
1791 * d-lang.c (d_language_defn): Likewise.
1792 * f-lang.c (f_language_defn): Likewise.
1793 * go-lang.c (go_language_defn): Likewise.
1794 * jv-lang.c (java_language_defn): Likewise.
1795 * language.c (unknown_language_defn ): Likewise.
1796 (auto_language_defn): Likewise.
1797 * m2-lang.c (m2_language_defn): Likewise.
1798 * objc-lang.c (objc_language_defn): Likewise.
1799 * opencl-lang.c (opencl_language_defn): Likewise.
1800 * p-lang.c (pascal_language_defn): Likewise.
1801
1802 2013-11-07 Yao Qi <yao@codesourcery.com>
1803
1804 * language.c (language_str): Return const char *.
1805 (add_language): Add const to 'language_names'
1806 * language.h (struct language_defn) <la_name>: Add const.
1807 (language_str: Update declaration.
1808
1809 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1810
1811 * s390-linux-nat.c (s390_read_description): Consider the TE field
1812 in the HWCAP for determining 'have_regset_tdb'.
1813
1814 2013-11-06 Will Newton <will.newton@linaro.org>
1815
1816 PR gdb/12866
1817 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1818 values. (read_partial_die): Likewise.
1819
1820 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1821
1822 PR cli/16122
1823 * top.c (command_line_input): Unify interactivity tests to use
1824 input_from_terminal_p.
1825 * event-top.c (command_line_handler): Likewise.
1826
1827 2013-11-06 Yao Qi <yao@codesourcery.com>
1828
1829 * Makefile.in (check-perf): New target.
1830
1831 2013-11-05 Will Newton <will.newton@linaro.org>
1832
1833 PR gdb/7670
1834 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1835 (arm_print_float_info): Likewise.
1836
1837 2013-11-04 Anton Blanchard <anton@samba.org>
1838
1839 * target.c (memory_xfer_partial): Cap write to 4KB.
1840
1841 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1842
1843 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1844 probe scan even when the arch provides no get_longjmp_target.
1845
1846 2013-10-31 Pedro Alves <palves@redhat.com>
1847
1848 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1849 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1850 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1851 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1852 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1853 <bpstat handling>: If the bpstat chain wants the signal to be
1854 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1855 GDB_SIGNAL_TRAP.
1856
1857 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1858
1859 * breakpoint.c (update_watchpoint): Update error message and add
1860 an additional error message.
1861
1862 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1863
1864 * s390-tdep.h: Rename to...
1865 * s390-linux-tdep.h: ...here.
1866 * s390-tdep.c: Rename to...
1867 * s390-linux-tdep.c: ...here. Adjust #include.
1868 * s390-nat.c: Rename to...
1869 * s390-linux-nat.c: ...here. Adjust #include.
1870 * config/s390/s390.mh: Rename to...
1871 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1872 s390-linux-nat.o.
1873 * configure.host: Reflect host rename "s390" -> "linux".
1874 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1875 * Makefile.in (ALL_TARGET_OBS): Likewise.
1876 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1877 s390-linux-tdep.h.
1878 (ALLDEPFILES): Reflect rename of .c files.
1879
1880 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1881
1882 * s390-nat.c: Whitespace cleanup.
1883 * s390-tdep.c: Likewise.
1884 * s390-tdep.h: Remove empty line at end of file.
1885
1886 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1887
1888 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1889 siginfo_size.
1890
1891 2013-10-29 Tom Tromey <tromey@redhat.com>
1892
1893 * utils.c (reg): Move undefinition...
1894 * gdb_curses.h: ... here. Update comment to mention AIX.
1895
1896 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1897
1898 * exec.h (add_target_sections_of_objfile): New declaration.
1899 * exec.c (add_target_sections_of_objfile): New function.
1900 * symfile.c (add_symbol_file_command): Update current target sections.
1901 (remove_symbol_file_command): New command.
1902 (symfile_free_objfile): New function.
1903 (_initialize_symfile): Register observer for free_objfile events.
1904 * NEWS: Add description of the remove-symbol-file command.
1905 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1906 * objfiles.c (free_objfile): Notify free_objfile.
1907 (is_addr_in_objfile): New function.
1908 * objfiles.h (is_addr_in_objfile): New declaration.
1909 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1910 events instead of solib_unloaded events.
1911 (_initialize_printcmd): Register observer for free_objfile instead
1912 of solib_unloaded notifications.
1913 * solib.c (remove_user_added_objfile): New function.
1914 (_initialize_symfile): Add remove-symbol-file.
1915
1916 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1917
1918 * infcmd.c (default_print_one_register_info): Use val_print to
1919 print all values even optimized out or unavailable ones. Don't
1920 try to print a raw form of optimized out or unavailable values.
1921
1922 2013-10-29 Yao Qi <yao@codesourcery.com>
1923
1924 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1925 parameter 'arg' instead of from program_space_data.
1926 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1927 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1928 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1929 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1930 * inflow.c (inflow_inferior_data_cleanup): Get data from
1931 parameter 'arg' instead of inferior_data.
1932 * registry.h: Add comments.
1933
1934 2013-10-28 Pedro Alves <palves@redhat.com>
1935
1936 * breakpoint.c (watchpoints_triggered)
1937 <!target_stopped_data_address>: Hardcode return 1.
1938
1939 2013-10-28 Pedro Alves <palves@redhat.com>
1940
1941 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1942 level and reindent.
1943
1944 2013-10-28 Pedro Alves <palves@redhat.com>
1945
1946 * infrun.c (process_event_stop_test): New function, factored out
1947 from handle_inferior_event.
1948 (handle_inferior_event): 'process_event_stop_test' is now a
1949 function instead of a goto label -- adjust.
1950
1951 2013-10-28 Pedro Alves <palves@redhat.com>
1952
1953 * infrun.c (handle_inferior_event): Move process_event_stop_test
1954 goto label to the else branch of the ecs->random_signal check,
1955 along with FRAME and GDBARCH re-fetching.
1956
1957 2013-10-28 Pedro Alves <palves@redhat.com>
1958
1959 * infrun.c (switch_back_to_stepped_thread): New function, factored
1960 out from handle_inferior_event.
1961 (handle_inferior_event): Adjust to call
1962 switch_back_to_stepped_thread. Call it also at the tail of the
1963 random signal handling, and return, instead of also handling
1964 random signals just before the stepping tests.
1965
1966 2013-10-28 Pedro Alves <palves@redhat.com>
1967
1968 * infrun.c (clear_stop_func): Delete.
1969 (handle_inferior_event): Don't call clear_stop_func and don't
1970 clear 'ecs->random_signal'.
1971
1972 2013-10-27 Yao Qi <yao@codesourcery.com>
1973
1974 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1975 (varobj_create, varobj_get_path_expr): Update.
1976 (varobj_value_has_mutated, varobj_update): Likewise.
1977 (create_child_with_value, new_root_variable): Likewise.
1978 (number_of_children, name_of_variable): Likewise.
1979 (value_of_child, my_value_of_variable): Likewise.
1980 (varobj_value_is_changeable_p): Likewise.
1981
1982 2013-10-25 Yao Qi <yao@codesourcery.com>
1983
1984 * language.h (struct lang_varobj_ops): Declare.
1985 (struct language_defn) <la_varobj_ops>: New field.
1986 * ada-lang.c: Include "varobj.h"
1987 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1988 ada_varobj_ops.
1989 * c-lang.c: Include "varobj.h"
1990 (c_language_defn): Initialize field 'la_varobj_ops' with
1991 c_varobj_ops.
1992 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1993 cplus_varobj_ops.
1994 (asm_language_defn): Initialize field 'la_varobj_ops' with
1995 default_varobj_ops.
1996 (minimal_language_defn): Likewise.
1997 * d-lang.c (d_language_defn): Likewise.
1998 * f-lang.c (f_language_defn): Likewise.
1999 * go-lang.c (go_language_defn): Likewise.
2000 * m2-lang.c (m2_language_defn): Likewise.
2001 * objc-lang.c (objc_language_defn): Likewise.
2002 * opencl-lang.c (opencl_language_defn): Likewise.
2003 * p-lang.c (pascal_language_defn): Likewise.
2004 * language.c (unknown_language_defn): Likewise.
2005 (auto_language_defn): Likewise.
2006 (local_language_defn): Likewise.
2007 * jv-lang.c (java_language_defn): Initialize field
2008 'la_varobj_ops' with java_varobj_ops.
2009 * varobj.c (varobj_create): Update.
2010 * varobj.h (default_varobj_ops): Define macro.
2011
2012 2013-10-25 Pedro Alves <palves@redhat.com>
2013
2014 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2015 static field value.
2016 (cp_print_static_field): If the value is entirely optimized out,
2017 print <optimized out> here.
2018 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2019 static field value.
2020 * p-valprint.c (pascal_object_print_static_field): If the value is
2021 entirely optimized out, print <optimized out> here.
2022 * valops.c (do_search_struct_field)
2023 (value_struct_elt_for_reference): No longer handle a NULL static
2024 field value.
2025 * value.c (value_static_field): Return an optimized out value
2026 instead of NULL.
2027
2028 2013-10-25 Yao Qi <yao@codesourcery.com>
2029
2030 * remote.c (remote_traceframe_info): Return early if
2031 traceframe is not selected.
2032
2033 2013-10-25 Yao Qi <yao@codesourcery.com>
2034
2035 * tracepoint.c (traceframe_fun): Remove.
2036 (traceframe_sal): Remove.
2037 (set_traceframe_context): Add local variables.
2038
2039 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2040
2041 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2042 and parameter name.
2043
2044 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2045
2046 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2047 failure from register information collection.
2048
2049 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2050
2051 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2052 member.
2053 (linux_corefile_thread_callback): Update accordingly.
2054 (linux_make_corefile_notes): Likewise.
2055
2056 2013-10-24 Pedro Alves <palves@redhat.com>
2057
2058 * NEWS (New options): Mention set/show startup-with-shell.
2059 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2060 instead of 3.
2061 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2062 startup-with-shell'.
2063 (show_startup_with_shell): New function.
2064 (_initialize_fork_child): Register the set/show startup-with-shell
2065 commands.
2066 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2067 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2068 * procfs.c (procfs_init_inferior): Remove comment.
2069 * infcmd.c (startup_with_shell): New global.
2070 * inferior.h (startup_with_shell): Declare global.
2071 (STARTUP_WITH_SHELL): Delete.
2072 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2073
2074 2013-10-23 Pedro Alves <palves@redhat.com>
2075
2076 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2077 * common/signals.c: Include "gdb_assert.h".
2078 (signals): New field 'symbol'.
2079 (SET): Use the 'symbol' parameter.
2080 (gdb_signal_to_symbol_string): New function.
2081 * infrun.c (handle_inferior_event) <random signal>: In debug
2082 output, print the random signal enum as string in addition to its
2083 number.
2084 * target/waitstatus.c (target_waitstatus_to_string): Print the
2085 signal's enum value as string instead of the (POSIX) signal name.
2086
2087 2013-10-23 Gary Benson <gbenson@redhat.com>
2088
2089 PR 16013
2090 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2091 from 32 to 18. Adjusted fscanf format string accordingly.
2092 (Avoids leaving cmd unterminated.)
2093 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2094 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2095 that local_address and remote_address will not overflow.
2096 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2097 leaving dependencies unterminated. Parse size as "%u" to match
2098 definition.
2099
2100 2013-10-22 Pedro Alves <palves@redhat.com>
2101
2102 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2103 set ecs->random signal.
2104
2105 2013-10-22 Pedro Alves <palves@redhat.com>
2106
2107 * infrun.c (keep_going): Update comments.
2108
2109 2013-10-22 Pedro Alves <palves@redhat.com>
2110
2111 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2112 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2113
2114 2013-10-22 Pedro Alves <palves@redhat.com>
2115
2116 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2117 GDB_EXC_BAD_ACCESS.
2118 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2119 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2120 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2121 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2122 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2123 (GDB_SIGNAL_LAST): Change description string.
2124 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2125 Adjust to signal renaming.
2126 * darwin-nat.c (darwin_decode_message): Likewise.
2127
2128 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2129
2130 * MAINTAINERS (Write After Approval): Add myself to the list.
2131
2132 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2133
2134 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2135 forced off, downgrade them to software watchpoints if possible,
2136 and error out if not possible.
2137 (watch_command_1): Move watchpoint type selection closer to
2138 watchpoint creation, and extend the comments.
2139
2140 2013-10-18 Pedro Alves <palves@redhat.com>
2141
2142 PR gdb/16062
2143 * infrun.c (handle_inferior_event): Keep going if we got a random
2144 signal we should not stop for, instead of falling through to the
2145 step tests.
2146
2147 2013-10-18 Yao Qi <yao@codesourcery.com>
2148
2149 * c-varobj.c (cplus_number_of_children): Fix indentation.
2150
2151 2013-10-17 Tom Tromey <tromey@redhat.com>
2152
2153 PR gdb/15995:
2154 * printcmd.c (printcmd): Call gdb_flush.
2155
2156 2013-10-17 Tom Tromey <tromey@redhat.com>
2157
2158 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2159 (elf_locate_sections): Update.
2160
2161 2013-10-17 Yao Qi <yao@codesourcery.com>
2162
2163 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2164 * ada-varobj.c: Remove the include of ada-varobj.h.
2165 (ada_varobj_get_number_of_children): Declare.
2166 (ada_varobj_get_name_of_child): Make it static.
2167 (ada_varobj_get_path_expr_of_child): Likewise.
2168 (ada_varobj_get_value_of_child): Likewise.
2169 (ada_varobj_get_type_of_child): Likewise.
2170 (ada_varobj_get_value_of_array_variable): Likewise.
2171 * ada-varobj.h: Remove.
2172
2173 2013-10-17 Yao Qi <yao@codesourcery.com>
2174
2175 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2176 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2177 * ada-varobj.c: Include "varobj.h".
2178 (ada_number_of_children): New. Moved from varobj.c.
2179 (ada_name_of_variable, ada_name_of_child): Likewise.
2180 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2181 (ada_type_of_child, ada_value_of_variable): Likewise.
2182 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2183 (ada_varobj_ops): New.
2184 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2185 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2186 * gdbtypes.h (get_target_type): Declare.
2187 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2188 "ada-lang.h".
2189 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2190 (ANONYMOUS_UNION_NAME): Likewise.
2191 (get_type, get_value_type, get_target_type): Remove declarations.
2192 (value_get_print_value, varobj_value_get_print_value): Likewise.
2193 (c_number_of_children, c_name_of_variable): Likewise.
2194 (c_name_of_child, c_path_expr_of_child): Likewise.
2195 (c_value_of_child, c_type_of_child): Likewise.
2196 (c_value_of_variable, cplus_number_of_children): Likewise.
2197 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2198 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2199 (cplus_value_of_child, cplus_type_of_child): Likewise.
2200 (cplus_value_of_variable, java_number_of_children): Likewise.
2201 (java_name_of_variable, java_name_of_child): Likewise.
2202 (java_path_expr_of_child, java_value_of_child): Likewise.
2203 (java_type_of_child, java_value_of_variable): Likewise.
2204 (ada_number_of_children, ada_name_of_variable): Likewise.
2205 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2206 (ada_value_of_child, ada_type_of_child): Likewise.
2207 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2208 (ada_value_has_mutated): Likewise.
2209 (struct language_specific): Move it to varobj.h.
2210 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2211 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2212 Callers update.
2213 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2214 Make it extern.
2215 (is_anonymous_child): Move it to c-varobj.c and rename to
2216 varobj_is_anonymous_child. Caller update.
2217 (get_type): Move it to c-varobj.c.
2218 (get_value_type): Rename it varobj_get_value_type. Make it
2219 extern.
2220 (get_target_type): Move it gdbtypes.c.
2221 (varobj_formatted_print_options): New function.
2222 (value_get_print_value): Rename it to
2223 varobj_value_get_print_value and make it extern.
2224 (varobj_value_is_changeable_p): Make it extern.
2225 (adjust_value_for_child_access): Move it to c-varobj.c.
2226 (default_value_is_changeable_p): Rename it to
2227 varobj_default_value_is_changeable_p. Make it extern.
2228 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2229 (c_name_of_child, c_path_expr_of_child): Likewise.
2230 (c_value_of_child, c_type_of_child): Likewise.
2231 (c_value_of_variable, cplus_number_of_children): Likewise.
2232 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2233 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2234 (cplus_value_of_child, cplus_type_of_child): Likewise.
2235 (cplus_value_of_variable): Likewise.
2236 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2237 (java_name_of_child, java_path_expr_of_child): Likewise.
2238 (java_value_of_child, java_type_of_child): Likewise.
2239 (java_value_of_variable): Likewise.
2240 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2241 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2242 (ada_value_of_child, ada_type_of_child): Likewise.
2243 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2244 (ada_value_has_mutated): Likewise.
2245 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2246 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2247 (c_varobj_ops, cplus_varobj_ops): Declare.
2248 (java_varobj_ops, ada_varobj_ops): Declare.
2249 (varobj_default_value_is_changeable_p): Declare.
2250 (varobj_value_is_changeable_p): Declare.
2251 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2252 (varobj_get_path_expr_parent): Declare.
2253 (varobj_value_get_print_value): Declare.
2254 (varobj_formatted_print_options): Declare.
2255 (varobj_restrict_range): Declare.
2256
2257 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2258
2259 * target/waitstatus.h (target_waitkind): Remove spurious
2260 character from the comments.
2261
2262 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2263
2264 * gdbarch.sh (get_longjmp_target): Add method documentation.
2265 * gdbarch.h: Regenerate.
2266
2267 2013-10-16 Tom Tromey <tromey@redhat.com>
2268
2269 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2270 label.
2271
2272 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2273
2274 * gcore.in: Call GDB using the full path to the gcore script.
2275 Error out if the GDB binary is not found.
2276
2277 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2278
2279 PR gdb/16014
2280 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2281 sizeof.
2282
2283 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2284
2285 PR gdb/16042
2286 * target.c (target_disable_btrace): Fix invalid return value for
2287 void function.
2288 (target_teardown_btrace): Likewise.
2289
2290 2013-10-14 Yao Qi <yao@codesourcery.com>
2291
2292 * varobj.c (struct varobj): Move most of the fields to
2293 varobj.h.
2294 (struct varobj_dynamic): New struct.
2295 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2296 (varobj_has_more): Likewise.
2297 (dynamic_varobj_has_child_method): Likewise.
2298 (update_dynamic_varobj_children): Likewise.
2299 (varobj_get_num_children): Likewise.
2300 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2301 (install_new_value_visualizer): Likewise.
2302 (install_new_value_visualizer, install_new_value): Likewise.
2303 (varobj_update, new_variable, free_variable): Likewise.
2304 (my_value_of_variable, value_get_print_value): Likewise.
2305 (install_visualizer): Change the type of parameter 'var' to
2306 'struct varobjd_dynamic *'. Callers update.
2307 * varobj.h (struct varobj): Moved from varobj.c.
2308 (struct varobj) <dynamic>: New field.
2309
2310 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2311
2312 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2313 as the preferred name of r30.
2314 * nios2-linux-tdep.c (reg_offsets): Likewise.
2315 * features/nios2-cpu.xml: Likewise.
2316 * features/nios2-linux.c: Regenerated.
2317 * features/nios2.c: Regenerated.
2318 * regformats/nios2-linux.dat: Regenerated.
2319
2320 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2321
2322 Canonicalize directories for EXEC_FILENAME.
2323 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2324 exec_filename.
2325 * utils.c (gdb_realpath_keepfile): New function.
2326 * utils.h (gdb_realpath_keepfile): New declaration.
2327
2328 2013-10-11 Doug Evans <dje@google.com>
2329
2330 * Makefile.in (GDBFLAGS): New variable.
2331 (run): New rule.
2332
2333 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2334
2335 * NEWS: Add entry documenting the new "-catch-assert" and
2336 "-catch-exception" GDB/MI commands.
2337
2338 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2339
2340 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2341 "enabled".
2342 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2343 "enabled". Set B->ENABLE_STATE accordingly.
2344 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2345 ada-lang.c.
2346 (create_ada_exception_catchpoint): Add declaration.
2347 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2348 (create_ada_exception_catchpoint): Make non-static. Add new
2349 parameter "disabled". Use it in call to
2350 init_ada_exception_breakpoint.
2351 (catch_ada_exception_command): Add parameter "enabled" in call
2352 to create_ada_exception_catchpoint.
2353 (catch_assert_command): Likewise.
2354
2355 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2356 Add declarations.
2357 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2358 "catch-exception" commands.
2359 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2360 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2361
2362 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2363
2364 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2365 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2366 of all its enumerates with "ada_". Update the rest of this
2367 file throughout.
2368
2369 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2370
2371 * ada-lang.c (ada_decode_exception_location): Delete.
2372 (create_ada_exception_catchpoint): Remove arguments "sal",
2373 "addr_string" and "ops". Add argument "ex_kind" instead.
2374 Adjust implementation accordingly, calling ada_exception_sal
2375 to get the entities it no longer gets passed as arguments.
2376 Document the function's arguments.
2377 (catch_ada_exception_command): Use catch_ada_exception_command_split
2378 instead of ada_decode_exception_location, and update call to
2379 create_ada_exception_catchpoint.
2380 (catch_ada_assert_command_split): Renames
2381 ada_decode_assert_location. Remove parameters "addr_string" and
2382 "ops", and now returns void. Adjust implementation accordingly.
2383 Update the function documentation.
2384 (catch_assert_command): Use catch_ada_assert_command_split
2385 instead of ada_decode_assert_location. Update call to
2386 create_ada_exception_catchpoint.
2387
2388 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2389
2390 * utils.h (perror_warning_with_name): Add declaration.
2391 * utils.c (perror_warning_with_name): New function.
2392 * cli/cli-cmds.c (source_script_with_search): Add call to
2393 perror_warning_with_name if from_tty is nul.
2394
2395 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2396
2397 * utils.c (perror_string): New function, extracted out of
2398 throw_perror_with_name.
2399 (throw_perror_with_name): Rework to use perror_string.
2400
2401 2013-10-11 Yao Qi <yao@codesourcery.com>
2402
2403 * remote.c (discard_pending_stop_replies_in_queue): Update
2404 declaration.
2405 (struct stop_reply) <rs>: New field.
2406 (remove_stop_reply_of_remote_state): New function.
2407 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2408 Callers update. Pass remove_stop_reply_of_remote_state to
2409 QUEUE_iterate.
2410 (remote_parse_stop_reply): Initialize field 'rs'.
2411
2412 2013-10-10 Will Newton <will.newton@linaro.org>
2413
2414 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2415 linux_init_abi.
2416
2417 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2418
2419 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2420 serial_baud_show_cmd.
2421 (_initialize_cli_cmds): Delete the code creating the
2422 "set/show remotebaud" commands.
2423 * serial.c (baud_rate): Move here from top.c.
2424 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2425 (_initialize_serial): Create "set/show serial baud" commands.
2426 Add "set/show remotebaud" command aliases.
2427 * top.c (baud_rate): Moved to serial.c.
2428 * NEWS: Document the new "set/show serial baud" commands,
2429 replacing "set/show remotebaud".
2430
2431 2013-10-09 Pedro Alves <palves@redhat.com>
2432
2433 * breakpoint.c (insert_bp_location): Use memory_error_message to
2434 build the memory error string.
2435 * c-lang.c: Include "gdbcore.h".
2436 (c_get_string): Use memory_error to throw error.
2437 (target_xfer_memory_error): Delete.
2438 (memory_error_message): New, factored out from
2439 target_xfer_memory_error.
2440 (memory_error): Change parameter type to target_xfer_error.
2441 Rewrite.
2442 (read_memory): Use memory_error instead of
2443 target_xfer_memory_error.
2444 * gdbcore.h: Include "target.h".
2445 (memory_error): Change parameter type to target_xfer_error.
2446 (memory_error_message): Declare function.
2447 * target.c (target_read_memory, target_read_stack)
2448 (target_write_memory, target_write_raw_memory): Return
2449 TARGET_XFER_E_IO on error. Adjust comments.
2450 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2451 instead of EIO.
2452 * target.h (target_read, target_insert_breakpoint)
2453 (target_remove_breakpoint): Adjust comments.
2454 * valprint.c (partial_memory_read): Rename parameter, and adjust
2455 comment.
2456 (val_print_string): Use memory_error_message to build the memory
2457 error string.
2458
2459 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2460
2461 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2462 result variable. Rename variable fopen_e_ever_failed to
2463 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2464
2465 2013-10-09 Pedro Alves <palves@redhat.com>
2466
2467 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2468 (monitor_write_memory_longlongs, monitor_write_memory_block):
2469 Constify 'myaddr' parameter.
2470 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2471 helper.
2472 (monitor_xfer_partial): New function.
2473 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2474 hook. Install a to_xfer_partial hook.
2475
2476 2013-10-09 Tom Tromey <tromey@redhat.com>
2477
2478 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2479 bfd_get_alt_debug_link_info.
2480
2481 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2482
2483 New flag OBJF_NOT_FILENAME.
2484 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2485 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2486 allocate_objfile.
2487 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2488 symbol_file_add_from_bfd.
2489 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2490 allocate_objfile.
2491 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2492 NULL.
2493 * objfiles.h (OBJF_NOT_FILENAME): New.
2494
2495 2013-10-08 Tom Tromey <tromey@redhat.com>
2496
2497 * Makefile.in (SFILES): Add build-id.c.
2498 (HFILES_NO_SRCDIR): Add build-id.h.
2499 * build-id.c: New file, largely from elfread.c. Modified
2500 most functions.
2501 * build-id.h: New file.
2502 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2503 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2504 Search for dwz file using build-id.
2505 * elfread.c (build_id_bfd_get, build_id_verify)
2506 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2507
2508 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2509
2510 * ada-lang.c (compare_names_with_case): Renamed from
2511 compare_names, adding a new parameter "casing" and its handling.
2512 New function documentation.
2513 (compare_names): New function, implemented using
2514 compare_names_with_case.
2515
2516 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2517
2518 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2519
2520 2013-10-07 Tom Tromey <tromey@redhat.com>
2521
2522 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2523 demangled_names_hash.
2524 (free_objfile): Don't delete the demangled_names_hash.
2525 * objfiles.h (struct objfile_per_bfd_storage)
2526 <demangled_names_hash>: New field.
2527 (struct objfile) <demangled_names_hash>: Move to
2528 objfile_per_bfd_storage.
2529 * symfile.c (reread_symbols): Don't delete the
2530 demangled_names_hash.
2531 * symtab.c (create_demangled_names_hash): Update.
2532 (symbol_set_names): Update.
2533
2534 2013-10-07 Tom Tromey <tromey@redhat.com>
2535
2536 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2537 needs_relocations>: New fields.
2538 (gdb_bfd_requires_relocations): New function.
2539 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2540 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2541 the BFD needs relocations applied.
2542
2543 2013-10-07 Pedro Alves <palves@redhat.com>
2544
2545 PR breakpoints/11568
2546 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2547 the thread list" instead of "gone".
2548
2549 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2550
2551 * NEWS: Mention new convenience variable $_exitsignal.
2552 * corelow.c (core_open): Reset exit convenience variables. Set
2553 $_exitsignal to the uncaught signal which generated the corefile.
2554 * infrun.c (handle_inferior_event): Reset exit convenience
2555 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2556 (clear_exit_convenience_vars): New function.
2557 * inferior.h (clear_exit_convenience_vars): New prototype.
2558
2559 2013-10-06 Yao Qi <yao@codesourcery.com>
2560
2561 * varobj.h: Add comments to enum varobj_languages.
2562
2563 2013-10-04 Doug Evans <dje@google.com>
2564
2565 Add support for DWP file format version 2.
2566 * NEWS: Mention support for DWP file format version 2.
2567 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2568 union of asection, containing_section. New fields virtual_offset
2569 and is_virtual. Change type of readin filed from int to char.
2570 (dwo_sections, dwo_file): Tweak comments.
2571 (dwp_v2_section_ids): New enum.
2572 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2573 str_offsets, types.
2574 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2575 All uses updated.
2576 (virtual_v2_dwo_sections): New struct.
2577 (dwp_hash_table): New fields version, nr_columns. Change type of
2578 section_pool field to a union.
2579 (dwp_file): New field version.
2580 (dwarf2_has_info): Check for virtual sections.
2581 (get_containing_section): New function.
2582 (get_section_bfd_owner, get_section_bfd_section): Call it.
2583 (dwarf2_locate_sections): Update.
2584 (dwarf2_section_empty_p): Update.
2585 (dwarf2_read_section): Handle virtual sections.
2586 (locate_dwz_sections): Update.
2587 (create_dwp_hash_table): Document and handle V2 format.
2588 (locate_v1_virtual_dwo_sections): Renamed from
2589 locate_virtual_dwo_sections and update. All callers updated.
2590 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2591 Delete arg htab. Rename arg section_index to unit_index.
2592 All callers updated.
2593 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2594 All uses updated.
2595 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2596 (lookup_dwo_unit_in_dwp): Add V2 support.
2597 (dwarf2_locate_dwo_sections): Update.
2598 (dwarf2_locate_common_dwp_sections): Renamed from
2599 dwarf2_locate_dwp_sections and update. All callers updated.
2600 (dwarf2_locate_v2_dwp_sections): New function.
2601 (open_and_init_dwp_file): Add V2 support.
2602 (read_str_index): New locals str_section, str_offsets_section.
2603
2604 2013-10-04 Pedro Alves <palves@redhat.com>
2605
2606 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2607 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2608 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2609 describing comments with references to ptid.h.
2610 * common/ptid.h: Remove intro description of constructors,
2611 accessors and predicates.
2612 (struct ptid): Reformat.
2613 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2614 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2615 describing comments.
2616
2617 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2618
2619 * aix-thread.c (sync_threadlists): Add missing ')' in call
2620 to ptid_build.
2621
2622 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2623
2624 * procfs.c (procfs_init_inferior): Fix typo causing the build
2625 to fail.
2626
2627 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2628
2629 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2630
2631 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2632
2633 * mi/mi-main.c (run_one_inferior): Add function description.
2634 Make ARG a pointer to an integer whose value determines whether
2635 we should "run" or "start" the program.
2636 (mi_cmd_exec_run): Add handling of the "--start" option.
2637 Reject all other command-line options.
2638 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2639
2640 2013-10-04 Yao Qi <yao@codesourcery.com>
2641
2642 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2643 (struct notif_client) <pending_event>: Moved
2644 to struct remote_notif_state.
2645 <id>: New field.
2646 (struct remote_notif_state) <pending_event>: New field.
2647 (notif_event_xfree): Declare.
2648 * remote-notif.c (handle_notification): Adjust.
2649 (notif_event_xfree): New function.
2650 (do_notif_event_xfree): Call notif_event_xfree.
2651 (remote_notif_state_xfree): Call notif_event_xfree to free
2652 each element in field pending_event.
2653 * remote.c (discard_pending_stop_replies): Remove declaration.
2654 (discard_pending_stop_replies_in_queue): Declare.
2655 (remote_close): Call discard_pending_stop_replies_in_queue
2656 instead of discard_pending_stop_replies.
2657 (remote_start_remote): Adjust.
2658 (stop_reply_xfree): Call notif_event_xfree.
2659 (notif_client_stop): Adjust initialization.
2660 (remote_notif_remove_all): Rename it to ...
2661 (remove_stop_reply_for_inferior): ... this. Update comments.
2662 Don't check INF is NULL.
2663 (discard_pending_stop_replies): Return early if notif_state is
2664 NULL. Adjust. Don't check INF is NULL.
2665 (remote_notif_get_pending_events): Adjust.
2666 (discard_pending_stop_replies_in_queue): New function.
2667 (remote_wait_ns): Likewise.
2668
2669 2013-10-04 Yao Qi <yao@codesourcery.com>
2670
2671 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2672 (notif_queue): Remove.
2673 (remote_notif_process): Add one parameter 'notif_queue'.
2674 Update comments. Callers update.
2675 (remote_async_get_pending_events_token): Remove.
2676 (remote_notif_register_async_event_handler): Remove.
2677 (remote_notif_unregister_async_event_handler): Remove.
2678 (handle_notification): Add parameter 'notif_queue'. Update
2679 comments. Callers update.
2680 (notif_xfree): Remove.
2681 (remote_notif_state_allocate): New function.
2682 (remote_notif_state_xfree): New function.
2683 (_initialize_notif): Remove code to allocate queue.
2684 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2685 (struct remote_notif_state): New.
2686 (handle_notification): Update declaration.
2687 (remote_notif_process): Likewise.
2688 (remote_notif_register_async_event_handler): Remove.
2689 (remote_notif_unregister_async_event_handler): Remove.
2690 (remote_notif_state_allocate): Declare.
2691 (remote_notif_state_xfree): Declare.
2692 * remote.c (struct remote_state) <notif_state>: New field.
2693 (remote_close): Don't call
2694 remote_notif_unregister_async_event_handler. Call
2695 remote_notif_state_xfree.
2696 (remote_open_1): Don't call
2697 remote_notif_register_async_event_handler. Call
2698 remote_notif_state_allocate.
2699
2700 2013-10-04 Yao Qi <yao@codesourcery.com>
2701
2702 * varobj.c (create_child_with_value): Remove 'const' from the
2703 type of parameter 'name'.
2704 (varobj_add_child): Likewise.
2705 (install_dynamic_child): Remove 'const' from the type of
2706 parameter 'name'.
2707 (varobj_add_child): Likewise.
2708 (create_child_with_value): Likewise. Update comments. Don't
2709 duplicate 'name'.
2710 (update_dynamic_varobj_children): Duplicate 'name'
2711 and pass it to install_dynamic_child.
2712
2713 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2714
2715 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2716 conversion logic to occur after PyLong_Check. Comment on order
2717 change significance.
2718 * python/py-arch.c (archpy_disassemble): Comment on order of
2719 conversion for integers and longs.
2720
2721 2013-10-03 Pedro Alves <palves@redhat.com>
2722
2723 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2724 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2725 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2726 PTRACE_O_TRACEFORK is not supported.
2727 (linux_test_for_tracesysgood): New function.
2728 (linux_test_for_tracefork): New function, factored out from
2729 linux_check_ptrace_features, and also don't kill child_pid here.
2730
2731 2013-10-03 Tristan Gingold <gingold@adacore.com>
2732
2733 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2734 Remove verbose error reporting. Use detected state to
2735 thread_set_state call.
2736 (i386_darwin_dr_get): Fix return type. Remove verbose error
2737 report.
2738 Remove trailing spaces.
2739
2740 2013-10-02 Pedro Alves <palves@redhat.com>
2741
2742 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2743 val_print_optimized_out.
2744 * jv-valprint.c (java_print_value_fields): Likewise.
2745 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2746 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2747 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2748 new optimized out value.
2749 * findvar.c (address_from_register): Likewise.
2750 * frame.c (put_frame_register): Tweak error string to say the
2751 register was not saved, rather than optimized out.
2752 * infcmd.c (default_print_one_register_info): Adjust call to
2753 val_print_optimized_out. Use value_of_register instead of
2754 get_frame_register_value.
2755 * mi/mi-main.c (output_register): Use value_of_register instead of
2756 get_frame_register_value.
2757 * valprint.c (valprint_check_validity): Likewise.
2758 (val_print_optimized_out): New value parameter. If the value is
2759 lval_register, print <not saved> instead.
2760 (value_check_printable, val_print_scalar_formatted): Adjust calls
2761 to val_print_optimized_out.
2762 * valprint.h (val_print_optimized_out): New value parameter.
2763 * value.c (struct value) <optimized_out>: Extend comment.
2764 (error_value_optimized_out): New function.
2765 (require_not_optimized_out): Use it. Use a different string for
2766 lval_register values.
2767 * value.h (error_value_optimized_out): New declaration.
2768 * NEWS: Mention <not saved>.
2769
2770 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2771
2772 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2773 strcmp to compare two symtab filenames.
2774
2775 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2776
2777 * symtab.c (search_symbols_equal): Delete.
2778 (sort_search_symbols_remove_dups): Replace call to
2779 search_symbols_equal by call to compare_search_syms,
2780 adjusting as necessary.
2781
2782 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2783
2784 PR python/15579
2785 * python/python.c: Document gdb.execute command in Python help.
2786
2787 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2788
2789 * python/py-frame.c (frame_info_to_frame_object): Use
2790 gdbpy_convert_exception. Clean up Python object on failure.
2791
2792 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2793
2794 * python/lib/gdb/command/frame_filters.py
2795 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2796 (ShowFrameFilterPriority.invoke): Ditto.
2797
2798 2013-10-01 Keith Seitz <keiths@redhat.com>
2799
2800 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2801 (parse_linespec): Make 'argptr' const.
2802 Remove temporary cast of 'argptr' to const char **.
2803 (decode_line_full): Pass const pointer to parse_linespec.
2804 (decode_line_1): Likewise.
2805 (decode_objc): Make local variable 'new_argptr' const.
2806 (find_function_symbols): Remove temporary cast to char *
2807 to find_imps.
2808 * objc-lang.c (find_imps): Make argument 'method' const.
2809 Return const.
2810 * objc-lang.h (find_imps): Likewise.
2811
2812 2013-10-01 Keith Seitz <keiths@redhat.com>
2813
2814 * completer.c (skip_quoted_chars): Make all arguments const.
2815 Return const.
2816 (skip_quoted): Likewise.
2817 * completer.h (skip_quoted_chars): Likewise.
2818 (skip_quoted): Likewise.
2819 * defs.h (skip_quoted): Remove duplicate declaration.
2820 * jv-exp.y: Include completer.h.
2821 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2822 * p-exp.y: Include completer.h.
2823
2824 2013-10-01 Keith Seitz <keiths@redhat.com>
2825
2826 * c-exp.y (parse_number): Make first argument const.
2827 Make a copy of the input to manipulate.
2828 (c_parse_escape): Make first argument const.
2829 Make local variable 'tokptr' const.
2830 (parse_string_or_char): Make first two arguments const.
2831 (macro_original_text): Make const.
2832 (lex_one_token): Make local variable 'tokstart' const.
2833 Likewise for local variables named 'p'.
2834 Cast away const for struct stoken (temporary).
2835 * c-lang.h (c_parse_escpae): Make first argument const.
2836 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2837 const.
2838 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2839 var_string case.
2840 * f-exp.y (parse_number): Make first argument const.
2841 (match_string_literal): Make local variable 'tokstart'
2842 const.
2843 (yylex): Make local variable 'p' const.
2844 Cast away const for struct stoken (temporary).
2845 * go-exp.y (parse_number): Make first argument const.
2846 (parse_string_or_char): Likewise.
2847 Make local variable 'tokstart' const.
2848 (lex_one_token): Likewise for numerous locals called 'p'.
2849 Cast away const for struct stoken (temporary).
2850 * jv-exp.y (parse_number): Make first argument const.
2851 Make local variables 'tokstart' and 'tokptr' const.
2852 Cast away const for call to skip_quoted (temporary).
2853 (yylex): Make local variable 'p' const.
2854 Cast away const for struct stoken (temporary).
2855 * m2-exp.y (parse_number): Make local variable 'p' const.
2856 (yylex): Likewise for 'tokstart'.
2857 Cast away const for struct stoken (temporary).
2858 Make local variable 'p' const.
2859 * macroexp.c (get_character_constant): Pass a const string
2860 to c_parse_escape.
2861 (get_string_literal): Likewise.
2862 (macro_expand_next): Make first argument const.
2863 Cast away const for init_shared_buffer.
2864 * macroexp.h (macro_expand_next): Make first argument const.
2865 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2866 Pass a const string to c_parse_escape.
2867 Make local variables 'p' and 'namestart' const.
2868 * parse.c (lexptr): Make const.
2869 (prev_lexptr): Likewise.
2870 (find_template_name_end): Return const.
2871 Make argument const, too.
2872 (parse_exp_in_context): Make first argument const.
2873 Remove the entire const_hack.
2874 (parse_exp_in_context_1): Make first argument const.
2875 * parser-defs.h (find_template_name_end): Return const.
2876 Make argument const, too.
2877 (lexptr): Make const.
2878 (prev_lexptr): Likewise.
2879 * utils.c (parse_escape): Make second argument const.
2880 * utils.h (parse_escape): Likewise.
2881
2882 2013-10-01 Keith Seitz <keiths@redhat.com>
2883
2884 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2885 is now const.
2886 (block_lookup): Make 'raw_name' and 'name' const.
2887 * ada-lex.l (processString): Update for struct stoken.ptr.
2888 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2889 (operator_stoken): Likewise.
2890 (lex_one_token): Remove temporary cast to char * for
2891 'yylval.sval.ptr'.
2892 * f-exp.y (yylex): Likewise.
2893 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2894 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2895 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2896 'yylval.sval.ptr'.
2897 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2898 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2899 * linespec.c (struct ls_parser): Make 'stream' const.
2900 (find_parameter_list_end): Make argument 'input' and local
2901 variable 'p' const.
2902 (linespec_lexer_lex_string): Make local variables 'start' and
2903 'p' const.
2904 Use skip_spaces_const instead of skip_spaces.
2905 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2906 const.
2907 (parse_linespec): Temporarily cast 'argptr' to const for
2908 'parser->lexer.stream'.
2909 * m2-exp.y (yylex): Remove temporary cast to char * for
2910 'yylval.sval.ptr'.
2911 * objc-lang.c (add_msglist): Make local variable 'p' const.
2912 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2913 (exp : STRING): Make 'sp' const.
2914 (parse_number): Make argument 'p' const.
2915 * parser-defs.h (struct stoken): Make 'ptr' const.
2916
2917 2013-10-01 Doug Evans <dje@google.com>
2918
2919 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2920
2921 2013-10-01 Yao Qi <yao@codesourcery.com>
2922
2923 * varobj.c (c_value_of_root): Remove declaration.
2924 (cplus_value_of_root, java_value_of_root): Likewise.
2925 (ada_value_of_root): Likewise.
2926 (struct language_specific) <value_of_root>: Remove.
2927 (languages): Update initialization.
2928 (check_scope): Move earlier.
2929 (c_value_of_root): Move earlier and rename to ...
2930 (value_of_root_1): ... this.
2931 (value_of_root): Caller update.
2932 (cplus_value_of_root, java_value_of_root): Remove.
2933 (ada_value_of_root): Remove.
2934
2935 2013-10-01 Yao Qi <yao@codesourcery.com>
2936
2937 * varobj.c (varobj_format_string): Remove "unknown".
2938 (languages): Remove the first element.
2939 * varobj.h (enum varobj_languages): Remove vlang_c.
2940
2941 2013-10-01 Yao Qi <yao@codesourcery.com>
2942
2943 * varobj.c (struct language_specific) <language>: Remove.
2944 (languages): Update the initialization.
2945
2946 2013-10-01 Yao Qi <yao@codesourcery.com>
2947
2948 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2949 "solib-target.h". Include "windows-tdep.h".
2950 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2951 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2952 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2953 windows-tdep.o to gdb_target_obs.
2954
2955 2013-10-01 Yao Qi <yao@codesourcery.com>
2956
2957 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2958 "solib-target.h".
2959 (amd64_windows_init_abi): Don't call set_solib_ops and
2960 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2961 windows_init_abi instead.
2962 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2963 "solib-target.h".
2964 (i386_cygwin_init_abi): Don't call set_solib_ops,
2965 set_gdbarch_has_dos_based_file_system and
2966 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2967 windows_init_abi instead.
2968 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2969 (windows_init_abi): New function.
2970 (windows_iterate_over_objfiles_in_search_order): Make it
2971 static.
2972 * windows-tdep.h (windows_init_abi): Declare.
2973 (windows_iterate_over_objfiles_in_search_order): Remove
2974 declaration.
2975
2976 2013-10-01 Jerome Guitton <guitton@adacore.com>
2977
2978 Checked in by Joel Brobecker <brobecker@adacore.com>
2979 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2980 incomplete dictionnary instead of None in case of missing
2981 environment variables.
2982 (elinos_init): in case of an incomplete environment, best
2983 effort to load system libraries instead of abort.
2984
2985 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2986
2987 * ada-lang.c (ada_has_this_exception_support): Ignore
2988 mst_solib_trampoline minimal symbols.
2989
2990 2013-09-30 Tristan Gingold <gingold@adacore.com>
2991
2992 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2993 hardware watchpoint.
2994 (i386_darwin_dr_set): Support 32 and 64 bit states.
2995 (i386_darwin_dr_get): Likewise.
2996 (i386_darwin_dr_set_control): Make static.
2997 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2998 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2999
3000 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
3001
3002 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3003 Replace TIDGET with ptid_get_lwp.
3004 Replace GET_LWP with ptid_get_lwp.
3005 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3006 Replace BUILD_THREAD with ptid_build.
3007 Replace BUILD_LWP with ptid_build.
3008 Replace PIDGET with ptid_get_pid.
3009 Replace TIDGET with ptid_get_lwp.
3010 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3011 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3012 Replace TIDGET with ptid_get_lwp.
3013 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3014 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3015 Replace TIDGET with ptid_get_lwp.
3016 Replace GET_LWP with ptid_get_lwp.
3017 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3018 * auxv.c: Likewise.
3019 * breakpoint.c: Likewise.
3020 * common/ptid.c (ptid_is_pid): Condense check for
3021 null_ptid and minus_one_ptid.
3022 (ptid_lwp_p): New function.
3023 (ptid_tid_p): New function.
3024 * common/ptid.h: Update comments for accessors.
3025 (ptid_lwp_p): New prototype.
3026 (ptid_tid_p): New prototype.
3027 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3028 * gcore.c: Replace PIDGET with ptid_get_pid.
3029 * gdbthread.h: Likewise.
3030 * gnu-nat.c: Likewise.
3031 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3032 Replace TIDGET with ptid_get_lwp.
3033 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3034 * hppanbsd-nat.c: Likewise.
3035 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3036 Replace TIDGET with ptid_get_lwp.
3037 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3038 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3039 * infcmd.c: Likewise.
3040 * inferior.h: Likewise.
3041 * inflow.c: Likewise.
3042 * infrun.c: Likewise.
3043 * linux-fork.c: Likewise.
3044 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3045 Replace GET_PID with ptid_get_pid.
3046 Replace is_lwp with ptid_lwp_p.
3047 Replace GET_LWP with ptid_get_lwp.
3048 Replace BUILD_LWP with ptid_build.
3049
3050 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3051
3052 * common/linux-btrace.c: Move sys/syscall.h out of the
3053 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3054 Also check for SYS_perf_event_open before attempting to buid.
3055
3056 2013-09-27 Doug Evans <dje@google.com>
3057
3058 * dwarf2read.c (dwarf2_section_info): Add comment.
3059 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3060 All uses updated.
3061 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3062 (dwarf2_read_section): Delete unused local "header". Add section
3063 name to error message.
3064 (create_dwo_in_dwp): Tweak comment.
3065 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3066
3067 * dwarf2read.c (die_reader_specs): Tweak comment.
3068 (get_section_bfd_owner, get_section_bfd_section): New functions.
3069 (get_section_name, get_section_file_name): New functions.
3070 (get_section_id, get_section_flags): New functions.
3071 (*): Use new functions to access section fields.
3072
3073 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3074 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3075 arg "htab". All callers updated.
3076 (create_debug_types_hash_table): Remove redundant copy of
3077 abbrev_section.
3078 (create_dwo_in_dwp): Tweak comments.
3079 (read_str_index): Tweak comment. Record dwarf form name in static
3080 local.
3081
3082 2013-09-27 Pedro Alves <palves@redhat.com>
3083
3084 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3085 (remote_filename_p): Add comment.
3086 * remote.c (remote_filename_p): Adjust to use
3087 REMOTE_SYSROOT_PREFIX.
3088 * solib.c (solib_find): When deciding whether we need to add a
3089 directory separator, check whether the sysroot is "remote:"
3090 instead of checking whether the patch has a drive spec. Add
3091 comments.
3092
3093 2013-09-27 Pedro Alves <palves@redhat.com>
3094
3095 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3096 Delete fields.
3097 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3098 directly.
3099
3100 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3101
3102 Fix set debug frame output.
3103 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3104 SENTINEL_FRAME entry lower to match enum frame_type order.
3105
3106 2013-09-26 Pierre Muller <muller@sourceware.org>
3107
3108 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3109 AMD64_R15_REGNUM when a register index is expected.
3110 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3111 Substitute in array.
3112 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3113 (amd64_push_arguments): Substitute in integer_regnum array.
3114
3115 2013-09-25 Doug Evans <dje@google.com>
3116
3117 * objfiles.c (allocate_objfile): Move comment to better place.
3118
3119 New option "set debug symfile on".
3120 * NEWS: Mention "set debug symfile".
3121 * Makefile.in (SFILES): Add symfile-debug.c.
3122 (COMMON_OBS): Add symfile-debug.o.
3123 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3124 objfile's symbol functions.
3125 * objfiles.h (objfile_set_sym_fns): Declare.
3126 * symfile-debug.c: New file.
3127 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3128 objfile's symbol functions.
3129 (reread_symbols): Ditto.
3130
3131 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3132 All uses updated.
3133 (add_symtab_fns): Update prototype.
3134 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3135 (registered_sym_fns): ... this.
3136 (symtab_fns): Update.
3137 (add_symtab_fns): New arg "flavour". All callers updated.
3138 (find_sym_fns): Rewrite to use new sym_fns registry.
3139
3140 * symfile.h (struct sym_fns): Add "objfile" argument to
3141 sym_read_linetable. All uses updated.
3142
3143 * symtab.c (domain_name, search_domain_name): New functions.
3144 * symtab.h (domain_name, search_domain_name): Declare.
3145
3146 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3147 map_matching_symbols so objfile is first. All uses updated.
3148 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3149 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3150
3151 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3152
3153 PR shlibs/8882
3154 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3155 link map entries.
3156
3157 2013-09-24 Doug Evans <dje@google.com>
3158
3159 * objfiles.c (free_objfile): Move comment.
3160
3161 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3162
3163 * ada-exp.y (string_to_operator): Delete.
3164 (dummy_string_to_ada_operator): Delete.
3165
3166 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3167
3168 Revert:
3169 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3170 amd64-tdep.c.
3171 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3172 call_dummy_integer_regs, and classify.
3173 * amd64-tdep.h (amd64_classify): Add declaration.
3174 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3175 (amd64_reg_class): Delete, moved to i386-tdep.h.
3176 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3177 Replace call to amd64_classify by call to tdep->classify.
3178 (amd64_push_arguments): Get the list of registers to use for
3179 passing integer parameters from the gdbarch tdep structure,
3180 rather than using a hardcoded one. Replace calls to amd64_classify
3181 by calls to tdep->classify.
3182 (amd64_push_dummy_call): Get the register number used for
3183 the "hidden" argument from tdep->call_dummy_integer_regs.
3184 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3185 and tdep->call_dummy_integer_regs. Set tdep->classify.
3186
3187 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3188
3189 Revert:
3190 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3191 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3192 where tdep->memory_args_by_pointer is non-zero.
3193
3194 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3195
3196 Revert:
3197 * i386-tdep.h (struct gdbarch_tdep): Add new field
3198 integer_param_regs_saved_in_caller_frame.
3199 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3200 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3201
3202 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3203
3204 * amd64-windows-tdep.c: #include "value.h"
3205 (amd64_windows_classify): Delete.
3206 (amd64_windows_passed_by_integer_register)
3207 (amd64_windows_passed_by_xmm_register)
3208 (amd64_windows_passed_by_pointer)
3209 (amd64_windows_adjust_args_passed_by_pointer)
3210 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3211 (amd64_windows_push_dummy_call): New functions.
3212 (amd64_windows_init_abi): Remove setting of
3213 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3214 tdep->classify, tdep->memory_args_by_pointer and
3215 tdep->integer_param_regs_saved_in_caller_frame.
3216 Add call to set_gdbarch_push_dummy_call.
3217
3218 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3219
3220 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3221 objfile->original_name.
3222
3223 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3224
3225 Pass down original filename for objfile.
3226 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3227 * elfread.c (elf_symfile_read): Likewise.
3228 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3229 longer set ORIGINAL_NAME.
3230 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3231 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3232 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3233 symbol_file_add_from_bfd call.
3234 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3235 (macho_check_dsym): Add parameter filenamep. Change function comment.
3236 Set *filenamep.
3237 (macho_symfile_read): New variable dsym_filename. Update
3238 macho_check_dsym call. Use it for symbol_file_add_separate.
3239 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3240 it. Use it for objfile->original_name.
3241 (objfile_name): Return OBFD's filename, if available.
3242 * objfiles.h (allocate_objfile): Add new parameter name.
3243 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3244 * symfile-mem.c (symbol_file_add_from_memory): Update
3245 symbol_file_add_from_bfd call.
3246 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3247 comment for it.
3248 (symbol_file_add_with_addrs): New parameter name, add function comment
3249 for it. Remove variable name. Update allocate_objfile call.
3250 (symbol_file_add_separate): New parameter name, add function comment
3251 for it. Update symbol_file_add_with_addrs call.
3252 (symbol_file_add_from_bfd): New parameter name. Update
3253 symbol_file_add_with_addrs call.
3254 (symbol_file_add): Update symbol_file_add_from_bfd call.
3255 (reread_symbols): New variable original_name. Save
3256 objfile->original_name by it.
3257 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3258 second parameter.
3259
3260 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3261
3262 Code cleanup: Add objfile_name accessor function.
3263 * ada-lang.c (is_known_support_routine): Use objfile_name.
3264 * auto-load.c (source_gdb_script_for_objfile)
3265 (auto_load_objfile_script): Likewise.
3266 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3267 * dbxread.c (dbx_symfile_read): Likewise.
3268 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3269 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3270 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3271 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3272 (lookup_dwp_signatured_type, lookup_dwo_unit)
3273 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3274 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3275 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3276 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3277 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3278 (read_subrange_type, load_partial_dies, read_partial_die)
3279 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3280 (die_containing_type, build_error_marker_type, lookup_die_type)
3281 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3282 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3283 (get_DW_AT_signature_type, write_psymtabs_to_index)
3284 (save_gdb_index_command): Likewise.
3285 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3286 Likewise.
3287 * expprint.c (dump_subexp_body_standard): Likewise.
3288 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3289 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3290 original_name.
3291 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3292 obj_name, use objfile_name for it, use the variable.
3293 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3294 Use objfile_name.
3295 * machoread.c (macho_symtab_read, macho_check_dsym)
3296 (macho_symfile_relocate): Likewise.
3297 * maint.c (maintenance_translate_address): Likewise.
3298 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3299 * minsyms.c (install_minimal_symbols): Likewise.
3300 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3301 original_name.
3302 (filter_overlapping_sections): Use objfile_name.
3303 (objfile_name): New function.
3304 * objfiles.h (struct objfile): Rename field name to original_name.
3305 (objfile_name): New prototype.
3306 * printcmd.c (sym_info, address_info): Use objfile_name.
3307 * probe.c (parse_probes, collect_probes, compare_probes)
3308 (info_probes_for_ops): Likewise.
3309 * progspace.c (clone_program_space): Likewise.
3310 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3311 (maintenance_info_psymtabs): Likewise.
3312 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3313 (source_section_scripts): Likewise.
3314 * python/py-objfile.c (objfpy_get_filename): Likewise.
3315 * python/py-progspace.c (pspy_get_filename): Likewise.
3316 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3317 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3318 * solib.c (solib_read_symbols): Likewise.
3319 * stabsread.c (scan_file_globals): Likewise.
3320 * stap-probe.c (handle_stap_probe): Likewise.
3321 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3322 (find_separate_debug_file_by_debuglink): Likewise.
3323 (reread_symbols): Likewise. Use the objfile field name renamed to
3324 original_name.
3325 (allocate_symtab): Use objfile_name.
3326 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3327 (dump_objfile, dump_msymbols, dump_symtab_1)
3328 (maintenance_print_msymbols, maintenance_print_objfiles)
3329 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3330 * target.c (target_translate_tls_address, target_info): Likewise.
3331 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3332 objfile_name.
3333
3334 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3335
3336 Code cleanup.
3337 * probe.c (parse_probes): Rename variable objfile_name to
3338 objfile_namestr.
3339
3340 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3341
3342 Remove solib-sunos.c.
3343 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3344 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3345 * objfiles.c (rt_common_objfile): Remove.
3346 (free_objfile): Remove rt_common_objfile comparison.
3347 * objfiles.h (rt_common_objfile): Remove.
3348 * solib-sunos.c: Remove.
3349 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3350
3351 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3352
3353 Remove a.out NetBSD and OpenBSD hosts.
3354 * NEWS (Removed native configurations): New.
3355 * config/arm/nbsdaout.mh: Remove.
3356 * config/i386/nbsdaout.mh: Remove.
3357 * config/i386/obsdaout.mh: Remove.
3358 * config/m68k/nbsdaout.mh: Remove.
3359 * config/sparc/nbsdaout.mh: Remove.
3360 * config/vax/nbsdaout.mh: Remove.
3361 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3362 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3363 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3364 error.
3365 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3366 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3367 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3368
3369 2013-09-23 Tom Tromey <tromey@redhat.com>
3370
3371 * linespec.c (struct minsym_and_objfile): Remove.
3372 (minsym_and_objfile_d): Remove.
3373 (struct linespec, struct collect_info, linespec_parse_basic)
3374 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3375 (compare_msymbols, find_method, find_function_symbols)
3376 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3377 (add_minsym, search_minsyms_for_name): Update.
3378
3379 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3380
3381 * regcache.c: Add include of valprint.h.
3382 (dump_endian_bytes): Delete.
3383 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3384
3385 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3386
3387 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3388
3389 2013-09-19 Pedro Alves <palves@redhat.com>
3390
3391 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3392 breakpoints.
3393
3394 2013-09-19 Pedro Alves <palves@redhat.com>
3395 Thomas Schwinge <thomas@codesourcery.com>
3396 Yue Lu <hacklu.newborn@gmail.com>
3397
3398 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3399 Take a gdb_byte pointer instead of a char pointer.
3400
3401 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3402 gnu_xfer_partial helper.
3403 (gnu_xfer_partial): New function.
3404 (gnu_target): Don't install a deprecated_xfer_memory hook.
3405 Install a to_xfer_partial hook.
3406
3407 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3408
3409 Constification.
3410 * main.c (captured_main): Replace catch_command_errors by
3411 catch_command_errors_const. Twice.
3412 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3413 (symbol_file_add): Make name parameter const.
3414 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3415 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3416 variable name. Change their usage accordingly.
3417 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3418 const.
3419 (symbol_file_add_main): Make args parameter const.
3420
3421 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3422 Ulrich Weigand <uweigand@de.ibm.com>
3423
3424 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3425 of c_value member.
3426 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3427
3428 2013-09-18 Pedro Alves <palves@redhat.com>
3429 Yue Lu <hacklu.newborn@gmail.com>
3430
3431 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3432 (gnu_create_inferior)
3433 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3434 (set_sig_thread_cmd): Use the lwpid field of ptids to
3435 store/extract thread ids instead of the tid field.
3436 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3437
3438 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3439
3440 * infcmd.c (default_print_one_register_info): Add detection of
3441 optimized out values.
3442 (default_print_registers_info): Switch to using
3443 get_frame_register_value.
3444
3445 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3446
3447 * infrun.c (handle_inferior_event): Check if we know the
3448 function start address before setting a resume breakpoint.
3449
3450 2013-09-18 Pedro Alves <palves@redhat.com>
3451
3452 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3453 minus_one_ptid instead of looking at the ptid's tid field and
3454 comparing that to -1.
3455
3456 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3457
3458 * main.h (get_gdb_program_name): Remove extra whitespace.
3459
3460 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3461
3462 * main.h (get_gdb_program_name): Add declaration.
3463 * main.c (get_gdb_program_name): Add definition.
3464
3465 2013-09-17 Doug Evans <dje@google.com>
3466
3467 * dwarf2read.c: Move definitions of complaint functions to after
3468 forward declarations of local functions.
3469
3470 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3471 Pedro Alves <palves@redhat.com>
3472
3473 PR gdb/11568
3474 * breakpoint.c (remove_threaded_breakpoints): New function.
3475 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3476 as thread_exit observer.
3477
3478 2013-09-17 Pedro Alves <palves@redhat.com>
3479
3480 PR gdb/15911
3481 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3482 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3483 * corelow.c (core_open):
3484 * frame.h (print_stack_frame, print_frame_info): New
3485 'set_current_sal' parameter.
3486 * infcmd.c (finish_command, kill_command): Adjust call to
3487 print_stack_frame.
3488 * inferior.c (inferior_command): Likewise.
3489 * infrun.c (normal_stop): Likewise.
3490 * linux-fork.c (linux_fork_context): Likewise.
3491 * record-full.c (record_full_goto_entry, record_full_restore):
3492 Likewise.
3493 * remote-mips.c (common_open): Likewise.
3494 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3495 Use it.
3496 (print_frame_info): New 'set_current_sal' parameter. Set the last
3497 displayed sal depending on the new paremeter instead of looking at
3498 print_what.
3499 (backtrace_command_1, select_and_print_frame, frame_command)
3500 (current_frame_command, up_command, down_command): Adjust call to
3501 print_stack_frame.
3502 * thread.c (print_thread_info, restore_selected_frame)
3503 (do_captured_thread_select): Adjust call to print_stack_frame.
3504 * tracepoint.c (tfind_1): Likewise.
3505 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3506 (mi_cmd_stack_info_frame): Likewise.
3507 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3508 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3509
3510 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3511
3512 * value.c (isvoid_internal_fn): Replace "parameter" with
3513 "argument".
3514
3515 2013-09-16 Stan Shebs <stan@codesourcery.com>
3516
3517 * README: Update references to writing code for GDB.
3518 * configure.ac (build_warnings): Remove obsolete comment.
3519 * configure: Regenerate.
3520 * gdbarch.sh: Remove references to gdbint.texinfo.
3521 * gdbarch.h: Regenerate.
3522 * gdbtypes.c (objfile_type): Remove comments referencing internals
3523 manual and D10V.
3524
3525 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3526
3527 * NEWS: Mention new convenience function $_isvoid.
3528 * value.c (isvoid_internal_fn): New function.
3529 (_initialize_values): Add new convenience function $_isvoid.
3530
3531 2013-09-16 Pierre Muller <muller@sourceware.org>
3532
3533 * arm-linux-tdep.c: Add "elf/common.h" header.
3534 Remove AT_HWCAP macro definintion as it is provided in
3535 added include file.
3536 * s390-tdep.c: Remove system header <elf.h>
3537 Add "elf/common.h" header for AT_HWCAP definition.
3538 (s390_core_read_description): Use correct CORE_ADDR
3539 for hwcap local variable used as third parameter
3540 of function target_auxv_search.
3541
3542 2013-09-14 Pierre Muller <muller@sourceware.org>
3543 Tom Tromey <tromey@redhat.com>
3544 Pedro Alves <palves@redhat.com>
3545
3546 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3547 mode if operating system doesn't know O_CLOEXEC.
3548
3549 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3550
3551 Code cleanup.
3552 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3553 inner block.
3554
3555 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3556
3557 * NEWS: Mention TDB support.
3558 * features/s390-tdb.xml: New file.
3559 * features/s390-te-linux64.xml: New file.
3560 * features/s390x-te-linux64.xml: New file.
3561 * features/Makefile (WHICH): Add new tdescs above.
3562 (s390-te-linux64-expedite): Set.
3563 (s390x-te-linux64-expedite): Set.
3564 * features/s390-te-linux64.c: New file (generated).
3565 * features/s390x-te-linux64.c: New file (generated).
3566 * regformats/s390-te-linux64.dat: New file (generated).
3567 * regformats/s390x-te-linux64.dat: New file (generated).
3568 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3569 (HWCAP_S390_TE): Likewise.
3570 (S390_TDB_DWORD0_REGNUM): Likewise.
3571 (S390_TDB_DWORD0_REGNUM): Likewise.
3572 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3573 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3574 (S390_TDB_ATIA_REGNUM): Likewise.
3575 (S390_TDB_R0_REGNUM): Likewise.
3576 (S390_TDB_R1_REGNUM): Likewise.
3577 (S390_TDB_R2_REGNUM): Likewise.
3578 (S390_TDB_R3_REGNUM): Likewise.
3579 (S390_TDB_R4_REGNUM): Likewise.
3580 (S390_TDB_R5_REGNUM): Likewise.
3581 (S390_TDB_R6_REGNUM): Likewise.
3582 (S390_TDB_R7_REGNUM): Likewise.
3583 (S390_TDB_R8_REGNUM): Likewise.
3584 (S390_TDB_R9_REGNUM): Likewise.
3585 (S390_TDB_R10_REGNUM): Likewise.
3586 (S390_TDB_R11_REGNUM): Likewise.
3587 (S390_TDB_R12_REGNUM): Likewise.
3588 (S390_TDB_R13_REGNUM): Likewise.
3589 (S390_TDB_R14_REGNUM): Likewise.
3590 (S390_TDB_R15_REGNUM): Likewise.
3591 (S390_NUM_REGS): Increase.
3592 (S390_IS_TDBREGSET_REGNUM): New macro.
3593 (s390_regmap_tdb): Declare.
3594 (s390_sizeof_tdbregset): Define.
3595 (tdesc_s390_te_linux64): Declare.
3596 (tdesc_s390x_te_linux64): Likewise.
3597 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3598 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3599 (s390_regmap_tdb): New regmap.
3600 (s390_supply_tdb_regset): New function.
3601 (s390_tdb_regset): New regset.
3602 (s390_linux64v2_regset_sections): Add TDB regset to list.
3603 (s390x_linux64v2_regset_sections): Likewise.
3604 (s390_regset_from_core_section): Recognize TDB core note section.
3605 (s390_core_read_description): If HWCAP indicates TE support,
3606 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3607 (s390_gdbarch_init): Handle TDB regset.
3608 (_initialize_s390_tdep): Initialize new tdescs.
3609 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3610 (have_regset_tdb): New variable.
3611 (s390_native_supply): Support register invalidation.
3612 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3613 (check_regset): Treat ENODATA as "regset exists".
3614 (s390_linux_fetch_inferior_registers): Add TDB.
3615 (s390_read_description): Check for TDB existence and select
3616 appropriate tdesc.
3617 * gdbserver/Makefile.in (clean): Add removal of new makefile
3618 targets.
3619 (s390-te-linux64.c): New makefile target.
3620 (s390x-te-linux64.c): Likewise.
3621 * gdbserver/configure.srv (srv_regobj): Append new objects
3622 s390-te-linux64.o and s390x-te-linux64.o.
3623 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3624 s390x-te-linux64.xml, and s390-tdb.xml.
3625 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3626 declaration.
3627 (tdesc_s390_te_linux64): Likewise.
3628 (init_registers_s390x_te_linux64): Likewise.
3629 (tdesc_s390x_te_linux64): Likewise.
3630 (s390_check_regset): Treat ENODATA as "regset exists".
3631 (s390_arch_setup): Add TDB regset support.
3632 (initialize_low_arch): Initialize registers for new tdescs.
3633
3634 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3635
3636 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3637 (S390_IS_FPREGSET_REGNUM): New macro.
3638 * s390-tdep.c (s390_dwarf_regmap): Make const.
3639 (regnum_is_gpr_full): New function for replacing repeated code.
3640 (s390_pseudo_register_name): Use it.
3641 (s390_pseudo_register_type): Likewise.
3642 (s390_pseudo_register_read): Likewise.
3643 (s390_pseudo_register_write): Likewise.
3644 (s390_unwind_pseudo_register): Likewise.
3645 (s390_regmap_gregset): New format for regmap.
3646 (s390x_regmap_gregset): Likewise.
3647 (s390_regmap_fpregset): Likewise.
3648 (s390_regmap_upper): Likewise.
3649 (s390_regmap_last_break): Likewise.
3650 (s390_regmap_system_call): Likewise.
3651 (s390_supply_regset): Adjust to new regmap format.
3652 (s390_collect_regset): Likewise.
3653 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3654 (s390_native_collect): Likewise.
3655 (supply_gregset): Likewise.
3656 (fill_gregset): Likewise.
3657 (supply_fpregset): Likewise.
3658 (fill_fpregset): Likewise.
3659 (fetch_regset): Likewise.
3660 (store_regset): Likewise.
3661 (s390_linux_fetch_inferior_registers): Likewise.
3662 (s390_linux_fetch_inferior_registers): Likewise.
3663
3664 2013-09-12 Andrew Pinski <apinski@cavium.com>
3665
3666 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3667
3668 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3669
3670 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3671
3672 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3673
3674 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3675
3676 2013-09-06 Pedro Alves <palves@redhat.com>
3677
3678 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3679 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3680 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3681 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3682 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3683 gdb_stdlog.
3684
3685 2013-09-06 Pedro Alves <palves@redhat.com>
3686
3687 * remote-sim.c (dump_mem): Constify buf parameter.
3688 gdbsim_xfer_inferior_memory): Rename to ...
3689 (gdbsim_xfer_memory): ... this. Adjust interface as
3690 target_xfer_partial helper.
3691 (gdbsim_xfer_partial): New function.
3692 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3693 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3694
3695 2013-09-06 Pedro Alves <palves@redhat.com>
3696
3697 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3698 host_address_to_string, and send debug output to gdb_stdlog.
3699
3700 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3701
3702 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3703 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3704 gdb_target_obs for cris target.
3705 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3706 (cris_gdbarch_init): Move calls to
3707 set_gdbarch_fetch_tls_load_module_address and
3708 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3709 Add call to gdbarch_init_osabi.
3710 * cris-linux-tdep.c: New file.
3711 * cris-tdep.h: New file.
3712
3713 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3714
3715 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3716 to deprecated_init_ui_hook.
3717
3718 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3719
3720 * cli/cli-interp.c (_initialize_cli_interp): Add a
3721 command_loop_proc to interp_procs.
3722 * event-top.c (cli_command_loop): Change signature to match
3723 interp_command_loop_ftype.
3724 * event-top.h (cli_command_loop): Same.
3725 * interps.c (interp_new): Require every interpreter to have a
3726 command_loop_proc.
3727 (current_interp_command_loop): Just call the command_loop_proc on
3728 the current interpreter.
3729 * tui/tui-interp.c (_initialize_tui_interp): Add a
3730 command_loop_proc to interp_procs.
3731
3732 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3733
3734 * cris-tdep.c (cris_gdbarch_init): Add call to
3735 get_gdbarch_fetch_tls_load_module_address.
3736
3737 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3738
3739 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3740 (cris_elf_gregset_t): Rename from elf_gregset_t.
3741 (crisv32_elf_gregset_t): Adjust.
3742 (cris_supply_gregset, fetch_core_registers): Adjust.
3743
3744 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3745
3746 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3747
3748 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3749
3750 * defs.h (deprecated_command_loop_hook): Remove, including
3751 references in comments.
3752 * interps.c (current_interp_command_loop): No longer use
3753 deprecated_command_loop_hook.
3754 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3755 setup.
3756 * top.c (deprecated_command_loop_hook): Remove.
3757
3758 2013-09-05 Pedro Alves <palves@redhat.com>
3759
3760 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3761 local is now int instead of ULONGEST. Print it with %d
3762 instead of paddress.
3763
3764 2013-09-05 Tristan Gingold <gingold@adacore.com>
3765
3766 * MAINTAINERS: Remove avr maintainership.
3767
3768 2013-09-05 Pedro Alves <palves@redhat.com>
3769
3770 * findvar.c (value_of_register): Rework in terms of
3771 value_of_register_lazy.
3772
3773 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3774
3775 * symfile.c (add_symbol_file_command): Remove trailing
3776 whitespaces and blank line after comment.
3777
3778 2013-09-05 Pedro Alves <palves@redhat.com>
3779
3780 * tui/tui-regs.c (tui_register_format): Don't look at the
3781 register's name here. Return string representing register
3782 value instead of storing it in the data element.
3783 (tui_get_register): Compare register string representations
3784 instead of register value states and contents.
3785
3786 2013-09-05 Pedro Alves <palves@redhat.com>
3787
3788 PR tui/15933
3789 * tui/tui-regs.c (tui_show_registers): Show registers of the
3790 selected frame, not the current frame.
3791
3792 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3793
3794 * MAINTAINERS (Write After Approval): Add myself to the list.
3795
3796 2013-09-04 Doug Evans <dje@google.com>
3797
3798 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3799 (queue_and_load_dwo_tu): New function.
3800 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3801 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3802 Make dependent_cu optional.
3803 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3804 and an older .gdb_index is in use, queue and load all its TUs too.
3805
3806 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3807
3808 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3809 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3810 variable search_flags.
3811 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3812 (OPF_RETURN_REALPATH): ... here.
3813 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3814 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3815 call. Twice.
3816 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3817 openp call.
3818 * solib.c (solib_find): Likewise. Four times.
3819 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3820 in the function comment and for the realpath_fptr variable.
3821 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3822 (find_and_open_source): Likewise. Twice.
3823 * symfile.c (symfile_bfd_open): Likewise, also twice.
3824
3825 2013-09-04 Doug Evans <dje@google.com>
3826
3827 * progspace.c (save_current_space_and_thread): Remove unnecessary
3828 call to save_current_inferior.
3829
3830 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3831
3832 * sh64-tdep.c (sh64_do_register): Return after printing message
3833 about unavailable register contents.
3834
3835 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3836 Pedro Alves <palves@redhat.com>
3837
3838 * symfile.c (add_symbol_file_command): Error out on unknown
3839 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3840 options and collapse into single conditional branch.
3841
3842 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3843
3844 * inf-child.c (inf_child_follow_fork): New parameter
3845 detach_fork.
3846 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3847 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3848 * inferior.h (detach_fork): Remove.
3849 * infrun.c (detach_fork): Adjust comment and make it
3850 static.
3851 (follow_fork): Pass detach_fork parameter to
3852 target_follow_fork.
3853 * linux-nat.c (linux_child_follow_fork): New parameter
3854 detach_fork.
3855 * target.c (target_follow_fork): New parameter detach_fork.
3856 Pass detach_fork as parameter and print its value.
3857 * target.h (struct target_ops) <to_follow_fork>: New int
3858 parameter.
3859 (target_follow_fork): New parameter detach_fork.
3860
3861 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3862
3863 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3864 Replace sec->bfd by sec->the_bfd_section->owner.
3865
3866 2013-09-03 Yao Qi <yao@codesourcery.com>
3867
3868 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3869 from linux_has_shared_address_space.
3870 (linux_has_shared_address_space): Call linux_is_uclinux.
3871 * linux-tdep.h (linux_is_uclinux): Declare.
3872 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3873 linux_is_uclinux.
3874
3875 2013-09-03 Yao Qi <yao@codesourcery.com>
3876
3877 * config/djgpp/fnchange.lst: Remove entry of
3878 i386-interix-nat.c and i386-interix-tdep.c.
3879 * configure.ac: Remove '*-*-interix*'.
3880 * configure: Re-generated.
3881 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3882 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3883 obsolete comments.
3884 * osabi.c (gdb_osabi_names): Remove "Interix".
3885
3886 2013-09-03 Yao Qi <yao@codesourcery.com>
3887
3888 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3889
3890 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3891
3892 * record.h (record_print_flag) <record_print_src_line,
3893 record_print_insn_range>: Rename into ...
3894 (record_print_flag) <record_print_src_line,
3895 record_print_insn_range>: ... this. Update all users.
3896
3897 2013-09-02 Pierre Muller <muller@sourceware.org>
3898
3899 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3900 error code.
3901
3902 2013-09-02 Pierre Muller <muller@sourceware.org>
3903
3904 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3905 by use of plongest function.
3906
3907 2013-09-02 Tristan Gingold <gingold@adacore.com>
3908
3909 * NEWS: Add entry mentioning support for native Windows x64
3910 SEH data.
3911
3912 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3913 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3914 (struct amd64_windows_frame_cache): New struct.
3915 (amd64_windows_w2gdb_regnum): New global.
3916 (pc_in_range, amd64_windows_frame_decode_epilogue)
3917 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3918 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3919 (amd64_windows_frame_this_id): New functions.
3920 (amd64_windows_frame_unwind): New static global.
3921 (amd64_windows_skip_prologue): New function.
3922 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3923 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3924 with amd64_windows_skip_prologue.
3925
3926 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3927
3928 GDB 7.6.1 released.
3929
3930 2013-08-30 Pedro Alves <palves@redhat.com>
3931
3932 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3933 SRC_AND_LOC.
3934
3935 2013-08-30 Pedro Alves <palves@redhat.com>
3936
3937 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3938 warning text.
3939
3940 2013-08-30 Pedro Alves <palves@redhat.com>
3941
3942 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3943 Adjust arguments to print_stack_frame.
3944
3945 2013-08-30 Pedro Alves <palves@redhat.com>
3946
3947 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3948
3949 2013-08-30 Pedro Alves <palves@redhat.com>
3950
3951 * frame.h (show_and_print_stack_frame): Delete declaration.
3952
3953 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3954
3955 PR python/15461
3956 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3957 (archpy_name): Check for valid architecture.
3958 (archpy_disassemble): Ditto.
3959
3960 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3961
3962 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3963 instead of "long long" in call to ptrace64.
3964
3965 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3966
3967 * mi/mi-interp.c (mi_command_loop): Change signature to match
3968 interp_command_loop_ftype.
3969 (mi1_command_loop): Remove.
3970 (mi2_command_loop): Remove.
3971 (mi3_command_loop): Remove.
3972 (mi_interpreter_resume): Remove setting of
3973 deprecated_command_loop_hook.
3974 (_initialize_mi_interp): Set mi_command_loop as the command loop
3975 callback.
3976
3977 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3978
3979 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3980 value_type.
3981
3982 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3983
3984 * value.c (allocate_value_contents): Make static.
3985 * value.h (allocate_value_contents): Remove prototype.
3986
3987 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3988
3989 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3990 of assembling value via allocate_value_lazy and attribute setter.
3991 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3992 assembling value via allocate_value_lazy and attribute setter.
3993 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3994 assembling value via allocate_value_lazy and attribute setter.
3995
3996 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3997
3998 * value.c (value_from_contents_and_address): Replace allocate_value and
3999 memcpy with value_from_contents.
4000
4001 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4002
4003 * python/py-framefilter.c (py_print_frame): Remove usage of
4004 PyString_AsString. Use python_string_to_host_string instead.
4005 Refactor function to work with a string as a new allocation
4006 instead of a pointer.
4007 (py_print_frame): Ditto.
4008 * python/lib/gdb/frames.py (return_list): Cain iterators together
4009 instead of adding them as a list.
4010 (_sort_list): Call return_list, and remove duplicate code.
4011 (execute_frame_filters): Convert iterator to a list with list().
4012 * python/lib/gdb/command/frame_filters.py
4013 (SetFrameFilterPriority._set_filter_priority): Convert priority
4014 attribute to an integer.
4015 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4016 wrapper function __next__.
4017 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4018 define as "str".
4019
4020 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4021
4022 PR python/15752
4023 * python/py-framefilter.c (apply_frame_filter): Check
4024 gdb_python_initialized. Exit if the Python frame-filter code
4025 cannot be initialized.
4026
4027 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4028
4029 PR cli/15842
4030 * top.c (print_gdb_version): Remove erroneous newline after help
4031 text.
4032
4033 2013-08-29 Yao Qi <yao@codesourcery.com>
4034
4035 * varobj.c (install_dynamic_child): Remove trailing space.
4036 Add one blank line after variable declaration.
4037
4038 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4039
4040 PR gdb/15415
4041 * corefile.c (get_exec_file): Use exec_filename.
4042 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4043 * exec.c (exec_close): Free EXEC_FILENAME.
4044 (exec_file_attach): New variable canonical_pathname. Use
4045 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4046 EXEC_FILENAME.
4047 * exec.h (exec_filename): New.
4048 * inferior.c (print_inferior, inferior_command): Use
4049 PSPACE_EXEC_FILENAME.
4050 * mi/mi-main.c (print_one_inferior): Likewise.
4051 * progspace.c (clone_program_space, print_program_space): Likewise.
4052 * progspace.h (struct program_space): New field pspace_exec_filename.
4053 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4054 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4055
4056 2013-08-28 Will Newton <will.newton@linaro.org>
4057
4058 * common/linux-ptrace.c: Include stdint.h unconditionally.
4059
4060 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4061
4062 Code cleanup.
4063 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4064
4065 2013-08-28 Yao Qi <yao@codesourcery.com>
4066 Pedro Alves <palves@redhat.com>
4067
4068 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4069 instead of stdio_fileopen.
4070 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4071 .Call stderr_fileopen instead of stdio_fileopen.
4072 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4073 [__MINGW32__] (stderr_file_fputs): New function.
4074 (stderr_fileopen): New function.
4075 * ui-file.h (stderr_fileopen): Declare.
4076
4077 2013-08-27 Doug Evans <dje@google.com>
4078
4079 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4080 (struct dwarf2_per_cu_data): Ditto.
4081 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4082 (process_imported_unit_die): Ditto.
4083 (follow_die_sig_1): Simplify assert.
4084
4085 2013-08-27 Pedro Alves <palves@redhat.com>
4086
4087 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4088 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4089 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4090 windows_xfer_memory directly.
4091 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4092
4093 2013-08-27 Pedro Alves <palves@redhat.com>
4094
4095 * darwin-nat.c (darwin_xfer_memory): Delete.
4096 (_initialize_darwin_inferior): Don't install a
4097 deprecated_xfer_memory method.
4098
4099 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4100 Yao Qi <yao@codesourcery.com>
4101
4102 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4103 (parse_no_frames_option): Remove.
4104 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4105 (mi_cmd_stack_list_args): Adjust.
4106 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4107 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4108 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4109 Caller update.
4110 (list_args_or_locals): New parameter 'skip_unavailable'.
4111 Handle it.
4112 * valprint.c (scalar_type_p): Rename to ...
4113 (val_print_scalar_type_p): ... this. Make extern.
4114 (val_print, value_check_printable): Adjust.
4115 * valprint.h (val_print_scalar_type_p): Declare.
4116 * value.c (value_entirely_unavailable): New function.
4117 * value.h (value_entirely_unavailable): Declare.
4118
4119 * NEWS: Mention the new option "--skip-unavailable" to MI
4120 commands '-stack-list-locals', '-stack-list-arguments' and
4121 '-stack-list-variables'.
4122
4123 2013-08-27 Yao Qi <yao@codesourcery.com>
4124
4125 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4126 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4127 options.
4128 * mi/mi-getopt.c (mi_getopt): Remove.
4129 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4130 'error_on_unknown'.
4131 (mi_getopt): Call mi_getopt_1.
4132 (mi_getopt_silent): New.
4133 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4134
4135 2013-08-26 Doug Evans <dje@google.com>
4136
4137 PR symtab/15885
4138 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4139 .gdb_index is in use.
4140 * symfile.c (reread_symbols): Reset objfile->sf.
4141
4142 * NEWS: Document "mt print objfiles" now takes optional regexp.
4143 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4144 regexp of objfiles to print.
4145 (_initialize_symmisc): Update doc string for "mt print objfiles".
4146
4147 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4148 missing debug info checks.
4149
4150 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4151 Ulrich Weigand <uweigand@de.ibm.com>
4152
4153 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4154 line tables generated by XLC compiled binaries.
4155
4156 2013-08-23 Doug Evans <dje@google.com>
4157
4158 * symmisc.c (dump_symtab): Delete prototype.
4159 (dump_msymbols, dump_objfile): Ditto.
4160 (maintenance_info_symtabs): Mark as dont_repeat.
4161 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4162
4163 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4164 debugging printf to better location.
4165
4166 2013-08-23 Pedro Alves <palves@redhat.com>
4167
4168 * target.c (target_read_live_memory): Change type of 'ret' local
4169 to LONGEST.
4170
4171 2013-08-23 Pedro Alves <palves@redhat.com>
4172
4173 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4174 (remote_read_bytes): Change return type to LONGEST, and adjust to
4175 return a target_xfer_error on error.
4176 (remote_xfer_memory): Delete.
4177 (remote_flash_write): Change type of 'ret' local to LONGEST.
4178 (remote_xfer_partial, remote_xfer_partial): Adjust.
4179 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4180
4181 2013-08-23 Pierre Muller <muller@sourceware.org>
4182
4183 ARI fix: Push # directives to start of line.
4184 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4185
4186 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4187
4188 PR gdb/15501
4189 * breakpoint.c (enable_command, disable_command): Iterate over
4190 all specified breakpoint locations.
4191
4192 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4193
4194 * common/linux-ptrace.c (linux_fork_to_function): Push #
4195 directives to the start of the line.
4196 (linux_check_ptrace_features): Fix warning message to use
4197 the "_" markup.
4198
4199 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4200
4201 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4202 nat/linux-waitpid.h.
4203 (linux-waitpid.o): New object file rule.
4204 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4205 (current_ptrace_options): Moved from linux-nat.c.
4206 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4207 parameters.
4208 (linux_fork_to_function): New function.
4209 (linux_grandchild_function): Likewise.
4210 (linux_child_function): Likewise.
4211 (linux_check_ptrace_features): New function, heavily
4212 based on linux-nat.c:linux_test_for_tracefork.
4213 (linux_enable_event_reporting): New function.
4214 (ptrace_supports_feature): Likewise.
4215 (linux_supports_tracefork): Likewise.
4216 (linux_supports_traceclone): Likewise.
4217 (linux_supports_tracevforkdone): Likewise.
4218 (linux_supports_tracesysgood): Likewise.
4219 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4220 gdbserver/linux-low.c.
4221 (linux_enable_event_reporting): New declaration.
4222 (linux_supports_tracefork): Likewise.
4223 (linux_supports_traceclone): Likewise.
4224 (linux_supports_tracevforkdone): Likewise.
4225 (linux_supports_tracesysgood): Likewise.
4226 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4227 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4228 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4229 * config/arm/linux.mh (NATDEPFILES): Likewise.
4230 * config/i386/linux.mh (NATDEPFILES): Likewise.
4231 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4232 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4233 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4234 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4235 * config/mips/linux.mh (NATDEPFILES): Likewise.
4236 * config/pa/linux.mh (NATDEPFILES): Likewise..
4237 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4238 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4239 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4240 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4241 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4242 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4243 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4244 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4245 ptrace's 4th argument's types.
4246 Check the type of PTRACE_TYPE_ARG4.
4247 * configure: Regenerate.
4248 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4249 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4250 (linux_supports_tracefork_flag): Remove.
4251 (linux_supports_tracesysgood_flag): Likewise.
4252 (linux_supports_tracevforkdone_flag): Likewise.
4253 (current_ptrace_options): Moved to
4254 common/linux-ptrace.c.
4255 (linux_tracefork_child): Remove.
4256 (my_waitpid): Remove.
4257 (linux_test_for_tracefork): Renamed to
4258 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4259 (linux_test_for_tracesysgood): Remove.
4260 (linux_supports_tracesysgood): Remove.
4261 (linux_supports_tracefork): Remove.
4262 (linux_supports_tracevforkdone): Remove.
4263 (linux_enable_tracesysgood): Remove.
4264 (linux_enable_event_reporting): Remove.
4265 (linux_init_ptrace): New function.
4266 (linux_child_post_attach): Call linux_init_ptrace.
4267 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4268 (linux_child_follow_fork): Call linux_supports_tracefork
4269 and linux_supports_tracevforkdone.
4270 (linux_child_insert_fork_catchpoint): Call
4271 linux_supports_tracefork.
4272 (linux_child_insert_vfork_catchpoint): Likewise.
4273 (linux_child_set_syscall_catchpoint): Call
4274 linux_supports_tracesysgood.
4275 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4276 * nat/linux-nat.h: New file.
4277 * nat/linux-waitpid.c: New file.
4278 * nat/linux-waitpid.h: New file.
4279
4280 2013-08-22 Samuel Bronson <naesten@gmail.com>
4281
4282 ARM Linux support for `catch syscall'.
4283 * syscalls/arm-linux.py: New file.
4284 * syscalls/arm-linux.xml: Likewise.
4285 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4286 (arm_linux_init_abi): Register the new function and syscall xml file.
4287 * data-directory/Makefile.in: Install the new syscall xml file.
4288 * NEWS: Brag about this.
4289
4290 2013-08-22 Pedro Alves <palves@redhat.com>
4291
4292 PR gdb/15871
4293 * corefile.c (target_xfer_memory_error): New function.
4294 (memory_error): Defer EIO to target_memory_error.
4295 (read_memory): Use target_xfer_partial, and handle finer-grained
4296 target xfer errors.
4297 * target.c (target_xfer_error_to_string): New function.
4298 (memory_xfer_partial_1): If memory is known to be
4299 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4300 (target_xfer_partial): Make extern.
4301 * target.h (enum target_xfer_error): New enum.
4302 (target_xfer_error_to_string): Declare function.
4303 (target_xfer_partial): Declare function.
4304 (struct target_ops) <xfer_partial>: Adjust describing comment.
4305
4306 2013-08-22 Alan Modra <amodra@gmail.com>
4307
4308 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4309 * configure.tgt: Likewise as targets.
4310
4311 2013-08-20 Doug Evans <dje@google.com>
4312
4313 * buildsym.c (subfile_stack): Move here from buildsym.h.
4314 (pending_macros): Ditto.
4315 (get_macro_table): New function.
4316 (buildsym_init): Initialize subfile_stack.
4317 * coffread.c (type_vector,type_vector_length): Moved here from
4318 buildsym.h.
4319 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4320 (coff_symtab_read): Use it.
4321 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4322 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4323 with call to get_macro_table.
4324 * stabsread.c (type_vector,type_vector_length): Moved here from
4325 buildsym.h.
4326 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4327 * buildsym.h (get_macro_table): Declare.
4328
4329 2013-08-20 Tom Tromey <tromey@redhat.com>
4330
4331 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4332 Update.
4333 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4334
4335 2013-08-20 Doug Evans <dje@google.com>
4336
4337 * blockframe.c: Remove #include "psymtab.h".
4338 * cp-support.c: Ditto.
4339 * source.c: Ditto.
4340 * stack.c: Ditto.
4341
4342 2013-08-20 Tom Tromey <tromey@redhat.com>
4343
4344 PR python/15816:
4345 * exceptions.h (return_mask): Now an enum.
4346 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4347 enum constants.
4348
4349 2013-08-20 Tom Tromey <tromey@redhat.com>
4350
4351 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4352 get_objfile_arch.
4353 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4354 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4355 * jit.c (jit_object_close_impl): Update.
4356 * jv-lang.c (get_dynamics_objfile): Update.
4357 * linespec.c (add_minsym): Use get_dynamics_objfile.
4358 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4359 (allocate_objfile): Don't initialize 'gdbarch' field.
4360 (get_objfile_arch): Update.
4361 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4362 moved from...
4363 (struct objfile) <gdbarch>: ... here. Remove.
4364 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4365 get_objfile_arch.
4366 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4367
4368 2013-08-20 Alan Modra <amodra@gmail.com>
4369
4370 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4371 for IBM long double nan and inf.
4372 (floatformat_is_negative, floatformat_classify,
4373 floatformat_mantissa): Similarly.
4374 (floatformat_ieee_single, floatformat_ieee_double,
4375 floatformat_ieee_quad, floatformat_arm_ext,
4376 floatformat_ia64_spill): Delete unused vars.
4377 (_initialize_doublest): Delete unused function.
4378 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4379 little-endian variants of floatformat_ibm_long_double.
4380
4381 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4382
4383 * Makefile.in (SFILES): Remove common/target-common.c and
4384 add target/waitstatus.c.
4385 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4386 target/resume.h, target/wait.h and target/waitstatus.h.
4387 (COMMON_OBS): Remove target-common.o and add
4388 waitstatus.o.
4389 (target-common.o): Remove.
4390 (waitstatus.o): New target object file.
4391 * common/target-common.c: Move contents to
4392 target/waitstatus.c and remove.
4393 * common/target-common.h: Move contents to other files and
4394 remove.
4395 (enum resume_kind: Move to target/resume.h.
4396 (TARGET_WNOHANG): Move to target/wait.h.
4397 (enum target_waitkind): Move to target/waitstatus.h.
4398 (struct target_waitstatus): Likewise.
4399 * target.h: Do not include target-common.h and
4400 include target/resume.h, target/wait.h and
4401 target/waitstatus.h.
4402 * target/resume.h: New file.
4403 * target/wait.h: New file.
4404 * target/waitstatus.h: New file.
4405 * target/waitstatus.c: New file.
4406
4407 2013-08-19 Pedro Alves <palves@redhat.com>
4408
4409 * linux-nat.c (linux_test_for_tracefork)
4410 (linux_test_for_tracesysgood, linux_child_follow_fork)
4411 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4412 (linux_nat_wait_1): Extend comment.
4413 (linux_async_pipe): Add comment.
4414
4415 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4416
4417 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4418 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4419 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4420 Update to account for fact that PC is now a pseudo-register.
4421 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4422 cases for RL78_PC_REGNUM.
4423
4424 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4425
4426 PR cli/15841
4427 * top.c (quit_force): Skip writing history file
4428 if input is not from terminal.
4429
4430 2013-08-14 Tom Tromey <tromey@redhat.com>
4431
4432 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4433 resultthreadlist>: New fields.
4434 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4435 (remote_get_threadlist, remote_threadlist_iterator): Use
4436 new fields. Remove static variables.
4437
4438 2013-08-14 Tom Tromey <tromey@redhat.com>
4439
4440 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4441 remote_watch_data_address>: New fields.
4442 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4443 (process_stop_reply, remote_wait_as)
4444 (remote_check_watch_resources, remote_stopped_data_address): Update.
4445
4446 2013-08-14 Tom Tromey <tromey@redhat.com>
4447
4448 * remote.c (struct remote_state) <async_client_callback,
4449 async_client_context>: New fields.
4450 (async_client_callback, async_client_context): Remove.
4451 (remote_async_serial_handler, remote_async): Update.
4452
4453 2013-08-14 Tom Tromey <tromey@redhat.com>
4454
4455 * remote.c (sizeof_pkt): Remove.
4456 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4457
4458 2013-08-14 Tom Tromey <tromey@redhat.com>
4459
4460 * remote.c (struct remote_state) <use_threadinfo_query,
4461 use_threadextra_query>: New fields.
4462 (remote_threads_info, remote_threads_extra_info)
4463 (remote_open_1): Update.
4464
4465 2013-08-14 Tom Tromey <tromey@redhat.com>
4466
4467 * remote.c (struct remote_state) <finished_object,
4468 finished_annex, finished_offset>: New fields.
4469 (remote_read_qxfer): Use remote_state fields; remove static
4470 variables.
4471
4472 2013-08-14 Tom Tromey <tromey@redhat.com>
4473
4474 * remote.c (struct remote_state) <last_sent_step>:
4475 New field.
4476 (last_sent_step): Remove.
4477 (remote_resume, remote_wait_as): Update.
4478
4479 2013-08-14 Tom Tromey <tromey@redhat.com>
4480
4481 * remote.c (struct remote_state) <last_sent_signal>:
4482 New field.
4483 (last_sent_signal): Remove.
4484 (new_remote_state, remote_resume, remote_wait_as): Update.
4485
4486 2013-08-14 Tom Tromey <tromey@redhat.com>
4487
4488 * remote.c (struct remote_state) <last_program_signals_packet>:
4489 New field.
4490 (last_program_signals_packet): Remove.
4491 (remote_program_signals, remote_open_1): Update.
4492
4493 2013-08-14 Tom Tromey <tromey@redhat.com>
4494
4495 * remote.c (struct remote_state) <last_pass_packet>:
4496 New field.
4497 (last_pass_packet): Remove.
4498 (remote_pass_signals, remote_open_1): Update.
4499
4500 2013-08-14 Tom Tromey <tromey@redhat.com>
4501
4502 * remote.c (struct remote_state) <remote_traceframe_number>:
4503 New field.
4504 (remote_traceframe_number): Remove.
4505 (new_remote_state, remote_open_1, set_remote_traceframe)
4506 (remote_trace_find): Update.
4507
4508 2013-08-14 Tom Tromey <tromey@redhat.com>
4509
4510 * remote.c (struct remote_state) <general_thread, continue_thread>:
4511 New fields.
4512 (general_thread, continue_thread): Remove.
4513 (record_currthread, set_thread, set_general_process)
4514 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4515 (extended_remote_mourn_1): Update.
4516
4517 2013-08-14 Tom Tromey <tromey@redhat.com>
4518
4519 * remote.c (struct remote_state) <remote_desc>: New field.
4520 (remote_desc): Remove.
4521 (remote_threads_info, remote_threads_extra_info, remote_close)
4522 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4523 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4524 (remote_hostio_send_command, remote_file_put, remote_file_get)
4525 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4526 (remote_async, remote_new_objfile, set_range_stepping): Update.
4527
4528 2013-08-14 Tom Tromey <tromey@redhat.com>
4529
4530 * remote.c (remote_state): Now a pointer.
4531 (get_remote_state_raw): Update.
4532 (new_remote_state): New function.
4533 (_initialize_remote): Use new_remote_state.
4534
4535 2013-08-14 Tom Tromey <tromey@redhat.com>
4536
4537 * remote.c (remote_protocol_features): Now const.
4538
4539 2013-08-14 Tom Tromey <tromey@redhat.com>
4540
4541 * remote.c (crc32_table, crc32): Remove.
4542 (remote_verify_memory): Use xcrc32.
4543
4544 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4545
4546 * value.h (create_internalvar_type_lazy): Adjust prototype
4547 declaration.
4548
4549 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4550
4551 * common/format.c (parse_format_string): Don't allow '#' flag for
4552 pointer arguments in format string.
4553
4554 2013-08-13 Pierre Muller <muller@sourceware.org>
4555
4556 * utils.c (init_page_info): Only call tgetnum function
4557 if rl_get_screen_size did not return useful values.
4558
4559 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4560
4561 PR breakpoints/15117
4562 * linespec.c (linespec_parse_basic): Check for convenience
4563 variable or history value while parsing.
4564
4565 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4566
4567 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4568 AVR.
4569 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4570 different signals between the generic Linux kernel implementation
4571 and AVR's.
4572 (avr_linux_gdb_signal_from_target): Delete.
4573 (avr_linux_gdb_signal_to_target): Delete.
4574 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4575
4576 2013-08-09 Doug Evans <dje@google.com>
4577
4578 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4579 entries.
4580
4581 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4582
4583 * linux-tdep.c: Define enum with generic signal numbers.
4584 (linux_gdb_signal_from_target): New function.
4585 (linux_gdb_signal_to_target): Likewise.
4586 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4587 methods to the functions above.
4588 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4589 (linux_gdb_signal_to_target): Likewise.
4590 * alpha-linux-tdep.c: Define new enum with signals different
4591 from generic Linux kernel.
4592 (alpha_linux_gdb_signal_from_target): New function.
4593 (alpha_linux_gdb_signal_to_target): Likewise.
4594 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4595 with the functions mentioned above.
4596 * avr-tdep.c: Define enum with differences between Linux kernel
4597 and AVR signals.
4598 (avr_linux_gdb_signal_from_target): New function.
4599 (avr_linux_gdb_signal_to_target): Likewise.
4600 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4601 the functions mentioned above.
4602 * sparc-linux-tdep.c: Define enum with differences between SPARC
4603 and generic Linux kernel signal numbers.
4604 (sparc32_linux_gdb_signal_from_target): New function.
4605 (sparc32_linux_gdb_signal_to_target): Likewise.
4606 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4607 to the functions defined above.
4608 * xtensa-linux-tdep.c: Define enum with differences between
4609 Xtensa and Linux kernel generic signals.
4610 (xtensa_linux_gdb_signal_from_target): New function.
4611 (xtensa_linux_gdb_signal_to_target): Likewise.
4612 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4613 to the functions defined above.
4614 * mips-linux-tdep.c: Define enum with differences between
4615 signals in MIPS and Linux kernel generic ones.
4616 (mips_gdb_signal_to_target): New function.
4617 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4618 only different signals from the Linux kernel generic.
4619 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4620 the functions defined above.
4621 * mips-linux-tdep.h (enum mips_signals): Remove.
4622
4623 2013-08-09 Pedro Alves <palves@redhat.com>
4624
4625 * avr-tdep.c (XMALLOC): Delete macro.
4626 * cli/cli-dump.c (XMALLOC): Delete macro.
4627
4628 2013-08-09 Pedro Alves <palves@redhat.com>
4629
4630 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4631 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4632 (fopen_with_cleanup, add_dump_command): Make static.
4633 * cli/cli-dump.h: Delete file.
4634 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4635 cli/cli-dump.h.
4636
4637 2013-08-09 Pedro Alves <palves@redhat.com>
4638
4639 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4640 error message.
4641
4642 2013-08-09 Pedro Alves <palves@redhat.com>
4643
4644 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4645 error message.
4646
4647 2013-08-09 Pedro Alves <palves@redhat.com>
4648
4649 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4650 (gcore_command): Use tilde_expand here, and when showing the
4651 filename to the user, show the expanded version.
4652
4653 2013-08-09 Yao Qi <yao@codesourcery.com>
4654
4655 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4656 'entryval' is set.
4657
4658 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4659
4660 * gcore.c (create_gcore_bfd): Use tilde_expand.
4661
4662 2013-08-08 Yao Qi <yao@codesourcery.com>
4663
4664 * frame.h (read_frame_local): Declare.
4665 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4666 read_frame_local.
4667 * stack.c (read_frame_local): New.
4668
4669 2013-08-08 Yao Qi <yao@codesourcery.com>
4670
4671 * mi/mi-cmd-stack.c: Update comments to function
4672 list_args_or_locals.
4673
4674 2013-08-07 Tom Tromey <tromey@redhat.com>
4675
4676 PR symtab/15028:
4677 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4678 (process_psymtab_comp_unit_reader): Use it.
4679 (process_psymtab_comp_unit): Update. Add "pretend_language"
4680 argument.
4681 (dwarf2_build_psymtabs_hard): Update.
4682 (scan_partial_symbols): Pass CU's language to
4683 process_psymtab_comp_unit.
4684
4685 2013-08-07 Tom Tromey <tromey@redhat.com>
4686
4687 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4688 (dwarf2_gdb_index_functions): Update.
4689 * psymtab.c (find_symbol_file_from_partial): Remove.
4690 (psym_functions): Update.
4691 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4692 Remove.
4693
4694 2013-08-07 Tom Tromey <tromey@redhat.com>
4695
4696 * symfile.c (set_initial_language): Look up "main" symbol
4697 and use its language.
4698 * symtab.c (find_main_filename): Remove.
4699 * symtab.h (find_main_filename): Remove.
4700
4701 2013-08-07 Tom Tromey <tromey@redhat.com>
4702
4703 * dwarf2read.c (recursively_compute_inclusions): Add
4704 "immediate_parent" argument. Set symtab's "user" field
4705 if not set.
4706 (compute_symtab_includes): Update.
4707
4708 2013-08-07 Tom Tromey <tromey@redhat.com>
4709
4710 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4711 when adding label symbols.
4712
4713 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4714 Ulrich Weigand <uweigand@de.ibm.com>
4715
4716 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4717 * configure.host (powerpc64-*-aix*): Likewise.
4718
4719 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4720 Ulrich Weigand <uweigand@de.ibm.com>
4721
4722 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4723 is defined.
4724 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4725 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4726 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4727 * configure.ac: Check for ptrace64.
4728 * configure, config.in: Regenerate.
4729
4730 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4731 Ulrich Weigand <uweigand@de.ibm.com>
4732
4733 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4734 Call ptrace64 instead of ptrace if defined.
4735 Add macro addr_ptr to take care of ptrace address argument.
4736 (pdc_read_regs): Likewise.
4737 (pdc_write_regs): Likewise.
4738 (aix_thread_resume): Likewise.
4739 (fetch_regs_kernel_thread): Likewise.
4740 (store_regs_kernel_thread): Likewise.
4741
4742 2013-08-07 Anton Blanchard <anton@samba.org>
4743
4744 * MAINTAINERS: Add myself to Write After Approval.
4745
4746 2013-08-05 Tom Tromey <tromey@redhat.com>
4747
4748 * aix-thread.c (_initialize_aix_thread): Use
4749 complete_target_initialization.
4750 * bsd-uthread.c (_initialize_bsd_uthread): Use
4751 complete_target_initialization.
4752 * dec-thread.c (_initialize_dec_thread): Use
4753 complete_target_initialization.
4754 * ravenscar-thread.c (_initialize_ravenscar): Use
4755 complete_target_initialization.
4756 * sol-thread.c (_initialize_sol_thread): Use
4757 complete_target_initialization.
4758 * spu-multiarch.c (_initialize_spu_multiarch): Use
4759 complete_target_initialization.
4760
4761 2013-08-05 Tom Tromey <tromey@redhat.com>
4762
4763 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4764 * ada-lang.c (ada_lookup_simple_minsym): Return
4765 bound_minimal_symbol.
4766 * ada-lang.h (ada_lookup_simple_minsym): Update.
4767 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4768 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4769 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4770 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4771 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4772 * minsyms.c (msymbol_objfile): Remove.
4773 (lookup_minimal_symbol_internal): New function, from
4774 lookup_minimal_symbol.
4775 (lookup_minimal_symbol): Rewrite using
4776 lookup_minimal_symbol_internal.
4777 (lookup_bound_minimal_symbol): New function.
4778 * minsyms.h (msymbol_objfile): Remove.
4779 (lookup_bound_minimal_symbol): Declare.
4780 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4781 * parse.c (write_exp_msymbol): Change parameter to a
4782 bound_minimal_symbol.
4783 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4784 * parser-defs.h (write_exp_msymbol): Update.
4785 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4786 * symfile.c (simple_read_overlay_table): Use
4787 lookup_bound_minimal_symbol.
4788 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4789 (search_symbols): Likewise.
4790 (print_msymbol_info): Take a bound_minimal_symbol argument.
4791 (symtab_symbol_info, rbreak_command): Update.
4792 * symtab.h (struct symbol_search) <msymbol>: Change type
4793 to bound_minimal_symbol.
4794 * valops.c (find_function_in_inferior): Use
4795 lookup_bound_minimal_symbol.
4796 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4797
4798 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4799
4800 Code cleanup.
4801 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4802 to ...
4803 (async_cleanup_sigint_signal_handler): ... this.
4804 (initialize_sigint_signal_handler): Remove declaration.
4805 (handle_remote_sigint): Rename the declaration to ...
4806 (async_handle_remote_sigint): ... this.
4807 (handle_remote_sigint_twice): Rename the declaration to ...
4808 (async_handle_remote_sigint_twice): ... this.
4809 (async_remote_interrupt, async_remote_interrupt_twice)
4810 (remote_interrupt): Remove the declarations.
4811 (remote_interrupt_twice): Rename the declaration ...
4812 (sync_remote_interrupt_twice): ... this.
4813 (sigint_remote_twice_token): Rename the variable to ...
4814 (async_sigint_remote_twice_token): ... this.
4815 (sigint_remote_token): Rename the variable to ...
4816 (async_sigint_remote_token): ... this.
4817 (initialize_sigint_signal_handler): Rename the function to ...
4818 (async_initialize_sigint_signal_handler): ... this. Update the name
4819 inside.
4820 (handle_remote_sigint): Rename the function to ...
4821 (async_handle_remote_sigint): ... this. Update the names inside.
4822 (handle_remote_sigint_twice): Rename the function to ...
4823 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4824 (cleanup_sigint_signal_handler): Rename the function to ...
4825 (async_cleanup_sigint_signal_handler): ... this.
4826 (remote_interrupt): Rename the function to ...
4827 (sync_remote_interrupt): this. Update the names inside.
4828 (remote_interrupt_twice): Rename the function to ...
4829 (sync_remote_interrupt_twice): this. Update the names inside.
4830 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4831 (_initialize_remote): Update the names inside.
4832
4833 2013-08-02 Tom Tromey <tromey@redhat.com>
4834
4835 PR symtab/15719:
4836 * breakpoint.c (update_watchpoint, watchpoint_check)
4837 (watch_command_1): Update.
4838 * eval.c (fetch_subexp_value): Add "preserve_errors"
4839 parameter.
4840 * ppc-linux-nat.c (check_condition): Update.
4841 * value.h (fetch_subexp_value): Update.
4842
4843 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4844
4845 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4846 add_file_handler.
4847
4848 2013-08-01 Doug Evans <dje@google.com>
4849
4850 PR symtab/15691
4851 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4852 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4853 Add assert of sig_entry->dwo_unit == NULL.
4854 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4855 had already been read.
4856 (read_signatured_type): Set per_cu.tu_read.
4857
4858 PR symtab/15695
4859 * valops.c (value_struct_elt): Add missing call to check_typedef.
4860 (value_find_oload_method_list): Ditto.
4861
4862 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4863 effectively, struct symbol_search **.
4864 (make_cleanup_free_search_symbols): Change arg to struct
4865 symbol_search **. All callers updated.
4866 (compare_search_syms): Compare symtab file name and block as well.
4867 (search_symbols_equal): New function.
4868 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4869 New args new_head, new_tail. Result is now void. Remove dups after
4870 sorting the symbols.
4871 (search_symbols): Sort all found symbols once, after all have been
4872 found, and remove duplicates. Simplify cleanup tracking of result.
4873 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4874
4875 Further workarounds for binutils/15021.
4876 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4877 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4878 Watch for duplicate symtabs coming from type units.
4879 (compute_symtab_includes): Update call to
4880 recursively_compute_inclusions. Build vector of included symtabs
4881 instead of per_cus.
4882 * symtab.h (symtab_ptr): New typedef.
4883 (DEF_VEC_P (symtab_ptr)): New VEC type.
4884 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4885 instead.
4886
4887 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4888
4889 * cli/cli-script.c (script_from_file): Remove use of
4890 error_pre_print.
4891 * main.c (captured_main): Remove use of error_pre_print and
4892 quit_pre_print.
4893 * utils.c (error_pre_print, quit_pre_print): Remove.
4894 * utils.h (error_pre_print, quit_pre_print): Likewise.
4895
4896 2013-08-01 Yao Qi <yao@codesourcery.com>
4897
4898 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4899 with mi_getopt.
4900 (mi_cmd_stack_list_variables): Likewise.
4901
4902 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4903
4904 * exceptions.c (deprecated_throw_reason): Remove.
4905 * exceptions.h (deprecated_throw_reason): Remove.
4906
4907 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4908
4909 * remote-mips.c (mips_error): Replace use of
4910 deprecated_throw_reason with throw_verror. Use the error message
4911 passed to mips_error as the error message for throw_verror.
4912
4913 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4914
4915 * monitor.c (monitor_interrupt_query): Replace use of
4916 deprecated_throw_reason with quit.
4917 * nto-procfs.c (interrupt_query): Likewise.
4918 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4919 * remote-mips.c (mips_kill): Likewise.
4920 * remote.c (interrupt_query): Likewise.
4921
4922 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4923
4924 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4925 with call to fatal.
4926
4927 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4928 Yao Qi <yao@codesourcery.com>
4929
4930 * tracepoint.c (trace_dump_command): Select the current frame.
4931
4932 2013-07-30 Doug Evans <dje@google.com>
4933
4934 * dwarf2read.c (process_queue): Add type signature to debug output.
4935
4936 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4937
4938 * value.c (value_fetch_lazy): Mark optimized out values as such
4939 rather than raising an error.
4940
4941 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4942
4943 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4944 before checking which bits of the parent, not the child, value are
4945 valid.
4946
4947 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4948
4949 PR gdb/15715
4950 * top.c: Include "filenames.h".
4951 (set_history_filename): New function.
4952 (init_main): Install it as set hook of the "set history filename"
4953 command.
4954
4955 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4956
4957 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4958 attribute parameter.
4959 (dwarf2_const_value_data): Constify struct attribute parameter.
4960 (dwarf2_const_value): Constify struct attribute parameter.
4961 (dwarf2_const_value_attr): Constify struct attribute parameter.
4962 (lookup_die_type): Constify struct attribute parameter.
4963 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4964 (follow_die_ref_or_sig): Constify struct attribute parameter.
4965 (follow_die_ref): Constify struct attribute parameter.
4966 (follow_die_sig): Constify struct attribute parameter.
4967 (get_DW_AT_signature_type): Constify struct attribute parameter.
4968 (get_type_unit_group): Constify struct attribute parameter.
4969 (fill_in_loclist_baton): Constify struct attribute parameter.
4970 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4971 (type_unit_group): Constify struct attribute parameter.
4972
4973 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4974
4975 * dwarf2read.c (attr_form_is_block): Make argument const.
4976 (attr_form_is_section_offset): Make argument const.
4977 (attr_form_is_constant): Make argument const.
4978 (attr_form_is_ref): Make argument const.
4979
4980 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4981
4982 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4983 All uses updated.
4984 (attr_form_is_ref): Moved below attr_form_is_constant.
4985
4986 2013-07-29 Doug Evans <dje@google.com>
4987
4988 * main.c (captured_command_loop): Tweak comment.
4989
4990 * target.c (target_async_permitted_1): Fix comment.
4991
4992 * symtab.c (iterate_over_some_symtabs): Add comment.
4993
4994 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4995
4996 2013-07-27 Yao Qi <yao@codesourcery.com>
4997
4998 * NEWS: Mention that GDBserver now supports hardware
4999 watchpoints on the MIPS GNU/Linux target.
5000
5001 2013-07-27 Yao Qi <yao@codesourcery.com>
5002
5003 * Makefile.in (HFILES_NO_SRCDIR): Add
5004 common/mips-linux-watch.h.
5005 (mips-linux-watch.o): New rule.
5006 * common/mips-linux-watch.c: New.
5007 * common/mips-linux-watch.h: New.
5008 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5009 * mips-linux-nat.c: Include mips-linux-watch.h.
5010 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5011 to common/mips-linux-watch.h.
5012 (MAX_DEBUG_REGISTER): Likewise.
5013 (enum pt_watch_style): Likewise.
5014 (struct mips32_watch_regs): Likewise.
5015 (struct mips64_watch_regs): Likewise.
5016 (struct pt_watch_regs): Likewise.
5017 (struct mips_watchpoint): Likewise.
5018 (mips_linux_watch_get_irw_mask): Move to
5019 common/mips-linux-watch.c.
5020 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5021 (mips_linux_watch_get_watchlo): Likewise.
5022 (mips_linux_watch_set_watchlo): Likewise.
5023 (mips_linux_watch_get_watchhi): Likewise.
5024 (mips_linux_watch_set_watchhi): Likewise.
5025 (mips_linux_read_watch_registers): Likewise.
5026 (mips_linux_watch_type_to_irw): Likewise.
5027 (mips_linux_stopped_data_address, fill_mask): Likewise.
5028 (mips_linux_watch_try_one_watch): Likewise.
5029 (mips_linux_watch_populate_regs): Likewise.
5030
5031 2013-07-27 Yao Qi <yao@codesourcery.com>
5032
5033 * mips-linux-nat.c (get_irw_mask): Rename to ...
5034 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5035 'set' to 'n'. Update function comment. All callers changed.
5036 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5037 function comment. All callers changed.
5038 (get_num_valid): Rename to ...
5039 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5040 'set' to 'n'. Update function comment. All callers changed.
5041 (get_watchlo): Rename to ...
5042 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5043 'set' to 'n'. Update function comment. All callers changed.
5044 (set_watchlo): Rename to ...
5045 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5046 'set' to 'n'. Update function comment. All callers changed.
5047 (get_watchhi): Rename to ...
5048 (mips_linux_watch_get_watchhi): ... this. Update function
5049 comment. All callers changed.
5050 (set_watchhi): Rename to ...
5051 (mips_linux_watch_set_watchhi): ... this. Update function
5052 comment. All callers changed.
5053 (mips_linux_read_watch_registers): Update function comment.
5054 Add new parameters 'lwpid', 'watch_readback', and
5055 'watch_readback_valid'. Update.
5056 (type_to_irw): Rename to ...
5057 (mips_linux_watch_type_to_irw): ... this. Update function
5058 comment. All callers changed.
5059 (fill_mask): Update function comment.
5060 (try_one_watch): Rename to ...
5061 (mips_linux_watch_try_one_watch): ... this. Change the type
5062 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5063 (populate_regs_from_watches): Rename to ...
5064 (mips_linux_watch_populate_regs): ... this. Add parameter
5065 'current_watches'. All callers changed.
5066
5067 2013-07-27 Yao Qi <yao@codesourcery.com>
5068
5069 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5070 the code.
5071 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5072 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5073 (struct pt_watch_regs): Likewise.
5074 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5075 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5076 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5077 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5078 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5079
5080 2013-07-27 Yao Qi <yao@codesourcery.com>
5081
5082 * breakpoint.h: Include break-common.h.
5083 (enum target_hw_bp_type): Move to ...
5084 * common/break-common.h: ... here. New.
5085
5086 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5087
5088 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5089 process group regardless of having tty on stdin.
5090
5091 2013-07-25 Doug Evans <dje@google.com>
5092
5093 * linux-fork.h (detach_fork): Delete.
5094
5095 2013-07-25 Tom Tromey <tromey@redhat.com>
5096
5097 PR remote/15256, PR remote/15266:
5098 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5099 * monitor.c (monitor_detach): Use unpush_target.
5100 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5101 * remote-mips.c (mips_detach): Use unpush_target. Don't
5102 call mips_close.
5103 * remote-sim.c (gdbsim_detach): Use unpush_target.
5104 * target.c (pop_target): Remove.
5105 (pop_all_targets_above): Don't call target_close.
5106 (target_close): Assert that the target is unpushed.
5107 * target.h (pop_target): Don't declare.
5108 * tracepoint.c (tfile_open): Use unpush_target.
5109
5110 2013-07-25 Tom Tromey <tromey@redhat.com>
5111
5112 * linux-thread-db.c (init_thread_db_ops): Call
5113 complete_target_initialization.
5114 (_initialize_thread_db): Don't call add_target.
5115 * target.c (complete_target_initialization): New function.
5116 (add_target_with_completer): Call it.
5117 * target.h (complete_target_initialization): Declare.
5118
5119 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5120
5121 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5122 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5123 (HPPANBSD_SIZEOF_GREGS): New define.
5124 (hppaobsd_supply_gregset): Handle additional registers.
5125 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5126 we provide more registers now.
5127 (hppabsd_supply_gregset): Supply additional registers.
5128 (hppabsd_collect_gregset): Collect additional registers.
5129
5130 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5131
5132 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5133 (hppabsd_dwarf2_frame_init_reg): New function.
5134 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5135
5136 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5137
5138 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5139 'z' format code. Remove error for optimized out values, standard
5140 code will handle these fine.
5141
5142 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5143
5144 * NEWS: Mention new 'z' formatter.
5145 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5146 (_initialize_printcmd): Mention 'z' formatter in help text of the
5147 'x' command.
5148
5149 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5150
5151 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5152 formatting.
5153
5154 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5155
5156 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5157 interface can evaluate arguments. Fallback to the old mode if it
5158 cannot.
5159 (create_exception_master_breakpoint): Likewise.
5160 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5161 (struct sym_probe_fns elf_probe_fns): Export function above to the
5162 probe interface.
5163 * probe.c (can_evaluate_probe_arguments): New function.
5164 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5165 function pointer.
5166 (can_evaluate_probe_arguments): New function prototype.
5167 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5168 probe interface can evaluate arguments. Fallback to the old mode
5169 if it cannot.
5170 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5171 interface can evaluate arguments. Warning the user if it cannot.
5172 (stap_can_evaluate_probe_arguments): New function.
5173 (struct probe_ops stap_probe_ops): Export function above to the
5174 probe interface.
5175 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5176 New function pointer.
5177
5178 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5179
5180 * Makefile.in (SFILES): Add common/target-common.c.
5181 Add common/target-common.h to headers.
5182 (COMMON_OBS): Add target-common.o.
5183 (target-common.o): New target.
5184 * linux-nat.h (resume_kind): Move to common/target-common.h.
5185 * target.c (target_waitstatus_to_string): Move to
5186 common/target-common.c.
5187 * target.h: Include target-common.h.
5188 (target_waitkind): Move to common/target-common.h.
5189 (target_waitstatus): Likewise.
5190 (TARGET_WNOHANG): Likewise.
5191 * common/target-common.c: New file.
5192 * common/target-common.h: New file.
5193
5194 2013-07-24 Doug Evans <dje@google.com>
5195
5196 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5197 a warning.
5198
5199 2013-07-23 Yao Qi <yao@codesourcery.com>
5200
5201 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5202 parameter 'gdbarch'.
5203 (i386_stack_tramp_frame_sniffer): Caller update.
5204 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5205 parameter 'gdbarch' and 'target'.
5206 (i386_linux_core_read_description): Caller update.
5207 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5208 Likewise.
5209 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5210 declaration.
5211
5212 2013-07-23 Tom Tromey <tromey@redhat.com>
5213
5214 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5215 2013-07-22.
5216
5217 2013-07-22 Doug Evans <dje@google.com>
5218
5219 * exec.h (remove_target_sections): Delete arg abfd.
5220 * exec.c (exec_close): Update call to remove_target_sections.
5221 (remove_target_sections): Delete arg abfd.
5222 * solib.c (update_solib_list): Ditto.
5223 (reload_shared_libraries_1): Ditto.
5224 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5225 * target.h (struct target_section): Rename key to owner.
5226 All uses updated.
5227
5228 2013-07-22 Tom Tromey <tromey@redhat.com>
5229
5230 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5231
5232 2013-07-22 Tom Tromey <tromey@redhat.com>
5233
5234 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5235 Simplify cleanup handling.
5236
5237 2013-07-22 Tom Tromey <tromey@redhat.com>
5238
5239 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5240 on all return paths.
5241
5242 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5243
5244 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5245 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5246 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5247
5248 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5249
5250 * top.c (print_gdb_version): Add help, apropos description and
5251 url to online documentation.
5252
5253 2013-07-19 Hui Zhu <hui@codesourcery.com>
5254
5255 PR gdb/15692
5256 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5257
5258 2013-07-19 Yao Qi <yao@codesourcery.com>
5259
5260 * target.c (update_current_target): Change the default action
5261 of 'to_traceframe_info' from tcomplain to return_zero.
5262 * target.h (struct target_ops) <to_traceframe_info>: Add more
5263 comments.
5264 * valops.c (read_value_memory): Call
5265 traceframe_available_memory unconditionally.
5266
5267 2013-07-18 Yao Qi <yao@codesourcery.com>
5268
5269 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5270 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5271 symbol without prefix. If found, set its type to
5272 'mst_solib_trampoline'.
5273
5274 2013-07-17 Doug Evans <dje@google.com>
5275
5276 * NEWS: Mention "set print raw frame-arguments".
5277 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5278 * stack.c (print_raw_frame_arguments): New static global.
5279 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5280 (_initialize_stack): New command "set/show print raw frame-arguments".
5281 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5282 (set_print_raw, show_print_raw): New functions.
5283 (_initialize_valprint): New prefix command "set/show print raw".
5284 * valprint.h (value_print_options): Improve comments.
5285
5286 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5287 of all *list variables.
5288
5289 * gdbcmd.h (togglelist): Delete.
5290 * cli/cli-cmds.c (togglelist): Delete.
5291 (init_cmd_lists): Update.
5292 * cli/cli-cmds.h (togglelist): Delete.
5293
5294 2013-07-17 Tom Tromey <tromey@redhat.com>
5295
5296 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5297 dwarf2_per_objfile.
5298
5299 2013-07-16 Doug Evans <dje@google.com>
5300
5301 * nto-tdep.c (nto_relocate_section_addresses): Update,
5302 target_section.bfd deleted.
5303 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5304 * s390-tdep.c (s390_load): Ditto.
5305 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5306
5307 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5308
5309 * common/format.c (parse_format_string): Add checks for NULL
5310 character before calling strchr.
5311
5312 2013-07-16 Doug Evans <dje@google.com>
5313
5314 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5315 temp_pathname argument.
5316 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5317 when opening the file fails.
5318
5319 * target.h (struct target_section): Delete member bfd.
5320 All users updated to use the_bfd_section->owner instead.
5321 * exec.c (add_to_section_table): Assert bfd is expected value.
5322 Remove initialization of target_section.bfd.
5323 (remove_target_sections): Update.
5324 (section_table_available_memory): Update.
5325 (section_table_xfer_memory_partial): Update.
5326 (print_section_info): Update.
5327 (exec_set_section_address): Update.
5328 * record-full.c (record_full_core_xfer_partial): Update.
5329 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5330 * solib-target.c (solib_target_relocate_section_addresses): Update.
5331 * symfile.c (build_section_addr_info_from_section_table): Update.
5332 * target.c (memory_xfer_live_readonly_partial): Update.
5333 (memory_xfer_partial_1): Update.
5334
5335 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5336
5337 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5338 now available for embedded (BookE) and server (BookS) processors,
5339 correct mentions of 'booke' and adjust comments accordingly in order to
5340 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5341 (have_ptrace_booke_interface): Rename function and variable
5342 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5343 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5344 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5345 'hwdebug_point_cmp'. Update all uses.
5346 (booke_find_thread_points_by_tid): Rename function
5347 'booke_find_thread_points_by_tid' to
5348 'hwdebug_find_thread_points_by_tid'. Update all uses.
5349 (booke_insert_point): Rename function 'booke_insert_point' to
5350 'hwdebug_insert_point'. Update all uses.
5351 (booke_remove_point): Rename function 'booke_remove_point' to
5352 'hwdebug_remove_point'. Update all uses.
5353
5354 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5355
5356 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5357 numbers with enum values.
5358
5359 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5360
5361 PR threads/13217
5362 * thread.c (thread_apply_all_command): Check for valid threads
5363 and thread count.
5364 (thread_array_cleanup): New struct.
5365 (set_thread_refcount): New function.
5366
5367 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5368
5369 * infcmd.c (default_print_one_register_info): Reuse function
5370 print_hex_chars.
5371
5372 2013-07-10 Tom Tromey <tromey@redhat.com>
5373
5374 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5375 (ada-exp.o): New target.
5376
5377 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5378
5379 * mt-tdep.c (mt_registers_info): Call
5380 get_no_prettyformat_print_options instead of
5381 get_raw_print_options (regression by last patch from Doug
5382 Evans).
5383
5384 2013-07-09 Pedro Alves <palves@redhat.com>
5385
5386 Checked in by Joel Brobecker <brobecker@adacore.com>.
5387 * ada-lang.c (coerce_unspec_val_to_type): Use
5388 value_optimized_out_const.
5389 * value.c (value_optimized_out_const): New function.
5390 * value.h (value_optimized_out_const): New declaration.
5391
5392 2013-07-09 Doug Evans <dje@google.com>
5393
5394 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5395 Enum values rename as well. All uses updated.
5396 * valprint.h (value_print_options): Rename member pretty to
5397 pretty format. Rename member prettyprint_arrays to
5398 prettyformat_arrays. Rename member prettyprint_structs to
5399 prettyformat_structs. All uses updated.
5400 (get_no_prettyformat_print_options): Renamed from
5401 get_raw_print_options.
5402 * valprint.c (get_no_prettyformat_print_options): Renamed from
5403 get_raw_print_options. All callers updated.
5404 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5405 All callers updated.
5406 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5407 All callers updated.
5408 (_initialize_valprint): Improve help text for "set print pretty" and
5409 "set print arrays".
5410
5411 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5412
5413 * value.c (value_bits_valid): Revert previous change, and change
5414 by Pedro on 2013-07-04, due to regressions in
5415 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5416
5417 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5418 Pedro Alves <palves@redhat.com>
5419
5420 * value.c (value_bits_valid): If the value is not lval_computed
5421 or has no check validity handler then the answer is the
5422 optimized_out flag, otherwise defer to the handler.
5423
5424 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5425
5426 * top.c (print_gdb_configuration): Explain in output of
5427 --configuration what does "relocatable" mean.
5428
5429 * main.c (print_gdb_help): Regroup options in the --help text.
5430 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5431 the relevant discussions.
5432
5433 2013-07-06 Yao Qi <yao@codesourcery.com>
5434
5435 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5436 Remove parameter 'lsal'.
5437 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5438 to inner block. Caller update.
5439 (base_breakpoint_create_breakpoints_sal): Update.
5440 (bkpt_create_breakpoints_sal): Likewise.
5441 (tracepoint_create_breakpoints_sal): Likewise.
5442 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5443 element 0 of vector 'canonical->sals'.
5444
5445 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5446
5447 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5448 register number instead of the pseudo register one.
5449 (rs6000_dwarf2_reg_to_regnum): Likewise.
5450
5451 2013-07-04 Pedro Alves <palves@redhat.com>
5452
5453 * findvar.c (value_of_register): Use allocate_optimized_out_value
5454 if the register has been optimized out, instead of
5455 set_value_optimized_out.
5456 * frame-unwind.c (frame_unwind_got_optimized): Use
5457 allocate_optimized_out_value.
5458
5459 2013-07-04 Pedro Alves <palves@redhat.com>
5460
5461 * value.c (value_bits_valid): If the value is not lval_computed,
5462 or doesn't have a check_validity hook, assume the value is entirely
5463 valid.
5464
5465 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5466
5467 * stack.c (read_frame_arg): No longer fetch lazy values.
5468 * value.c (value_optimized_out): If the value is not already
5469 marked optimized out, and is lazy then fetch it.
5470 (value_primitive_field): Move optimized out check to later in the
5471 function, after we have loaded any lazy values.
5472 (value_fetch_lazy): Use optimized out flag directly rather than
5473 calling optimized_out method.
5474
5475 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5476
5477 * valops.c: Don't include "user-regs.h".
5478 (value_fetch_lazy): Moved to value.c.
5479 * value.c: Include "user-regs.h".
5480 (value_fetch_lazy): Moved from valops.c.
5481
5482 2013-07-04 Yao Qi <yao@codesourcery.com>
5483
5484 Revert:
5485 2013-06-27 Yao Qi <yao@codesourcery.com>
5486
5487 * common/create-version.sh: Update comments. Handle the case
5488 that TARGET_ALIAS is empty.
5489
5490 2013-07-03 Pedro Alves <palves@redhat.com>
5491
5492 * Makefile.in (config.status): Depend on development.sh.
5493 (aclocal_m4_deps): Add libmcheck.m4.
5494 * acinclude.m4: Include libmcheck.m4.
5495 * configure.ac: Source development.sh instead of setting
5496 'development' here. --enable-libmcheck/--disable-libmcheck code
5497 factored out to GDB_AC_LIBMCHECK. Run it.
5498 * development.sh: New file.
5499 * libmcheck.m4: New file.
5500 * configure: Regenerate.
5501
5502 2013-07-02 Tom Tromey <tromey@redhat.com>
5503
5504 * contrib/ari/update-web-ari.sh: Update for version.in change.
5505
5506 2013-07-02 Tom Tromey <tromey@redhat.com>
5507
5508 * common/ptid.h: Comment fixes.
5509
5510 2013-07-01 Tom Tromey <tromey@redhat.com>
5511
5512 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5513 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5514 (dwarf2_read_index, create_all_comp_units): Update.
5515
5516 2013-07-01 Tom Tromey <tromey@redhat.com>
5517
5518 * configure.ac (build_warnings): Add -Wold-style-definition.
5519 * configure: Rebuild.
5520 * machoread.c (_initialize_machoread): Use "(void)".
5521 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5522 use "(void)".
5523
5524 2013-07-01 Tom Tromey <tromey@redhat.com>
5525
5526 * configure.ac (build_warnings): Add -Wold-style-declaration.
5527 * configure: Rebuild.
5528 * dsrec.c (make_srec): Use "static const", not "const static".
5529 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5530 not "const static".
5531 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5532 Use "static const", not "const static".
5533 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5534 not "const static".
5535 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5536 not "const static".
5537 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5538 not "const static".
5539 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5540 not "const static".
5541 (v850_dbtrap_breakpoint_from_pc): Likewise.
5542 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5543 not "const static".
5544
5545 2013-07-01 Tom Tromey <tromey@redhat.com>
5546
5547 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5548 * configure: Rebuild.
5549
5550 2013-07-01 Pedro Alves <palves@redhat.com>
5551
5552 * defs.h: Include "pathmax.h".
5553 * utils.c: Don't include sys/param.h.
5554 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5555 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5556 instead of MAXPATHLEN.
5557 * solib-sunos.c: Don't include sys/param.h.
5558 * xcoffread.c: Don't include sys/param.h.
5559 * bsd-kvm.c: Don't include sys/param.h.
5560 * darwin-nat.c: Don't include sys/param.h.
5561 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5562 * darwin-nat-info.c: Don't include sys/param.h.
5563 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5564 MAXPATHLEN.
5565 * i386obsd-nat.c: Don't include sys/param.h.
5566 * inf-child.c: Don't include sys/param.h.
5567 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5568 * linux-fork.c: Don't include sys/param.h.
5569 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5570 * linux-nat.c: Don't include sys/param.h.
5571 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5572 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5573 * m68klinux-nat.c: Don't include sys/param.h.
5574 * nbsd-nat.c: Don't include sys/param.h.
5575 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5576 * ppc-linux-nat.c: Don't include sys/param.h.
5577 * rs6000-nat.c: Don't include sys/param.h.
5578 * spu-linux-nat.c. Don't include sys/param.h.
5579 * windows-nat.c: Don't include sys/param.h.
5580 * xtensa-linux-nat.c: Don't include sys/param.h.
5581 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5582
5583 2013-07-01 Pedro Alves <palves@redhat.com>
5584
5585 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5586 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5587 * gnulib/aclocal.m4: Regenerate.
5588 * gnulib/config.in: Regenerate.
5589 * gnulib/configure: Regenerate.
5590 * gnulib/import/pathmax.h: New file.
5591 * gnulib/import/Makefile.am: Regenerate.
5592 * gnulib/import/Makefile.in: Regenerate.
5593 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5594 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5595 * gnulib/import/m4/pathmax.m4: New file.
5596
5597 2013-07-01 Pedro Alves <palves@redhat.com>
5598
5599 * configure.ac (GDBINIT): Define, depending on host.
5600 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5601 * top.c (PATH_MAX): Delete fallback definition.
5602 (GDBINIT_FILENAME): Delete.
5603 (gdbinit): Reimplement as const char array set to the GDBINIT
5604 string constant.
5605 * top.h (gdbinit): Make const.
5606 * configure, config.in: Regenerate.
5607
5608 2013-07-01 Pedro Alves <palves@redhat.com>
5609
5610 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5611 * cli/cli-cmds.h (source_script): Likewise.
5612 * exceptions.c (catch_command_errors_const): New function.
5613 * exceptions.h (catch_command_errors_const): Declare.
5614 * main.c (get_init_files): Make parameters const, and adjust.
5615 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5616 'local_gdbinit' locals const. Adjust to use
5617 catch_command_errors_const.
5618 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5619 'local_gdbinit' locals const.
5620
5621 2013-07-01 Pedro Alves <palves@redhat.com>
5622
5623 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5624 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5625 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5626 <unistd.h>.
5627
5628 2013-07-01 Pedro Alves <palves@redhat.com>
5629
5630 Import the "unistd" gnulib module.
5631 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5632 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5633 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5634 import/m4/unistd_h.m4.
5635 * gnulib/aclocal.m4: Renenerate.
5636 * gnulib/config.in: Renenerate.
5637 * gnulib/configure: Renenerate.
5638 * gnulib/import/Makefile.am: Renenerate.
5639 * gnulib/import/Makefile.in: Renenerate.
5640 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5641 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5642 * gnulib/import/m4/off_t.m4: New file.
5643 * gnulib/import/m4/ssize_t.m4: New file.
5644 * gnulib/import/m4/sys_types_h.m4: New file.
5645 * gnulib/import/m4/unistd_h.m4: New file.
5646 * gnulib/import/sys_types.in.h: New file.
5647 * gnulib/import/unistd.c: New file.
5648 * gnulib/import/unistd.in.h: New file.
5649
5650 2013-07-01 Pedro Alves <palves@redhat.com>
5651
5652 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5653 defined instead of checking HAVE_UNISTD_H.
5654
5655 2013-07-01 Pedro Alves <palves@redhat.com>
5656
5657 Reimport gnulib from scratch.
5658 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5659 import/m4/onceonly.m4.
5660 * gnulib/aclocal.m4: Renegerate.
5661 * gnulib/config.in: Renegerate.
5662 * gnulib/configure: Renegerate.
5663 * gnulib/import/Makefile.in: Renegerate.
5664 * gnulib/import/extra/update-copyright: Renegerate.
5665 * gnulib/import/m4/onceonly.m4: Delete.
5666
5667 2013-07-01 Pedro Alves <palves@redhat.com>
5668
5669 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5670
5671 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5672
5673 Code cleanup.
5674 * remote.c (async_remote_interrupt_twice): Make it static.
5675 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5676
5677 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5678
5679 * ia64-linux-tdep.c: Include <ctype.h>.
5680 (ia64_linux_stap_is_single_operand): New function.
5681 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5682
5683 2013-06-28 Tom Tromey <tromey@redhat.com>
5684
5685 * Makefile.in (version.c): Use version.in, not
5686 common/version.in.
5687 * common/create-version.sh: Likewise.
5688 * common/version.in: Move...
5689 * version.in: ...here.
5690
5691 2013-06-28 Pedro Alves <palves@redhat.com>
5692
5693 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5694 here.
5695 * utils.h (pagination_enabled): Declare.
5696
5697 2013-06-28 Pedro Alves <palves@redhat.com>
5698
5699 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5700 Move higher up in file.
5701
5702 2013-06-28 Tom Tromey <tromey@redhat.com>
5703
5704 * tracepoint.c (deprecated_readline_begin_hook)
5705 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5706 declare.
5707
5708 2013-06-28 Pedro Alves <palves@redhat.com>
5709
5710 PR tui/14880
5711 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5712 checking if they're available.
5713 * value.c (value_available_contents_eq): Change comment.
5714 * value.h (value_available_contents_eq): Expand comment.
5715
5716 2013-06-27 Tom Tromey <tromey@redhat.com>
5717
5718 * target.c (find_run_target): Remove.
5719 * target.h (find_run_target): Remove.
5720
5721 2013-06-27 Tom Tromey <tromey@redhat.com>
5722
5723 * corelow.c (core_gdbarch): Now static.
5724
5725 2013-06-27 Tom Tromey <tromey@redhat.com>
5726
5727 * target.c (target_struct_index): Remove.
5728
5729 2013-06-27 Pedro Alves <palves@redhat.com>
5730
5731 * infrun.c: Remove comment describing the 'stepping over runtime
5732 loader dynamic symbol resolution code' mechanism; moved to
5733 gdbint.texinfo.
5734
5735 2013-06-27 Pedro Alves <palves@redhat.com>
5736
5737 * exceptions.c (catch_command_errors): Remove spurious space.
5738 * exceptions.h (catch_command_errors): Second parameter is "arg",
5739 not "command".
5740
5741 2013-06-27 Yao Qi <yao@codesourcery.com>
5742
5743 * common/create-version.sh: Update comments. Handle the case
5744 that TARGET_ALIAS is empty.
5745
5746 2013-06-26 Pedro Alves <palves@redhat.com>
5747
5748 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5749 comment.
5750
5751 2013-06-26 Pedro Alves <palves@redhat.com>
5752
5753 * infrun.c: Update comments on stepping over runtime loader
5754 dynamic symbol resolution code.
5755
5756 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5757
5758 * ax-gdb.h (union exp_element): Forward declare.
5759 * parser-defs.h: Include expression.h.
5760
5761 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5762
5763 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5764
5765 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5766
5767 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5768
5769 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5770
5771 Fix trace-status to output proper start-time and stop-time.
5772 * tracepoint.c (trace_status_command): Fix type of printf arg to
5773 prevent improper type conversion.
5774 (trace_status_mi): Likewise.
5775
5776 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5777
5778 * mips-tdep.c (mips_next_pc): Fix a typo.
5779
5780 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5781
5782 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5783
5784 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5785 Yao Qi <yao@codesourcery.com>
5786
5787 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5788 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5789 * mi/mi-main.c (print_variable_or_computed): New function.
5790 (mi_cmd_trace_frame_collected): New function.
5791 * tracepoint.c (find_trace_state_variable_by_number): New.
5792 (struct traceframe_info): Move to tracepoint.h
5793 (struct collection_list): Likewise.
5794 (do_collect_symbol): Include locals and arguments in the
5795 collected variables list.
5796 (clear_collection_list): Clear wholly collected variables list
5797 and computed variables list.
5798 (append_exp): New function.
5799 (encode_actions_1): Include variables in the wholly
5800 collected variables list. Include memory ranges and
5801 full-fledged expressions in the computed expressions list.
5802 (encode_actions): Move some code to ...
5803 Return the cleanup chain.
5804 (encode_actions_rsp): ... here. New function.
5805 (get_traceframe_location, get_traceframe_info): Remove static.
5806 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5807 (struct collection_list): Moved from tracepoint.c. Add two
5808 new fields 'wholly_collected' and 'computed'.
5809 (find_trace_state_variable_by_number): Declare.
5810 (encode_actions): Adjust declaration.
5811 (encode_actions_rsp): Declare.
5812 (get_traceframe_info, get_traceframe_location): Declare.
5813
5814 * NEWS: Mention new MI command -trace-frame-collected.
5815
5816 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5817 Yao Qi <yao@codesourcery.com>
5818
5819 * ctf.c (ctf_traceframe_info): Push trace state variables
5820 present in the trace data into the traceframe info object.
5821 * breakpoint.c (DEF_VEC_I): Remove.
5822 * common/filestuff.c (DEF_VEC_I): Likewise.
5823 * dwarf2loc.c (DEF_VEC_I): Likewise.
5824 * mi/mi-main.c (DEF_VEC_I): Likewise.
5825 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5826 * features/traceframe-info.dtd: Add tvar element and its
5827 attributes.
5828 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5829 (build_traceframe_info): Push trace state variables present in
5830 the trace data into the traceframe info object.
5831 (traceframe_info_start_tvar): New function.
5832 (tvar_attributes): New.
5833 (traceframe_info_children): Add "tvar" element.
5834 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5835
5836 * NEWS: Mention the change in GDB and GDBserver.
5837
5838 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5839 Yao Qi <yao@codesourcery.com>
5840
5841 * tracepoint.c (trace_dump_command): Move code to ...
5842 (get_traceframe_location): ... here. New.
5843
5844 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5845 Yao Qi <yao@codesourcery.com>
5846
5847 * tracepoint.c (trace_dump_command): GDB emits an error
5848 instead of a warning when a traceframe is not selected.
5849
5850 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5851 Yao Qi <yao@codesourcery.com>
5852
5853 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5854 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5855 in collection_list.
5856 (do_clear_collection_list, init_collection_list): New.
5857 (encode_actions): Add local variables 'tracepoint_list' and
5858 'stepping_list'. Call init_collection_list and make cleanup
5859 which calls do_clear_collection_list. Don't call
5860 clear_collection_list.
5861 (_initialize_tracepoint): Delete references to
5862 'tracepoint_list' and 'stepping_list'.
5863
5864 2013-06-25 Tom Tromey <tromey@redhat.com>
5865
5866 * common/create-version.sh (date): Use "$", not "$$" in sed
5867 expression.
5868
5869 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5870
5871 * NEWS (New targets): Add entry for TI MSP430.
5872
5873 2013-06-25 Yao Qi <yao@codesourcery.com>
5874
5875 * remote.c (remote_start_remote): Move code to upload tsv
5876 earlier.
5877
5878 2013-06-25 Yao Qi <yao@codesourcery.com>
5879 Hui Zhu <hui@codesourcery.com>
5880 Pedro Alves <palves@redhat.com>
5881
5882 PR breakpoints/15075
5883 PR breakpoints/15434
5884 * breakpoint.c (bpstat_stop_status): Call
5885 b->ops->after_condition_true.
5886 (update_dprintf_command_list): Don't append "continue" command
5887 to the command list of dprintf breakpoint.
5888 (base_breakpoint_after_condition_true): New function.
5889 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5890 (dprintf_after_condition_true): New function.
5891 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5892 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5893
5894 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5895
5896 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5897 (ALLDEPFILES): Add msp430-tdep.c.
5898 * configure.tgt (msp430*-*-elf): New target.
5899 * msp430-tdep.c: New file.
5900
5901 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5902
5903 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5904 microMIPS synthetic symbols.
5905
5906 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5907
5908 * objfiles.h (pc_in_section): New prototype.
5909 (in_plt_section): Remove name argument, replace prototype with
5910 static inline function.
5911 * mips-tdep.h: Include "objfiles.h".
5912 (in_mips_stubs_section): New function.
5913 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5914 in_solib_call_trampoline member.
5915 (hppa_in_solib_call_trampoline): Remove name argument.
5916 * objfiles.c (pc_in_section): New function.
5917 (in_plt_section): Remove function.
5918 * mips-linux-tdep.c: Include "objfiles.h".
5919 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5920 name argument. Return 1 rather than the low 16-bit halfword of
5921 any instruction examined.
5922 (mips_linux_in_dynsym_resolve_code): Update
5923 mips_linux_in_dynsym_stub call accordingly.
5924 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5925 rather than an equivalent hand-coded sequence.
5926 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5927 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5928 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5929 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5930 in_opd_section.
5931 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5932 on call to tdep->in_solib_call_trampoline.
5933 (hppa_in_solib_call_trampoline): Remove name argument, update
5934 according to in_plt_section change.
5935 (hppa_skip_trampoline_code): Update according to in_plt_section
5936 change.
5937 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5938 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5939 Likewise.
5940 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5941 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5942 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5943 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5944 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5945 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5946 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5947 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5948 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5949 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5950 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5951 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5952 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5953
5954 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5955
5956 * common/create-version.sh: Fix expansion of $host_alias
5957 and $target_alias in generation of HOST_NAME and TARGET_NAME
5958 (resp.).
5959
5960 2013-06-24 Tom Tromey <tromey@redhat.com>
5961
5962 * common/create-version.sh: New file.
5963 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5964 create-version.sh.
5965 (HFILES_NO_SRCDIR): Use common/version.h.
5966 * version.in: Move to ...
5967 * common/version.in: ... here. Replace date with "DATE".
5968 * version.h: Move to ...
5969 * common/version.h: ... here.
5970
5971 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5972
5973 * gdb/gnulib/Makefile.in: Update date in copyright header.
5974 * gdb/gnulib/configure.ac: Ditto.
5975 * gdb/gnulib/update-gnulib.sh: Ditto.
5976
5977 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5978
5979 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5980 "gdb/gnulib/import".
5981
5982 2013-06-21 Will Newton <will.newton@linaro.org>
5983
5984 * doublest.c (ldfrexp): Remove function.
5985 (convert_doublest_to_floatformat): Call frexpl instead of
5986 ldfrexp.
5987
5988 2013-06-21 Will Newton <will.newton@linaro.org>
5989
5990 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5991 * gnulib/aclocal.m4: Regenerate.
5992 * gnulib/config.in: Regenerate.
5993 * gnulib/configure: Regenerate.
5994 * gnulib/import/Makefile.am: Update.
5995 * gnulib/import/Makefile.in: Update.
5996 * gnulib/import/m4/gnulib-cache.m4: Update.
5997 * gnulib/import/m4/gnulib-comp.m4: Update.
5998 * gnulib/import/float+.h: Import.
5999 * gnulib/import/float.c: Import.
6000 * gnulib/import/float.in.h: Import.
6001 * gnulib/import/fpucw.h: Import.
6002 * gnulib/import/frexp.c: Import.
6003 * gnulib/import/frexpl.c: Import.
6004 * gnulib/import/isnan.c: Import.
6005 * gnulib/import/isnand-nolibm.h: Import.
6006 * gnulib/import/isnand.c: Import.
6007 * gnulib/import/isnanl-nolibm.h: Import.
6008 * gnulib/import/isnanl.c: Import.
6009 * gnulib/import/itold.c: Import.
6010 * gnulib/import/m4/exponentd.m4: Import.
6011 * gnulib/import/m4/exponentl.m4: Import.
6012 * gnulib/import/m4/float_h.m4: Import.
6013 * gnulib/import/m4/fpieee.m4: Import.
6014 * gnulib/import/m4/frexp.m4: Import.
6015 * gnulib/import/m4/frexpl.m4: Import.
6016 * gnulib/import/m4/isnand.m4: Import.
6017 * gnulib/import/m4/isnanl.m4: Import.
6018 * gnulib/import/m4/math_h.m4: Import.
6019 * gnulib/import/math.c: Import.
6020 * gnulib/import/math.in.h: Import.
6021
6022 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6023
6024 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6025 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6026 signature_INTEL_edx comparisons.
6027
6028 2013-06-20 Doug Evans <dje@google.com>
6029
6030 symtab/15652
6031 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6032 All callers updated.
6033 (open_dwp_file): If we can't find the dwp file, search the basename
6034 in debug-file-directory.
6035
6036 * dwarf2read.c (struct dwp_file): Fix comment.
6037 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6038
6039 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6040 better.
6041
6042 2013-06-20 Yao Qi <yao@codesourcery.com>
6043
6044 * breakpoint.c (create_breakpoint): Fix code indentation.
6045
6046 2013-06-20 Yao Qi <yao@codesourcery.com>
6047
6048 * breakpoint.c (create_breakpoints_sal_default): Remove
6049 parameter 'lsal'. Update declaration.
6050 (bkpt_create_breakpoints_sal): Caller update.
6051 (tracepoint_create_breakpoints_sal): Likewise.
6052
6053 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6054 Yao Qi <yao@codesourcery.com>
6055
6056 * NEWS: Mention the new option '--skip-unavailable' of command
6057 -data-list-register-values.
6058 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6059 --skip-unavailable option. Adjust to use output_register.
6060 (output_register): Add new 'skip_unavailable' parameter.
6061 Handle it.
6062
6063 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6064
6065 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6066 common/i386-gcc-cpuid.h.
6067 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6068 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6069 Copy the latest version from upstream gcc.
6070 * common/linux-btrace.c: Include i386-cpuid.h.
6071 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6072 call to i386_cpuid.
6073 (cpu_supports_btrace): Likewise.
6074 * go32-nat.c: Include i386-cpuid.h.
6075 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6076
6077 2013-06-19 Doug Evans <dje@google.com>
6078
6079 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6080 (get_section_index): Ditto.
6081
6082 2013-06-19 Tom Tromey <tromey@redhat.com>
6083
6084 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6085 "dprintf" help.
6086
6087 2013-06-18 Doug Evans <dje@google.com>
6088
6089 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6090 before using it.
6091 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6092 Move test of cu_index closer to use. Print complaint if cu_index
6093 is bad.
6094
6095 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6096
6097 * machoread.c (oso_vector): Delete this global.
6098 (macho_register_oso): Add new parameter "oso_vector_ptr".
6099 Use it instead of the "oso_vector" global.
6100 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6101 (macho_symfile_read): Use a local oso_vector, to be free'ed
6102 at the end of this function, in place of the old "oso_vector"
6103 global. Update various function calls accordingly. Use one
6104 single cleanup chain for the entire function.
6105
6106 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6107
6108 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6109 DWARF2_PER_OBJFILE by uses of DATA instead.
6110
6111 2013-06-18 Tom Tromey <tromey@redhat.com>
6112
6113 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6114 argument.
6115 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6116 Special case signals other than GDB_SIGNAL_TRAP.
6117 (explains_signal_watchpoint): New function.
6118 (base_breakpoint_explains_signal): Add 'sig' argument.
6119 (initialize_breakpoint_ops): Set 'explains_signal' method for
6120 watchpoints.
6121 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6122 signal argument.
6123 (bpstat_explains_signal): Likewise.
6124 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6125
6126 2013-06-18 Tom Tromey <tromey@redhat.com>
6127
6128 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6129
6130 2013-06-18 Tom Tromey <tromey@redhat.com>
6131
6132 * python/python.c (finish_python_initialization): Decref
6133 'pythondir' on failure path as well.
6134
6135 2013-06-18 Tom Tromey <tromey@redhat.com>
6136
6137 PR symtab/15391:
6138 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6139 after taking bits_to_skip into account. Sign extend byte_offset.
6140 * utils.h (gdb_sign_extend): Declare.
6141 * utils.c (gdb_sign_extend): New function.
6142
6143 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6144
6145 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6146
6147 2013-06-17 Pierre Muller <muller@sourceware.org>
6148
6149 * corelow.c (core_open): Print GDB signal name instead of target
6150 signal number.
6151
6152 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6153
6154 * .gitignore: Add /gcore.
6155
6156 2013-06-13 Doug Evans <dje@google.com>
6157
6158 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6159 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6160
6161 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6162
6163 * stack.c (backtrace_command_1): Fix indentation.
6164
6165 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6166
6167 * window-nat.c (thread_rec): Add missing empty line after
6168 local variable declaration.
6169
6170 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6171
6172 * windows-nat.c (thread_rec): Revert format used to print
6173 error code returned by SuspendThread from %d back to %u.
6174
6175 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6176
6177 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6178 ID in debug trace.
6179 (get_windows_debug_event): Likewise, for all debug traces.
6180
6181 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6182
6183 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6184 warning message.
6185
6186 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6187 Yao Qi <yao@codesourcery.com>
6188
6189 * mi/mi-main.c (get_register): Remove declaration.
6190 (output_register): Declare.
6191 (mi_cmd_data_list_register_values): Remove local variable
6192 'tuple_cleanup'. Move some code into output_register.
6193 (get_register): Renamed to ...
6194 (output_register): ... this. Output the register's
6195 "number" ui_out tuple here.
6196
6197 2013-06-07 Pedro Alves <palves@redhat.com>
6198
6199 * darwin-nat.c: Fix formating in copyright header.
6200 * darwin-nat.h: Likewise.
6201 * gnu-nat.c: Likewise.
6202 * machoread.c: Likewise.
6203
6204 2013-06-07 Pedro Alves <palves@redhat.com>
6205
6206 PR server/14823
6207 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6208 static. Output a global target description pointer.
6209 (init_registers_${name}): Adjust to initialize a
6210 target description structure.
6211
6212 2013-06-07 Will Newton <will.newton@linaro.org>
6213
6214 * printcmd.c (build_address_symbolic): Call
6215 gdbarch_addr_bits_remove for text minimal symbols.
6216
6217 2013-06-07 Will Newton <will.newton@linaro.org>
6218
6219 * MAINTAINERS: Add myself to Write After Approval.
6220
6221 2013-06-07 Yao Qi <yao@codesourcery.com>
6222
6223 * tracepoint.c (start_tracing): Move code to ...
6224 (trace_reset_local_state): ... here. New.
6225 (disconnect_tracing): Don't call set_current_traceframe,
6226 set_tracepoint_num, and set_traceframe_context. Call
6227 trace_reset_local_state instead.
6228 (tfile_close): Call trace_reset_local_state.
6229 * ctf.c (ctf_close): Likewise.
6230 * remote.c (remote_close): Likewise.
6231 * tracepoint.h (trace_reset_local_state): Declare.
6232
6233 2013-06-06 Doug Evans <dje@google.com>
6234
6235 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6236 and fix header docs.
6237
6238 2013-06-05 Doug Evans <dje@google.com>
6239 Keith Seitz <keiths@redhat.com>
6240
6241 PR 15519
6242 * cp-namespace.c (find_symbol_in_baseclass): Call
6243 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6244 Check result of call to lookup_symbol_static.
6245 Call lookup_static_symbol_aux unconditionally.
6246 Call check_typedef on base types before accessing them.
6247 (cp_lookup_nested_symbol): Fix comment.
6248
6249 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6250
6251 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6252 minimal symbols pointing to function descriptors.
6253
6254 2013-06-05 Tom Tromey <tromey@redhat.com>
6255
6256 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6257
6258 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6259 Pedro Alves <palves@redhat.com>
6260
6261 * remote.c (remote_wait_as): Restore signal handler before returning
6262 when GDB gets a notification.
6263
6264 2013-06-04 Gary Benson <gbenson@redhat.com>
6265
6266 PR 2328
6267 * breakpoint.h (handle_solib_event): Moved function declaration
6268 to solib.h.
6269 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6270 (bpstat_stop_status): Pass new argument to handle_solib_event.
6271 * solib.h (update_solib_breakpoints): New function declaration.
6272 (handle_solib_event): Moved function declaration from
6273 breakpoint.h.
6274 * solib.c (update_solib_breakpoints): New function.
6275 (handle_solib_event): Moved function from breakpoint.c.
6276 Updated to call solib_ops->handle_event if not NULL.
6277 * solist.h (target_so_ops): New fields "update_breakpoints" and
6278 "handle_event".
6279 * infrun.c (set_stop_on_solib_events): New function.
6280 (_initialize_infrun): Use the above for "set
6281 stop-on-solib-events".
6282 (handle_inferior_event): Pass new argument to handle_solib_event.
6283 * solib-svr4.c (probe.h): New include.
6284 (svr4_free_library_list): New forward declaration.
6285 (probe_action): New enum.
6286 (probe_info): New struct.
6287 (probe_info): New static variable.
6288 (NUM_PROBES): New definition.
6289 (svr4_info): New fields "using_xfer", "probes_table" and
6290 "solib_list".
6291 (free_probes_table): New function.
6292 (free_solib_list): New function.
6293 (svr4_pspace_data_cleanup): Free probes table and solib list.
6294 (svr4_copy_library_list): New function.
6295 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6296 (svr4_read_so_list): New parameter "prev_lm".
6297 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6298 (svr4_current_sos): New function.
6299 (probe_and_action): New struct.
6300 (hash_probe_and_action): New function.
6301 (equal_probe_and_action): Likewise.
6302 (register_solib_event_probe): Likewise.
6303 (solib_event_probe_at): Likewise.
6304 (solib_event_probe_action): Likewise.
6305 (solist_update_full): Likewise.
6306 (solist_update_incremental): Likewise.
6307 (disable_probes_interface_cleanup): Likewise.
6308 (svr4_handle_solib_event): Likewise.
6309 (svr4_update_solib_event_breakpoint): Likewise.
6310 (svr4_update_solib_event_breakpoints): Likewise.
6311 (svr4_create_solib_event_breakpoints): Likewise.
6312 (enable_break): Free probes table before creating breakpoints.
6313 Use svr4_create_solib_event_breakpoints to create breakpoints.
6314 (svr4_solib_create_inferior_hook): Free the solib list.
6315 (_initialize_svr4_solib): Initialise
6316 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6317
6318 2013-06-04 Gary Benson <gbenson@redhat.com>
6319
6320 * target.h (target_ops): New field
6321 "to_augmented_libraries_svr4_read".
6322 (target_augmented_libraries_svr4_read): New macro.
6323 * target.c (update_current_target): Handle
6324 to_augmented_libraries_svr4_read.
6325 * remote.c (remote_state): New field
6326 "augmented_libraries_svr4_read".
6327 (remote_augmented_libraries_svr4_read_feature): New function.
6328 (remote_protocol_features): Add entry for
6329 "augmented-libraries-svr4-read".
6330 (remote_augmented_libraries_svr4_read): New function.
6331 (init_remote_ops): Initialize
6332 remote_ops.to_augmented_libraries_svr4_read.
6333
6334 2013-06-04 Gary Benson <gbenson@redhat.com>
6335
6336 * NEWS: Update.
6337
6338 2013-06-04 Gary Benson <gbenson@redhat.com>
6339
6340 * objfiles.h (inhibit_section_map_updates): New function
6341 declaration.
6342 (resume_section_map_updates): Likewise.
6343 (resume_section_map_updates_cleanup): Likewise.
6344 * objfiles.c (objfile_pspace_info): Removed field
6345 "objfiles_changed_p". New fields "new_objfiles_available",
6346 "section_map_dirty" and "inhibit_updates".
6347 (allocate_objfile): Set new_objfiles_available.
6348 (free_objfile): Set section_map_dirty.
6349 (objfile_relocate1): Likewise.
6350 (in_plt_section): Likewise.
6351 (find_pc_section): Update the conditions under which the
6352 section map will be updated.
6353 (inhibit_section_map_updates): New function.
6354 (resume_section_map_updates): Likewise.
6355 (resume_section_map_updates_cleanup): Likewise.
6356
6357 2013-06-04 Gary Benson <gbenson@redhat.com>
6358
6359 * probe.h (get_probe_argument_count): New declaration.
6360 (evaluate_probe_argument): Likewise.
6361 * probe.c (get_probe_argument_count): New function.
6362 (evaluate_probe_argument): Likewise.
6363 (probe_safe_evaluate_at_pc): Use the above new functions.
6364
6365 2013-06-04 Alan Modra <amodra@gmail.com>
6366
6367 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6368 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6369 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6370 target mem reads on optional insns.
6371 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6372 ppc_insns_match_pattern calls.
6373 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6374 Add match for power7 thread safety insns, and new order of
6375 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6376 invocation in comment, and update rest of comment.
6377 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6378 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6379 (ppc64_standard_linkage2_target): Update insn offsets.
6380 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6381 stubs first. Update calls.
6382
6383 2013-06-04 Yao Qi <yao@codesourcery.com>
6384
6385 * solib.c (solib_find): Don't need dir separator if path has
6386 drive spec.
6387
6388 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6389
6390 Revert (indirectly causes a SIGSEGV):
6391 * machoread.c (macho_symfile_read): Assign first cleanup to
6392 'back_to'.
6393
6394 2013-06-03 Yao Qi <yao@codesourcery.com>
6395
6396 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6397 mi-parse.c. Make them static.
6398 (mi_all_values): Likewise.
6399 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6400 mi_parse_print_values. Make it external.
6401 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6402 Remove the declarations.
6403 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6404 * mi/mi-parse.h (mi_parse_print_values): Declare.
6405 * mi/mi-cmd-stack.c: Include mi-parse.h.
6406 (parse_print_values): Remove
6407 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6408 of parse_print_values.
6409 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6410
6411 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6412 Yao Qi <yao@codesourcery.com>
6413
6414 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6415 (encode_actions): Move code to ...
6416 (all_tracepoint_actions_and_cleanup): ... here. New.
6417 (trace_dump_command): Likewise.
6418
6419 2013-05-30 Tom Tromey <tromey@redhat.com>
6420
6421 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6422
6423 2013-05-30 Tom Tromey <tromey@redhat.com>
6424
6425 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6426 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6427 'old_chain' argument. Add 'parser_result' argument.
6428 (gdb_xml_create_parser_and_cleanup): Remove old version.
6429 (gdb_xml_parse_quick): Update.
6430 (xml_process_xincludes): Update.
6431 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6432 declare.
6433
6434 2013-05-30 Tom Tromey <tromey@redhat.com>
6435
6436 * probe.c (collect_probes): Check arguments for NULL before
6437 calling compile_rx_or_error.
6438 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6439 Remove NULL return.
6440
6441 2013-05-30 Tom Tromey <tromey@redhat.com>
6442
6443 * infrun.c (adjust_pc_after_break): Introduce an outer null
6444 cleanup.
6445
6446 2013-05-30 Tom Tromey <tromey@redhat.com>
6447
6448 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6449
6450 2013-05-30 Tom Tromey <tromey@redhat.com>
6451
6452 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6453 for 'old_chain'. Do not check 'head' before processing
6454 cleanups.
6455
6456 2013-05-30 Tom Tromey <tromey@redhat.com>
6457
6458 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6459 "cleanup_tuple".
6460
6461 2013-05-30 Tom Tromey <tromey@redhat.com>
6462
6463 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6464 inner scope. Unconditionally call do_cleanups.
6465
6466 2013-05-30 Tom Tromey <tromey@redhat.com>
6467
6468 * source.c (find_and_open_source): Call do_cleanups.
6469
6470 2013-05-30 Tom Tromey <tromey@redhat.com>
6471
6472 * linux-thread-db.c (thread_db_load_search): Unconditionally
6473 call do_cleanups.
6474
6475 2013-05-30 Tom Tromey <tromey@redhat.com>
6476
6477 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6478 for 'cleanup'; instead use a later one.
6479
6480 2013-05-30 Tom Tromey <tromey@redhat.com>
6481
6482 * python/py-breakpoint.c (bppy_get_commands): Use
6483 explicit, unconditional return.
6484 * python/py-frame.c (frapy_read_var): Likewise.
6485 * python/python.c (gdbpy_decode_line): Likewise.
6486
6487 2013-05-30 Tom Tromey <tromey@redhat.com>
6488
6489 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6490 do_cleanups on all return paths.
6491
6492 2013-05-30 Tom Tromey <tromey@redhat.com>
6493
6494 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6495
6496 2013-05-30 Tom Tromey <tromey@redhat.com>
6497
6498 * stabsread.c (read_struct_type): Call do_cleanups along
6499 all return paths.
6500
6501 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6502
6503 * mips-linux-tdep.c: Adjust formatting throughout.
6504
6505 2013-05-30 Tom Tromey <tromey@redhat.com>
6506
6507 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6508 along all return paths.
6509
6510 2013-05-30 Tom Tromey <tromey@redhat.com>
6511
6512 * symfile.c (find_separate_debug_file): Call do_cleanups
6513 along all return paths.
6514
6515 2013-05-30 Tom Tromey <tromey@redhat.com>
6516
6517 * symtab.c (search_symbols): Introduce a null cleanup for
6518 'retval_chain'.
6519
6520 2013-05-30 Tom Tromey <tromey@redhat.com>
6521
6522 * python/py-value.c (valpy_binop): Call do_cleanups before
6523 exiting loop.
6524
6525 2013-05-30 Tom Tromey <tromey@redhat.com>
6526
6527 * python/py-prettyprint.c (print_children): Remove extra
6528 do_cleanups call.
6529
6530 2013-05-30 Tom Tromey <tromey@redhat.com>
6531
6532 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6533 all return paths.
6534
6535 2013-05-30 Tom Tromey <tromey@redhat.com>
6536
6537 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6538 along all return paths.
6539
6540 2013-05-30 Tom Tromey <tromey@redhat.com>
6541
6542 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6543 call do_cleanups.
6544
6545 2013-05-30 Tom Tromey <tromey@redhat.com>
6546
6547 * varobj.c (c_value_of_root): Call do_cleanups along all
6548 return paths.
6549
6550 2013-05-30 Tom Tromey <tromey@redhat.com>
6551
6552 * tracepoint.c (trace_dump_command): Unconditionally call
6553 do_cleanups.
6554
6555 2013-05-30 Tom Tromey <tromey@redhat.com>
6556
6557 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6558 do_cleanups earlier.
6559
6560 2013-05-30 Tom Tromey <tromey@redhat.com>
6561
6562 * machoread.c (macho_symfile_read): Assign first cleanup to
6563 'back_to'.
6564
6565 2013-05-30 Tom Tromey <tromey@redhat.com>
6566
6567 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6568
6569 2013-05-30 Tom Tromey <tromey@redhat.com>
6570
6571 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6572
6573 2013-05-30 Tom Tromey <tromey@redhat.com>
6574
6575 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6576 call discard_cleanups.
6577 (inf_ptrace_attach): Likewise.
6578
6579 2013-05-30 Tom Tromey <tromey@redhat.com>
6580
6581 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6582 return paths.
6583 (mips_initialize): Likewise.
6584 (common_open): Call do_cleanups.
6585
6586 2013-05-30 Tom Tromey <tromey@redhat.com>
6587
6588 * utils.c (internal_vproblem): Call do_cleanups.
6589
6590 2013-05-30 Tom Tromey <tromey@redhat.com>
6591
6592 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6593
6594 2013-05-30 Tom Tromey <tromey@redhat.com>
6595
6596 * cli/cli-script.c (setup_user_args): Don't return after error.
6597
6598 2013-05-30 Tom Tromey <tromey@redhat.com>
6599
6600 * somread.c (som_symtab_read): Call do_cleanups.
6601
6602 2013-05-30 Tom Tromey <tromey@redhat.com>
6603
6604 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6605
6606 2013-05-30 Tom Tromey <tromey@redhat.com>
6607
6608 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6609 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6610 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6611 * source.c (show_substitute_path_command): Call do_cleanups.
6612 (unset_substitute_path_command, set_substitute_path_command):
6613 Likewise.
6614 * symfile.c (load_command): Call do_cleanups.
6615
6616 2013-05-30 Tom Tromey <tromey@redhat.com>
6617
6618 * contrib/cleanup_check.py: New file.
6619 * contrib/gcc-with-excheck: Add option parsing.
6620
6621 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6622
6623 * windows-nat.c (windows_delete_thread): Add missing space
6624 in cast expression.
6625
6626 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6627
6628 * inferior.c (top level): Include tilde.h.
6629 (add_inferior_command): Call tilde_expand on the value of 'exec'
6630 argument.
6631
6632 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6633 Yao Qi <yao@codesourcery.com>
6634
6635 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6636 Caller update.
6637 (encode_actions): Likewise.
6638 * remote.c (remote_download_tracepoint): Caller update.
6639 * tracepoint.h (encode_actions): Update declaration.
6640
6641 2013-05-30 Pedro Alves <palves@redhat.com>
6642
6643 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6644 pointer.
6645
6646 2013-05-30 Yao Qi <yao@codesourcery.com>
6647
6648 * remote.c (remote_check_symbols): Remove unused parameter
6649 'objfile'.
6650 Declaration update.
6651 (remote_start_remote, remote_new_objfile): Caller update.
6652
6653 2013-05-30 Yao Qi <yao@codesourcery.com>
6654
6655 * mi/mi-cmds.c (mi_cmds): Define MI command
6656 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6657 DEF_MI_CMD_CLI.
6658
6659 2013-05-29 Pedro Alves <palves@redhat.com>
6660
6661 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6662 (remote_insert_watchpoint, remote_remove_watchpoint)
6663 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6664 (remote_verify_memory, compare_sections_command)
6665 (remote_search_memory): Set the general process/thread on the
6666 remote side.
6667
6668 2013-05-29 Pedro Alves <palves@redhat.com>
6669
6670 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6671 (_initialize_aarch64_tdep): Don't call
6672 initialize_tdesc_aarch64_without_fpu.
6673 * features/Makefile (WHICH): Remove reference to
6674 aarch64-without-fpu.
6675 * features/aarch64-without-fpu.c: Delete file.
6676 * regformats/aarch64-without-fpu.dat: Delete file.
6677
6678 2013-05-28 Yao Qi <yao@codesourcery.com>
6679
6680 * tracepoint.c (stringify_collection_list): Remove parameter
6681 'string'.
6682 (encode_actions): Caller update. Remove local variables.
6683
6684 2013-05-24 Yao Qi <yao@codesourcery.com>
6685
6686 * tracepoint.c (TFILE_PID): Remove.
6687 (tfile_open): Don't add thread and inferior.
6688 (tfile_close): Don't set 'inferior_ptid'. Don't call
6689 exit_inferior_silent.
6690 (tfile_thread_alive): Remove.
6691 (init_tfile_ops): Don't set field 'to_thread_alive' of
6692 tfile_ops.
6693
6694 2013-05-23 Doug Evans <dje@google.com>
6695
6696 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6697
6698 2013-05-23 Pedro Alves <palves@redhat.com>
6699
6700 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6701 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6702 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6703 Only define if HAVE_SOCKETS is defined.
6704 * configure.ac: Check for sys/socket.h.
6705 * config.in, configure: Regenerate.
6706
6707 2013-05-23 Pedro Alves <palves@redhat.com>
6708
6709 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6710 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6711 printing uint32_t variables.
6712
6713 2013-05-23 Pedro Alves <palves@redhat.com>
6714
6715 * NEWS: Mention GDBserver range stepping support.
6716
6717 2013-05-23 Yao Qi <yao@codesourcery.com>
6718 Pedro Alves <palves@redhat.com>
6719
6720 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6721 field.
6722 * infcmd.c (step_once, until_next_command): Enable range stepping.
6723 * infrun.c (displaced_step_prepare): Disable range stepping.
6724 (resume): Disable range stepping if stepping over a breakpoint or
6725 we have software watchpoints. If range stepping is enabled,
6726 assert the thread is in the stepping range.
6727 (clear_proceed_status_thread): Clear may_range_step.
6728 (handle_inferior_event): Disable range stepping as soon as we know
6729 the thread that hit the event. Re-enable it whenever we're going
6730 to step with a step range.
6731 * remote.c (struct vCont_action_support) <r>: New field.
6732 (use_range_stepping): New global.
6733 (remote_vcont_probe): Handle 'r' action.
6734 (append_resumption): Append an 'r' action if the thread may range
6735 step.
6736 (show_range_stepping): New function.
6737 (set_range_stepping): New function.
6738 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6739 'set range-stepping' and 'show range-stepping' commands.
6740 * NEWS: Mention range stepping, the new vCont;r action, and the
6741 new "set/show range-stepping" commands.
6742
6743 2013-05-23 Yao Qi <yao@codesourcery.com>
6744 Pedro Alves <palves@redhat.com>
6745
6746 * remote.c (struct vCont_action_support): New struct.
6747 (struct remote_state) <support_vCont_t>: Remove field.
6748 <vCont_actions_support>: New field.
6749 (remote_vcont_probe, remote_stop_ns): Update.
6750
6751 2013-05-23 Yao Qi <yao@codesourcery.com>
6752 Pedro Alves <palves@redhat.com>
6753
6754 * gdbthread.h (pc_in_thread_step_range): New declaration.
6755 * thread.c (pc_in_thread_step_range): New function.
6756 * infrun.c (handle_inferior_event): Use it.
6757
6758 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6759
6760 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6761 of sprintf.
6762
6763 2013-05-22 Keith Seitz <keiths@redhat.com>
6764
6765 * ada-lang.c (is_known_support_routine): Add explicit free of
6766 'func_name' from find_frame_funname.
6767 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6768 for func_name from find_frame_funname.
6769 * python/py-frame.c (frapy_name): Add explicit free of
6770 'name' from find_frame_funname.
6771 * stack.c (find_frame_funname): Add comment explaining that
6772 funcp must be freed by the caller.
6773 Return copy of symbol names instead of pointers.
6774 (print_frame): Add a cleanup for 'funname' from
6775 find_frame_funname.
6776 * stack.h (find_frame_funname): Remove "const" from
6777 'funname' parameter.
6778
6779 2013-05-22 Tom Tromey <tromey@redhat.com>
6780
6781 PR c++/15401:
6782 * c-valprint.c (c_value_print): Use value_addr for
6783 references. Convert back to reference type with value_ref.
6784
6785 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6786
6787 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6788 unloaded DLL, it will be done by handle_solib_event. See
6789 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6790 details.
6791
6792 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6793
6794 * ui-out.c: Create typedef ui_out_level_p and define vector
6795 operations for that type.
6796 (struct ui_out): Use a vector instead of an array.
6797 (current_level): Return level from a vector.
6798 (push_level): Create a level in a vector.
6799 (pop_level): Delete a level in a vector.
6800 (ui_out_new): Create initial level zero level, and store in a
6801 vector.
6802 (ui_out_destroy): Add vector cleanup.
6803
6804 2013-05-22 Pedro Alves <palves@redhat.com>
6805
6806 * python/python-internal.h (gdb_Py_DECREF): Tag with
6807 "ARI: editCase function".
6808
6809 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6810
6811 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6812
6813 2013-05-21 Pedro Alves <palves@redhat.com>
6814
6815 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6816 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6817 * python/py-utils.c (py_decref): Don't check for NULL before
6818 calling Py_DECREF.
6819
6820 2013-05-21 Pedro Alves <palves@redhat.com>
6821
6822 * python/py-utils.c (py_decref): Remove extra braces.
6823 (gdb_pymodule_addobject): Remove extra braces.
6824 * python-internal.h (gdb_Py_DECREF): New static inline function.
6825 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6826
6827 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6828
6829 * breakpoints.c (detach_breakpoints): Do not
6830 detach breakpoints locations with loc_type bp_loc_other.
6831
6832 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6833
6834 Workaround Python 2.6.
6835 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6836 a block.
6837
6838 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6839
6840 Code cleanup: constification.
6841 * solib.c (solib_ops): Make return type and ops variable type const.
6842 (set_solib_ops): Make the new_ops parameter and ops variable const.
6843 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6844 (solib_add, solib_keep_data_in_core, clear_solib)
6845 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6846 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6847 const.
6848 * solib.h (set_solib_ops): Make the new_ops parameter const.
6849
6850 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6851
6852 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6853 variable.
6854 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6855 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6856 (SYSTEM_GDBINIT_FILES): New variables.
6857 (all): Add stamp-system-gdbinit.
6858 (stamp-system-gdbinit): New rule.
6859 (clean-system-gdbinit, install-system-gdbinit)
6860 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6861 (install-only): Add dependency on install-system-gdbinit.
6862 (uninstall): Add dependency on uninstall-system-gdbinit.
6863 (clean): Add dependency on clean-system-gdbinit.
6864 * system-gdbinit/elinos.py: New file.
6865 * system-gdbinit/wrs-linux.py: New file.
6866
6867 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6868
6869 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6870
6871 2013-05-21 Hui Zhu <hui@codesourcery.com>
6872
6873 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6874 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6875 * mi/mi-cmd-break.c (ctype.h): New include.
6876 (gdb_obstack.h): New include.
6877 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6878 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6879 (mi_cmd_dprintf_insert): New.
6880 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6881 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6882
6883 2013-05-20 Tom Tromey <tromey@redhat.com>
6884
6885 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6886
6887 2013-05-20 Tom Tromey <tromey@redhat.com>
6888
6889 * python/py-value.c (valpy_get_dynamic_type): Simplify
6890 dynamic_type assignment. Use Py_XINCREF.
6891
6892 2013-05-20 Tom Tromey <tromey@redhat.com>
6893
6894 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6895
6896 2013-05-20 Tom Tromey <tromey@redhat.com>
6897
6898 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6899 (gdbpy_selected_frame): Move object-construction code
6900 out of TRY_CATCH.
6901
6902 2013-05-20 Tom Tromey <tromey@redhat.com>
6903
6904 * python/py-arch.c (gdbpy_initialize_arch): Use
6905 gdb_pymodule_addobject.
6906 * python/py-block.c (gdbpy_initialize_blocks): Use
6907 gdb_pymodule_addobject.
6908 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6909 gdb_pymodule_addobject.
6910 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6911 gdb_pymodule_addobject.
6912 * python/py-event.c (gdbpy_initialize_event_generic): Use
6913 gdb_pymodule_addobject.
6914 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6915 gdb_pymodule_addobject.
6916 * python/py-evts.c (add_new_registry): Use
6917 gdb_pymodule_addobject.
6918 (gdbpy_initialize_py_events): Likewise.
6919 * python/py-finishbreakpoint.c
6920 (gdbpy_initialize_finishbreakpoints): Use
6921 gdb_pymodule_addobject.
6922 * python/py-frame.c (gdbpy_initialize_frames): Use
6923 gdb_pymodule_addobject.
6924 * python/py-function.c (gdbpy_initialize_functions): Use
6925 gdb_pymodule_addobject.
6926 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6927 gdb_pymodule_addobject.
6928 * python/py-infthread.c (gdbpy_initialize_thread): Use
6929 gdb_pymodule_addobject.
6930 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6931 gdb_pymodule_addobject.
6932 * python/py-param.c (gdbpy_initialize_parameters): Use
6933 gdb_pymodule_addobject.
6934 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6935 gdb_pymodule_addobject.
6936 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6937 gdb_pymodule_addobject.
6938 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6939 gdb_pymodule_addobject.
6940 * python/py-type.c (gdbpy_initialize_types): Use
6941 gdb_pymodule_addobject.
6942 * python/py-utils.c (gdb_pymodule_addobject): New function.
6943 * python/py-value.c (gdbpy_initialize_values): Use
6944 gdb_pymodule_addobject.
6945 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6946 * python/python.c (_initialize_python): Use
6947 gdb_pymodule_addobject.
6948
6949 2013-05-20 Tom Tromey <tromey@redhat.com>
6950
6951 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6952 * python/py-param.c (get_set_value, get_show_value): Use
6953 explicit decrefs.
6954 * python/python.c (start_type_printers, apply_type_printers):
6955 Use explicit decrefs.
6956
6957 2013-05-20 Tom Tromey <tromey@redhat.com>
6958
6959 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6960 incref the module.
6961
6962 2013-05-20 Tom Tromey <tromey@redhat.com>
6963
6964 * python/python.c (gdbpy_run_events): Decref the result
6965 of PyObject_CallObject.
6966
6967 2013-05-20 Tom Tromey <tromey@redhat.com>
6968
6969 * python/py-symtab.c (set_sal): Use
6970 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6971 (symtab_and_line_to_sal_object): Update.
6972
6973 2013-05-20 Tom Tromey <tromey@redhat.com>
6974
6975 * python/py-param.c (compute_enum_values): Decref 'item'.
6976
6977 2013-05-20 Tom Tromey <tromey@redhat.com>
6978
6979 * mi/mi-main.c: Include python-internal.h.
6980 (mi_cmd_list_features): Check gdb_python_initialized.
6981 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6982 (python_inferior_exit, python_new_objfile, add_thread_object)
6983 (delete_thread_object, py_free_inferior): Check
6984 gdb_python_initialized.
6985 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6986 gdb_python_initialized.
6987 * python/py-type.c (save_objfile_types): Check
6988 gdb_python_initialized.
6989 * python/python-internal.h (gdb_python_initialized): Declare.
6990 * python/python.c (ensure_python_env): Throw exception if
6991 Python not initialized.
6992 (before_prompt_hook, source_python_script_for_objfile)
6993 (start_type_printers, apply_type_printers,
6994 free_type_printers): Check gdb_python_initialized.
6995 * varobj.c (varobj_get_display_hint)
6996 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6997 (install_new_value_visualizer, varobj_set_visualizer)
6998 (value_get_print_value): Check gdb_python_initialized.
6999
7000 2013-05-20 Tom Tromey <tromey@redhat.com>
7001
7002 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7003 Check errors.
7004 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7005 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7006 Check errors.
7007 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7008 Check errors.
7009 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7010 Check errors.
7011 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7012 Check errors.
7013 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7014 init function to return 'int'.
7015 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7016 Return 'int'. Check errors.
7017 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7018 Check errors.
7019 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7020 Return 'int'. Check errors.
7021 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7022 Check errors.
7023 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7024 Check errors.
7025 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7026 Check errors.
7027 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7028 Check errors.
7029 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7030 Check errors.
7031 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7032 Check errors.
7033 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7034 Check errors.
7035 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7036 Check errors.
7037 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7038 Check errors.
7039 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7040 Check errors.
7041 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7042 Check errors.
7043 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7044 Check errors.
7045 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7046 Check errors.
7047 * python/python-internal.h (gdbpy_initialize_auto_load,
7048 gdbpy_initialize_values, gdbpy_initialize_frames,
7049 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7050 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7051 gdbpy_initialize_blocks, gdbpy_initialize_types,
7052 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7053 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7054 gdbpy_initialize_finishbreakpoints,
7055 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7056 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7057 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7058 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7059 gdbpy_initialize_signal_event,
7060 gdbpy_initialize_breakpoint_event,
7061 gdbpy_initialize_continue_event,
7062 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7063 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7064 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7065 * python/python.c (gdb_python_initialized): New global.
7066 (gdbpy_initialize_events): Return 'int'. Check errors.
7067 (_initialize_python): Check errors. Set
7068 gdb_python_initialized.
7069
7070 2013-05-20 Tom Tromey <tromey@redhat.com>
7071
7072 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7073 Decref the reslut of PyObject_CallMethod.
7074
7075 2013-05-20 Tom Tromey <tromey@redhat.com>
7076
7077 * python/py-event.c (gdbpy_initialize_event_generic): Return
7078 early if PyType_Ready fails.
7079
7080 2013-05-20 Tom Tromey <tromey@redhat.com>
7081
7082 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7083 as 'default' in the switch.
7084
7085 2013-05-20 Tom Tromey <tromey@redhat.com>
7086
7087 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7088 get_addr_from_python calls out of TRY_CATCH.
7089 (infpy_write_memory, infpy_search_memory): Likewise.
7090 * python/py-utils.c (get_addr_from_python): Return negative
7091 value on error. Use TRY_CATCH.
7092 * python/python-internal.h (get_addr_from_python): Use
7093 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7094
7095 2013-05-20 Tom Tromey <tromey@redhat.com>
7096
7097 * python/py-event.c (evpy_emit_event): Decref the
7098 result of PyObject_CallFunctionObjArgs.
7099
7100 2013-05-20 Tom Tromey <tromey@redhat.com>
7101
7102 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7103 Correctly decref.
7104
7105 2013-05-20 Tom Tromey <tromey@redhat.com>
7106
7107 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7108
7109 2013-05-20 Tom Tromey <tromey@redhat.com>
7110
7111 * python/py-event.h (gdbpy_initialize_event_generic): Use
7112 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7113 * python/py-evts.c (add_new_registry): Use
7114 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7115 * python/python-internal.h
7116 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7117
7118 2013-05-20 Tom Tromey <tromey@redhat.com>
7119
7120 * python/py-arch.c (archpy_disassemble): Update.
7121 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7122 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7123 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7124 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7125 macro.
7126 (GDB_PY_HANDLE_EXCEPTION): Update.
7127 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7128
7129 2013-05-20 Tom Tromey <tromey@redhat.com>
7130
7131 * python/python-internal.h (events_object_type): Remove.
7132
7133 2013-05-20 Tom Tromey <tromey@redhat.com>
7134
7135 * python/py-event.h (evpy_emit_event): Use
7136 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7137 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7138 New macro.
7139
7140 2013-05-20 Tom Tromey <tromey@redhat.com>
7141
7142 * py-evtregistry.c (create_event_object): Decref
7143 eventregistry_object if PyList_New fails.
7144
7145 2013-05-20 Tom Tromey <tromey@redhat.com>
7146
7147 * py-cmd.c (gdbpy_string_to_argv): Check result of
7148 PyList_New.
7149
7150 2013-05-20 Tom Tromey <tromey@redhat.com>
7151
7152 * python/python.c (before_prompt_hook): Add cleanup to
7153 decref 'hook'.
7154
7155 2013-05-20 Tom Tromey <tromey@redhat.com>
7156
7157 * python/py-function.c (fnpy_init): Decref result of
7158 PyObject_GetAttrString.
7159
7160 2013-05-20 Tom Tromey <tromey@redhat.com>
7161
7162 * python/py-threadevent.c (get_event_thread): Use
7163 CPYCHECKER_RETURNS_BORROWED_REF.
7164 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7165 New define.
7166 (pspace_to_pspace_object, objfile_to_objfile_object)
7167 (find_thread_object): Use it.
7168
7169 2013-05-20 Tom Tromey <tromey@redhat.com>
7170
7171 * python/py-arch.c (arch_object_type): Use
7172 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7173 * python/py-block.c (block_syms_iterator_object_type):
7174 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7175 * python/py-bpevent.c (breakpoint_event_object_type):
7176 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7177 * python/py-cmd.c (cmdpy_object_type): Use
7178 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7179 * python/py-continueevent.c (continue_event_object_type):
7180 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7181 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7182 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7183 * python/py-events.h (thread_event_object_type):
7184 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7185 * python/py-evtregistry.c (eventregistry_object_type): Use
7186 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7187 * python/py-exitedevent.c (exited_event_object_type):
7188 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7189 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7190 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7191 * python/py-function.c (fnpy_object_type): Use
7192 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7193 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7194 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7195 * python/py-infthread.c (thread_object_type): Use
7196 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7197 * python/py-lazy-string.c (lazy_string_object_type):
7198 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7199 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7200 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7201 * python/py-objfile.c (objfile_object_type): Use
7202 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7203 * python/py-param.c (parmpy_object_type):
7204 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7205 * python/py-progspace.c (pspace_object_type):
7206 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7207 * python/py-signalevent.c (signal_event_object_type):
7208 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7209 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7210 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7211 * python/py-type.c (type_object_type, field_object_type)
7212 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7213 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7214 define.
7215 (value_object_type, block_object_type, symbol_object_type)
7216 (event_object_type, stop_event_object_type, breakpoint_object_type)
7217 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7218
7219 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7220
7221 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7222 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7223
7224 2013-05-20 Doug Evans <dje@google.com>
7225
7226 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7227 For Fission.
7228 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7229 reading_dwo_directly.
7230 (struct signatured_type): New member dwo_unit.
7231 (struct die_reader_specs): New member comp_dir.
7232 (create_signatured_type_table_from_index): Use malloc for
7233 all_type_units instead of objfile's obstack.
7234 (create_all_type_units): Ditto.
7235 (fill_in_sig_entry_from_dwo_entry): New function.
7236 (add_type_unit): New function.
7237 (lookup_dwo_signatured_type): New function.
7238 (lookup_dwp_signatured_type): New function.
7239 (lookup_signatured_type): New arg cu. All callers updated.
7240 (init_cu_die_reader): Initialize comp_dir.
7241 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7242 Change assert of matching type signatures to call error on mismatch.
7243 (lookup_dwo_unit): Add assert.
7244 (init_tu_and_read_dwo_dies): New function.
7245 (init_cutu_and_read_dies): Call it.
7246 (build_type_unit_groups): Handle case of no type unit groups created.
7247 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7248 (lookup_dwo_cutu): Tweak complaint.
7249 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7250 (dwarf2_per_objfile_free): Free all_type_units.
7251
7252 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7253
7254 * windows-nat.c (handle_unload_dll): Add missing empty line.
7255
7256 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7257
7258 * dwarf2read.c (prototyped_function_p): New function.
7259 (read_subroutine_type): Use it.
7260
7261 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7262
7263 * rs6000-aix-tdep.c: De-indent some example code provided
7264 as a comment.
7265
7266 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7267
7268 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7269 region is ok for a hardware watchpoint using the new ptrace interface
7270 on Power servers.
7271
7272 2013-05-17 Doug Evans <dje@google.com>
7273
7274 * NEWS: Mention new maintenance commands check-symtabs, and
7275 expand-symtabs, and renamed check-psymtabs.
7276 * psymtab.c (maintenance_check_psymtabs): Renamed from
7277 maintenance_check_symtabs. Only process already-expanded symbol
7278 tables.
7279 (_initialize_psymtab): Update.
7280 * symmisc.c (maintenance_check_symtabs): New function.
7281 (maintenance_expand_name_matcher): New function
7282 (maintenance_expand_file_matcher): New function
7283 (maintenance_expand_symtabs): New function.
7284 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7285 commands.
7286
7287 2013-05-17 Tom Tromey <tromey@redhat.com>
7288
7289 * python/py-inferior.c (infpy_read_memory): Don't call
7290 PyErr_SetString if PyObject_New fails.
7291 * python/py-frame.c (frame_info_to_frame_object): Don't call
7292 PyErr_SetString if PyObject_New fails.
7293
7294 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7295
7296 * acinclude.m4: Add check for dlopen in libdl.
7297 * configure.ac: Ditto.
7298 * configure: Regenerate.
7299
7300 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7301
7302 * frame.c (frame_stash): Convert to htab.
7303 (frame_addr_hash): New function.
7304 (frame_addr_hash_eq): New function.
7305 (frame_stash_create): Convert function to create
7306 a hash table.
7307 (frame_stash_add): Convert function to add an entry to a hash
7308 table.
7309 (frame_stash_find): Convert function to search the hash table.
7310 (frame_stash_invalidate): Convert function to empty the hash
7311 table.
7312 (get_frame_id): Only add to stash if a frame_id is created.
7313 (_initialize_frame): Call frame_stash_create.
7314
7315 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7316
7317 * configure.ac: Ensure MIG is available when building for GNU Hurd
7318 hosts.
7319 * configure: Regenerate.
7320
7321 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7322
7323 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7324
7325 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7326
7327 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7328 all cleanups are done before returning from this function.
7329
7330 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7331
7332 * utils.h: #include "exceptions.h".
7333 (enum errors): Remove partial declaration.
7334
7335 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7336
7337 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7338 * gdbarch.h, gdbarch.c: Regenerate.
7339 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7340 handling.
7341
7342 * rs6000-aix-tdep.h: New file.
7343 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7344 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7345 "xml-utils.h".
7346 (struct field_info, struct ld_info_desc): New types.
7347 (ld_info32_desc, ld_info64_desc): New static constants.
7348 (struct ld_info): New type.
7349 (rs6000_aix_extract_ld_info): New function.
7350 (rs6000_aix_shared_library_to_xml): Likewise.
7351 (rs6000_aix_ld_info_to_xml): Likewise.
7352 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7353 (rs6000_aix_init_osabi): Add call to
7354 set_gdbarch_core_xfer_shared_libraries_aix.
7355 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7356 Remove "xml-utils.h" include.
7357 (LdInfo): Delete typedef.
7358 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7359 Delete macros.
7360 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7361 Adjust code accordingly.
7362 (rs6000_core_ldinfo): Delete, folded into
7363 rs6000_aix_core_xfer_shared_libraries_aix.
7364 (rs6000_xfer_shared_library): Delete.
7365 (rs6000_xfer_shared_libraries): Reimplement.
7366
7367 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7368
7369 * record.c (record_goto_cmdlist): New.
7370 (cmd_record_goto): Split into this ...
7371 (cmd_record_goto_begin): ... this
7372 (cmd_record_goto_end): ... and this.
7373 (_initialize_record): Change "record goto" to prefix command.
7374 Add commands for "record goto begin" and "record goto end".
7375 Add an alias for "record goto start" to "record goto begin".
7376
7377 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7378
7379 * linespec.c (convert_linespec_to_sals): New comment for
7380 SOURCE_FILENAME assignment.
7381
7382 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7383
7384 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7385 internal_warning.
7386
7387 2013-05-14 Tom Tromey <tromey@redhat.com>
7388
7389 * eval.c (parse_and_eval_long): Make 'exp' const.
7390 * value.h (parse_and_eval_long): Update.
7391
7392 2013-05-14 Tom Tromey <tromey@redhat.com>
7393
7394 * ui-file.c (gdb_fopen): Make arguments const.
7395 * ui-file.h (gdb_fopen): Make arguments const.
7396
7397 2013-05-14 Tom Tromey <tromey@redhat.com>
7398
7399 * remote.c (remote_set_trace_notes): Make arguments const.
7400 * target.c (update_current_target): Update cast.
7401 * target.h (to_set_trace_notes): Make arguments const.
7402
7403 2013-05-14 Tom Tromey <tromey@redhat.com>
7404
7405 * go32-nat.c (go32_terminal_info): Make 'args' const.
7406 * inferior.h (child_terminal_info): Update.
7407 * inflow.c (child_terminal_info): Make 'args' const.
7408 * target.c (default_terminal_info): Make 'args' const.
7409 (debug_to_terminal_save_ours): Likewise.
7410 * target.h (struct target_ops) <to_terminal_info>: Make argument
7411 const.
7412
7413 2013-05-13 Tom Tromey <tromey@redhat.com>
7414
7415 * gcore.c (create_gcore_bfd): Make 'filename' const.
7416 * gcore.h (create_gcore_bfd): Make 'filename' const.
7417 * record-full.c (record_full_save): Make 'recfilename' const.
7418 * target.c (target_save_record): Make 'filename' const.
7419 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7420 const.
7421 (target_save_record): Likewise.
7422
7423 2013-05-13 Tom Tromey <tromey@redhat.com>
7424
7425 PR gdb/15338:
7426 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7427 ranges section has been read.
7428
7429 2013-05-13 Tom Tromey <tromey@redhat.com>
7430
7431 PR exp/15364:
7432 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7433 STRUCTOP_PTR>: Return a not_lval value for
7434 EVAL_AVOID_SIDE_EFFECTS.
7435 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7436 for EVAL_AVOID_SIDE_EFFECTS.
7437
7438 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7439
7440 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7441 floating point registers to register type before storing
7442 value.
7443 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7444 Likewise.
7445
7446 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7447 Tom Tromey <tromey@redhat.com>
7448
7449 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7450 New functions.
7451 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7452 Declare.
7453 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7454 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7455 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7456 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7457
7458 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7459 Tom Tromey <tromey@redhat.com>
7460
7461 PR build/15414:
7462 * configure: Rebuild.
7463 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7464 with -Wno-format.
7465
7466 2013-05-10 Pedro Alves <palves@redhat.com>
7467
7468 * remote.c (_initialize_remote): Fix spelling of
7469 qXfer:traceframe-info:read packet in packet config command.
7470
7471 2013-05-10 David Taylor <dtaylor@emc.com>
7472
7473 PR remote/15455
7474
7475 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7476 "QTro" at start of packet.
7477
7478 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7479
7480 * solib-aix.c (solib_aix_relocate_section_addresses):
7481 For the .bss section action, apply the same offset as
7482 the .data section.
7483
7484 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7485
7486 * solib-aix.c (solib_aix_relocate_section_addresses):
7487 Remove FIXME comment.
7488
7489 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7490
7491 PR tdep/15420:
7492 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7493 New functions, directly copied from sparc-sol-thread.c.
7494 * sparc-sol-thread.c: Delete.
7495 * configure.ac: Remove code handling sparc-solaris-thread.c.
7496 * configure: Regenerate.
7497
7498 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7499
7500 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7501 filter logic.
7502 (backtrace_command): Add "no-filters" option parsing.
7503 (_initialize_stack): Alter help to reflect "no-filters" option.
7504 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7505 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7506 (py-frame.o): Add target
7507 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7508 filter files.
7509 * python/python.h: Add new frame filter constants, and flag enum.
7510 (apply_frame_filter): Add definition.
7511 * python/python.c (apply_frame_filter): New non-Python
7512 enabled function.
7513 * python/py-utils.c (py_xdecref): New function.
7514 (make_cleanup_py_xdecref): Ditto.
7515 * python/py-objfile.c: Declare frame_filters dictionary.
7516 (objfpy_dealloc): Add frame_filters dealloc.
7517 (objfpy_new): Initialize frame_filters attribute.
7518 (objfile_to_objfile_object): Ditto.
7519 (objfpy_get_frame_filters): New function.
7520 (objfpy_set_frame_filters): New function.
7521 * python/py-progspace.c: Declare frame_filters dictionary.
7522 (pspy_dealloc): Add frame_filters dealloc.
7523 (pspy_new): Initialize frame_filters attribute.
7524 (pspacee_to_pspace_object): Ditto.
7525 (pspy_get_frame_filters): New function.
7526 (pspy_set_frame_filters): New function.
7527 * python/py-framefilter.c: New file.
7528 * python/lib/gdb/command/frame_filters.py: New file.
7529 * python/lib/gdb/frames.py: New file.
7530 * python/lib/gdb/__init__.py: Initialize global frame_filters
7531 dictionary
7532 * python/lib/gdb/FrameDecorator.py: New file.
7533 * python/lib/gdb/FrameIterator.py: New file.
7534 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7535 * mi/mi-cmds.h: Declare.
7536 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7537 --no-frame-filter logic, and Python frame filter logic.
7538 (stack_enable_frame_filters): New function.
7539 (parse_no_frame_option): Ditto.
7540 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7541 filter logic.
7542 (mi_cmd_stack_list_locals): Ditto.
7543 (mi_cmd_stack_list_args): Ditto.
7544 (mi_cmd_stack_list_variables): Ditto.
7545 * NEWS: Add frame filter note.
7546
7547 2013-05-09 Doug Evans <dje@google.com>
7548
7549 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7550 All callers updated.
7551 (syms_from_objfile): Ditto. Make static.
7552 (symbol_file_add_with_addrs): Renamed from
7553 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7554 num_offsets. All callers updated.
7555 * symfile.h (syms_from_objfile): Delete.
7556
7557 * symfile.c (decrement_reading_symtab): Add assert.
7558 (increment_reading_symtab): Ditto.
7559
7560 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7561
7562 * source.c (forward_search_command): Replace call to getc
7563 by call to fgetc.
7564 (reverse_search_command): Likewise.
7565
7566 2013-05-08 Doug Evans <dje@google.com>
7567
7568 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7569 matching test.
7570
7571 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7572
7573 * sol-thread.c (info_cb): Factorize the code a little.
7574
7575 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7576
7577 * sol-thread.c (info_cb): Rework the output of the "maintenance
7578 info sol-threads" command a bit.
7579
7580 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7581
7582 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7583 Replace ti.ti_startfunc by ti.ti_pc.
7584
7585 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7586
7587 * solib-aix.c (solib_aix_free_library_list): New function
7588 for the case where HAVE_LIBEXPAT is not defined.
7589
7590 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7591
7592 PR breakpoints/15413:
7593 * breakpoint.c (condition_completer): Simplify the code to
7594 disconsider multiple locations of breakpoints when completing the
7595 "condition" command.
7596
7597 2013-05-07 Pierre Muller <muller@sourceware.org>
7598
7599 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7600 instead of <sys/wait.h>.
7601
7602 2013-05-07 Pierre Muller <muller@sourceware.org>
7603
7604 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7605 trailing new line from warning message.
7606
7607 2013-05-07 Pierre Muller <muller@sourceware.org>
7608
7609 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7610 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7611
7612 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7613
7614 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7615 error message (ARI fix).
7616
7617 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7618
7619 * features/library-list-aix.dtd: Replace library-list by
7620 library-list-aix.
7621 * rs6000-nat.c: Replace library-list by library-list-aix
7622 throughout.
7623 * solib-aix.c: Likewise.
7624
7625 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7626
7627 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7628 Renames TARGET_OBJECT_AIX_LIBRARIES.
7629 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7630 TARGET_OBJECT_LIBRARIES_AIX throughout.
7631 * solib-aix.c: Likwise.
7632
7633 2013-05-07 Yao Qi <yao@codesourcery.com>
7634
7635 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7636 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7637
7638 2013-05-07 Yao Qi <yao@codesourcery.com>
7639
7640 * solib-dsbt.c (enable_break): Declare.
7641 (dsbt_current_sos): Remove call to enable_break2.
7642 (enable_break2): Rename to enable_break. Set solib breakpoint
7643 on '_dl_debug_state'.
7644 (enable_break): Remove.
7645
7646 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7647
7648 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7649 debug state prior to replicating existing hardware watchpoints or
7650 breakpoints.
7651
7652 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7653
7654 * gcore.c (gcore_create_callback): Ignore sections with
7655 separate_debug_objfile_backlink != NULL.
7656
7657 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7658 Andrew Jenner <andrew@codesourcery.com>
7659 Chung-Lin Tang <cltang@codesourcery.com>
7660 Julian Brown <julian@codesourcery.com>
7661
7662 Based on the nios2-elf port from Altera Corporation.
7663
7664 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7665 nios2-linux-tdep.o.
7666 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7667 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7668 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7669 * nios2-tdep.h: New.
7670 * nios2-tdep.c: New.
7671 * nios2-linux-tdep.c: New.
7672 * features/Makefile (WHICH): Add nios2-linux.
7673 (nios2-linux-expedite): Set.
7674 * features/nios2-cpu.xml: New.
7675 * features/nios2.xml: New.
7676 * features/nios2-linux.xml: New.
7677 * features/nios2.c: New (autogenerated).
7678 * features/nios2-linux.c: New (autogenerated).
7679 * regformats/nios2-linux.dat: New (autogenerated).
7680 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7681 and commands.
7682
7683 2013-05-06 Doug Evans <dje@google.com>
7684
7685 * symfile.c: Whitespace cleanup.
7686
7687 * solist.h (struct target_so_ops): New member clear_so.
7688 * solib-svr4.c (svr4_clear_so): New function.
7689 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7690 * solib.c (clear_so): Renamed from free_so_symbols.
7691 All callers updated. Call target clear_so if it exists.
7692
7693 2013-05-06 Tom Tromey <tromey@redhat.com>
7694
7695 * ada-lang.c (ada_value_primitive_packed_val): Don't
7696 call value_incref.
7697 * value.c (set_value_parent): Incref the new parent and decref
7698 the old parent.
7699 (value_copy, value_primitive_field): Use set_value_parent.
7700
7701 2013-05-06 Tom Tromey <tromey@redhat.com>
7702
7703 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7704 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7705 if needed.
7706 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7707 * dwarf2read.c (write_constant_as_bytes)
7708 (dwarf2_fetch_constant_bytes): New functions.
7709
7710 2013-05-06 Tom Tromey <tromey@redhat.com>
7711
7712 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7713 parameters.
7714 (dwarf2_const_value_attr): Update.
7715
7716 2013-05-06 Tom Tromey <tromey@redhat.com>
7717
7718 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7719 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7720 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7721 Remove declaration.
7722
7723 2013-05-06 Tom Tromey <tromey@redhat.com>
7724
7725 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7726 objfile's obstack.
7727
7728 2013-05-06 Doug Evans <dje@google.com>
7729
7730 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7731 * stabsread.h (process_one_symbol): Update declaration.
7732 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7733 * elfread.c (elf_symfile_relocate_probe): Ditto.
7734 * psymtab.c (relocate_psymtabs): Ditto.
7735 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7736 (objfile_relocate): Ditto.
7737 * objfiles.h (objfile_relocate): Update declaration.
7738 * symfile.c (relative_addr_info_to_section_offsets): Constify
7739 addrs parameter.
7740 (default_symfile_offsets): Ditto.
7741 (syms_from_objfile_1): Constify offsets parameter.
7742 (syms_from_objfile): Ditto.
7743 (symbol_file_add_with_addrs_or_offsets): Ditto.
7744 (symfile_map_offsets_to_segments): Constify data parameter.
7745 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7746 delta parameters of member relocate.
7747 (struct sym_probe_fns): Constify new_offsets,
7748 delta parameters of member sym_relocate_probe.
7749 (struct sym_fns): Constify section_addr_info parameter of member
7750 sym_offsets.
7751 (relative_addr_info_to_section_offsets): Update declaration.
7752 (default_symfile_offsets): Ditto.
7753 (syms_from_objfile): Ditto.
7754 (symfile_map_offsets_to_segments): Ditto.
7755
7756 * symfile.c (syms_from_objfile_1): Use correct section count when
7757 objfile->sf == NULL.
7758
7759 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7760
7761 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7762
7763 2013-05-06 Doug Evans <dje@google.com>
7764
7765 * psympriv.h (struct partial_symtab): Augment comment for member
7766 section_offsets.
7767
7768 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7769
7770 Reimplement shared library support on ppc-aix...
7771 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7772 * features/library-list-aix.dtd: New file.
7773 * solib-aix.h, solib-aix.c: New file.
7774 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7775 (rs6000_find_toc_address_hook): Delete.
7776 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7777 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7778 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7779 "xml-utils.h".
7780 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7781 (vmap_symtab, fixup_breakpoints): Delete.
7782 (rs6000_xfer_shared_libraries): New function.
7783 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7784 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7785 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7786 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7787 (rs6000_xfer_shared_library): New function.
7788 (find_toc_address): Delete.
7789 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7790 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7791 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7792 before creating minimal symbol. Adjust function description
7793 accordingly.
7794 (scan_xcoff_symtab): Replace call to
7795 prim_record_minimal_symbol_and_info by call to
7796 record_minimal_symbol.
7797 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7798 around default_symfile_offsets.
7799 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7800 powerpc-aix targets.
7801 * config/rs6000/nm-rs6000.h: Delete.
7802 * config/powerpc/aix.mh (NAT_FILE): Delete.
7803 (NATDEPFILES): Remove xcoffsolib.o.
7804 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7805 (ALL_TARGET_OBS): Add solib-aix.o.
7806 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7807 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7808 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7809 * xcoffsolib.h, xcoffsolib.c: Delete.
7810
7811 * solib.c (reload_shared_libraries): Remove reference to
7812 SOLIB_CREATE_INFERIOR_HOOK.
7813 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7814 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7815 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7816 comment.
7817 * corelow.c (deprecated_core_resize_section_table): Delete.
7818 * exec.c: Remove include of xcoffsolib.h".
7819 (map_vmap, vmap): Delete.
7820 (exec_close_1): Remove references to vmap.
7821 (exec_file_attach): Remove vmap handling code, and reference
7822 to DEPRECATED_IBM6000_TARGET.
7823 (bfdsec_to_vmap): Delete.
7824 (exec_files_info): Remove block of code handling VMAP.
7825 * infcmd.c (post_create_inferior): Remove reference to
7826 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7827 * infrun.c (follow_exec): Remove reference to
7828 SOLIB_CREATE_INFERIOR_HOOK.
7829 * stack.c (print_frame): Remove reference to PC_SOLIB.
7830 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7831 (dsbt_relocate_main_executable): Likewise.
7832 * solib-frv.c (frv_current_sos): Likewise.
7833
7834 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7835
7836 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7837 to target_write_memory and target_read_memory.
7838
7839 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7840
7841 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7842 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7843
7844 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7845
7846 * darwin-nat.c: Replace all "%x" instances in format strings
7847 into "0x%x" throughout.
7848
7849 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7850
7851 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7852 gdb_assert by call to MACH_CHECK_ERROR.
7853 (darwin_attach_pid): Raise an error rather than a failed
7854 assertion when various system calls failed. Report a warning
7855 instead of raising a failed assertion when PREV_NOT is not NULL
7856 after call to mach_port_request_notification.
7857 (darwin_ptrace_me): Raise an error rather than a failed
7858 assertion when read returns nonzero.
7859
7860 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7861
7862 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7863
7864 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7865
7866 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7867
7868 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7869
7870 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7871 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7872 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7873 a stale cleanup. Fix double free of NAME.
7874
7875 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7876
7877 * windows-nat.c (windows_delete_thread): Accept an additional
7878 argument, the thread's exit code, and announce thread death when
7879 print_thread_events is non-zero and we are deleting a thread that
7880 is not the main thread.
7881 (get_windows_debug_event): Pass thread exit code to
7882 windows_delete_thread.
7883
7884 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7885
7886 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7887 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7888 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7889 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7890 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7891 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7892 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7893 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7894 (gdbarch_tdep): New struct.
7895 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7896 E_NUM_REGS.
7897 (v850e3v5_register_name): New function.
7898 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7899 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7900 code handling the struct return conventions for the RH850 ABI.
7901 Update all callers.
7902 (v850_eight_byte_align_p): New function.
7903 (v850_push_call_dummy): Push structs by value, not by reference
7904 for the RH850 ABI. Add support for eight byte alignment.
7905 (v850_dbtrap_breakpoint_from_pc): New function.
7906 (v850_gdbarch_init): Add ABI detection code. Register
7907 v850e3v5_register_name for the v850e3v5 architecture. Set the
7908 number of registers for v850e3v5. Register
7909 v850_dbtrap_breakpoint_from_pc as appropriate.
7910 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7911
7912 2013-05-03 Doug Evans <dje@google.com>
7913
7914 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7915 of bfd_count_sections.
7916 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7917 * symfile.c (default_symfile_offsets): Ditto.
7918 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7919 one entry, not bfd_count_sections entries.
7920
7921 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7922
7923 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7924 `save' and `restore' register groups. Don't include SPL
7925 or SPH in these groups.
7926 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7927 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7928 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7929 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7930 dwarf2_append_unwinders().
7931
7932 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7933
7934 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7935 ignore SIGINT and SIGTRAP in case these internal signals are
7936 caught explicitely.
7937
7938 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7939
7940 * darwin-nat.c (darwin_read_write_inferior): Change types
7941 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7942 of copy_count to "mach_msg_type_number_t".
7943 (darwin_read_dyld_info): Change type of parameter
7944 rdaddr to "gdb_byte *".
7945
7946 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7947
7948 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7949 of &info->load_map from "char *" to "gdb_byte *".
7950
7951 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7952
7953 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7954 from "char *" to "gdb_byte *".
7955 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7956
7957 2013-04-30 Doug Evans <dje@google.com>
7958
7959 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7960 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7961 DWO stub. If DWO isn't found, just use stub.
7962 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7963
7964 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7965 calling init_cutu_and_read_dies.
7966
7967 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7968
7969 * target-descriptions.c (maint_print_c_tdesc_cmd):
7970 Add case to parse structures as register types and
7971 bitfields.
7972
7973 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7974
7975 * MAINTAINERS (Write After Approval): Add myself to the list.
7976
7977 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7978
7979 * sol-thread.c (rw_common): Change type of parameter "buf"
7980 to "gdb_byte *".
7981 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7982 rw_common to "gdb_byte *" instead of "char *".
7983
7984 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7985
7986 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7987 of local variable msym to const struct bound_minimal_symbol.
7988 Adjust use accordingly.
7989 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7990
7991 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7992
7993 * i386gnu-nat.c (CREG_OFFSET): New macro.
7994 (creg_offset): New array.
7995 (CREG_ADDR): Use creg_offset instead of reg_offset.
7996
7997 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7998
7999 * mep-tdep.c (mep_write_pc): Delete.
8000 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8001 Add call to set_gdbarch_pc_regnum.
8002
8003 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8004
8005 * common/filestuff.c: Replace #include <dirent.h> by
8006 #include "gdb_dirent.h".
8007
8008 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8009
8010 * common/filestuff.c: Replace #include <sys/stat.h> by
8011 #include "gdb_stat.h".
8012
8013 2013-04-29 Pierre Muller <muller@sourceware.org>
8014
8015 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8016 editCase function rule.
8017 (get_DW_AT_signature_type): Likewise.
8018
8019 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8020
8021 * m32r-tdep.c (m32r_write_pc): Delete.
8022 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8023 Add call to set_gdbarch_pc_regnum.
8024
8025 2013-04-29 Pierre Muller <muller@sourceware.org>
8026
8027 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8028
8029 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8030
8031 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8032
8033 2013-04-28 Yao Qi <yao@codesourcery.com>
8034
8035 * solib-dsbt.c (fetch_loadmap): Re-indent.
8036 (displacement_from_map, enable_break2): Likewise.
8037 (dsbt_relocate_section_addresses): Likewise.
8038
8039 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8040
8041 GDB 7.6 released.
8042
8043 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8044
8045 PR corefiles/14983:
8046 * dwarf2read.c (process_full_comp_unit): Always create a static
8047 block.
8048
8049 2013-04-25 Hui Zhu <hui@codesourcery.com>
8050
8051 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8052 to loc->cmd_bytecode.
8053
8054 2013-04-24 Doug Evans <dje@google.com>
8055
8056 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8057
8058 2013-04-22 Keith Seitz <keiths@redhat.com>
8059
8060 * tracepoint.c (trace_save): Call the writer's start method.
8061
8062 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8063
8064 PR gdb/10462
8065 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8066 before argument.
8067
8068 2013-04-23 Tom Tromey <tromey@redhat.com>
8069
8070 * common/filestuff.c: Check USE_WIN32API before including
8071 sys/socket.h.
8072 (HAVE_F_GETFD): New define.
8073 (mark_cloexec): Check HAVE_F_GETFD.
8074 (gdb_open_cloexec): Change 'mode' to unsigned long.
8075 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8076 (gdb_pipe_cloexec): Check HAVE_PIPE.
8077 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8078 long.
8079
8080 2013-04-23 Hui Zhu <hui@codesourcery.com>
8081
8082 PR gdb/15293
8083 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8084
8085 2013-04-23 Hui Zhu <hui@codesourcery.com>
8086
8087 PR gdb/15165
8088 * breakpoint.c (dprintf_print_recreate): New.
8089 (save_breakpoints): Let it not save dprintf commands.
8090 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8091
8092 2013-04-22 Tom Tromey <tromey@redhat.com>
8093
8094 PR gdb/7912:
8095 * Makefile.in (SFILES): Add filestuff.c
8096 (COMMON_OBS): Add filestuff.o.
8097 (filestuff.o): New target.
8098 * auto-load.c (auto_load_objfile_script_1): Use
8099 gdb_fopen_cloexec.
8100 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8101 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8102 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8103 * common/agent.c (gdb_connect_sync_socket): Use
8104 gdb_socket_cloexec.
8105 * common/filestuff.c: New file.
8106 * common/filestuff.h: New file.
8107 * common/linux-osdata.c (linux_common_core_of_thread)
8108 (command_from_pid, commandline_from_pid, print_source_lines)
8109 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8110 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8111 gdb_fopen_cloexec.
8112 * common/linux-procfs.c (linux_proc_get_int)
8113 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8114 * config.in, configure: Rebuild.
8115 * configure.ac: Don't check for sys/socket.h. Check for
8116 fdwalk, pipe2.
8117 * corelow.c (core_open): Use gdb_open_cloexec.
8118 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8119 * fork-child.c (fork_inferior): Call close_most_fds.
8120 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8121 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8122 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8123 Use gdb_fopen_cloexec.
8124 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8125 gdb_open_cloexec.
8126 (linux_async_pipe): Use gdb_pipe_cloexec.
8127 * remote-fileio.c (remote_fileio_func_open): Use
8128 gdb_open_cloexec.
8129 * remote.c (remote_file_put, remote_file_get): Use
8130 gdb_fopen_cloexec.
8131 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8132 close_most_fds.
8133 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8134 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8135 * solib.c (solib_find): Use gdb_open_cloexec.
8136 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8137 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8138 (tfile_open): Use gdb_open_cloexec.
8139 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8140 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8141 * xml-support.c (xml_fetch_content_from_file): Use
8142 gdb_fopen_cloexec.
8143 * main.c (captured_main): Call notice_open_fds.
8144
8145 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8146
8147 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8148 'char *' to 'gdb_byte *'.
8149 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8150 'gdb_byte'.
8151
8152 2013-04-22 Yao Qi <yao@codesourcery.com>
8153
8154 * infrun.c: Fix typo in comment.
8155
8156 2013-04-22 Andrew Haley <aph@redhat.com>
8157
8158 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8159 instead of "long".
8160
8161 2013-04-20 Yao Qi <yao@codesourcery.com>
8162
8163 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8164 'char *' to 'gdb_byte *'. Cast the return value of
8165 'bt_ctf_get_char_array' to 'gdb_byte *'.
8166
8167 2013-04-19 Pedro Alves <palves@redhat.com>
8168
8169 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8170 -Wpointer-sign.
8171 * configure: Regenerate.
8172
8173 2013-04-19 Pedro Alves <palves@redhat.com>
8174
8175 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8176 'void *'.
8177
8178 2013-04-19 Pedro Alves <palves@redhat.com>
8179
8180 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8181 Change type of 'myaddr' parameter to gdb_byte pointer.
8182 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8183 to 'long long' pointer instead of to 'unsigned long long'.
8184 (monitor_write_memory_block, monitor_read_memory_single)
8185 (monitor_read_memory): Change type of 'myaddr' parameter to
8186 gdb_byte pointer.
8187
8188 2013-04-19 Pedro Alves <palves@redhat.com>
8189
8190 * record.c (validate_history_size): Make parameter 'setting'
8191 unsigned.
8192
8193 2013-04-19 Pedro Alves <palves@redhat.com>
8194
8195 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8196 to 'gdb_byte *'.
8197
8198 2013-04-19 Pedro Alves <palves@redhat.com>
8199
8200 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8201 local to int.
8202
8203 2013-04-19 Pedro Alves <palves@redhat.com>
8204
8205 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8206 * ada-tasks.c (read_fat_string_value): Likewise.
8207
8208 2013-04-19 Pedro Alves <palves@redhat.com>
8209
8210 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8211 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8212 'offset', and adjust.
8213
8214 2013-04-19 Pedro Alves <palves@redhat.com>
8215
8216 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8217 (read_index_from_section): Add cast to 'char *'.
8218
8219 2013-04-19 Pedro Alves <palves@redhat.com>
8220
8221 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8222
8223 2013-04-19 Pedro Alves <palves@redhat.com>
8224
8225 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8226
8227 2013-04-19 Pedro Alves <palves@redhat.com>
8228
8229 * record-full.c (record_full_get_bookmark): Change local 'ret'
8230 type to char * and add cast to gdb_byte *.
8231 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8232 string.
8233 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8234
8235 2013-04-19 Pedro Alves <palves@redhat.com>
8236
8237 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8238 * python/py-prettyprint.c (print_string_repr): Change type of
8239 'output' local to char *. Add cast to gdb_byte * in
8240 LA_PRINT_STRING call.
8241 (print_children): Change type of 'output' local to char *.
8242 * python/py-value.c (valpy_string): Add cast to const char * in
8243 PyUnicode_Decode call.
8244
8245 2013-04-19 Pedro Alves <palves@redhat.com>
8246
8247 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8248 and change its type to 'const char *'. Adjust.
8249 (mips_send_packet): Add cast to 'char *', and remove cast to
8250 'unsigned char *'.
8251 (mips_receive_packet): Remove cast to 'unsigned char *'.
8252 (mips_load_srec): Use bfd_byte.
8253 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8254 (pmon_checkset): Make 'value' parameter unsigned.
8255
8256 2013-04-19 Pedro Alves <palves@redhat.com>
8257
8258 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8259
8260 2013-04-19 Pedro Alves <palves@redhat.com>
8261
8262 * remote.c (remote_write_bytes_aux, compare_sections_command)
8263 (remote_read_qxfer)
8264 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8265 (remote_hostio_readlink, remote_bfd_iovec_pread)
8266 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8267 binary buffer, and char when buffer is used as string.
8268 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8269 (trace_save, tfile_open, traceframe_walk_blocks)
8270 (tfile_fetch_registers): Likewise.
8271
8272 2013-04-19 Pedro Alves <palves@redhat.com>
8273
8274 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8275 buffer and size_t size. Adjust.
8276 * ser-base.h (ser_base_write): Adjust.
8277 * ser-go32.c (cnts): Change type to size_t.
8278 (dos_write): Change prototype -- take 'void *'
8279 buffer and size_t size. Adjust.
8280 (dos_info): Print elements of 'cnts' as unsigned long.
8281 * serial.c (serial_write): Likewise.
8282 * serial.h (serial_write): Adjust.
8283 (struct serial_ops) <write>: Change prototype -- take 'void *'
8284 buffer and size_t size. Adjust.
8285
8286 2013-04-19 Pedro Alves <palves@redhat.com>
8287
8288 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8289 gdb_byte *.
8290 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8291
8292 2013-04-19 Pedro Alves <palves@redhat.com>
8293
8294 * alpha-tdep.c (alpha_extract_return_value): Use
8295 regcache_cooked_read_unsigned to read 'v0'.
8296
8297 2013-04-19 Pedro Alves <palves@redhat.com>
8298
8299 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8300 parameters 'at', 'as' and 'offset' to uint32_t.
8301
8302 2013-04-19 Pedro Alves <palves@redhat.com>
8303
8304 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8305 'is64' to signed 'int'.
8306
8307 2013-04-19 Pedro Alves <palves@redhat.com>
8308
8309 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8310 parameter to int *.
8311
8312 2013-04-19 Pedro Alves <palves@redhat.com>
8313
8314 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8315 'insnbuf' buffer type to unsigned int[].
8316
8317 2013-04-19 Pedro Alves <palves@redhat.com>
8318
8319 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8320
8321 2013-04-19 Pedro Alves <palves@redhat.com>
8322
8323 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8324 unsigned long *.
8325
8326 2013-04-19 Pedro Alves <palves@redhat.com>
8327
8328 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8329 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8330 UINT_MAX.
8331 * mips-tdep.c (heuristic_fence_post): Change type to int.
8332 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8333
8334 2013-04-19 Pedro Alves <palves@redhat.com>
8335
8336 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8337 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8338 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8339
8340 2013-04-19 Pedro Alves <palves@redhat.com>
8341
8342 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8343 it to get a string view of the byte buffer.
8344 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8345 type to gdb_byte *. Adjust.
8346 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8347 Change local to char *.
8348 * solib-darwin.c (find_program_interpreter): Change return type to
8349 char *. Adjust.
8350 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8351 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8352 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8353 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8354 * solib-svr4.c (find_program_interpreter): Change return type to
8355 char *. Adjust.
8356 (enable_break): Change local 'interp_name' to char *.
8357 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8358 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8359 (spu_pseudo_register_write_spu): Use char for string buffer.
8360 Adjust.
8361 (info_spu_event_command, info_spu_signal_command): Add casts to
8362 'char *'.
8363
8364 2013-04-19 Pedro Alves <palves@redhat.com>
8365
8366 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8367 gdb_byte[].
8368 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8369 * ada-lang.c (ada_value_assign): Use gdb_byte.
8370 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8371 (alphanbsd_sigtramp_offset): Use gdb_byte.
8372 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8373 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8374 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8375 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8376 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8377 * arm-tdep.c (arm_stub_unwind_sniffer)
8378 (arm_displaced_init_closure): Use gdb_byte.
8379 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8380 (arm_default_thumb_le_breakpoint)
8381 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8382 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8383 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8384 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8385 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8386 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8387 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8388 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8389 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8390 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8391 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8392 (cris_store_return_value, cris_extract_return_value): Use
8393 gdb_byte.
8394 (constraint): Change type of parameter to char * from signed
8395 char*. Use gdb_byte.
8396 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8397 of local buffer to gdb_byte *.
8398 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8399 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8400 (add_address_entry): Change type of local buffer to gdb_byte[].
8401 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8402 (frv_push_dummy_call): Use gdb_byte.
8403 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8404 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8405 (hppa_hpux_supply_save_state): Use gdb_byte.
8406 * hppa-tdep.c (hppa32_push_dummy_call)
8407 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8408 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8409 (slotN_contents, replace_slotN_contents): Change type of parameter
8410 to gdb_byte *.
8411 (fetch_instruction, ia64_pseudo_register_write)
8412 (ia64_register_to_value, ia64_value_to_register)
8413 (ia64_extract_return_value, ia64_store_return_value)
8414 (ia64_push_dummy_call): Use gdb_byte.
8415 * m32c-tdep.c (m32c_return_value): Remove cast.
8416 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8417 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8418 gdb_byte.
8419 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8420 * mn10300-tdep.c (mn10300_store_return_value)
8421 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8422 gdb_byte.
8423 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8424 (moxie_process_record): Remove casts.
8425 * ppc-ravenscar-thread.c (supply_register_at_address)
8426 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8427 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8428 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8429 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8430 * remote.c (compare_sections_command): Use gdb_byte.
8431 * score-tdep.c (score7_free_memblock): Change type of parameter to
8432 gdb_byte *.
8433 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8434 gdb_byte *. Use gdb_byte.
8435 (sh_push_dummy_call_fpu): Use gdb_byte.
8436 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8437 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8438 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8439 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8440 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8441 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8442 (sh64_store_return_value, sh64_register_convert_to_virtual):
8443 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8444 (sh64_pseudo_register_write): Use gdb_byte.
8445 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8446 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8447 buffer.
8448 (irix_current_sos): Use gdb_byte.
8449 * solib-som.c (som_current_sos): Use gdb_byte.
8450 * sparc-ravenscar-thread.c (supply_register_at_address)
8451 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8452 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8453 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8454 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8455 'gdb_byte *'.
8456 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8457 'gdb_byte *'.
8458 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8459 * xstormy16-tdep.c (xstormy16_extract_return_value)
8460 (xstormy16_store_return_value): Change parameter type to
8461 'gdb_byte *'. Adjust.
8462 (xstormy16_push_dummy_call): Use gdb_byte.
8463 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8464 (call0_analyze_prologue, execute_code): Use gdb_byte.
8465
8466 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8467 Pedro Alves <palves@redhat.com>
8468
8469 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8470 value contents.
8471
8472 2013-04-17 Doug Evans <dje@google.com>
8473
8474 * dwarf2read.c (struct signatured_type): New member type.
8475 (struct attribute): Replace member signatured_type with signature.
8476 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8477 (read_call_site_scope): Call follow_die_ref instead of
8478 follow_die_ref_or_sig.
8479 (read_structure_type): Rewrite handling of signatured types.
8480 (read_enumeration_type): Ditto.
8481 (read_attribute_value): Update.
8482 (build_error_marker_type): New function.
8483 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8484 Don't call error for bad types, just build an error marker type.
8485 (dump_die_shallow): Update.
8486 (follow_die_sig_1): Renamed from follow_die_sig.
8487 Don't call error for bad types, instead return NULL.
8488 (follow_die_sig): New function.
8489 (get_signatured_type, get_DW_AT_signature_type): New functions.
8490
8491 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8492
8493 * aarch64-tdep.c (aarch64_write_pc): Removed.
8494 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8495 function.
8496
8497 2013-04-17 Yao Qi <yao@codesourcery.com>
8498
8499 * top.c (print_gdb_configuration): Print configure-time
8500 parameter on using libbabeltrace or not.
8501
8502 2013-04-16 Pedro Alves <palves@redhat.com>
8503
8504 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8505
8506 2013-04-16 Pedro Alves <palves@redhat.com>
8507
8508 * common/glibc_thread_db.h: Update from upstream glibc
8509 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8510
8511 2013-04-16 Pedro Alves <palves@redhat.com>
8512
8513 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8514 * common/glibc_thread_db.h: ... this new file ...
8515 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8516
8517 2013-04-16 Will Newton <will.newton@gmail.com>
8518 Pedro Alves <palves@redhat.com>
8519
8520 PR build/11881
8521
8522 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8523 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8524 HAVE_THREAD_DB_H.
8525
8526 2013-04-16 Pedro Alves <palves@redhat.com>
8527 Eli Zaretskii <eliz@gnu.org>
8528
8529 * NEWS: Mention "set foo unlimited".
8530
8531 2013-04-15 Doug Evans <dje@google.com>
8532
8533 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8534 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8535 (create_dwo_cu_reader): Renamed from
8536 create_dwo_debug_info_hash_table_reader.
8537 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8538 Remove support for multiple CUs in a DWO file.
8539 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8540
8541 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8542 instead of phex.
8543 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8544 (create_dwo_in_dwp): Ditto.
8545
8546 2013-04-15 Tom Tromey <tromey@redhat.com>
8547
8548 * NEWS: Move recent entries into "since 7.6" section.
8549
8550 2013-04-15 Tom Tromey <tromey@redhat.com>
8551
8552 PR c++/13588:
8553 * NEWS: Update.
8554 * break-catch-throw.c (struct exception_catchpoint)
8555 <exception_rx, pattern>: New fields.
8556 (fetch_probe_arguments, dtor_exception_catchpoint)
8557 (check_status_exception_catchpoint)
8558 (print_one_detail_exception_catchpoint): New functions.
8559 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8560 Compile regular expression if needed.
8561 (extract_exception_regexp): New function.
8562 (catch_exception_command_1): Use extract_exception_regexp.
8563 (compute_exception): Use fetch_probe_arguments.
8564 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8565 and check_status fields.
8566 * cp-abi.c (cplus_typename_from_type_info): New function.
8567 * cp-abi.h (cplus_typename_from_type_info): Declare.
8568 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8569 * gdb_regex.h (compile_rx_or_error): Declare.
8570 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8571 comment.
8572 (init_gnuv3_ops): Set get_type_from_type_info field.
8573 * probe.c (compile_rx_or_error): Move...
8574 * utils.c (compile_rx_or_error): ... here.
8575
8576 2013-04-15 Tom Tromey <tromey@redhat.com>
8577
8578 PR c++/15176:
8579 * NEWS: Update.
8580 * break-catch-throw.c (compute_exception): New function.
8581 (exception_funcs): New global.
8582 (_initialize_break_catch_throw): Create $_exception.
8583 * cp-abi.c (cplus_type_from_type_info): New function.
8584 * cp-abi.h (cplus_type_from_type_info): Declare.
8585 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8586 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8587 (gnuv3_get_type_from_type_info): New functions.
8588 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8589
8590 2013-04-15 Tom Tromey <tromey@redhat.com>
8591
8592 * break-catch-throw.c (struct exception_names): New.
8593 (exception_functions): Change type.
8594 (re_set_exception_catchpoint): Look for SDT probes.
8595
8596 2013-04-15 Tom Tromey <tromey@redhat.com>
8597
8598 PR c++/10119:
8599 * break-catch-throw.c (exception_functions): New global.
8600 (gnu_v3_exception_catchpoint_ops): Move earlier.
8601 (struct exception_catchpoint): New.
8602 (classify_exception_breakpoint): Rewrite.
8603 (re_set_exception_catchpoint): New function.
8604 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8605 Allocate a struct exception_catchpoint.
8606 (catch_exception_command_1): Update.
8607 (initialize_throw_catchpoint_ops): Set 're_set' method.
8608
8609 2013-04-15 Tom Tromey <tromey@redhat.com>
8610
8611 * Makefile.in (SFILES): Add break-catch-throw.c
8612 (COMMON_OBS): Add break-catch-throw.o.
8613 * break-catch-throw.c: New file.
8614 * breakpoint.c: Move exception-catching code to new file.
8615 (ep_parse_optional_if_clause): No longer static.
8616 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8617
8618 2013-04-15 Tom Tromey <tromey@redhat.com>
8619
8620 PR c++/9065:
8621 * NEWS: Update.
8622 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8623 * c-exp.y (TYPEID): New token.
8624 (exp): Add new TYPEID productions.
8625 (ident_tokens): Add "typeid".
8626 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8627 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8628 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8629 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8630 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8631 case.
8632 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8633 (build_std_type_info_type, gnuv3_get_typeid_type)
8634 (gnuv3_get_typeid): New functions.
8635 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8636 new fields on ABI object.
8637 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8638 * std-operator.def (OP_TYPEID): New.
8639
8640 2013-04-15 Tom Tromey <tromey@redhat.com>
8641
8642 * elfread.c (elf_symtab_read): Install versioned symbol under
8643 unversioned name as well.
8644
8645 2013-04-15 Tom Tromey <tromey@redhat.com>
8646
8647 PR c++/11990:
8648 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8649 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8650 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8651 (gdb_demangle): New function.
8652 * cp-support.h (gdb_demangle): Declare.
8653 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8654 (dwarf2_name): Use gdb_demangle.
8655 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8656 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8657 suffixes from name.
8658 (gnuv3_print_method_ptr): Use gdb_demangle.
8659 * jv-lang.c (java_demangle): Use gdb_demangle.
8660 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8661 * language.c (unk_lang_demangle): Use gdb_demangle.
8662 * symtab.c (symbol_find_demangled_name)
8663 (demangle_for_lookup): Use gdb_demangle.
8664
8665 2013-04-15 Tom Tromey <tromey@redhat.com>
8666
8667 PR c++/12824:
8668 * NEWS: Update.
8669 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8670 New constant.
8671 (classify_exception_breakpoint): New function.
8672 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8673 (print_mention_exception_catchpoint)
8674 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8675 (catch_exception_command_1): Handle "rethrow" catchpoint.
8676 (catch_rethrow_command): New function.
8677 (_initialize_breakpoint): Add "catch rethrow" command.
8678
8679 2013-04-15 Pierre Muller <muller@sourceware.org>
8680
8681 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8682 set_gdbarch_write_pc as deprecated anymore.
8683
8684 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8685
8686 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8687 declarations.
8688
8689 2013-04-13 Yao Qi <yao@codesourcery.com>
8690
8691 * ctf.c (_initialize_ctf): Include "completer.h".
8692 Call add_target_with_completer instead of add_target.
8693
8694 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8695
8696 Fix GDB regression related to PR binutils/14813.
8697 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8698 * minidebug.c (lzma_close): Add return value comment.
8699 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8700 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8701 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8702
8703 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8704
8705 * config.in: Regenerate.
8706
8707 2013-04-12 Tom Tromey <tromey@redhat.com>
8708
8709 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8710 const.
8711 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8712 (struct die_reader_specs) <buffer>: Likewise.
8713 (die_reader_func_ftype): Make 'info_ptr' const.
8714 (struct line_header) <include_dirs, statement_program_start,
8715 statement_program_end>: Now const.
8716 (struct file_entry) <name>: Likewise.
8717 (struct partial_die_info) <sibling>: Likewise.
8718 (struct dwarf_block) <data>: Likewise.
8719 (dwarf2_read_section): Remove cast.
8720 (dwarf2_get_section_info): Make 'bufp' const.
8721 (read_index_from_section): Constify.
8722 (dw2_get_file_names_reader): Make 'info_ptr' const.
8723 (dw2_get_primary_filename_reader): Likewise.
8724 (read_comp_unit_head): Make 'info_ptr' and return type const.
8725 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8726 Likewise.
8727 (read_abbrev_offset): Constify.
8728 (dwarf2_create_include_psymtab): Make 'name' const.
8729 (create_debug_types_hash_table): Update.
8730 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8731 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8732 Constify.
8733 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8734 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8735 (read_comp_units_from_section): Constify.
8736 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8737 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8738 const.
8739 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8740 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8741 (create_dwp_hash_table, dwarf2_ranges_read)
8742 (dwarf2_record_block_ranges): Constify.
8743 (read_die_and_children, read_die_and_siblings_1)
8744 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8745 const.
8746 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8747 (abbrev_table_read_table): Constify.
8748 (load_partial_dies): Make 'info_ptr' const.
8749 (read_partial_die, read_attribute_value, read_attribute): Make
8750 'info_ptr' and return type const.
8751 (read_address, read_initial_length)
8752 (read_checked_initial_length_and_offset, read_offset)
8753 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8754 const.
8755 (read_direct_string): Make 'buf' and return type const.
8756 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8757 (read_indirect_string): Make return type const.
8758 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8759 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8760 'info_ptr' const.
8761 (read_str_index): Make return type const.
8762 (add_include_dir): Make 'include_dir' const.
8763 (add_file_name): Make 'name' const.
8764 (dwarf_decode_line_header): Constify.
8765 (psymtab_include_file_name): Make return type const.
8766 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8767 (dwarf2_start_subfile): Make 'filename' const.
8768 (dwarf2_const_value_attr): Make 'bytes' const.
8769 (read_signatured_type_reader): Make 'info_ptr' const.
8770 (decode_locdesc): Constify.
8771 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8772 const.
8773 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8774 'mac_end', and return type const.
8775 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8776 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8777 type const.
8778 (per_cu_header_read_in): Constify.
8779 * symfile.h (dwarf2_get_section_info): Update.
8780
8781 2013-04-12 Tom Tromey <tromey@redhat.com>
8782
8783 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8784
8785 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8786
8787 * NEWS: Mention "show configuration", --configuration.
8788 * top.c (print_gdb_configuration): New function, displays the
8789 details about GDB configure-time parameters.
8790 (print_gdb_version): Mention "show configuration".
8791 * cli/cli-cmds.c (show_configuration): New function.
8792 (_initialize_cli_cmds): Add the "show configuration" command.
8793 * main.c (captured_main) <print_configuration>: New static var.
8794 <long_options>: Use it.
8795 If --configuration was given, call print_gdb_configuration.
8796
8797 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8798 Pedro Alves <palves@redhat.com>
8799
8800 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8801 (generated_files): Add gcore.
8802 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8803 HAVE_NATIVE_GCORE_HOST.
8804 (gcore): New.
8805 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8806 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8807 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8808 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8809 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8810 Add HAVE_NATIVE_GCORE_HOST.
8811 * configure: Regenerate.
8812 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8813 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8814 AC_CONFIG_FILES for gcore.
8815 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8816 gdb_have_gcore.
8817 * gdb_gcore.sh: Rename to ...
8818 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8819 and GCORE_TRANSFORM_NAME substitutions.
8820
8821 Fix parsing tabs in ${gdb_target_obs}.
8822 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8823
8824 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8825
8826 * remote.c (unpush_and_perror): Add output message final dot.
8827
8828 2013-04-11 Yao Qi <yao@codesourcery.com>
8829
8830 * tracepoint.c (tfile_interp_line): Fit parameters line and
8831 utpp in one line.
8832
8833 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8834
8835 * solib.c (solib_map_sections): Remove code overwriting
8836 SO->SO_NAME with the bfd's filename.
8837
8838 2013-04-10 Pedro Alves <palves@redhat.com>
8839
8840 * cli/cli-decode.c (integer_unlimited_completer): New function.
8841 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8842 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8843 completer.
8844 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8845 (is_unlimited_literal): New function.
8846 (do_set_command): Handle literal "unlimited" arguments.
8847 * frame.c (_initialize_frame) <set backtrace limit>: Document
8848 "unlimited".
8849 * printcmd.c (_initialize_printcmd) <set print
8850 max-symbolic-offset>: Add help text.
8851 * record-full.c (_initialize_record_full) <set record full
8852 insn-number-max>: Likewise.
8853 * record.c (_initialize_record) <set record
8854 instruction-history-size, set record function-call-history-size>:
8855 Add help text.
8856 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8857 help text.
8858 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8859 Likewise.
8860 * source.c (_initialize_source) <set listsize>: Add help text.
8861 * utils.c (initialize_utils) <set height, set width>: Likewise.
8862 <set pagination>: Mention "set height unlimited".
8863 * valprint.c (_initialize_valprint) <set print elements, set print
8864 repeats>: Document "unlimited".
8865
8866 2013-04-10 Pedro Alves <palves@redhat.com>
8867
8868 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8869 instead of disconnect_tracing.
8870 * infcmd.c (detach_command, disconnect_command): Call
8871 query_if_trace_running. Adjust.
8872 * top.c: Include "tracepoint.h".
8873 (quit_target): Delete. Contents moved ...
8874 (quit_force): ... here. Wrap each stage of teardown in
8875 TRY_CATCH. Call disconnect_tracing before detaching.
8876
8877 2013-04-10 Hui Zhu <hui@codesourcery.com>
8878 Yao Qi <yao@codesourcery.com>
8879
8880 * configure.ac: Check libbabeltrace is installed.
8881 * config.in: Regenerate.
8882 * configure: Regenerate.
8883 * Makefile.in (LIBBABELTRACE): New.
8884 (CLIBS): Add LIBBABELTRACE.
8885 * ctf.c: Include "exec.h".
8886 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8887 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8888 (ctf_save_metadata_header): Define new type aliases in
8889 metadata.
8890 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8891 in metadata. Start a new faked packet for trace status.
8892 (ctf_write_status): Write trace status to CTF.
8893 (ctf_write_uploaded_tsv): Write TSV to CTF.
8894 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8895 (ctf_write_definition_end): End the faked packet.
8896
8897 (ctx, ctf_iter, trace_dirname): New.
8898 (start_pos): New variable.
8899 (ctf_destroy, ctf_open_dir, ctf_open): New.
8900 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8901 macros.
8902 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8903 (ctf_fetch_registers, ctf_xfer_partial): New.
8904 (ctf_get_trace_state_variable_value): New.
8905 (ctf_get_tpnum_from_frame_event): New.
8906 (ctf_get_traceframe_address): New.
8907 (ctf_trace_find, ctf_has_stack): New.
8908 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8909 (ctf_get_trace_status, ctf_read_status): New.
8910 (_initialize_ctf): New.
8911 * tracepoint.c (get_tracepoint_number): New
8912 (get_uploaded_tsv): Remove 'static'.
8913 (struct traceframe_info, trace_regblock_size): Move it to ...
8914 * tracepoint.h: ... here.
8915 (get_tracepoint_number): Declare it.
8916 (get_uploaded_tsv): Declare it.
8917
8918 * NEWS: Mention new configure option.
8919
8920 2013-04-10 Pedro Alves <palves@redhat.com>
8921 Hui Zhu <hui@codesourcery.com>
8922
8923 * breakpoint.c (dprintf_re_set): New.
8924 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8925 to dprintf_re_set.
8926
8927 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8928
8929 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8930 Remove solib-svr4.o from the list.
8931
8932 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8933
8934 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8935 Use gdb_assert_not_reached instead of invalid boolean expression.
8936
8937 2013-04-09 Pedro Alves <palves@redhat.com>
8938
8939 * remote.c (unpush_and_perror): New function.
8940 (readchar, remote_serial_write): Use it.
8941
8942 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8943
8944 * NEWS: Mention new btrace RSP packets.
8945
8946 2013-04-08 Tom Tromey <tromey@redhat.com>
8947
8948 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8949 long.
8950
8951 2013-04-08 Tom Tromey <tromey@redhat.com>
8952
8953 * maint.c (print_bfd_section_info): Print the section index.
8954 * symmisc.c (dump_msymbols): Print the section index.
8955
8956 2013-04-08 Tom Tromey <tromey@redhat.com>
8957
8958 PR symtab/8424:
8959 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8960 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8961 * breakpoint.c (resolve_sal_pc): Update.
8962 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8963 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8964 (minsym_lookup_iterator_cb): Use it.
8965 (default_read_var_value): Update.
8966 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8967 Update.
8968 * infcmd.c (jump_command): Update.
8969 * linespec.c (minsym_found): Update.
8970 * maint.c (maintenance_translate_address): Update.
8971 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8972 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8973 * parse.c (write_exp_msymbol): Update.
8974 * printcmd.c (address_info): Update.
8975 * psymtab.c (find_pc_sect_psymbol): Update.
8976 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8977 SYMBOL_OBJ_SECTION.
8978 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8979 Don't initialize SYMBOL_OBJ_SECTION.
8980 * spu-tdep.c (spu_catch_start): Update.
8981 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8982 * symmisc.c (dump_msymbols, print_symbol): Update.
8983 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8984 how fallback section is computed.
8985 (fixup_symbol_section): Update.
8986 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8987 Update.
8988 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8989 Initialize SYMBOL_SECTION.
8990 * symtab.h (struct general_symbol_info) <section>: Update comment.
8991 <obj_section>: Remove.
8992 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8993 (SYMBOL_OBJFILE): New macro.
8994
8995 2013-04-08 Tom Tromey <tromey@redhat.com>
8996
8997 * coffread.c (record_minimal_symbol): Update.
8998 * dbxread.c (record_minimal_symbol): Update.
8999 * elfread.c (record_minimal_symbol): Update.
9000 * machoread.c (macho_symtab_add_minsym): Update.
9001 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9002 Update.
9003 * minsyms.c (prim_record_minimal_symbol): Update.
9004 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9005 argument.
9006 (prim_record_minimal_symbol_and_info): Likewise.
9007 * minsyms.h (prim_record_minimal_symbol_full)
9008 (prim_record_minimal_symbol_and_info): Update.
9009 * symtab.c (allocate_symbol, initialize_symbol)
9010 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9011 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9012 Update.
9013
9014 2013-04-08 Tom Tromey <tromey@redhat.com>
9015
9016 PR symtab/8423:
9017 * solib-som.c (som_solib_section_offsets): Use BFD section
9018 indices. Set offsets for all sections.
9019 * somread.c (som_symtab_read): Compute BFD section for
9020 symbol. Use prim_record_minimal_symbol_and_info.
9021 (som_symfile_read): Fix comment.
9022 (struct find_section_offset_arg): New.
9023 (find_section_offset, set_section_index): New functions.
9024 (som_symfile_offsets): Use set_section_index to compute
9025 section indices.
9026
9027 2013-04-08 Tom Tromey <tromey@redhat.com>
9028
9029 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9030 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9031 gdb_bfd_section_index.
9032 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9033 New functions.
9034 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9035 Declare.
9036 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9037 Update.
9038 * objfiles.c (add_to_objfile_sections_full): New function.
9039 (add_to_objfile_sections): Use it.
9040 (build_section_table): Rewrite.
9041 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9042 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9043 (struct objfile) <sections>: Update comment.
9044 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9045 is NULL.
9046 (ALL_OBJSECTIONS): Use it.
9047 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9048 * solib-frv.c (frv_relocate_main_executable): Update.
9049 * solib-target.c (solib_target_relocate_section_addresses):
9050 Use gdb_bfd_section_index.
9051 * symfile.c (build_section_addr_info_from_section_table):
9052 Use gdb_bfd_section_index.
9053 (build_section_addr_info_from_bfd, place_section): Likewise.
9054 * symtab.c (fixup_section): Update.
9055 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9056
9057 2013-04-08 Tom Tromey <tromey@redhat.com>
9058
9059 * minsyms.h (struct bound_minimal_symbol): New.
9060 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9061 Remove objfile argument.
9062 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9063 Return bound_minimal_symbol.
9064 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9065 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9066 Return bound_minimal_symbol.
9067 (in_gnu_ifunc_stub): Update.
9068 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9069 Remove 'objfile_p' argument.
9070 (lookup_solib_trampoline_symbol_by_pc): Update.
9071 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9072 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9073 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9074 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9075 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9076 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9077 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9078 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9079 stack.c, symtab.c, tui/tui-disasm.c: Update.
9080
9081 2013-04-08 Tom Tromey <tromey@redhat.com>
9082
9083 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9084 Use symbol's obstack, not an objfile.
9085 * coffread.c (process_coff_symbol): Update.
9086 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9087 * jv-lang.c (add_class_symbol): Update.
9088 * mdebugread.c (new_symbol): Update.
9089 * minsyms.c (prim_record_minimal_symbol_full)
9090 (terminate_minimal_symbol_table): Update.
9091 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9092 * stabsread.c (define_symbol, read_enum_type): Update.
9093 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9094 Handle Ada specially.
9095 (symbol_set_language): Add 'obstack' argument.
9096 (symbol_set_names): Update.
9097 (symbol_natural_name, symbol_demangled_name): Always use
9098 ada_decode_symbol.
9099 * symtab.h (struct general_symbol_info)
9100 <language_specific::obstack>: New field.
9101 <ada_mangled>: New field.
9102 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9103 (symbol_set_language): Update.
9104
9105 2013-04-08 Tom Tromey <tromey@redhat.com>
9106
9107 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9108 Take an obstack, not an objfile.
9109 (symbol_set_names): Update.
9110 * symtab.h (symbol_set_demangled_name): Update.
9111
9112 2013-04-08 Tom Tromey <tromey@redhat.com>
9113
9114 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9115 allocate_symbol.
9116 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9117 (read_func_scope): Call allocate_template_symbol.
9118 (new_symbol_full): Call allocate_symbol.
9119 * jit.c (finalize_symtab): Call allocate_symbol.
9120 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9121 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9122 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9123 (common_block_end): Call allocate_symbol.
9124 * symtab.c (allocate_symbol, initialize_symbol)
9125 (allocate_template_symbol): New functions.
9126 * symtab.c (allocate_symbol, initialize_symbol)
9127 (allocate_template_symbol): Declare.
9128 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9129
9130 2013-04-08 Pedro Alves <palves@redhat.com>
9131 Keith Seitz <keiths@redhat.com>
9132
9133 * breakpoint.c (create_breakpoint): Rename
9134 "parse_condition_and_thread" parameter to "parse_arg". Update
9135 describing comment. If !PARSE_ARG, then error out if ARG is not
9136 the empty string after extracting the location.
9137 * breakpoint.h (create_breakpoint): Rename
9138 "parse_condition_and_thread" parameter to "parse_arg".
9139
9140 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9141
9142 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9143
9144 2013-04-07 Yao Qi <yao@codesourcery.com>
9145
9146 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9147 and 'addr2' to CORE_ADDR.
9148 * target.c (update_current_target): Update.
9149 * target.h (struct target_ops) <to_trace_find>: Change parameter
9150 type to CORE_ADDR.
9151 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9152 'addr2' to CORE_ADDR.
9153 (tfile_trace_find): Likewise.
9154 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9155 Change local variable 'addr' to type CORE_ADDR.
9156 * tracepoint.h (tfind_1): Update declaration.
9157
9158 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9159
9160 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9161 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9162 Include main.h.
9163
9164 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9165 here...
9166 * main.h (windows_get_absolute_argv0): ...to here.
9167
9168 2013-04-05 Doug Evans <dje@google.com>
9169
9170 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9171 (read_cutu_die_from_dwo): Add comments.
9172 (read_structure_type): Update comment.
9173 (read_enumeration_type, read_namespace_type): Update comment.
9174 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9175
9176 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9177
9178 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9179 * Makefile.in (gdb.z): Remove.
9180 (install-only): Remove $(man1dir) and gdb.1 installation.
9181 * gdb.1: Remove.
9182
9183 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9184
9185 Fix compatibility with Linux kernel 3.8.3.
9186 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9187 to more inner block. Remove parsing of NUMBER from outer block.
9188 Parse NUMBER only if KEYWORD has been identified.
9189
9190 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9191
9192 Fix variable name shadowing.
9193 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9194 filename to mapsfilename and update its uses.
9195
9196 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9197
9198 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9199 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9200 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9201 details of the problem.
9202
9203 2013-04-04 Pedro Alves <palves@redhat.com>
9204 Hui Zhu <hui@codesourcery.com>
9205
9206 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9207 tracepoint, reset its STEP_COUNT and call validate_actionline.
9208
9209 2013-04-03 Doug Evans <dje@google.com>
9210
9211 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9212 read_die_and_siblings.
9213 (read_die_and_siblings): New function.
9214 (read_cutu_die_from_dwo): Dump die if requested.
9215 (read_die_and_children): Call read_full_die_1 and
9216 read_die_and_siblings_1.
9217 (read_full_die): Dump die if requested.
9218
9219 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9220
9221 * dwarf2read.c (struct dwo_file): New member comp_dir.
9222 Rename member name to dwo_name. All uses updated.
9223 (hash_dwo_file): Include comp_dir in computation.
9224 (eq_dwo_file): Ditto.
9225 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9226 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9227
9228 * psymtab.c (read_psymtabs_with_fullname): Don't call
9229 psymtab_to_fullname if the basenames are different.
9230
9231 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9232
9233 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9234 New entry about "fullname" presence.
9235
9236 2013-04-03 Pedro Alves <palves@redhat.com>
9237
9238 * NEWS: Mention x86_64/Cygwin as new native configuration.
9239
9240 2013-04-02 Doug Evans <dje@google.com>
9241
9242 * dwarf2read.c (read_structure_type): Fix typo in comment.
9243
9244 2013-04-02 Pedro Alves <palves@redhat.com>
9245
9246 * NEWS: Mention "set/show debug aarch64", "set/show debug
9247 coff-pe-read" and "set/show debug mach-o".
9248
9249 2013-04-02 Pedro Alves <palves@redhat.com>
9250
9251 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9252
9253 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9254
9255 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9256 gdb_string.h is now in common/.
9257
9258 2013-04-02 Pedro Alves <palves@redhat.com>
9259
9260 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9261 under "New options".
9262
9263 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9264
9265 Revert this patch:
9266 PR gdb/15275
9267 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9268
9269 2013-04-02 Pedro Alves <palves@redhat.com>
9270
9271 PR gdb/15275
9272
9273 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9274 (remote_serial_write): New function.
9275 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9276
9277 2013-04-01 Jiong Wang <jiwang@tilera.com>
9278
9279 * NEWS: Mention TILE-Gx in "New native configurations" and
9280 "New targets" sections.
9281
9282 2013-04-01 Doug Evans <dje@google.com>
9283
9284 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9285 (process_enumeration_scope): Simplify.
9286
9287 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9288 type_unit_group ...
9289 (struct signatured_type): ... to here.
9290 (sig_type_ptr): New typedef.
9291 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9292 out of union 't'. All uses updated.
9293 (dw2_get_file_names_reader): Assert not called for a type unit.
9294 (dw2_get_file_names): Assert not called for a type unit or type
9295 unit group.
9296 (build_type_psymtabs_reader): Assert called for a type unit.
9297 (build_type_psymtab_dependencies): Assert called for a type unit group.
9298
9299 * dwarf2read.c (free_dwo_file): Add comment.
9300 (dwarf2_per_objfile_free): Unref dwp bfd.
9301
9302 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9303
9304 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9305 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9306 (read_pe_exported_syms): Remove unused 'exportix'.
9307 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9308 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9309 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9310
9311 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9312
9313 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9314 (print_it_watchpoint): Remove unused 'bl'.
9315 (say_where): Remove unused 'uiout'.
9316 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9317 (bkpt_breakpoint_hit): Remove unused 'b'.
9318 (internal_bkpt_print_it): Remove unused 'uiout'.
9319 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9320
9321 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9322
9323 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9324 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9325
9326 2013-03-29 Doug Evans <dje@google.com>
9327
9328 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9329 Delete arg is_dwp. All callers updated.
9330 (open_dwp_file): New function.
9331 (open_and_init_dwp_file): Call it.
9332 (get_dwp_file): New function.
9333 (lookup_dwo_cutu): Call it.
9334
9335 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9336 unnecessary, cleanup.
9337
9338 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9339
9340 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9341 (lookup_dwo_unit): New function.
9342 (init_cutu_and_read_dies): Move DWO handling to new functions.
9343
9344 * dwarf2read.c (struct signatured_type): Tweak comment.
9345 (struct dwo_unit): Tweak comment.
9346 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9347 (create_dwo_debug_info_hash_table): Tweak comment.
9348 (dwarf2_per_cu_offset_and_type): Tweak comment.
9349
9350 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9351 missing .debug_types section.
9352
9353 2013-03-29 Yao Qi <yao@codesourcery.com>
9354
9355 * corelow.c: Include "completer.h".
9356 (_initialize_corelow): Call add_target_with_completer with
9357 argument 'filename_completer'.
9358 * tracepoint.c: Likewise.
9359 * exec.c (_initialize_exec): Likewise.
9360 * target.c (add_target): Rename to ...
9361 (add_target_with_completer): ... this. Call set_cmd_completer
9362 if parameter completer is not NULL.
9363 (add_target): New.
9364 * target.h: Include "command.h".
9365 (add_target_with_completer): Declare it.
9366
9367 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9368
9369 * coffread.c (is_import_fixup_symbol): New function.
9370 (record_minimal_symbol): Use is_import_fixup_symbol to
9371 detect import fixup symbols, and discard them.
9372
9373 2013-03-28 Doug Evans <dje@google.com>
9374
9375 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9376 types hash table until we know we need it.
9377
9378 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9379 index numbers.
9380
9381 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9382 All callers updated.
9383 (dw2_print_stats): Print #read CUs too.
9384 (dump_die_shallow): Print signatured types better.
9385
9386 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9387 info_or_types_section to section. All uses updated.
9388 (struct dwo_unit): Ditto.
9389
9390 2013-03-28 Pedro Alves <palves@redhat.com>
9391
9392 * NEWS (New options): New section.
9393 (New options): Mention set/show remote trace-status-packet.
9394 * remote.c (PACKET_qTStatus): New enumeration value.
9395 (remote_get_trace_status): Skip sending qTStatus if the packet is
9396 disabled. Use packet_ok.
9397 (_initialize_remote): Register a configuration command for
9398 qTStatus packet.
9399
9400 2013-03-28 Doug Evans <dje@google.com>
9401
9402 * symfile.c (find_separate_debug_file): Add comment.
9403 (terminate_after_last_dir_separator): Tweak comment.
9404
9405 * dwarf2read.c (create_partial_symtab): Add forward decl.
9406 (create_partial_symtab): Move to be closer to other psymtab functions.
9407 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9408
9409 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9410 (compute_symtab_includes): Remove unnecessary forward declaration.
9411 (die_needs_namespace): Add comment marking group of functions for
9412 dwarf2 name computation.
9413
9414 * typeprint.c (_initialize_typeprint): Improve type help text.
9415
9416 * python/python.c (finish_python_initialization): Provide suggestion
9417 for how to tell gdb to find its python files.
9418
9419 2013-03-28 Pedro Alves <palves@redhat.com>
9420
9421 PR gdb/15294
9422
9423 * source.c (_initialize_source): Change back "set listsize" to an
9424 integer command.
9425
9426 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9427
9428 PR gdb/15275
9429 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9430
9431 2013-03-27 Pedro Alves <palves@redhat.com>
9432
9433 * top.c (history_size): Rename to ...
9434 (history_size_setshow_var): ... this. Add comment.
9435 (show_commands): Use readline's 'history_length' instead of
9436 computing the history length by calling history_get in a loop.
9437 (set_history_size_command): Error out for sizes over INT_MAX.
9438 Restore previous history size on invalid size.
9439 (init_history): If HISTSIZE is negative, leave the history size as
9440 zero. Add comments.
9441 (init_main): Adjust.
9442
9443 2013-03-27 Pedro Alves <palves@redhat.com>
9444
9445 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9446 coff_pe_read" command to "set debug coff-pe-read".
9447
9448 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9449
9450 * record.c (command_size_to_target_size): Fix size comparison.
9451 Change parameter type from pointer to integer to integer.
9452 Update all users.
9453
9454 2013-03-27 Pierre Muller <muller@sourceware.org>
9455
9456 * windows-nat.c (handle_output_debug_string): Avoid typecast
9457 from integer of different size warning.
9458
9459 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9460
9461 * windows-nat.c (handle_output_debug_string): Add empty line
9462 after local block variable definition.
9463
9464 2013-03-26 Pedro Alves <palves@redhat.com>
9465
9466 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9467 (net_open): Make 'polls' local unsigned.
9468
9469 2013-03-26 Pedro Alves <palves@redhat.com>
9470
9471 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9472 a zuinteger command instead of uinteger.
9473
9474 2013-03-26 Pedro Alves <palves@redhat.com>
9475
9476 * record-full.c (record_full_insn_num): Make it unsigned.
9477 (record_full_check_insn_num, record_full_message)
9478 (record_full_registers_change, record_full_xfer_partial): Remove
9479 record_full_insn_max_num check (it's always != 0).
9480 (record_full_info, record_full_restore): Use %u as format string.
9481 (): Use %u as format string.
9482 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9483 check (it's always != 0).
9484
9485 2013-03-26 Pedro Alves <palves@redhat.com>
9486
9487 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9488 and "set dcache size" commands zuinteger instead of uinteger.
9489
9490 2013-03-26 Pedro Alves <palves@redhat.com>
9491
9492 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9493 command zuinteger instead of uinteger.
9494
9495 2013-03-26 Pedro Alves <palves@redhat.com>
9496
9497 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9498 zuinteger instead of uinteger.
9499
9500 2013-03-26 Pedro Alves <palves@redhat.com>
9501
9502 * record.c (record_insn_history_size_setshow_var)
9503 (record_call_history_size_setshow_var): New globals.
9504 (command_size_to_target_size): New function.
9505 (cmd_record_insn_history, cmd_record_call_history): Use
9506 command_size_to_target_size instead of cast.
9507 (validate_history_size, set_record_insn_history_size)
9508 (set_record_call_history_size): New functions.
9509 (_initialize_record): Install set_record_insn_history_size and
9510 set_record_call_history_size as "set" hooks of "set record
9511 instruction-history-size" and "set record
9512 function-call-history-size".
9513
9514 2013-03-26 Pedro Alves <palves@redhat.com>
9515
9516 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9517 use with history_max_entries use. Remove FIXME note.
9518
9519 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9520
9521 * record-btrace.c (record_btrace_close): Call
9522 record_btrace_auto_disable.
9523
9524 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9525
9526 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9527
9528 2013-03-25 Doug Evans <dje@google.com>
9529
9530 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9531
9532 2013-03-25 Tom Tromey <tromey@redhat.com>
9533
9534 PR symtab/11462:
9535 * c-exp.y (exp): Add new productions for destructors after '.' and
9536 '->'.
9537 (write_destructor_name): New function.
9538
9539 2013-03-25 Tom Tromey <tromey@redhat.com>
9540
9541 PR c++/9197:
9542 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9543 value_struct_elt, not lookup_struct_elt_type.
9544 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9545 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9546 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9547
9548 2013-03-25 Yao Qi <yao@codesourcery.com>
9549
9550 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9551 instead of '_mkdir'.
9552
9553 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9554
9555 * windows-nat.c (windows_get_absolute_argv0): New function.
9556 * windows-nat.h: Add its prototype.
9557
9558 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9559 Use IS_DIR_SEPARATOR instead of looking for a character inside
9560 SLASH_STRING. Include filenames.h.
9561 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9562 relocate_gdb_directory works when passed gdb_program_name.
9563 Include windows-nat.h.
9564
9565 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9566
9567 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9568 * remote.c (trace_error): Remove the special handling of '2'.
9569 (readchar) <SERIAL_EOF>
9570 (readchar) <SERIAL_ERROR>
9571 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9572 (remote_get_trace_status): Call throw_exception if EX is
9573 TARGET_CLOSE_ERROR.
9574 * utils.c (perror_with_name): Rename to ...
9575 (throw_perror_with_name): ... here. New parameter errcode, describe it
9576 in the function comment.
9577 (perror_with_name): New function wrapper.
9578 * utils.h (enum errors): New stub declaration.
9579 (throw_perror_with_name): New declaration.
9580
9581 2013-03-22 Pedro Alves <palves@redhat.com>
9582 Yao Qi <yao@codesourcery.com>
9583 Mark Kettenis <kettenis@gnu.org>
9584
9585 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9586 Don't let the user set the value to UINT_MAX directly.
9587 <var_integer>: Don't let the user set the value to INT_MAX
9588 directly.
9589
9590 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9591
9592 * remote.c (remote_unpush_target): New function.
9593 (remote_open_1): Remove two pop_target calls, update one comment, add
9594 comment to target_preopen call. Replace pop_target call by
9595 remote_unpush_target call.
9596 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9597 pop_target calls by remote_unpush_target calls.
9598
9599 2013-03-22 Pedro Alves <palves@redhat.com>
9600
9601 * linux-nat.c (linux_child_follow_fork): Don't call
9602 linux_enable_event_reporting.
9603 (linux_handle_extended_wait): Don't call
9604 linux_enable_event_reporting.
9605
9606 2013-03-22 Pedro Alves <palves@redhat.com>
9607
9608 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9609 use it to rewrite the trampoline buffers with type gdb_byte[], and
9610 undefine the macro. Remove char* cast.
9611
9612 2013-03-21 Doug Evans <dje@google.com>
9613
9614 New commands "mt set per-command {space,time,symtab} {on,off}".
9615 * NEWS: Add entry.
9616 * event-top.c: #include "maint.h".
9617 * main.c: #include "maint.h".
9618 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9619 timeval-utils.h, maint.h, cli/cli-setshow.h.
9620 (per_command_time, per_command_space): New static globals.
9621 (per_command_symtab): New static global.
9622 (per_command_setlist, per_command_showlist): New static globals.
9623 (struct cmd_stats): Move here from utils.c.
9624 (set_per_command_time): Renamed from set_display_time in utils.c
9625 and moved here. All callers updated.
9626 (set_per_command_space): Renamed from set_display_space in utils.c
9627 and moved here. All callers updated.
9628 (count_symtabs_and_blocks): New function.
9629 (report_command_stats): Moved here from utils.c. Add support for
9630 printing symtab stats. Only print data if enabled before command
9631 executed.
9632 (make_command_stats_cleanup): Ditto.
9633 (sert_per_command_cmd, show_per_command_cmd): New functions.
9634 (_initialize_maint_cmds): Add new commands
9635 mt set per-command {space,time,symtab} {on,off}.
9636 * maint.h: New file.
9637 * top.c: #include "maint.h".
9638 * utils.c (reset_prompt_for_continue_wait_time): New function.
9639 (get_prompt_for_continue_wait_time): New function.
9640 * utils.h (reset_prompt_for_continue_wait_time): Declare
9641 (get_prompt_for_continue_wait_time): Declare.
9642 (make_command_stats_cleanup): Moved to maint.h.
9643 (set_display_time, set_display_space): Moved to maint.h and renamed
9644 to set_per_command_time, set_per_command_space.
9645 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9646 parse_binary_operation and made non-static. Don't call error,
9647 just return an error marker. All callers updated.
9648 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9649
9650 2013-03-21 Tom Tromey <tromey@redhat.com>
9651
9652 * symfile.c (alloc_section_addr_info): Update header. Don't set
9653 'num_sections' field.
9654 (build_section_addr_info_from_section_table): Set 'num_sections'.
9655 (build_section_addr_info_from_bfd): Likewise.
9656 (build_section_addr_info_from_objfile): Remove dead loop
9657 condition.
9658 (free_section_addr_info): Unconditionally call xfree.
9659 (relative_addr_info_to_section_offsets, addrs_section_sort)
9660 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9661 condition.
9662 (syms_from_objfile_1): Remove dead 'if' condition. Check
9663 'num_sections'.
9664 (add_symbol_file_command): Set 'num_sections'.
9665 * symfile-mem.c (symbol_file_add_from_memory): Set
9666 'num_sections'.
9667 * somread.c (som_symfile_offsets): Remove dead loop condition.
9668 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9669 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9670
9671 2013-03-21 Tom Tromey <tromey@redhat.com>
9672
9673 * tracepoint.h (decode_agent_options): Add 'trace_string'
9674 argument.
9675 * tracepoint.c (decode_agent_options): Add 'trace_string'
9676 argument.
9677 (validate_actionline): Update.
9678 (collect_symbol): Add 'trace_string' argument.
9679 (struct add_local_symbols_data) <trace_string>: New field.
9680 (do_collect_symbol): Update.
9681 (add_local_symbols): Add 'trace_string' argument.
9682 (encode_actions_1): Update.
9683 (trace_dump_actions): Update.
9684 * dwarf2loc.c (access_memory): Update.
9685 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9686 * ax-general.c (new_agent_expr): Update.
9687 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9688 (gen_trace_for_return_address): Add argument.
9689 (trace_kludge, trace_string_kludge): Remove.
9690 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9691 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9692 (gen_trace_for_var): Add 'trace_string' argument.
9693 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9694 (gen_printf, agent_eval_command_one): Update.
9695
9696 2013-03-21 Tom Tromey <tromey@redhat.com>
9697
9698 PR exp/15109:
9699 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9700 Handle FILENAME token.
9701
9702 2013-03-21 Tom Tromey <tromey@redhat.com>
9703
9704 * c-exp.y (YYPRINT): Define.
9705 (c_print_token): New function.
9706
9707 2013-03-21 Tom Tromey <tromey@redhat.com>
9708
9709 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9710
9711 2013-03-21 Yao Qi <yao@codesourcery.com>
9712
9713 * ctf.c: Include "gdb_stat.h".
9714 [USE_WIN32API]: New macro 'mkdir'.
9715 (ctf_start): Use permission bits macros if they are defined.
9716
9717 2013-03-20 Keith Seitz <keiths@redhat.com>
9718
9719 * breakpoint.h (struct breakpoint): Add comment to
9720 extra_string indicating that this member is mallod'd.
9721 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9722
9723 2013-03-20 Pedro Alves <palves@redhat.com>
9724
9725 PR gdb/15289
9726
9727 * cli/cli-setshow.c (do_set_command)
9728 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9729 the result of parsing the command argument. Throw error if the
9730 value is greater than UINT_MAX. Print the invalid value with
9731 plongest.
9732 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9733 result of parsing the command argument. Throw error if the value
9734 is greater than INT_MAX, not greater or equal. Also throw error
9735 if the value is less than INT_MIN. Print the invalid value with
9736 plongest.
9737 <var_zuinteger_unlimited>: Throw error if the value is greater
9738 than INT_MAX, not greater or equal.
9739 (do_show_command) <var_integer, var_zinteger,
9740 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9741
9742 2013-03-20 Tom Tromey <tromey@redhat.com>
9743
9744 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9745 if possible.
9746 * dwarf2read.c (read_func_scope): Remove old FIXME.
9747 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9748 not LOC_COMPUTED.
9749 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9750 Unconditionally call via computed ops, if possible.
9751 * printcmd.c (address_info): Unconditionally call via computed ops,
9752 if possible.
9753 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9754 if possible.
9755 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9756 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9757 if possible.
9758
9759 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9760 Tom Tromey <tromey@redhat.com>
9761
9762 PR symtab/8421:
9763 * coffread.c (coff_register_index): New global.
9764 (process_coff_symbol, coff_read_enum_type): Set
9765 SYMBOL_ACLASS_INDEX.
9766 (_initialize_coffread): Initialize new global.
9767 * dwarf2loc.c (locexpr_find_frame_base_location)
9768 (dwarf2_block_frame_base_locexpr_funcs)
9769 (loclist_find_frame_base_location)
9770 (dwarf2_block_frame_base_loclist_funcs): New.
9771 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9772 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9773 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9774 (dwarf2_block_frame_base_loclist_funcs): New.
9775 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9776 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9777 globals.
9778 (read_func_scope): Update.
9779 (fixup_go_packaging, mark_common_block_symbol_computed)
9780 (var_decode_location, new_symbol_full, dwarf2_const_value):
9781 Set SYMBOL_ACLASS_INDEX.
9782 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9783 (_initialize_dwarf2_read): Initialize new globals.
9784 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9785 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9786 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9787 globals.
9788 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9789 (_initialize_mdebugread): Initialize new globals.
9790 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9791 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9792 (stab_register_index, stab_regparm_index): New globals.
9793 (define_symbol, read_enum_type, common_block_end): Set
9794 SYMBOL_ACLASS_INDEX.
9795 (_initialize_stabsread): Initialize new globals.
9796 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9797 globals.
9798 (MAX_SYMBOL_IMPLS): New define.
9799 (register_symbol_computed_impl, register_symbol_block_impl)
9800 (register_symbol_register_impl)
9801 (initialize_ordinary_address_classes): New functions.
9802 (_initialize_symtab): Call initialize_ordinary_address_classes.
9803 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9804 (struct symbol_impl): New.
9805 (SYMBOL_ACLASS_BITS): New define.
9806 (struct symbol) <aclass, ops>: Remove fields.
9807 <aclass_index>: New field.
9808 (symbol_impls): Declare.
9809 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9810 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9811 (register_symbol_computed_impl, register_symbol_block_impl)
9812 (register_symbol_register_impl): Declare.
9813 (struct symbol_computed_ops): Add location_has_loclist.
9814 (struct symbol_block_ops): New.
9815 (SYMBOL_BLOCK_OPS): New.
9816 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9817
9818 2013-03-20 Tom Tromey <tromey@redhat.com>
9819
9820 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9821 (print_partial_symbols, recursively_search_psymtabs): Use
9822 PSYMBOL_CLASS.
9823
9824 2013-03-20 Pierre Muller <muller@sourceware.org>
9825
9826 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9827 addtion, subtraction, multiplication and division binary operator.
9828
9829 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9830
9831 Code cleanup.
9832 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9833 * bsd-kvm.c (bsd_kvm_close): Likewise.
9834 * bsd-uthread.c (bsd_uthread_close): Likewise.
9835 * corelow.c (core_close): Likewise.
9836 (core_close_cleanup): Remove parameter quitting from a caller.
9837 * event-top.c (async_disconnect): Likewise.
9838 * exec.c (exec_close_1): Remove parameter quitting.
9839 * go32-nat.c (go32_close): Likewise.
9840 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9841 parameter quitting from a caller.
9842 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9843 variable.
9844 (mips_linux_close): Remove parameter quitting. Remove parameter
9845 quitting from a caller.
9846 * monitor.c (monitor_close): Remove parameter quitting.
9847 * monitor.h (monitor_close): Likewise.
9848 * record-btrace.c (record_btrace_close): Likewise.
9849 * record-full.c (record_full_close): Likewise.
9850 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9851 it also from fprintf_unfiltered.
9852 * remote-mips.c (mips_close): Remove parameter quitting.
9853 (mips_detach): Remove parameter quitting from a caller.
9854 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9855 (gdbsim_close): Remove duplicate function comment. Remove parameter
9856 quitting and remove it also from printf_filtered.
9857 * remote.c (remote_close): Remove parameter quitting.
9858 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9859 * target.c (update_current_target): Remove parameter int from to_close
9860 de_fault.
9861 (push_target, unpush_target, pop_target): Remove parameter quitting from
9862 a caller.
9863 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9864 Remove parameter quitting from a caller.
9865 (target_preopen): Remove parameter quitting from a caller.
9866 (target_close): Remove parameter quitting. Remove parameter quitting
9867 from a caller two times. Remove parameter quitting also from
9868 fprintf_unfiltered.
9869 * target.h (struct target_ops): Remove parameter quitting and as int
9870 from fields to_xclose and to_close.
9871 (extern struct target_ops current_target):
9872 (target_close, pop_all_targets): Remove parameter quitting. Update the
9873 comment.
9874 (pop_all_targets_above): Remove parameter quitting.
9875 * top.c (quit_target): Remove parameter quitting from a caller.
9876 * tracepoint.c (tfile_close): Remove parameter quitting.
9877 * windows-nat.c (windows_close): Remove parameter quitting.
9878
9879 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9880
9881 * windows-nat.c (handle_output_debug_string): Replace call
9882 to string_to_core_addr with call to strtoull.
9883
9884 2013-03-20 Yao Qi <yao@codesourcery.com>
9885
9886 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9887 and write it to CTF metadata.
9888
9889 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9890
9891 * windows-nat.c (handle_output_debug_string): Change type of n to
9892 SIZE_T to avoid crash on 64 bit systems.
9893
9894 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9895
9896 * python/python-internal.h (HAVE_SNPRINTF)
9897 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9898 about redefinition of snprintf by pyerrors.h.
9899
9900 2013-03-15 Steve Ellcey <sellcey@mips.com>
9901
9902 * remote-sim.c (sim_command_completer): Make char arguments const.
9903
9904 2013-03-15 Tom Tromey <tromey@redhat.com>
9905
9906 PR c++/15116:
9907 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9908
9909 2013-03-14 Tom Tromey <tromey@redhat.com>
9910
9911 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9912 New fields.
9913 (get_file_crc): Move from symfile.c.
9914 (gdb_bfd_crc): New function.
9915 * gdb_bfd.h (gdb_bfd_crc): Declare.
9916 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9917 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9918 (separate_debug_file_exists): Use gdb_bfd_crc.
9919
9920 2013-03-14 Tom Tromey <tromey@redhat.com>
9921
9922 * symfile.c (get_debug_link_info): Remove.
9923 (find_separate_debug_file_by_debuglink): Use
9924 bfd_get_debug_link_info.
9925
9926 2013-03-14 Tom Tromey <tromey@redhat.com>
9927
9928 * symtab.c (error_in_psymtab_expansion): New function.
9929 (lookup_symbol_aux_quick)
9930 (basic_lookup_transparent_type_quick): Remove "last resort"
9931 code. Use error_in_psymtab_expansion.
9932
9933 2013-03-14 Doug Evans <dje@google.com>
9934 Jan Kratochvil <jan.kratochvil@redhat.com>
9935
9936 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9937 any successful compare_filenames_for_search or FILENAME_CMP.
9938 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9939 * symtab.c (iterate_over_some_symtabs): Likewise.
9940
9941 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9942
9943 * source.c (print_source_lines_base): Make a local copy of
9944 symtab_to_fullname.
9945
9946 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9947 Jan Kratochvil <jan.kratochvil@redhat.com>
9948
9949 * source.c (print_source_lines_base): Suppress "file" for TUI.
9950
9951 2013-03-14 Keith Seitz <keiths@redhat.com>
9952 Alan Matsuoka <alanm@redhat.com>
9953
9954 PR c++/15203
9955 PR c++/15210
9956 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9957 TYPE_CODE_METHOD.
9958 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9959 symbols.
9960
9961 2013-03-14 Yao Qi <yao@codesourcery.com>
9962
9963 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9964 status to tfile if trace is stopped by command 'tstop'.
9965
9966 2013-03-14 Yao Qi <yao@codesourcery.com>
9967
9968 * tracepoint.c (tfile_write_status): Write trace notes and user
9969 name into tfile if they are not NULL.
9970
9971 2013-03-14 Hui Zhu <hui@codesourcery.com>
9972 Yao Qi <yao@codesourcery.com>
9973
9974 * Makefile.in (REMOTE_OBS): Add ctf.o.
9975 (SFILES): Add ctf.c.
9976 (HFILES_NO_SRCDIR): Add ctf.h.
9977 * ctf.c, ctf.h: New files.
9978 * tracepoint.c: Include 'ctf.h'.
9979 (collect_pseudocommand): Remove static.
9980 (trace_save_command): Parse option "-ctf".
9981 Produce different trace file writers per option.
9982 Adjust output message.
9983 (trace_save_tfile, trace_save_ctf): New.
9984 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9985 * mi/mi-main.c: Include 'ctf.h'.
9986 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9987 trace_save_tfile or trace_save_ctf.
9988 * NEWS: Mention these changes.
9989
9990 2013-03-14 Yao Qi <yao@codesourcery.com>
9991
9992 * tracepoint.c (trace_file_writer_xfree): New.
9993 (struct tfile_writer_data): New.
9994 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9995 (tfile_write_header, tfile_write_regblock_type): New.
9996 (tfile_write_status, tfile_write_uploaded_tsv): New.
9997 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9998 (tfile_write_raw_data, (tfile_end): New.
9999 (tfile_write_ops): New global variable.
10000 (TRACE_WRITE_R_BLOCK): New macro.
10001 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10002 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10003 (TRACE_WRITE_V_BLOCK): New macro.
10004 (trace_save): Add extra one parameter WRITER. Make it static.
10005 Use WRITER to writer trace.
10006 (tfile_trace_file_writer_new): New.
10007 (trace_save_command): Caller update.
10008 (trace_save_tfile): Write trace data in TFILE format.
10009 * tracepoint.h (struct trace_frame_write_ops): New.
10010 (struct trace_file_write_ops): New.
10011 (struct trace_file_writer): New.
10012 (trace_save): Remove its declaration.
10013 (trace_save_tfile): Declare it.
10014 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10015 instead of trace_save.
10016
10017 2013-03-13 Pedro Alves <palves@redhat.com>
10018
10019 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10020
10021 2013-03-13 Pedro Alves <palves@redhat.com>
10022
10023 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10024 commented out code.
10025 * demangle.c (current_demangling_style_string): Make it const.
10026 (set_demangling_command): Assert the demangling style is known.
10027 Remove all handling of unknown styles. Set
10028 'current_demangling_style_string' to an element of the
10029 demangling_style_names array.
10030 (set_demangling_style): Delete.
10031 (_initialize_demangler): Set current_demangling_style_string to the
10032 element of the demangling_style_names array that corresponds to
10033 the default demangling style. Remove FIXME note. Don't call
10034 set_demangling_style.
10035 * gdb-demangle.h (set_demangling_style): Remove declaration.
10036
10037 2013-03-13 Pedro Alves <palves@redhat.com>
10038
10039 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10040 fields const.
10041 (ada_make_symbol_completion_list): Make "text0" parameter const.
10042 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10043 * breakpoint.c (condition_completer): Make "text" and "word"
10044 parameters const. Adjust.
10045 (check_tracepoint_command): Adjust to validate_actionline
10046 prototype change.
10047 (catch_syscall_completer): Make "text" and "word" parameters
10048 const.
10049 * cli/cli-cmds.c (show_user): Make "comname" local const.
10050 (valid_command_p): Make "command" parameter const.
10051 (alias_command): Make "alias_prefix" and "command_prefix" locals
10052 const.
10053 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10054 (add_alias_cmd): Make "name" and "oldname" parameters const.
10055 Adjust. No longer make copy of OLDNAME.
10056 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10057 (add_setshow_cmd_full, add_setshow_enum_cmd)
10058 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10059 (add_setshow_filename_cmd, add_setshow_string_cmd)
10060 (add_setshow_string_noescape_cmd)
10061 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10062 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10063 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10064 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10065 Make "name" parameter const.
10066 (help_cmd): Rename "command" parameter to "arg". New const local
10067 "command".
10068 (find_cmd): Make "command" parameter const.
10069 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10070 deprecated_cmd_warning prototype change.
10071 (undef_cmd_error): Make "cmdtype" parameter const.
10072 (lookup_cmd): Make "line" parameter const.
10073 (deprecated_cmd_warning): Change type of "text" parameter to
10074 pointer to const char, from pointer to pointer to char. Adjust.
10075 (lookup_cmd_composition): Make "text" parameter const.
10076 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10077 parameters const.
10078 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10079 const.
10080 * cli/cli-script.c (validate_comname): Make "tem" local const.
10081 (define_command): New const local "tem_c". Use it in calls to
10082 lookup_cmd.
10083 (document_command): Make "tem" and "comfull" locals const.
10084 (show_user_1): Make "prefix" and "name" parameters const.
10085 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10086 const.
10087 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10088 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10089 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10090 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10091 (complete_on_enum, add_setshow_enum_cmd)
10092 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10093 (add_setshow_filename_cmd, add_setshow_string_cmd)
10094 (add_setshow_string_noescape_cmd)
10095 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10096 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10097 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10098 Change prototypes, constifying strings.
10099 * completer.c (noop_completer, filename_completer): Make "text"
10100 and "prefix" parameters const.
10101 (location_completer, expression_completer)
10102 (complete_line_internal): Make "text" and "prefix" parameters
10103 const and adjust.
10104 (command_completer, signal_completer): Make "text" and "prefix"
10105 parameters const.
10106 * completer.h (noop_completer, filename_completer)
10107 (expression_completer, location_completer, command_completer)
10108 (signal_completer): Change prototypes.
10109 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10110 parameters const.
10111 * cp-abi.c (cp_abi_completer): Likewise.
10112 * expression.h (parse_expression_for_completion): Change
10113 prototype.
10114 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10115 parameters const.
10116 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10117 * infrun.c (handle_completer): Make "text" and "word" parameters
10118 const.
10119 * interps.c (interpreter_completer): Make "text" and "word"
10120 parameters const.
10121 * language.h (struct language_defn)
10122 <la_make_symbol_completion_list>: Make "text" and "word"
10123 parameters const.
10124 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10125 (parse_exp_in_context): Rename to ...
10126 (parse_exp_in_context_1): ... this.
10127 (parse_exp_in_context): Reimplement, with const hack from
10128 parse_exp_1.
10129 (parse_expression_for_completion): Make "string" parameter const.
10130 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10131 to pointer to const char. Adjust.
10132 (print_command_1): Make "exp" parameter const.
10133 (output_command): Rename to ...
10134 (output_command_const): ... this. Make "exp" parameter const.
10135 (output_command): Reimplement.
10136 (x_command): Adjust.
10137 (display_command): Rename "exp" parameter to "arg". New "exp"
10138 local, const version of "arg".
10139 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10140 "cmd_name" local const.
10141 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10142 call.
10143 (cmdpy_completer): Make "text" and "word" parameters const.
10144 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10145 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10146 const.
10147 * remote.c (_initialize_remote): Make "cmd_name" local const.
10148 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10149 parameters const. Adjust.
10150 (completion_list_add_fields): Make "sym_text", "text" and "word"
10151 parameters const.
10152 (struct add_name_data) <sym_text, text, word>: Make fields const.
10153 (default_make_symbol_completion_list_break_on): Make "text" and
10154 "word" parameters const. Adjust locals.
10155 (default_make_symbol_completion_list)
10156 (make_symbol_completion_list, make_symbol_completion_type)
10157 (make_symbol_completion_list_fn): Make "text" and "word"
10158 parameters const.
10159 (make_file_symbol_completion_list): Make "text", "word" and
10160 "srcfile" parameters const. Adjust locals.
10161 (add_filename_to_list): Make "text" and "word" parameters const.
10162 (struct add_partial_filename_data) <text, word>: Make fields
10163 const.
10164 (make_source_files_completion_list): Make "text" and "word"
10165 parameters const.
10166 * symtab.h (default_make_symbol_completion_list_break_on)
10167 (default_make_symbol_completion_list, make_symbol_completion_list)
10168 (make_symbol_completion_type enum type_code)
10169 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10170 (make_source_files_completion_list): Change prototype.
10171 * top.c (execute_command): Adjust to pass pointer to pointer to
10172 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10173 change.
10174 (set_verbose): Make "cmdname" local const.
10175 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10176 and adjust.
10177 (validate_actionline): Make "line" parameter a pointer to const
10178 char, and adjust.
10179 (encode_actions_1): Make "action_exp" local const, and adjust.
10180 (encode_actions): Adjust.
10181 (replace_comma): Delete.
10182 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10183 const, and adjust. Don't frob the action string while splitting
10184 it at commas. Instead, make a copy of each split substring in
10185 turn.
10186 (trace_dump_command): Adjust to validate_actionline prototype
10187 change.
10188 * tracepoint.h (decode_agent_options, decode_agent_options)
10189 (encode_actions, validate_actionline): Change prototypes.
10190 * valprint.h (output_command): Delete declaration.
10191 (output_command_const): Declare.
10192 * value.c (function_destroyer): Cast const away in xfree call.
10193
10194 2013-03-13 Pedro Alves <palves@redhat.com>
10195
10196 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10197 rather than casting 'const char * const *' to 'const char **'.
10198 * ada-lex.l (processInt): Make "trailer" local const. Remove
10199 'const char **' cast.
10200 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10201 locals, and use those as strtol output pointer, instead than doing
10202 invalid casts to from 'const char **' to 'char **'.
10203 (_initialize_demangle): Remove cast.
10204 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10205 locals, and use those as strtol output pointer, instead than doing
10206 invalid casts to from 'const char **' to 'char **'.
10207 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10208 casts.
10209 * stap-probe.c (stap_parse_register_operand)
10210 (stap_parse_single_operand): Likewise.
10211
10212 2013-03-13 Yao Qi <yao@codesourcery.com>
10213
10214 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10215 the last matched 'V' blcok in trace frame.
10216
10217 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10218
10219 * NEWS: Create a new section for the next release branch.
10220 Rename the section of the current branch, now that it has
10221 been cut.
10222
10223 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10224
10225 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10226 * version.in: Bump version to 7.6.50.20130312-cvs.
10227
10228 2013-03-12 Keith Seitz <keiths@redhat.com>
10229
10230 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10231 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10232 Remove temporary copy of input string.
10233 (mi_execute_command_wrapper): Make "cmd" const.
10234 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10235 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10236 Use const strings.
10237 (mi_parse): Make "cmd" const.
10238 Use const strings.
10239 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10240
10241 2013-03-12 Keith Seitz <keiths@redhat.com>
10242
10243 * ada-lang.c (ada_read_renaming_var_value): Pass const
10244 pointer to expression string to parse_exp_1.
10245 (create_excep_cond_exprs): Likewise.
10246 * ax-gdb.c (agent_eval_command_one): Likewise.
10247 (maint_agent_printf_command): Likewise.
10248 Constify much of the string handling/parsing.
10249 * breakpoint.c (set_breakpoint_condition): Pass const
10250 pointer to expression string to parse_exp_1.
10251 (update_watchpoint): Likewise.
10252 (parse_cmd_to_aexpr): Constify string handling.
10253 Pass const pointer to parse_exp_1.
10254 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10255 (find_condition_and_thread): Likewise.
10256 Make TOK const.
10257 (watch_command_1): Make "arg" const.
10258 Constify string handling.
10259 Copy the expression string instead of changing the input
10260 string.
10261 (update_breakpoint_location): Pass const pointer to
10262 parse_exp_1.
10263 * eval.c (parse_and_eval_address): Make "exp" const.
10264 (parse_to_comma_and_eval): Make "expp" const.
10265 (parse_and_eval): Make "exp" const.
10266 * expression.h (parse_expression): Make argument const.
10267 (parse_exp_1): Make first argument const.
10268 * findcmd.c (parse_find_args): Treat "args" as const.
10269 * linespec.c (parse_linespec): Pass const pointer to
10270 linespec_expression_to_pc.
10271 (linespec_expression_to_pc): Make "exp_ptr" const.
10272 * parse.c (parse_exp_1): Make "stringptr" const.
10273 Make a copy of the expression to pass to parse_exp_in_context until
10274 this whole interface can be constified.
10275 (parse_expression): Make "string" const.
10276 * printcmd.c (ui_printf): Treat "arg" as const.
10277 Handle const strings.
10278 * tracepoint.c (validate_actionline): Pass const pointer to
10279 all calls to parse_exp_1.
10280 (encode_actions_1): Likewise.
10281 * value.h (parse_to_comma_and_eval): Make argument const.
10282 (parse_and_eval_address): Likewise.
10283 (parse_and_eval): Likewise.
10284 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10285 (varobj_set_value): Likewise.
10286 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10287 constify string handling.
10288 Pass const pointers to parse_and_eval_address and
10289 parse_to_comman_and_eval.
10290 * cli/cli-utils.c (skip_to_space): Rename to ...
10291 (skip_to_space_const): ... this. Handle const strings.
10292 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10293 skip_to_space_const.
10294 (skip_to_space_const): Declare.
10295 * common/format.c (parse_format_string): Make "arg" const.
10296 Handle const strings.
10297 * common/format.h (parse_format_string): Make "arg" const.
10298 * gdbserver/ax.c (ax_printf): Make "format" const.
10299 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10300 of the expression string.
10301
10302 2013-03-12 Hui Zhu <hui@codesourcery.com>
10303
10304 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10305
10306 2013-03-12 Yao Qi <yao@codesourcery.com>
10307 Hui Zhu <hui@codesourcery.com>
10308
10309 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10310 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10311 DW_OP_deref_size.
10312
10313 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10314
10315 * ada-lex.l (rules): Only recognize 'thread' as a
10316 delimiter when followed by numerals, as for c-exp.y.
10317 Use new rewind_to_char function to rewind the input for
10318 expression-delimiting tokens.
10319 (rewind_to_char): New function.
10320
10321 2013-03-11 Pedro Alves <palves@redhat.com>
10322 Jan Kratochvil <jan.kratochvil@redhat.com>
10323
10324 * configure: Regenerate.
10325 * configure.ac (check dynamic export flag): Link python test with
10326 $PYTHON_LIBS.
10327
10328 2013-03-11 Doug Evans <dje@google.com>
10329 Keith Seitz <keiths@redhat.com>
10330
10331 * linespec.c (find_linespec_symbols): Call find_function_symbols
10332 first, and then call lookup_prefix_sym/find_method.
10333
10334 2013-03-11 Pedro Alves <palves@redhat.com>
10335
10336 * charset.c (convert_between_encodings): Don't cast between
10337 different pointer to pointer types. Instead, make the 'inp' local
10338 be of the type iconv expects.
10339 (wchar_iterate): Don't cast between different pointer to pointer
10340 types. Instead, use new pointer local of the type iconv expects.
10341 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10342 Add new local of type char pointer, and use it to get a
10343 char/string view of the byte buffer, instead of casting between
10344 pointer to pointer types.
10345
10346 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10347
10348 * remote.c (remote_set_trace_buffer_size): Move != operator
10349 to the start of next line to fix an ARI warning.
10350
10351 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10352
10353 * NEWS: Add record changes.
10354
10355 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10356
10357 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10358 the instruction history disassembly.
10359 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10360 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10361
10362 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10363
10364 * Makefile.in (SFILES): Add record-btrace.c
10365 (COMMON_OBS): Add record-btrace.o
10366 * record-btrace.c: New.
10367 * objfiles.c: Include btrace.h.
10368 (free_objfile): call btrace_free_objfile.
10369
10370 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10371
10372 * target.c (target_call_history, target_call_history_from,
10373 target_call_history_range): New.
10374 * target.h (target_ops) <to_call_history, to_call_history_from,
10375 to_call_history_range>: New fields.
10376 (target_call_history, target_call_history_from,
10377 target_call_history_range): New declaration.
10378 * record.c (get_call_history_modifiers, cmd_record_call_history,
10379 record_call_history_size): New.
10380 (_initialize_record): Add the "record function-call-history" command.
10381 Add "set/show record function-call-history-size" commands.
10382 * record.h (record_print_flag): New.
10383
10384 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10385
10386 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10387 to_insn_history_range>: New fields.
10388 (target_insn_history): New.
10389 (target_insn_history_from): New.
10390 (target_insn_history_range): New.
10391 * target.c (target_insn_history): New.
10392 (target_insn_history_from): New.
10393 (target_insn_history_range): New.
10394 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10395 (record_insn_history_size): New.
10396 (get_insn_number): New.
10397 (get_context_size): New.
10398 (no_chunk): New.
10399 (get_insn_history_modifiers): New.
10400 (cmd_record_insn_history): New.
10401 (_initialize_record): Add "set/show record instruction-history-size"
10402 command. Add "record instruction-history" command.
10403
10404 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10405
10406 * record.h (record_disconnect): New.
10407 (record_detach): New.
10408 (record_mourn_inferior): New.
10409 (record_kill): New.
10410 * record-full.c (record_disconnect, record_detach,
10411 record_mourn_inferior, record_kill): Move to...
10412 * record.c: ...here.
10413 (DEBUG): New.
10414 (record_stop): New.
10415 (record_unpush): New.
10416 (cmd_record_stop): Call record_stop. Replace unpush_target
10417 call with record_unpush call.
10418 (record_disconnect, record_detach): Assert that the target
10419 is of record stratum. Call record_unpush, record_stop, and
10420 DEBUG.
10421 (record_mourn_inferior, record_kill): Assert that the target
10422 is of record stratum. Call record_unpush and DEBUG.
10423
10424 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10425
10426 * record-full.h, record-full.c (record_memory_query): Rename
10427 to ...
10428 (record_full_memory_query): ...this. Update all users.
10429 (record_arch_list_add_reg): Rename to ...
10430 (record_full_arch_list_add_reg): ...this. Update all users.
10431 (record_arch_list_add_mem): Rename to ...
10432 (record_full_arch_list_add_mem): ...this. Update all users.
10433 (record_arch_list_add_end): Rename to ...
10434 (record_full_arch_list_add_end): ...this. Update all users.
10435 (record_gdb_operation_disable_set): Rename to ...
10436 (record_full_gdb_operation_disable_set): ...this.
10437 Update all users.
10438
10439 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10440
10441 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10442 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10443 (RECORD_IS_REPLAY): Renamed to ...
10444 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10445 (RECORD_FILE_MAGIC): Renamed to ...
10446 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10447 (record_mem_entry): Renamed to ...
10448 (record_full_mem_entry): ... this. Updated all users.
10449 (record_reg_entry): Renamed to ...
10450 (record_full_reg_entry): ... this. Updated all users.
10451 (record_end_entry): Renamed to ...
10452 (record_full_end_entry): ... this. Updated all users.
10453 (record_type) <record_end, record_reg, record_mem>: Renamed
10454 to ...
10455 (record_full_type) <record_full_end, record_full_reg,
10456 record_full_mem>: ... this. Updated all users.
10457 (record_entry): Renamed to ...
10458 (record_full_entry): ... this. Updated all users.
10459 (record_core_buf_entry): Renamed to ...
10460 (record_full_core_buf_entry): ... this. Updated all users.
10461 (record_core_regbuf): Renamed to ...
10462 (record_full_core_regbuf): ... this. Updated all users.
10463 (record_core_start): Renamed to ...
10464 (record_full_core_start): ... this. Updated all users.
10465 (record_core_end): Renamed to ...
10466 (record_full_core_end): ... this. Updated all users.
10467 (record_core_buf_list): Renamed to ...
10468 (record_full_core_buf_list): ... this. Updated all users.
10469 (record_first): Renamed to ...
10470 (record_full_first): ... this. Updated all users.
10471 (record_list): Renamed to ...
10472 (record_full_list): ... this. Updated all users.
10473 (record_arch_list_head): Renamed to ...
10474 (record_full_arch_list_head): ... this. Updated all users.
10475 (record_arch_list_tail): Renamed to ...
10476 (record_full_arch_list_tail): ... this. Updated all users.
10477 (record_stop_at_limit): Renamed to ...
10478 (record_full_stop_at_limit): ... this. Updated all users.
10479 (record_insn_max_num): Renamed to ...
10480 (record_full_insn_max_num): ... this. Updated all users.
10481 (record_insn_num): Renamed to ...
10482 (record_full_insn_num): ... this. Updated all users.
10483 (record_insn_count): Renamed to ...
10484 (record_full_insn_count): ... this. Updated all users.
10485 (record_ops): Renamed to ...
10486 (record_full_ops): ... this. Updated all users.
10487 (record_core_ops): Renamed to ...
10488 (record_full_core_ops): ... this. Updated all users.
10489 (set_record_cmdlist): Renamed to ...
10490 (set_record_full_cmdlist): ... this. Updated all users.
10491 (show_record_cmdlist): Renamed to ...
10492 (show_record_full_cmdlist): ... this. Updated all users.
10493 (record_cmdlist): Renamed to ...
10494 (record_full_cmdlist): ... this. Updated all users.
10495 (record_beneath_to_resume_ops): Renamed to ...
10496 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10497 (record_beneath_to_resume): Renamed to ...
10498 (record_full_beneath_to_resume): ... this. Updated all users.
10499 (record_beneath_to_wait_ops): Renamed to ...
10500 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10501 (record_beneath_to_wait): Renamed to ...
10502 (record_full_beneath_to_wait): ... this. Updated all users.
10503 (record_beneath_to_store_registers_ops): Renamed to ...
10504 (record_full_beneath_to_store_registers_ops): ... this.
10505 Updated all users.
10506 (record_beneath_to_store_registers): Renamed to ...
10507 (record_full_beneath_to_store_registers): ... this.
10508 Updated all users.
10509 (record_beneath_to_xfer_partial_ops): Renamed to ...
10510 (record_full_beneath_to_xfer_partial_ops): ... this.
10511 Updated all users.
10512 (record_beneath_to_xfer_partial): Renamed to ...
10513 (record_full_beneath_to_xfer_partial): ... this.
10514 Updated all users.
10515 (record_beneath_to_insert_breakpoint): Renamed to ...
10516 (record_full_beneath_to_insert_breakpoint): ... this.
10517 Updated all users.
10518 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10519 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10520 Updated all users.
10521 (record_beneath_to_stopped_data_address): Renamed to ...
10522 (record_full_beneath_to_stopped_data_address): ... this.
10523 Updated all users.
10524 (record_beneath_to_async): Renamed to ...
10525 (record_full_beneath_to_async): ... this. Updated all users.
10526 (record_goto_insn): Renamed to ...
10527 (record_full_goto_insn): ... this. Updated all users.
10528 (record_save): Renamed to ...
10529 (record_full_save): ... this. Updated all users.
10530 (record_reg_alloc): Renamed to ...
10531 (record_full_reg_alloc): ... this. Updated all users.
10532 (record_reg_release): Renamed to ...
10533 (record_full_reg_release): ... this. Updated all users.
10534 (record_mem_alloc): Renamed to ...
10535 (record_full_mem_alloc): ... this. Updated all users.
10536 (record_mem_release): Renamed to ...
10537 (record_full_mem_release): ... this. Updated all users.
10538 (record_end_alloc): Renamed to ...
10539 (record_full_end_alloc): ... this. Updated all users.
10540 (record_end_release): Renamed to ...
10541 (record_full_end_release): ... this. Updated all users.
10542 (record_entry_release): Renamed to ...
10543 (record_full_entry_release): ... this. Updated all users.
10544 (record_list_release): Renamed to ...
10545 (record_full_list_release): ... this. Updated all users.
10546 (record_list_release_following): Renamed to ...
10547 (record_full_list_release_following): ... this.
10548 Updated all users.
10549 (record_list_release_first): Renamed to ...
10550 (record_full_list_release_first): ... this. Updated all users.
10551 (record_arch_list_add): Renamed to ...
10552 (record_full_arch_list_add): ... this. Updated all users.
10553 (record_get_loc): Renamed to ...
10554 (record_full_get_loc): ... this. Updated all users.
10555 (record_check_insn_num): Renamed to ...
10556 (record_full_check_insn_num): ... this. Updated all users.
10557 (record_arch_list_cleanups): Renamed to ...
10558 (record_full_arch_list_cleanups): ... this. Updated all users.
10559 (record_message): Renamed to ...
10560 (record_full_message): ... this. Updated all users.
10561 (record_message_wrapper): Renamed to ...
10562 (record_full_message_wrapper): ... this. Updated all users.
10563 (record_message_wrapper_safe): Renamed to ...
10564 (record_full_message_wrapper_safe): ... this. Updated all users.
10565 (record_gdb_operation_disable): Renamed to ...
10566 (record_full_gdb_operation_disable): ... this. Updated all users.
10567 (record_hw_watchpoint): Renamed to ...
10568 (record_full_hw_watchpoint): ... this. Updated all users.
10569 (record_exec_insn): Renamed to ...
10570 (record_full_exec_insn): ... this. Updated all users.
10571 (record_restore): Renamed to ...
10572 (record_full_restore): ... this. Updated all users.
10573 (record_async_inferior_event_token): Renamed to ...
10574 (record_full_async_inferior_event_token): ... this.
10575 Updated all users.
10576 (record_async_inferior_event_handler): Renamed to ...
10577 (record_full_async_inferior_event_handler): ... this.
10578 Updated all users.
10579 (record_core_open_1): Renamed to ...
10580 (record_full_core_open_1): ... this. Updated all users.
10581 (record_open_1): Renamed to ...
10582 (record_full_open_1): ... this. Updated all users.
10583 (record_open): Renamed to ...
10584 (record_full_open): ... this. Updated all users.
10585 (record_close): Renamed to ...
10586 (record_full_close): ... this. Updated all users.
10587 (record_resume_step): Renamed to ...
10588 (record_full_resume_step): ... this. Updated all users.
10589 (record_resumed): Renamed to ...
10590 (record_full_resumed): ... this. Updated all users.
10591 (record_execution_dir): Renamed to ...
10592 (record_full_execution_dir): ... this. Updated all users.
10593 (record_resume): Renamed to ...
10594 (record_full_resume): ... this. Updated all users.
10595 (record_get_sig): Renamed to ...
10596 (record_full_get_sig): ... this. Updated all users.
10597 (record_sig_handler): Renamed to ...
10598 (record_full_sig_handler): ... this. Updated all users.
10599 (record_wait_cleanups): Renamed to ...
10600 (record_full_wait_cleanups): ... this. Updated all users.
10601 (record_wait_1): Renamed to ...
10602 (record_full_wait_1): ... this. Updated all users.
10603 (record_wait): Renamed to ...
10604 (record_full_wait): ... this. Updated all users.
10605 (record_stopped_by_watchpoint): Renamed to ...
10606 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10607 (record_disconnect): Renamed to ...
10608 (record_full_disconnect): ... this. Updated all users.
10609 (record_detach): Renamed to ...
10610 (record_full_detach): ... this. Updated all users.
10611 (record_mourn_inferior): Renamed to ...
10612 (record_full_mourn_inferior): ... this. Updated all users.
10613 (record_kill): Renamed to ...
10614 (record_full_kill): ... this. Updated all users.
10615 (record_stopped_data_address): Renamed to ...
10616 (record_full_stopped_data_address): ... this. Updated all users.
10617 (record_registers_change): Renamed to ...
10618 (record_full_registers_change): ... this. Updated all users.
10619 (record_store_registers): Renamed to ...
10620 (record_full_store_registers): ... this. Updated all users.
10621 (record_xfer_partial): Renamed to ...
10622 (record_full_xfer_partial): ... this. Updated all users.
10623 (record_breakpoint): Renamed to ...
10624 (record_full_breakpoint): ... this. Updated all users.
10625 (record_breakpoint_p): Renamed to ...
10626 (record_full_breakpoint_p): ... this. Updated all users.
10627 (record_breakpoints): Renamed to ...
10628 (record_full_breakpoints): ... this. Updated all users.
10629 (record_sync_record_breakpoints): Renamed to ...
10630 (record_full_sync_record_breakpoints): ... this.
10631 Updated all users.
10632 (record_init_record_breakpoints): Renamed to ...
10633 (record_full_init_record_breakpoints): ... this.
10634 Updated all users.
10635 (record_insert_breakpoint): Renamed to ...
10636 (record_full_insert_breakpoint): ... this. Updated all users.
10637 (record_remove_breakpoint): Renamed to ...
10638 (record_full_remove_breakpoint): ... this. Updated all users.
10639 (record_can_execute_reverse): Renamed to ...
10640 (record_full_can_execute_reverse): ... this. Updated all users.
10641 (record_get_bookmark): Renamed to ...
10642 (record_full_get_bookmark): ... this. Updated all users.
10643 (record_goto_bookmark): Renamed to ...
10644 (record_full_goto_bookmark): ... this. Updated all users.
10645 (record_async): Renamed to ...
10646 (record_full_async): ... this. Updated all users.
10647 (record_can_async_p): Renamed to ...
10648 (record_full_can_async_p): ... this. Updated all users.
10649 (record_is_async_p): Renamed to ...
10650 (record_full_is_async_p): ... this. Updated all users.
10651 (record_execution_direction): Renamed to ...
10652 (record_full_execution_direction): ... this. Updated all users.
10653 (record_info): Renamed to ...
10654 (record_full_info): ... this. Updated all users.
10655 (record_delete): Renamed to ...
10656 (record_full_delete): ... this. Updated all users.
10657 (record_is_replaying): Renamed to ...
10658 (record_full_is_replaying): ... this. Updated all users.
10659 (record_goto_entry): Renamed to ...
10660 (record_full_goto_entry): ... this. Updated all users.
10661 (record_goto_begin): Renamed to ...
10662 (record_full_goto_begin): ... this. Updated all users.
10663 (record_goto_end): Renamed to ...
10664 (record_full_goto_end): ... this. Updated all users.
10665 (record_goto): Renamed to ...
10666 (record_full_goto): ... this. Updated all users.
10667 (init_record_ops): Renamed to ...
10668 (init_record_full_ops): ... this. Updated all users.
10669 (record_core_resume): Renamed to ...
10670 (record_full_core_resume): ... this. Updated all users.
10671 (record_core_kill): Renamed to ...
10672 (record_full_core_kill): ... this. Updated all users.
10673 (record_core_fetch_registers): Renamed to ...
10674 (record_full_core_fetch_registers): ... this. Updated all users.
10675 (record_core_prepare_to_store): Renamed to ...
10676 (record_full_core_prepare_to_store): ... this. Updated all users.
10677 (record_core_store_registers): Renamed to ...
10678 (record_full_core_store_registers): ... this. Updated all users.
10679 (record_core_xfer_partial): Renamed to ...
10680 (record_full_core_xfer_partial): ... this. Updated all users.
10681 (record_core_insert_breakpoint): Renamed to ...
10682 (record_full_core_insert_breakpoint): ... this. Updated all users.
10683 (record_core_remove_breakpoint): Renamed to ...
10684 (record_full_core_remove_breakpoint): ... this. Updated all users.
10685 (record_core_has_execution): Renamed to ...
10686 (record_full_core_has_execution): ... this. Updated all users.
10687 (init_record_core_ops): Renamed to ...
10688 (init_record_full_core_ops): ... this. Updated all users.
10689 (cmd_record_restore): Renamed to ...
10690 (cmd_record_full_restore): ... this. Updated all users.
10691 (record_save_cleanups): Renamed to ...
10692 (record_full_save_cleanups): ... this. Updated all users.
10693 (cmd_record_start): Renamed to ...
10694 (cmd_record_full_start): ... this. Updated all users.
10695 (set_record_insn_max_num): Renamed to ...
10696 (set_record_full_insn_max_num): ... this. Updated all users.
10697 (set_record_command): Renamed to ...
10698 (set_record_full_command): ... this. Updated all users.
10699 (show_record_command): Renamed to ...
10700 (show_record_full_command): ... this. Updated all users.
10701 (_initialize_record): Renamed to ...
10702 (_initialize_record_full): ... this. Updated all users.
10703
10704 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10705
10706 * record.h: Split into this and ...
10707 * record-full.h: ... this.
10708 * record.c: Split into this and ...
10709 * record-full.c: ... this.
10710 * target.h (target_ops): Add new fields to_info_record,
10711 to_save_record, to_delete_record, to_record_is_replaying,
10712 to_goto_record_begin, to_goto_record_end, to_goto_record.
10713 (target_info_record): New.
10714 (target_save_record): New.
10715 (target_supports_delete_record): New.
10716 (target_delete_record): New.
10717 (target_record_is_replaying): New.
10718 (target_goto_record_begin): New.
10719 (target_goto_record_end): New.
10720 (target_goto_record): New.
10721 * target.c (target_info_record): New.
10722 (target_save_record): New.
10723 (target_supports_delete_record): New.
10724 (target_delete_record): New.
10725 (target_record_is_replaying): New.
10726 (target_goto_record_begin): New.
10727 (target_goto_record_end): New.
10728 (target_goto_record): New.
10729 * record.h: Declare struct cmd_list_element.
10730 (record_cmdlist): New declaration.
10731 (set_record_cmdlist): New declaration.
10732 (show_record_cmdlist): New declaration.
10733 (info_record_cmdlist): New declaration.
10734 (cmd_record_goto): New declaration.
10735 * record.c: Remove unnecessary includes.
10736 Include inferior.h.
10737 (cmd_record_goto): Remove declaration.
10738 (record_cmdlist): Now extern. Initialize.
10739 (set_record_cmdlist): Now extern. Initialize.
10740 (show_record_cmdlist): Now extern. Initialize.
10741 (info_record_cmdlist): Now extern. Initialize.
10742 (find_record_target): New.
10743 (require_record_target): New.
10744 (cmd_record_start): Update.
10745 (cmd_record_delete): Remove target-specific code.
10746 Call target_delete_record.
10747 (cmd_record_stop): Unpush any record target.
10748 (set_record_insn_max_num): Move to record-full.c
10749 (set_record_command): Add comment.
10750 (show_record_command): Add comment.
10751 (info_record_command): Update comment.
10752 Remove target-specific code.
10753 Call the record target's to_info_record.
10754 (cmd_record_start): New.
10755 (cmd_record_goto): Now extern.
10756 Remove target-specific code.
10757 Call target_goto_begin, target_goto_end, or target_goto.
10758 (_initialize_record): Move record target ops initialization to
10759 record-full.c.
10760 Change "record" command help text.
10761 Move "record restore", "record set", and "record show" commands to
10762 record-full.c.
10763 * Makefile.in (SFILES): Add record-full.c.
10764 (HFILES_NO_SRCDIR): Add record-full.h.
10765 (COMMON_OBS): Add record-full.o.
10766 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10767 * arm-tdep.c: Include record-full.h.
10768 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10769 * i386-tdep.c: Include record-full.h.
10770 * infrun.c: Include record-full.h.
10771 * linux-record.c: Include record-full.h.
10772 * moxie-tdep.c: Include record-full.h.
10773 * record-full.c: Include record-full.h.
10774 Change module comment.
10775 (set_record_full_cmdlist): New.
10776 (show_record_full_cmdlist): New.
10777 (record_full_cmdlist): New.
10778 (record_goto_insn): New declaration.
10779 (record_save): New declaration.
10780 (record_check_insn_num): Change query string.
10781 (record_info): New.
10782 (record_delete): New.
10783 (record_is_replaying): New.
10784 (record_goto_entry): New.
10785 (record_goto_begin): New.
10786 (record_goto_end): New.
10787 (record_goto): New.
10788 (init_record_ops): Update.
10789 (init_record_core_ops): Update.
10790 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10791 (cmd_record_start): New.
10792 (set_record_insn_max_num): Moved from record.c
10793 (set_record_full_command): New.
10794 (show_record_full_command): New.
10795 (_initialize_record_full): New.
10796
10797 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10798
10799 * target.h (add_deprecated_target_alias): New.
10800 * target.c (add_deprecated_target_alias): New.
10801
10802 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10803
10804 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10805 and signal.h.
10806 (linux_supports_btrace): Add kernel and
10807 cpuid check.
10808 (kernel_supports_btrace): New function.
10809 (cpu_supports_btrace): New function.
10810 (intel_supports_btrace): New function.
10811
10812 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10813
10814 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10815 * remote.c: Include btrace.h.
10816 (struct btrace_target_info): New struct.
10817 (remote_supports_btrace): New function.
10818 (send_Qbtrace): New function.
10819 (remote_enable_btrace): New function.
10820 (remote_disable_btrace): New function.
10821 (remote_teardown_btrace): New function.
10822 (remote_read_btrace): New function.
10823 (init_remote_ops): Add btrace ops.
10824 (enum <unnamed>): Add btrace packets.
10825 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10826 (_initialize_remote): Add packet configuration for branch tracing.
10827
10828 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10829
10830 * features/btrace.dtd: New file.
10831 * Makefile.in (XMLFILES): Add btrace.dtd.
10832 * btrace.h (parse_xml_btrace): New declaration.
10833 * btrace.c: Include xml-support.h.
10834 (parse_xml_btrace): New function.
10835 (parse_xml_btrace_block): New function.
10836 (block_attributes): New struct.
10837 (btrace_attributes): New struct.
10838 (btrace_children): New struct.
10839 (btrace_elements): New struct.
10840
10841 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10842
10843 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10844 (amd64_linux_enable_btrace): New.
10845 (amd64_linux_disable_btrace): New.
10846 (amd64_linux_teardown_btrace): New.
10847 (_initialize_amd64_linux_nat): Initialize btrace ops.
10848 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10849 (i386_linux_enable_btrace): New.
10850 (i386_linux_disable_btrace): New.
10851 (i386_linux_teardown_btrace): New.
10852 (_initialize_i386_linux_nat): Initialize btrace ops.
10853 * config/i386/linux.mh: Add linux-btrace.o.
10854 * config/i386/linux64.mh: Add linux-btrace.o.
10855
10856 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10857
10858 * common/linux_btrace.h: New file.
10859 * common/linux_btrace.c: New file.
10860 * Makefile.in (SFILES): Add btrace.c.
10861 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10862 (COMMON_OBS): Add btrace.o.
10863 (linux-btrace.o): New rule.
10864
10865 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10866
10867 * target.h: Include btrace.h.
10868 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10869 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10870 * target.c (target_supports_btrace): New function.
10871 (target_enable_btrace): New function.
10872 (target_disable_btrace): New function.
10873 (target_teardown_btrace): New function.
10874 (target_read_btrace): New function.
10875 * btrace.h: New file.
10876 * btrace.c: New file.
10877 * Makefile.in: Add btrace.c.
10878 * gdbthread.h: Include btrace.h.
10879 (struct thread_info): Add btrace field.
10880 * thread.c: Include btrace.h.
10881 (clear_thread_inferior_resources): Call target_teardown_btrace.
10882 * common/btrace-common.h: New file.
10883
10884 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10885
10886 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10887 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10888 kill_status to outer block.
10889
10890 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10891
10892 Fix entry-values if the callee called a noreturn function.
10893 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10894 get_frame_address_in_block. Add new comment.
10895
10896 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10897
10898 Fix entry-values in C++ across CUs.
10899 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10900 lookup_minimal_symbol. Add a comment.
10901 * dwarf2read.c
10902 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10903 DW_AT_linkage_name.
10904
10905 2013-03-08 Yao Qi <yao@codesourcery.com>
10906
10907 * tracepoint.c (_initialize_tracepoint): Indent the code.
10908
10909 2013-03-08 Pedro Alves <palves@redhat.com>
10910
10911 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10912 (parse_find_args, find_command): Change type of pattern buffer
10913 locals to 'gdb_byte *'.
10914
10915 2013-03-08 Stan Shebs <stan@codesourcery.com>
10916 Hafiz Abid Qadeer <abidh@codesourcery.com>
10917
10918 * NEWS: Mention set and show trace-buffer-size commands.
10919 Mention new packet.
10920 * target.h (struct target_ops): New method
10921 to_set_trace_buffer_size.
10922 (target_set_trace_buffer_size): New macro.
10923 * target.c (update_current_target): Set up new method.
10924 * tracepoint.c (trace_buffer_size): New global.
10925 (start_tracing): Send it to the target.
10926 (set_trace_buffer_size): New function.
10927 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10928 * remote.c (remote_set_trace_buffer_size): New function.
10929 (_initialize_remote): Use it.
10930 (QTBuffer:size) New remote command.
10931 (PACKET_QTBuffer_size): New enum.
10932 (remote_protocol_features): Add an entry for
10933 PACKET_QTBuffer_size.
10934
10935 2013-03-08 Tom Tromey <tromey@redhat.com>
10936
10937 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10938 variable.
10939
10940 2013-03-07 Pedro Alves <palves@redhat.com>
10941
10942 * target.c (target_read_stralloc, target_fileio_read_alloc):
10943 *Cast pointer to 'gdb_byte *' in target call.
10944
10945 2013-03-07 Pedro Alves <palves@redhat.com>
10946
10947 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10948 call.
10949
10950 2013-03-07 Keith Seitz <keiths@redhat.com>
10951
10952 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10953 (trace_pass_command): Likewise.
10954 * cli/cli-cmds.c: Include cli/cli-utils.h.
10955 (source_command): Use skip-spaces.
10956 (disassemble_command): Likewise.
10957 * findcmd.c: Include cli/cli-utils.h.
10958 (parse_find_args): Use skip_spaces.
10959 * go32-nat.c: Include cli/cli-utils.h.
10960 (go32_sldt): Use skip_spaces.
10961 (go32_sgdt): Likewise.
10962 (go32_sidt): Likewise.
10963 (go32_pde): Likewise.
10964 (go32_pte): Likewise.
10965 (go32_pte_for_address): Likewise.
10966 * infcmd.c: Include cli/cli-utils.h.
10967 (registers_info): Use skip_spaces.
10968 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10969 (linux_info_proc): Likewise.
10970 * linux-thread-db.c: Include cli/cli-utils.h.
10971 (info_auto_load_libthread_db): Use skip_spaces_const.
10972 * m32r-rom.c: Include cli/cli-utils.h.
10973 (m32r_upload_command): Use skip_spaces.
10974 * maint.c: Include cli/cli-utils.h.
10975 (maintenance_translate_address): Use skip_spaces.
10976 * mi/mi-parse.c: Include cli/cli-utils.h.
10977 (mi_parse_argv): Use skip_spaces.
10978 (mi_parse): Likewise.
10979 * minsyms.c: Include cli/cli-utils.h.
10980 (msymbol_hash_iw): Use skip_spaces_const.
10981 * objc-lang.c: Include cli/cli-utils.h.
10982 (parse_selector): Use skip_spaces.
10983 (parse_method): Likewise.
10984 * python/python.c: Include cli/cli-utils.h.
10985 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10986 (python_command)[HAVE_PYTHON]: Likewise.
10987 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10988 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10989 (m32r_load): Use skip_spaces.
10990 * serial.c: Include cli/cli-utils.h.
10991 (serial_open): Use skip_spaces_const.
10992 * stack.c: Include cli/cli-utils.h.
10993 (parse_frame_specification_1): Use skip_spaces_const.
10994 * symfile.c: Include cli/cli-utils.h.
10995 (set_ext_lang_command): Use skip_spaces.
10996 * symtab.c: Include cli/cli-utils.h.
10997 (rbreak_command): Use skip_spaces.
10998 * thread.c (thread_name_command): Use skip_spaces.
10999 * tracepoint.c (validate_actionline): Use skip_spaces.
11000 (encode_actions_1): Likewise.
11001 (trace_find_range_command): Likewise.
11002 (trace_find_outside_command): Likewise.
11003 (trace_dump_actions): Likewise.
11004
11005 2013-03-07 Pedro Alves <palves@redhat.com>
11006
11007 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11008 * expprint.c (print_subexp_standard): Likewise.
11009 * utils.c (host_char_to_target): Likewise.
11010 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11011 * varobj.c (value_get_print_value): Change type of local to char*.
11012 Cast it gdb_byte * in call to language printer.
11013
11014 2013-03-07 Pedro Alves <palves@redhat.com>
11015
11016 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11017 gdb_byte *'.
11018 (make_wchar_iterator): Remove cast to char*.
11019 (wchar_iterate): Change type of local.
11020
11021 2013-03-07 Pedro Alves <palves@redhat.com>
11022
11023 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11024 for 'regcache->register_status'.
11025
11026 2013-03-07 Pedro Alves <palves@redhat.com>
11027
11028 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11029 int.
11030
11031 2013-03-07 Pedro Alves <palves@redhat.com>
11032
11033 * stap-probe.c (handle_stap_probe): Add cast to char*.
11034
11035 2013-03-07 Pedro Alves <palves@redhat.com>
11036
11037 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11038 RECORD_MSGRCV>: Pass a signed variable to
11039 regcache_raw_read_signed, instead of an unsigned one.
11040
11041 2013-03-07 Pedro Alves <palves@redhat.com>
11042
11043 * remote-notif.c (notif_debug): Change type to int.
11044 * remote-notif.h (notif_debug): Likewise.
11045
11046 2013-03-07 Pedro Alves <palves@redhat.com>
11047
11048 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11049
11050 2013-03-07 Pedro Alves <palves@redhat.com>
11051
11052 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11053 * remote.h (hex2bin, bin2hex): ... here.
11054 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11055
11056 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11057
11058 * utils.c (initialize_utils): Improve doc strings of "set/show
11059 width", "set/show height", and "set/show pagination".
11060
11061 2013-03-06 Keith Seitz <keiths@redhat.com>
11062
11063 * ax-gdb.c (gen_printf): Make FORMAT const.
11064 * ax-gdb.h (gen_printf): Likewise.
11065 * ax-general.c (ax_string): Make STR const.
11066 * ax.h (ax_string): Likewise.
11067
11068 2013-03-06 Doug Evans <dje@google.com>
11069
11070 * elfread.c (elf_symfile_read): Move debugging printf to more
11071 logical location.
11072
11073 2013-03-06 Pedro Alves <palves@redhat.com>
11074
11075 * python/py-utils.c (target_string_to_unicode): Delete function.
11076 * python/python-internal.h (target_string_to_unicode): Delete
11077 declaration.
11078
11079 2013-03-06 Pierre Muller <muller@sourceware.org>
11080
11081 * linespec.c (get_current_search_block): ARI fix, use (void)
11082 for empty parameter list.
11083
11084 2013-03-05 Doug Evans <dje@google.com>
11085
11086 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11087 of old ada_lookup_symbol_list. In !full_search case, don't
11088 search superblocks.
11089 (ada_lookup_symbol_list): Delete arg full_search, all callers
11090 updated. Call ada_lookup_symbol_list_worker.
11091 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11092 * ada-lang.h (ada_lookup_symbol_list): Update.
11093 * language.h (language_defn): Update comment for
11094 la_iterate_over_symbols.
11095 * linespec.c (iterate_over_file_blocks): New function.
11096 (iterate_over_all_matching_symtabs): Call it.
11097 (lookup_prefix_sym): Ditto.
11098 (get_current_search_block): New function.
11099 (get_search_block): Delete.
11100 (find_label_symbols): Call get_current_search_block.
11101 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11102 * symtab.c (iterate_over_symbols): Don't search superblocks.
11103
11104 2013-03-05 Yao Qi <yao@codesourcery.com>
11105
11106 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11107 parameter VAR's type from "unsigned int" to "int".
11108 * command.h (var_zuinteger_unlimited): Update its comments.
11109 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11110
11111 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11112
11113 * NEWS: Mention new target x86_64-*-cygwin*.
11114
11115 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11116
11117 * configure.host: Add x86_64-*-cygwin* as host.
11118 * configure.tgt: Add x86_64-*-cygwin* as target.
11119 * config/i386/cygwin64.mh: New file.
11120
11121 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11122
11123 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11124
11125 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11126
11127 * linespec.c (struct linespec_canonical_name): New.
11128 (struct linespec_state): Change canonical_names type to it.
11129 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11130 xrealloc element size. Initialize the different CANONICAL fields.
11131 (canonical_to_fullform): New.
11132 (filter_results): Use it. Add variables canonical, fullform and
11133 cleanup.
11134 (struct decode_line_2_item, decode_line_2_compare_items): New.
11135 (decode_line_2): Remove variables iter and item_names, add variables
11136 items and items_count. Modify the code for these new variables.
11137
11138 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11139
11140 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11141 calling do_cleanup.
11142
11143 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11144
11145 * tracepoint.c (build_traceframe_info): Add code for byte order.
11146
11147 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11148
11149 * v850-tdep.c: (v850e2_register_name): Revise system register
11150 names to match current V850E2M architecture specifications.
11151 Update register number enum comments too.
11152
11153 2013-03-01 Jiong Wang <jiwang@tilera.com>
11154 Pedro Alves <palves@redhat.com>
11155
11156 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11157 to END_ADDR.
11158 (tilegx_skip_prologue): Limit prologue analysis to section end.
11159
11160 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11161
11162 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11163 use it.
11164
11165 2013-03-01 Pedro Alves <palves@redhat.com>
11166
11167 Use gdb_byte for bytes from the program being debugged.
11168
11169 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11170 Change type of local 'buf' to gdb_byte.
11171 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11172 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11173 * cris-tdep.c (cris_sigcontext_addr)
11174 (cris_sigtramp_frame_unwind_cache): Likewise.
11175 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11176 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11177 Likewise.
11178 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11179 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11180 (hppa32_hpux_search_dummy_call_sequence)
11181 (hppa_hpux_supply_save_state): Likewise.
11182 * hppa-linux-tdep.c (insns_match_pattern)
11183 (hppa_linux_find_global_pointer): Likewise.
11184 * hppa-tdep.c (hppa_in_function_epilogue_p)
11185 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11186 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11187 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11188 (i386fbsd_collect_uthread): Likewise.
11189 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11190 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11191 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11192 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11193 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11194 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11195 (ia64_libunwind_frame_prev_register)
11196 (ia64_libunwind_sigtramp_frame_this_id)
11197 (ia64_find_global_pointer_from_dynamic_section)
11198 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11199 (ia64_unwind_pc): Likewise.
11200 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11201 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11202 (m68hc11_extract_return_value): Likewise.
11203 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11204 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11205 (mep_get_insn, mep_push_dummy_call): Likewise.
11206 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11207 (mips_linux_in_dynsym_stub): Likewise.
11208 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11209 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11210 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11211 to gdb_byte.
11212 * remote-mips.c (mips_set_register): Likewise.
11213 * remote-sim.c (gdbsim_fetch_register): Likewise.
11214 * score-tdep.c (score7_fetch_inst): Change type of parameter
11215 'memblock' and local 'buf' to gdb_byte.
11216 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11217 Change type of local 'buf' to gdb_byte. Adjust.
11218 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11219 to gdb_byte**.
11220 (score7_analyze_prologue): Change type of 'memblock' and
11221 'memblock_ptr' locals to gdb_byte*.
11222 * sh64-tdep.c (sh64_extract_return_value)
11223 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11224 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11225 * solib-pa64.c (pa64_solib_create_inferior_hook)
11226 (pa64_open_symbol_file_object): Remove local 'buf'.
11227 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11228 (som_open_symbol_file_object): Likewise.
11229 * solib-spu.c (spu_current_sos): Likewise.
11230 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11231 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11232 (spu_store_registers): Likewise.
11233 * target.c (debug_print_register): Likewise.
11234 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11235 * xstormy16-tdep.c (xstormy16_store_return_value)
11236 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11237 (xstormy16_find_jmp_table_entry): Likewise.
11238
11239 2013-03-01 Jiong Wang <jiwang@tilera.com>
11240
11241 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11242 (tilegx_gdbarch_init): Install it.
11243
11244 2013-02-28 Tom Tromey <tromey@redhat.com>
11245
11246 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11247 PyLong_Check.
11248
11249 2013-02-28 Doug Evans <dje@google.com>
11250
11251 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11252 * python/python.c (gdbpy_find_pc_line): Ditto.
11253
11254 2013-02-28 Tom Tromey <tromey@redhat.com>
11255
11256 * contrib/excheck.py: New file.
11257 * contrib/exsummary.py: New file.
11258 * contrib/gcc-with-excheck: New file.
11259
11260 2013-02-28 Tom Tromey <tromey@redhat.com>
11261
11262 * python/python.c (gdbpy_print_stack): Call begin_line and
11263 fprintf_filtered inside TRY_CATCH.
11264
11265 2013-02-28 Tom Tromey <tromey@redhat.com>
11266
11267 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11268 inside TRY_CATCH.
11269
11270 2013-02-28 Tom Tromey <tromey@redhat.com>
11271
11272 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11273 frame_object_to_frame_info inside TRY_CATCH.
11274
11275 2013-02-28 Tom Tromey <tromey@redhat.com>
11276
11277 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11278 TRY_CATCH.
11279
11280 2013-02-28 Tom Tromey <tromey@redhat.com>
11281
11282 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11283
11284 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11285
11286 * windows-nat.c: Throughout, fix format strings and casts of
11287 printf-like functions to avoid type related warnings on all
11288 platforms.
11289 (handle_output_debug_string): Fetch context information address
11290 from debug string using string_to_core_addr.
11291
11292 2013-02-27 Jiong Wang <jiwang@tilera.com>
11293
11294 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11295 * regformats/reg-tilegx32.dat: New.
11296
11297 2013-02-27 Jiong Wang <jiwang@tilera.com>
11298
11299 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11300
11301 2013-02-27 Jiong Wang <jiwang@tilera.com>
11302
11303 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11304
11305 2013-02-27 Yao Qi <yao@codesourcery.com>
11306 Pedro Alves <palves@redhat.com>
11307
11308 * tracepoint.c (tfile_trace_find): For tfind
11309 pc/tp/range/outside, look for the next trace frame instead of
11310 always starting from frame 0.
11311
11312 2013-02-26 Anthony Green <green@moxielogic.com>
11313
11314 * configure.tgt: Add support for moxie-*-rtems* target.
11315
11316 2013-02-25 Pedro Alves <palves@redhat.com>
11317
11318 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11319 warning text.
11320
11321 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11322
11323 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11324 if $fp is used as the virtual frame pointer.
11325
11326 2013-02-23 Alan Modra <amodra@gmail.com>
11327
11328 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11329 symbol size.
11330 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11331 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11332 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11333 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11334
11335 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11336
11337 Code cleanup.
11338 * elfread.c (build_id_bfd_get): Make the return type const.
11339 (build_id_verify): Make the check parameter const.
11340 (build_id_to_debug_filename): Make the build_id parameter and variable
11341 data const.
11342 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11343
11344 2013-02-21 Alan Modra <amodra@gmail.com>
11345
11346 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11347
11348 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11349
11350 Add a new method 'disassemble' to gdb.Architecture class.
11351 * python/py-arch.c (archpy_disassmble): Implementation of the
11352 new method gdb.Architecture.disassemble.
11353 (arch_object_methods): Add entry for the new method.
11354
11355 2013-02-20 Jiong Wang <jiwang@tilera.com>
11356
11357 * MAINTAINERS (Write After Approval): Add myself to the list.
11358
11359 2013-02-19 Pedro Alves <palves@redhat.com>
11360
11361 Garbage collect 'struct monitor_ops'::load_routine.
11362
11363 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11364 * monitor.c (monitor_load): No longer call
11365 current_monitor->load_routine.
11366 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11367 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11368 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11369
11370 2013-02-19 Pedro Alves <palves@redhat.com>
11371
11372 PR gdb/15161
11373
11374 Harmonize with generic_load.
11375
11376 * monitor.c: Include "readline/readline.h".
11377 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11378 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11379 long/strtol for the 'load_offset' local. Error out if no argument
11380 is given or if too many arguments are given. Tilde expand the
11381 passed in file name.
11382
11383 2013-02-19 Kai Tietz <ktietz@redhat.com>
11384
11385 PR gdb/15161
11386 * symfile.c (load_section_data): Change type of load_offset
11387 to CORE_ADDR.
11388 (generic_load): User strtoulst instead of strtoul for conversion
11389 of load_offset.
11390
11391 2013-02-19 Jiong Wang <jiwang@tilera.com>
11392
11393 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11394 for return address, "lr" register, saved on stack.
11395 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11396 after we invoke tilegx_analyze_prologue.
11397
11398 2013-02-19 Jiong Wang <jiwang@tilera.com>
11399
11400 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11401
11402 2013-02-19 Jiong Wang <jiwang@tilera.com>
11403
11404 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11405
11406 2013-02-19 Jiong Wang <jiwang@tilera.com>
11407
11408 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11409 (tilegx_write_pc): New function.
11410 (tilegx_cannot_reference_register): Return zero if REGNO
11411 is TILEGX_FAULTNUM_REGNUM.
11412 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11413 (tilegx_register_name): Add handling of "faultnum" register.
11414 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11415 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11416 handling of TILEGX_FAULTNUM_REGNUM.
11417 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11418
11419 2013-02-19 Jiong Wang <jiwang@tilera.com>
11420
11421 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11422 should be aligned to 64bit.
11423
11424 2013-02-19 Kai Tietz <ktietz@redhat.com>
11425
11426 * windows-nat.c (windows_xfer_memory): Fix debug-output
11427 for LLP64.
11428
11429 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11430
11431 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11432 Don't check DSP register number if HAVE_DSP is not set.
11433
11434 2013-02-19 Alan Modra <amodra@gmail.com>
11435
11436 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11437 throughout file instead.
11438 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11439 Don't xmalloc return value.
11440 (build_id_verify): Similarly. Don't xfree.
11441 (build_id_to_debug_filename): Update.
11442 (find_separate_debug_file_by_buildid): Update, don't xfree.
11443
11444 2013-02-18 Tom Tromey <tromey@redhat.com>
11445
11446 PR gdb/15102:
11447 * dwarf2read.c (read_subrange_type): Use result of
11448 'check_typedef'.
11449
11450 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11451
11452 * frame.c: Remove one extra white space after #include
11453 directive.
11454
11455 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11456
11457 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11458
11459 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11460
11461 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11462 and dir commands into an if block.
11463
11464 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11465
11466 * python/py-breakpoint (struct pybp_code): Use int instead of
11467 enum type_code.
11468
11469 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11470 Hafiz Abid Qadeer <abidh@codesourcery.com>
11471
11472 * NEWS: Mention new field "trace-file".
11473 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11474 (tfile_open): Record the trace file's filename in the trace
11475 status.
11476 (tfile_files_info): Mention the name of the trace file.
11477 Check the "filename" field explicitely.
11478 (trace_status_command): Explicitely check "filename" field.
11479 (trace_find_command): Ditto.
11480 (trace_find_pc_command): Ditto.
11481 (trace_find_tracepoint_command): Ditto.
11482 (trace_find_line_command): Ditto.
11483 (trace_find_range_command): Ditto.
11484 (trace_find_outside_command): Ditto.
11485 * tracepoint.h (struct trace_status) <from_file>: Rename it
11486 to "filename" and make it hold the trace file's filename
11487 instead of a boolean.
11488 * remote.c (remote_get_trace_status): Initialize "filename"
11489 field with NULL instead of 0.
11490
11491 2013-02-15 Yao Qi <yao@codesourcery.com>
11492
11493 * remote.c: Fix a typo.
11494
11495 2013-02-14 Pierre Muller <muller@sourceware.org>
11496
11497 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11498
11499 2013-02-14 Pedro Alves <palves@redhat.com>
11500
11501 * utils.c (savestring): Don't #undef it. Move function to
11502 common/common-utils.c.
11503 * common/common-utils.c: Include gdb_string.h.
11504 (savestring): Move here from utils.c.
11505 * common/common-utils.h (savestring): Declare.
11506
11507 2013-02-14 Pedro Alves <palves@redhat.com>
11508
11509 * utils.c (savestring): Rename parameter 'size' to 'len'.
11510
11511 2013-02-14 Pedro Alves <palves@redhat.com>
11512 Yufeng Zhang <yufeng.zhang@arm.com>
11513
11514 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11515 (aarch64_inferior_data, struct aarch64_inferior_data):
11516 Delete.
11517 (struct aarch64_process_info): New.
11518 (aarch64_process_list): New global.
11519 (aarch64_find_process_pid, aarch64_add_process)
11520 (aarch64_process_info_get): New functions.
11521 (aarch64_inferior_data_get): Delete.
11522 (aarch64_process_info_get): New function.
11523 (aarch64_forget_process): New function.
11524 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11525 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11526 aarch64_get_debug_reg_state.
11527 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11528 instead of linux_nat_iterate_watchpoint_lwps.
11529 (aarch64_linux_new_fork): New function.
11530 (aarch64_linux_child_post_startup_inferior): Use
11531 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11532 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11533 (aarch64_linux_remove_hw_breakpoint)
11534 (aarch64_handle_aligned_watchpoint)
11535 (aarch64_handle_unaligned_watchpoint)
11536 (aarch64_linux_insert_watchpoint)
11537 (aarch64_linux_remove_watchpoint)
11538 (aarch64_linux_stopped_data_address): Adjust to pass the current
11539 process id to aarch64_debug_reg_state.
11540 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11541 linux_nat_new_fork hook, and aarch64_forget_process as
11542 linux_nat_forget_process hook; remove the call to
11543 register_inferior_data_with_cleanup.
11544
11545 2013-02-14 Pedro Alves <palves@redhat.com>
11546
11547 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11548 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11549 lval_memory.
11550
11551 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11552 Hafiz Abid Qadeer <abidh@codesourcery.com>
11553
11554 * tracepoint.h (validate_trace_state_variable_name): Declare.
11555 * tracepoint.c (validate_trace_state_variable_name): New.
11556 (trace_variable_command): Parse the trace state variable's name
11557 without using parse_expression. Do several validations.
11558 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11559 trace state variable's name with parse_expression. Validate it.
11560
11561 2013-02-14 Yao Qi <yao@codesourcery.com>
11562
11563 * infcmd.c (breakpoint_proceeded): Remove it.
11564
11565 2013-02-14 Yao Qi <yao@codesourcery.com>
11566
11567 * tracepoint.c (end_actions_pseudocommand): Make it static.
11568 (while_stepping_pseudocommand): Likewise.
11569 * tracepoint.h (end_actions_pseudocommand): Remove the
11570 declaration.
11571 (while_stepping_pseudocommand): Likewise.
11572
11573 2013-02-14 Yao Qi <yao@codesourcery.com>
11574
11575 * cli/cli-decode.c (help_cmd): Remove the declaration of
11576 "cmdlist".
11577 (help_all): Likewise.
11578
11579 2013-02-13 Pedro Alves <palves@redhat.com>
11580
11581 * amd64-linux-nat.c (update_debug_registers_callback):
11582 Update comment.
11583 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11584 iterate_over_lwps.
11585 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11586 i386_debug_reg_state.
11587 (amd64_linux_new_fork): New function.
11588 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11589 linux_nat_new_fork hook, and i386_forget_process as
11590 linux_nat_forget_process hook.
11591 * i386-linux-nat.c (update_debug_registers_callback):
11592 Update comment.
11593 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11594 iterate_over_lwps.
11595 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11596 i386_debug_reg_state.
11597 (i386_linux_new_fork): New function.
11598 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11599 linux_nat_new_fork hook, and i386_forget_process as
11600 linux_nat_forget_process hook.
11601 * i386-nat.c (i386_init_dregs): Delete.
11602 (i386_inferior_data, struct i386_inferior_data):
11603 Delete.
11604 (struct i386_process_info): New.
11605 (i386_process_list): New global.
11606 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11607 New functions.
11608 (i386_inferior_data_get): Delete.
11609 (i386_process_info_get): New function.
11610 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11611 (i386_forget_process): New function.
11612 (i386_cleanup_dregs): Rewrite.
11613 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11614 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11615 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11616 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11617 to i386_debug_reg_state.
11618 (i386_use_watchpoints): Don't register inferior data.
11619 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11620 adjust comment.
11621 (i386_forget_process): Declare.
11622 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11623 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11624 New static globals.
11625 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11626 (add_initial_lwp): New, factored out from ...
11627 (add_lwp): ... this. Don't check the number of lwps before
11628 calling linux_nat_new_thread.
11629 (linux_nat_iterate_watchpoint_lwps): Delete.
11630 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11631 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11632 forks and vforks.
11633 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11634 initial lwp.
11635 (linux_nat_kill, linux_nat_mourn_inferior): Call
11636 linux_nat_forget_process.
11637 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11638 (linux_nat_forget_process): New functions.
11639 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11640 type.
11641 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11642 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11643 types.
11644 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11645 (linux_nat_forget_process): New declarations.
11646
11647 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11648 (amd64fbsd_mourn_inferior): New function.
11649 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11650 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11651
11652 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11653
11654 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11655 Adding _().
11656
11657 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11658
11659 * aarch64-linux-nat.c (debug_reg_change_callback)
11660 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11661 %s and phex().
11662
11663 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11664
11665 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11666 with LONGEST.
11667
11668 2013-02-13 Pedro Alves <palves@redhat.com>
11669 Hafiz Abid Qadeer <abidh@codesourcery.com>
11670
11671 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11672
11673 2013-02-12 Tom Tromey <tromey@redhat.com>
11674
11675 PR symtab/11464:
11676 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11677 NAME return.
11678 (classify_inner_name): Remove 'first_name' argument, add
11679 'context'. Remove unused variable.
11680 (yylex): Explicitly maintain the context type. Exit loop earlier
11681 if NAME result is seen.
11682
11683 2013-02-12 Pedro Alves <palves@redhat.com>
11684
11685 * amd64-darwin-tdep.c: Add (C) after Copyright.
11686 * cli/cli-cmds.h: Ditto.
11687 * cli/cli-decode.c: Ditto.
11688 * cli/cli-decode.h: Ditto.
11689 * cli/cli-dump.c: Ditto.
11690 * cli/cli-dump.h: Ditto.
11691 * cli/cli-interp.c: Ditto.
11692 * cli/cli-logging.c: Ditto.
11693 * cli/cli-script.c: Ditto.
11694 * cli/cli-script.h: Ditto.
11695 * cli/cli-setshow.c: Ditto.
11696 * cli/cli-setshow.h: Ditto.
11697 * cli/cli-utils.c: Ditto.
11698 * cli/cli-utils.h: Ditto.
11699 * config/alpha/nm-osf3.h: Ditto.
11700 * config/djgpp/djconfig.sh: Ditto.
11701 * config/i386/nm-fbsd.h: Ditto.
11702 * config/i386/nm-i386gnu.h: Ditto.
11703 * config/nm-linux.h: Ditto.
11704 * config/nm-nto.h: Ditto.
11705 * config/rs6000/nm-rs6000.h: Ditto.
11706 * config/sparc/nm-sol2.h: Ditto.
11707 * darwin-nat-info.c: Ditto.
11708 * dfp.c: Ditto.
11709 * dfp.h: Ditto.
11710 * gdb-demangle.h: Ditto.
11711 * i386-darwin-nat.c: Ditto.
11712 * i386-darwin-tdep.c: Ditto.
11713 * linux-fork.h: Ditto.
11714 * m32c-tdep.c: Ditto.
11715 * microblaze-linux-tdep.c: Ditto.
11716 * microblaze-rom.c: Ditto.
11717 * microblaze-tdep.c: Ditto.
11718 * microblaze-tdep.h: Ditto.
11719 * mips-linux-tdep.h: Ditto.
11720 * ppc-ravenscar-thread.c: Ditto.
11721 * ppc-ravenscar-thread.h: Ditto.
11722 * prologue-value.c: Ditto.
11723 * prologue-value.h: Ditto.
11724 * ravenscar-thread.c: Ditto.
11725 * ravenscar-thread.h: Ditto.
11726 * sparc-ravenscar-thread.c: Ditto.
11727 * sparc-ravenscar-thread.h: Ditto.
11728 * tilegx-linux-tdep.c: Ditto.
11729 * unwind_stop_reasons.def: Ditto.
11730 * windows-nat.h: Ditto.
11731 * xtensa-linux-tdep.c: Ditto.
11732 * xtensa-xtregs.c: Ditto.
11733 * regformats/regdat.sh: Ditto.
11734 * regformats/regdef.h: Ditto.
11735
11736 2013-02-12 Pedro Alves <palves@redhat.com>
11737
11738 * break-catch-sig.c: Update copyright years.
11739
11740 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11741
11742 Add support for a destructor for ui_out data and use it to
11743 provide a ui_out destructor.
11744 * ui-out.h: Declare the new ui_out destructor.
11745 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11746 * ui-out.c (default_data_destroy): Add a default data destructor
11747 which does nothing.
11748 (default_ui_out_impl): Set the new data_destroy field to
11749 default_data_destroy
11750 (uo_data_destroy): Local function which invokes the data
11751 destructor if present.
11752 (clear_table): Local function which clears the table data of a
11753 ui_out object.
11754 (ui_out_destroy): Public function which frees a ui_out object.
11755 (ui_out_table_end): Use the new clear_table function.
11756 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11757 NULL.
11758 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11759 to NULL.
11760
11761 2013-02-11 Doug Evans <dje@google.com>
11762
11763 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11764 (printf_decfloat): New function. Broken out from ui_printf.
11765 Remove unnecessary code to shift the entire format string down.
11766 (printf_pointer): New function.
11767 (ui_printf): Code to print C strings, wide C strings, decfloats,
11768 and pointers moved to separate functions.
11769
11770 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11771
11772 * valops.c (value_assign): Handling bitfield offset in
11773 `lval_internalvar_component' case.
11774
11775 2013-02-08 Doug Evans <dje@google.com>
11776
11777 * common/format.c (parse_format_string): Fix whitespace.
11778
11779 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11780
11781 * stack.c (return_command): Work around uninitialized variable
11782 warning.
11783
11784 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11785
11786 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11787 number of the registers from 36 to 34.
11788
11789 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11790
11791 * NEWS: Mention new AArch64 native and target support.
11792
11793 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11794
11795 * MAINTAINERS (Write After Approval): Add myself.
11796
11797 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11798 Marcus Shawcroft <marcus.shawcroft@arm.com>
11799 Nigel Stephens <nigel.stephens@arm.com>
11800 Yufeng Zhang <yufeng.zhang@arm.com>
11801
11802 * aarch64-linux-nat.c: New file.
11803 * config/aarch64/linux.mh: New file.
11804 * configure.host: Add AArch64.
11805 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11806
11807 2013-02-07 Doug Evans <dje@google.com>
11808
11809 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11810 disassemble command.
11811
11812 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11813
11814 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11815 set_gdbarch_fetch_tls_load_module_address.
11816
11817 2013-02-06 David S. Miller <davem@davemloft.net>
11818
11819 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11820 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11821 * value.c (struct_return_convention): New function.
11822 (using_struct_return): Implement in terms of struct_return_convention.
11823 * value.h (struct_return_convention): Declare.
11824 * stack.c (return_command): Allow successful overriding of the return
11825 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11826
11827 2013-02-06 Tom Tromey <tromey@redhat.com>
11828
11829 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11830 outside of TRY_CATCH.
11831
11832 2013-02-06 Yao Qi <yao@codesourcery.com>
11833
11834 * mi/mi-interp.c: Include "tracepoint.h".
11835 (mi_tsv_modified): Declare.
11836 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11837 (mi_interpreter_init): Call observer_attach_tsv_modified.
11838 (mi_tsv_modified): New.
11839 (mi_tsv_created, mi_tsv_deleted): Update.
11840 * tracepoint.c (trace_variable_command): Call
11841 observer_notify_tsv_modified if the initial value of tsv is
11842 changed.
11843 (delete_trace_state_variable): Call
11844 observer_notify_tsv_deleted earlier.
11845 (trace_variable_command): Caller update.
11846 (create_tsv_from_upload): Likewise.
11847 * observer.sh: Declare "struct trace_state_variable".
11848
11849 * NEWS: Mention the new MI notification "=tsv-modified".
11850
11851 2013-02-05 Doug Evans <dje@google.com>
11852
11853 * completer.c (location_completer): Fix typo in comment.
11854
11855 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11856
11857 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11858 ADDRESS sorted.
11859
11860 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11861
11862 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11863 Refactor if statement to avoid trailing || operator.
11864
11865 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11866
11867 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11868
11869 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11870
11871 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11872 * configure.host: Add powerpc*-*-freebsd* target.
11873 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11874 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11875 * config/powerpc/fbsd.mh: New file.
11876
11877 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11878 Denys Vlasenko <dvlasenk@redhat.com>
11879 Pedro Alves <palves@redhat.com>
11880
11881 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11882 (struct elf_internal_linux_prpsinfo): Forward declare.
11883 * gdbarch.h, gdbarch.c: Regenerate.
11884 * linux-tdep.c: Include `cli/cli-utils.h'.
11885 (linux_fill_prpsinfo): New function.
11886 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11887 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11888 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11889 depending on gdbarch pointer bitness.
11890 * ppc-linux-tdep.c: Include elf-bfd.h.
11891 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11892 on 32-bit.
11893
11894 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11895 Marcus Shawcroft <marcus.shawcroft@arm.com>
11896 Nigel Stephens <nigel.stephens@arm.com>
11897 Yufeng Zhang <yufeng.zhang@arm.com>
11898
11899 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11900
11901 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11902 Marcus Shawcroft <marcus.shawcroft@arm.com>
11903 Nigel Stephens <nigel.stephens@arm.com>
11904 Yufeng Zhang <yufeng.zhang@arm.com>
11905
11906 * aarch64-newlib-tdep.c: New file.
11907 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11908 aarch64*-*-elf.
11909 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11910 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11911 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11912 * osabi.c (gdb_osabi_names): Add "Newlib".
11913
11914 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11915 Marcus Shawcroft <marcus.shawcroft@arm.com>
11916 Nigel Stephens <nigel.stephens@arm.com>
11917 Yufeng Zhang <yufeng.zhang@arm.com>
11918
11919 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11920 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11921 * aarch64-linux-tdep.c: New file.
11922 * aarch64-linux-tdep.h: New file.
11923 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11924 * configure.tgt: Add aarch64-none-linux-gnu.
11925
11926 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11927 Marcus Shawcroft <marcus.shawcroft@arm.com>
11928 Nigel Stephens <nigel.stephens@arm.com>
11929 Yufeng Zhang <yufeng.zhang@arm.com>
11930
11931 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11932 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11933 (ALLDEPFILES): Add aarch64-tdep.c.
11934 * aarch64-tdep.c: New file.
11935 * aarch64-tdep.h: New file.
11936 * configure.tgt: Add AArch64.
11937 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11938 (aarch64-expedite): New definition.
11939 * features/aarch64-core.xml: New file.
11940 * features/aarch64-fpu.xml: New file.
11941 * features/aarch64-without-fpu.c: New file (generated).
11942 * features/aarch64-without-fpu.xml: New file.
11943 * features/aarch64.c: New file (generated).
11944 * features/aarch64.xml: New file.
11945 * regformats/aarch64-without-fpu.dat: New file (generated).
11946 * regformats/aarch64.dat: New file (generated).
11947
11948 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11949
11950 * contrib/expect-read1.c: New file.
11951 * contrib/expect-read1.sh: New file.
11952
11953 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11954
11955 * dwarf2read.c (file_file_name): New function with code from
11956 file_full_name.
11957 (file_full_name): Move most of the code to file_file_name.
11958 (macro_start_file): Rename variable full_name to file_name and use
11959 file_file_name for it. Add comp_dir parameter to new_macro_table.
11960 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11961 macro_source_file->filename access by macro_source_fullname call.
11962 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11963 caller.
11964 * macrotab.c (struct macro_table): New field comp_dir.
11965 (macro_include): New variables link_fullname and source_fullname.
11966 Replace any macro_source_file->filename access by macro_source_fullname
11967 call.
11968 (macro_lookup_inclusion): Remove the partial filenames checking code.
11969 (check_for_redefinition): New variables source_fullname and
11970 found_key_fullname. Replace any macro_source_file->filename access by
11971 macro_source_fullname call.
11972 (macro_undef): New variables source_fullname and key_fullname. Replace
11973 any macro_source_file->filename access by macro_source_fullname call.
11974 (macro_lookup_definition): New variables retval and source_fullname.
11975 Replace any macro_source_file->filename access by macro_source_fullname
11976 call.
11977 (foreach_macro): New variable key_fullname. Replace any
11978 macro_source_file->filename access by macro_source_fullname call.
11979 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11980 macro_source_file->filename access by macro_source_fullname call.
11981 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11982 (macro_source_fullname): New function.
11983 * macrotab.h (struct macro_source_file): Extent the filename field
11984 comment.
11985 (new_macro_table): New parameter comp_dir, add a comment for it.
11986 (macro_source_fullname): new declaration.
11987
11988 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11989
11990 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11991 this_real_name to outer block. Use it also for
11992 compare_filenames_for_search.
11993 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11994 with dw2_get_real_path for file_matcher, considering also
11995 BASENAMES_MAY_DIFFER.
11996 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11997
11998 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11999
12000 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12001 to the file_matcher parameter. Pass 0 to it.
12002 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12003 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12004 NULL psymtab_to_fullname result.
12005 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12006 an expected filename instead.
12007 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12008 file_matcher parameter. Call also psymtab_to_fullname, after newly
12009 considering BASENAMES_MAY_DIFFER.
12010 * source.c (rewrite_source_path): Remove static.
12011 * source.h (rewrite_source_path): New declaration.
12012 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12013 the expand_symtabs_matching field. Comment it.
12014 * symtab.c (file_matches): New function comment. Add parameter
12015 basenames, implement it.
12016 (search_symbols_file_matches): Add basenames parameter. Update the
12017 file_matches caller.
12018 (search_symbols): Match FILES also against symtab_to_fullname.
12019 Optimize it for BASENAMES_MAY_DIFFER.
12020
12021 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12022
12023 * source.c (print_source_lines_base): Print for TUI also "fullname".
12024 * tui/tui-data.c (init_content_element): Change tui_locator_element
12025 field to full_name.
12026 * tui/tui-data.h (struct tui_locator_element): Likewise.
12027 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12028 tui_update_locator_filename calls to tui_update_locator_fullname.
12029 Replace symtab->filename refererence by symtab_to_fullname call.
12030 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12031 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12032 field to full_name. Replace symtab->filename refererence by
12033 symtab_to_fullname call.
12034 (tui_show_symtab_source): Rename parameter to fullname. Change
12035 tui_locator_element field to full_name.
12036 * tui/tui-stack.c: Include source.h.
12037 (tui_set_locator_filename): Rename the declaration to ...
12038 (tui_set_locator_fullname): ... here. Rename its parameter to
12039 fullname, updates its comment.
12040 (tui_set_locator_info): Rename its parameter to fullname.
12041 (tui_set_locator_filename): Rename the definition to ...
12042 (tui_set_locator_fullname): ... here. Rename its parameter to
12043 fullname, updates its comment. Change tui_locator_element field to
12044 full_name.
12045 (tui_set_locator_info): Rename its parameter to fullname.
12046 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12047 (tui_update_locator_filename): Rename to ...
12048 (tui_update_locator_fullname): ... here. Rename callee to
12049 tui_set_locator_fullname.
12050 (tui_show_frame_info): Replace symtab->filename refererence by
12051 symtab_to_fullname call.
12052 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12053 (tui_update_locator_fullname): ... here.
12054 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12055 tui_update_locator_fullname. Replace symtab->filename refererence by
12056 symtab_to_fullname call.
12057 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12058 Rename the callee to tui_update_locator_fullname.
12059 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12060
12061 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12062
12063 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12064 by symtab_to_filename_for_display calls.
12065 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12066 (clear_command): New variable sal_fullname, initialize it. Replace
12067 compare_filenames_for_search by filename_cmp with sal_fullname.
12068 (say_where, update_static_tracepoint): Replace symtab->filename
12069 refererences by symtab_to_filename_for_display calls.
12070 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12071 Likewise.
12072 * dwarf2read.c: Include source.h.
12073 (fixup_go_packaging): Replace symtab->filename refererences by
12074 symtab_to_filename_for_display calls.
12075 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12076 Replace symtab->filename refererences by symtab_to_filename_for_display
12077 calls.
12078 (create_sals_line_offset, convert_linespec_to_sals): New variable
12079 fullname, initialize it, replace symtab->filename reference by the
12080 variable.
12081 * linux-fork.c: Include source.h.
12082 (info_checkpoints_command): Replace symtab->filename refererences by
12083 symtab_to_filename_for_display calls.
12084 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12085 by symtab_to_filename_for_display calls.
12086 * mdebugread.c: Include source.h.
12087 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12088 symtab_to_filename_for_display calls.
12089 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12090 (mi_cmd_file_list_exec_source_files): Likewise.
12091 * printcmd.c: Include source.h.
12092 (build_address_symbolic): Replace symtab->filename refererences by
12093 symtab_to_filename_for_display calls.
12094 * psymtab.c (partial_map_symtabs_matching_filename)
12095 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12096 with psymtab_to_fullname.
12097 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12098 by symtab_to_filename_for_display calls.
12099 (stpy_get_filename): New variable filename, initialize it, use instead
12100 of symtab->filename refererences.
12101 (salpy_str): Make variable filename const char *. Replace
12102 symtab->filename refererences by symtab_to_filename_for_display calls.
12103 * skip.c: Include source.h and filenames.h.
12104 (skip_file_command): Remove const from the symtab variable. Replace
12105 symtab->filename refererences by symtab_to_fullname call.
12106 (function_name_is_marked_for_skip): New variables searched_for_fullname
12107 and fullname. Use them to search also with symtab's fullname.
12108 * source.c (find_source_lines): Replace symtab->filename refererences
12109 by symtab_to_filename_for_display calls.
12110 (print_source_lines_base): New variable filename, use it instead of
12111 symtab->filename. Replace symtab->filename refererences by
12112 symtab_to_filename_for_display calls.
12113 (line_info, forward_search_command): Replace symtab->filename
12114 refererences by symtab_to_filename_for_display calls.
12115 (reverse_search_command): Replace symtab->filename refererences by
12116 symtab_to_filename_for_display calls. New variable filename for it.
12117 * stack.c (frame_info): Likewise.
12118 * symmisc.c: Include source.h.
12119 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12120 (maintenance_info_symtabs): Replace symtab->filename refererences by
12121 symtab_to_filename_for_display calls.
12122 * symtab.c (iterate_over_some_symtabs): Call
12123 compare_filenames_for_search also with symtab_to_fullname.
12124 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12125 symtab->filename refererences by symtab_to_filename_for_display calls.
12126 (find_line_symtab): Replace symtab->filename refererences by
12127 symtab_to_filename_for_display calls.
12128 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12129 (print_symbol_info): Make the last parameter const char *. New
12130 variable s_filename. Use it in the function.
12131 (symtab_symbol_info): Make the last_filename variable const char *.
12132 Replace symtab->filename refererences by symtab_to_filename_for_display
12133 calls.
12134 (rbreak_command): New variable fullname. Use it. Replace
12135 symtab->filename refererence by symtab_to_filename_for_display call.
12136 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12137 (print_one_static_tracepoint_marker): Replace symtab->filename
12138 refererences by symtab_to_filename_for_display calls.
12139 * tui/tui-source.c (tui_set_source_content): New variables filename and
12140 s_filename. Replace symtab->filename refererences by this variable.
12141 Replace other symtab->filename refererences by
12142 symtab_to_filename_for_display calls.
12143
12144 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12145 Jan Kratochvil <jan.kratochvil@redhat.com>
12146
12147 Add a new variable that controls a way in which filenames are
12148 displayed.
12149 * NEWS (set filename-display): New entry.
12150 * source.c (filename_display_basename, filename_display_relative)
12151 (filename_display_absolute, filename_display_kind_names)
12152 (filename_display_string, show_filename_display_string)
12153 (symtab_to_filename_for_display): New.
12154 (_initialize_source): Added initialization of 'filename-display'
12155 variable.
12156 * source.h (symtab_to_filename_for_display): Added declaration.
12157 * stack.c (print_frame): Added new variable and calling of a new
12158 function and condition with this variable. Changed third argument of
12159 calling of a function.
12160
12161 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12162
12163 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12164 Rename field reference filename to fullname.
12165 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12166 fullname. New comment for it.
12167 * tui/tui-source.c (tui_set_source_content): Rename field reference
12168 filename to fullname. Initialize field by symtab_to_fullname now.
12169 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12170 reference filename to fullname. Use symtab_to_fullname during
12171 comparison.
12172
12173 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12174
12175 Code cleanup.
12176 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12177 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12178 filename to fullname. Rename variable this_name to this_fullname.
12179 Lowercase FILENAME_CMP call.
12180 (dw2_find_symbol_file): New comment for the returned string.
12181 (dwarf2_gdb_index_functions): Rename the function to
12182 dw2_expand_symtabs_with_fullname.
12183 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12184 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12185 fullname.
12186 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12187 * symfile.h (struct quick_symbol_functions): Rename field
12188 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12189 parameter filename to fullname. Document returned string meaning for
12190 find_symbol_file.
12191 * symtab.c (find_line_symtab): Rename the called function to
12192 expand_symtabs_with_fullname.
12193
12194 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12195
12196 Code cleanup.
12197 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12198 call of filename_cmp with compare_filenames_for_search.
12199 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12200 is_abs, unify the call of FILENAME_CMP with
12201 compare_filenames_for_search. New gdb_asserts for real_path and name.
12202 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12203 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12204 * symfile.h (struct quick_symbol_functions): Extend the comment for
12205 map_symtabs_matching_filename.
12206 * symtab.c (compare_filenames_for_search): Remove the function comment
12207 relative path requirement. Handle absolute filenames, with a comment.
12208 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12209 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12210 real_path and name. Unify the call of compare_filenames_for_search
12211 with FILENAME_CMP.
12212 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12213
12214 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12215
12216 Code cleanup.
12217 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12218 source_file references by symtab field references. Remove variables
12219 sal and fullname.
12220 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12221 (clear_command, say_where): Replace bp_location field source_file
12222 references by symtab field references.
12223 (bp_location_dtor): Remove the source_file reference.
12224 (update_static_tracepoint): Replace bp_location field source_file
12225 references by symtab field references.
12226 (breakpoint_free_objfile): New function.
12227 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12228 Replace the field source_file by field symtab, extend its comment.
12229 (breakpoint_free_objfile): New declaration.
12230 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12231 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12232 field source_file references by symtab field references.
12233
12234 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12235
12236 Replace xfullpath calls by gdb_realpath calls.
12237 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12238 function comment.
12239 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12240 Remove it from the iterate_over_some_symtabs call.
12241 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12242 Remove it from the dw2_map_expand_apply calls, remove a block handling
12243 it.
12244 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12245 Remove it from the iterate_over_some_symtabs call.
12246 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12247 Remove it from the partial_map_expand_apply calls, remove a block
12248 handling it. Drop gdb_realpath call and cleanups from the real_path
12249 handling.
12250 * source.c (openp): Drop the comment part about xfullpath. Replace
12251 xfullpath calls by gdb_realpath calls.
12252 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12253 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12254 from method map_symtabs_matching_filename and its comment.
12255 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12256 gdb_realpath call.
12257 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12258 remove it also from the function comment, remove a block handling it.
12259 Drop gdb_realpath call and cleanups from the real_path handling.
12260 (iterate_over_symtabs): Drop variable full_path and its use.
12261 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12262 * utils.c (xfullpath): Remove.
12263 * utils.h (xfullpath): Remove.
12264
12265 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12266
12267 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12268 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12269 (ALLDEPFILES): Add ppc64-tdep.c.
12270 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12271 ppc64-tdep.o to gdb_target_obs.
12272 * ppc64-tdep.h: New file.
12273 * ppc64-tdep.c: New file.
12274 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12275 ppc-linux-tdep.c to here.
12276 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12277 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12278 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12279 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12280 from ppc-linux-tdep.c to here.
12281 (ppc64_convert_from_func_ptr_addr): Rename from
12282 ppc64_linux_convert_from_func_ptr_addr to
12283 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12284 here.
12285 * rs6000-tdep.c:
12286 (read_insn): Move from ppc-linux-tdep.c to here.
12287 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12288 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12289 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12290 Removed above functions.
12291 (ppc_linux_init_abi): Adjust.
12292
12293 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12294
12295 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12296
12297 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12298
12299 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12300
12301 2013-02-01 Pedro Alves <palves@redhat.com>
12302
12303 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12304 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12305
12306 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12307
12308 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12309 files with no separate debug info.
12310 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12311 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12312 only for files with no separate debug info.
12313
12314 2013-01-31 Tom Tromey <tromey@redhat.com>
12315
12316 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12317 change type.
12318 (struct jit_program_space_data): Rename from jit_inferior_data.
12319 Update comments.
12320 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12321 Change return type. Attach data to program space.
12322 (jit_program_space_data_cleanup): Rename from
12323 jit_inferior_data_cleanup; change argument type.
12324 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12325 change type.
12326 (jit_register_code): Update.
12327 (jit_update_inferior_cache): Remove.
12328 (jit_breakpoint_deleted): Get jit data from the location's program
12329 space.
12330 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12331 'ps_data', change type.
12332 (jit_inferior_init, jit_breakpoint_re_set_internal)
12333 (jit_event_handler): Update.
12334 (free_objfile_data): Get data from objfile's program space.
12335 (_initialize_jit): Update.
12336
12337 2013-01-31 Tom Tromey <tromey@redhat.com>
12338
12339 PR gdb/13987:
12340 * jit.c (struct jit_inferior_data) <cached_code_address,
12341 jit_breakpoint>: New fields.
12342 (jit_breakpoint_re_set_internal): Fix logging. Only create
12343 breakpoint if cached address has changed.
12344 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12345 functions.
12346 (_initialize_jit): Register breakpoint deleted observer.
12347
12348 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12349
12350 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12351 (save_infcall_suspend_state): Ifdef out unused inf.
12352 (restore_infcall_suspend_state): Ifdef out unused inf.
12353 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12354 (jit_frame_sniffer): Remove unused inf_data.
12355
12356 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12357
12358 * c-exp.y (classify_inner_name): Remove unused type.
12359 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12360 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12361 need_escape.
12362 (c_get_string): Remove unused kind.
12363 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12364
12365 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12366
12367 * charset.c (intermediate_encoding): Remove unused i.
12368 * completer.c (signal_completer): Remove unused i.
12369 * continuations.c (discard_my_continuations_1): Remove unused
12370 continuation_ptr.
12371 * corelow.c (core_close): Remove unuseD name.
12372 (get_core_siginfo): Remove unused pid.
12373 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12374 i, cps.
12375 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12376 (loclist_describe_location): Remove unused first.
12377 * event-top.c (command_line_handler): Remove unused got_eof.
12378 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12379 (resize_section_table): Remove unused old_value.
12380 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12381 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12382 * i386-tdep.c (i386_process_record): Remove unused rex.
12383 * infcmd.c (get_return_value): Remove unused uiout.
12384 * jv-lang.c (type_from_class): Remove unused is_array.
12385 * jv-valprint.c (java_val_print): Remove unused i.
12386 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12387 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12388 * m2-typeprint.c (m2_print_type): Remove unused code.
12389 * macroexp.c (get_character_constant): Remove unused body_start.
12390 (macro_stringify): Remove unused result.
12391 * objc-lang.c (find_methods): Remove unused gdbarch.
12392 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12393 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12394 * stack.c (print_frame_args): Remove unused summary.
12395 * thread.c (thread_apply_command): Remove unused p.
12396 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12397 * valops.c (search_struct_method): Remove unused skip.
12398 * valprint.c (generic_val_print): Remove unused byte_order.
12399 * varobj.c (varobj_update): Remove unused changed.
12400 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12401 (alias_command): Remove unused c.
12402 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12403 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12404 format.
12405 (mi_cmd_data_write_memory): Remove unused word_format.
12406 (mi_cmd_data_write_memory_bytes): Remove unused r.
12407 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12408 p_start, p_end.
12409 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12410 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12411 line_width.
12412
12413 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12414
12415 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12416 * symtab.c (iterate_over_symtabs): Remove unused s.
12417 (find_pc_sect_symtab): Remove unused pspAce.
12418 (find_pc_sect_line): Remove unused alt_symtab.
12419 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12420 (completion_list_add_name): Remove unused newsize.
12421
12422 2013-01-31 Tom Tromey <tromey@redhat.com>
12423
12424 PR c++/14998:
12425 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12426 TYPE_CODE_FUNC.
12427
12428 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12429
12430 * target.c (target_read_string): Remove unused origlen.
12431
12432 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12433
12434 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12435 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12436 * ax-general.c (ax_print): Remove unused is_float.
12437 * blockframe.c (block_innermost_frame): Remove unused start, end.
12438 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12439
12440 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12441
12442 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12443 (svr4_read_so_list): Remove unused lmo.
12444 * solib-target.c (solib_target_relocate_section_addresses): Remove
12445 unused flags.
12446
12447 2013-01-30 Tom Tromey <tromey@redhat.com>
12448
12449 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12450
12451 2013-01-30 Tom Tromey <tromey@redhat.com>
12452
12453 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12454 * utils.c (gnu_debuglink_crc32): Remove.
12455 * utils.h (gnu_debuglink_crc32): Don't declare.
12456
12457 2013-01-30 Tom Tromey <tromey@redhat.com>
12458
12459 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12460 (read_structure_type, read_enumeration_type): Remove cast.
12461
12462 2013-01-30 Tom Tromey <tromey@redhat.com>
12463
12464 * dwarf2read.c (read_namespace_type): Remove cast.
12465 (read_typedef): Likewise.
12466
12467 2013-01-29 Tom Tromey <tromey@redhat.com>
12468
12469 * dwarf2read.c (free_dwo_file): Remove assert.
12470
12471 2013-01-29 Tom Tromey <tromey@redhat.com>
12472
12473 * value.c (deprecated_set_value_modifiable): Remove.
12474 * value.h (deprecated_set_value_modifiable): Remove.
12475
12476 2013-01-28 Doug Evans <dje@google.com>
12477
12478 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12479 to addresses from dwo files.
12480
12481 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12482
12483 * valops.c (find_overload_match): Remove unused argument 'lax'.
12484 * value.h: Remove unused argument 'lax' from the declaration of
12485 find_overload_match.
12486 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12487 to find_overload_match.
12488 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12489 argument to find_overload_match.
12490
12491 2013-01-25 Tom Tromey <tromey@redhat.com>
12492
12493 * dwarf2read.c (processing_has_namespace_info): Remove.
12494 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12495 (process_die, read_func_scope, dwarf2_start_symtab)
12496 (new_symbol_full): Update.
12497
12498 2013-01-25 Tom Tromey <tromey@redhat.com>
12499
12500 * cp-namespace.c (cp_set_block_scope): Remove.
12501 * cp-support.h (cp_set_block_scope): Remove.
12502 * dbxread.c: Include block.h.
12503 (cp_set_block_scope): New function.
12504 (process_one_symbol): Update.
12505 * dwarf2read.c (read_func_scope): Use block_set_scope.
12506
12507 2013-01-25 Pedro Alves <palves@redhat.com>
12508
12509 * remote.c (add_current_inferior_and_thread): Tweak comment.
12510
12511 2013-01-25 Tom Tromey <tromey@redhat.com>
12512
12513 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12514 (cp_add_using_directive): Add 'copy_names' argument.
12515 * cp-support.h (cp_add_using_directive): Update.
12516 (struct using_direct) <import_src, import_dest, alias,
12517 declaration>: Now const.
12518 * dwarf2read.c (read_import_statement): Use obconcat.
12519 Don't copy names passed to cp_add_using_directive.
12520
12521 2013-01-25 Tom Tromey <tromey@redhat.com>
12522
12523 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12524
12525 2013-01-25 Pedro Alves <palves@redhat.com>
12526
12527 * remote.c (stop_reply_extract_thread): New.
12528 (add_current_inferior_and_thread): New parameter 'wait_status'.
12529 Handle it.
12530 (remote_start_remote): Pass wait status to
12531 add_current_inferior_and_thread.
12532 (extended_remote_run): Update comment.
12533 (extended_remote_create_inferior_1): Pass wait status to
12534 add_current_inferior_and_thread.
12535
12536 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12537 Ulrich Weigand <uweigand@de.ibm.com>
12538
12539 * valarith.c (value_vector_widen): New function for replicating a
12540 scalar into a vector.
12541 (value_binop): Use value_vector_widen to widen scalar to vector
12542 rather than casting, this better matches gcc C behaviour.
12543 * valops.c (value_casst): Update logic for casting between vector
12544 types, and for casting from scalar to vector, try to match gcc C
12545 behaviour.
12546 * value.h (value_vector_widen): Declare.
12547 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12548 function, handle special case for casting scalar to vector.
12549 (opencl_relop): Use opencl_value_cast.
12550 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12551 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12552 in order to use opencl_value_cast.
12553
12554 2013-01-25 Yao Qi <yao@codesourcery.com>
12555
12556 * event-loop.c: Include "queue.h".
12557 (gdb_event_p): New typedef.
12558 (DECLARE_QUEUE_P): Use.
12559 (DEFINE_QUEUE_P): Use.
12560 (async_queue_event): Remove.
12561 (gdb_event_xfree): New.
12562 (initialize_event_loop): New.
12563 (process_event): Use QUEUE macros.
12564 (event_queue): Remove.
12565 (gdb_wait_for_event): Caller update.
12566 (check_async_event_handlers): Likewise.
12567 (poll_timers): Likewise.
12568 * event-loop.h (initialize_event_loop): Declare.
12569 * event-loop.c (gdb_event_xfree): New.
12570 * top.c (gdb_init): Call initialize_event_loop.
12571
12572 2013-01-25 Yao Qi <yao@codesourcery.com>
12573
12574 * event-loop.c (async_queue_event): Remove one parameter
12575 'position'. Remove code handling 'position' == TAIL.
12576 (gdb_wait_for_event): Caller update.
12577 (check_async_event_handlers): Caller update.
12578 (poll_timers): Caller update.
12579 * event-loop.h (enum queue_position): Remove.
12580
12581 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12582
12583 * MAINTAINERS: Update my email.
12584
12585 2013-01-25 Yao Qi <yao@codesourcery.com>
12586
12587 * main.c (print_gdb_help): Remove "--epoch" from the help
12588 message.
12589
12590 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12591
12592 * symtab.c (skip_prologue_using_sal): Consider a file
12593 change the same as an increased line number
12594
12595 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12596
12597 * MAINTAINERS (Write After Approval): Add myself to the list.
12598
12599 2013-01-24 Tom Tromey <tromey@redhat.com>
12600
12601 * ada-lang.h (ada_decode_symbol): Make return type const.
12602 * ada-lang.c (ada_decode_symbol): Likewise.
12603
12604 2013-01-23 Doug Evans <dje@google.com>
12605
12606 * linespec.c (find_linespec_symbols): Make static.
12607
12608 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12609
12610 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12611 type on float conversion for complex type.
12612
12613 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12614
12615 Add a new class gdb.Architecture which exposes GDB's
12616 internal representation of architecture via GDB Python API.
12617 * Makefile.in: Add entries corresponding to the new file
12618 python/py-arch.c.
12619 * NEWS (Python Scripting): Add entries for the new class
12620 gdb.Architecture and the new method gdb.Frame.architecture.
12621 * python/py-arch.c: Implement gdb.Architecture class.
12622 * python/py-frame.c (frapy_arch): Implement the method
12623 gdb.Frame.architecture().
12624 (frame_object_methods): Add 'architecture' to the method table.
12625 * python/python-internal.h: Add declarations of new utility
12626 functions.
12627 * python/python.c (_initialize_python): Initialize
12628 gdb.Architecture class.
12629
12630 2013-01-23 Doug Evans <dje@google.com>
12631
12632 Work around binutils/15021.
12633 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12634 type_unit_group out of union s. All uses updated.
12635 (read_index_from_section): Watch for index version 8.
12636 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12637 an imported symtab.
12638 (write_psymtabs_to_index): Increment version number to 8.
12639
12640 2013-01-22 Pedro Alves <palves@redhat.com>
12641
12642 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12643 user-visible.
12644
12645 2013-01-22 Pedro Alves <palves@redhat.com>
12646
12647 * annotate.c (annotate_breakpoints_changed): Rename to ...
12648 (annotate_breakpoints_invalid): ... this. Make static.
12649 (breakpoint_changed): Adjust.
12650 (_initialize_annotate): Always install the observers. Install a
12651 "breakpoint_created" observer.
12652 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12653 * breakpoint.c (set_breakpoint_condition)
12654 (breakpoint_set_commands, do_map_commands_command)
12655 (init_raw_breakpoint, clear_command, set_ignore_count)
12656 (enable_breakpoint_disp): No longer call
12657 annotate_breakpoints_changed.
12658
12659 2013-01-22 Pedro Alves <palves@redhat.com>
12660
12661 * annotate.c: Include "inferior.h".
12662 (frames_invalid_emitted)
12663 (breakpoints_invalid_emitted): New globals.
12664 (async_background_execution_p): New function.
12665 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12666 emitting the annotation if it has already been emitted.
12667 (annotate_display_prompt): New function.
12668 * annotate.h (annotate_display_prompt): New declaration.
12669 * event-top.c: Include annotate.h.
12670 (display_gdb_prompt): Call annotate_display_prompt.
12671
12672 2013-01-22 Pedro Alves <palves@redhat.com>
12673
12674 * annotate.c (ignore_count_changed): Delete.
12675 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12676 (annotate_ignore_count_change): Delete.
12677 (annotate_stopped): Don't emit a delayed breakpoints-changed
12678 annotation.
12679 * annotate.h (annotate_ignore_count_change): Delete.
12680 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12681 annotate_ignore_count_change.
12682
12683 2013-01-22 Tom Tromey <tromey@redhat.com>
12684
12685 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12686 require_rvalue for a register location.
12687
12688 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12689
12690 * breakpoint.c (print_one_breakpoint_location): Add MI
12691 field 'thread-groups' when printing a breakpoint.
12692 (output_thread_groups): New function.
12693
12694 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12695
12696 * python/lib/gdb/commands/explore.py
12697 (CompoundExplorer.explore_expr): Correct the name of a method
12698 being invoked.
12699 (ExploreTypeCommand.invoke): Add a missing 'return'.
12700
12701 2013-01-21 Tom Tromey <tromey@redhat.com>
12702
12703 * gdb_obstack.h (obconcat): Move declaration here, from...
12704 * symfile.h (obconcat): ... here.
12705 * gdb_obstack.c: New file.
12706 (obconcat): Move from...
12707 * symfile.c (obconcat): ... here.
12708 * Makefile.in (SFILES): Add gdb_obstack.c.
12709 (COMMON_OBS): Add gdb_obstack.o.
12710
12711 2013-01-21 Tom Tromey <tromey@redhat.com>
12712
12713 * symfile.h (obsavestring): Don't declare.
12714 * symfile.c (obsavestring): Remove.
12715 * ada-exp.y: Use obstack_copy0, not obsavestring.
12716 * ada-lang.c: Use obstack_copy0, not obsavestring.
12717 * coffread.c: Use obstack_copy0, not obsavestring.
12718 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12719 * dbxread.c: Use obstack_copy0, not obsavestring.
12720 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12721 * jit.c: Use obstack_copy0, not obsavestring.
12722 * mdebugread.c: Use obstack_copy0, not obsavestring.
12723 * psymtab.c: Use obstack_copy0, not obsavestring.
12724 * stabsread.c: Use obstack_copy0, not obsavestring.
12725 * xcoffread.c: Use obstack_copy0, not obsavestring.
12726
12727 2013-01-21 Tom Tromey <tromey@redhat.com>
12728
12729 * dwarf2read.c (fixup_go_packaging): Save package name
12730 on objfile obstack.
12731 * gdbtypes.c (init_type): Don't copy name.
12732
12733 2013-01-21 Tom Tromey <tromey@redhat.com>
12734
12735 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12736 const.
12737 (struct attribute) <u.str>: Now const.
12738 (struct fnfieldlist) <name>: Now const.
12739 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12740 (partial_die_parent_scope): Make return type const.
12741 (partial_die_full_name, add_partial_symbol): Update.
12742 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12743 'name' const.
12744 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12745 (read_file_scope, read_func_scope, dwarf2_add_field)
12746 (dwarf2_add_member_fn, read_structure_type)
12747 (process_enumeration_scope, read_array_type, read_module_type)
12748 (read_base_type, read_subrange_type): Update.
12749 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12750 (new_symbol_full, guess_full_die_structure_name): Update.
12751 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12752 (dwarf2_name): Return const type.
12753 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12754 const.
12755
12756 2013-01-21 Tom Tromey <tromey@redhat.com>
12757
12758 * gdbtypes.c (init_type): Make 'name' const.
12759 * gdbtypes.h (init_type): Update.
12760
12761 2013-01-21 Tom Tromey <tromey@redhat.com>
12762
12763 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12764 (start_symtab): Make 'name' and 'dirname' const. Use
12765 set_last_source_file.
12766 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12767 (last_source_file): Define. Now static.
12768 (set_last_source_file, get_last_source_file): New functions.
12769 * buildsym.h (last_source_file): Don't declare.
12770 (start_symtab): Update.
12771 (set_last_source_file, get_last_source_file): Declare.
12772 * coffread.c (complete_symtab): Use set_last_source_file.
12773 (coff_end_symtab): Likewise.
12774 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12775 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12776 set_last_source_file.
12777 (process_one_symbol): Use get_last_source_file.
12778 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12779 (psymtab_to_symtab_1): Use get_last_source_file.
12780 * xcoffread.c (process_linenos): Use get_last_source_file.
12781 (complete_symtab): Use set_last_source_file.
12782 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12783 (scan_xcoff_symtab): Use set_last_source_file.
12784
12785 2013-01-21 Tom Tromey <tromey@redhat.com>
12786
12787 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12788 (symbol_set_names): Remove casts. Handle field const-ness.
12789
12790 2013-01-21 Tom Tromey <tromey@redhat.com>
12791
12792 * dwarf2read.c (new_symbol_full): Remove cast.
12793 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12794 * symtab.h (symbol_set_demangled_name): Update.
12795
12796 2013-01-21 Tom Tromey <tromey@redhat.com>
12797
12798 * main.c (captured_main): Call bfd_init.
12799
12800 2013-01-21 Tom Tromey <tromey@redhat.com>
12801
12802 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12803 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12804 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12805 * NEWS: Update.
12806
12807 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12808
12809 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12810
12811 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12812
12813 Fix gdb.fortran/common-block.exp crash in PIE mode.
12814 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12815 LOC_COMMON_BLOCK.
12816 * f-valprint.c (info_common_command_for_block): Expect
12817 LOC_COMMON_BLOCK in gdb_assert.
12818 * symtab.h (struct general_symbol_info): Update comment for the
12819 common_block member.
12820 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12821 (enum address_class): New member LOC_COMMON_BLOCK.
12822
12823 2013-01-18 David Blaikie <dblaikie@gmail.com>
12824
12825 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12826
12827 2013-01-18 Tom Tromey <tromey@redhat.com>
12828
12829 PR c++/14999:
12830 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12831 Call require_rvalue.
12832
12833 2013-01-18 Yao Qi <yao@codesourcery.com>
12834
12835 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12836 (dbx_read_symtab): New declaration.
12837 (dbx_psymtab_to_symtab): Delete.
12838 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12839 Rename parameter PST to SELF. Exchanged two parameters.
12840 (start_psymtab): Caller update.
12841 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12842 (dwarf2_read_symtab): New declaration.
12843 (dwarf2_psymtab_to_symtab): Delete.
12844 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12845 Rename parameter PST to SELF. Exchanged two parameters.
12846 (create_partial_symtab): Caller update.
12847 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12848 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12849 Rename parameter PST to SELF. Exchanged two parameters.
12850 (parse_partial_symbols, new_psymtab): Caller update.
12851 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12852 two parameters.
12853 * psymtab.c (psymtab_to_symtab): Caller update.
12854 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12855 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12856 Rename parameter PST to SELF. Exchanged two parameters.
12857 (xcoff_start_psymtab): Caller update.
12858
12859 2013-01-18 Yao Qi <yao@codesourcery.com>
12860
12861 * infrun.c (proceed): Rename local variable 'oneproc' to
12862 'force_step'.
12863
12864 2013-01-17 Doug Evans <dje@google.com>
12865
12866 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12867 (dw2_build_type_unit_groups): Delete. All uses updated.
12868
12869 * symtab.h (struct symbol_search): Add comment.
12870
12871 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12872
12873 * symtab.c (compare_filenames_for_search): New comment for
12874 HAS_DRIVE_SPEC.
12875
12876 2013-01-17 Tom Tromey <tromey@redhat.com>
12877
12878 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12879
12880 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12881
12882 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12883 initialize it by existing make_cleanup. Call new do_cleanups.
12884
12885 2013-01-17 Tom Tromey <tromey@redhat.com>
12886
12887 * cp-abi.c (cp_abi_completer): New function.
12888 (_initialize_cp_abi): Set completer for "set cp-abi".
12889
12890 2013-01-17 Tom Tromey <tromey@redhat.com>
12891
12892 * mem-break.c: Remove obsolete comment.
12893 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12894
12895 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12896
12897 * jit.c (jit_reader_load_command): Interpret the jit reader name
12898 as an absolute path if it begins with a forward slash.
12899
12900 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12901
12902 PR gdb/14550
12903
12904 * jit.c (finalize_symtab): Ensure that only the global block has a
12905 NULL superblock.
12906
12907 2013-01-17 Pedro Alves <palves@redhat.com>
12908
12909 * acinclude.m4: Include ../config/plugins.m4,
12910 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12911 * Makefile.in (aclocal_m4_deps): Update.
12912 * aclocal.m4: Renegerate.
12913
12914 2013-01-16 Doug Evans <dje@google.com>
12915
12916 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12917
12918 2013-01-16 Pedro Alves <palves@redhat.com>
12919 Tom Tromey <tromey@redhat.com>
12920
12921 PR cli/7221:
12922 * NEWS: Add "catch signal".
12923 * breakpoint.c (base_breakpoint_ops): No longer static.
12924 (bpstat_explains_signal): New function.
12925 (init_catchpoint): No longer static.
12926 (base_breakpoint_explains_signal): New function.
12927 (base_breakpoint_ops): Initialize new field.
12928 * breakpoint.h (enum bpstat_signal_value): New.
12929 (struct breakpoint_ops) <explains_signal>: New field.
12930 (bpstat_explains_signal): Remove macro, declare as function.
12931 (base_breakpoint_ops, init_catchpoint): Declare.
12932 * break-catch-sig.c: New file.
12933 * inferior.h (signal_catch_update): Declare.
12934 * infrun.c (signal_catch): New global.
12935 (handle_syscall_event): Update for change to
12936 bpstat_explains_signal.
12937 (handle_inferior_event): Likewise. Always handle random signals
12938 via bpstats.
12939 (signal_cache_update): Check signal_catch.
12940 (signal_catch_update): New function.
12941 (_initialize_infrun): Initialize signal_catch.
12942 * Makefile.in (SFILES): Add break-catch-sig.c.
12943 (COMMON_OBS): Add break-catch-sig.o.
12944
12945 2013-01-16 Tom Tromey <tromey@redhat.com>
12946
12947 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12948 (print_one_catch_solib, print_one_catch_syscall)
12949 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12950 "catch-type".
12951
12952 2013-01-16 Yao Qi <yao@codesourcery.com>
12953
12954 * printcmd.c (current_display_number): Make it static.
12955
12956 2013-01-16 Yao Qi <yao@codesourcery.com>
12957
12958 * infcmd.c (step_once): Don't check '!single_inst' as it was
12959 checked before.
12960
12961 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12962
12963 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12964
12965 2013-01-14 Tom Tromey <tromey@redhat.com>
12966
12967 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12968 set command.
12969 * command.h (add_setshow_string_noescape_cmd): Update.
12970 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12971 (complete_set_gnutarget): New function.
12972 (_initialize_core): Set the "set gnutarget" completer.
12973
12974 2013-01-14 Tom Tromey <tromey@redhat.com>
12975
12976 PR symtab/14442:
12977 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12978 (c_type_print_modifier): Likewise.
12979 * dwarf2read.c (read_tag_restrict_type): New function.
12980 (read_type_die_1): Handle DW_TAG_restrict_type.
12981 * gdbtypes.c (make_restrict_type): New function.
12982 (recursive_dump_type): Handle TYPE_RESTRICT.
12983 * gdbtypes.h (enum type_flag_values): Renumber.
12984 (enum type_instance_flag_value): Add
12985 TYPE_INSTANCE_FLAG_RESTRICT.
12986 (TYPE_RESTRICT): New macro.
12987 (make_restrict_type): Declare.
12988
12989 2013-01-14 Tom Tromey <tromey@redhat.com>
12990
12991 PR symtab/14931:
12992 * psymtab.c (struct psymtab_state): New.
12993 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12994 functions.
12995 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12996 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12997
12998 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12999 Pedro Alves <palves@redhat.com>
13000
13001 PR remote/14786
13002
13003 * remote.c (remote_threads_info): Make a copy of the reply from
13004 qfThreadInfo and use that instead of rs->buf.
13005
13006 2013-01-14 Yao Qi <yao@codesourcery.com>
13007
13008 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13009 (dbx_psymtab_to_symtab): Likewise.
13010 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13011 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13012 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13013
13014 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13015
13016 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13017 make_cleanup_restore_current_language. Call set_language. Move
13018 OLD_CHAIN and INNER_CHAIN cleanups.
13019 * utils.c (do_restore_current_language)
13020 (make_cleanup_restore_current_language): New functions.
13021 * utils.h (make_cleanup_restore_current_language): New declaration.
13022
13023 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13024
13025 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13026 non-existing files.
13027
13028 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13029 non-existing files if FILENAME is already absolute.
13030
13031 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13032
13033 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13034 fputs_filtered. Append trailing newline.
13035
13036 2013-01-11 Yao Qi <yao@codesourcery.com>
13037 Stan Shebs <stan@codesourcery.com>
13038
13039 * psymtab.c (init_psymbol_list): Clarify the comment.
13040
13041 2013-01-11 Yao Qi <yao@codesourcery.com>
13042
13043 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13044 (update_dprintf_command_list): Assert that 'printf_line' is
13045 non-null. Remove condition check.
13046
13047 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13048
13049 Code cleanup.
13050 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13051 type const char *.
13052 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13053 const char *.
13054 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13055
13056 2013-01-09 Anthony Green <green@moxielogic.com>
13057
13058 * cp-abi.c (cplus_print_vtable): Don't return value from void
13059 function.
13060 * ada-lang.c (re_set_catch_assert): Ditto.
13061
13062 2013-01-09 Doug Evans <dje@google.com>
13063
13064 * symfile.h (quick_symbol_functions): Delete member
13065 pre_expand_symtabs_matching. All uses removed.
13066 * dwarf2read.c (dw2_lookup_symbol): Implement.
13067 (dw2_do_expand_symtabs_matching): Delete.
13068 (dw2_pre_expand_symtabs_matching): Delete.
13069 (struct dw2_symtab_iterator): New type.
13070 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13071 (dw2_expand_symtabs_for_function): Rewrite.
13072 (dwarf2_gdb_index_functions): Update.
13073 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13074 (psym_functions): Update.
13075
13076 2013-01-09 Tom Tromey <tromey@redhat.com>
13077
13078 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13079 * configure: Rebuild.
13080 * configure.ac: Add somread.o to the build if BFD has SOM
13081 support.
13082 * somread.c: Include som/aout.h, not syms.h.
13083 (som_symtab_read): Use som_external_symbol_dictionary_record.
13084 Unpack records manually.
13085 (_initialize_somread): Declare.
13086
13087 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13088
13089 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13090 Cast return_address to 64bits.
13091
13092 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13093
13094 * printcmd.c: Remove define of function output_command.
13095 * tracepoint.c: Remove extern of function output_command.
13096 * valprint.h: (output_command): New extern.
13097
13098 2013-01-07 Tom Tromey <tromey@redhat.com>
13099
13100 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13101 Remove.
13102 (objc_language_defn): Use c_printchar, c_printstr,
13103 c_emit_char.
13104
13105 2013-01-07 Tom Tromey <tromey@redhat.com>
13106
13107 PR cli/7719:
13108 * NEWS: Update.
13109 * ada-valprint.c (printstr, print_field_values): Remove
13110 "inspect_it" code.
13111 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13112 code.
13113 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13114 code.
13115 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13116 * main.c (captured_main): Remove "epoch" argument.
13117 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13118 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13119 * p-valprint.c (pascal_object_print_value_fields): Remove
13120 "inspect_it" code.
13121 * printcmd.c (print_command_1): Remove 'inspect' argument.
13122 (print_command, call_command): Update.
13123 (inspect_command): Remove.
13124 (_initialize_printcmd): Make "inspect" an alias for "print".
13125 * top.c (epoch_interface): Remove.
13126 * top.h (epoch_interface): Remove.
13127 * valprint.c (user_print_options): Update.
13128 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13129 * valprint.h (struct value_print_options) <inspect_it>: Remove
13130 field.
13131
13132 2013-01-04 Tom Tromey <tromey@redhat.com>
13133
13134 * valprint.h (read_string): Add 'extern'.
13135
13136 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13137
13138 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13139 used to decide whether to define darwin_read_dyld_info or not.
13140
13141 2013-01-03 Pierre Muller <muller@sourceware.org>
13142
13143 * main.c (relocate_gdb_directory): Avoid calling stat function
13144 if DIR is empty.
13145
13146 2013-01-03 Yao Qi <yao@codesourcery.com>
13147
13148 * psymtab.c (fixup_psymbol_section): Update declaration.
13149 (fixup_psymbol_section): Remove code returning value.
13150
13151 2013-01-03 Yao Qi <yao@codesourcery.com>
13152
13153 * symtab.h: Remove some out of date comments.
13154 (enum exception_event_kind): Move it ...
13155 * breakpoint.c: ... here.
13156
13157 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13158
13159 PR gdb/14405
13160 * darwin-nat.c (darwin_read_dyld_info): Only build if
13161 TASK_DYLD_INFO_COUNT is defined.
13162 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13163 TASK_DYLD_INFO_COUNT is defined.
13164
13165 2013-01-02 Tom Tromey <tromey@redhat.com>
13166
13167 * symfile.h (struct ecoff_debug_hack): Remove.
13168 * objfiles.c: Don't include mdebugread.h.
13169
13170 2013-01-02 Tom Tromey <tromey@redhat.com>
13171
13172 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13173 * configure.ac: Check for Mach-O support in BFD. Update
13174 CONFIG_OBS.
13175 * configure: Rebuild.
13176
13177 2013-01-02 Tom Tromey <tromey@redhat.com>
13178
13179 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13180 * configure.ac: Use GDB_AC_CHECK_BFD.
13181 * configure: Rebuild.
13182
13183 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13184
13185 * MAINTAINERS: Update my email.
13186
13187 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13188
13189 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13190
13191 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13192
13193 * rs6000-nat.c (bss_data_overlap): New function.
13194 (vmap_symtab): Use it to adjust the .bss section's offset.
13195
13196 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13197
13198 Update year range in copyright notice of all files.
13199
13200 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13201
13202 * top.c (print_gdb_version): Update copyright year.
13203
13204 For older changes see ChangeLog-2012.
13205 \f
13206 Local Variables:
13207 mode: change-log
13208 left-margin: 8
13209 fill-column: 74
13210 version-control: never
13211 coding: utf-8
13212 End:
This page took 0.347136 seconds and 4 git commands to generate.