Document the GDB 7.6.2 release in gdb/ChangeLog
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-19 Joel Brobecker <brobecker@adacore.com>
2
3 GDB 7.6.2 released.
4
5 2013-12-08 Yao Qi <yao@codesourcery.com>
6
7 * stack.c (frame_info): Initialize variable caller_pc.
8
9 2013-12-06 Pedro Alves <palves@redhat.com>
10
11 * frame.c (enum cached_copy_status): New enum.
12 (struct frame_info) <prev_pc.p>: Change type to enum
13 cached_copy_status.
14 (fprint_frame): Handle not saved and unavailable prev_pc values.
15 (frame_unwind_pc_if_available): Delete and merge contents into ...
16 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
17 to use enum cached_copy_status.
18 (frame_unwind_caller_pc_if_available): Delete.
19 (create_new_frame): Adjust.
20 * frame.h (frame_unwind_caller_pc_if_available): Delete
21 declaration.
22 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
23 frame_unwind_caller_pc_if_available, and handle
24 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
25 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
26 (val_print_not_saved): New function.
27 * valprint.h (val_print_not_saved): Declare.
28
29 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
30 Pedro Alves <palves@redhat.com>
31
32 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
33 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
34 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
35 * spu-tdep.c (spu_software_single_step): Throw
36 OPTIMIZED_OUT_ERROR.
37 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
38
39 2013-12-06 Tom Tromey <tromey@redhat.com>
40
41 * objfiles.c (free_objfile): Update comment.
42
43 2013-12-06 Tom Tromey <tromey@redhat.com>
44
45 * objfiles.h (objfile_to_front): Remove.
46 * objfiles.c (objfile_to_front): Remove.
47
48 2013-12-06 Tom Tromey <tromey@redhat.com>
49
50 * minsyms.c (get_symbol_leading_char): Remove unnecessary
51 declaration.
52
53 2013-12-06 Tom Tromey <tromey@redhat.com>
54
55 * psympriv.h (struct partial_symtab) <user>: Move earlier.
56
57 2013-12-06 Tom Tromey <tromey@redhat.com>
58
59 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
60 (list_command): Likewise.
61
62 2013-12-06 Tom Tromey <tromey@redhat.com>
63
64 * psymtab.c (allocate_psymtab): Put the filename in the filename
65 bcache.
66
67 2013-12-06 Tom Tromey <tromey@redhat.com>
68
69 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
70 * symtab.h (struct symtab) <dirname>: Now const.
71
72 2013-12-06 Tom Tromey <tromey@redhat.com>
73
74 * symfile.c (allocate_symtab): Remove cast.
75 * symtab.h (struct symtab) <filename>: Now const.
76
77 2013-12-06 Tom Tromey <tromey@redhat.com>
78
79 * break-catch-throw.c (fetch_probe_arguments): Use
80 get_probe_argument_count and evaluate_probe_argument.
81 * elfread.c (elf_get_probe_argument_count)
82 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
83 (elf_compile_to_ax): Remove.
84 (elf_probe_fns): Update.
85 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
86 (evaluate_probe_argument): Call method on probe, not via sym
87 functions.
88 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
89 evaluate_probe_argument.
90 (compile_probe_arg): Use get_probe_argument_count. Call method on
91 probe, not via sym functions.
92 * symfile-debug.c (debug_sym_get_probe_argument_count)
93 (debug_can_evaluate_probe_arguments)
94 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
95 Remove.
96 (debug_sym_probe_fns): Remove.
97 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
98 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
99 sym_compile_to_ax>: Remove fields.
100
101 2013-12-06 Pierre Muller <muller@sourceware.org>
102
103 Fix completion for pascal language.
104 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
105 (exp : field_exp name COMPLETE): New rule.
106 (exp : SIZEOF): Set correct current_type.
107 (last_was_structop): Remove static variable.
108 (yylex): Remove saw_structop local variable.
109 Adapt code to removal of variables above.
110
111 2013-12-06 Joel Brobecker <brobecker@adacore.com>
112
113 * frame.c (get_prev_frame_1): Delete variable "this_id".
114 Replace its use by a call to get_frame_id.
115
116 2013-12-05 Anthony Green <green@moxielogic.com>
117
118 * moxie-tdep.c (moxie_software_single_step): New function.
119 (INST2OFFSET): New helper macro.
120 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
121 (moxie_process_readu): Move this up in the file.
122
123 2013-12-05 Doug Evans <xdje42@gmail.com>
124
125 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
126
127 2013-12-05 Joel Brobecker <brobecker@adacore.com>
128 Tristan Gingold <gingold@adacore.com>
129
130 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
131 Accept version 2. Ignore operations using opcode 6.
132
133 2013-12-05 Joel Brobecker <brobecker@adacore.com>
134
135 * ada-lex.l (find_dot_all): Fix coding style violations.
136
137 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
138
139 * NEWS: Add section for Intel(R) Architecture Instructions
140 Extesions mentioning MPX.
141
142 2013-12-03 Joel Brobecker <brobecker@adacore.com>
143
144 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
145
146 2013-12-03 Joel Brobecker <brobecker@adacore.com>
147
148 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
149 when parse_exp_1 threw an error. Add comment.
150
151 2013-12-03 Joel Brobecker <brobecker@adacore.com>
152
153 * NEWS: Mention "-list-features" in the entry documenting
154 the support for the "--language" option.
155
156 2013-12-03 Tom Tromey <tromey@redhat.com>
157 Jan Kratochvil <jan.kratochvil@redhat.com>
158 Doug Evans <dje@google.com>
159 Samuel Bronson <naesten@gmail.com>
160
161 Bring back gdb-add-index as a contrib script.
162 * contrib/gdb-add-index.sh: New file.
163 * NEWS: Note the addition.
164
165 2013-12-03 Samuel Bronson <naesten@gmail.com>
166
167 * MAINTAINERS (Write After Approval): Add myself to the list.
168
169 2013-12-03 Joel Brobecker <brobecker@adacore.com>
170
171 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
172
173 2013-12-03 Joel Brobecker <brobecker@adacore.com>
174
175 * mi/mi-main.c: Remove trailing spaces throughout.
176
177 2013-12-03 Pedro Alves <palves@redhat.com>
178 Joel Brobecker <brobecker@adacore.com>
179
180 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
181 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
182 of a regular error when the GDB/MI command does not exist.
183 * mi/mi-main.c (mi_cmd_list_features): Add
184 "undefined-command-error-code".
185 (mi_print_exception): Print an "undefined-command"
186 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
187 * NEWS: Add entry documenting the new "code" variable in
188 "^error" result records.
189
190 2013-12-03 Joel Brobecker <brobecker@adacore.com>
191
192 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
193 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
194 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
195 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
196 field to output of "-list-features".
197
198 * NEWS: Add entry for new -info-gdb-mi-command.
199
200 2013-12-02 Doug Evans <dje@google.com>
201 Jan Kratochvil <jan.kratochvil@redhat.com>
202
203 * objfiles.c (allocate_objfile): Save original_name as an absolute
204 path.
205 * objfiles.h (struct objfile): Expand comment on original_name.
206 * source.c (openp): Call gdb_abspath.
207 * utils.c (gdb_abspath): New function.
208 * utils.h (gdb_abspath): Declare.
209
210 2013-12-02 Pedro Alves <palves@redhat.com>
211
212 * dcache.c (dcache_read_line): Use target_read_raw_memory.
213 * target.c (target_read_raw_memory): New function.
214 (target_read_stack, target_write_memory, target_write_raw_memory):
215 Update comment.
216 (target_read_code): Add comment.
217 * target.h (target_read_raw_memory): Declare.
218
219 2013-12-02 Pedro Alves <palves@redhat.com>
220
221 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
222 unconditionally.
223
224 2013-12-02 Pedro Alves <pedro@codesourcery.com>
225 Maciej W. Rozycki <macro@codesourcery.com>
226
227 * remote.c (putpkt_for_catch_errors): Remove function.
228 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
229 gracefully.
230
231 2013-12-02 Pedro Alves <palves@redhat.com>
232
233 PR remote/15974
234 * remote-notif.c (handle_notification): Return early if no
235 notification is found.
236
237 2013-12-02 Joel Brobecker <brobecker@adacore.com>
238
239 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
240 preprocessor check.
241
242 2013-12-02 Joel Brobecker <brobecker@adacore.com>
243
244 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
245
246 2013-12-02 Joel Brobecker <brobecker@adacore.com>
247
248 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
249 * ctf.c (ctf_start): Remove obsolete comment.
250
251 2013-12-02 Joel Brobecker <brobecker@adacore.com>
252
253 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
254
255 2013-11-30 Doug Evans <xdje42@gmail.com>
256
257 * auto-load.h (script_language): New members name, auto_load_enabled.
258 Add missing comments on struct members.
259 (auto_load_objfile_script): Delete.
260 * auto-load.c: #include "cli/cli-cmds.h".
261 (auto_load_gdb_scripts_enabled): New function.
262 (script_language_gdb): Update, add new members.
263 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
264 and call to maybe_add_script moved to caller.
265 (auto_load_objfile_script_1): Auto-load safe-checking and
266 call to maybe_add_script moved here.
267 (auto_load_objfile_script): Make static. Early exit if support for
268 scripting language hasn't been compiled in, or auto-loading has been
269 disabled.
270 (source_section_scripts): Argument "source_name" renamed to
271 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
272 with section_name. Skip loading script if support for scripting
273 language hasn't been compiled in, or auto-loading has been disabled.
274 Call language->source_script_for_objfile instead of calling
275 source_python_script_for_objfile directly.
276 (load_auto_scripts_for_objfile): Update.
277 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
278 (gdbpy_load_auto_script_for_objfile): Delete.
279 (auto_load_python_scripts_enabled): New function.
280 (script_language_python): Update, add new members.
281 (gdbpy_script_language_defn): New function.
282 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
283 (gdbpy_script_language_defn): Declare.
284
285 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
286 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
287 (source_section_scripts): Moved here from py-auto-load.c.
288 (auto_load_section_scripts): Ditto.
289 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
290 auto-load.c, renamed AUTO_SECTION_NAME.
291 (source_section_scripts, auto_load_section_scripts): Moved to
292 auto-load.c.
293
294 2013-11-30 Yao Qi <yao@codesourcery.com>
295
296 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
297
298 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
299
300 * gdbarch.sh: Remove include of "gdb_string.h", replace by
301 <string.h>.
302
303 2013-11-29 Doug Evans <xdje42@gmail.com>
304
305 * python/py-auto-load.c (source_section_scripts): Move comment to
306 more relevant location.
307
308 Whitespace cleanup.
309 * python/py-breakpoint.c: Remove trailing whitespace.
310 * python/py-cmd.c: Ditto.
311 * python/py-evts.c: Ditto.
312 * python/py-finishbreakpoint.c: Ditto.
313 * python/py-frame.c: Ditto.
314 * python/py-function.c: Ditto.
315 * python/py-inferior.c: Ditto.
316 * python/py-infthread.c: Ditto.
317 * python/py-param.c: Ditto.
318 * python/py-prettyprint.c: Ditto.
319 * python/py-symbol.c: Ditto.
320 * python/py-type.c: Ditto.
321 * python/py-utils.c: Ditto.
322 * python/py-value.c: Ditto.
323 * python/python-internal.h: Ditto.
324 * python/python.c: Ditto.
325
326 2013-11-29 Pedro Alves <palves@redhat.com>
327
328 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
329
330 2013-11-29 Pedro Alves <palves@redhat.com>
331
332 * breakpoint.c (build_target_condition_list): Release previous
333 conditions.
334 (build_target_command_list): Release previous commands.
335 (bp_location_dtor): Release target conditions and commands.
336 * remote.c (remote_add_target_side_condition): Don't release
337 conditions.
338 (remote_add_target_side_commands): Don't release commands.
339
340 2013-11-29 Yao Qi <yao@codesourcery.com>
341 Pedro Alves <palves@redhat.com>
342
343 * dcache.c (dcache_read_line): Use current_target.beneath
344 instead of &current_target.
345 * target.c (memory_xfer_partial_1): Factor code out to ...
346 (raw_memory_xfer_partial): ... it. New function.
347 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
348 is TARGET_OBJECT_RAW_MEMORY.
349
350 2013-11-28 Doug Evans <xdje42@gmail.com>
351
352 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
353 breakpoint_object. All uses updated.
354 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
355 breakpoint_object. All uses updated.
356 * python.c (*): All uses of breakpoint_object updated.
357 * python.h (*): All uses of breakpoint_object updated.
358 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
359 * python/py-finishbreakpoint.c (*): Ditto.
360
361 2013-11-28 Doug Evans <xdje42@gmail.com>
362
363 * configure.ac: Add comments delineating libpython and libmcheck.
364 * configure: Regenerate.
365
366 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
367 Pedro Alves <palves@redhat.com>
368
369 * valprint.c (value_check_printable): If the value is entirely
370 unavailable, print a single "<unavailable>" instead of printing
371 all subfields.
372
373 2013-11-28 Pedro Alves <palves@redhat.com>
374
375 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
376 Add "set debug frame" output.
377 (frame_stop_reason_symbol_string): New function.
378
379 2013-11-28 Pedro Alves <palves@redhat.com>
380
381 * frame-unwind.c (default_frame_unwind_stop_reason): Return
382 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
383 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
384
385 2013-11-28 Pedro Alves <palves@redhat.com>
386
387 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
388 set the unwind stop reason to UNWIND_OUTERMOST, not
389 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
390
391 2013-11-28 Pedro Alves <palves@redhat.com>
392
393 * frame.c (frame_unwind_register): Say the register was "not
394 saved" instead of "optimized out".
395
396 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
397
398 PR 16152
399 * configure: Rebuild.
400 * configure.ac: Tighten cygwin detection check.
401
402 2013-11-27 Pedro Alves <palves@redhat.com>
403
404 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
405 register in the previous frame's arch.
406
407 2013-11-27 Pedro Alves <palves@redhat.com>
408
409 * frame-unwind.c (frame_unwind_got_optimized): Return
410 an lval_register value instead of a not_lval value.
411
412 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
413
414 * frame.c: Include "valprint.h".
415 (frame_unwind_register_value): Use value_optimized_out.
416 * value.c (value_fetch_lazy): Likewise.
417
418 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
419
420 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
421
422 2013-11-26 Tom Tromey <tromey@redhat.com>
423
424 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
425 2013-11-22.
426
427 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
428
429 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
430 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
431 (HAS_MPX): New macro.
432 (HAS_AVX): New macro.
433 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
434
435 2013-11-25 Keith Seitz <keiths@redhat.com>
436
437 PR c++/14819
438 * c-exp.y (classify_inner_name): If no matching symbol was
439 found, try looking up the token as a base class.
440 Likewise if a constructor was found.
441 * cp-namespace.c (find_type_baseclass_by_name): New function.
442 * cp-support.h (find_type_baseclass_by_name): Declare.
443 * valops.c (value_struct_elt_for_reference): If we get
444 a non-static field, try to get a value based on the
445 current instance, if any.
446
447 2013-11-24 Yao Qi <yao@codesourcery.com>
448
449 * disasm.c (dis_asm_read_memory): Call target_read_code
450 instead of target_read_memory.
451
452 2013-11-24 Yao Qi <yao@codesourcery.com>
453
454 * NEWS: Add note on new "set code-cache" option.
455 * target-dcache.c (code_cache_enabled_1): New variable.
456 (code_cache_enabled): New variable.
457 (show_code_cache, set_code_cache): New function.
458 (code_cache_enabled_p): New function.
459 (_initialize_target_dcache): Register command.
460 * target-dcache.h (code_cache_enabled_p): Declare.
461 * target.c (memory_xfer_partial_1):Handle
462 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
463 (target_read_code): New function.
464 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
465 New.
466 (target_read_code): Declare.
467
468 2013-11-24 Yao Qi <yao@codesourcery.com>
469
470 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
471 (stack_cache_enabled_1): ... this. New variable.
472 (stack_cache_enabled_p): Rename to ...
473 (stack_cache_enabled): ... this. New variable.
474 (set_stack_cache_enabled_p): Rename to ...
475 (set_stack_cache): ... this. Update caller.
476 (show_stack_cache_enabled_p): Rename to ...
477 (show_stack_cache): ... this. Update caller.
478 (stack_cache_enabled): Rename to ...
479 (stack_cache_enabled_p): ... this. Update caller.
480 (_initialize_target_dcache): Replace "data cache" with
481 "target memory cache".
482 * target-dcache.h (stack_cache_enabled): Remove declaration.
483 (stack_cache_enabled_p): Add declaration.
484
485 2013-11-23 Doug Evans <xdje42@gmail.com>
486
487 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
488 superfluous.
489
490 2013-11-23 Doug Evans <xdje42@gmail.com>
491
492 * python/py-frame.c (frapy_block): Fix error message text.
493
494 2013-11-23 Doug Evans <xdje42@gmail.com>
495
496 * cli/cli-script.c (multi_line_command_p): New function.
497 (recurse_read_control_structure, read_command_lines_1): Call it.
498 (execute_control_command): Consistently have a blank line between
499 each case.
500
501 2013-11-22 Sterling Augustine <saugustine@google.com>
502
503 PR gdb/16196:
504 * valprint.c (read_string): Set new variable fetchlen based on
505 fetchlimit and size. Use it in call to partial_memory_read.
506 Update comment.
507
508 2013-11-22 Tom Tromey <tromey@redhat.com>
509
510 PR backtrace/16155:
511 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
512 the return address column is unspecified.
513
514 2013-11-22 Tom Tromey <tromey@redhat.com>
515 Pedro Alves <palves@redhat.com>
516
517 PR backtrace/16155
518 * value.c (value_fetch_lazy): Internal error if
519 get_frame_register_value returns the same register.
520
521 2013-11-22 Pedro Alves <palves@redhat.com>
522 Tom Tromey <tromey@redhat.com>
523
524 * frame.c (frame_stash_add): Now returns whether a frame with the
525 same ID was already known.
526 (compute_frame_id): New function, factored out from get_frame_id.
527 (get_frame_id): No longer lazilly compute the frame id here.
528 (get_prev_frame_if_no_cycle): New function. Detects wider stack
529 cycles.
530 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
531 and checking for stack cycles here.
532
533 2013-11-22 Pedro Alves <palves@redhat.com>
534
535 PR 16155
536 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
537 this frame and the new previous frame, not between this frame and
538 the next frame.
539
540 2013-11-22 Pedro Alves <palves@redhat.com>
541
542 PR 16155
543 * dwarf2-frame.c (struct dwarf2_frame_cache)
544 <checked_tailcall_bottom, entry_cfa_sp_offset,
545 entry_cfa_sp_offset_p>: New fields.
546 (dwarf2_frame_cache): Adjust to use the new cache fields instead
547 of locals. Don't call dwarf2_tailcall_sniffer_first here.
548 (dwarf2_frame_prev_register): Call it here, but only once.
549
550 2013-11-21 Doug Evans <xdje42@gmail.com>
551
552 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
553 (type_equality_entry): Move here from python/py-type.c.
554 (type_equality_entry_d): Ditto.
555 (compare_maybe_null_strings, check_types_equal): Ditto.
556 (check_types_worklist, types_deeply_equal): Ditto.
557 * gdbtypes.h (types_deeply_equal): Declare.
558 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
559 (typy_richcompare): Update.
560
561 2013-11-20 Joel Brobecker <brobecker@adacore.com>
562
563 * python/py-value.c (is_intlike): Delete.
564 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
565 by use of is_integral_type.
566 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
567 by use of is_integral_type and check for TYPE_CODE_PTR.
568
569 2013-11-20 Tom Tromey <tromey@redhat.com>
570
571 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
572 strerror module.
573 * gnulib/aclocal.m4: Update.
574 * gnulib/config.in: Update.
575 * gnulib/configure: Update.
576 * gnulib/import/Makefile.am: Update.
577 * gnulib/import/Makefile.in: Update.
578 * gnulib/import/errno.in.h: Remove.
579 * gnulib/import/intprops.h: Remove.
580 * gnulib/import/m4/errno_h.m4: Remove.
581 * gnulib/import/m4/gnulib-cache.m4: Update.
582 * gnulib/import/m4/gnulib-comp.m4: Update.
583 * gnulib/import/m4/strerror.m4: Remove.
584 * gnulib/import/m4/sys_socket_h.m4: Remove.
585 * gnulib/import/strerror-override.c: Remove.
586 * gnulib/import/strerror-override.h: Remove.
587 * gnulib/import/strerror.c: Remove.
588 * gnulib/update-gnulib.sh: Update.
589
590 2013-11-20 Yao Qi <yao@codesourcery.com>
591
592 * target-dcache.c (target_dcache_get_or_init): Call
593 set_address_space_data if 'dcache' is NULL.
594
595 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
596
597 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
598
599 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
600
601 * python/lib/gdb/command/bound_register.py: New file.
602 * data-directory/Makefile.in: Copy bond_register.py to the right path
603 to be initialized at gdb startup.
604
605 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
606
607 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
608 Add MPX registers.
609 (amd64_linux_read_description): Add initialization for MPX and
610 AVX independently.
611 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
612 (amd64_linux_gregset_reg_offset): Add MPX registers.
613 (amd64_linux_core_read_description): Add initialization for MPX
614 registers.
615 (_initialize_amd64_linux_tdep): Initialize MPX targets.
616 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
617 register on the list.
618 (tdesc_amd64_mpx_linux) Add new target for MPX.
619 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
620 (amd64_mpx_names): MPX register names.
621 (amd64_init_abi): Add MPX register while initializing the ABI.
622 (_initialize_amd64_tdep): Initialize MPX targets.
623 * amd64-tdep.h (amd64_regnum): Add MPX registers.
624 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
625
626 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
627
628 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
629 registers on the range of registers to be read from
630 xsave buffer.
631 (i386_linux_read_description): Add case for MPX.
632 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
633 (i386_linux_gregset_reg_offset): Add MPX registers.
634 (i386_linux_core_read_description): Initialize also MPX.
635 (_initialize_i386_linux_tdep): Add mpx initialization.
636 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
637 mpx_register_names.
638 (i386_regnum): Add MPX registers.
639 (I386_MPX_NUM_REGS): New macro.
640 (i386_bnd_regnum_p): New function.
641 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
642 number of registers to be the number of BNDSTATUS.
643 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
644 * i386-tdep.c: Include features/i386/i386-mpx.c.
645 (i386_mpx_names): Add MPX register names array.
646 (i386_bnd_names): Add bnd pseudo register names array.
647 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
648 registers.
649 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
650 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
651 registers.
652 (i386_bnd_type): New function.
653 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
654 register types.
655 (i386_pseudo_register_read_into_value): Add bnd case.
656 (i386_pseudo_register_write): Add bnd pseudo registers.
657 (i386_register_reggroup_p): Add MPX register to the group all.
658 (i386_validate_tdesc_p): Add MPX to the target description
659 validation.
660 (i386_pseudo_register_name): Add bnd pseudo registers.
661 (i386_gdbarch_init): Add MPX for architecture initialization.
662 (_initia_initialize_i386_tdep): Add mpx initialization.
663 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
664 XSAVE buffer.
665 (XSAVE_MPX_ADDR): New macro.
666 (i387_supply_xsave): Add MPX case.
667 (i387_collect_xsave): Add MPX case.
668 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
669 (I387_BNDCFGU_REGNUM): New macro.
670 (I387_NUM_MPX_REGS): New macro.
671 (I387_NUM_BND_REGS): New macro.
672 (I387_NUM_MPX_CTRL_REGS): New macro.
673 (I387_MPXEND_REGNUM): New macro.
674 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
675 (I386_XSTATE_BNDCFG): Likewise.
676 (I386_XSTATE_MPX_MASK): Likewise.
677 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
678 (I386_XSTATE_BNDREGS_SIZE): New macro.
679 (I386_XSTATE_BNDCFG_SIZE): Likewise.
680 (I386_XSTATE_SIZE): Adapt for MPX.
681 (I386_XSTATE_MAX_SIZE): Likewise.
682
683 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
684
685 * features/i386/Makefile: Adapts for using MPX registers.
686 * features/i386/32bit-mpx.xml: New file.
687 * features/i386/64bit-mpx.xml: Likewise.
688 * features/i386/amd64-mpx-linux.c: Likewise.
689 * features/i386/amd64-mpx-linux.xml: Likewise.
690 * features/i386/amd64-mpx.c: Likewise.
691 * features/i386/amd64-mpx.xml: Likewise.
692 * features/i386/i386-mpx-linux.c: Likewise.
693 * features/i386/i386-mpx-linux.xml: Likewise.
694 * features/i386/i386-mpx.c: Likewise.
695 * features/i386/i386-mpx.xml: Likewise.
696 * regformats/i386/amd64-mpx-linux.dat: New file.
697 * regformats/i386/amd64-mpx.dat: Likewise.
698 * regformats/i386/i386-mpx-linux.dat: Likewise.
699 * regformats/i386/i386-mpx.dat: Likewise.
700
701 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
702
703 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
704 Modified logic of creating a bitfield to be in sync with
705 tdesc_gdb_type.
706
707 2013-11-20 Will Newton <will.newton@linaro.org>
708
709 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
710 error message.
711
712 2013-11-20 Yao Qi <yao@codesourcery.com>
713
714 * progspace.h (struct address_space_data): Declare.
715 * target-dcache.c: Include "progspace.h".
716 (target_dache): Remove.
717 (target_dcache_aspace_key): New.
718 (target_dcache_cleanup): New function.
719 (target_dcache_init_p): Get data through
720 target_dcache_aspace_key.
721 (target_dcache_invalidate): Likewise.
722 (target_dcache_get): Likewise.
723 (target_dcache_get_or_init): Likewise.
724 (_initialize_target_dcache): Initialize
725 target_dcache_aspace_key.
726
727 2013-11-20 Yao Qi <yao@codesourcery.com>
728
729 * progspace.c (struct address_space): Update comments.
730 <REGISTRY_FIELDS>: New fields.
731 DEFINE_REGISTRY for address_space.
732 (new_address_space): Call address_space_alloc_data.
733 (free_address_space): Call address_space_free_data.
734 * progspace.h: Use DECLARE_REGISTRY.
735
736 2013-11-20 Yao Qi <yao@codesourcery.com>
737
738 * Makefile.in (SFILES):Add target-dcache.c.
739 (HFILES_NO_SRCDIR): Add target-dcache.h.
740 (COMMON_OBS): Add target-dcache.o.
741 * dcache.c: Remove inclusion to "target.h". Include
742 "target-dcache.h".
743 * memattr.c: Include "target-dcache.h".
744 * top.c: Likewise.
745 * tracepoint.c: Likewise.
746 * target.c: (stack_cache_enabled_p_1): Move to
747 target-dcache.c.
748 (stack_cache_enabled_p): Likewise.
749 (set_stack_cache_enabled_p): Likewise.
750 (show_stack_cache_enabled_p): Likewise.
751 (target_dcache, target_dcache_init_p): Likewise.
752 (target_dcache_invalidate): Likewise.
753 (target_dcache_get, target_dcache_get_or_init): Likewise.
754 (memory_xfer_partial_1): Call function stack_cache_enabled.
755 (initialize_target): Move code to target-dcache.c.
756 * target.h (target_dcache_invalidate): Move to
757 target-dcache.h.
758 (target_dcache_get): Likewise.
759 * target-dcache.c: New.
760 * target-dcache.h: New.
761
762 2013-11-20 Yao Qi <yao@codesourcery.com>
763
764 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
765 it is initialized.
766
767 2013-11-20 Yao Qi <yao@codesourcery.com>
768
769 * dcache.c (last_cache): Remove.
770 (dcache_free, dcache_init): Update.
771 (dcache_update):
772 (dcache_print_line): Add parameter 'dcache'. Replace
773 'target_dcache' with 'dcache'.
774 (dcache_info): Move code to dcache_info_1. Call
775 'dcache_info_1'.
776 (dcache_info_1): New function.
777 (set_dcache_size): Call target_dcache_invalidate.
778 (set_dcache_line_size): Call target_dcache_invalidate.
779 * target.c (target_dcache_init_p): New function.
780 (target_dcache_invalidate): Check target_dcache_init_p first.
781 (target_dcache_get, target_dcache_get_or_init): New function.
782 (memory_xfer_partial_1): Adjust.
783 (initialize_target): Don't initialize 'target_dcache'.
784 * target.h (struct dcache_struct): Declare.
785 (target_dcache_get): Declare.
786
787 2013-11-19 Yao Qi <yao@codesourcery.com>
788
789 * varobj.c (varobj_get_type): Fix typo.
790
791 2013-11-19 Joel Brobecker <brobecker@adacore.com>
792
793 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
794
795 2013-11-19 Joel Brobecker <brobecker@adacore.com>
796
797 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
798 "stat.h".
799
800 2013-11-18 Tom Tromey <tromey@redhat.com>
801
802 * common/gdb_stat.h: Remove.
803 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
804 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
805 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
806 * corefile.c: Use sys/stat.h, not gdb_stat.h.
807 * ctf.c: Use sys/stat.h, not gdb_stat.h.
808 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
809 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
810 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
811 * exec.c: Use sys/stat.h, not gdb_stat.h.
812 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
813 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
814 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
815 * jit.c: Use sys/stat.h, not gdb_stat.h.
816 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
817 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
818 * main.c: Use sys/stat.h, not gdb_stat.h.
819 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
820 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
821 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
822 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
823 * procfs.c: Use sys/stat.h, not gdb_stat.h.
824 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
825 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
826 * remote.c: Use sys/stat.h, not gdb_stat.h.
827 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
828 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
829 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
830 * source.c: Use sys/stat.h, not gdb_stat.h.
831 * symfile.c: Use sys/stat.h, not gdb_stat.h.
832 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
833 * symtab.c: Use sys/stat.h, not gdb_stat.h.
834 * top.c: Use sys/stat.h, not gdb_stat.h.
835 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
836
837 2013-11-18 Tom Tromey <tromey@redhat.com>
838
839 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
840 sys_stat.
841 * gnulib/aclocal.m4: Update.
842 * gnulib/config.in: Update.
843 * gnulib/configure: Update.
844 * gnulib/import/Makefile.am: Update.
845 * gnulib/import/Makefile.in: Update.
846 * gnulib/import/m4/gnulib-cache.m4: Update.
847 * gnulib/import/m4/gnulib-comp.m4: Update.
848 * gnulib/import/m4/sys_stat_h.m4: New.
849 * gnulib/import/m4/time_h.m4: New.
850 * gnulib/import/sys_stat.in.h: New.
851 * gnulib/import/time.in.h: New.
852
853 2013-11-18 Tom Tromey <tromey@redhat.com>
854
855 * configure: Rebuild.
856 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
857
858 2013-11-18 Tom Tromey <tromey@redhat.com>
859
860 * configure: Rebuild.
861 * configure.ac: Don't check for unistd.h.
862
863 2013-11-18 Tom Tromey <tromey@redhat.com>
864
865 * configure: Rebuild.
866 * configure.ac: Don't check for stdlib.h
867 * defs.h: Include stdlib.h unconditionally.
868
869 2013-11-18 Tom Tromey <tromey@redhat.com>
870
871 * config.in: Rebuild.
872 * configure: Rebuild.
873 * configure.ac: Don't check for stddef.h.
874 * defs.h: Unconditionally include stddef.h. Remove duplicate
875 inclusion.
876
877 2013-11-18 Tom Tromey <tromey@redhat.com>
878
879 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
880 * common/gdb_dirent.h: Remove.
881 * common/filestuff.c: Use dirent.h.
882 * common/linux-osdata.c: Use dirent.h.
883 (NAMELEN): Define.
884 * config.in: Rebuild.
885 * configure: Rebuild.
886 * configure.ac: Don't use AC_HEADER_DIRENT.
887 * linux-fork.c: Use dirent.h
888 * linux-nat.c: Use dirent.h.
889 * nto-procfs.c: Use dirent.h.
890 * procfs.c: Use dirent.h.
891
892 2013-11-18 Tom Tromey <tromey@redhat.com>
893
894 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
895 * gnulib/aclocal.m4: Update.
896 * gnulib/config.in: Update.
897 * gnulib/configure: Update.
898 * gnulib/import/Makefile.am: Update.
899 * gnulib/import/Makefile.in: Update.
900 * gnulib/import/dirent.in.h: New.
901 * gnulib/import/m4/dirent_h.m4: New.
902 * gnulib/import/m4/gnulib-cache.m4: Update.
903 * gnulib/import/m4/gnulib-comp.m4: Update.
904
905 2013-11-18 Tom Tromey <tromey@redhat.com>
906
907 * configure: Rebuild.
908 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
909 strings.h.
910
911 2013-11-18 Tom Tromey <tromey@redhat.com>
912
913 * common/gdb_string.h: Remove.
914 * aarch64-tdep.c: Use string.h, not gdb_string.h.
915 * ada-exp.y: Use string.h, not gdb_string.h.
916 * ada-lang.c: Use string.h, not gdb_string.h.
917 * ada-lex.l: Use string.h, not gdb_string.h.
918 * ada-typeprint.c: Use string.h, not gdb_string.h.
919 * ada-valprint.c: Use string.h, not gdb_string.h.
920 * aix-thread.c: Use string.h, not gdb_string.h.
921 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
922 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
923 * alpha-nat.c: Use string.h, not gdb_string.h.
924 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
925 * alpha-tdep.c: Use string.h, not gdb_string.h.
926 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
927 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
928 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
929 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
930 * amd64-nat.c: Use string.h, not gdb_string.h.
931 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
932 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
933 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
934 * arch-utils.c: Use string.h, not gdb_string.h.
935 * arm-linux-nat.c: Use string.h, not gdb_string.h.
936 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
937 * arm-tdep.c: Use string.h, not gdb_string.h.
938 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
939 * armbsd-tdep.c: Use string.h, not gdb_string.h.
940 * armnbsd-nat.c: Use string.h, not gdb_string.h.
941 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
942 * armobsd-tdep.c: Use string.h, not gdb_string.h.
943 * avr-tdep.c: Use string.h, not gdb_string.h.
944 * ax-gdb.c: Use string.h, not gdb_string.h.
945 * ax-general.c: Use string.h, not gdb_string.h.
946 * bcache.c: Use string.h, not gdb_string.h.
947 * bfin-tdep.c: Use string.h, not gdb_string.h.
948 * breakpoint.c: Use string.h, not gdb_string.h.
949 * build-id.c: Use string.h, not gdb_string.h.
950 * buildsym.c: Use string.h, not gdb_string.h.
951 * c-exp.y: Use string.h, not gdb_string.h.
952 * c-lang.c: Use string.h, not gdb_string.h.
953 * c-typeprint.c: Use string.h, not gdb_string.h.
954 * c-valprint.c: Use string.h, not gdb_string.h.
955 * charset.c: Use string.h, not gdb_string.h.
956 * cli-out.c: Use string.h, not gdb_string.h.
957 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
958 * cli/cli-decode.c: Use string.h, not gdb_string.h.
959 * cli/cli-dump.c: Use string.h, not gdb_string.h.
960 * cli/cli-interp.c: Use string.h, not gdb_string.h.
961 * cli/cli-logging.c: Use string.h, not gdb_string.h.
962 * cli/cli-script.c: Use string.h, not gdb_string.h.
963 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
964 * cli/cli-utils.c: Use string.h, not gdb_string.h.
965 * coffread.c: Use string.h, not gdb_string.h.
966 * common/common-utils.c: Use string.h, not gdb_string.h.
967 * common/filestuff.c: Use string.h, not gdb_string.h.
968 * common/linux-procfs.c: Use string.h, not gdb_string.h.
969 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
970 * common/signals.c: Use string.h, not gdb_string.h.
971 * common/vec.h: Use string.h, not gdb_string.h.
972 * core-regset.c: Use string.h, not gdb_string.h.
973 * corefile.c: Use string.h, not gdb_string.h.
974 * corelow.c: Use string.h, not gdb_string.h.
975 * cp-abi.c: Use string.h, not gdb_string.h.
976 * cp-support.c: Use string.h, not gdb_string.h.
977 * cp-valprint.c: Use string.h, not gdb_string.h.
978 * cris-tdep.c: Use string.h, not gdb_string.h.
979 * d-lang.c: Use string.h, not gdb_string.h.
980 * dbxread.c: Use string.h, not gdb_string.h.
981 * dcache.c: Use string.h, not gdb_string.h.
982 * demangle.c: Use string.h, not gdb_string.h.
983 * dicos-tdep.c: Use string.h, not gdb_string.h.
984 * disasm.c: Use string.h, not gdb_string.h.
985 * doublest.c: Use string.h, not gdb_string.h.
986 * dsrec.c: Use string.h, not gdb_string.h.
987 * dummy-frame.c: Use string.h, not gdb_string.h.
988 * dwarf2-frame.c: Use string.h, not gdb_string.h.
989 * dwarf2loc.c: Use string.h, not gdb_string.h.
990 * dwarf2read.c: Use string.h, not gdb_string.h.
991 * elfread.c: Use string.h, not gdb_string.h.
992 * environ.c: Use string.h, not gdb_string.h.
993 * eval.c: Use string.h, not gdb_string.h.
994 * event-loop.c: Use string.h, not gdb_string.h.
995 * exceptions.c: Use string.h, not gdb_string.h.
996 * exec.c: Use string.h, not gdb_string.h.
997 * expprint.c: Use string.h, not gdb_string.h.
998 * f-exp.y: Use string.h, not gdb_string.h.
999 * f-lang.c: Use string.h, not gdb_string.h.
1000 * f-typeprint.c: Use string.h, not gdb_string.h.
1001 * f-valprint.c: Use string.h, not gdb_string.h.
1002 * fbsd-nat.c: Use string.h, not gdb_string.h.
1003 * findcmd.c: Use string.h, not gdb_string.h.
1004 * findvar.c: Use string.h, not gdb_string.h.
1005 * fork-child.c: Use string.h, not gdb_string.h.
1006 * frame.c: Use string.h, not gdb_string.h.
1007 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1008 * frv-tdep.c: Use string.h, not gdb_string.h.
1009 * gdb.c: Use string.h, not gdb_string.h.
1010 * gdb_bfd.c: Use string.h, not gdb_string.h.
1011 * gdbarch.c: Use string.h, not gdb_string.h.
1012 * gdbtypes.c: Use string.h, not gdb_string.h.
1013 * gnu-nat.c: Use string.h, not gdb_string.h.
1014 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1015 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1016 * go-exp.y: Use string.h, not gdb_string.h.
1017 * go-lang.c: Use string.h, not gdb_string.h.
1018 * go32-nat.c: Use string.h, not gdb_string.h.
1019 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1020 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1021 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1022 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1023 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1024 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1025 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1026 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1027 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1028 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1029 * i386-tdep.c: Use string.h, not gdb_string.h.
1030 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1031 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1032 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1033 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1034 * i387-tdep.c: Use string.h, not gdb_string.h.
1035 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1036 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1037 * inf-child.c: Use string.h, not gdb_string.h.
1038 * inf-ptrace.c: Use string.h, not gdb_string.h.
1039 * inf-ttrace.c: Use string.h, not gdb_string.h.
1040 * infcall.c: Use string.h, not gdb_string.h.
1041 * infcmd.c: Use string.h, not gdb_string.h.
1042 * inflow.c: Use string.h, not gdb_string.h.
1043 * infrun.c: Use string.h, not gdb_string.h.
1044 * interps.c: Use string.h, not gdb_string.h.
1045 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1046 * irix5-nat.c: Use string.h, not gdb_string.h.
1047 * jv-exp.y: Use string.h, not gdb_string.h.
1048 * jv-lang.c: Use string.h, not gdb_string.h.
1049 * jv-typeprint.c: Use string.h, not gdb_string.h.
1050 * jv-valprint.c: Use string.h, not gdb_string.h.
1051 * language.c: Use string.h, not gdb_string.h.
1052 * linux-fork.c: Use string.h, not gdb_string.h.
1053 * linux-nat.c: Use string.h, not gdb_string.h.
1054 * lm32-tdep.c: Use string.h, not gdb_string.h.
1055 * m2-exp.y: Use string.h, not gdb_string.h.
1056 * m2-typeprint.c: Use string.h, not gdb_string.h.
1057 * m32c-tdep.c: Use string.h, not gdb_string.h.
1058 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1059 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1060 * m32r-rom.c: Use string.h, not gdb_string.h.
1061 * m32r-tdep.c: Use string.h, not gdb_string.h.
1062 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1063 * m68k-tdep.c: Use string.h, not gdb_string.h.
1064 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1065 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1066 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1067 * m88k-tdep.c: Use string.h, not gdb_string.h.
1068 * macrocmd.c: Use string.h, not gdb_string.h.
1069 * main.c: Use string.h, not gdb_string.h.
1070 * mdebugread.c: Use string.h, not gdb_string.h.
1071 * mem-break.c: Use string.h, not gdb_string.h.
1072 * memattr.c: Use string.h, not gdb_string.h.
1073 * memory-map.c: Use string.h, not gdb_string.h.
1074 * mep-tdep.c: Use string.h, not gdb_string.h.
1075 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1076 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1077 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1078 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1079 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1080 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1081 * mi/mi-console.c: Use string.h, not gdb_string.h.
1082 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1083 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1084 * mi/mi-main.c: Use string.h, not gdb_string.h.
1085 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1086 * microblaze-rom.c: Use string.h, not gdb_string.h.
1087 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1088 * mingw-hdep.c: Use string.h, not gdb_string.h.
1089 * minidebug.c: Use string.h, not gdb_string.h.
1090 * minsyms.c: Use string.h, not gdb_string.h.
1091 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1092 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1093 * mips-tdep.c: Use string.h, not gdb_string.h.
1094 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1095 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1096 * mipsread.c: Use string.h, not gdb_string.h.
1097 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1098 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1099 * monitor.c: Use string.h, not gdb_string.h.
1100 * moxie-tdep.c: Use string.h, not gdb_string.h.
1101 * mt-tdep.c: Use string.h, not gdb_string.h.
1102 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1103 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1104 * nto-procfs.c: Use string.h, not gdb_string.h.
1105 * nto-tdep.c: Use string.h, not gdb_string.h.
1106 * objc-lang.c: Use string.h, not gdb_string.h.
1107 * objfiles.c: Use string.h, not gdb_string.h.
1108 * opencl-lang.c: Use string.h, not gdb_string.h.
1109 * osabi.c: Use string.h, not gdb_string.h.
1110 * osdata.c: Use string.h, not gdb_string.h.
1111 * p-exp.y: Use string.h, not gdb_string.h.
1112 * p-lang.c: Use string.h, not gdb_string.h.
1113 * p-typeprint.c: Use string.h, not gdb_string.h.
1114 * parse.c: Use string.h, not gdb_string.h.
1115 * posix-hdep.c: Use string.h, not gdb_string.h.
1116 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1117 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1118 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1119 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1120 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1121 * printcmd.c: Use string.h, not gdb_string.h.
1122 * procfs.c: Use string.h, not gdb_string.h.
1123 * prologue-value.c: Use string.h, not gdb_string.h.
1124 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1125 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1126 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1127 * regcache.c: Use string.h, not gdb_string.h.
1128 * registry.c: Use string.h, not gdb_string.h.
1129 * remote-fileio.c: Use string.h, not gdb_string.h.
1130 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1131 * remote-mips.c: Use string.h, not gdb_string.h.
1132 * remote-sim.c: Use string.h, not gdb_string.h.
1133 * remote.c: Use string.h, not gdb_string.h.
1134 * reverse.c: Use string.h, not gdb_string.h.
1135 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1136 * ser-base.c: Use string.h, not gdb_string.h.
1137 * ser-go32.c: Use string.h, not gdb_string.h.
1138 * ser-mingw.c: Use string.h, not gdb_string.h.
1139 * ser-pipe.c: Use string.h, not gdb_string.h.
1140 * ser-tcp.c: Use string.h, not gdb_string.h.
1141 * ser-unix.c: Use string.h, not gdb_string.h.
1142 * serial.c: Use string.h, not gdb_string.h.
1143 * sh-tdep.c: Use string.h, not gdb_string.h.
1144 * sh64-tdep.c: Use string.h, not gdb_string.h.
1145 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1146 * skip.c: Use string.h, not gdb_string.h.
1147 * sol-thread.c: Use string.h, not gdb_string.h.
1148 * solib-dsbt.c: Use string.h, not gdb_string.h.
1149 * solib-frv.c: Use string.h, not gdb_string.h.
1150 * solib-osf.c: Use string.h, not gdb_string.h.
1151 * solib-spu.c: Use string.h, not gdb_string.h.
1152 * solib-target.c: Use string.h, not gdb_string.h.
1153 * solib.c: Use string.h, not gdb_string.h.
1154 * somread.c: Use string.h, not gdb_string.h.
1155 * source.c: Use string.h, not gdb_string.h.
1156 * sparc-nat.c: Use string.h, not gdb_string.h.
1157 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1158 * sparc-tdep.c: Use string.h, not gdb_string.h.
1159 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1160 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1161 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1162 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1163 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1164 * spu-multiarch.c: Use string.h, not gdb_string.h.
1165 * spu-tdep.c: Use string.h, not gdb_string.h.
1166 * stabsread.c: Use string.h, not gdb_string.h.
1167 * stack.c: Use string.h, not gdb_string.h.
1168 * std-regs.c: Use string.h, not gdb_string.h.
1169 * symfile.c: Use string.h, not gdb_string.h.
1170 * symmisc.c: Use string.h, not gdb_string.h.
1171 * symtab.c: Use string.h, not gdb_string.h.
1172 * target.c: Use string.h, not gdb_string.h.
1173 * thread.c: Use string.h, not gdb_string.h.
1174 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1175 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1176 * top.c: Use string.h, not gdb_string.h.
1177 * tracepoint.c: Use string.h, not gdb_string.h.
1178 * tui/tui-command.c: Use string.h, not gdb_string.h.
1179 * tui/tui-data.c: Use string.h, not gdb_string.h.
1180 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1181 * tui/tui-file.c: Use string.h, not gdb_string.h.
1182 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1183 * tui/tui-out.c: Use string.h, not gdb_string.h.
1184 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1185 * tui/tui-source.c: Use string.h, not gdb_string.h.
1186 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1187 * tui/tui-win.c: Use string.h, not gdb_string.h.
1188 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1189 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1190 * typeprint.c: Use string.h, not gdb_string.h.
1191 * ui-file.c: Use string.h, not gdb_string.h.
1192 * ui-out.c: Use string.h, not gdb_string.h.
1193 * user-regs.c: Use string.h, not gdb_string.h.
1194 * utils.c: Use string.h, not gdb_string.h.
1195 * v850-tdep.c: Use string.h, not gdb_string.h.
1196 * valarith.c: Use string.h, not gdb_string.h.
1197 * valops.c: Use string.h, not gdb_string.h.
1198 * valprint.c: Use string.h, not gdb_string.h.
1199 * value.c: Use string.h, not gdb_string.h.
1200 * varobj.c: Use string.h, not gdb_string.h.
1201 * vax-tdep.c: Use string.h, not gdb_string.h.
1202 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1203 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1204 * windows-nat.c: Use string.h, not gdb_string.h.
1205 * xcoffread.c: Use string.h, not gdb_string.h.
1206 * xml-support.c: Use string.h, not gdb_string.h.
1207 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1208 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1209
1210 2013-11-18 Tom Tromey <tromey@redhat.com>
1211
1212 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1213 and strstr.
1214 * gnulib/aclocal.m4: Update.
1215 * gnulib/config.in: Update.
1216 * gnulib/configure: Update.
1217 * gnulib/import/Makefile.am: Update.
1218 * gnulib/import/Makefile.in: Update.
1219 * gnulib/import/errno.in.h: New.
1220 * gnulib/import/intprops.h: New.
1221 * gnulib/import/m4/errno_h.m4: New.
1222 * gnulib/import/m4/gnulib-cache.m4: Update.
1223 * gnulib/import/m4/gnulib-comp.m4: Update.
1224 * gnulib/import/m4/strerror.m4: New.
1225 * gnulib/import/m4/strstr.m4: New.
1226 * gnulib/import/m4/sys_socket_h.m4: New.
1227 * gnulib/import/strerror-override.c: New.
1228 * gnulib/import/strerror-override.h: New.
1229 * gnulib/import/strerror.c: New.
1230 * gnulib/import/strstr.c: New.
1231
1232 2013-11-18 Tom Tromey <tromey@redhat.com>
1233
1234 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1235 multiple lines.
1236
1237 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1238
1239 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1240 * sparc-tdep.h: And its prototype.
1241
1242 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1243 function.
1244 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1245
1246 2013-11-18 Pedro Alves <palves@redhat.com>
1247
1248 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1249 use unpack_pointer.
1250
1251 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1252
1253 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1254 to -list-features output.
1255
1256 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1257
1258 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1259 <read_addr_from_reg>: Renames "read_reg".
1260 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1261 Adjust comment.
1262 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1263 Use read_addr_from_reg in place of read_reg.
1264 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1265 in place of read_reg.
1266 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1267 dwarf_expr_read_reg.
1268 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1269 with dwarf_expr_read_addr_from_reg.
1270 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1271 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1272 needs_frame_read_addr_from_reg.
1273
1274 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1275
1276 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1277
1278 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1279
1280 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1281 NULL.
1282
1283 2013-11-15 Tom Tromey <tromey@redhat.com>
1284
1285 PR c++/16117:
1286 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1287 (classify_name): Likewise. Prefer a field of "this" over a
1288 filename.
1289 (classify_inner_name, yylex): Update.
1290
1291 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1292
1293 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1294 Extend the documentation a bit.
1295 <get_reg_value>: New field.
1296 * dwarf2loc.c (dwarf_expr_get_reg_value)
1297 (needs_frame_get_reg_value): New functions.
1298 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1299 callback.
1300 * dwarf2-frame.c (get_reg_value): New function.
1301 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1302 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1303 Use new callback to compute result_val.
1304
1305 2013-11-15 Alan Modra <amodra@gmail.com>
1306
1307 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1308 (ppc64_desc_entry_point): ..this. Update comments here and at
1309 call points.
1310 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1311 ppc64_standard_linkage3): Update comments.
1312 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1313 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1314 patterns.
1315 (ppc64_standard_linkage4_target): New function.
1316 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1317 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1318 nop match. Fix comment wrap.
1319
1320 2013-11-14 Pedro Alves <palves@redhat.com>
1321
1322 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1323 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1324
1325 2013-11-14 Pedro Alves <palves@redhat.com>
1326
1327 * infrun.c (struct execution_control_state)
1328 <stepped_after_stopped_by_watchpoint>: New field.
1329 (get_inferior_stop_soon): New function.
1330 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1331 moved to struct execution_control_state -- adjust. Use
1332 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1333 new function.
1334 (handle_signal_stop): New function, factored out from
1335 handle_inferior_event.
1336
1337 2013-11-14 Pedro Alves <palves@redhat.com>
1338
1339 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1340 return a boolean.
1341 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1342 boolean.
1343 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1344 Adjust to return a boolean.
1345 * breakpoint.h (enum bpstat_signal_value): Delete.
1346 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1347 (bpstat_explains_signal): Likewise.
1348 * infrun.c (handle_inferior_event) <random signal checks>:
1349 bpstat_explains_signal now returns a boolean - adjust. No longer
1350 consider hiding signals.
1351
1352 2013-11-14 Pedro Alves <palves@redhat.com>
1353
1354 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1355 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1356 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1357 BPSTAT_SIGNAL_HIDE.
1358 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1359 instead of BPSTAT_SIGNAL_HIDE.
1360 * infrun.c (handle_inferior_event): Rework random signal checks.
1361
1362 2013-11-14 Pedro Alves <palves@redhat.com>
1363
1364 * infrun.c (struct execution_control_state): Remove
1365 'random_signal' field.
1366 (handle_syscall_event): Use bpstat_causes_stop instead of
1367 bpstat_explains_signal. Don't set ecs->random_signal.
1368 (handle_inferior_event): New 'random_signal' local.
1369 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1370 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1371 bpstat_explains_signal. Don't set ecs->random_signal.
1372 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1373 ecs->random_signal.
1374
1375 2013-11-14 Pedro Alves <palves@redhat.com>
1376
1377 * infrun.c (handle_inferior_event): Move comment from the
1378 function's body to the function's description, adjusted.
1379
1380 2013-11-14 Pedro Alves <palves@redhat.com>
1381
1382 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1383 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1384 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1385 case.
1386
1387 2013-11-14 Tom Tromey <tromey@redhat.com>
1388
1389 * python/py-linetable.c (ltpy_has_line)
1390 (ltpy_get_all_source_lines): Fix loop termination condition.
1391
1392 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1393
1394 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1395 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1396 PARSE->LANGUAGE during command execution, if set.
1397 * mi/mi-parse.c: Add "language.h" #include.
1398 (mi_parse): Add parsing of "--language" command option.
1399
1400 * NEWS: Add entry mentioning the new "--language" command option.
1401
1402 2013-11-14 Pedro Alves <palves@redhat.com>
1403 Joel Brobecker <brobecker@adacore.com>
1404
1405 * cli/cli-utils.h (extract_arg_const): Add declaration.
1406 * cli/cli-utils.c (extract_arg_const): New function.
1407 (extract_arg): Reimplement using extract_arg_const.
1408
1409 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1410
1411 * language.h: Add "symtab.h" #include.
1412
1413 2013-11-13 Doug Evans <xdje42@gmail.com>
1414
1415 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1416 specific breakpoints, don't evaluate breakpoint condition if
1417 different thread.
1418
1419 2013-11-13 Keith Seitz <keiths@redhat.com>
1420
1421 PR c++/7935
1422 PR c++/10541
1423 * cp-support.c (insepct_type): Add support for substituting
1424 namespace aliases, too.
1425 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1426 for DW_TAG_imported_declaration.
1427 (add_partial_symbol): Likewise.
1428 (process_die): Handle namespace aliases with
1429 read_namespace_alias.
1430 (die_needs_namespace): Add DW_TAG_imported_declaration.
1431 (read_namespace_alias): New function.
1432 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1433 (new_symbol_full): Handle DW_TAG_imported_declaration.
1434
1435 2013-11-13 Keith Seitz <keiths@redhat.com>
1436
1437 * p-exp.y (uptok): Make first parameter const.
1438 (yylex): Make `tokstart' and `tokptr' const.
1439 Don't copy the lexer input to a temporary buffer.
1440 Make `p' const.
1441 Remove const workaround for parse_escape.
1442 Create a temporary buffer for a convenience variable instead
1443 of doing in-place modification of the input.
1444 If a match is found with a different case from the input,
1445 do not change the input at all.
1446 Use `tmp' to construct the resultant stoken instead of
1447 `tokstart'.
1448
1449 2013-11-13 Doug Evans <xdje42@gmail.com>
1450
1451 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1452
1453 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1454
1455 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1456 entry with "ada-exceptions".
1457
1458 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1459
1460 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1461 after re-initialization of OBJFILE's obstack.
1462
1463 2013-11-12 Doug Evans <xdje42@gmail.com>
1464
1465 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1466 bs->stop != 0 on entry. Update function comment. Simplify early
1467 exit for frame mismatch. Reindent rest of function.
1468
1469 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1470
1471 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1472 NULL.
1473
1474 2013-11-12 Doug Evans <dje@google.com>
1475
1476 Work around gold/15646.
1477 * dwarf2read.c (read_index_from_section): Update comment.
1478 (struct dw2_symtab_iterator): New member global_seen.
1479 (dw2_symtab_iter_init): Initialize it.
1480 (dw2_symtab_iter_next): Skip duplicate global symbols.
1481 (dw2_expand_symtabs_matching): Ditto.
1482
1483 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1484
1485 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1486 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1487 command.
1488 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1489 (mi_cmd_info_ada_exceptions): New function.
1490 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1491
1492 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1493
1494 * ada-lang.h: #include "vec.h".
1495 (struct ada_exc_info): New.
1496 (ada_exc_info): New typedef.
1497 (DEF_VEC_O(ada_exc_info)): New vector.
1498 (ada_exceptions_list): Add declaration.
1499 * ada-lang.c (ada_is_exception_sym)
1500 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1501 (sort_remove_dups_ada_exceptions_list)
1502 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1503 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1504 (ada_exceptions_list_1, ada_exceptions_list)
1505 (info_exceptions_command): New function.
1506 (_initialize_ada_language): Add "info exception" command.
1507
1508 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1509
1510 PR python/15629
1511 * NEWS: Add linetable feature.
1512 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1513 * python/py-linetable.c: New file.
1514 * python/py-symtab.c (stpy_get_linetable): New function.
1515 * python/python-internal.h (symtab_to_linetable_object): Declare.
1516 (gdbpy_initialize_linetable): Ditto.
1517 * python/python.c (_initialize_python): Call
1518 gdbpy_initialize_linetable.
1519
1520 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1521
1522 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1523 the documentation of fields "except_string" and "condition".
1524 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1525 CONDITION on the heap before passing it to
1526 create_ada_exception_catchpoint.
1527 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1528 CONDITION.
1529
1530 2013-11-11 Tom Tromey <tromey@redhat.com>
1531
1532 * config.in, configure: Rebuild.
1533 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1534
1535 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1536
1537 * remote-sim.c (gdbsim_detach): Break declaration into
1538 shorter lines. No code change.
1539
1540 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1541
1542 * remote-sim.c (gdbsim_detach): Fix prototype.
1543
1544 2013-11-08 Doug Evans <dje@google.com>
1545
1546 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1547 (create_debug_types_hash_table): Only print debugging messages for
1548 each TU if dwarf2-read >= 2.
1549 (process_queue): Ditto.
1550 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1551 Update doc string.
1552
1553 2013-11-08 Tom Tromey <tromey@redhat.com>
1554
1555 * configure: Rebuild.
1556 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1557
1558 2013-11-08 Tom Tromey <tromey@redhat.com>
1559
1560 * configure, config.in: Rebuild.
1561 * configure.ac: Remove unused configury.
1562
1563 2013-11-08 Tom Tromey <tromey@redhat.com>
1564
1565 * m32c-tdep.c: Use gdb_string.h.
1566
1567 2013-11-08 Tom Tromey <tromey@redhat.com>
1568
1569 * configure, config.in: Rebuild.
1570 * configure.ac: Remove all link.h-related checks.
1571
1572 2013-11-08 Tom Tromey <tromey@redhat.com>
1573
1574 * acinclude.m4: Include common.m4.
1575 * common/common.m4: New file.
1576 * configure, config.in: Rebuild.
1577 * configure.ac: Use GDB_AC_COMMON.
1578
1579 2013-11-08 Doug Evans <dje@google.com>
1580
1581 * NEWS: Mention that "set debug symtab-create" now accepts a
1582 verbosity level.
1583 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1584 to set the symtab's primary flag.
1585 * jit.c (finalize_symtab): Ditto.
1586 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1587 * symfile.c (allocate_symtab): Only print debugging messages for
1588 symtab_create_debug levels 2 and higher.
1589 * symtab.c (symtab_create_debug): Change type to unsigned int.
1590 (set_symtab_primary): New function.
1591 (_initialize_symtab): Change "set debug symtab-create" to a
1592 zuinteger option.
1593 * symtab.h (set_symtab_primary): Declare.
1594 (symtab_create_debug): Update decl.
1595
1596 2013-11-08 Tom Tromey <tromey@redhat.com>
1597
1598 * aix-thread.c (aix_thread_detach): Update.
1599 * corelow.c (core_detach): Update.
1600 * darwin-nat.c (darwin_detach): Update.
1601 * dec-thread.c (dec_thread_detach): Update.
1602 * gnu-nat.c (gnu_detach): Update.
1603 * go32-nat.c (go32_detach): Update.
1604 * inf-ptrace.c (inf_ptrace_detach): Update.
1605 * inf-ttrace.c (inf_ttrace_detach): Update.
1606 * linux-fork.c (linux_fork_detach): Update.
1607 * linux-fork.h (linux_fork_detach): Update.
1608 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1609 local for const-correctness.
1610 * linux-thread-db.c (thread_db_detach): Update.
1611 * monitor.c (monitor_detach): Update.
1612 * nto-procfs.c (procfs_detach): Update.
1613 * procfs.c (procfs_detach): Update.
1614 * record.c (record_detach): Update.
1615 * record.h (record_detach): Update.
1616 * remote-m32r-sdi.c (m32r_detach): Update.
1617 * remote-mips.c (mips_detach): Update.
1618 * remote-sim.c (gdbsim_detach): Update.
1619 * remote.c (remote_detach_1, remote_detach)
1620 (extended_remote_detach): Update.
1621 * sol-thread.c (sol_thread_detach): Update.
1622 * target.c (target_detach): Make "args" const.
1623 (init_dummy_target): Update.
1624 * target.h (struct target_ops) <to_detach>: Make argument const.
1625 (target_detach): Likewise.
1626 * windows-nat.c (windows_detach): Update.
1627
1628 2013-11-07 Doug Evans <dje@google.com>
1629
1630 PR 11786
1631 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1632 and align fields for PT_GNU_RELRO segments.
1633
1634 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1635
1636 PR python/15747
1637 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1638
1639 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1640
1641 * NEWS: Document Python temporary breakpoint support.
1642 * python/py-breakpoint.c (bppy_get_temporary): New function.
1643 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1644 to temporary if True.
1645
1646 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1647
1648 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1649 removed to allow analyzing unconditional branch instructions
1650 with PC-relative offsets of zero.
1651
1652 2013-11-07 Yao Qi <yao@codesourcery.com>
1653
1654 * mi/mi-cmd-var.c: Include "language.h".
1655 (mi_cmd_var_info_expression): Get language name from
1656 language_defn.
1657 * varobj.c (varobj_language_string): Remove.
1658 (variable_language): Remove declaration.
1659 (languages): Remove.
1660 (varobj_get_language): Change the type of return value.
1661 (variable_language): Remove.
1662 * varobj.h (enum varobj_languages): Remove.
1663 (varobj_language_string): Remove declaration.
1664 (varobj_get_language): Update declaration.
1665
1666 2013-11-07 Yao Qi <yao@codesourcery.com>
1667
1668 * language.h (struct language_defn) <la_natural_name>: New
1669 field.
1670 * ada-lang.c (ada_language_defn): Initialize field
1671 'la_natural_name'.
1672 * c-lang.c (c_language_defn): Likewise.
1673 (cplus_language_defn, asm_language_defn): Likewise.
1674 * d-lang.c (d_language_defn): Likewise.
1675 * f-lang.c (f_language_defn): Likewise.
1676 * go-lang.c (go_language_defn): Likewise.
1677 * jv-lang.c (java_language_defn): Likewise.
1678 * language.c (unknown_language_defn ): Likewise.
1679 (auto_language_defn): Likewise.
1680 * m2-lang.c (m2_language_defn): Likewise.
1681 * objc-lang.c (objc_language_defn): Likewise.
1682 * opencl-lang.c (opencl_language_defn): Likewise.
1683 * p-lang.c (pascal_language_defn): Likewise.
1684
1685 2013-11-07 Yao Qi <yao@codesourcery.com>
1686
1687 * language.c (language_str): Return const char *.
1688 (add_language): Add const to 'language_names'
1689 * language.h (struct language_defn) <la_name>: Add const.
1690 (language_str: Update declaration.
1691
1692 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1693
1694 * s390-linux-nat.c (s390_read_description): Consider the TE field
1695 in the HWCAP for determining 'have_regset_tdb'.
1696
1697 2013-11-06 Will Newton <will.newton@linaro.org>
1698
1699 PR gdb/12866
1700 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1701 values. (read_partial_die): Likewise.
1702
1703 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1704
1705 PR cli/16122
1706 * top.c (command_line_input): Unify interactivity tests to use
1707 input_from_terminal_p.
1708 * event-top.c (command_line_handler): Likewise.
1709
1710 2013-11-06 Yao Qi <yao@codesourcery.com>
1711
1712 * Makefile.in (check-perf): New target.
1713
1714 2013-11-05 Will Newton <will.newton@linaro.org>
1715
1716 PR gdb/7670
1717 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1718 (arm_print_float_info): Likewise.
1719
1720 2013-11-04 Anton Blanchard <anton@samba.org>
1721
1722 * target.c (memory_xfer_partial): Cap write to 4KB.
1723
1724 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1725
1726 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1727 probe scan even when the arch provides no get_longjmp_target.
1728
1729 2013-10-31 Pedro Alves <palves@redhat.com>
1730
1731 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1732 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1733 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1734 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1735 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1736 <bpstat handling>: If the bpstat chain wants the signal to be
1737 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1738 GDB_SIGNAL_TRAP.
1739
1740 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1741
1742 * breakpoint.c (update_watchpoint): Update error message and add
1743 an additional error message.
1744
1745 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1746
1747 * s390-tdep.h: Rename to...
1748 * s390-linux-tdep.h: ...here.
1749 * s390-tdep.c: Rename to...
1750 * s390-linux-tdep.c: ...here. Adjust #include.
1751 * s390-nat.c: Rename to...
1752 * s390-linux-nat.c: ...here. Adjust #include.
1753 * config/s390/s390.mh: Rename to...
1754 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1755 s390-linux-nat.o.
1756 * configure.host: Reflect host rename "s390" -> "linux".
1757 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1758 * Makefile.in (ALL_TARGET_OBS): Likewise.
1759 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1760 s390-linux-tdep.h.
1761 (ALLDEPFILES): Reflect rename of .c files.
1762
1763 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1764
1765 * s390-nat.c: Whitespace cleanup.
1766 * s390-tdep.c: Likewise.
1767 * s390-tdep.h: Remove empty line at end of file.
1768
1769 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1770
1771 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1772 siginfo_size.
1773
1774 2013-10-29 Tom Tromey <tromey@redhat.com>
1775
1776 * utils.c (reg): Move undefinition...
1777 * gdb_curses.h: ... here. Update comment to mention AIX.
1778
1779 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1780
1781 * exec.h (add_target_sections_of_objfile): New declaration.
1782 * exec.c (add_target_sections_of_objfile): New function.
1783 * symfile.c (add_symbol_file_command): Update current target sections.
1784 (remove_symbol_file_command): New command.
1785 (symfile_free_objfile): New function.
1786 (_initialize_symfile): Register observer for free_objfile events.
1787 * NEWS: Add description of the remove-symbol-file command.
1788 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1789 * objfiles.c (free_objfile): Notify free_objfile.
1790 (is_addr_in_objfile): New function.
1791 * objfiles.h (is_addr_in_objfile): New declaration.
1792 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1793 events instead of solib_unloaded events.
1794 (_initialize_printcmd): Register observer for free_objfile instead
1795 of solib_unloaded notifications.
1796 * solib.c (remove_user_added_objfile): New function.
1797 (_initialize_symfile): Add remove-symbol-file.
1798
1799 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1800
1801 * infcmd.c (default_print_one_register_info): Use val_print to
1802 print all values even optimized out or unavailable ones. Don't
1803 try to print a raw form of optimized out or unavailable values.
1804
1805 2013-10-29 Yao Qi <yao@codesourcery.com>
1806
1807 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1808 parameter 'arg' instead of from program_space_data.
1809 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1810 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1811 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1812 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1813 * inflow.c (inflow_inferior_data_cleanup): Get data from
1814 parameter 'arg' instead of inferior_data.
1815 * registry.h: Add comments.
1816
1817 2013-10-28 Pedro Alves <palves@redhat.com>
1818
1819 * breakpoint.c (watchpoints_triggered)
1820 <!target_stopped_data_address>: Hardcode return 1.
1821
1822 2013-10-28 Pedro Alves <palves@redhat.com>
1823
1824 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1825 level and reindent.
1826
1827 2013-10-28 Pedro Alves <palves@redhat.com>
1828
1829 * infrun.c (process_event_stop_test): New function, factored out
1830 from handle_inferior_event.
1831 (handle_inferior_event): 'process_event_stop_test' is now a
1832 function instead of a goto label -- adjust.
1833
1834 2013-10-28 Pedro Alves <palves@redhat.com>
1835
1836 * infrun.c (handle_inferior_event): Move process_event_stop_test
1837 goto label to the else branch of the ecs->random_signal check,
1838 along with FRAME and GDBARCH re-fetching.
1839
1840 2013-10-28 Pedro Alves <palves@redhat.com>
1841
1842 * infrun.c (switch_back_to_stepped_thread): New function, factored
1843 out from handle_inferior_event.
1844 (handle_inferior_event): Adjust to call
1845 switch_back_to_stepped_thread. Call it also at the tail of the
1846 random signal handling, and return, instead of also handling
1847 random signals just before the stepping tests.
1848
1849 2013-10-28 Pedro Alves <palves@redhat.com>
1850
1851 * infrun.c (clear_stop_func): Delete.
1852 (handle_inferior_event): Don't call clear_stop_func and don't
1853 clear 'ecs->random_signal'.
1854
1855 2013-10-27 Yao Qi <yao@codesourcery.com>
1856
1857 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1858 (varobj_create, varobj_get_path_expr): Update.
1859 (varobj_value_has_mutated, varobj_update): Likewise.
1860 (create_child_with_value, new_root_variable): Likewise.
1861 (number_of_children, name_of_variable): Likewise.
1862 (value_of_child, my_value_of_variable): Likewise.
1863 (varobj_value_is_changeable_p): Likewise.
1864
1865 2013-10-25 Yao Qi <yao@codesourcery.com>
1866
1867 * language.h (struct lang_varobj_ops): Declare.
1868 (struct language_defn) <la_varobj_ops>: New field.
1869 * ada-lang.c: Include "varobj.h"
1870 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1871 ada_varobj_ops.
1872 * c-lang.c: Include "varobj.h"
1873 (c_language_defn): Initialize field 'la_varobj_ops' with
1874 c_varobj_ops.
1875 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1876 cplus_varobj_ops.
1877 (asm_language_defn): Initialize field 'la_varobj_ops' with
1878 default_varobj_ops.
1879 (minimal_language_defn): Likewise.
1880 * d-lang.c (d_language_defn): Likewise.
1881 * f-lang.c (f_language_defn): Likewise.
1882 * go-lang.c (go_language_defn): Likewise.
1883 * m2-lang.c (m2_language_defn): Likewise.
1884 * objc-lang.c (objc_language_defn): Likewise.
1885 * opencl-lang.c (opencl_language_defn): Likewise.
1886 * p-lang.c (pascal_language_defn): Likewise.
1887 * language.c (unknown_language_defn): Likewise.
1888 (auto_language_defn): Likewise.
1889 (local_language_defn): Likewise.
1890 * jv-lang.c (java_language_defn): Initialize field
1891 'la_varobj_ops' with java_varobj_ops.
1892 * varobj.c (varobj_create): Update.
1893 * varobj.h (default_varobj_ops): Define macro.
1894
1895 2013-10-25 Pedro Alves <palves@redhat.com>
1896
1897 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1898 static field value.
1899 (cp_print_static_field): If the value is entirely optimized out,
1900 print <optimized out> here.
1901 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1902 static field value.
1903 * p-valprint.c (pascal_object_print_static_field): If the value is
1904 entirely optimized out, print <optimized out> here.
1905 * valops.c (do_search_struct_field)
1906 (value_struct_elt_for_reference): No longer handle a NULL static
1907 field value.
1908 * value.c (value_static_field): Return an optimized out value
1909 instead of NULL.
1910
1911 2013-10-25 Yao Qi <yao@codesourcery.com>
1912
1913 * remote.c (remote_traceframe_info): Return early if
1914 traceframe is not selected.
1915
1916 2013-10-25 Yao Qi <yao@codesourcery.com>
1917
1918 * tracepoint.c (traceframe_fun): Remove.
1919 (traceframe_sal): Remove.
1920 (set_traceframe_context): Add local variables.
1921
1922 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1923
1924 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1925 and parameter name.
1926
1927 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1928
1929 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1930 failure from register information collection.
1931
1932 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1933
1934 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1935 member.
1936 (linux_corefile_thread_callback): Update accordingly.
1937 (linux_make_corefile_notes): Likewise.
1938
1939 2013-10-24 Pedro Alves <palves@redhat.com>
1940
1941 * NEWS (New options): Mention set/show startup-with-shell.
1942 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1943 instead of 3.
1944 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1945 startup-with-shell'.
1946 (show_startup_with_shell): New function.
1947 (_initialize_fork_child): Register the set/show startup-with-shell
1948 commands.
1949 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1950 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1951 * procfs.c (procfs_init_inferior): Remove comment.
1952 * infcmd.c (startup_with_shell): New global.
1953 * inferior.h (startup_with_shell): Declare global.
1954 (STARTUP_WITH_SHELL): Delete.
1955 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1956
1957 2013-10-23 Pedro Alves <palves@redhat.com>
1958
1959 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1960 * common/signals.c: Include "gdb_assert.h".
1961 (signals): New field 'symbol'.
1962 (SET): Use the 'symbol' parameter.
1963 (gdb_signal_to_symbol_string): New function.
1964 * infrun.c (handle_inferior_event) <random signal>: In debug
1965 output, print the random signal enum as string in addition to its
1966 number.
1967 * target/waitstatus.c (target_waitstatus_to_string): Print the
1968 signal's enum value as string instead of the (POSIX) signal name.
1969
1970 2013-10-23 Gary Benson <gbenson@redhat.com>
1971
1972 PR 16013
1973 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1974 from 32 to 18. Adjusted fscanf format string accordingly.
1975 (Avoids leaving cmd unterminated.)
1976 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1977 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1978 that local_address and remote_address will not overflow.
1979 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1980 leaving dependencies unterminated. Parse size as "%u" to match
1981 definition.
1982
1983 2013-10-22 Pedro Alves <palves@redhat.com>
1984
1985 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1986 set ecs->random signal.
1987
1988 2013-10-22 Pedro Alves <palves@redhat.com>
1989
1990 * infrun.c (keep_going): Update comments.
1991
1992 2013-10-22 Pedro Alves <palves@redhat.com>
1993
1994 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1995 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1996
1997 2013-10-22 Pedro Alves <palves@redhat.com>
1998
1999 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2000 GDB_EXC_BAD_ACCESS.
2001 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2002 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2003 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2004 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2005 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2006 (GDB_SIGNAL_LAST): Change description string.
2007 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2008 Adjust to signal renaming.
2009 * darwin-nat.c (darwin_decode_message): Likewise.
2010
2011 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2012
2013 * MAINTAINERS (Write After Approval): Add myself to the list.
2014
2015 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2016
2017 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2018 forced off, downgrade them to software watchpoints if possible,
2019 and error out if not possible.
2020 (watch_command_1): Move watchpoint type selection closer to
2021 watchpoint creation, and extend the comments.
2022
2023 2013-10-18 Pedro Alves <palves@redhat.com>
2024
2025 PR gdb/16062
2026 * infrun.c (handle_inferior_event): Keep going if we got a random
2027 signal we should not stop for, instead of falling through to the
2028 step tests.
2029
2030 2013-10-18 Yao Qi <yao@codesourcery.com>
2031
2032 * c-varobj.c (cplus_number_of_children): Fix indentation.
2033
2034 2013-10-17 Tom Tromey <tromey@redhat.com>
2035
2036 PR gdb/15995:
2037 * printcmd.c (printcmd): Call gdb_flush.
2038
2039 2013-10-17 Tom Tromey <tromey@redhat.com>
2040
2041 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2042 (elf_locate_sections): Update.
2043
2044 2013-10-17 Yao Qi <yao@codesourcery.com>
2045
2046 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2047 * ada-varobj.c: Remove the include of ada-varobj.h.
2048 (ada_varobj_get_number_of_children): Declare.
2049 (ada_varobj_get_name_of_child): Make it static.
2050 (ada_varobj_get_path_expr_of_child): Likewise.
2051 (ada_varobj_get_value_of_child): Likewise.
2052 (ada_varobj_get_type_of_child): Likewise.
2053 (ada_varobj_get_value_of_array_variable): Likewise.
2054 * ada-varobj.h: Remove.
2055
2056 2013-10-17 Yao Qi <yao@codesourcery.com>
2057
2058 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2059 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2060 * ada-varobj.c: Include "varobj.h".
2061 (ada_number_of_children): New. Moved from varobj.c.
2062 (ada_name_of_variable, ada_name_of_child): Likewise.
2063 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2064 (ada_type_of_child, ada_value_of_variable): Likewise.
2065 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2066 (ada_varobj_ops): New.
2067 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2068 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2069 * gdbtypes.h (get_target_type): Declare.
2070 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2071 "ada-lang.h".
2072 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2073 (ANONYMOUS_UNION_NAME): Likewise.
2074 (get_type, get_value_type, get_target_type): Remove declarations.
2075 (value_get_print_value, varobj_value_get_print_value): Likewise.
2076 (c_number_of_children, c_name_of_variable): Likewise.
2077 (c_name_of_child, c_path_expr_of_child): Likewise.
2078 (c_value_of_child, c_type_of_child): Likewise.
2079 (c_value_of_variable, cplus_number_of_children): Likewise.
2080 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2081 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2082 (cplus_value_of_child, cplus_type_of_child): Likewise.
2083 (cplus_value_of_variable, java_number_of_children): Likewise.
2084 (java_name_of_variable, java_name_of_child): Likewise.
2085 (java_path_expr_of_child, java_value_of_child): Likewise.
2086 (java_type_of_child, java_value_of_variable): Likewise.
2087 (ada_number_of_children, ada_name_of_variable): Likewise.
2088 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2089 (ada_value_of_child, ada_type_of_child): Likewise.
2090 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2091 (ada_value_has_mutated): Likewise.
2092 (struct language_specific): Move it to varobj.h.
2093 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2094 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2095 Callers update.
2096 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2097 Make it extern.
2098 (is_anonymous_child): Move it to c-varobj.c and rename to
2099 varobj_is_anonymous_child. Caller update.
2100 (get_type): Move it to c-varobj.c.
2101 (get_value_type): Rename it varobj_get_value_type. Make it
2102 extern.
2103 (get_target_type): Move it gdbtypes.c.
2104 (varobj_formatted_print_options): New function.
2105 (value_get_print_value): Rename it to
2106 varobj_value_get_print_value and make it extern.
2107 (varobj_value_is_changeable_p): Make it extern.
2108 (adjust_value_for_child_access): Move it to c-varobj.c.
2109 (default_value_is_changeable_p): Rename it to
2110 varobj_default_value_is_changeable_p. Make it extern.
2111 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2112 (c_name_of_child, c_path_expr_of_child): Likewise.
2113 (c_value_of_child, c_type_of_child): Likewise.
2114 (c_value_of_variable, cplus_number_of_children): Likewise.
2115 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2116 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2117 (cplus_value_of_child, cplus_type_of_child): Likewise.
2118 (cplus_value_of_variable): Likewise.
2119 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2120 (java_name_of_child, java_path_expr_of_child): Likewise.
2121 (java_value_of_child, java_type_of_child): Likewise.
2122 (java_value_of_variable): Likewise.
2123 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2124 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2125 (ada_value_of_child, ada_type_of_child): Likewise.
2126 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2127 (ada_value_has_mutated): Likewise.
2128 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2129 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2130 (c_varobj_ops, cplus_varobj_ops): Declare.
2131 (java_varobj_ops, ada_varobj_ops): Declare.
2132 (varobj_default_value_is_changeable_p): Declare.
2133 (varobj_value_is_changeable_p): Declare.
2134 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2135 (varobj_get_path_expr_parent): Declare.
2136 (varobj_value_get_print_value): Declare.
2137 (varobj_formatted_print_options): Declare.
2138 (varobj_restrict_range): Declare.
2139
2140 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2141
2142 * target/waitstatus.h (target_waitkind): Remove spurious
2143 character from the comments.
2144
2145 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2146
2147 * gdbarch.sh (get_longjmp_target): Add method documentation.
2148 * gdbarch.h: Regenerate.
2149
2150 2013-10-16 Tom Tromey <tromey@redhat.com>
2151
2152 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2153 label.
2154
2155 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2156
2157 * gcore.in: Call GDB using the full path to the gcore script.
2158 Error out if the GDB binary is not found.
2159
2160 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2161
2162 PR gdb/16014
2163 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2164 sizeof.
2165
2166 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2167
2168 PR gdb/16042
2169 * target.c (target_disable_btrace): Fix invalid return value for
2170 void function.
2171 (target_teardown_btrace): Likewise.
2172
2173 2013-10-14 Yao Qi <yao@codesourcery.com>
2174
2175 * varobj.c (struct varobj): Move most of the fields to
2176 varobj.h.
2177 (struct varobj_dynamic): New struct.
2178 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2179 (varobj_has_more): Likewise.
2180 (dynamic_varobj_has_child_method): Likewise.
2181 (update_dynamic_varobj_children): Likewise.
2182 (varobj_get_num_children): Likewise.
2183 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2184 (install_new_value_visualizer): Likewise.
2185 (install_new_value_visualizer, install_new_value): Likewise.
2186 (varobj_update, new_variable, free_variable): Likewise.
2187 (my_value_of_variable, value_get_print_value): Likewise.
2188 (install_visualizer): Change the type of parameter 'var' to
2189 'struct varobjd_dynamic *'. Callers update.
2190 * varobj.h (struct varobj): Moved from varobj.c.
2191 (struct varobj) <dynamic>: New field.
2192
2193 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2194
2195 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2196 as the preferred name of r30.
2197 * nios2-linux-tdep.c (reg_offsets): Likewise.
2198 * features/nios2-cpu.xml: Likewise.
2199 * features/nios2-linux.c: Regenerated.
2200 * features/nios2.c: Regenerated.
2201 * regformats/nios2-linux.dat: Regenerated.
2202
2203 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2204
2205 Canonicalize directories for EXEC_FILENAME.
2206 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2207 exec_filename.
2208 * utils.c (gdb_realpath_keepfile): New function.
2209 * utils.h (gdb_realpath_keepfile): New declaration.
2210
2211 2013-10-11 Doug Evans <dje@google.com>
2212
2213 * Makefile.in (GDBFLAGS): New variable.
2214 (run): New rule.
2215
2216 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2217
2218 * NEWS: Add entry documenting the new "-catch-assert" and
2219 "-catch-exception" GDB/MI commands.
2220
2221 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2222
2223 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2224 "enabled".
2225 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2226 "enabled". Set B->ENABLE_STATE accordingly.
2227 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2228 ada-lang.c.
2229 (create_ada_exception_catchpoint): Add declaration.
2230 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2231 (create_ada_exception_catchpoint): Make non-static. Add new
2232 parameter "disabled". Use it in call to
2233 init_ada_exception_breakpoint.
2234 (catch_ada_exception_command): Add parameter "enabled" in call
2235 to create_ada_exception_catchpoint.
2236 (catch_assert_command): Likewise.
2237
2238 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2239 Add declarations.
2240 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2241 "catch-exception" commands.
2242 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2243 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2244
2245 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2246
2247 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2248 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2249 of all its enumerates with "ada_". Update the rest of this
2250 file throughout.
2251
2252 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2253
2254 * ada-lang.c (ada_decode_exception_location): Delete.
2255 (create_ada_exception_catchpoint): Remove arguments "sal",
2256 "addr_string" and "ops". Add argument "ex_kind" instead.
2257 Adjust implementation accordingly, calling ada_exception_sal
2258 to get the entities it no longer gets passed as arguments.
2259 Document the function's arguments.
2260 (catch_ada_exception_command): Use catch_ada_exception_command_split
2261 instead of ada_decode_exception_location, and update call to
2262 create_ada_exception_catchpoint.
2263 (catch_ada_assert_command_split): Renames
2264 ada_decode_assert_location. Remove parameters "addr_string" and
2265 "ops", and now returns void. Adjust implementation accordingly.
2266 Update the function documentation.
2267 (catch_assert_command): Use catch_ada_assert_command_split
2268 instead of ada_decode_assert_location. Update call to
2269 create_ada_exception_catchpoint.
2270
2271 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2272
2273 * utils.h (perror_warning_with_name): Add declaration.
2274 * utils.c (perror_warning_with_name): New function.
2275 * cli/cli-cmds.c (source_script_with_search): Add call to
2276 perror_warning_with_name if from_tty is nul.
2277
2278 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2279
2280 * utils.c (perror_string): New function, extracted out of
2281 throw_perror_with_name.
2282 (throw_perror_with_name): Rework to use perror_string.
2283
2284 2013-10-11 Yao Qi <yao@codesourcery.com>
2285
2286 * remote.c (discard_pending_stop_replies_in_queue): Update
2287 declaration.
2288 (struct stop_reply) <rs>: New field.
2289 (remove_stop_reply_of_remote_state): New function.
2290 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2291 Callers update. Pass remove_stop_reply_of_remote_state to
2292 QUEUE_iterate.
2293 (remote_parse_stop_reply): Initialize field 'rs'.
2294
2295 2013-10-10 Will Newton <will.newton@linaro.org>
2296
2297 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2298 linux_init_abi.
2299
2300 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2301
2302 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2303 serial_baud_show_cmd.
2304 (_initialize_cli_cmds): Delete the code creating the
2305 "set/show remotebaud" commands.
2306 * serial.c (baud_rate): Move here from top.c.
2307 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2308 (_initialize_serial): Create "set/show serial baud" commands.
2309 Add "set/show remotebaud" command aliases.
2310 * top.c (baud_rate): Moved to serial.c.
2311 * NEWS: Document the new "set/show serial baud" commands,
2312 replacing "set/show remotebaud".
2313
2314 2013-10-09 Pedro Alves <palves@redhat.com>
2315
2316 * breakpoint.c (insert_bp_location): Use memory_error_message to
2317 build the memory error string.
2318 * c-lang.c: Include "gdbcore.h".
2319 (c_get_string): Use memory_error to throw error.
2320 (target_xfer_memory_error): Delete.
2321 (memory_error_message): New, factored out from
2322 target_xfer_memory_error.
2323 (memory_error): Change parameter type to target_xfer_error.
2324 Rewrite.
2325 (read_memory): Use memory_error instead of
2326 target_xfer_memory_error.
2327 * gdbcore.h: Include "target.h".
2328 (memory_error): Change parameter type to target_xfer_error.
2329 (memory_error_message): Declare function.
2330 * target.c (target_read_memory, target_read_stack)
2331 (target_write_memory, target_write_raw_memory): Return
2332 TARGET_XFER_E_IO on error. Adjust comments.
2333 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2334 instead of EIO.
2335 * target.h (target_read, target_insert_breakpoint)
2336 (target_remove_breakpoint): Adjust comments.
2337 * valprint.c (partial_memory_read): Rename parameter, and adjust
2338 comment.
2339 (val_print_string): Use memory_error_message to build the memory
2340 error string.
2341
2342 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2343
2344 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2345 result variable. Rename variable fopen_e_ever_failed to
2346 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2347
2348 2013-10-09 Pedro Alves <palves@redhat.com>
2349
2350 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2351 (monitor_write_memory_longlongs, monitor_write_memory_block):
2352 Constify 'myaddr' parameter.
2353 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2354 helper.
2355 (monitor_xfer_partial): New function.
2356 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2357 hook. Install a to_xfer_partial hook.
2358
2359 2013-10-09 Tom Tromey <tromey@redhat.com>
2360
2361 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2362 bfd_get_alt_debug_link_info.
2363
2364 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2365
2366 New flag OBJF_NOT_FILENAME.
2367 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2368 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2369 allocate_objfile.
2370 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2371 symbol_file_add_from_bfd.
2372 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2373 allocate_objfile.
2374 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2375 NULL.
2376 * objfiles.h (OBJF_NOT_FILENAME): New.
2377
2378 2013-10-08 Tom Tromey <tromey@redhat.com>
2379
2380 * Makefile.in (SFILES): Add build-id.c.
2381 (HFILES_NO_SRCDIR): Add build-id.h.
2382 * build-id.c: New file, largely from elfread.c. Modified
2383 most functions.
2384 * build-id.h: New file.
2385 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2386 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2387 Search for dwz file using build-id.
2388 * elfread.c (build_id_bfd_get, build_id_verify)
2389 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2390
2391 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2392
2393 * ada-lang.c (compare_names_with_case): Renamed from
2394 compare_names, adding a new parameter "casing" and its handling.
2395 New function documentation.
2396 (compare_names): New function, implemented using
2397 compare_names_with_case.
2398
2399 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2400
2401 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2402
2403 2013-10-07 Tom Tromey <tromey@redhat.com>
2404
2405 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2406 demangled_names_hash.
2407 (free_objfile): Don't delete the demangled_names_hash.
2408 * objfiles.h (struct objfile_per_bfd_storage)
2409 <demangled_names_hash>: New field.
2410 (struct objfile) <demangled_names_hash>: Move to
2411 objfile_per_bfd_storage.
2412 * symfile.c (reread_symbols): Don't delete the
2413 demangled_names_hash.
2414 * symtab.c (create_demangled_names_hash): Update.
2415 (symbol_set_names): Update.
2416
2417 2013-10-07 Tom Tromey <tromey@redhat.com>
2418
2419 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2420 needs_relocations>: New fields.
2421 (gdb_bfd_requires_relocations): New function.
2422 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2423 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2424 the BFD needs relocations applied.
2425
2426 2013-10-07 Pedro Alves <palves@redhat.com>
2427
2428 PR breakpoints/11568
2429 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2430 the thread list" instead of "gone".
2431
2432 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2433
2434 * NEWS: Mention new convenience variable $_exitsignal.
2435 * corelow.c (core_open): Reset exit convenience variables. Set
2436 $_exitsignal to the uncaught signal which generated the corefile.
2437 * infrun.c (handle_inferior_event): Reset exit convenience
2438 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2439 (clear_exit_convenience_vars): New function.
2440 * inferior.h (clear_exit_convenience_vars): New prototype.
2441
2442 2013-10-06 Yao Qi <yao@codesourcery.com>
2443
2444 * varobj.h: Add comments to enum varobj_languages.
2445
2446 2013-10-04 Doug Evans <dje@google.com>
2447
2448 Add support for DWP file format version 2.
2449 * NEWS: Mention support for DWP file format version 2.
2450 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2451 union of asection, containing_section. New fields virtual_offset
2452 and is_virtual. Change type of readin filed from int to char.
2453 (dwo_sections, dwo_file): Tweak comments.
2454 (dwp_v2_section_ids): New enum.
2455 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2456 str_offsets, types.
2457 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2458 All uses updated.
2459 (virtual_v2_dwo_sections): New struct.
2460 (dwp_hash_table): New fields version, nr_columns. Change type of
2461 section_pool field to a union.
2462 (dwp_file): New field version.
2463 (dwarf2_has_info): Check for virtual sections.
2464 (get_containing_section): New function.
2465 (get_section_bfd_owner, get_section_bfd_section): Call it.
2466 (dwarf2_locate_sections): Update.
2467 (dwarf2_section_empty_p): Update.
2468 (dwarf2_read_section): Handle virtual sections.
2469 (locate_dwz_sections): Update.
2470 (create_dwp_hash_table): Document and handle V2 format.
2471 (locate_v1_virtual_dwo_sections): Renamed from
2472 locate_virtual_dwo_sections and update. All callers updated.
2473 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2474 Delete arg htab. Rename arg section_index to unit_index.
2475 All callers updated.
2476 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2477 All uses updated.
2478 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2479 (lookup_dwo_unit_in_dwp): Add V2 support.
2480 (dwarf2_locate_dwo_sections): Update.
2481 (dwarf2_locate_common_dwp_sections): Renamed from
2482 dwarf2_locate_dwp_sections and update. All callers updated.
2483 (dwarf2_locate_v2_dwp_sections): New function.
2484 (open_and_init_dwp_file): Add V2 support.
2485 (read_str_index): New locals str_section, str_offsets_section.
2486
2487 2013-10-04 Pedro Alves <palves@redhat.com>
2488
2489 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2490 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2491 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2492 describing comments with references to ptid.h.
2493 * common/ptid.h: Remove intro description of constructors,
2494 accessors and predicates.
2495 (struct ptid): Reformat.
2496 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2497 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2498 describing comments.
2499
2500 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2501
2502 * aix-thread.c (sync_threadlists): Add missing ')' in call
2503 to ptid_build.
2504
2505 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2506
2507 * procfs.c (procfs_init_inferior): Fix typo causing the build
2508 to fail.
2509
2510 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2511
2512 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2513
2514 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2515
2516 * mi/mi-main.c (run_one_inferior): Add function description.
2517 Make ARG a pointer to an integer whose value determines whether
2518 we should "run" or "start" the program.
2519 (mi_cmd_exec_run): Add handling of the "--start" option.
2520 Reject all other command-line options.
2521 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2522
2523 2013-10-04 Yao Qi <yao@codesourcery.com>
2524
2525 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2526 (struct notif_client) <pending_event>: Moved
2527 to struct remote_notif_state.
2528 <id>: New field.
2529 (struct remote_notif_state) <pending_event>: New field.
2530 (notif_event_xfree): Declare.
2531 * remote-notif.c (handle_notification): Adjust.
2532 (notif_event_xfree): New function.
2533 (do_notif_event_xfree): Call notif_event_xfree.
2534 (remote_notif_state_xfree): Call notif_event_xfree to free
2535 each element in field pending_event.
2536 * remote.c (discard_pending_stop_replies): Remove declaration.
2537 (discard_pending_stop_replies_in_queue): Declare.
2538 (remote_close): Call discard_pending_stop_replies_in_queue
2539 instead of discard_pending_stop_replies.
2540 (remote_start_remote): Adjust.
2541 (stop_reply_xfree): Call notif_event_xfree.
2542 (notif_client_stop): Adjust initialization.
2543 (remote_notif_remove_all): Rename it to ...
2544 (remove_stop_reply_for_inferior): ... this. Update comments.
2545 Don't check INF is NULL.
2546 (discard_pending_stop_replies): Return early if notif_state is
2547 NULL. Adjust. Don't check INF is NULL.
2548 (remote_notif_get_pending_events): Adjust.
2549 (discard_pending_stop_replies_in_queue): New function.
2550 (remote_wait_ns): Likewise.
2551
2552 2013-10-04 Yao Qi <yao@codesourcery.com>
2553
2554 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2555 (notif_queue): Remove.
2556 (remote_notif_process): Add one parameter 'notif_queue'.
2557 Update comments. Callers update.
2558 (remote_async_get_pending_events_token): Remove.
2559 (remote_notif_register_async_event_handler): Remove.
2560 (remote_notif_unregister_async_event_handler): Remove.
2561 (handle_notification): Add parameter 'notif_queue'. Update
2562 comments. Callers update.
2563 (notif_xfree): Remove.
2564 (remote_notif_state_allocate): New function.
2565 (remote_notif_state_xfree): New function.
2566 (_initialize_notif): Remove code to allocate queue.
2567 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2568 (struct remote_notif_state): New.
2569 (handle_notification): Update declaration.
2570 (remote_notif_process): Likewise.
2571 (remote_notif_register_async_event_handler): Remove.
2572 (remote_notif_unregister_async_event_handler): Remove.
2573 (remote_notif_state_allocate): Declare.
2574 (remote_notif_state_xfree): Declare.
2575 * remote.c (struct remote_state) <notif_state>: New field.
2576 (remote_close): Don't call
2577 remote_notif_unregister_async_event_handler. Call
2578 remote_notif_state_xfree.
2579 (remote_open_1): Don't call
2580 remote_notif_register_async_event_handler. Call
2581 remote_notif_state_allocate.
2582
2583 2013-10-04 Yao Qi <yao@codesourcery.com>
2584
2585 * varobj.c (create_child_with_value): Remove 'const' from the
2586 type of parameter 'name'.
2587 (varobj_add_child): Likewise.
2588 (install_dynamic_child): Remove 'const' from the type of
2589 parameter 'name'.
2590 (varobj_add_child): Likewise.
2591 (create_child_with_value): Likewise. Update comments. Don't
2592 duplicate 'name'.
2593 (update_dynamic_varobj_children): Duplicate 'name'
2594 and pass it to install_dynamic_child.
2595
2596 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2597
2598 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2599 conversion logic to occur after PyLong_Check. Comment on order
2600 change significance.
2601 * python/py-arch.c (archpy_disassemble): Comment on order of
2602 conversion for integers and longs.
2603
2604 2013-10-03 Pedro Alves <palves@redhat.com>
2605
2606 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2607 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2608 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2609 PTRACE_O_TRACEFORK is not supported.
2610 (linux_test_for_tracesysgood): New function.
2611 (linux_test_for_tracefork): New function, factored out from
2612 linux_check_ptrace_features, and also don't kill child_pid here.
2613
2614 2013-10-03 Tristan Gingold <gingold@adacore.com>
2615
2616 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2617 Remove verbose error reporting. Use detected state to
2618 thread_set_state call.
2619 (i386_darwin_dr_get): Fix return type. Remove verbose error
2620 report.
2621 Remove trailing spaces.
2622
2623 2013-10-02 Pedro Alves <palves@redhat.com>
2624
2625 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2626 val_print_optimized_out.
2627 * jv-valprint.c (java_print_value_fields): Likewise.
2628 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2629 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2630 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2631 new optimized out value.
2632 * findvar.c (address_from_register): Likewise.
2633 * frame.c (put_frame_register): Tweak error string to say the
2634 register was not saved, rather than optimized out.
2635 * infcmd.c (default_print_one_register_info): Adjust call to
2636 val_print_optimized_out. Use value_of_register instead of
2637 get_frame_register_value.
2638 * mi/mi-main.c (output_register): Use value_of_register instead of
2639 get_frame_register_value.
2640 * valprint.c (valprint_check_validity): Likewise.
2641 (val_print_optimized_out): New value parameter. If the value is
2642 lval_register, print <not saved> instead.
2643 (value_check_printable, val_print_scalar_formatted): Adjust calls
2644 to val_print_optimized_out.
2645 * valprint.h (val_print_optimized_out): New value parameter.
2646 * value.c (struct value) <optimized_out>: Extend comment.
2647 (error_value_optimized_out): New function.
2648 (require_not_optimized_out): Use it. Use a different string for
2649 lval_register values.
2650 * value.h (error_value_optimized_out): New declaration.
2651 * NEWS: Mention <not saved>.
2652
2653 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2654
2655 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2656 strcmp to compare two symtab filenames.
2657
2658 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2659
2660 * symtab.c (search_symbols_equal): Delete.
2661 (sort_search_symbols_remove_dups): Replace call to
2662 search_symbols_equal by call to compare_search_syms,
2663 adjusting as necessary.
2664
2665 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2666
2667 PR python/15579
2668 * python/python.c: Document gdb.execute command in Python help.
2669
2670 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2671
2672 * python/py-frame.c (frame_info_to_frame_object): Use
2673 gdbpy_convert_exception. Clean up Python object on failure.
2674
2675 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2676
2677 * python/lib/gdb/command/frame_filters.py
2678 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2679 (ShowFrameFilterPriority.invoke): Ditto.
2680
2681 2013-10-01 Keith Seitz <keiths@redhat.com>
2682
2683 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2684 (parse_linespec): Make 'argptr' const.
2685 Remove temporary cast of 'argptr' to const char **.
2686 (decode_line_full): Pass const pointer to parse_linespec.
2687 (decode_line_1): Likewise.
2688 (decode_objc): Make local variable 'new_argptr' const.
2689 (find_function_symbols): Remove temporary cast to char *
2690 to find_imps.
2691 * objc-lang.c (find_imps): Make argument 'method' const.
2692 Return const.
2693 * objc-lang.h (find_imps): Likewise.
2694
2695 2013-10-01 Keith Seitz <keiths@redhat.com>
2696
2697 * completer.c (skip_quoted_chars): Make all arguments const.
2698 Return const.
2699 (skip_quoted): Likewise.
2700 * completer.h (skip_quoted_chars): Likewise.
2701 (skip_quoted): Likewise.
2702 * defs.h (skip_quoted): Remove duplicate declaration.
2703 * jv-exp.y: Include completer.h.
2704 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2705 * p-exp.y: Include completer.h.
2706
2707 2013-10-01 Keith Seitz <keiths@redhat.com>
2708
2709 * c-exp.y (parse_number): Make first argument const.
2710 Make a copy of the input to manipulate.
2711 (c_parse_escape): Make first argument const.
2712 Make local variable 'tokptr' const.
2713 (parse_string_or_char): Make first two arguments const.
2714 (macro_original_text): Make const.
2715 (lex_one_token): Make local variable 'tokstart' const.
2716 Likewise for local variables named 'p'.
2717 Cast away const for struct stoken (temporary).
2718 * c-lang.h (c_parse_escpae): Make first argument const.
2719 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2720 const.
2721 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2722 var_string case.
2723 * f-exp.y (parse_number): Make first argument const.
2724 (match_string_literal): Make local variable 'tokstart'
2725 const.
2726 (yylex): Make local variable 'p' const.
2727 Cast away const for struct stoken (temporary).
2728 * go-exp.y (parse_number): Make first argument const.
2729 (parse_string_or_char): Likewise.
2730 Make local variable 'tokstart' const.
2731 (lex_one_token): Likewise for numerous locals called 'p'.
2732 Cast away const for struct stoken (temporary).
2733 * jv-exp.y (parse_number): Make first argument const.
2734 Make local variables 'tokstart' and 'tokptr' const.
2735 Cast away const for call to skip_quoted (temporary).
2736 (yylex): Make local variable 'p' const.
2737 Cast away const for struct stoken (temporary).
2738 * m2-exp.y (parse_number): Make local variable 'p' const.
2739 (yylex): Likewise for 'tokstart'.
2740 Cast away const for struct stoken (temporary).
2741 Make local variable 'p' const.
2742 * macroexp.c (get_character_constant): Pass a const string
2743 to c_parse_escape.
2744 (get_string_literal): Likewise.
2745 (macro_expand_next): Make first argument const.
2746 Cast away const for init_shared_buffer.
2747 * macroexp.h (macro_expand_next): Make first argument const.
2748 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2749 Pass a const string to c_parse_escape.
2750 Make local variables 'p' and 'namestart' const.
2751 * parse.c (lexptr): Make const.
2752 (prev_lexptr): Likewise.
2753 (find_template_name_end): Return const.
2754 Make argument const, too.
2755 (parse_exp_in_context): Make first argument const.
2756 Remove the entire const_hack.
2757 (parse_exp_in_context_1): Make first argument const.
2758 * parser-defs.h (find_template_name_end): Return const.
2759 Make argument const, too.
2760 (lexptr): Make const.
2761 (prev_lexptr): Likewise.
2762 * utils.c (parse_escape): Make second argument const.
2763 * utils.h (parse_escape): Likewise.
2764
2765 2013-10-01 Keith Seitz <keiths@redhat.com>
2766
2767 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2768 is now const.
2769 (block_lookup): Make 'raw_name' and 'name' const.
2770 * ada-lex.l (processString): Update for struct stoken.ptr.
2771 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2772 (operator_stoken): Likewise.
2773 (lex_one_token): Remove temporary cast to char * for
2774 'yylval.sval.ptr'.
2775 * f-exp.y (yylex): Likewise.
2776 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2777 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2778 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2779 'yylval.sval.ptr'.
2780 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2781 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2782 * linespec.c (struct ls_parser): Make 'stream' const.
2783 (find_parameter_list_end): Make argument 'input' and local
2784 variable 'p' const.
2785 (linespec_lexer_lex_string): Make local variables 'start' and
2786 'p' const.
2787 Use skip_spaces_const instead of skip_spaces.
2788 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2789 const.
2790 (parse_linespec): Temporarily cast 'argptr' to const for
2791 'parser->lexer.stream'.
2792 * m2-exp.y (yylex): Remove temporary cast to char * for
2793 'yylval.sval.ptr'.
2794 * objc-lang.c (add_msglist): Make local variable 'p' const.
2795 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2796 (exp : STRING): Make 'sp' const.
2797 (parse_number): Make argument 'p' const.
2798 * parser-defs.h (struct stoken): Make 'ptr' const.
2799
2800 2013-10-01 Doug Evans <dje@google.com>
2801
2802 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2803
2804 2013-10-01 Yao Qi <yao@codesourcery.com>
2805
2806 * varobj.c (c_value_of_root): Remove declaration.
2807 (cplus_value_of_root, java_value_of_root): Likewise.
2808 (ada_value_of_root): Likewise.
2809 (struct language_specific) <value_of_root>: Remove.
2810 (languages): Update initialization.
2811 (check_scope): Move earlier.
2812 (c_value_of_root): Move earlier and rename to ...
2813 (value_of_root_1): ... this.
2814 (value_of_root): Caller update.
2815 (cplus_value_of_root, java_value_of_root): Remove.
2816 (ada_value_of_root): Remove.
2817
2818 2013-10-01 Yao Qi <yao@codesourcery.com>
2819
2820 * varobj.c (varobj_format_string): Remove "unknown".
2821 (languages): Remove the first element.
2822 * varobj.h (enum varobj_languages): Remove vlang_c.
2823
2824 2013-10-01 Yao Qi <yao@codesourcery.com>
2825
2826 * varobj.c (struct language_specific) <language>: Remove.
2827 (languages): Update the initialization.
2828
2829 2013-10-01 Yao Qi <yao@codesourcery.com>
2830
2831 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2832 "solib-target.h". Include "windows-tdep.h".
2833 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2834 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2835 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2836 windows-tdep.o to gdb_target_obs.
2837
2838 2013-10-01 Yao Qi <yao@codesourcery.com>
2839
2840 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2841 "solib-target.h".
2842 (amd64_windows_init_abi): Don't call set_solib_ops and
2843 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2844 windows_init_abi instead.
2845 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2846 "solib-target.h".
2847 (i386_cygwin_init_abi): Don't call set_solib_ops,
2848 set_gdbarch_has_dos_based_file_system and
2849 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2850 windows_init_abi instead.
2851 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2852 (windows_init_abi): New function.
2853 (windows_iterate_over_objfiles_in_search_order): Make it
2854 static.
2855 * windows-tdep.h (windows_init_abi): Declare.
2856 (windows_iterate_over_objfiles_in_search_order): Remove
2857 declaration.
2858
2859 2013-10-01 Jerome Guitton <guitton@adacore.com>
2860
2861 Checked in by Joel Brobecker <brobecker@adacore.com>
2862 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2863 incomplete dictionnary instead of None in case of missing
2864 environment variables.
2865 (elinos_init): in case of an incomplete environment, best
2866 effort to load system libraries instead of abort.
2867
2868 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2869
2870 * ada-lang.c (ada_has_this_exception_support): Ignore
2871 mst_solib_trampoline minimal symbols.
2872
2873 2013-09-30 Tristan Gingold <gingold@adacore.com>
2874
2875 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2876 hardware watchpoint.
2877 (i386_darwin_dr_set): Support 32 and 64 bit states.
2878 (i386_darwin_dr_get): Likewise.
2879 (i386_darwin_dr_set_control): Make static.
2880 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2881 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2882
2883 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2884
2885 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2886 Replace TIDGET with ptid_get_lwp.
2887 Replace GET_LWP with ptid_get_lwp.
2888 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2889 Replace BUILD_THREAD with ptid_build.
2890 Replace BUILD_LWP with ptid_build.
2891 Replace PIDGET with ptid_get_pid.
2892 Replace TIDGET with ptid_get_lwp.
2893 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2894 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2895 Replace TIDGET with ptid_get_lwp.
2896 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2897 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2898 Replace TIDGET with ptid_get_lwp.
2899 Replace GET_LWP with ptid_get_lwp.
2900 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2901 * auxv.c: Likewise.
2902 * breakpoint.c: Likewise.
2903 * common/ptid.c (ptid_is_pid): Condense check for
2904 null_ptid and minus_one_ptid.
2905 (ptid_lwp_p): New function.
2906 (ptid_tid_p): New function.
2907 * common/ptid.h: Update comments for accessors.
2908 (ptid_lwp_p): New prototype.
2909 (ptid_tid_p): New prototype.
2910 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2911 * gcore.c: Replace PIDGET with ptid_get_pid.
2912 * gdbthread.h: Likewise.
2913 * gnu-nat.c: Likewise.
2914 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2915 Replace TIDGET with ptid_get_lwp.
2916 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2917 * hppanbsd-nat.c: Likewise.
2918 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2919 Replace TIDGET with ptid_get_lwp.
2920 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2921 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2922 * infcmd.c: Likewise.
2923 * inferior.h: Likewise.
2924 * inflow.c: Likewise.
2925 * infrun.c: Likewise.
2926 * linux-fork.c: Likewise.
2927 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2928 Replace GET_PID with ptid_get_pid.
2929 Replace is_lwp with ptid_lwp_p.
2930 Replace GET_LWP with ptid_get_lwp.
2931 Replace BUILD_LWP with ptid_build.
2932
2933 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2934
2935 * common/linux-btrace.c: Move sys/syscall.h out of the
2936 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2937 Also check for SYS_perf_event_open before attempting to buid.
2938
2939 2013-09-27 Doug Evans <dje@google.com>
2940
2941 * dwarf2read.c (dwarf2_section_info): Add comment.
2942 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2943 All uses updated.
2944 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2945 (dwarf2_read_section): Delete unused local "header". Add section
2946 name to error message.
2947 (create_dwo_in_dwp): Tweak comment.
2948 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2949
2950 * dwarf2read.c (die_reader_specs): Tweak comment.
2951 (get_section_bfd_owner, get_section_bfd_section): New functions.
2952 (get_section_name, get_section_file_name): New functions.
2953 (get_section_id, get_section_flags): New functions.
2954 (*): Use new functions to access section fields.
2955
2956 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2957 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2958 arg "htab". All callers updated.
2959 (create_debug_types_hash_table): Remove redundant copy of
2960 abbrev_section.
2961 (create_dwo_in_dwp): Tweak comments.
2962 (read_str_index): Tweak comment. Record dwarf form name in static
2963 local.
2964
2965 2013-09-27 Pedro Alves <palves@redhat.com>
2966
2967 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2968 (remote_filename_p): Add comment.
2969 * remote.c (remote_filename_p): Adjust to use
2970 REMOTE_SYSROOT_PREFIX.
2971 * solib.c (solib_find): When deciding whether we need to add a
2972 directory separator, check whether the sysroot is "remote:"
2973 instead of checking whether the patch has a drive spec. Add
2974 comments.
2975
2976 2013-09-27 Pedro Alves <palves@redhat.com>
2977
2978 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2979 Delete fields.
2980 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2981 directly.
2982
2983 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2984
2985 Fix set debug frame output.
2986 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2987 SENTINEL_FRAME entry lower to match enum frame_type order.
2988
2989 2013-09-26 Pierre Muller <muller@sourceware.org>
2990
2991 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2992 AMD64_R15_REGNUM when a register index is expected.
2993 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2994 Substitute in array.
2995 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2996 (amd64_push_arguments): Substitute in integer_regnum array.
2997
2998 2013-09-25 Doug Evans <dje@google.com>
2999
3000 * objfiles.c (allocate_objfile): Move comment to better place.
3001
3002 New option "set debug symfile on".
3003 * NEWS: Mention "set debug symfile".
3004 * Makefile.in (SFILES): Add symfile-debug.c.
3005 (COMMON_OBS): Add symfile-debug.o.
3006 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3007 objfile's symbol functions.
3008 * objfiles.h (objfile_set_sym_fns): Declare.
3009 * symfile-debug.c: New file.
3010 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3011 objfile's symbol functions.
3012 (reread_symbols): Ditto.
3013
3014 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3015 All uses updated.
3016 (add_symtab_fns): Update prototype.
3017 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3018 (registered_sym_fns): ... this.
3019 (symtab_fns): Update.
3020 (add_symtab_fns): New arg "flavour". All callers updated.
3021 (find_sym_fns): Rewrite to use new sym_fns registry.
3022
3023 * symfile.h (struct sym_fns): Add "objfile" argument to
3024 sym_read_linetable. All uses updated.
3025
3026 * symtab.c (domain_name, search_domain_name): New functions.
3027 * symtab.h (domain_name, search_domain_name): Declare.
3028
3029 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3030 map_matching_symbols so objfile is first. All uses updated.
3031 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3032 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3033
3034 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3035
3036 PR shlibs/8882
3037 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3038 link map entries.
3039
3040 2013-09-24 Doug Evans <dje@google.com>
3041
3042 * objfiles.c (free_objfile): Move comment.
3043
3044 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3045
3046 * ada-exp.y (string_to_operator): Delete.
3047 (dummy_string_to_ada_operator): Delete.
3048
3049 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3050
3051 Revert:
3052 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3053 amd64-tdep.c.
3054 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3055 call_dummy_integer_regs, and classify.
3056 * amd64-tdep.h (amd64_classify): Add declaration.
3057 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3058 (amd64_reg_class): Delete, moved to i386-tdep.h.
3059 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3060 Replace call to amd64_classify by call to tdep->classify.
3061 (amd64_push_arguments): Get the list of registers to use for
3062 passing integer parameters from the gdbarch tdep structure,
3063 rather than using a hardcoded one. Replace calls to amd64_classify
3064 by calls to tdep->classify.
3065 (amd64_push_dummy_call): Get the register number used for
3066 the "hidden" argument from tdep->call_dummy_integer_regs.
3067 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3068 and tdep->call_dummy_integer_regs. Set tdep->classify.
3069
3070 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3071
3072 Revert:
3073 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3074 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3075 where tdep->memory_args_by_pointer is non-zero.
3076
3077 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3078
3079 Revert:
3080 * i386-tdep.h (struct gdbarch_tdep): Add new field
3081 integer_param_regs_saved_in_caller_frame.
3082 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3083 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3084
3085 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3086
3087 * amd64-windows-tdep.c: #include "value.h"
3088 (amd64_windows_classify): Delete.
3089 (amd64_windows_passed_by_integer_register)
3090 (amd64_windows_passed_by_xmm_register)
3091 (amd64_windows_passed_by_pointer)
3092 (amd64_windows_adjust_args_passed_by_pointer)
3093 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3094 (amd64_windows_push_dummy_call): New functions.
3095 (amd64_windows_init_abi): Remove setting of
3096 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3097 tdep->classify, tdep->memory_args_by_pointer and
3098 tdep->integer_param_regs_saved_in_caller_frame.
3099 Add call to set_gdbarch_push_dummy_call.
3100
3101 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3102
3103 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3104 objfile->original_name.
3105
3106 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3107
3108 Pass down original filename for objfile.
3109 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3110 * elfread.c (elf_symfile_read): Likewise.
3111 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3112 longer set ORIGINAL_NAME.
3113 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3114 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3115 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3116 symbol_file_add_from_bfd call.
3117 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3118 (macho_check_dsym): Add parameter filenamep. Change function comment.
3119 Set *filenamep.
3120 (macho_symfile_read): New variable dsym_filename. Update
3121 macho_check_dsym call. Use it for symbol_file_add_separate.
3122 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3123 it. Use it for objfile->original_name.
3124 (objfile_name): Return OBFD's filename, if available.
3125 * objfiles.h (allocate_objfile): Add new parameter name.
3126 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3127 * symfile-mem.c (symbol_file_add_from_memory): Update
3128 symbol_file_add_from_bfd call.
3129 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3130 comment for it.
3131 (symbol_file_add_with_addrs): New parameter name, add function comment
3132 for it. Remove variable name. Update allocate_objfile call.
3133 (symbol_file_add_separate): New parameter name, add function comment
3134 for it. Update symbol_file_add_with_addrs call.
3135 (symbol_file_add_from_bfd): New parameter name. Update
3136 symbol_file_add_with_addrs call.
3137 (symbol_file_add): Update symbol_file_add_from_bfd call.
3138 (reread_symbols): New variable original_name. Save
3139 objfile->original_name by it.
3140 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3141 second parameter.
3142
3143 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3144
3145 Code cleanup: Add objfile_name accessor function.
3146 * ada-lang.c (is_known_support_routine): Use objfile_name.
3147 * auto-load.c (source_gdb_script_for_objfile)
3148 (auto_load_objfile_script): Likewise.
3149 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3150 * dbxread.c (dbx_symfile_read): Likewise.
3151 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3152 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3153 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3154 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3155 (lookup_dwp_signatured_type, lookup_dwo_unit)
3156 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3157 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3158 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3159 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3160 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3161 (read_subrange_type, load_partial_dies, read_partial_die)
3162 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3163 (die_containing_type, build_error_marker_type, lookup_die_type)
3164 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3165 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3166 (get_DW_AT_signature_type, write_psymtabs_to_index)
3167 (save_gdb_index_command): Likewise.
3168 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3169 Likewise.
3170 * expprint.c (dump_subexp_body_standard): Likewise.
3171 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3172 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3173 original_name.
3174 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3175 obj_name, use objfile_name for it, use the variable.
3176 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3177 Use objfile_name.
3178 * machoread.c (macho_symtab_read, macho_check_dsym)
3179 (macho_symfile_relocate): Likewise.
3180 * maint.c (maintenance_translate_address): Likewise.
3181 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3182 * minsyms.c (install_minimal_symbols): Likewise.
3183 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3184 original_name.
3185 (filter_overlapping_sections): Use objfile_name.
3186 (objfile_name): New function.
3187 * objfiles.h (struct objfile): Rename field name to original_name.
3188 (objfile_name): New prototype.
3189 * printcmd.c (sym_info, address_info): Use objfile_name.
3190 * probe.c (parse_probes, collect_probes, compare_probes)
3191 (info_probes_for_ops): Likewise.
3192 * progspace.c (clone_program_space): Likewise.
3193 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3194 (maintenance_info_psymtabs): Likewise.
3195 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3196 (source_section_scripts): Likewise.
3197 * python/py-objfile.c (objfpy_get_filename): Likewise.
3198 * python/py-progspace.c (pspy_get_filename): Likewise.
3199 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3200 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3201 * solib.c (solib_read_symbols): Likewise.
3202 * stabsread.c (scan_file_globals): Likewise.
3203 * stap-probe.c (handle_stap_probe): Likewise.
3204 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3205 (find_separate_debug_file_by_debuglink): Likewise.
3206 (reread_symbols): Likewise. Use the objfile field name renamed to
3207 original_name.
3208 (allocate_symtab): Use objfile_name.
3209 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3210 (dump_objfile, dump_msymbols, dump_symtab_1)
3211 (maintenance_print_msymbols, maintenance_print_objfiles)
3212 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3213 * target.c (target_translate_tls_address, target_info): Likewise.
3214 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3215 objfile_name.
3216
3217 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3218
3219 Code cleanup.
3220 * probe.c (parse_probes): Rename variable objfile_name to
3221 objfile_namestr.
3222
3223 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3224
3225 Remove solib-sunos.c.
3226 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3227 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3228 * objfiles.c (rt_common_objfile): Remove.
3229 (free_objfile): Remove rt_common_objfile comparison.
3230 * objfiles.h (rt_common_objfile): Remove.
3231 * solib-sunos.c: Remove.
3232 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3233
3234 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3235
3236 Remove a.out NetBSD and OpenBSD hosts.
3237 * NEWS (Removed native configurations): New.
3238 * config/arm/nbsdaout.mh: Remove.
3239 * config/i386/nbsdaout.mh: Remove.
3240 * config/i386/obsdaout.mh: Remove.
3241 * config/m68k/nbsdaout.mh: Remove.
3242 * config/sparc/nbsdaout.mh: Remove.
3243 * config/vax/nbsdaout.mh: Remove.
3244 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3245 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3246 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3247 error.
3248 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3249 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3250 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3251
3252 2013-09-23 Tom Tromey <tromey@redhat.com>
3253
3254 * linespec.c (struct minsym_and_objfile): Remove.
3255 (minsym_and_objfile_d): Remove.
3256 (struct linespec, struct collect_info, linespec_parse_basic)
3257 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3258 (compare_msymbols, find_method, find_function_symbols)
3259 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3260 (add_minsym, search_minsyms_for_name): Update.
3261
3262 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3263
3264 * regcache.c: Add include of valprint.h.
3265 (dump_endian_bytes): Delete.
3266 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3267
3268 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3269
3270 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3271
3272 2013-09-19 Pedro Alves <palves@redhat.com>
3273
3274 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3275 breakpoints.
3276
3277 2013-09-19 Pedro Alves <palves@redhat.com>
3278 Thomas Schwinge <thomas@codesourcery.com>
3279 Yue Lu <hacklu.newborn@gmail.com>
3280
3281 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3282 Take a gdb_byte pointer instead of a char pointer.
3283
3284 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3285 gnu_xfer_partial helper.
3286 (gnu_xfer_partial): New function.
3287 (gnu_target): Don't install a deprecated_xfer_memory hook.
3288 Install a to_xfer_partial hook.
3289
3290 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3291
3292 Constification.
3293 * main.c (captured_main): Replace catch_command_errors by
3294 catch_command_errors_const. Twice.
3295 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3296 (symbol_file_add): Make name parameter const.
3297 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3298 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3299 variable name. Change their usage accordingly.
3300 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3301 const.
3302 (symbol_file_add_main): Make args parameter const.
3303
3304 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3305 Ulrich Weigand <uweigand@de.ibm.com>
3306
3307 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3308 of c_value member.
3309 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3310
3311 2013-09-18 Pedro Alves <palves@redhat.com>
3312 Yue Lu <hacklu.newborn@gmail.com>
3313
3314 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3315 (gnu_create_inferior)
3316 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3317 (set_sig_thread_cmd): Use the lwpid field of ptids to
3318 store/extract thread ids instead of the tid field.
3319 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3320
3321 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3322
3323 * infcmd.c (default_print_one_register_info): Add detection of
3324 optimized out values.
3325 (default_print_registers_info): Switch to using
3326 get_frame_register_value.
3327
3328 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3329
3330 * infrun.c (handle_inferior_event): Check if we know the
3331 function start address before setting a resume breakpoint.
3332
3333 2013-09-18 Pedro Alves <palves@redhat.com>
3334
3335 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3336 minus_one_ptid instead of looking at the ptid's tid field and
3337 comparing that to -1.
3338
3339 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3340
3341 * main.h (get_gdb_program_name): Remove extra whitespace.
3342
3343 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3344
3345 * main.h (get_gdb_program_name): Add declaration.
3346 * main.c (get_gdb_program_name): Add definition.
3347
3348 2013-09-17 Doug Evans <dje@google.com>
3349
3350 * dwarf2read.c: Move definitions of complaint functions to after
3351 forward declarations of local functions.
3352
3353 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3354 Pedro Alves <palves@redhat.com>
3355
3356 PR gdb/11568
3357 * breakpoint.c (remove_threaded_breakpoints): New function.
3358 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3359 as thread_exit observer.
3360
3361 2013-09-17 Pedro Alves <palves@redhat.com>
3362
3363 PR gdb/15911
3364 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3365 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3366 * corelow.c (core_open):
3367 * frame.h (print_stack_frame, print_frame_info): New
3368 'set_current_sal' parameter.
3369 * infcmd.c (finish_command, kill_command): Adjust call to
3370 print_stack_frame.
3371 * inferior.c (inferior_command): Likewise.
3372 * infrun.c (normal_stop): Likewise.
3373 * linux-fork.c (linux_fork_context): Likewise.
3374 * record-full.c (record_full_goto_entry, record_full_restore):
3375 Likewise.
3376 * remote-mips.c (common_open): Likewise.
3377 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3378 Use it.
3379 (print_frame_info): New 'set_current_sal' parameter. Set the last
3380 displayed sal depending on the new paremeter instead of looking at
3381 print_what.
3382 (backtrace_command_1, select_and_print_frame, frame_command)
3383 (current_frame_command, up_command, down_command): Adjust call to
3384 print_stack_frame.
3385 * thread.c (print_thread_info, restore_selected_frame)
3386 (do_captured_thread_select): Adjust call to print_stack_frame.
3387 * tracepoint.c (tfind_1): Likewise.
3388 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3389 (mi_cmd_stack_info_frame): Likewise.
3390 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3391 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3392
3393 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3394
3395 * value.c (isvoid_internal_fn): Replace "parameter" with
3396 "argument".
3397
3398 2013-09-16 Stan Shebs <stan@codesourcery.com>
3399
3400 * README: Update references to writing code for GDB.
3401 * configure.ac (build_warnings): Remove obsolete comment.
3402 * configure: Regenerate.
3403 * gdbarch.sh: Remove references to gdbint.texinfo.
3404 * gdbarch.h: Regenerate.
3405 * gdbtypes.c (objfile_type): Remove comments referencing internals
3406 manual and D10V.
3407
3408 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3409
3410 * NEWS: Mention new convenience function $_isvoid.
3411 * value.c (isvoid_internal_fn): New function.
3412 (_initialize_values): Add new convenience function $_isvoid.
3413
3414 2013-09-16 Pierre Muller <muller@sourceware.org>
3415
3416 * arm-linux-tdep.c: Add "elf/common.h" header.
3417 Remove AT_HWCAP macro definintion as it is provided in
3418 added include file.
3419 * s390-tdep.c: Remove system header <elf.h>
3420 Add "elf/common.h" header for AT_HWCAP definition.
3421 (s390_core_read_description): Use correct CORE_ADDR
3422 for hwcap local variable used as third parameter
3423 of function target_auxv_search.
3424
3425 2013-09-14 Pierre Muller <muller@sourceware.org>
3426 Tom Tromey <tromey@redhat.com>
3427 Pedro Alves <palves@redhat.com>
3428
3429 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3430 mode if operating system doesn't know O_CLOEXEC.
3431
3432 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3433
3434 Code cleanup.
3435 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3436 inner block.
3437
3438 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3439
3440 * NEWS: Mention TDB support.
3441 * features/s390-tdb.xml: New file.
3442 * features/s390-te-linux64.xml: New file.
3443 * features/s390x-te-linux64.xml: New file.
3444 * features/Makefile (WHICH): Add new tdescs above.
3445 (s390-te-linux64-expedite): Set.
3446 (s390x-te-linux64-expedite): Set.
3447 * features/s390-te-linux64.c: New file (generated).
3448 * features/s390x-te-linux64.c: New file (generated).
3449 * regformats/s390-te-linux64.dat: New file (generated).
3450 * regformats/s390x-te-linux64.dat: New file (generated).
3451 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3452 (HWCAP_S390_TE): Likewise.
3453 (S390_TDB_DWORD0_REGNUM): Likewise.
3454 (S390_TDB_DWORD0_REGNUM): Likewise.
3455 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3456 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3457 (S390_TDB_ATIA_REGNUM): Likewise.
3458 (S390_TDB_R0_REGNUM): Likewise.
3459 (S390_TDB_R1_REGNUM): Likewise.
3460 (S390_TDB_R2_REGNUM): Likewise.
3461 (S390_TDB_R3_REGNUM): Likewise.
3462 (S390_TDB_R4_REGNUM): Likewise.
3463 (S390_TDB_R5_REGNUM): Likewise.
3464 (S390_TDB_R6_REGNUM): Likewise.
3465 (S390_TDB_R7_REGNUM): Likewise.
3466 (S390_TDB_R8_REGNUM): Likewise.
3467 (S390_TDB_R9_REGNUM): Likewise.
3468 (S390_TDB_R10_REGNUM): Likewise.
3469 (S390_TDB_R11_REGNUM): Likewise.
3470 (S390_TDB_R12_REGNUM): Likewise.
3471 (S390_TDB_R13_REGNUM): Likewise.
3472 (S390_TDB_R14_REGNUM): Likewise.
3473 (S390_TDB_R15_REGNUM): Likewise.
3474 (S390_NUM_REGS): Increase.
3475 (S390_IS_TDBREGSET_REGNUM): New macro.
3476 (s390_regmap_tdb): Declare.
3477 (s390_sizeof_tdbregset): Define.
3478 (tdesc_s390_te_linux64): Declare.
3479 (tdesc_s390x_te_linux64): Likewise.
3480 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3481 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3482 (s390_regmap_tdb): New regmap.
3483 (s390_supply_tdb_regset): New function.
3484 (s390_tdb_regset): New regset.
3485 (s390_linux64v2_regset_sections): Add TDB regset to list.
3486 (s390x_linux64v2_regset_sections): Likewise.
3487 (s390_regset_from_core_section): Recognize TDB core note section.
3488 (s390_core_read_description): If HWCAP indicates TE support,
3489 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3490 (s390_gdbarch_init): Handle TDB regset.
3491 (_initialize_s390_tdep): Initialize new tdescs.
3492 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3493 (have_regset_tdb): New variable.
3494 (s390_native_supply): Support register invalidation.
3495 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3496 (check_regset): Treat ENODATA as "regset exists".
3497 (s390_linux_fetch_inferior_registers): Add TDB.
3498 (s390_read_description): Check for TDB existence and select
3499 appropriate tdesc.
3500 * gdbserver/Makefile.in (clean): Add removal of new makefile
3501 targets.
3502 (s390-te-linux64.c): New makefile target.
3503 (s390x-te-linux64.c): Likewise.
3504 * gdbserver/configure.srv (srv_regobj): Append new objects
3505 s390-te-linux64.o and s390x-te-linux64.o.
3506 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3507 s390x-te-linux64.xml, and s390-tdb.xml.
3508 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3509 declaration.
3510 (tdesc_s390_te_linux64): Likewise.
3511 (init_registers_s390x_te_linux64): Likewise.
3512 (tdesc_s390x_te_linux64): Likewise.
3513 (s390_check_regset): Treat ENODATA as "regset exists".
3514 (s390_arch_setup): Add TDB regset support.
3515 (initialize_low_arch): Initialize registers for new tdescs.
3516
3517 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3518
3519 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3520 (S390_IS_FPREGSET_REGNUM): New macro.
3521 * s390-tdep.c (s390_dwarf_regmap): Make const.
3522 (regnum_is_gpr_full): New function for replacing repeated code.
3523 (s390_pseudo_register_name): Use it.
3524 (s390_pseudo_register_type): Likewise.
3525 (s390_pseudo_register_read): Likewise.
3526 (s390_pseudo_register_write): Likewise.
3527 (s390_unwind_pseudo_register): Likewise.
3528 (s390_regmap_gregset): New format for regmap.
3529 (s390x_regmap_gregset): Likewise.
3530 (s390_regmap_fpregset): Likewise.
3531 (s390_regmap_upper): Likewise.
3532 (s390_regmap_last_break): Likewise.
3533 (s390_regmap_system_call): Likewise.
3534 (s390_supply_regset): Adjust to new regmap format.
3535 (s390_collect_regset): Likewise.
3536 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3537 (s390_native_collect): Likewise.
3538 (supply_gregset): Likewise.
3539 (fill_gregset): Likewise.
3540 (supply_fpregset): Likewise.
3541 (fill_fpregset): Likewise.
3542 (fetch_regset): Likewise.
3543 (store_regset): Likewise.
3544 (s390_linux_fetch_inferior_registers): Likewise.
3545 (s390_linux_fetch_inferior_registers): Likewise.
3546
3547 2013-09-12 Andrew Pinski <apinski@cavium.com>
3548
3549 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3550
3551 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3552
3553 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3554
3555 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3556
3557 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3558
3559 2013-09-06 Pedro Alves <palves@redhat.com>
3560
3561 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3562 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3563 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3564 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3565 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3566 gdb_stdlog.
3567
3568 2013-09-06 Pedro Alves <palves@redhat.com>
3569
3570 * remote-sim.c (dump_mem): Constify buf parameter.
3571 gdbsim_xfer_inferior_memory): Rename to ...
3572 (gdbsim_xfer_memory): ... this. Adjust interface as
3573 target_xfer_partial helper.
3574 (gdbsim_xfer_partial): New function.
3575 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3576 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3577
3578 2013-09-06 Pedro Alves <palves@redhat.com>
3579
3580 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3581 host_address_to_string, and send debug output to gdb_stdlog.
3582
3583 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3584
3585 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3586 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3587 gdb_target_obs for cris target.
3588 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3589 (cris_gdbarch_init): Move calls to
3590 set_gdbarch_fetch_tls_load_module_address and
3591 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3592 Add call to gdbarch_init_osabi.
3593 * cris-linux-tdep.c: New file.
3594 * cris-tdep.h: New file.
3595
3596 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3597
3598 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3599 to deprecated_init_ui_hook.
3600
3601 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3602
3603 * cli/cli-interp.c (_initialize_cli_interp): Add a
3604 command_loop_proc to interp_procs.
3605 * event-top.c (cli_command_loop): Change signature to match
3606 interp_command_loop_ftype.
3607 * event-top.h (cli_command_loop): Same.
3608 * interps.c (interp_new): Require every interpreter to have a
3609 command_loop_proc.
3610 (current_interp_command_loop): Just call the command_loop_proc on
3611 the current interpreter.
3612 * tui/tui-interp.c (_initialize_tui_interp): Add a
3613 command_loop_proc to interp_procs.
3614
3615 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3616
3617 * cris-tdep.c (cris_gdbarch_init): Add call to
3618 get_gdbarch_fetch_tls_load_module_address.
3619
3620 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3621
3622 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3623 (cris_elf_gregset_t): Rename from elf_gregset_t.
3624 (crisv32_elf_gregset_t): Adjust.
3625 (cris_supply_gregset, fetch_core_registers): Adjust.
3626
3627 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3628
3629 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3630
3631 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3632
3633 * defs.h (deprecated_command_loop_hook): Remove, including
3634 references in comments.
3635 * interps.c (current_interp_command_loop): No longer use
3636 deprecated_command_loop_hook.
3637 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3638 setup.
3639 * top.c (deprecated_command_loop_hook): Remove.
3640
3641 2013-09-05 Pedro Alves <palves@redhat.com>
3642
3643 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3644 local is now int instead of ULONGEST. Print it with %d
3645 instead of paddress.
3646
3647 2013-09-05 Tristan Gingold <gingold@adacore.com>
3648
3649 * MAINTAINERS: Remove avr maintainership.
3650
3651 2013-09-05 Pedro Alves <palves@redhat.com>
3652
3653 * findvar.c (value_of_register): Rework in terms of
3654 value_of_register_lazy.
3655
3656 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3657
3658 * symfile.c (add_symbol_file_command): Remove trailing
3659 whitespaces and blank line after comment.
3660
3661 2013-09-05 Pedro Alves <palves@redhat.com>
3662
3663 * tui/tui-regs.c (tui_register_format): Don't look at the
3664 register's name here. Return string representing register
3665 value instead of storing it in the data element.
3666 (tui_get_register): Compare register string representations
3667 instead of register value states and contents.
3668
3669 2013-09-05 Pedro Alves <palves@redhat.com>
3670
3671 PR tui/15933
3672 * tui/tui-regs.c (tui_show_registers): Show registers of the
3673 selected frame, not the current frame.
3674
3675 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3676
3677 * MAINTAINERS (Write After Approval): Add myself to the list.
3678
3679 2013-09-04 Doug Evans <dje@google.com>
3680
3681 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3682 (queue_and_load_dwo_tu): New function.
3683 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3684 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3685 Make dependent_cu optional.
3686 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3687 and an older .gdb_index is in use, queue and load all its TUs too.
3688
3689 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3690
3691 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3692 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3693 variable search_flags.
3694 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3695 (OPF_RETURN_REALPATH): ... here.
3696 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3697 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3698 call. Twice.
3699 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3700 openp call.
3701 * solib.c (solib_find): Likewise. Four times.
3702 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3703 in the function comment and for the realpath_fptr variable.
3704 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3705 (find_and_open_source): Likewise. Twice.
3706 * symfile.c (symfile_bfd_open): Likewise, also twice.
3707
3708 2013-09-04 Doug Evans <dje@google.com>
3709
3710 * progspace.c (save_current_space_and_thread): Remove unnecessary
3711 call to save_current_inferior.
3712
3713 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3714
3715 * sh64-tdep.c (sh64_do_register): Return after printing message
3716 about unavailable register contents.
3717
3718 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3719 Pedro Alves <palves@redhat.com>
3720
3721 * symfile.c (add_symbol_file_command): Error out on unknown
3722 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3723 options and collapse into single conditional branch.
3724
3725 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3726
3727 * inf-child.c (inf_child_follow_fork): New parameter
3728 detach_fork.
3729 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3730 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3731 * inferior.h (detach_fork): Remove.
3732 * infrun.c (detach_fork): Adjust comment and make it
3733 static.
3734 (follow_fork): Pass detach_fork parameter to
3735 target_follow_fork.
3736 * linux-nat.c (linux_child_follow_fork): New parameter
3737 detach_fork.
3738 * target.c (target_follow_fork): New parameter detach_fork.
3739 Pass detach_fork as parameter and print its value.
3740 * target.h (struct target_ops) <to_follow_fork>: New int
3741 parameter.
3742 (target_follow_fork): New parameter detach_fork.
3743
3744 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3745
3746 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3747 Replace sec->bfd by sec->the_bfd_section->owner.
3748
3749 2013-09-03 Yao Qi <yao@codesourcery.com>
3750
3751 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3752 from linux_has_shared_address_space.
3753 (linux_has_shared_address_space): Call linux_is_uclinux.
3754 * linux-tdep.h (linux_is_uclinux): Declare.
3755 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3756 linux_is_uclinux.
3757
3758 2013-09-03 Yao Qi <yao@codesourcery.com>
3759
3760 * config/djgpp/fnchange.lst: Remove entry of
3761 i386-interix-nat.c and i386-interix-tdep.c.
3762 * configure.ac: Remove '*-*-interix*'.
3763 * configure: Re-generated.
3764 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3765 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3766 obsolete comments.
3767 * osabi.c (gdb_osabi_names): Remove "Interix".
3768
3769 2013-09-03 Yao Qi <yao@codesourcery.com>
3770
3771 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3772
3773 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3774
3775 * record.h (record_print_flag) <record_print_src_line,
3776 record_print_insn_range>: Rename into ...
3777 (record_print_flag) <record_print_src_line,
3778 record_print_insn_range>: ... this. Update all users.
3779
3780 2013-09-02 Pierre Muller <muller@sourceware.org>
3781
3782 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3783 error code.
3784
3785 2013-09-02 Pierre Muller <muller@sourceware.org>
3786
3787 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3788 by use of plongest function.
3789
3790 2013-09-02 Tristan Gingold <gingold@adacore.com>
3791
3792 * NEWS: Add entry mentioning support for native Windows x64
3793 SEH data.
3794
3795 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3796 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3797 (struct amd64_windows_frame_cache): New struct.
3798 (amd64_windows_w2gdb_regnum): New global.
3799 (pc_in_range, amd64_windows_frame_decode_epilogue)
3800 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3801 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3802 (amd64_windows_frame_this_id): New functions.
3803 (amd64_windows_frame_unwind): New static global.
3804 (amd64_windows_skip_prologue): New function.
3805 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3806 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3807 with amd64_windows_skip_prologue.
3808
3809 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3810
3811 GDB 7.6.1 released.
3812
3813 2013-08-30 Pedro Alves <palves@redhat.com>
3814
3815 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3816 SRC_AND_LOC.
3817
3818 2013-08-30 Pedro Alves <palves@redhat.com>
3819
3820 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3821 warning text.
3822
3823 2013-08-30 Pedro Alves <palves@redhat.com>
3824
3825 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3826 Adjust arguments to print_stack_frame.
3827
3828 2013-08-30 Pedro Alves <palves@redhat.com>
3829
3830 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3831
3832 2013-08-30 Pedro Alves <palves@redhat.com>
3833
3834 * frame.h (show_and_print_stack_frame): Delete declaration.
3835
3836 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3837
3838 PR python/15461
3839 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3840 (archpy_name): Check for valid architecture.
3841 (archpy_disassemble): Ditto.
3842
3843 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3844
3845 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3846 instead of "long long" in call to ptrace64.
3847
3848 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3849
3850 * mi/mi-interp.c (mi_command_loop): Change signature to match
3851 interp_command_loop_ftype.
3852 (mi1_command_loop): Remove.
3853 (mi2_command_loop): Remove.
3854 (mi3_command_loop): Remove.
3855 (mi_interpreter_resume): Remove setting of
3856 deprecated_command_loop_hook.
3857 (_initialize_mi_interp): Set mi_command_loop as the command loop
3858 callback.
3859
3860 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3861
3862 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3863 value_type.
3864
3865 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3866
3867 * value.c (allocate_value_contents): Make static.
3868 * value.h (allocate_value_contents): Remove prototype.
3869
3870 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3871
3872 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3873 of assembling value via allocate_value_lazy and attribute setter.
3874 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3875 assembling value via allocate_value_lazy and attribute setter.
3876 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3877 assembling value via allocate_value_lazy and attribute setter.
3878
3879 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3880
3881 * value.c (value_from_contents_and_address): Replace allocate_value and
3882 memcpy with value_from_contents.
3883
3884 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3885
3886 * python/py-framefilter.c (py_print_frame): Remove usage of
3887 PyString_AsString. Use python_string_to_host_string instead.
3888 Refactor function to work with a string as a new allocation
3889 instead of a pointer.
3890 (py_print_frame): Ditto.
3891 * python/lib/gdb/frames.py (return_list): Cain iterators together
3892 instead of adding them as a list.
3893 (_sort_list): Call return_list, and remove duplicate code.
3894 (execute_frame_filters): Convert iterator to a list with list().
3895 * python/lib/gdb/command/frame_filters.py
3896 (SetFrameFilterPriority._set_filter_priority): Convert priority
3897 attribute to an integer.
3898 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3899 wrapper function __next__.
3900 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3901 define as "str".
3902
3903 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3904
3905 PR python/15752
3906 * python/py-framefilter.c (apply_frame_filter): Check
3907 gdb_python_initialized. Exit if the Python frame-filter code
3908 cannot be initialized.
3909
3910 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3911
3912 PR cli/15842
3913 * top.c (print_gdb_version): Remove erroneous newline after help
3914 text.
3915
3916 2013-08-29 Yao Qi <yao@codesourcery.com>
3917
3918 * varobj.c (install_dynamic_child): Remove trailing space.
3919 Add one blank line after variable declaration.
3920
3921 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3922
3923 PR gdb/15415
3924 * corefile.c (get_exec_file): Use exec_filename.
3925 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3926 * exec.c (exec_close): Free EXEC_FILENAME.
3927 (exec_file_attach): New variable canonical_pathname. Use
3928 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3929 EXEC_FILENAME.
3930 * exec.h (exec_filename): New.
3931 * inferior.c (print_inferior, inferior_command): Use
3932 PSPACE_EXEC_FILENAME.
3933 * mi/mi-main.c (print_one_inferior): Likewise.
3934 * progspace.c (clone_program_space, print_program_space): Likewise.
3935 * progspace.h (struct program_space): New field pspace_exec_filename.
3936 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3937 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3938
3939 2013-08-28 Will Newton <will.newton@linaro.org>
3940
3941 * common/linux-ptrace.c: Include stdint.h unconditionally.
3942
3943 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3944
3945 Code cleanup.
3946 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3947
3948 2013-08-28 Yao Qi <yao@codesourcery.com>
3949 Pedro Alves <palves@redhat.com>
3950
3951 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3952 instead of stdio_fileopen.
3953 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3954 .Call stderr_fileopen instead of stdio_fileopen.
3955 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3956 [__MINGW32__] (stderr_file_fputs): New function.
3957 (stderr_fileopen): New function.
3958 * ui-file.h (stderr_fileopen): Declare.
3959
3960 2013-08-27 Doug Evans <dje@google.com>
3961
3962 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3963 (struct dwarf2_per_cu_data): Ditto.
3964 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3965 (process_imported_unit_die): Ditto.
3966 (follow_die_sig_1): Simplify assert.
3967
3968 2013-08-27 Pedro Alves <palves@redhat.com>
3969
3970 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3971 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3972 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3973 windows_xfer_memory directly.
3974 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3975
3976 2013-08-27 Pedro Alves <palves@redhat.com>
3977
3978 * darwin-nat.c (darwin_xfer_memory): Delete.
3979 (_initialize_darwin_inferior): Don't install a
3980 deprecated_xfer_memory method.
3981
3982 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3983 Yao Qi <yao@codesourcery.com>
3984
3985 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3986 (parse_no_frames_option): Remove.
3987 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3988 (mi_cmd_stack_list_args): Adjust.
3989 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3990 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3991 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3992 Caller update.
3993 (list_args_or_locals): New parameter 'skip_unavailable'.
3994 Handle it.
3995 * valprint.c (scalar_type_p): Rename to ...
3996 (val_print_scalar_type_p): ... this. Make extern.
3997 (val_print, value_check_printable): Adjust.
3998 * valprint.h (val_print_scalar_type_p): Declare.
3999 * value.c (value_entirely_unavailable): New function.
4000 * value.h (value_entirely_unavailable): Declare.
4001
4002 * NEWS: Mention the new option "--skip-unavailable" to MI
4003 commands '-stack-list-locals', '-stack-list-arguments' and
4004 '-stack-list-variables'.
4005
4006 2013-08-27 Yao Qi <yao@codesourcery.com>
4007
4008 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4009 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4010 options.
4011 * mi/mi-getopt.c (mi_getopt): Remove.
4012 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4013 'error_on_unknown'.
4014 (mi_getopt): Call mi_getopt_1.
4015 (mi_getopt_silent): New.
4016 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4017
4018 2013-08-26 Doug Evans <dje@google.com>
4019
4020 PR symtab/15885
4021 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4022 .gdb_index is in use.
4023 * symfile.c (reread_symbols): Reset objfile->sf.
4024
4025 * NEWS: Document "mt print objfiles" now takes optional regexp.
4026 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4027 regexp of objfiles to print.
4028 (_initialize_symmisc): Update doc string for "mt print objfiles".
4029
4030 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4031 missing debug info checks.
4032
4033 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4034 Ulrich Weigand <uweigand@de.ibm.com>
4035
4036 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4037 line tables generated by XLC compiled binaries.
4038
4039 2013-08-23 Doug Evans <dje@google.com>
4040
4041 * symmisc.c (dump_symtab): Delete prototype.
4042 (dump_msymbols, dump_objfile): Ditto.
4043 (maintenance_info_symtabs): Mark as dont_repeat.
4044 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4045
4046 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4047 debugging printf to better location.
4048
4049 2013-08-23 Pedro Alves <palves@redhat.com>
4050
4051 * target.c (target_read_live_memory): Change type of 'ret' local
4052 to LONGEST.
4053
4054 2013-08-23 Pedro Alves <palves@redhat.com>
4055
4056 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4057 (remote_read_bytes): Change return type to LONGEST, and adjust to
4058 return a target_xfer_error on error.
4059 (remote_xfer_memory): Delete.
4060 (remote_flash_write): Change type of 'ret' local to LONGEST.
4061 (remote_xfer_partial, remote_xfer_partial): Adjust.
4062 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4063
4064 2013-08-23 Pierre Muller <muller@sourceware.org>
4065
4066 ARI fix: Push # directives to start of line.
4067 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4068
4069 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4070
4071 PR gdb/15501
4072 * breakpoint.c (enable_command, disable_command): Iterate over
4073 all specified breakpoint locations.
4074
4075 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4076
4077 * common/linux-ptrace.c (linux_fork_to_function): Push #
4078 directives to the start of the line.
4079 (linux_check_ptrace_features): Fix warning message to use
4080 the "_" markup.
4081
4082 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4083
4084 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4085 nat/linux-waitpid.h.
4086 (linux-waitpid.o): New object file rule.
4087 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4088 (current_ptrace_options): Moved from linux-nat.c.
4089 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4090 parameters.
4091 (linux_fork_to_function): New function.
4092 (linux_grandchild_function): Likewise.
4093 (linux_child_function): Likewise.
4094 (linux_check_ptrace_features): New function, heavily
4095 based on linux-nat.c:linux_test_for_tracefork.
4096 (linux_enable_event_reporting): New function.
4097 (ptrace_supports_feature): Likewise.
4098 (linux_supports_tracefork): Likewise.
4099 (linux_supports_traceclone): Likewise.
4100 (linux_supports_tracevforkdone): Likewise.
4101 (linux_supports_tracesysgood): Likewise.
4102 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4103 gdbserver/linux-low.c.
4104 (linux_enable_event_reporting): New declaration.
4105 (linux_supports_tracefork): Likewise.
4106 (linux_supports_traceclone): Likewise.
4107 (linux_supports_tracevforkdone): Likewise.
4108 (linux_supports_tracesysgood): Likewise.
4109 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4110 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4111 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4112 * config/arm/linux.mh (NATDEPFILES): Likewise.
4113 * config/i386/linux.mh (NATDEPFILES): Likewise.
4114 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4115 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4116 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4117 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4118 * config/mips/linux.mh (NATDEPFILES): Likewise.
4119 * config/pa/linux.mh (NATDEPFILES): Likewise..
4120 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4121 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4122 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4123 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4124 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4125 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4126 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4127 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4128 ptrace's 4th argument's types.
4129 Check the type of PTRACE_TYPE_ARG4.
4130 * configure: Regenerate.
4131 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4132 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4133 (linux_supports_tracefork_flag): Remove.
4134 (linux_supports_tracesysgood_flag): Likewise.
4135 (linux_supports_tracevforkdone_flag): Likewise.
4136 (current_ptrace_options): Moved to
4137 common/linux-ptrace.c.
4138 (linux_tracefork_child): Remove.
4139 (my_waitpid): Remove.
4140 (linux_test_for_tracefork): Renamed to
4141 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4142 (linux_test_for_tracesysgood): Remove.
4143 (linux_supports_tracesysgood): Remove.
4144 (linux_supports_tracefork): Remove.
4145 (linux_supports_tracevforkdone): Remove.
4146 (linux_enable_tracesysgood): Remove.
4147 (linux_enable_event_reporting): Remove.
4148 (linux_init_ptrace): New function.
4149 (linux_child_post_attach): Call linux_init_ptrace.
4150 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4151 (linux_child_follow_fork): Call linux_supports_tracefork
4152 and linux_supports_tracevforkdone.
4153 (linux_child_insert_fork_catchpoint): Call
4154 linux_supports_tracefork.
4155 (linux_child_insert_vfork_catchpoint): Likewise.
4156 (linux_child_set_syscall_catchpoint): Call
4157 linux_supports_tracesysgood.
4158 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4159 * nat/linux-nat.h: New file.
4160 * nat/linux-waitpid.c: New file.
4161 * nat/linux-waitpid.h: New file.
4162
4163 2013-08-22 Samuel Bronson <naesten@gmail.com>
4164
4165 ARM Linux support for `catch syscall'.
4166 * syscalls/arm-linux.py: New file.
4167 * syscalls/arm-linux.xml: Likewise.
4168 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4169 (arm_linux_init_abi): Register the new function and syscall xml file.
4170 * data-directory/Makefile.in: Install the new syscall xml file.
4171 * NEWS: Brag about this.
4172
4173 2013-08-22 Pedro Alves <palves@redhat.com>
4174
4175 PR gdb/15871
4176 * corefile.c (target_xfer_memory_error): New function.
4177 (memory_error): Defer EIO to target_memory_error.
4178 (read_memory): Use target_xfer_partial, and handle finer-grained
4179 target xfer errors.
4180 * target.c (target_xfer_error_to_string): New function.
4181 (memory_xfer_partial_1): If memory is known to be
4182 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4183 (target_xfer_partial): Make extern.
4184 * target.h (enum target_xfer_error): New enum.
4185 (target_xfer_error_to_string): Declare function.
4186 (target_xfer_partial): Declare function.
4187 (struct target_ops) <xfer_partial>: Adjust describing comment.
4188
4189 2013-08-22 Alan Modra <amodra@gmail.com>
4190
4191 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4192 * configure.tgt: Likewise as targets.
4193
4194 2013-08-20 Doug Evans <dje@google.com>
4195
4196 * buildsym.c (subfile_stack): Move here from buildsym.h.
4197 (pending_macros): Ditto.
4198 (get_macro_table): New function.
4199 (buildsym_init): Initialize subfile_stack.
4200 * coffread.c (type_vector,type_vector_length): Moved here from
4201 buildsym.h.
4202 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4203 (coff_symtab_read): Use it.
4204 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4205 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4206 with call to get_macro_table.
4207 * stabsread.c (type_vector,type_vector_length): Moved here from
4208 buildsym.h.
4209 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4210 * buildsym.h (get_macro_table): Declare.
4211
4212 2013-08-20 Tom Tromey <tromey@redhat.com>
4213
4214 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4215 Update.
4216 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4217
4218 2013-08-20 Doug Evans <dje@google.com>
4219
4220 * blockframe.c: Remove #include "psymtab.h".
4221 * cp-support.c: Ditto.
4222 * source.c: Ditto.
4223 * stack.c: Ditto.
4224
4225 2013-08-20 Tom Tromey <tromey@redhat.com>
4226
4227 PR python/15816:
4228 * exceptions.h (return_mask): Now an enum.
4229 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4230 enum constants.
4231
4232 2013-08-20 Tom Tromey <tromey@redhat.com>
4233
4234 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4235 get_objfile_arch.
4236 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4237 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4238 * jit.c (jit_object_close_impl): Update.
4239 * jv-lang.c (get_dynamics_objfile): Update.
4240 * linespec.c (add_minsym): Use get_dynamics_objfile.
4241 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4242 (allocate_objfile): Don't initialize 'gdbarch' field.
4243 (get_objfile_arch): Update.
4244 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4245 moved from...
4246 (struct objfile) <gdbarch>: ... here. Remove.
4247 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4248 get_objfile_arch.
4249 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4250
4251 2013-08-20 Alan Modra <amodra@gmail.com>
4252
4253 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4254 for IBM long double nan and inf.
4255 (floatformat_is_negative, floatformat_classify,
4256 floatformat_mantissa): Similarly.
4257 (floatformat_ieee_single, floatformat_ieee_double,
4258 floatformat_ieee_quad, floatformat_arm_ext,
4259 floatformat_ia64_spill): Delete unused vars.
4260 (_initialize_doublest): Delete unused function.
4261 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4262 little-endian variants of floatformat_ibm_long_double.
4263
4264 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4265
4266 * Makefile.in (SFILES): Remove common/target-common.c and
4267 add target/waitstatus.c.
4268 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4269 target/resume.h, target/wait.h and target/waitstatus.h.
4270 (COMMON_OBS): Remove target-common.o and add
4271 waitstatus.o.
4272 (target-common.o): Remove.
4273 (waitstatus.o): New target object file.
4274 * common/target-common.c: Move contents to
4275 target/waitstatus.c and remove.
4276 * common/target-common.h: Move contents to other files and
4277 remove.
4278 (enum resume_kind: Move to target/resume.h.
4279 (TARGET_WNOHANG): Move to target/wait.h.
4280 (enum target_waitkind): Move to target/waitstatus.h.
4281 (struct target_waitstatus): Likewise.
4282 * target.h: Do not include target-common.h and
4283 include target/resume.h, target/wait.h and
4284 target/waitstatus.h.
4285 * target/resume.h: New file.
4286 * target/wait.h: New file.
4287 * target/waitstatus.h: New file.
4288 * target/waitstatus.c: New file.
4289
4290 2013-08-19 Pedro Alves <palves@redhat.com>
4291
4292 * linux-nat.c (linux_test_for_tracefork)
4293 (linux_test_for_tracesysgood, linux_child_follow_fork)
4294 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4295 (linux_nat_wait_1): Extend comment.
4296 (linux_async_pipe): Add comment.
4297
4298 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4299
4300 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4301 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4302 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4303 Update to account for fact that PC is now a pseudo-register.
4304 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4305 cases for RL78_PC_REGNUM.
4306
4307 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4308
4309 PR cli/15841
4310 * top.c (quit_force): Skip writing history file
4311 if input is not from terminal.
4312
4313 2013-08-14 Tom Tromey <tromey@redhat.com>
4314
4315 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4316 resultthreadlist>: New fields.
4317 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4318 (remote_get_threadlist, remote_threadlist_iterator): Use
4319 new fields. Remove static variables.
4320
4321 2013-08-14 Tom Tromey <tromey@redhat.com>
4322
4323 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4324 remote_watch_data_address>: New fields.
4325 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4326 (process_stop_reply, remote_wait_as)
4327 (remote_check_watch_resources, remote_stopped_data_address): Update.
4328
4329 2013-08-14 Tom Tromey <tromey@redhat.com>
4330
4331 * remote.c (struct remote_state) <async_client_callback,
4332 async_client_context>: New fields.
4333 (async_client_callback, async_client_context): Remove.
4334 (remote_async_serial_handler, remote_async): Update.
4335
4336 2013-08-14 Tom Tromey <tromey@redhat.com>
4337
4338 * remote.c (sizeof_pkt): Remove.
4339 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4340
4341 2013-08-14 Tom Tromey <tromey@redhat.com>
4342
4343 * remote.c (struct remote_state) <use_threadinfo_query,
4344 use_threadextra_query>: New fields.
4345 (remote_threads_info, remote_threads_extra_info)
4346 (remote_open_1): Update.
4347
4348 2013-08-14 Tom Tromey <tromey@redhat.com>
4349
4350 * remote.c (struct remote_state) <finished_object,
4351 finished_annex, finished_offset>: New fields.
4352 (remote_read_qxfer): Use remote_state fields; remove static
4353 variables.
4354
4355 2013-08-14 Tom Tromey <tromey@redhat.com>
4356
4357 * remote.c (struct remote_state) <last_sent_step>:
4358 New field.
4359 (last_sent_step): Remove.
4360 (remote_resume, remote_wait_as): Update.
4361
4362 2013-08-14 Tom Tromey <tromey@redhat.com>
4363
4364 * remote.c (struct remote_state) <last_sent_signal>:
4365 New field.
4366 (last_sent_signal): Remove.
4367 (new_remote_state, remote_resume, remote_wait_as): Update.
4368
4369 2013-08-14 Tom Tromey <tromey@redhat.com>
4370
4371 * remote.c (struct remote_state) <last_program_signals_packet>:
4372 New field.
4373 (last_program_signals_packet): Remove.
4374 (remote_program_signals, remote_open_1): Update.
4375
4376 2013-08-14 Tom Tromey <tromey@redhat.com>
4377
4378 * remote.c (struct remote_state) <last_pass_packet>:
4379 New field.
4380 (last_pass_packet): Remove.
4381 (remote_pass_signals, remote_open_1): Update.
4382
4383 2013-08-14 Tom Tromey <tromey@redhat.com>
4384
4385 * remote.c (struct remote_state) <remote_traceframe_number>:
4386 New field.
4387 (remote_traceframe_number): Remove.
4388 (new_remote_state, remote_open_1, set_remote_traceframe)
4389 (remote_trace_find): Update.
4390
4391 2013-08-14 Tom Tromey <tromey@redhat.com>
4392
4393 * remote.c (struct remote_state) <general_thread, continue_thread>:
4394 New fields.
4395 (general_thread, continue_thread): Remove.
4396 (record_currthread, set_thread, set_general_process)
4397 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4398 (extended_remote_mourn_1): Update.
4399
4400 2013-08-14 Tom Tromey <tromey@redhat.com>
4401
4402 * remote.c (struct remote_state) <remote_desc>: New field.
4403 (remote_desc): Remove.
4404 (remote_threads_info, remote_threads_extra_info, remote_close)
4405 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4406 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4407 (remote_hostio_send_command, remote_file_put, remote_file_get)
4408 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4409 (remote_async, remote_new_objfile, set_range_stepping): Update.
4410
4411 2013-08-14 Tom Tromey <tromey@redhat.com>
4412
4413 * remote.c (remote_state): Now a pointer.
4414 (get_remote_state_raw): Update.
4415 (new_remote_state): New function.
4416 (_initialize_remote): Use new_remote_state.
4417
4418 2013-08-14 Tom Tromey <tromey@redhat.com>
4419
4420 * remote.c (remote_protocol_features): Now const.
4421
4422 2013-08-14 Tom Tromey <tromey@redhat.com>
4423
4424 * remote.c (crc32_table, crc32): Remove.
4425 (remote_verify_memory): Use xcrc32.
4426
4427 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4428
4429 * value.h (create_internalvar_type_lazy): Adjust prototype
4430 declaration.
4431
4432 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4433
4434 * common/format.c (parse_format_string): Don't allow '#' flag for
4435 pointer arguments in format string.
4436
4437 2013-08-13 Pierre Muller <muller@sourceware.org>
4438
4439 * utils.c (init_page_info): Only call tgetnum function
4440 if rl_get_screen_size did not return useful values.
4441
4442 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4443
4444 PR breakpoints/15117
4445 * linespec.c (linespec_parse_basic): Check for convenience
4446 variable or history value while parsing.
4447
4448 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4449
4450 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4451 AVR.
4452 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4453 different signals between the generic Linux kernel implementation
4454 and AVR's.
4455 (avr_linux_gdb_signal_from_target): Delete.
4456 (avr_linux_gdb_signal_to_target): Delete.
4457 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4458
4459 2013-08-09 Doug Evans <dje@google.com>
4460
4461 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4462 entries.
4463
4464 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4465
4466 * linux-tdep.c: Define enum with generic signal numbers.
4467 (linux_gdb_signal_from_target): New function.
4468 (linux_gdb_signal_to_target): Likewise.
4469 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4470 methods to the functions above.
4471 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4472 (linux_gdb_signal_to_target): Likewise.
4473 * alpha-linux-tdep.c: Define new enum with signals different
4474 from generic Linux kernel.
4475 (alpha_linux_gdb_signal_from_target): New function.
4476 (alpha_linux_gdb_signal_to_target): Likewise.
4477 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4478 with the functions mentioned above.
4479 * avr-tdep.c: Define enum with differences between Linux kernel
4480 and AVR signals.
4481 (avr_linux_gdb_signal_from_target): New function.
4482 (avr_linux_gdb_signal_to_target): Likewise.
4483 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4484 the functions mentioned above.
4485 * sparc-linux-tdep.c: Define enum with differences between SPARC
4486 and generic Linux kernel signal numbers.
4487 (sparc32_linux_gdb_signal_from_target): New function.
4488 (sparc32_linux_gdb_signal_to_target): Likewise.
4489 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4490 to the functions defined above.
4491 * xtensa-linux-tdep.c: Define enum with differences between
4492 Xtensa and Linux kernel generic signals.
4493 (xtensa_linux_gdb_signal_from_target): New function.
4494 (xtensa_linux_gdb_signal_to_target): Likewise.
4495 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4496 to the functions defined above.
4497 * mips-linux-tdep.c: Define enum with differences between
4498 signals in MIPS and Linux kernel generic ones.
4499 (mips_gdb_signal_to_target): New function.
4500 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4501 only different signals from the Linux kernel generic.
4502 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4503 the functions defined above.
4504 * mips-linux-tdep.h (enum mips_signals): Remove.
4505
4506 2013-08-09 Pedro Alves <palves@redhat.com>
4507
4508 * avr-tdep.c (XMALLOC): Delete macro.
4509 * cli/cli-dump.c (XMALLOC): Delete macro.
4510
4511 2013-08-09 Pedro Alves <palves@redhat.com>
4512
4513 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4514 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4515 (fopen_with_cleanup, add_dump_command): Make static.
4516 * cli/cli-dump.h: Delete file.
4517 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4518 cli/cli-dump.h.
4519
4520 2013-08-09 Pedro Alves <palves@redhat.com>
4521
4522 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4523 error message.
4524
4525 2013-08-09 Pedro Alves <palves@redhat.com>
4526
4527 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4528 error message.
4529
4530 2013-08-09 Pedro Alves <palves@redhat.com>
4531
4532 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4533 (gcore_command): Use tilde_expand here, and when showing the
4534 filename to the user, show the expanded version.
4535
4536 2013-08-09 Yao Qi <yao@codesourcery.com>
4537
4538 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4539 'entryval' is set.
4540
4541 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4542
4543 * gcore.c (create_gcore_bfd): Use tilde_expand.
4544
4545 2013-08-08 Yao Qi <yao@codesourcery.com>
4546
4547 * frame.h (read_frame_local): Declare.
4548 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4549 read_frame_local.
4550 * stack.c (read_frame_local): New.
4551
4552 2013-08-08 Yao Qi <yao@codesourcery.com>
4553
4554 * mi/mi-cmd-stack.c: Update comments to function
4555 list_args_or_locals.
4556
4557 2013-08-07 Tom Tromey <tromey@redhat.com>
4558
4559 PR symtab/15028:
4560 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4561 (process_psymtab_comp_unit_reader): Use it.
4562 (process_psymtab_comp_unit): Update. Add "pretend_language"
4563 argument.
4564 (dwarf2_build_psymtabs_hard): Update.
4565 (scan_partial_symbols): Pass CU's language to
4566 process_psymtab_comp_unit.
4567
4568 2013-08-07 Tom Tromey <tromey@redhat.com>
4569
4570 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4571 (dwarf2_gdb_index_functions): Update.
4572 * psymtab.c (find_symbol_file_from_partial): Remove.
4573 (psym_functions): Update.
4574 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4575 Remove.
4576
4577 2013-08-07 Tom Tromey <tromey@redhat.com>
4578
4579 * symfile.c (set_initial_language): Look up "main" symbol
4580 and use its language.
4581 * symtab.c (find_main_filename): Remove.
4582 * symtab.h (find_main_filename): Remove.
4583
4584 2013-08-07 Tom Tromey <tromey@redhat.com>
4585
4586 * dwarf2read.c (recursively_compute_inclusions): Add
4587 "immediate_parent" argument. Set symtab's "user" field
4588 if not set.
4589 (compute_symtab_includes): Update.
4590
4591 2013-08-07 Tom Tromey <tromey@redhat.com>
4592
4593 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4594 when adding label symbols.
4595
4596 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4597 Ulrich Weigand <uweigand@de.ibm.com>
4598
4599 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4600 * configure.host (powerpc64-*-aix*): Likewise.
4601
4602 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4603 Ulrich Weigand <uweigand@de.ibm.com>
4604
4605 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4606 is defined.
4607 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4608 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4609 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4610 * configure.ac: Check for ptrace64.
4611 * configure, config.in: Regenerate.
4612
4613 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4614 Ulrich Weigand <uweigand@de.ibm.com>
4615
4616 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4617 Call ptrace64 instead of ptrace if defined.
4618 Add macro addr_ptr to take care of ptrace address argument.
4619 (pdc_read_regs): Likewise.
4620 (pdc_write_regs): Likewise.
4621 (aix_thread_resume): Likewise.
4622 (fetch_regs_kernel_thread): Likewise.
4623 (store_regs_kernel_thread): Likewise.
4624
4625 2013-08-07 Anton Blanchard <anton@samba.org>
4626
4627 * MAINTAINERS: Add myself to Write After Approval.
4628
4629 2013-08-05 Tom Tromey <tromey@redhat.com>
4630
4631 * aix-thread.c (_initialize_aix_thread): Use
4632 complete_target_initialization.
4633 * bsd-uthread.c (_initialize_bsd_uthread): Use
4634 complete_target_initialization.
4635 * dec-thread.c (_initialize_dec_thread): Use
4636 complete_target_initialization.
4637 * ravenscar-thread.c (_initialize_ravenscar): Use
4638 complete_target_initialization.
4639 * sol-thread.c (_initialize_sol_thread): Use
4640 complete_target_initialization.
4641 * spu-multiarch.c (_initialize_spu_multiarch): Use
4642 complete_target_initialization.
4643
4644 2013-08-05 Tom Tromey <tromey@redhat.com>
4645
4646 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4647 * ada-lang.c (ada_lookup_simple_minsym): Return
4648 bound_minimal_symbol.
4649 * ada-lang.h (ada_lookup_simple_minsym): Update.
4650 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4651 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4652 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4653 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4654 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4655 * minsyms.c (msymbol_objfile): Remove.
4656 (lookup_minimal_symbol_internal): New function, from
4657 lookup_minimal_symbol.
4658 (lookup_minimal_symbol): Rewrite using
4659 lookup_minimal_symbol_internal.
4660 (lookup_bound_minimal_symbol): New function.
4661 * minsyms.h (msymbol_objfile): Remove.
4662 (lookup_bound_minimal_symbol): Declare.
4663 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4664 * parse.c (write_exp_msymbol): Change parameter to a
4665 bound_minimal_symbol.
4666 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4667 * parser-defs.h (write_exp_msymbol): Update.
4668 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4669 * symfile.c (simple_read_overlay_table): Use
4670 lookup_bound_minimal_symbol.
4671 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4672 (search_symbols): Likewise.
4673 (print_msymbol_info): Take a bound_minimal_symbol argument.
4674 (symtab_symbol_info, rbreak_command): Update.
4675 * symtab.h (struct symbol_search) <msymbol>: Change type
4676 to bound_minimal_symbol.
4677 * valops.c (find_function_in_inferior): Use
4678 lookup_bound_minimal_symbol.
4679 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4680
4681 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4682
4683 Code cleanup.
4684 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4685 to ...
4686 (async_cleanup_sigint_signal_handler): ... this.
4687 (initialize_sigint_signal_handler): Remove declaration.
4688 (handle_remote_sigint): Rename the declaration to ...
4689 (async_handle_remote_sigint): ... this.
4690 (handle_remote_sigint_twice): Rename the declaration to ...
4691 (async_handle_remote_sigint_twice): ... this.
4692 (async_remote_interrupt, async_remote_interrupt_twice)
4693 (remote_interrupt): Remove the declarations.
4694 (remote_interrupt_twice): Rename the declaration ...
4695 (sync_remote_interrupt_twice): ... this.
4696 (sigint_remote_twice_token): Rename the variable to ...
4697 (async_sigint_remote_twice_token): ... this.
4698 (sigint_remote_token): Rename the variable to ...
4699 (async_sigint_remote_token): ... this.
4700 (initialize_sigint_signal_handler): Rename the function to ...
4701 (async_initialize_sigint_signal_handler): ... this. Update the name
4702 inside.
4703 (handle_remote_sigint): Rename the function to ...
4704 (async_handle_remote_sigint): ... this. Update the names inside.
4705 (handle_remote_sigint_twice): Rename the function to ...
4706 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4707 (cleanup_sigint_signal_handler): Rename the function to ...
4708 (async_cleanup_sigint_signal_handler): ... this.
4709 (remote_interrupt): Rename the function to ...
4710 (sync_remote_interrupt): this. Update the names inside.
4711 (remote_interrupt_twice): Rename the function to ...
4712 (sync_remote_interrupt_twice): this. Update the names inside.
4713 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4714 (_initialize_remote): Update the names inside.
4715
4716 2013-08-02 Tom Tromey <tromey@redhat.com>
4717
4718 PR symtab/15719:
4719 * breakpoint.c (update_watchpoint, watchpoint_check)
4720 (watch_command_1): Update.
4721 * eval.c (fetch_subexp_value): Add "preserve_errors"
4722 parameter.
4723 * ppc-linux-nat.c (check_condition): Update.
4724 * value.h (fetch_subexp_value): Update.
4725
4726 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4727
4728 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4729 add_file_handler.
4730
4731 2013-08-01 Doug Evans <dje@google.com>
4732
4733 PR symtab/15691
4734 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4735 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4736 Add assert of sig_entry->dwo_unit == NULL.
4737 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4738 had already been read.
4739 (read_signatured_type): Set per_cu.tu_read.
4740
4741 PR symtab/15695
4742 * valops.c (value_struct_elt): Add missing call to check_typedef.
4743 (value_find_oload_method_list): Ditto.
4744
4745 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4746 effectively, struct symbol_search **.
4747 (make_cleanup_free_search_symbols): Change arg to struct
4748 symbol_search **. All callers updated.
4749 (compare_search_syms): Compare symtab file name and block as well.
4750 (search_symbols_equal): New function.
4751 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4752 New args new_head, new_tail. Result is now void. Remove dups after
4753 sorting the symbols.
4754 (search_symbols): Sort all found symbols once, after all have been
4755 found, and remove duplicates. Simplify cleanup tracking of result.
4756 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4757
4758 Further workarounds for binutils/15021.
4759 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4760 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4761 Watch for duplicate symtabs coming from type units.
4762 (compute_symtab_includes): Update call to
4763 recursively_compute_inclusions. Build vector of included symtabs
4764 instead of per_cus.
4765 * symtab.h (symtab_ptr): New typedef.
4766 (DEF_VEC_P (symtab_ptr)): New VEC type.
4767 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4768 instead.
4769
4770 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4771
4772 * cli/cli-script.c (script_from_file): Remove use of
4773 error_pre_print.
4774 * main.c (captured_main): Remove use of error_pre_print and
4775 quit_pre_print.
4776 * utils.c (error_pre_print, quit_pre_print): Remove.
4777 * utils.h (error_pre_print, quit_pre_print): Likewise.
4778
4779 2013-08-01 Yao Qi <yao@codesourcery.com>
4780
4781 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4782 with mi_getopt.
4783 (mi_cmd_stack_list_variables): Likewise.
4784
4785 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4786
4787 * exceptions.c (deprecated_throw_reason): Remove.
4788 * exceptions.h (deprecated_throw_reason): Remove.
4789
4790 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4791
4792 * remote-mips.c (mips_error): Replace use of
4793 deprecated_throw_reason with throw_verror. Use the error message
4794 passed to mips_error as the error message for throw_verror.
4795
4796 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4797
4798 * monitor.c (monitor_interrupt_query): Replace use of
4799 deprecated_throw_reason with quit.
4800 * nto-procfs.c (interrupt_query): Likewise.
4801 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4802 * remote-mips.c (mips_kill): Likewise.
4803 * remote.c (interrupt_query): Likewise.
4804
4805 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4806
4807 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4808 with call to fatal.
4809
4810 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4811 Yao Qi <yao@codesourcery.com>
4812
4813 * tracepoint.c (trace_dump_command): Select the current frame.
4814
4815 2013-07-30 Doug Evans <dje@google.com>
4816
4817 * dwarf2read.c (process_queue): Add type signature to debug output.
4818
4819 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4820
4821 * value.c (value_fetch_lazy): Mark optimized out values as such
4822 rather than raising an error.
4823
4824 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4825
4826 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4827 before checking which bits of the parent, not the child, value are
4828 valid.
4829
4830 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4831
4832 PR gdb/15715
4833 * top.c: Include "filenames.h".
4834 (set_history_filename): New function.
4835 (init_main): Install it as set hook of the "set history filename"
4836 command.
4837
4838 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4839
4840 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4841 attribute parameter.
4842 (dwarf2_const_value_data): Constify struct attribute parameter.
4843 (dwarf2_const_value): Constify struct attribute parameter.
4844 (dwarf2_const_value_attr): Constify struct attribute parameter.
4845 (lookup_die_type): Constify struct attribute parameter.
4846 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4847 (follow_die_ref_or_sig): Constify struct attribute parameter.
4848 (follow_die_ref): Constify struct attribute parameter.
4849 (follow_die_sig): Constify struct attribute parameter.
4850 (get_DW_AT_signature_type): Constify struct attribute parameter.
4851 (get_type_unit_group): Constify struct attribute parameter.
4852 (fill_in_loclist_baton): Constify struct attribute parameter.
4853 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4854 (type_unit_group): Constify struct attribute parameter.
4855
4856 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4857
4858 * dwarf2read.c (attr_form_is_block): Make argument const.
4859 (attr_form_is_section_offset): Make argument const.
4860 (attr_form_is_constant): Make argument const.
4861 (attr_form_is_ref): Make argument const.
4862
4863 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4864
4865 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4866 All uses updated.
4867 (attr_form_is_ref): Moved below attr_form_is_constant.
4868
4869 2013-07-29 Doug Evans <dje@google.com>
4870
4871 * main.c (captured_command_loop): Tweak comment.
4872
4873 * target.c (target_async_permitted_1): Fix comment.
4874
4875 * symtab.c (iterate_over_some_symtabs): Add comment.
4876
4877 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4878
4879 2013-07-27 Yao Qi <yao@codesourcery.com>
4880
4881 * NEWS: Mention that GDBserver now supports hardware
4882 watchpoints on the MIPS GNU/Linux target.
4883
4884 2013-07-27 Yao Qi <yao@codesourcery.com>
4885
4886 * Makefile.in (HFILES_NO_SRCDIR): Add
4887 common/mips-linux-watch.h.
4888 (mips-linux-watch.o): New rule.
4889 * common/mips-linux-watch.c: New.
4890 * common/mips-linux-watch.h: New.
4891 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4892 * mips-linux-nat.c: Include mips-linux-watch.h.
4893 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4894 to common/mips-linux-watch.h.
4895 (MAX_DEBUG_REGISTER): Likewise.
4896 (enum pt_watch_style): Likewise.
4897 (struct mips32_watch_regs): Likewise.
4898 (struct mips64_watch_regs): Likewise.
4899 (struct pt_watch_regs): Likewise.
4900 (struct mips_watchpoint): Likewise.
4901 (mips_linux_watch_get_irw_mask): Move to
4902 common/mips-linux-watch.c.
4903 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4904 (mips_linux_watch_get_watchlo): Likewise.
4905 (mips_linux_watch_set_watchlo): Likewise.
4906 (mips_linux_watch_get_watchhi): Likewise.
4907 (mips_linux_watch_set_watchhi): Likewise.
4908 (mips_linux_read_watch_registers): Likewise.
4909 (mips_linux_watch_type_to_irw): Likewise.
4910 (mips_linux_stopped_data_address, fill_mask): Likewise.
4911 (mips_linux_watch_try_one_watch): Likewise.
4912 (mips_linux_watch_populate_regs): Likewise.
4913
4914 2013-07-27 Yao Qi <yao@codesourcery.com>
4915
4916 * mips-linux-nat.c (get_irw_mask): Rename to ...
4917 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4918 'set' to 'n'. Update function comment. All callers changed.
4919 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4920 function comment. All callers changed.
4921 (get_num_valid): Rename to ...
4922 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4923 'set' to 'n'. Update function comment. All callers changed.
4924 (get_watchlo): Rename to ...
4925 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4926 'set' to 'n'. Update function comment. All callers changed.
4927 (set_watchlo): Rename to ...
4928 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4929 'set' to 'n'. Update function comment. All callers changed.
4930 (get_watchhi): Rename to ...
4931 (mips_linux_watch_get_watchhi): ... this. Update function
4932 comment. All callers changed.
4933 (set_watchhi): Rename to ...
4934 (mips_linux_watch_set_watchhi): ... this. Update function
4935 comment. All callers changed.
4936 (mips_linux_read_watch_registers): Update function comment.
4937 Add new parameters 'lwpid', 'watch_readback', and
4938 'watch_readback_valid'. Update.
4939 (type_to_irw): Rename to ...
4940 (mips_linux_watch_type_to_irw): ... this. Update function
4941 comment. All callers changed.
4942 (fill_mask): Update function comment.
4943 (try_one_watch): Rename to ...
4944 (mips_linux_watch_try_one_watch): ... this. Change the type
4945 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4946 (populate_regs_from_watches): Rename to ...
4947 (mips_linux_watch_populate_regs): ... this. Add parameter
4948 'current_watches'. All callers changed.
4949
4950 2013-07-27 Yao Qi <yao@codesourcery.com>
4951
4952 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4953 the code.
4954 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4955 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4956 (struct pt_watch_regs): Likewise.
4957 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4958 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4959 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4960 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4961 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4962
4963 2013-07-27 Yao Qi <yao@codesourcery.com>
4964
4965 * breakpoint.h: Include break-common.h.
4966 (enum target_hw_bp_type): Move to ...
4967 * common/break-common.h: ... here. New.
4968
4969 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4970
4971 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4972 process group regardless of having tty on stdin.
4973
4974 2013-07-25 Doug Evans <dje@google.com>
4975
4976 * linux-fork.h (detach_fork): Delete.
4977
4978 2013-07-25 Tom Tromey <tromey@redhat.com>
4979
4980 PR remote/15256, PR remote/15266:
4981 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4982 * monitor.c (monitor_detach): Use unpush_target.
4983 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4984 * remote-mips.c (mips_detach): Use unpush_target. Don't
4985 call mips_close.
4986 * remote-sim.c (gdbsim_detach): Use unpush_target.
4987 * target.c (pop_target): Remove.
4988 (pop_all_targets_above): Don't call target_close.
4989 (target_close): Assert that the target is unpushed.
4990 * target.h (pop_target): Don't declare.
4991 * tracepoint.c (tfile_open): Use unpush_target.
4992
4993 2013-07-25 Tom Tromey <tromey@redhat.com>
4994
4995 * linux-thread-db.c (init_thread_db_ops): Call
4996 complete_target_initialization.
4997 (_initialize_thread_db): Don't call add_target.
4998 * target.c (complete_target_initialization): New function.
4999 (add_target_with_completer): Call it.
5000 * target.h (complete_target_initialization): Declare.
5001
5002 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5003
5004 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5005 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5006 (HPPANBSD_SIZEOF_GREGS): New define.
5007 (hppaobsd_supply_gregset): Handle additional registers.
5008 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5009 we provide more registers now.
5010 (hppabsd_supply_gregset): Supply additional registers.
5011 (hppabsd_collect_gregset): Collect additional registers.
5012
5013 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5014
5015 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5016 (hppabsd_dwarf2_frame_init_reg): New function.
5017 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5018
5019 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5020
5021 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5022 'z' format code. Remove error for optimized out values, standard
5023 code will handle these fine.
5024
5025 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5026
5027 * NEWS: Mention new 'z' formatter.
5028 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5029 (_initialize_printcmd): Mention 'z' formatter in help text of the
5030 'x' command.
5031
5032 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5033
5034 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5035 formatting.
5036
5037 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5038
5039 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5040 interface can evaluate arguments. Fallback to the old mode if it
5041 cannot.
5042 (create_exception_master_breakpoint): Likewise.
5043 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5044 (struct sym_probe_fns elf_probe_fns): Export function above to the
5045 probe interface.
5046 * probe.c (can_evaluate_probe_arguments): New function.
5047 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5048 function pointer.
5049 (can_evaluate_probe_arguments): New function prototype.
5050 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5051 probe interface can evaluate arguments. Fallback to the old mode
5052 if it cannot.
5053 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5054 interface can evaluate arguments. Warning the user if it cannot.
5055 (stap_can_evaluate_probe_arguments): New function.
5056 (struct probe_ops stap_probe_ops): Export function above to the
5057 probe interface.
5058 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5059 New function pointer.
5060
5061 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5062
5063 * Makefile.in (SFILES): Add common/target-common.c.
5064 Add common/target-common.h to headers.
5065 (COMMON_OBS): Add target-common.o.
5066 (target-common.o): New target.
5067 * linux-nat.h (resume_kind): Move to common/target-common.h.
5068 * target.c (target_waitstatus_to_string): Move to
5069 common/target-common.c.
5070 * target.h: Include target-common.h.
5071 (target_waitkind): Move to common/target-common.h.
5072 (target_waitstatus): Likewise.
5073 (TARGET_WNOHANG): Likewise.
5074 * common/target-common.c: New file.
5075 * common/target-common.h: New file.
5076
5077 2013-07-24 Doug Evans <dje@google.com>
5078
5079 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5080 a warning.
5081
5082 2013-07-23 Yao Qi <yao@codesourcery.com>
5083
5084 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5085 parameter 'gdbarch'.
5086 (i386_stack_tramp_frame_sniffer): Caller update.
5087 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5088 parameter 'gdbarch' and 'target'.
5089 (i386_linux_core_read_description): Caller update.
5090 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5091 Likewise.
5092 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5093 declaration.
5094
5095 2013-07-23 Tom Tromey <tromey@redhat.com>
5096
5097 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5098 2013-07-22.
5099
5100 2013-07-22 Doug Evans <dje@google.com>
5101
5102 * exec.h (remove_target_sections): Delete arg abfd.
5103 * exec.c (exec_close): Update call to remove_target_sections.
5104 (remove_target_sections): Delete arg abfd.
5105 * solib.c (update_solib_list): Ditto.
5106 (reload_shared_libraries_1): Ditto.
5107 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5108 * target.h (struct target_section): Rename key to owner.
5109 All uses updated.
5110
5111 2013-07-22 Tom Tromey <tromey@redhat.com>
5112
5113 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5114
5115 2013-07-22 Tom Tromey <tromey@redhat.com>
5116
5117 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5118 Simplify cleanup handling.
5119
5120 2013-07-22 Tom Tromey <tromey@redhat.com>
5121
5122 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5123 on all return paths.
5124
5125 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5126
5127 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5128 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5129 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5130
5131 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5132
5133 * top.c (print_gdb_version): Add help, apropos description and
5134 url to online documentation.
5135
5136 2013-07-19 Hui Zhu <hui@codesourcery.com>
5137
5138 PR gdb/15692
5139 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5140
5141 2013-07-19 Yao Qi <yao@codesourcery.com>
5142
5143 * target.c (update_current_target): Change the default action
5144 of 'to_traceframe_info' from tcomplain to return_zero.
5145 * target.h (struct target_ops) <to_traceframe_info>: Add more
5146 comments.
5147 * valops.c (read_value_memory): Call
5148 traceframe_available_memory unconditionally.
5149
5150 2013-07-18 Yao Qi <yao@codesourcery.com>
5151
5152 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5153 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5154 symbol without prefix. If found, set its type to
5155 'mst_solib_trampoline'.
5156
5157 2013-07-17 Doug Evans <dje@google.com>
5158
5159 * NEWS: Mention "set print raw frame-arguments".
5160 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5161 * stack.c (print_raw_frame_arguments): New static global.
5162 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5163 (_initialize_stack): New command "set/show print raw frame-arguments".
5164 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5165 (set_print_raw, show_print_raw): New functions.
5166 (_initialize_valprint): New prefix command "set/show print raw".
5167 * valprint.h (value_print_options): Improve comments.
5168
5169 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5170 of all *list variables.
5171
5172 * gdbcmd.h (togglelist): Delete.
5173 * cli/cli-cmds.c (togglelist): Delete.
5174 (init_cmd_lists): Update.
5175 * cli/cli-cmds.h (togglelist): Delete.
5176
5177 2013-07-17 Tom Tromey <tromey@redhat.com>
5178
5179 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5180 dwarf2_per_objfile.
5181
5182 2013-07-16 Doug Evans <dje@google.com>
5183
5184 * nto-tdep.c (nto_relocate_section_addresses): Update,
5185 target_section.bfd deleted.
5186 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5187 * s390-tdep.c (s390_load): Ditto.
5188 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5189
5190 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5191
5192 * common/format.c (parse_format_string): Add checks for NULL
5193 character before calling strchr.
5194
5195 2013-07-16 Doug Evans <dje@google.com>
5196
5197 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5198 temp_pathname argument.
5199 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5200 when opening the file fails.
5201
5202 * target.h (struct target_section): Delete member bfd.
5203 All users updated to use the_bfd_section->owner instead.
5204 * exec.c (add_to_section_table): Assert bfd is expected value.
5205 Remove initialization of target_section.bfd.
5206 (remove_target_sections): Update.
5207 (section_table_available_memory): Update.
5208 (section_table_xfer_memory_partial): Update.
5209 (print_section_info): Update.
5210 (exec_set_section_address): Update.
5211 * record-full.c (record_full_core_xfer_partial): Update.
5212 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5213 * solib-target.c (solib_target_relocate_section_addresses): Update.
5214 * symfile.c (build_section_addr_info_from_section_table): Update.
5215 * target.c (memory_xfer_live_readonly_partial): Update.
5216 (memory_xfer_partial_1): Update.
5217
5218 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5219
5220 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5221 now available for embedded (BookE) and server (BookS) processors,
5222 correct mentions of 'booke' and adjust comments accordingly in order to
5223 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5224 (have_ptrace_booke_interface): Rename function and variable
5225 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5226 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5227 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5228 'hwdebug_point_cmp'. Update all uses.
5229 (booke_find_thread_points_by_tid): Rename function
5230 'booke_find_thread_points_by_tid' to
5231 'hwdebug_find_thread_points_by_tid'. Update all uses.
5232 (booke_insert_point): Rename function 'booke_insert_point' to
5233 'hwdebug_insert_point'. Update all uses.
5234 (booke_remove_point): Rename function 'booke_remove_point' to
5235 'hwdebug_remove_point'. Update all uses.
5236
5237 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5238
5239 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5240 numbers with enum values.
5241
5242 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5243
5244 PR threads/13217
5245 * thread.c (thread_apply_all_command): Check for valid threads
5246 and thread count.
5247 (thread_array_cleanup): New struct.
5248 (set_thread_refcount): New function.
5249
5250 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5251
5252 * infcmd.c (default_print_one_register_info): Reuse function
5253 print_hex_chars.
5254
5255 2013-07-10 Tom Tromey <tromey@redhat.com>
5256
5257 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5258 (ada-exp.o): New target.
5259
5260 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5261
5262 * mt-tdep.c (mt_registers_info): Call
5263 get_no_prettyformat_print_options instead of
5264 get_raw_print_options (regression by last patch from Doug
5265 Evans).
5266
5267 2013-07-09 Pedro Alves <palves@redhat.com>
5268
5269 Checked in by Joel Brobecker <brobecker@adacore.com>.
5270 * ada-lang.c (coerce_unspec_val_to_type): Use
5271 value_optimized_out_const.
5272 * value.c (value_optimized_out_const): New function.
5273 * value.h (value_optimized_out_const): New declaration.
5274
5275 2013-07-09 Doug Evans <dje@google.com>
5276
5277 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5278 Enum values rename as well. All uses updated.
5279 * valprint.h (value_print_options): Rename member pretty to
5280 pretty format. Rename member prettyprint_arrays to
5281 prettyformat_arrays. Rename member prettyprint_structs to
5282 prettyformat_structs. All uses updated.
5283 (get_no_prettyformat_print_options): Renamed from
5284 get_raw_print_options.
5285 * valprint.c (get_no_prettyformat_print_options): Renamed from
5286 get_raw_print_options. All callers updated.
5287 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5288 All callers updated.
5289 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5290 All callers updated.
5291 (_initialize_valprint): Improve help text for "set print pretty" and
5292 "set print arrays".
5293
5294 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5295
5296 * value.c (value_bits_valid): Revert previous change, and change
5297 by Pedro on 2013-07-04, due to regressions in
5298 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5299
5300 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5301 Pedro Alves <palves@redhat.com>
5302
5303 * value.c (value_bits_valid): If the value is not lval_computed
5304 or has no check validity handler then the answer is the
5305 optimized_out flag, otherwise defer to the handler.
5306
5307 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5308
5309 * top.c (print_gdb_configuration): Explain in output of
5310 --configuration what does "relocatable" mean.
5311
5312 * main.c (print_gdb_help): Regroup options in the --help text.
5313 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5314 the relevant discussions.
5315
5316 2013-07-06 Yao Qi <yao@codesourcery.com>
5317
5318 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5319 Remove parameter 'lsal'.
5320 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5321 to inner block. Caller update.
5322 (base_breakpoint_create_breakpoints_sal): Update.
5323 (bkpt_create_breakpoints_sal): Likewise.
5324 (tracepoint_create_breakpoints_sal): Likewise.
5325 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5326 element 0 of vector 'canonical->sals'.
5327
5328 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5329
5330 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5331 register number instead of the pseudo register one.
5332 (rs6000_dwarf2_reg_to_regnum): Likewise.
5333
5334 2013-07-04 Pedro Alves <palves@redhat.com>
5335
5336 * findvar.c (value_of_register): Use allocate_optimized_out_value
5337 if the register has been optimized out, instead of
5338 set_value_optimized_out.
5339 * frame-unwind.c (frame_unwind_got_optimized): Use
5340 allocate_optimized_out_value.
5341
5342 2013-07-04 Pedro Alves <palves@redhat.com>
5343
5344 * value.c (value_bits_valid): If the value is not lval_computed,
5345 or doesn't have a check_validity hook, assume the value is entirely
5346 valid.
5347
5348 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5349
5350 * stack.c (read_frame_arg): No longer fetch lazy values.
5351 * value.c (value_optimized_out): If the value is not already
5352 marked optimized out, and is lazy then fetch it.
5353 (value_primitive_field): Move optimized out check to later in the
5354 function, after we have loaded any lazy values.
5355 (value_fetch_lazy): Use optimized out flag directly rather than
5356 calling optimized_out method.
5357
5358 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5359
5360 * valops.c: Don't include "user-regs.h".
5361 (value_fetch_lazy): Moved to value.c.
5362 * value.c: Include "user-regs.h".
5363 (value_fetch_lazy): Moved from valops.c.
5364
5365 2013-07-04 Yao Qi <yao@codesourcery.com>
5366
5367 Revert:
5368 2013-06-27 Yao Qi <yao@codesourcery.com>
5369
5370 * common/create-version.sh: Update comments. Handle the case
5371 that TARGET_ALIAS is empty.
5372
5373 2013-07-03 Pedro Alves <palves@redhat.com>
5374
5375 * Makefile.in (config.status): Depend on development.sh.
5376 (aclocal_m4_deps): Add libmcheck.m4.
5377 * acinclude.m4: Include libmcheck.m4.
5378 * configure.ac: Source development.sh instead of setting
5379 'development' here. --enable-libmcheck/--disable-libmcheck code
5380 factored out to GDB_AC_LIBMCHECK. Run it.
5381 * development.sh: New file.
5382 * libmcheck.m4: New file.
5383 * configure: Regenerate.
5384
5385 2013-07-02 Tom Tromey <tromey@redhat.com>
5386
5387 * contrib/ari/update-web-ari.sh: Update for version.in change.
5388
5389 2013-07-02 Tom Tromey <tromey@redhat.com>
5390
5391 * common/ptid.h: Comment fixes.
5392
5393 2013-07-01 Tom Tromey <tromey@redhat.com>
5394
5395 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5396 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5397 (dwarf2_read_index, create_all_comp_units): Update.
5398
5399 2013-07-01 Tom Tromey <tromey@redhat.com>
5400
5401 * configure.ac (build_warnings): Add -Wold-style-definition.
5402 * configure: Rebuild.
5403 * machoread.c (_initialize_machoread): Use "(void)".
5404 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5405 use "(void)".
5406
5407 2013-07-01 Tom Tromey <tromey@redhat.com>
5408
5409 * configure.ac (build_warnings): Add -Wold-style-declaration.
5410 * configure: Rebuild.
5411 * dsrec.c (make_srec): Use "static const", not "const static".
5412 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5413 not "const static".
5414 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5415 Use "static const", not "const static".
5416 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5417 not "const static".
5418 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5419 not "const static".
5420 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5421 not "const static".
5422 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5423 not "const static".
5424 (v850_dbtrap_breakpoint_from_pc): Likewise.
5425 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5426 not "const static".
5427
5428 2013-07-01 Tom Tromey <tromey@redhat.com>
5429
5430 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5431 * configure: Rebuild.
5432
5433 2013-07-01 Pedro Alves <palves@redhat.com>
5434
5435 * defs.h: Include "pathmax.h".
5436 * utils.c: Don't include sys/param.h.
5437 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5438 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5439 instead of MAXPATHLEN.
5440 * solib-sunos.c: Don't include sys/param.h.
5441 * xcoffread.c: Don't include sys/param.h.
5442 * bsd-kvm.c: Don't include sys/param.h.
5443 * darwin-nat.c: Don't include sys/param.h.
5444 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5445 * darwin-nat-info.c: Don't include sys/param.h.
5446 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5447 MAXPATHLEN.
5448 * i386obsd-nat.c: Don't include sys/param.h.
5449 * inf-child.c: Don't include sys/param.h.
5450 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5451 * linux-fork.c: Don't include sys/param.h.
5452 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5453 * linux-nat.c: Don't include sys/param.h.
5454 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5455 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5456 * m68klinux-nat.c: Don't include sys/param.h.
5457 * nbsd-nat.c: Don't include sys/param.h.
5458 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5459 * ppc-linux-nat.c: Don't include sys/param.h.
5460 * rs6000-nat.c: Don't include sys/param.h.
5461 * spu-linux-nat.c. Don't include sys/param.h.
5462 * windows-nat.c: Don't include sys/param.h.
5463 * xtensa-linux-nat.c: Don't include sys/param.h.
5464 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5465
5466 2013-07-01 Pedro Alves <palves@redhat.com>
5467
5468 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5469 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5470 * gnulib/aclocal.m4: Regenerate.
5471 * gnulib/config.in: Regenerate.
5472 * gnulib/configure: Regenerate.
5473 * gnulib/import/pathmax.h: New file.
5474 * gnulib/import/Makefile.am: Regenerate.
5475 * gnulib/import/Makefile.in: Regenerate.
5476 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5477 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5478 * gnulib/import/m4/pathmax.m4: New file.
5479
5480 2013-07-01 Pedro Alves <palves@redhat.com>
5481
5482 * configure.ac (GDBINIT): Define, depending on host.
5483 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5484 * top.c (PATH_MAX): Delete fallback definition.
5485 (GDBINIT_FILENAME): Delete.
5486 (gdbinit): Reimplement as const char array set to the GDBINIT
5487 string constant.
5488 * top.h (gdbinit): Make const.
5489 * configure, config.in: Regenerate.
5490
5491 2013-07-01 Pedro Alves <palves@redhat.com>
5492
5493 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5494 * cli/cli-cmds.h (source_script): Likewise.
5495 * exceptions.c (catch_command_errors_const): New function.
5496 * exceptions.h (catch_command_errors_const): Declare.
5497 * main.c (get_init_files): Make parameters const, and adjust.
5498 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5499 'local_gdbinit' locals const. Adjust to use
5500 catch_command_errors_const.
5501 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5502 'local_gdbinit' locals const.
5503
5504 2013-07-01 Pedro Alves <palves@redhat.com>
5505
5506 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5507 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5508 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5509 <unistd.h>.
5510
5511 2013-07-01 Pedro Alves <palves@redhat.com>
5512
5513 Import the "unistd" gnulib module.
5514 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5515 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5516 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5517 import/m4/unistd_h.m4.
5518 * gnulib/aclocal.m4: Renenerate.
5519 * gnulib/config.in: Renenerate.
5520 * gnulib/configure: Renenerate.
5521 * gnulib/import/Makefile.am: Renenerate.
5522 * gnulib/import/Makefile.in: Renenerate.
5523 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5524 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5525 * gnulib/import/m4/off_t.m4: New file.
5526 * gnulib/import/m4/ssize_t.m4: New file.
5527 * gnulib/import/m4/sys_types_h.m4: New file.
5528 * gnulib/import/m4/unistd_h.m4: New file.
5529 * gnulib/import/sys_types.in.h: New file.
5530 * gnulib/import/unistd.c: New file.
5531 * gnulib/import/unistd.in.h: New file.
5532
5533 2013-07-01 Pedro Alves <palves@redhat.com>
5534
5535 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5536 defined instead of checking HAVE_UNISTD_H.
5537
5538 2013-07-01 Pedro Alves <palves@redhat.com>
5539
5540 Reimport gnulib from scratch.
5541 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5542 import/m4/onceonly.m4.
5543 * gnulib/aclocal.m4: Renegerate.
5544 * gnulib/config.in: Renegerate.
5545 * gnulib/configure: Renegerate.
5546 * gnulib/import/Makefile.in: Renegerate.
5547 * gnulib/import/extra/update-copyright: Renegerate.
5548 * gnulib/import/m4/onceonly.m4: Delete.
5549
5550 2013-07-01 Pedro Alves <palves@redhat.com>
5551
5552 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5553
5554 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5555
5556 Code cleanup.
5557 * remote.c (async_remote_interrupt_twice): Make it static.
5558 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5559
5560 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5561
5562 * ia64-linux-tdep.c: Include <ctype.h>.
5563 (ia64_linux_stap_is_single_operand): New function.
5564 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5565
5566 2013-06-28 Tom Tromey <tromey@redhat.com>
5567
5568 * Makefile.in (version.c): Use version.in, not
5569 common/version.in.
5570 * common/create-version.sh: Likewise.
5571 * common/version.in: Move...
5572 * version.in: ...here.
5573
5574 2013-06-28 Pedro Alves <palves@redhat.com>
5575
5576 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5577 here.
5578 * utils.h (pagination_enabled): Declare.
5579
5580 2013-06-28 Pedro Alves <palves@redhat.com>
5581
5582 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5583 Move higher up in file.
5584
5585 2013-06-28 Tom Tromey <tromey@redhat.com>
5586
5587 * tracepoint.c (deprecated_readline_begin_hook)
5588 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5589 declare.
5590
5591 2013-06-28 Pedro Alves <palves@redhat.com>
5592
5593 PR tui/14880
5594 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5595 checking if they're available.
5596 * value.c (value_available_contents_eq): Change comment.
5597 * value.h (value_available_contents_eq): Expand comment.
5598
5599 2013-06-27 Tom Tromey <tromey@redhat.com>
5600
5601 * target.c (find_run_target): Remove.
5602 * target.h (find_run_target): Remove.
5603
5604 2013-06-27 Tom Tromey <tromey@redhat.com>
5605
5606 * corelow.c (core_gdbarch): Now static.
5607
5608 2013-06-27 Tom Tromey <tromey@redhat.com>
5609
5610 * target.c (target_struct_index): Remove.
5611
5612 2013-06-27 Pedro Alves <palves@redhat.com>
5613
5614 * infrun.c: Remove comment describing the 'stepping over runtime
5615 loader dynamic symbol resolution code' mechanism; moved to
5616 gdbint.texinfo.
5617
5618 2013-06-27 Pedro Alves <palves@redhat.com>
5619
5620 * exceptions.c (catch_command_errors): Remove spurious space.
5621 * exceptions.h (catch_command_errors): Second parameter is "arg",
5622 not "command".
5623
5624 2013-06-27 Yao Qi <yao@codesourcery.com>
5625
5626 * common/create-version.sh: Update comments. Handle the case
5627 that TARGET_ALIAS is empty.
5628
5629 2013-06-26 Pedro Alves <palves@redhat.com>
5630
5631 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5632 comment.
5633
5634 2013-06-26 Pedro Alves <palves@redhat.com>
5635
5636 * infrun.c: Update comments on stepping over runtime loader
5637 dynamic symbol resolution code.
5638
5639 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5640
5641 * ax-gdb.h (union exp_element): Forward declare.
5642 * parser-defs.h: Include expression.h.
5643
5644 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5645
5646 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5647
5648 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5649
5650 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5651
5652 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5653
5654 Fix trace-status to output proper start-time and stop-time.
5655 * tracepoint.c (trace_status_command): Fix type of printf arg to
5656 prevent improper type conversion.
5657 (trace_status_mi): Likewise.
5658
5659 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5660
5661 * mips-tdep.c (mips_next_pc): Fix a typo.
5662
5663 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5664
5665 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5666
5667 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5668 Yao Qi <yao@codesourcery.com>
5669
5670 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5671 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5672 * mi/mi-main.c (print_variable_or_computed): New function.
5673 (mi_cmd_trace_frame_collected): New function.
5674 * tracepoint.c (find_trace_state_variable_by_number): New.
5675 (struct traceframe_info): Move to tracepoint.h
5676 (struct collection_list): Likewise.
5677 (do_collect_symbol): Include locals and arguments in the
5678 collected variables list.
5679 (clear_collection_list): Clear wholly collected variables list
5680 and computed variables list.
5681 (append_exp): New function.
5682 (encode_actions_1): Include variables in the wholly
5683 collected variables list. Include memory ranges and
5684 full-fledged expressions in the computed expressions list.
5685 (encode_actions): Move some code to ...
5686 Return the cleanup chain.
5687 (encode_actions_rsp): ... here. New function.
5688 (get_traceframe_location, get_traceframe_info): Remove static.
5689 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5690 (struct collection_list): Moved from tracepoint.c. Add two
5691 new fields 'wholly_collected' and 'computed'.
5692 (find_trace_state_variable_by_number): Declare.
5693 (encode_actions): Adjust declaration.
5694 (encode_actions_rsp): Declare.
5695 (get_traceframe_info, get_traceframe_location): Declare.
5696
5697 * NEWS: Mention new MI command -trace-frame-collected.
5698
5699 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5700 Yao Qi <yao@codesourcery.com>
5701
5702 * ctf.c (ctf_traceframe_info): Push trace state variables
5703 present in the trace data into the traceframe info object.
5704 * breakpoint.c (DEF_VEC_I): Remove.
5705 * common/filestuff.c (DEF_VEC_I): Likewise.
5706 * dwarf2loc.c (DEF_VEC_I): Likewise.
5707 * mi/mi-main.c (DEF_VEC_I): Likewise.
5708 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5709 * features/traceframe-info.dtd: Add tvar element and its
5710 attributes.
5711 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5712 (build_traceframe_info): Push trace state variables present in
5713 the trace data into the traceframe info object.
5714 (traceframe_info_start_tvar): New function.
5715 (tvar_attributes): New.
5716 (traceframe_info_children): Add "tvar" element.
5717 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5718
5719 * NEWS: Mention the change in GDB and GDBserver.
5720
5721 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5722 Yao Qi <yao@codesourcery.com>
5723
5724 * tracepoint.c (trace_dump_command): Move code to ...
5725 (get_traceframe_location): ... here. New.
5726
5727 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5728 Yao Qi <yao@codesourcery.com>
5729
5730 * tracepoint.c (trace_dump_command): GDB emits an error
5731 instead of a warning when a traceframe is not selected.
5732
5733 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5734 Yao Qi <yao@codesourcery.com>
5735
5736 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5737 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5738 in collection_list.
5739 (do_clear_collection_list, init_collection_list): New.
5740 (encode_actions): Add local variables 'tracepoint_list' and
5741 'stepping_list'. Call init_collection_list and make cleanup
5742 which calls do_clear_collection_list. Don't call
5743 clear_collection_list.
5744 (_initialize_tracepoint): Delete references to
5745 'tracepoint_list' and 'stepping_list'.
5746
5747 2013-06-25 Tom Tromey <tromey@redhat.com>
5748
5749 * common/create-version.sh (date): Use "$", not "$$" in sed
5750 expression.
5751
5752 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5753
5754 * NEWS (New targets): Add entry for TI MSP430.
5755
5756 2013-06-25 Yao Qi <yao@codesourcery.com>
5757
5758 * remote.c (remote_start_remote): Move code to upload tsv
5759 earlier.
5760
5761 2013-06-25 Yao Qi <yao@codesourcery.com>
5762 Hui Zhu <hui@codesourcery.com>
5763 Pedro Alves <palves@redhat.com>
5764
5765 PR breakpoints/15075
5766 PR breakpoints/15434
5767 * breakpoint.c (bpstat_stop_status): Call
5768 b->ops->after_condition_true.
5769 (update_dprintf_command_list): Don't append "continue" command
5770 to the command list of dprintf breakpoint.
5771 (base_breakpoint_after_condition_true): New function.
5772 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5773 (dprintf_after_condition_true): New function.
5774 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5775 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5776
5777 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5778
5779 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5780 (ALLDEPFILES): Add msp430-tdep.c.
5781 * configure.tgt (msp430*-*-elf): New target.
5782 * msp430-tdep.c: New file.
5783
5784 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5785
5786 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5787 microMIPS synthetic symbols.
5788
5789 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5790
5791 * objfiles.h (pc_in_section): New prototype.
5792 (in_plt_section): Remove name argument, replace prototype with
5793 static inline function.
5794 * mips-tdep.h: Include "objfiles.h".
5795 (in_mips_stubs_section): New function.
5796 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5797 in_solib_call_trampoline member.
5798 (hppa_in_solib_call_trampoline): Remove name argument.
5799 * objfiles.c (pc_in_section): New function.
5800 (in_plt_section): Remove function.
5801 * mips-linux-tdep.c: Include "objfiles.h".
5802 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5803 name argument. Return 1 rather than the low 16-bit halfword of
5804 any instruction examined.
5805 (mips_linux_in_dynsym_resolve_code): Update
5806 mips_linux_in_dynsym_stub call accordingly.
5807 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5808 rather than an equivalent hand-coded sequence.
5809 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5810 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5811 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5812 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5813 in_opd_section.
5814 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5815 on call to tdep->in_solib_call_trampoline.
5816 (hppa_in_solib_call_trampoline): Remove name argument, update
5817 according to in_plt_section change.
5818 (hppa_skip_trampoline_code): Update according to in_plt_section
5819 change.
5820 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5821 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5822 Likewise.
5823 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5824 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5825 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5826 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5827 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5828 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5829 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5830 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5831 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5832 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5833 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5834 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5835 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5836
5837 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5838
5839 * common/create-version.sh: Fix expansion of $host_alias
5840 and $target_alias in generation of HOST_NAME and TARGET_NAME
5841 (resp.).
5842
5843 2013-06-24 Tom Tromey <tromey@redhat.com>
5844
5845 * common/create-version.sh: New file.
5846 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5847 create-version.sh.
5848 (HFILES_NO_SRCDIR): Use common/version.h.
5849 * version.in: Move to ...
5850 * common/version.in: ... here. Replace date with "DATE".
5851 * version.h: Move to ...
5852 * common/version.h: ... here.
5853
5854 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5855
5856 * gdb/gnulib/Makefile.in: Update date in copyright header.
5857 * gdb/gnulib/configure.ac: Ditto.
5858 * gdb/gnulib/update-gnulib.sh: Ditto.
5859
5860 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5861
5862 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5863 "gdb/gnulib/import".
5864
5865 2013-06-21 Will Newton <will.newton@linaro.org>
5866
5867 * doublest.c (ldfrexp): Remove function.
5868 (convert_doublest_to_floatformat): Call frexpl instead of
5869 ldfrexp.
5870
5871 2013-06-21 Will Newton <will.newton@linaro.org>
5872
5873 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5874 * gnulib/aclocal.m4: Regenerate.
5875 * gnulib/config.in: Regenerate.
5876 * gnulib/configure: Regenerate.
5877 * gnulib/import/Makefile.am: Update.
5878 * gnulib/import/Makefile.in: Update.
5879 * gnulib/import/m4/gnulib-cache.m4: Update.
5880 * gnulib/import/m4/gnulib-comp.m4: Update.
5881 * gnulib/import/float+.h: Import.
5882 * gnulib/import/float.c: Import.
5883 * gnulib/import/float.in.h: Import.
5884 * gnulib/import/fpucw.h: Import.
5885 * gnulib/import/frexp.c: Import.
5886 * gnulib/import/frexpl.c: Import.
5887 * gnulib/import/isnan.c: Import.
5888 * gnulib/import/isnand-nolibm.h: Import.
5889 * gnulib/import/isnand.c: Import.
5890 * gnulib/import/isnanl-nolibm.h: Import.
5891 * gnulib/import/isnanl.c: Import.
5892 * gnulib/import/itold.c: Import.
5893 * gnulib/import/m4/exponentd.m4: Import.
5894 * gnulib/import/m4/exponentl.m4: Import.
5895 * gnulib/import/m4/float_h.m4: Import.
5896 * gnulib/import/m4/fpieee.m4: Import.
5897 * gnulib/import/m4/frexp.m4: Import.
5898 * gnulib/import/m4/frexpl.m4: Import.
5899 * gnulib/import/m4/isnand.m4: Import.
5900 * gnulib/import/m4/isnanl.m4: Import.
5901 * gnulib/import/m4/math_h.m4: Import.
5902 * gnulib/import/math.c: Import.
5903 * gnulib/import/math.in.h: Import.
5904
5905 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5906
5907 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5908 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5909 signature_INTEL_edx comparisons.
5910
5911 2013-06-20 Doug Evans <dje@google.com>
5912
5913 symtab/15652
5914 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5915 All callers updated.
5916 (open_dwp_file): If we can't find the dwp file, search the basename
5917 in debug-file-directory.
5918
5919 * dwarf2read.c (struct dwp_file): Fix comment.
5920 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5921
5922 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5923 better.
5924
5925 2013-06-20 Yao Qi <yao@codesourcery.com>
5926
5927 * breakpoint.c (create_breakpoint): Fix code indentation.
5928
5929 2013-06-20 Yao Qi <yao@codesourcery.com>
5930
5931 * breakpoint.c (create_breakpoints_sal_default): Remove
5932 parameter 'lsal'. Update declaration.
5933 (bkpt_create_breakpoints_sal): Caller update.
5934 (tracepoint_create_breakpoints_sal): Likewise.
5935
5936 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5937 Yao Qi <yao@codesourcery.com>
5938
5939 * NEWS: Mention the new option '--skip-unavailable' of command
5940 -data-list-register-values.
5941 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5942 --skip-unavailable option. Adjust to use output_register.
5943 (output_register): Add new 'skip_unavailable' parameter.
5944 Handle it.
5945
5946 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5947
5948 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5949 common/i386-gcc-cpuid.h.
5950 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5951 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5952 Copy the latest version from upstream gcc.
5953 * common/linux-btrace.c: Include i386-cpuid.h.
5954 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5955 call to i386_cpuid.
5956 (cpu_supports_btrace): Likewise.
5957 * go32-nat.c: Include i386-cpuid.h.
5958 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5959
5960 2013-06-19 Doug Evans <dje@google.com>
5961
5962 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5963 (get_section_index): Ditto.
5964
5965 2013-06-19 Tom Tromey <tromey@redhat.com>
5966
5967 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5968 "dprintf" help.
5969
5970 2013-06-18 Doug Evans <dje@google.com>
5971
5972 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5973 before using it.
5974 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5975 Move test of cu_index closer to use. Print complaint if cu_index
5976 is bad.
5977
5978 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5979
5980 * machoread.c (oso_vector): Delete this global.
5981 (macho_register_oso): Add new parameter "oso_vector_ptr".
5982 Use it instead of the "oso_vector" global.
5983 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5984 (macho_symfile_read): Use a local oso_vector, to be free'ed
5985 at the end of this function, in place of the old "oso_vector"
5986 global. Update various function calls accordingly. Use one
5987 single cleanup chain for the entire function.
5988
5989 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5990
5991 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5992 DWARF2_PER_OBJFILE by uses of DATA instead.
5993
5994 2013-06-18 Tom Tromey <tromey@redhat.com>
5995
5996 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5997 argument.
5998 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5999 Special case signals other than GDB_SIGNAL_TRAP.
6000 (explains_signal_watchpoint): New function.
6001 (base_breakpoint_explains_signal): Add 'sig' argument.
6002 (initialize_breakpoint_ops): Set 'explains_signal' method for
6003 watchpoints.
6004 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6005 signal argument.
6006 (bpstat_explains_signal): Likewise.
6007 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6008
6009 2013-06-18 Tom Tromey <tromey@redhat.com>
6010
6011 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6012
6013 2013-06-18 Tom Tromey <tromey@redhat.com>
6014
6015 * python/python.c (finish_python_initialization): Decref
6016 'pythondir' on failure path as well.
6017
6018 2013-06-18 Tom Tromey <tromey@redhat.com>
6019
6020 PR symtab/15391:
6021 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6022 after taking bits_to_skip into account. Sign extend byte_offset.
6023 * utils.h (gdb_sign_extend): Declare.
6024 * utils.c (gdb_sign_extend): New function.
6025
6026 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6027
6028 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6029
6030 2013-06-17 Pierre Muller <muller@sourceware.org>
6031
6032 * corelow.c (core_open): Print GDB signal name instead of target
6033 signal number.
6034
6035 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6036
6037 * .gitignore: Add /gcore.
6038
6039 2013-06-13 Doug Evans <dje@google.com>
6040
6041 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6042 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6043
6044 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6045
6046 * stack.c (backtrace_command_1): Fix indentation.
6047
6048 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6049
6050 * window-nat.c (thread_rec): Add missing empty line after
6051 local variable declaration.
6052
6053 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6054
6055 * windows-nat.c (thread_rec): Revert format used to print
6056 error code returned by SuspendThread from %d back to %u.
6057
6058 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6059
6060 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6061 ID in debug trace.
6062 (get_windows_debug_event): Likewise, for all debug traces.
6063
6064 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6065
6066 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6067 warning message.
6068
6069 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6070 Yao Qi <yao@codesourcery.com>
6071
6072 * mi/mi-main.c (get_register): Remove declaration.
6073 (output_register): Declare.
6074 (mi_cmd_data_list_register_values): Remove local variable
6075 'tuple_cleanup'. Move some code into output_register.
6076 (get_register): Renamed to ...
6077 (output_register): ... this. Output the register's
6078 "number" ui_out tuple here.
6079
6080 2013-06-07 Pedro Alves <palves@redhat.com>
6081
6082 * darwin-nat.c: Fix formating in copyright header.
6083 * darwin-nat.h: Likewise.
6084 * gnu-nat.c: Likewise.
6085 * machoread.c: Likewise.
6086
6087 2013-06-07 Pedro Alves <palves@redhat.com>
6088
6089 PR server/14823
6090 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6091 static. Output a global target description pointer.
6092 (init_registers_${name}): Adjust to initialize a
6093 target description structure.
6094
6095 2013-06-07 Will Newton <will.newton@linaro.org>
6096
6097 * printcmd.c (build_address_symbolic): Call
6098 gdbarch_addr_bits_remove for text minimal symbols.
6099
6100 2013-06-07 Will Newton <will.newton@linaro.org>
6101
6102 * MAINTAINERS: Add myself to Write After Approval.
6103
6104 2013-06-07 Yao Qi <yao@codesourcery.com>
6105
6106 * tracepoint.c (start_tracing): Move code to ...
6107 (trace_reset_local_state): ... here. New.
6108 (disconnect_tracing): Don't call set_current_traceframe,
6109 set_tracepoint_num, and set_traceframe_context. Call
6110 trace_reset_local_state instead.
6111 (tfile_close): Call trace_reset_local_state.
6112 * ctf.c (ctf_close): Likewise.
6113 * remote.c (remote_close): Likewise.
6114 * tracepoint.h (trace_reset_local_state): Declare.
6115
6116 2013-06-06 Doug Evans <dje@google.com>
6117
6118 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6119 and fix header docs.
6120
6121 2013-06-05 Doug Evans <dje@google.com>
6122 Keith Seitz <keiths@redhat.com>
6123
6124 PR 15519
6125 * cp-namespace.c (find_symbol_in_baseclass): Call
6126 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6127 Check result of call to lookup_symbol_static.
6128 Call lookup_static_symbol_aux unconditionally.
6129 Call check_typedef on base types before accessing them.
6130 (cp_lookup_nested_symbol): Fix comment.
6131
6132 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6133
6134 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6135 minimal symbols pointing to function descriptors.
6136
6137 2013-06-05 Tom Tromey <tromey@redhat.com>
6138
6139 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6140
6141 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6142 Pedro Alves <palves@redhat.com>
6143
6144 * remote.c (remote_wait_as): Restore signal handler before returning
6145 when GDB gets a notification.
6146
6147 2013-06-04 Gary Benson <gbenson@redhat.com>
6148
6149 PR 2328
6150 * breakpoint.h (handle_solib_event): Moved function declaration
6151 to solib.h.
6152 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6153 (bpstat_stop_status): Pass new argument to handle_solib_event.
6154 * solib.h (update_solib_breakpoints): New function declaration.
6155 (handle_solib_event): Moved function declaration from
6156 breakpoint.h.
6157 * solib.c (update_solib_breakpoints): New function.
6158 (handle_solib_event): Moved function from breakpoint.c.
6159 Updated to call solib_ops->handle_event if not NULL.
6160 * solist.h (target_so_ops): New fields "update_breakpoints" and
6161 "handle_event".
6162 * infrun.c (set_stop_on_solib_events): New function.
6163 (_initialize_infrun): Use the above for "set
6164 stop-on-solib-events".
6165 (handle_inferior_event): Pass new argument to handle_solib_event.
6166 * solib-svr4.c (probe.h): New include.
6167 (svr4_free_library_list): New forward declaration.
6168 (probe_action): New enum.
6169 (probe_info): New struct.
6170 (probe_info): New static variable.
6171 (NUM_PROBES): New definition.
6172 (svr4_info): New fields "using_xfer", "probes_table" and
6173 "solib_list".
6174 (free_probes_table): New function.
6175 (free_solib_list): New function.
6176 (svr4_pspace_data_cleanup): Free probes table and solib list.
6177 (svr4_copy_library_list): New function.
6178 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6179 (svr4_read_so_list): New parameter "prev_lm".
6180 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6181 (svr4_current_sos): New function.
6182 (probe_and_action): New struct.
6183 (hash_probe_and_action): New function.
6184 (equal_probe_and_action): Likewise.
6185 (register_solib_event_probe): Likewise.
6186 (solib_event_probe_at): Likewise.
6187 (solib_event_probe_action): Likewise.
6188 (solist_update_full): Likewise.
6189 (solist_update_incremental): Likewise.
6190 (disable_probes_interface_cleanup): Likewise.
6191 (svr4_handle_solib_event): Likewise.
6192 (svr4_update_solib_event_breakpoint): Likewise.
6193 (svr4_update_solib_event_breakpoints): Likewise.
6194 (svr4_create_solib_event_breakpoints): Likewise.
6195 (enable_break): Free probes table before creating breakpoints.
6196 Use svr4_create_solib_event_breakpoints to create breakpoints.
6197 (svr4_solib_create_inferior_hook): Free the solib list.
6198 (_initialize_svr4_solib): Initialise
6199 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6200
6201 2013-06-04 Gary Benson <gbenson@redhat.com>
6202
6203 * target.h (target_ops): New field
6204 "to_augmented_libraries_svr4_read".
6205 (target_augmented_libraries_svr4_read): New macro.
6206 * target.c (update_current_target): Handle
6207 to_augmented_libraries_svr4_read.
6208 * remote.c (remote_state): New field
6209 "augmented_libraries_svr4_read".
6210 (remote_augmented_libraries_svr4_read_feature): New function.
6211 (remote_protocol_features): Add entry for
6212 "augmented-libraries-svr4-read".
6213 (remote_augmented_libraries_svr4_read): New function.
6214 (init_remote_ops): Initialize
6215 remote_ops.to_augmented_libraries_svr4_read.
6216
6217 2013-06-04 Gary Benson <gbenson@redhat.com>
6218
6219 * NEWS: Update.
6220
6221 2013-06-04 Gary Benson <gbenson@redhat.com>
6222
6223 * objfiles.h (inhibit_section_map_updates): New function
6224 declaration.
6225 (resume_section_map_updates): Likewise.
6226 (resume_section_map_updates_cleanup): Likewise.
6227 * objfiles.c (objfile_pspace_info): Removed field
6228 "objfiles_changed_p". New fields "new_objfiles_available",
6229 "section_map_dirty" and "inhibit_updates".
6230 (allocate_objfile): Set new_objfiles_available.
6231 (free_objfile): Set section_map_dirty.
6232 (objfile_relocate1): Likewise.
6233 (in_plt_section): Likewise.
6234 (find_pc_section): Update the conditions under which the
6235 section map will be updated.
6236 (inhibit_section_map_updates): New function.
6237 (resume_section_map_updates): Likewise.
6238 (resume_section_map_updates_cleanup): Likewise.
6239
6240 2013-06-04 Gary Benson <gbenson@redhat.com>
6241
6242 * probe.h (get_probe_argument_count): New declaration.
6243 (evaluate_probe_argument): Likewise.
6244 * probe.c (get_probe_argument_count): New function.
6245 (evaluate_probe_argument): Likewise.
6246 (probe_safe_evaluate_at_pc): Use the above new functions.
6247
6248 2013-06-04 Alan Modra <amodra@gmail.com>
6249
6250 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6251 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6252 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6253 target mem reads on optional insns.
6254 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6255 ppc_insns_match_pattern calls.
6256 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6257 Add match for power7 thread safety insns, and new order of
6258 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6259 invocation in comment, and update rest of comment.
6260 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6261 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6262 (ppc64_standard_linkage2_target): Update insn offsets.
6263 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6264 stubs first. Update calls.
6265
6266 2013-06-04 Yao Qi <yao@codesourcery.com>
6267
6268 * solib.c (solib_find): Don't need dir separator if path has
6269 drive spec.
6270
6271 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6272
6273 Revert (indirectly causes a SIGSEGV):
6274 * machoread.c (macho_symfile_read): Assign first cleanup to
6275 'back_to'.
6276
6277 2013-06-03 Yao Qi <yao@codesourcery.com>
6278
6279 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6280 mi-parse.c. Make them static.
6281 (mi_all_values): Likewise.
6282 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6283 mi_parse_print_values. Make it external.
6284 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6285 Remove the declarations.
6286 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6287 * mi/mi-parse.h (mi_parse_print_values): Declare.
6288 * mi/mi-cmd-stack.c: Include mi-parse.h.
6289 (parse_print_values): Remove
6290 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6291 of parse_print_values.
6292 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6293
6294 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6295 Yao Qi <yao@codesourcery.com>
6296
6297 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6298 (encode_actions): Move code to ...
6299 (all_tracepoint_actions_and_cleanup): ... here. New.
6300 (trace_dump_command): Likewise.
6301
6302 2013-05-30 Tom Tromey <tromey@redhat.com>
6303
6304 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6305
6306 2013-05-30 Tom Tromey <tromey@redhat.com>
6307
6308 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6309 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6310 'old_chain' argument. Add 'parser_result' argument.
6311 (gdb_xml_create_parser_and_cleanup): Remove old version.
6312 (gdb_xml_parse_quick): Update.
6313 (xml_process_xincludes): Update.
6314 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6315 declare.
6316
6317 2013-05-30 Tom Tromey <tromey@redhat.com>
6318
6319 * probe.c (collect_probes): Check arguments for NULL before
6320 calling compile_rx_or_error.
6321 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6322 Remove NULL return.
6323
6324 2013-05-30 Tom Tromey <tromey@redhat.com>
6325
6326 * infrun.c (adjust_pc_after_break): Introduce an outer null
6327 cleanup.
6328
6329 2013-05-30 Tom Tromey <tromey@redhat.com>
6330
6331 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6332
6333 2013-05-30 Tom Tromey <tromey@redhat.com>
6334
6335 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6336 for 'old_chain'. Do not check 'head' before processing
6337 cleanups.
6338
6339 2013-05-30 Tom Tromey <tromey@redhat.com>
6340
6341 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6342 "cleanup_tuple".
6343
6344 2013-05-30 Tom Tromey <tromey@redhat.com>
6345
6346 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6347 inner scope. Unconditionally call do_cleanups.
6348
6349 2013-05-30 Tom Tromey <tromey@redhat.com>
6350
6351 * source.c (find_and_open_source): Call do_cleanups.
6352
6353 2013-05-30 Tom Tromey <tromey@redhat.com>
6354
6355 * linux-thread-db.c (thread_db_load_search): Unconditionally
6356 call do_cleanups.
6357
6358 2013-05-30 Tom Tromey <tromey@redhat.com>
6359
6360 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6361 for 'cleanup'; instead use a later one.
6362
6363 2013-05-30 Tom Tromey <tromey@redhat.com>
6364
6365 * python/py-breakpoint.c (bppy_get_commands): Use
6366 explicit, unconditional return.
6367 * python/py-frame.c (frapy_read_var): Likewise.
6368 * python/python.c (gdbpy_decode_line): Likewise.
6369
6370 2013-05-30 Tom Tromey <tromey@redhat.com>
6371
6372 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6373 do_cleanups on all return paths.
6374
6375 2013-05-30 Tom Tromey <tromey@redhat.com>
6376
6377 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6378
6379 2013-05-30 Tom Tromey <tromey@redhat.com>
6380
6381 * stabsread.c (read_struct_type): Call do_cleanups along
6382 all return paths.
6383
6384 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6385
6386 * mips-linux-tdep.c: Adjust formatting throughout.
6387
6388 2013-05-30 Tom Tromey <tromey@redhat.com>
6389
6390 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6391 along all return paths.
6392
6393 2013-05-30 Tom Tromey <tromey@redhat.com>
6394
6395 * symfile.c (find_separate_debug_file): Call do_cleanups
6396 along all return paths.
6397
6398 2013-05-30 Tom Tromey <tromey@redhat.com>
6399
6400 * symtab.c (search_symbols): Introduce a null cleanup for
6401 'retval_chain'.
6402
6403 2013-05-30 Tom Tromey <tromey@redhat.com>
6404
6405 * python/py-value.c (valpy_binop): Call do_cleanups before
6406 exiting loop.
6407
6408 2013-05-30 Tom Tromey <tromey@redhat.com>
6409
6410 * python/py-prettyprint.c (print_children): Remove extra
6411 do_cleanups call.
6412
6413 2013-05-30 Tom Tromey <tromey@redhat.com>
6414
6415 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6416 all return paths.
6417
6418 2013-05-30 Tom Tromey <tromey@redhat.com>
6419
6420 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6421 along all return paths.
6422
6423 2013-05-30 Tom Tromey <tromey@redhat.com>
6424
6425 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6426 call do_cleanups.
6427
6428 2013-05-30 Tom Tromey <tromey@redhat.com>
6429
6430 * varobj.c (c_value_of_root): Call do_cleanups along all
6431 return paths.
6432
6433 2013-05-30 Tom Tromey <tromey@redhat.com>
6434
6435 * tracepoint.c (trace_dump_command): Unconditionally call
6436 do_cleanups.
6437
6438 2013-05-30 Tom Tromey <tromey@redhat.com>
6439
6440 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6441 do_cleanups earlier.
6442
6443 2013-05-30 Tom Tromey <tromey@redhat.com>
6444
6445 * machoread.c (macho_symfile_read): Assign first cleanup to
6446 'back_to'.
6447
6448 2013-05-30 Tom Tromey <tromey@redhat.com>
6449
6450 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6451
6452 2013-05-30 Tom Tromey <tromey@redhat.com>
6453
6454 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6455
6456 2013-05-30 Tom Tromey <tromey@redhat.com>
6457
6458 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6459 call discard_cleanups.
6460 (inf_ptrace_attach): Likewise.
6461
6462 2013-05-30 Tom Tromey <tromey@redhat.com>
6463
6464 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6465 return paths.
6466 (mips_initialize): Likewise.
6467 (common_open): Call do_cleanups.
6468
6469 2013-05-30 Tom Tromey <tromey@redhat.com>
6470
6471 * utils.c (internal_vproblem): Call do_cleanups.
6472
6473 2013-05-30 Tom Tromey <tromey@redhat.com>
6474
6475 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6476
6477 2013-05-30 Tom Tromey <tromey@redhat.com>
6478
6479 * cli/cli-script.c (setup_user_args): Don't return after error.
6480
6481 2013-05-30 Tom Tromey <tromey@redhat.com>
6482
6483 * somread.c (som_symtab_read): Call do_cleanups.
6484
6485 2013-05-30 Tom Tromey <tromey@redhat.com>
6486
6487 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6488
6489 2013-05-30 Tom Tromey <tromey@redhat.com>
6490
6491 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6492 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6493 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6494 * source.c (show_substitute_path_command): Call do_cleanups.
6495 (unset_substitute_path_command, set_substitute_path_command):
6496 Likewise.
6497 * symfile.c (load_command): Call do_cleanups.
6498
6499 2013-05-30 Tom Tromey <tromey@redhat.com>
6500
6501 * contrib/cleanup_check.py: New file.
6502 * contrib/gcc-with-excheck: Add option parsing.
6503
6504 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6505
6506 * windows-nat.c (windows_delete_thread): Add missing space
6507 in cast expression.
6508
6509 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6510
6511 * inferior.c (top level): Include tilde.h.
6512 (add_inferior_command): Call tilde_expand on the value of 'exec'
6513 argument.
6514
6515 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6516 Yao Qi <yao@codesourcery.com>
6517
6518 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6519 Caller update.
6520 (encode_actions): Likewise.
6521 * remote.c (remote_download_tracepoint): Caller update.
6522 * tracepoint.h (encode_actions): Update declaration.
6523
6524 2013-05-30 Pedro Alves <palves@redhat.com>
6525
6526 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6527 pointer.
6528
6529 2013-05-30 Yao Qi <yao@codesourcery.com>
6530
6531 * remote.c (remote_check_symbols): Remove unused parameter
6532 'objfile'.
6533 Declaration update.
6534 (remote_start_remote, remote_new_objfile): Caller update.
6535
6536 2013-05-30 Yao Qi <yao@codesourcery.com>
6537
6538 * mi/mi-cmds.c (mi_cmds): Define MI command
6539 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6540 DEF_MI_CMD_CLI.
6541
6542 2013-05-29 Pedro Alves <palves@redhat.com>
6543
6544 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6545 (remote_insert_watchpoint, remote_remove_watchpoint)
6546 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6547 (remote_verify_memory, compare_sections_command)
6548 (remote_search_memory): Set the general process/thread on the
6549 remote side.
6550
6551 2013-05-29 Pedro Alves <palves@redhat.com>
6552
6553 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6554 (_initialize_aarch64_tdep): Don't call
6555 initialize_tdesc_aarch64_without_fpu.
6556 * features/Makefile (WHICH): Remove reference to
6557 aarch64-without-fpu.
6558 * features/aarch64-without-fpu.c: Delete file.
6559 * regformats/aarch64-without-fpu.dat: Delete file.
6560
6561 2013-05-28 Yao Qi <yao@codesourcery.com>
6562
6563 * tracepoint.c (stringify_collection_list): Remove parameter
6564 'string'.
6565 (encode_actions): Caller update. Remove local variables.
6566
6567 2013-05-24 Yao Qi <yao@codesourcery.com>
6568
6569 * tracepoint.c (TFILE_PID): Remove.
6570 (tfile_open): Don't add thread and inferior.
6571 (tfile_close): Don't set 'inferior_ptid'. Don't call
6572 exit_inferior_silent.
6573 (tfile_thread_alive): Remove.
6574 (init_tfile_ops): Don't set field 'to_thread_alive' of
6575 tfile_ops.
6576
6577 2013-05-23 Doug Evans <dje@google.com>
6578
6579 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6580
6581 2013-05-23 Pedro Alves <palves@redhat.com>
6582
6583 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6584 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6585 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6586 Only define if HAVE_SOCKETS is defined.
6587 * configure.ac: Check for sys/socket.h.
6588 * config.in, configure: Regenerate.
6589
6590 2013-05-23 Pedro Alves <palves@redhat.com>
6591
6592 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6593 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6594 printing uint32_t variables.
6595
6596 2013-05-23 Pedro Alves <palves@redhat.com>
6597
6598 * NEWS: Mention GDBserver range stepping support.
6599
6600 2013-05-23 Yao Qi <yao@codesourcery.com>
6601 Pedro Alves <palves@redhat.com>
6602
6603 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6604 field.
6605 * infcmd.c (step_once, until_next_command): Enable range stepping.
6606 * infrun.c (displaced_step_prepare): Disable range stepping.
6607 (resume): Disable range stepping if stepping over a breakpoint or
6608 we have software watchpoints. If range stepping is enabled,
6609 assert the thread is in the stepping range.
6610 (clear_proceed_status_thread): Clear may_range_step.
6611 (handle_inferior_event): Disable range stepping as soon as we know
6612 the thread that hit the event. Re-enable it whenever we're going
6613 to step with a step range.
6614 * remote.c (struct vCont_action_support) <r>: New field.
6615 (use_range_stepping): New global.
6616 (remote_vcont_probe): Handle 'r' action.
6617 (append_resumption): Append an 'r' action if the thread may range
6618 step.
6619 (show_range_stepping): New function.
6620 (set_range_stepping): New function.
6621 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6622 'set range-stepping' and 'show range-stepping' commands.
6623 * NEWS: Mention range stepping, the new vCont;r action, and the
6624 new "set/show range-stepping" commands.
6625
6626 2013-05-23 Yao Qi <yao@codesourcery.com>
6627 Pedro Alves <palves@redhat.com>
6628
6629 * remote.c (struct vCont_action_support): New struct.
6630 (struct remote_state) <support_vCont_t>: Remove field.
6631 <vCont_actions_support>: New field.
6632 (remote_vcont_probe, remote_stop_ns): Update.
6633
6634 2013-05-23 Yao Qi <yao@codesourcery.com>
6635 Pedro Alves <palves@redhat.com>
6636
6637 * gdbthread.h (pc_in_thread_step_range): New declaration.
6638 * thread.c (pc_in_thread_step_range): New function.
6639 * infrun.c (handle_inferior_event): Use it.
6640
6641 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6642
6643 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6644 of sprintf.
6645
6646 2013-05-22 Keith Seitz <keiths@redhat.com>
6647
6648 * ada-lang.c (is_known_support_routine): Add explicit free of
6649 'func_name' from find_frame_funname.
6650 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6651 for func_name from find_frame_funname.
6652 * python/py-frame.c (frapy_name): Add explicit free of
6653 'name' from find_frame_funname.
6654 * stack.c (find_frame_funname): Add comment explaining that
6655 funcp must be freed by the caller.
6656 Return copy of symbol names instead of pointers.
6657 (print_frame): Add a cleanup for 'funname' from
6658 find_frame_funname.
6659 * stack.h (find_frame_funname): Remove "const" from
6660 'funname' parameter.
6661
6662 2013-05-22 Tom Tromey <tromey@redhat.com>
6663
6664 PR c++/15401:
6665 * c-valprint.c (c_value_print): Use value_addr for
6666 references. Convert back to reference type with value_ref.
6667
6668 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6669
6670 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6671 unloaded DLL, it will be done by handle_solib_event. See
6672 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6673 details.
6674
6675 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6676
6677 * ui-out.c: Create typedef ui_out_level_p and define vector
6678 operations for that type.
6679 (struct ui_out): Use a vector instead of an array.
6680 (current_level): Return level from a vector.
6681 (push_level): Create a level in a vector.
6682 (pop_level): Delete a level in a vector.
6683 (ui_out_new): Create initial level zero level, and store in a
6684 vector.
6685 (ui_out_destroy): Add vector cleanup.
6686
6687 2013-05-22 Pedro Alves <palves@redhat.com>
6688
6689 * python/python-internal.h (gdb_Py_DECREF): Tag with
6690 "ARI: editCase function".
6691
6692 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6693
6694 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6695
6696 2013-05-21 Pedro Alves <palves@redhat.com>
6697
6698 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6699 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6700 * python/py-utils.c (py_decref): Don't check for NULL before
6701 calling Py_DECREF.
6702
6703 2013-05-21 Pedro Alves <palves@redhat.com>
6704
6705 * python/py-utils.c (py_decref): Remove extra braces.
6706 (gdb_pymodule_addobject): Remove extra braces.
6707 * python-internal.h (gdb_Py_DECREF): New static inline function.
6708 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6709
6710 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6711
6712 * breakpoints.c (detach_breakpoints): Do not
6713 detach breakpoints locations with loc_type bp_loc_other.
6714
6715 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6716
6717 Workaround Python 2.6.
6718 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6719 a block.
6720
6721 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6722
6723 Code cleanup: constification.
6724 * solib.c (solib_ops): Make return type and ops variable type const.
6725 (set_solib_ops): Make the new_ops parameter and ops variable const.
6726 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6727 (solib_add, solib_keep_data_in_core, clear_solib)
6728 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6729 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6730 const.
6731 * solib.h (set_solib_ops): Make the new_ops parameter const.
6732
6733 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6734
6735 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6736 variable.
6737 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6738 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6739 (SYSTEM_GDBINIT_FILES): New variables.
6740 (all): Add stamp-system-gdbinit.
6741 (stamp-system-gdbinit): New rule.
6742 (clean-system-gdbinit, install-system-gdbinit)
6743 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6744 (install-only): Add dependency on install-system-gdbinit.
6745 (uninstall): Add dependency on uninstall-system-gdbinit.
6746 (clean): Add dependency on clean-system-gdbinit.
6747 * system-gdbinit/elinos.py: New file.
6748 * system-gdbinit/wrs-linux.py: New file.
6749
6750 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6751
6752 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6753
6754 2013-05-21 Hui Zhu <hui@codesourcery.com>
6755
6756 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6757 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6758 * mi/mi-cmd-break.c (ctype.h): New include.
6759 (gdb_obstack.h): New include.
6760 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6761 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6762 (mi_cmd_dprintf_insert): New.
6763 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6764 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6765
6766 2013-05-20 Tom Tromey <tromey@redhat.com>
6767
6768 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6769
6770 2013-05-20 Tom Tromey <tromey@redhat.com>
6771
6772 * python/py-value.c (valpy_get_dynamic_type): Simplify
6773 dynamic_type assignment. Use Py_XINCREF.
6774
6775 2013-05-20 Tom Tromey <tromey@redhat.com>
6776
6777 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6778
6779 2013-05-20 Tom Tromey <tromey@redhat.com>
6780
6781 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6782 (gdbpy_selected_frame): Move object-construction code
6783 out of TRY_CATCH.
6784
6785 2013-05-20 Tom Tromey <tromey@redhat.com>
6786
6787 * python/py-arch.c (gdbpy_initialize_arch): Use
6788 gdb_pymodule_addobject.
6789 * python/py-block.c (gdbpy_initialize_blocks): Use
6790 gdb_pymodule_addobject.
6791 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6792 gdb_pymodule_addobject.
6793 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6794 gdb_pymodule_addobject.
6795 * python/py-event.c (gdbpy_initialize_event_generic): Use
6796 gdb_pymodule_addobject.
6797 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6798 gdb_pymodule_addobject.
6799 * python/py-evts.c (add_new_registry): Use
6800 gdb_pymodule_addobject.
6801 (gdbpy_initialize_py_events): Likewise.
6802 * python/py-finishbreakpoint.c
6803 (gdbpy_initialize_finishbreakpoints): Use
6804 gdb_pymodule_addobject.
6805 * python/py-frame.c (gdbpy_initialize_frames): Use
6806 gdb_pymodule_addobject.
6807 * python/py-function.c (gdbpy_initialize_functions): Use
6808 gdb_pymodule_addobject.
6809 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6810 gdb_pymodule_addobject.
6811 * python/py-infthread.c (gdbpy_initialize_thread): Use
6812 gdb_pymodule_addobject.
6813 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6814 gdb_pymodule_addobject.
6815 * python/py-param.c (gdbpy_initialize_parameters): Use
6816 gdb_pymodule_addobject.
6817 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6818 gdb_pymodule_addobject.
6819 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6820 gdb_pymodule_addobject.
6821 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6822 gdb_pymodule_addobject.
6823 * python/py-type.c (gdbpy_initialize_types): Use
6824 gdb_pymodule_addobject.
6825 * python/py-utils.c (gdb_pymodule_addobject): New function.
6826 * python/py-value.c (gdbpy_initialize_values): Use
6827 gdb_pymodule_addobject.
6828 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6829 * python/python.c (_initialize_python): Use
6830 gdb_pymodule_addobject.
6831
6832 2013-05-20 Tom Tromey <tromey@redhat.com>
6833
6834 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6835 * python/py-param.c (get_set_value, get_show_value): Use
6836 explicit decrefs.
6837 * python/python.c (start_type_printers, apply_type_printers):
6838 Use explicit decrefs.
6839
6840 2013-05-20 Tom Tromey <tromey@redhat.com>
6841
6842 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6843 incref the module.
6844
6845 2013-05-20 Tom Tromey <tromey@redhat.com>
6846
6847 * python/python.c (gdbpy_run_events): Decref the result
6848 of PyObject_CallObject.
6849
6850 2013-05-20 Tom Tromey <tromey@redhat.com>
6851
6852 * python/py-symtab.c (set_sal): Use
6853 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6854 (symtab_and_line_to_sal_object): Update.
6855
6856 2013-05-20 Tom Tromey <tromey@redhat.com>
6857
6858 * python/py-param.c (compute_enum_values): Decref 'item'.
6859
6860 2013-05-20 Tom Tromey <tromey@redhat.com>
6861
6862 * mi/mi-main.c: Include python-internal.h.
6863 (mi_cmd_list_features): Check gdb_python_initialized.
6864 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6865 (python_inferior_exit, python_new_objfile, add_thread_object)
6866 (delete_thread_object, py_free_inferior): Check
6867 gdb_python_initialized.
6868 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6869 gdb_python_initialized.
6870 * python/py-type.c (save_objfile_types): Check
6871 gdb_python_initialized.
6872 * python/python-internal.h (gdb_python_initialized): Declare.
6873 * python/python.c (ensure_python_env): Throw exception if
6874 Python not initialized.
6875 (before_prompt_hook, source_python_script_for_objfile)
6876 (start_type_printers, apply_type_printers,
6877 free_type_printers): Check gdb_python_initialized.
6878 * varobj.c (varobj_get_display_hint)
6879 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6880 (install_new_value_visualizer, varobj_set_visualizer)
6881 (value_get_print_value): Check gdb_python_initialized.
6882
6883 2013-05-20 Tom Tromey <tromey@redhat.com>
6884
6885 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6886 Check errors.
6887 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6888 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6889 Check errors.
6890 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6891 Check errors.
6892 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6893 Check errors.
6894 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6895 Check errors.
6896 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6897 init function to return 'int'.
6898 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6899 Return 'int'. Check errors.
6900 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6901 Check errors.
6902 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6903 Return 'int'. Check errors.
6904 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6905 Check errors.
6906 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6907 Check errors.
6908 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6909 Check errors.
6910 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6911 Check errors.
6912 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6913 Check errors.
6914 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6915 Check errors.
6916 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6917 Check errors.
6918 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6919 Check errors.
6920 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6921 Check errors.
6922 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6923 Check errors.
6924 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6925 Check errors.
6926 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6927 Check errors.
6928 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6929 Check errors.
6930 * python/python-internal.h (gdbpy_initialize_auto_load,
6931 gdbpy_initialize_values, gdbpy_initialize_frames,
6932 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6933 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6934 gdbpy_initialize_blocks, gdbpy_initialize_types,
6935 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6936 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6937 gdbpy_initialize_finishbreakpoints,
6938 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6939 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6940 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6941 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6942 gdbpy_initialize_signal_event,
6943 gdbpy_initialize_breakpoint_event,
6944 gdbpy_initialize_continue_event,
6945 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6946 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6947 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6948 * python/python.c (gdb_python_initialized): New global.
6949 (gdbpy_initialize_events): Return 'int'. Check errors.
6950 (_initialize_python): Check errors. Set
6951 gdb_python_initialized.
6952
6953 2013-05-20 Tom Tromey <tromey@redhat.com>
6954
6955 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6956 Decref the reslut of PyObject_CallMethod.
6957
6958 2013-05-20 Tom Tromey <tromey@redhat.com>
6959
6960 * python/py-event.c (gdbpy_initialize_event_generic): Return
6961 early if PyType_Ready fails.
6962
6963 2013-05-20 Tom Tromey <tromey@redhat.com>
6964
6965 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6966 as 'default' in the switch.
6967
6968 2013-05-20 Tom Tromey <tromey@redhat.com>
6969
6970 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6971 get_addr_from_python calls out of TRY_CATCH.
6972 (infpy_write_memory, infpy_search_memory): Likewise.
6973 * python/py-utils.c (get_addr_from_python): Return negative
6974 value on error. Use TRY_CATCH.
6975 * python/python-internal.h (get_addr_from_python): Use
6976 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6977
6978 2013-05-20 Tom Tromey <tromey@redhat.com>
6979
6980 * python/py-event.c (evpy_emit_event): Decref the
6981 result of PyObject_CallFunctionObjArgs.
6982
6983 2013-05-20 Tom Tromey <tromey@redhat.com>
6984
6985 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6986 Correctly decref.
6987
6988 2013-05-20 Tom Tromey <tromey@redhat.com>
6989
6990 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6991
6992 2013-05-20 Tom Tromey <tromey@redhat.com>
6993
6994 * python/py-event.h (gdbpy_initialize_event_generic): Use
6995 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6996 * python/py-evts.c (add_new_registry): Use
6997 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6998 * python/python-internal.h
6999 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7000
7001 2013-05-20 Tom Tromey <tromey@redhat.com>
7002
7003 * python/py-arch.c (archpy_disassemble): Update.
7004 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7005 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7006 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7007 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7008 macro.
7009 (GDB_PY_HANDLE_EXCEPTION): Update.
7010 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7011
7012 2013-05-20 Tom Tromey <tromey@redhat.com>
7013
7014 * python/python-internal.h (events_object_type): Remove.
7015
7016 2013-05-20 Tom Tromey <tromey@redhat.com>
7017
7018 * python/py-event.h (evpy_emit_event): Use
7019 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7020 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7021 New macro.
7022
7023 2013-05-20 Tom Tromey <tromey@redhat.com>
7024
7025 * py-evtregistry.c (create_event_object): Decref
7026 eventregistry_object if PyList_New fails.
7027
7028 2013-05-20 Tom Tromey <tromey@redhat.com>
7029
7030 * py-cmd.c (gdbpy_string_to_argv): Check result of
7031 PyList_New.
7032
7033 2013-05-20 Tom Tromey <tromey@redhat.com>
7034
7035 * python/python.c (before_prompt_hook): Add cleanup to
7036 decref 'hook'.
7037
7038 2013-05-20 Tom Tromey <tromey@redhat.com>
7039
7040 * python/py-function.c (fnpy_init): Decref result of
7041 PyObject_GetAttrString.
7042
7043 2013-05-20 Tom Tromey <tromey@redhat.com>
7044
7045 * python/py-threadevent.c (get_event_thread): Use
7046 CPYCHECKER_RETURNS_BORROWED_REF.
7047 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7048 New define.
7049 (pspace_to_pspace_object, objfile_to_objfile_object)
7050 (find_thread_object): Use it.
7051
7052 2013-05-20 Tom Tromey <tromey@redhat.com>
7053
7054 * python/py-arch.c (arch_object_type): Use
7055 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7056 * python/py-block.c (block_syms_iterator_object_type):
7057 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7058 * python/py-bpevent.c (breakpoint_event_object_type):
7059 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7060 * python/py-cmd.c (cmdpy_object_type): Use
7061 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7062 * python/py-continueevent.c (continue_event_object_type):
7063 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7064 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7065 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7066 * python/py-events.h (thread_event_object_type):
7067 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7068 * python/py-evtregistry.c (eventregistry_object_type): Use
7069 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7070 * python/py-exitedevent.c (exited_event_object_type):
7071 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7072 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7073 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7074 * python/py-function.c (fnpy_object_type): Use
7075 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7076 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7077 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7078 * python/py-infthread.c (thread_object_type): Use
7079 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7080 * python/py-lazy-string.c (lazy_string_object_type):
7081 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7082 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7083 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7084 * python/py-objfile.c (objfile_object_type): Use
7085 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7086 * python/py-param.c (parmpy_object_type):
7087 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7088 * python/py-progspace.c (pspace_object_type):
7089 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7090 * python/py-signalevent.c (signal_event_object_type):
7091 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7092 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7093 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7094 * python/py-type.c (type_object_type, field_object_type)
7095 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7096 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7097 define.
7098 (value_object_type, block_object_type, symbol_object_type)
7099 (event_object_type, stop_event_object_type, breakpoint_object_type)
7100 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7101
7102 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7103
7104 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7105 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7106
7107 2013-05-20 Doug Evans <dje@google.com>
7108
7109 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7110 For Fission.
7111 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7112 reading_dwo_directly.
7113 (struct signatured_type): New member dwo_unit.
7114 (struct die_reader_specs): New member comp_dir.
7115 (create_signatured_type_table_from_index): Use malloc for
7116 all_type_units instead of objfile's obstack.
7117 (create_all_type_units): Ditto.
7118 (fill_in_sig_entry_from_dwo_entry): New function.
7119 (add_type_unit): New function.
7120 (lookup_dwo_signatured_type): New function.
7121 (lookup_dwp_signatured_type): New function.
7122 (lookup_signatured_type): New arg cu. All callers updated.
7123 (init_cu_die_reader): Initialize comp_dir.
7124 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7125 Change assert of matching type signatures to call error on mismatch.
7126 (lookup_dwo_unit): Add assert.
7127 (init_tu_and_read_dwo_dies): New function.
7128 (init_cutu_and_read_dies): Call it.
7129 (build_type_unit_groups): Handle case of no type unit groups created.
7130 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7131 (lookup_dwo_cutu): Tweak complaint.
7132 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7133 (dwarf2_per_objfile_free): Free all_type_units.
7134
7135 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7136
7137 * windows-nat.c (handle_unload_dll): Add missing empty line.
7138
7139 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7140
7141 * dwarf2read.c (prototyped_function_p): New function.
7142 (read_subroutine_type): Use it.
7143
7144 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7145
7146 * rs6000-aix-tdep.c: De-indent some example code provided
7147 as a comment.
7148
7149 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7150
7151 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7152 region is ok for a hardware watchpoint using the new ptrace interface
7153 on Power servers.
7154
7155 2013-05-17 Doug Evans <dje@google.com>
7156
7157 * NEWS: Mention new maintenance commands check-symtabs, and
7158 expand-symtabs, and renamed check-psymtabs.
7159 * psymtab.c (maintenance_check_psymtabs): Renamed from
7160 maintenance_check_symtabs. Only process already-expanded symbol
7161 tables.
7162 (_initialize_psymtab): Update.
7163 * symmisc.c (maintenance_check_symtabs): New function.
7164 (maintenance_expand_name_matcher): New function
7165 (maintenance_expand_file_matcher): New function
7166 (maintenance_expand_symtabs): New function.
7167 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7168 commands.
7169
7170 2013-05-17 Tom Tromey <tromey@redhat.com>
7171
7172 * python/py-inferior.c (infpy_read_memory): Don't call
7173 PyErr_SetString if PyObject_New fails.
7174 * python/py-frame.c (frame_info_to_frame_object): Don't call
7175 PyErr_SetString if PyObject_New fails.
7176
7177 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7178
7179 * acinclude.m4: Add check for dlopen in libdl.
7180 * configure.ac: Ditto.
7181 * configure: Regenerate.
7182
7183 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7184
7185 * frame.c (frame_stash): Convert to htab.
7186 (frame_addr_hash): New function.
7187 (frame_addr_hash_eq): New function.
7188 (frame_stash_create): Convert function to create
7189 a hash table.
7190 (frame_stash_add): Convert function to add an entry to a hash
7191 table.
7192 (frame_stash_find): Convert function to search the hash table.
7193 (frame_stash_invalidate): Convert function to empty the hash
7194 table.
7195 (get_frame_id): Only add to stash if a frame_id is created.
7196 (_initialize_frame): Call frame_stash_create.
7197
7198 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7199
7200 * configure.ac: Ensure MIG is available when building for GNU Hurd
7201 hosts.
7202 * configure: Regenerate.
7203
7204 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7205
7206 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7207
7208 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7209
7210 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7211 all cleanups are done before returning from this function.
7212
7213 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7214
7215 * utils.h: #include "exceptions.h".
7216 (enum errors): Remove partial declaration.
7217
7218 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7219
7220 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7221 * gdbarch.h, gdbarch.c: Regenerate.
7222 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7223 handling.
7224
7225 * rs6000-aix-tdep.h: New file.
7226 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7227 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7228 "xml-utils.h".
7229 (struct field_info, struct ld_info_desc): New types.
7230 (ld_info32_desc, ld_info64_desc): New static constants.
7231 (struct ld_info): New type.
7232 (rs6000_aix_extract_ld_info): New function.
7233 (rs6000_aix_shared_library_to_xml): Likewise.
7234 (rs6000_aix_ld_info_to_xml): Likewise.
7235 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7236 (rs6000_aix_init_osabi): Add call to
7237 set_gdbarch_core_xfer_shared_libraries_aix.
7238 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7239 Remove "xml-utils.h" include.
7240 (LdInfo): Delete typedef.
7241 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7242 Delete macros.
7243 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7244 Adjust code accordingly.
7245 (rs6000_core_ldinfo): Delete, folded into
7246 rs6000_aix_core_xfer_shared_libraries_aix.
7247 (rs6000_xfer_shared_library): Delete.
7248 (rs6000_xfer_shared_libraries): Reimplement.
7249
7250 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7251
7252 * record.c (record_goto_cmdlist): New.
7253 (cmd_record_goto): Split into this ...
7254 (cmd_record_goto_begin): ... this
7255 (cmd_record_goto_end): ... and this.
7256 (_initialize_record): Change "record goto" to prefix command.
7257 Add commands for "record goto begin" and "record goto end".
7258 Add an alias for "record goto start" to "record goto begin".
7259
7260 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7261
7262 * linespec.c (convert_linespec_to_sals): New comment for
7263 SOURCE_FILENAME assignment.
7264
7265 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7266
7267 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7268 internal_warning.
7269
7270 2013-05-14 Tom Tromey <tromey@redhat.com>
7271
7272 * eval.c (parse_and_eval_long): Make 'exp' const.
7273 * value.h (parse_and_eval_long): Update.
7274
7275 2013-05-14 Tom Tromey <tromey@redhat.com>
7276
7277 * ui-file.c (gdb_fopen): Make arguments const.
7278 * ui-file.h (gdb_fopen): Make arguments const.
7279
7280 2013-05-14 Tom Tromey <tromey@redhat.com>
7281
7282 * remote.c (remote_set_trace_notes): Make arguments const.
7283 * target.c (update_current_target): Update cast.
7284 * target.h (to_set_trace_notes): Make arguments const.
7285
7286 2013-05-14 Tom Tromey <tromey@redhat.com>
7287
7288 * go32-nat.c (go32_terminal_info): Make 'args' const.
7289 * inferior.h (child_terminal_info): Update.
7290 * inflow.c (child_terminal_info): Make 'args' const.
7291 * target.c (default_terminal_info): Make 'args' const.
7292 (debug_to_terminal_save_ours): Likewise.
7293 * target.h (struct target_ops) <to_terminal_info>: Make argument
7294 const.
7295
7296 2013-05-13 Tom Tromey <tromey@redhat.com>
7297
7298 * gcore.c (create_gcore_bfd): Make 'filename' const.
7299 * gcore.h (create_gcore_bfd): Make 'filename' const.
7300 * record-full.c (record_full_save): Make 'recfilename' const.
7301 * target.c (target_save_record): Make 'filename' const.
7302 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7303 const.
7304 (target_save_record): Likewise.
7305
7306 2013-05-13 Tom Tromey <tromey@redhat.com>
7307
7308 PR gdb/15338:
7309 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7310 ranges section has been read.
7311
7312 2013-05-13 Tom Tromey <tromey@redhat.com>
7313
7314 PR exp/15364:
7315 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7316 STRUCTOP_PTR>: Return a not_lval value for
7317 EVAL_AVOID_SIDE_EFFECTS.
7318 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7319 for EVAL_AVOID_SIDE_EFFECTS.
7320
7321 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7322
7323 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7324 floating point registers to register type before storing
7325 value.
7326 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7327 Likewise.
7328
7329 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7330 Tom Tromey <tromey@redhat.com>
7331
7332 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7333 New functions.
7334 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7335 Declare.
7336 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7337 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7338 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7339 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7340
7341 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7342 Tom Tromey <tromey@redhat.com>
7343
7344 PR build/15414:
7345 * configure: Rebuild.
7346 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7347 with -Wno-format.
7348
7349 2013-05-10 Pedro Alves <palves@redhat.com>
7350
7351 * remote.c (_initialize_remote): Fix spelling of
7352 qXfer:traceframe-info:read packet in packet config command.
7353
7354 2013-05-10 David Taylor <dtaylor@emc.com>
7355
7356 PR remote/15455
7357
7358 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7359 "QTro" at start of packet.
7360
7361 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7362
7363 * solib-aix.c (solib_aix_relocate_section_addresses):
7364 For the .bss section action, apply the same offset as
7365 the .data section.
7366
7367 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7368
7369 * solib-aix.c (solib_aix_relocate_section_addresses):
7370 Remove FIXME comment.
7371
7372 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7373
7374 PR tdep/15420:
7375 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7376 New functions, directly copied from sparc-sol-thread.c.
7377 * sparc-sol-thread.c: Delete.
7378 * configure.ac: Remove code handling sparc-solaris-thread.c.
7379 * configure: Regenerate.
7380
7381 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7382
7383 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7384 filter logic.
7385 (backtrace_command): Add "no-filters" option parsing.
7386 (_initialize_stack): Alter help to reflect "no-filters" option.
7387 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7388 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7389 (py-frame.o): Add target
7390 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7391 filter files.
7392 * python/python.h: Add new frame filter constants, and flag enum.
7393 (apply_frame_filter): Add definition.
7394 * python/python.c (apply_frame_filter): New non-Python
7395 enabled function.
7396 * python/py-utils.c (py_xdecref): New function.
7397 (make_cleanup_py_xdecref): Ditto.
7398 * python/py-objfile.c: Declare frame_filters dictionary.
7399 (objfpy_dealloc): Add frame_filters dealloc.
7400 (objfpy_new): Initialize frame_filters attribute.
7401 (objfile_to_objfile_object): Ditto.
7402 (objfpy_get_frame_filters): New function.
7403 (objfpy_set_frame_filters): New function.
7404 * python/py-progspace.c: Declare frame_filters dictionary.
7405 (pspy_dealloc): Add frame_filters dealloc.
7406 (pspy_new): Initialize frame_filters attribute.
7407 (pspacee_to_pspace_object): Ditto.
7408 (pspy_get_frame_filters): New function.
7409 (pspy_set_frame_filters): New function.
7410 * python/py-framefilter.c: New file.
7411 * python/lib/gdb/command/frame_filters.py: New file.
7412 * python/lib/gdb/frames.py: New file.
7413 * python/lib/gdb/__init__.py: Initialize global frame_filters
7414 dictionary
7415 * python/lib/gdb/FrameDecorator.py: New file.
7416 * python/lib/gdb/FrameIterator.py: New file.
7417 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7418 * mi/mi-cmds.h: Declare.
7419 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7420 --no-frame-filter logic, and Python frame filter logic.
7421 (stack_enable_frame_filters): New function.
7422 (parse_no_frame_option): Ditto.
7423 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7424 filter logic.
7425 (mi_cmd_stack_list_locals): Ditto.
7426 (mi_cmd_stack_list_args): Ditto.
7427 (mi_cmd_stack_list_variables): Ditto.
7428 * NEWS: Add frame filter note.
7429
7430 2013-05-09 Doug Evans <dje@google.com>
7431
7432 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7433 All callers updated.
7434 (syms_from_objfile): Ditto. Make static.
7435 (symbol_file_add_with_addrs): Renamed from
7436 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7437 num_offsets. All callers updated.
7438 * symfile.h (syms_from_objfile): Delete.
7439
7440 * symfile.c (decrement_reading_symtab): Add assert.
7441 (increment_reading_symtab): Ditto.
7442
7443 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7444
7445 * source.c (forward_search_command): Replace call to getc
7446 by call to fgetc.
7447 (reverse_search_command): Likewise.
7448
7449 2013-05-08 Doug Evans <dje@google.com>
7450
7451 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7452 matching test.
7453
7454 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7455
7456 * sol-thread.c (info_cb): Factorize the code a little.
7457
7458 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7459
7460 * sol-thread.c (info_cb): Rework the output of the "maintenance
7461 info sol-threads" command a bit.
7462
7463 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7464
7465 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7466 Replace ti.ti_startfunc by ti.ti_pc.
7467
7468 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7469
7470 * solib-aix.c (solib_aix_free_library_list): New function
7471 for the case where HAVE_LIBEXPAT is not defined.
7472
7473 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7474
7475 PR breakpoints/15413:
7476 * breakpoint.c (condition_completer): Simplify the code to
7477 disconsider multiple locations of breakpoints when completing the
7478 "condition" command.
7479
7480 2013-05-07 Pierre Muller <muller@sourceware.org>
7481
7482 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7483 instead of <sys/wait.h>.
7484
7485 2013-05-07 Pierre Muller <muller@sourceware.org>
7486
7487 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7488 trailing new line from warning message.
7489
7490 2013-05-07 Pierre Muller <muller@sourceware.org>
7491
7492 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7493 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7494
7495 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7496
7497 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7498 error message (ARI fix).
7499
7500 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7501
7502 * features/library-list-aix.dtd: Replace library-list by
7503 library-list-aix.
7504 * rs6000-nat.c: Replace library-list by library-list-aix
7505 throughout.
7506 * solib-aix.c: Likewise.
7507
7508 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7509
7510 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7511 Renames TARGET_OBJECT_AIX_LIBRARIES.
7512 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7513 TARGET_OBJECT_LIBRARIES_AIX throughout.
7514 * solib-aix.c: Likwise.
7515
7516 2013-05-07 Yao Qi <yao@codesourcery.com>
7517
7518 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7519 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7520
7521 2013-05-07 Yao Qi <yao@codesourcery.com>
7522
7523 * solib-dsbt.c (enable_break): Declare.
7524 (dsbt_current_sos): Remove call to enable_break2.
7525 (enable_break2): Rename to enable_break. Set solib breakpoint
7526 on '_dl_debug_state'.
7527 (enable_break): Remove.
7528
7529 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7530
7531 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7532 debug state prior to replicating existing hardware watchpoints or
7533 breakpoints.
7534
7535 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7536
7537 * gcore.c (gcore_create_callback): Ignore sections with
7538 separate_debug_objfile_backlink != NULL.
7539
7540 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7541 Andrew Jenner <andrew@codesourcery.com>
7542 Chung-Lin Tang <cltang@codesourcery.com>
7543 Julian Brown <julian@codesourcery.com>
7544
7545 Based on the nios2-elf port from Altera Corporation.
7546
7547 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7548 nios2-linux-tdep.o.
7549 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7550 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7551 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7552 * nios2-tdep.h: New.
7553 * nios2-tdep.c: New.
7554 * nios2-linux-tdep.c: New.
7555 * features/Makefile (WHICH): Add nios2-linux.
7556 (nios2-linux-expedite): Set.
7557 * features/nios2-cpu.xml: New.
7558 * features/nios2.xml: New.
7559 * features/nios2-linux.xml: New.
7560 * features/nios2.c: New (autogenerated).
7561 * features/nios2-linux.c: New (autogenerated).
7562 * regformats/nios2-linux.dat: New (autogenerated).
7563 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7564 and commands.
7565
7566 2013-05-06 Doug Evans <dje@google.com>
7567
7568 * symfile.c: Whitespace cleanup.
7569
7570 * solist.h (struct target_so_ops): New member clear_so.
7571 * solib-svr4.c (svr4_clear_so): New function.
7572 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7573 * solib.c (clear_so): Renamed from free_so_symbols.
7574 All callers updated. Call target clear_so if it exists.
7575
7576 2013-05-06 Tom Tromey <tromey@redhat.com>
7577
7578 * ada-lang.c (ada_value_primitive_packed_val): Don't
7579 call value_incref.
7580 * value.c (set_value_parent): Incref the new parent and decref
7581 the old parent.
7582 (value_copy, value_primitive_field): Use set_value_parent.
7583
7584 2013-05-06 Tom Tromey <tromey@redhat.com>
7585
7586 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7587 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7588 if needed.
7589 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7590 * dwarf2read.c (write_constant_as_bytes)
7591 (dwarf2_fetch_constant_bytes): New functions.
7592
7593 2013-05-06 Tom Tromey <tromey@redhat.com>
7594
7595 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7596 parameters.
7597 (dwarf2_const_value_attr): Update.
7598
7599 2013-05-06 Tom Tromey <tromey@redhat.com>
7600
7601 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7602 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7603 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7604 Remove declaration.
7605
7606 2013-05-06 Tom Tromey <tromey@redhat.com>
7607
7608 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7609 objfile's obstack.
7610
7611 2013-05-06 Doug Evans <dje@google.com>
7612
7613 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7614 * stabsread.h (process_one_symbol): Update declaration.
7615 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7616 * elfread.c (elf_symfile_relocate_probe): Ditto.
7617 * psymtab.c (relocate_psymtabs): Ditto.
7618 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7619 (objfile_relocate): Ditto.
7620 * objfiles.h (objfile_relocate): Update declaration.
7621 * symfile.c (relative_addr_info_to_section_offsets): Constify
7622 addrs parameter.
7623 (default_symfile_offsets): Ditto.
7624 (syms_from_objfile_1): Constify offsets parameter.
7625 (syms_from_objfile): Ditto.
7626 (symbol_file_add_with_addrs_or_offsets): Ditto.
7627 (symfile_map_offsets_to_segments): Constify data parameter.
7628 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7629 delta parameters of member relocate.
7630 (struct sym_probe_fns): Constify new_offsets,
7631 delta parameters of member sym_relocate_probe.
7632 (struct sym_fns): Constify section_addr_info parameter of member
7633 sym_offsets.
7634 (relative_addr_info_to_section_offsets): Update declaration.
7635 (default_symfile_offsets): Ditto.
7636 (syms_from_objfile): Ditto.
7637 (symfile_map_offsets_to_segments): Ditto.
7638
7639 * symfile.c (syms_from_objfile_1): Use correct section count when
7640 objfile->sf == NULL.
7641
7642 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7643
7644 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7645
7646 2013-05-06 Doug Evans <dje@google.com>
7647
7648 * psympriv.h (struct partial_symtab): Augment comment for member
7649 section_offsets.
7650
7651 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7652
7653 Reimplement shared library support on ppc-aix...
7654 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7655 * features/library-list-aix.dtd: New file.
7656 * solib-aix.h, solib-aix.c: New file.
7657 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7658 (rs6000_find_toc_address_hook): Delete.
7659 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7660 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7661 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7662 "xml-utils.h".
7663 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7664 (vmap_symtab, fixup_breakpoints): Delete.
7665 (rs6000_xfer_shared_libraries): New function.
7666 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7667 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7668 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7669 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7670 (rs6000_xfer_shared_library): New function.
7671 (find_toc_address): Delete.
7672 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7673 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7674 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7675 before creating minimal symbol. Adjust function description
7676 accordingly.
7677 (scan_xcoff_symtab): Replace call to
7678 prim_record_minimal_symbol_and_info by call to
7679 record_minimal_symbol.
7680 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7681 around default_symfile_offsets.
7682 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7683 powerpc-aix targets.
7684 * config/rs6000/nm-rs6000.h: Delete.
7685 * config/powerpc/aix.mh (NAT_FILE): Delete.
7686 (NATDEPFILES): Remove xcoffsolib.o.
7687 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7688 (ALL_TARGET_OBS): Add solib-aix.o.
7689 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7690 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7691 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7692 * xcoffsolib.h, xcoffsolib.c: Delete.
7693
7694 * solib.c (reload_shared_libraries): Remove reference to
7695 SOLIB_CREATE_INFERIOR_HOOK.
7696 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7697 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7698 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7699 comment.
7700 * corelow.c (deprecated_core_resize_section_table): Delete.
7701 * exec.c: Remove include of xcoffsolib.h".
7702 (map_vmap, vmap): Delete.
7703 (exec_close_1): Remove references to vmap.
7704 (exec_file_attach): Remove vmap handling code, and reference
7705 to DEPRECATED_IBM6000_TARGET.
7706 (bfdsec_to_vmap): Delete.
7707 (exec_files_info): Remove block of code handling VMAP.
7708 * infcmd.c (post_create_inferior): Remove reference to
7709 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7710 * infrun.c (follow_exec): Remove reference to
7711 SOLIB_CREATE_INFERIOR_HOOK.
7712 * stack.c (print_frame): Remove reference to PC_SOLIB.
7713 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7714 (dsbt_relocate_main_executable): Likewise.
7715 * solib-frv.c (frv_current_sos): Likewise.
7716
7717 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7718
7719 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7720 to target_write_memory and target_read_memory.
7721
7722 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7723
7724 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7725 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7726
7727 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7728
7729 * darwin-nat.c: Replace all "%x" instances in format strings
7730 into "0x%x" throughout.
7731
7732 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7733
7734 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7735 gdb_assert by call to MACH_CHECK_ERROR.
7736 (darwin_attach_pid): Raise an error rather than a failed
7737 assertion when various system calls failed. Report a warning
7738 instead of raising a failed assertion when PREV_NOT is not NULL
7739 after call to mach_port_request_notification.
7740 (darwin_ptrace_me): Raise an error rather than a failed
7741 assertion when read returns nonzero.
7742
7743 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7744
7745 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7746
7747 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7748
7749 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7750
7751 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7752
7753 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7754 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7755 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7756 a stale cleanup. Fix double free of NAME.
7757
7758 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7759
7760 * windows-nat.c (windows_delete_thread): Accept an additional
7761 argument, the thread's exit code, and announce thread death when
7762 print_thread_events is non-zero and we are deleting a thread that
7763 is not the main thread.
7764 (get_windows_debug_event): Pass thread exit code to
7765 windows_delete_thread.
7766
7767 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7768
7769 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7770 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7771 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7772 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7773 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7774 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7775 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7776 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7777 (gdbarch_tdep): New struct.
7778 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7779 E_NUM_REGS.
7780 (v850e3v5_register_name): New function.
7781 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7782 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7783 code handling the struct return conventions for the RH850 ABI.
7784 Update all callers.
7785 (v850_eight_byte_align_p): New function.
7786 (v850_push_call_dummy): Push structs by value, not by reference
7787 for the RH850 ABI. Add support for eight byte alignment.
7788 (v850_dbtrap_breakpoint_from_pc): New function.
7789 (v850_gdbarch_init): Add ABI detection code. Register
7790 v850e3v5_register_name for the v850e3v5 architecture. Set the
7791 number of registers for v850e3v5. Register
7792 v850_dbtrap_breakpoint_from_pc as appropriate.
7793 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7794
7795 2013-05-03 Doug Evans <dje@google.com>
7796
7797 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7798 of bfd_count_sections.
7799 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7800 * symfile.c (default_symfile_offsets): Ditto.
7801 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7802 one entry, not bfd_count_sections entries.
7803
7804 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7805
7806 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7807 `save' and `restore' register groups. Don't include SPL
7808 or SPH in these groups.
7809 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7810 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7811 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7812 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7813 dwarf2_append_unwinders().
7814
7815 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7816
7817 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7818 ignore SIGINT and SIGTRAP in case these internal signals are
7819 caught explicitely.
7820
7821 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7822
7823 * darwin-nat.c (darwin_read_write_inferior): Change types
7824 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7825 of copy_count to "mach_msg_type_number_t".
7826 (darwin_read_dyld_info): Change type of parameter
7827 rdaddr to "gdb_byte *".
7828
7829 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7830
7831 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7832 of &info->load_map from "char *" to "gdb_byte *".
7833
7834 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7835
7836 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7837 from "char *" to "gdb_byte *".
7838 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7839
7840 2013-04-30 Doug Evans <dje@google.com>
7841
7842 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7843 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7844 DWO stub. If DWO isn't found, just use stub.
7845 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7846
7847 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7848 calling init_cutu_and_read_dies.
7849
7850 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7851
7852 * target-descriptions.c (maint_print_c_tdesc_cmd):
7853 Add case to parse structures as register types and
7854 bitfields.
7855
7856 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7857
7858 * MAINTAINERS (Write After Approval): Add myself to the list.
7859
7860 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7861
7862 * sol-thread.c (rw_common): Change type of parameter "buf"
7863 to "gdb_byte *".
7864 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7865 rw_common to "gdb_byte *" instead of "char *".
7866
7867 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7868
7869 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7870 of local variable msym to const struct bound_minimal_symbol.
7871 Adjust use accordingly.
7872 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7873
7874 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7875
7876 * i386gnu-nat.c (CREG_OFFSET): New macro.
7877 (creg_offset): New array.
7878 (CREG_ADDR): Use creg_offset instead of reg_offset.
7879
7880 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7881
7882 * mep-tdep.c (mep_write_pc): Delete.
7883 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7884 Add call to set_gdbarch_pc_regnum.
7885
7886 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7887
7888 * common/filestuff.c: Replace #include <dirent.h> by
7889 #include "gdb_dirent.h".
7890
7891 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7892
7893 * common/filestuff.c: Replace #include <sys/stat.h> by
7894 #include "gdb_stat.h".
7895
7896 2013-04-29 Pierre Muller <muller@sourceware.org>
7897
7898 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7899 editCase function rule.
7900 (get_DW_AT_signature_type): Likewise.
7901
7902 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7903
7904 * m32r-tdep.c (m32r_write_pc): Delete.
7905 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7906 Add call to set_gdbarch_pc_regnum.
7907
7908 2013-04-29 Pierre Muller <muller@sourceware.org>
7909
7910 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7911
7912 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7913
7914 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7915
7916 2013-04-28 Yao Qi <yao@codesourcery.com>
7917
7918 * solib-dsbt.c (fetch_loadmap): Re-indent.
7919 (displacement_from_map, enable_break2): Likewise.
7920 (dsbt_relocate_section_addresses): Likewise.
7921
7922 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7923
7924 GDB 7.6 released.
7925
7926 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7927
7928 PR corefiles/14983:
7929 * dwarf2read.c (process_full_comp_unit): Always create a static
7930 block.
7931
7932 2013-04-25 Hui Zhu <hui@codesourcery.com>
7933
7934 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7935 to loc->cmd_bytecode.
7936
7937 2013-04-24 Doug Evans <dje@google.com>
7938
7939 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7940
7941 2013-04-22 Keith Seitz <keiths@redhat.com>
7942
7943 * tracepoint.c (trace_save): Call the writer's start method.
7944
7945 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7946
7947 PR gdb/10462
7948 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7949 before argument.
7950
7951 2013-04-23 Tom Tromey <tromey@redhat.com>
7952
7953 * common/filestuff.c: Check USE_WIN32API before including
7954 sys/socket.h.
7955 (HAVE_F_GETFD): New define.
7956 (mark_cloexec): Check HAVE_F_GETFD.
7957 (gdb_open_cloexec): Change 'mode' to unsigned long.
7958 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7959 (gdb_pipe_cloexec): Check HAVE_PIPE.
7960 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7961 long.
7962
7963 2013-04-23 Hui Zhu <hui@codesourcery.com>
7964
7965 PR gdb/15293
7966 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7967
7968 2013-04-23 Hui Zhu <hui@codesourcery.com>
7969
7970 PR gdb/15165
7971 * breakpoint.c (dprintf_print_recreate): New.
7972 (save_breakpoints): Let it not save dprintf commands.
7973 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7974
7975 2013-04-22 Tom Tromey <tromey@redhat.com>
7976
7977 PR gdb/7912:
7978 * Makefile.in (SFILES): Add filestuff.c
7979 (COMMON_OBS): Add filestuff.o.
7980 (filestuff.o): New target.
7981 * auto-load.c (auto_load_objfile_script_1): Use
7982 gdb_fopen_cloexec.
7983 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7984 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7985 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7986 * common/agent.c (gdb_connect_sync_socket): Use
7987 gdb_socket_cloexec.
7988 * common/filestuff.c: New file.
7989 * common/filestuff.h: New file.
7990 * common/linux-osdata.c (linux_common_core_of_thread)
7991 (command_from_pid, commandline_from_pid, print_source_lines)
7992 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7993 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7994 gdb_fopen_cloexec.
7995 * common/linux-procfs.c (linux_proc_get_int)
7996 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7997 * config.in, configure: Rebuild.
7998 * configure.ac: Don't check for sys/socket.h. Check for
7999 fdwalk, pipe2.
8000 * corelow.c (core_open): Use gdb_open_cloexec.
8001 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8002 * fork-child.c (fork_inferior): Call close_most_fds.
8003 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8004 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8005 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8006 Use gdb_fopen_cloexec.
8007 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8008 gdb_open_cloexec.
8009 (linux_async_pipe): Use gdb_pipe_cloexec.
8010 * remote-fileio.c (remote_fileio_func_open): Use
8011 gdb_open_cloexec.
8012 * remote.c (remote_file_put, remote_file_get): Use
8013 gdb_fopen_cloexec.
8014 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8015 close_most_fds.
8016 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8017 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8018 * solib.c (solib_find): Use gdb_open_cloexec.
8019 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8020 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8021 (tfile_open): Use gdb_open_cloexec.
8022 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8023 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8024 * xml-support.c (xml_fetch_content_from_file): Use
8025 gdb_fopen_cloexec.
8026 * main.c (captured_main): Call notice_open_fds.
8027
8028 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8029
8030 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8031 'char *' to 'gdb_byte *'.
8032 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8033 'gdb_byte'.
8034
8035 2013-04-22 Yao Qi <yao@codesourcery.com>
8036
8037 * infrun.c: Fix typo in comment.
8038
8039 2013-04-22 Andrew Haley <aph@redhat.com>
8040
8041 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8042 instead of "long".
8043
8044 2013-04-20 Yao Qi <yao@codesourcery.com>
8045
8046 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8047 'char *' to 'gdb_byte *'. Cast the return value of
8048 'bt_ctf_get_char_array' to 'gdb_byte *'.
8049
8050 2013-04-19 Pedro Alves <palves@redhat.com>
8051
8052 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8053 -Wpointer-sign.
8054 * configure: Regenerate.
8055
8056 2013-04-19 Pedro Alves <palves@redhat.com>
8057
8058 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8059 'void *'.
8060
8061 2013-04-19 Pedro Alves <palves@redhat.com>
8062
8063 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8064 Change type of 'myaddr' parameter to gdb_byte pointer.
8065 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8066 to 'long long' pointer instead of to 'unsigned long long'.
8067 (monitor_write_memory_block, monitor_read_memory_single)
8068 (monitor_read_memory): Change type of 'myaddr' parameter to
8069 gdb_byte pointer.
8070
8071 2013-04-19 Pedro Alves <palves@redhat.com>
8072
8073 * record.c (validate_history_size): Make parameter 'setting'
8074 unsigned.
8075
8076 2013-04-19 Pedro Alves <palves@redhat.com>
8077
8078 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8079 to 'gdb_byte *'.
8080
8081 2013-04-19 Pedro Alves <palves@redhat.com>
8082
8083 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8084 local to int.
8085
8086 2013-04-19 Pedro Alves <palves@redhat.com>
8087
8088 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8089 * ada-tasks.c (read_fat_string_value): Likewise.
8090
8091 2013-04-19 Pedro Alves <palves@redhat.com>
8092
8093 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8094 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8095 'offset', and adjust.
8096
8097 2013-04-19 Pedro Alves <palves@redhat.com>
8098
8099 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8100 (read_index_from_section): Add cast to 'char *'.
8101
8102 2013-04-19 Pedro Alves <palves@redhat.com>
8103
8104 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8105
8106 2013-04-19 Pedro Alves <palves@redhat.com>
8107
8108 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8109
8110 2013-04-19 Pedro Alves <palves@redhat.com>
8111
8112 * record-full.c (record_full_get_bookmark): Change local 'ret'
8113 type to char * and add cast to gdb_byte *.
8114 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8115 string.
8116 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8117
8118 2013-04-19 Pedro Alves <palves@redhat.com>
8119
8120 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8121 * python/py-prettyprint.c (print_string_repr): Change type of
8122 'output' local to char *. Add cast to gdb_byte * in
8123 LA_PRINT_STRING call.
8124 (print_children): Change type of 'output' local to char *.
8125 * python/py-value.c (valpy_string): Add cast to const char * in
8126 PyUnicode_Decode call.
8127
8128 2013-04-19 Pedro Alves <palves@redhat.com>
8129
8130 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8131 and change its type to 'const char *'. Adjust.
8132 (mips_send_packet): Add cast to 'char *', and remove cast to
8133 'unsigned char *'.
8134 (mips_receive_packet): Remove cast to 'unsigned char *'.
8135 (mips_load_srec): Use bfd_byte.
8136 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8137 (pmon_checkset): Make 'value' parameter unsigned.
8138
8139 2013-04-19 Pedro Alves <palves@redhat.com>
8140
8141 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8142
8143 2013-04-19 Pedro Alves <palves@redhat.com>
8144
8145 * remote.c (remote_write_bytes_aux, compare_sections_command)
8146 (remote_read_qxfer)
8147 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8148 (remote_hostio_readlink, remote_bfd_iovec_pread)
8149 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8150 binary buffer, and char when buffer is used as string.
8151 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8152 (trace_save, tfile_open, traceframe_walk_blocks)
8153 (tfile_fetch_registers): Likewise.
8154
8155 2013-04-19 Pedro Alves <palves@redhat.com>
8156
8157 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8158 buffer and size_t size. Adjust.
8159 * ser-base.h (ser_base_write): Adjust.
8160 * ser-go32.c (cnts): Change type to size_t.
8161 (dos_write): Change prototype -- take 'void *'
8162 buffer and size_t size. Adjust.
8163 (dos_info): Print elements of 'cnts' as unsigned long.
8164 * serial.c (serial_write): Likewise.
8165 * serial.h (serial_write): Adjust.
8166 (struct serial_ops) <write>: Change prototype -- take 'void *'
8167 buffer and size_t size. Adjust.
8168
8169 2013-04-19 Pedro Alves <palves@redhat.com>
8170
8171 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8172 gdb_byte *.
8173 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8174
8175 2013-04-19 Pedro Alves <palves@redhat.com>
8176
8177 * alpha-tdep.c (alpha_extract_return_value): Use
8178 regcache_cooked_read_unsigned to read 'v0'.
8179
8180 2013-04-19 Pedro Alves <palves@redhat.com>
8181
8182 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8183 parameters 'at', 'as' and 'offset' to uint32_t.
8184
8185 2013-04-19 Pedro Alves <palves@redhat.com>
8186
8187 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8188 'is64' to signed 'int'.
8189
8190 2013-04-19 Pedro Alves <palves@redhat.com>
8191
8192 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8193 parameter to int *.
8194
8195 2013-04-19 Pedro Alves <palves@redhat.com>
8196
8197 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8198 'insnbuf' buffer type to unsigned int[].
8199
8200 2013-04-19 Pedro Alves <palves@redhat.com>
8201
8202 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8203
8204 2013-04-19 Pedro Alves <palves@redhat.com>
8205
8206 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8207 unsigned long *.
8208
8209 2013-04-19 Pedro Alves <palves@redhat.com>
8210
8211 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8212 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8213 UINT_MAX.
8214 * mips-tdep.c (heuristic_fence_post): Change type to int.
8215 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8216
8217 2013-04-19 Pedro Alves <palves@redhat.com>
8218
8219 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8220 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8221 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8222
8223 2013-04-19 Pedro Alves <palves@redhat.com>
8224
8225 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8226 it to get a string view of the byte buffer.
8227 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8228 type to gdb_byte *. Adjust.
8229 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8230 Change local to char *.
8231 * solib-darwin.c (find_program_interpreter): Change return type to
8232 char *. Adjust.
8233 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8234 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8235 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8236 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8237 * solib-svr4.c (find_program_interpreter): Change return type to
8238 char *. Adjust.
8239 (enable_break): Change local 'interp_name' to char *.
8240 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8241 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8242 (spu_pseudo_register_write_spu): Use char for string buffer.
8243 Adjust.
8244 (info_spu_event_command, info_spu_signal_command): Add casts to
8245 'char *'.
8246
8247 2013-04-19 Pedro Alves <palves@redhat.com>
8248
8249 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8250 gdb_byte[].
8251 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8252 * ada-lang.c (ada_value_assign): Use gdb_byte.
8253 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8254 (alphanbsd_sigtramp_offset): Use gdb_byte.
8255 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8256 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8257 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8258 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8259 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8260 * arm-tdep.c (arm_stub_unwind_sniffer)
8261 (arm_displaced_init_closure): Use gdb_byte.
8262 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8263 (arm_default_thumb_le_breakpoint)
8264 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8265 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8266 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8267 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8268 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8269 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8270 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8271 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8272 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8273 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8274 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8275 (cris_store_return_value, cris_extract_return_value): Use
8276 gdb_byte.
8277 (constraint): Change type of parameter to char * from signed
8278 char*. Use gdb_byte.
8279 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8280 of local buffer to gdb_byte *.
8281 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8282 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8283 (add_address_entry): Change type of local buffer to gdb_byte[].
8284 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8285 (frv_push_dummy_call): Use gdb_byte.
8286 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8287 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8288 (hppa_hpux_supply_save_state): Use gdb_byte.
8289 * hppa-tdep.c (hppa32_push_dummy_call)
8290 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8291 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8292 (slotN_contents, replace_slotN_contents): Change type of parameter
8293 to gdb_byte *.
8294 (fetch_instruction, ia64_pseudo_register_write)
8295 (ia64_register_to_value, ia64_value_to_register)
8296 (ia64_extract_return_value, ia64_store_return_value)
8297 (ia64_push_dummy_call): Use gdb_byte.
8298 * m32c-tdep.c (m32c_return_value): Remove cast.
8299 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8300 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8301 gdb_byte.
8302 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8303 * mn10300-tdep.c (mn10300_store_return_value)
8304 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8305 gdb_byte.
8306 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8307 (moxie_process_record): Remove casts.
8308 * ppc-ravenscar-thread.c (supply_register_at_address)
8309 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8310 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8311 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8312 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8313 * remote.c (compare_sections_command): Use gdb_byte.
8314 * score-tdep.c (score7_free_memblock): Change type of parameter to
8315 gdb_byte *.
8316 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8317 gdb_byte *. Use gdb_byte.
8318 (sh_push_dummy_call_fpu): Use gdb_byte.
8319 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8320 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8321 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8322 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8323 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8324 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8325 (sh64_store_return_value, sh64_register_convert_to_virtual):
8326 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8327 (sh64_pseudo_register_write): Use gdb_byte.
8328 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8329 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8330 buffer.
8331 (irix_current_sos): Use gdb_byte.
8332 * solib-som.c (som_current_sos): Use gdb_byte.
8333 * sparc-ravenscar-thread.c (supply_register_at_address)
8334 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8335 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8336 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8337 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8338 'gdb_byte *'.
8339 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8340 'gdb_byte *'.
8341 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8342 * xstormy16-tdep.c (xstormy16_extract_return_value)
8343 (xstormy16_store_return_value): Change parameter type to
8344 'gdb_byte *'. Adjust.
8345 (xstormy16_push_dummy_call): Use gdb_byte.
8346 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8347 (call0_analyze_prologue, execute_code): Use gdb_byte.
8348
8349 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8350 Pedro Alves <palves@redhat.com>
8351
8352 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8353 value contents.
8354
8355 2013-04-17 Doug Evans <dje@google.com>
8356
8357 * dwarf2read.c (struct signatured_type): New member type.
8358 (struct attribute): Replace member signatured_type with signature.
8359 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8360 (read_call_site_scope): Call follow_die_ref instead of
8361 follow_die_ref_or_sig.
8362 (read_structure_type): Rewrite handling of signatured types.
8363 (read_enumeration_type): Ditto.
8364 (read_attribute_value): Update.
8365 (build_error_marker_type): New function.
8366 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8367 Don't call error for bad types, just build an error marker type.
8368 (dump_die_shallow): Update.
8369 (follow_die_sig_1): Renamed from follow_die_sig.
8370 Don't call error for bad types, instead return NULL.
8371 (follow_die_sig): New function.
8372 (get_signatured_type, get_DW_AT_signature_type): New functions.
8373
8374 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8375
8376 * aarch64-tdep.c (aarch64_write_pc): Removed.
8377 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8378 function.
8379
8380 2013-04-17 Yao Qi <yao@codesourcery.com>
8381
8382 * top.c (print_gdb_configuration): Print configure-time
8383 parameter on using libbabeltrace or not.
8384
8385 2013-04-16 Pedro Alves <palves@redhat.com>
8386
8387 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8388
8389 2013-04-16 Pedro Alves <palves@redhat.com>
8390
8391 * common/glibc_thread_db.h: Update from upstream glibc
8392 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8393
8394 2013-04-16 Pedro Alves <palves@redhat.com>
8395
8396 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8397 * common/glibc_thread_db.h: ... this new file ...
8398 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8399
8400 2013-04-16 Will Newton <will.newton@gmail.com>
8401 Pedro Alves <palves@redhat.com>
8402
8403 PR build/11881
8404
8405 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8406 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8407 HAVE_THREAD_DB_H.
8408
8409 2013-04-16 Pedro Alves <palves@redhat.com>
8410 Eli Zaretskii <eliz@gnu.org>
8411
8412 * NEWS: Mention "set foo unlimited".
8413
8414 2013-04-15 Doug Evans <dje@google.com>
8415
8416 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8417 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8418 (create_dwo_cu_reader): Renamed from
8419 create_dwo_debug_info_hash_table_reader.
8420 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8421 Remove support for multiple CUs in a DWO file.
8422 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8423
8424 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8425 instead of phex.
8426 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8427 (create_dwo_in_dwp): Ditto.
8428
8429 2013-04-15 Tom Tromey <tromey@redhat.com>
8430
8431 * NEWS: Move recent entries into "since 7.6" section.
8432
8433 2013-04-15 Tom Tromey <tromey@redhat.com>
8434
8435 PR c++/13588:
8436 * NEWS: Update.
8437 * break-catch-throw.c (struct exception_catchpoint)
8438 <exception_rx, pattern>: New fields.
8439 (fetch_probe_arguments, dtor_exception_catchpoint)
8440 (check_status_exception_catchpoint)
8441 (print_one_detail_exception_catchpoint): New functions.
8442 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8443 Compile regular expression if needed.
8444 (extract_exception_regexp): New function.
8445 (catch_exception_command_1): Use extract_exception_regexp.
8446 (compute_exception): Use fetch_probe_arguments.
8447 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8448 and check_status fields.
8449 * cp-abi.c (cplus_typename_from_type_info): New function.
8450 * cp-abi.h (cplus_typename_from_type_info): Declare.
8451 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8452 * gdb_regex.h (compile_rx_or_error): Declare.
8453 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8454 comment.
8455 (init_gnuv3_ops): Set get_type_from_type_info field.
8456 * probe.c (compile_rx_or_error): Move...
8457 * utils.c (compile_rx_or_error): ... here.
8458
8459 2013-04-15 Tom Tromey <tromey@redhat.com>
8460
8461 PR c++/15176:
8462 * NEWS: Update.
8463 * break-catch-throw.c (compute_exception): New function.
8464 (exception_funcs): New global.
8465 (_initialize_break_catch_throw): Create $_exception.
8466 * cp-abi.c (cplus_type_from_type_info): New function.
8467 * cp-abi.h (cplus_type_from_type_info): Declare.
8468 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8469 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8470 (gnuv3_get_type_from_type_info): New functions.
8471 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8472
8473 2013-04-15 Tom Tromey <tromey@redhat.com>
8474
8475 * break-catch-throw.c (struct exception_names): New.
8476 (exception_functions): Change type.
8477 (re_set_exception_catchpoint): Look for SDT probes.
8478
8479 2013-04-15 Tom Tromey <tromey@redhat.com>
8480
8481 PR c++/10119:
8482 * break-catch-throw.c (exception_functions): New global.
8483 (gnu_v3_exception_catchpoint_ops): Move earlier.
8484 (struct exception_catchpoint): New.
8485 (classify_exception_breakpoint): Rewrite.
8486 (re_set_exception_catchpoint): New function.
8487 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8488 Allocate a struct exception_catchpoint.
8489 (catch_exception_command_1): Update.
8490 (initialize_throw_catchpoint_ops): Set 're_set' method.
8491
8492 2013-04-15 Tom Tromey <tromey@redhat.com>
8493
8494 * Makefile.in (SFILES): Add break-catch-throw.c
8495 (COMMON_OBS): Add break-catch-throw.o.
8496 * break-catch-throw.c: New file.
8497 * breakpoint.c: Move exception-catching code to new file.
8498 (ep_parse_optional_if_clause): No longer static.
8499 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8500
8501 2013-04-15 Tom Tromey <tromey@redhat.com>
8502
8503 PR c++/9065:
8504 * NEWS: Update.
8505 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8506 * c-exp.y (TYPEID): New token.
8507 (exp): Add new TYPEID productions.
8508 (ident_tokens): Add "typeid".
8509 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8510 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8511 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8512 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8513 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8514 case.
8515 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8516 (build_std_type_info_type, gnuv3_get_typeid_type)
8517 (gnuv3_get_typeid): New functions.
8518 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8519 new fields on ABI object.
8520 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8521 * std-operator.def (OP_TYPEID): New.
8522
8523 2013-04-15 Tom Tromey <tromey@redhat.com>
8524
8525 * elfread.c (elf_symtab_read): Install versioned symbol under
8526 unversioned name as well.
8527
8528 2013-04-15 Tom Tromey <tromey@redhat.com>
8529
8530 PR c++/11990:
8531 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8532 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8533 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8534 (gdb_demangle): New function.
8535 * cp-support.h (gdb_demangle): Declare.
8536 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8537 (dwarf2_name): Use gdb_demangle.
8538 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8539 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8540 suffixes from name.
8541 (gnuv3_print_method_ptr): Use gdb_demangle.
8542 * jv-lang.c (java_demangle): Use gdb_demangle.
8543 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8544 * language.c (unk_lang_demangle): Use gdb_demangle.
8545 * symtab.c (symbol_find_demangled_name)
8546 (demangle_for_lookup): Use gdb_demangle.
8547
8548 2013-04-15 Tom Tromey <tromey@redhat.com>
8549
8550 PR c++/12824:
8551 * NEWS: Update.
8552 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8553 New constant.
8554 (classify_exception_breakpoint): New function.
8555 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8556 (print_mention_exception_catchpoint)
8557 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8558 (catch_exception_command_1): Handle "rethrow" catchpoint.
8559 (catch_rethrow_command): New function.
8560 (_initialize_breakpoint): Add "catch rethrow" command.
8561
8562 2013-04-15 Pierre Muller <muller@sourceware.org>
8563
8564 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8565 set_gdbarch_write_pc as deprecated anymore.
8566
8567 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8568
8569 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8570 declarations.
8571
8572 2013-04-13 Yao Qi <yao@codesourcery.com>
8573
8574 * ctf.c (_initialize_ctf): Include "completer.h".
8575 Call add_target_with_completer instead of add_target.
8576
8577 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8578
8579 Fix GDB regression related to PR binutils/14813.
8580 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8581 * minidebug.c (lzma_close): Add return value comment.
8582 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8583 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8584 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8585
8586 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8587
8588 * config.in: Regenerate.
8589
8590 2013-04-12 Tom Tromey <tromey@redhat.com>
8591
8592 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8593 const.
8594 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8595 (struct die_reader_specs) <buffer>: Likewise.
8596 (die_reader_func_ftype): Make 'info_ptr' const.
8597 (struct line_header) <include_dirs, statement_program_start,
8598 statement_program_end>: Now const.
8599 (struct file_entry) <name>: Likewise.
8600 (struct partial_die_info) <sibling>: Likewise.
8601 (struct dwarf_block) <data>: Likewise.
8602 (dwarf2_read_section): Remove cast.
8603 (dwarf2_get_section_info): Make 'bufp' const.
8604 (read_index_from_section): Constify.
8605 (dw2_get_file_names_reader): Make 'info_ptr' const.
8606 (dw2_get_primary_filename_reader): Likewise.
8607 (read_comp_unit_head): Make 'info_ptr' and return type const.
8608 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8609 Likewise.
8610 (read_abbrev_offset): Constify.
8611 (dwarf2_create_include_psymtab): Make 'name' const.
8612 (create_debug_types_hash_table): Update.
8613 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8614 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8615 Constify.
8616 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8617 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8618 (read_comp_units_from_section): Constify.
8619 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8620 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8621 const.
8622 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8623 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8624 (create_dwp_hash_table, dwarf2_ranges_read)
8625 (dwarf2_record_block_ranges): Constify.
8626 (read_die_and_children, read_die_and_siblings_1)
8627 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8628 const.
8629 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8630 (abbrev_table_read_table): Constify.
8631 (load_partial_dies): Make 'info_ptr' const.
8632 (read_partial_die, read_attribute_value, read_attribute): Make
8633 'info_ptr' and return type const.
8634 (read_address, read_initial_length)
8635 (read_checked_initial_length_and_offset, read_offset)
8636 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8637 const.
8638 (read_direct_string): Make 'buf' and return type const.
8639 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8640 (read_indirect_string): Make return type const.
8641 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8642 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8643 'info_ptr' const.
8644 (read_str_index): Make return type const.
8645 (add_include_dir): Make 'include_dir' const.
8646 (add_file_name): Make 'name' const.
8647 (dwarf_decode_line_header): Constify.
8648 (psymtab_include_file_name): Make return type const.
8649 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8650 (dwarf2_start_subfile): Make 'filename' const.
8651 (dwarf2_const_value_attr): Make 'bytes' const.
8652 (read_signatured_type_reader): Make 'info_ptr' const.
8653 (decode_locdesc): Constify.
8654 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8655 const.
8656 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8657 'mac_end', and return type const.
8658 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8659 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8660 type const.
8661 (per_cu_header_read_in): Constify.
8662 * symfile.h (dwarf2_get_section_info): Update.
8663
8664 2013-04-12 Tom Tromey <tromey@redhat.com>
8665
8666 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8667
8668 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8669
8670 * NEWS: Mention "show configuration", --configuration.
8671 * top.c (print_gdb_configuration): New function, displays the
8672 details about GDB configure-time parameters.
8673 (print_gdb_version): Mention "show configuration".
8674 * cli/cli-cmds.c (show_configuration): New function.
8675 (_initialize_cli_cmds): Add the "show configuration" command.
8676 * main.c (captured_main) <print_configuration>: New static var.
8677 <long_options>: Use it.
8678 If --configuration was given, call print_gdb_configuration.
8679
8680 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8681 Pedro Alves <palves@redhat.com>
8682
8683 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8684 (generated_files): Add gcore.
8685 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8686 HAVE_NATIVE_GCORE_HOST.
8687 (gcore): New.
8688 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8689 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8690 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8691 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8692 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8693 Add HAVE_NATIVE_GCORE_HOST.
8694 * configure: Regenerate.
8695 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8696 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8697 AC_CONFIG_FILES for gcore.
8698 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8699 gdb_have_gcore.
8700 * gdb_gcore.sh: Rename to ...
8701 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8702 and GCORE_TRANSFORM_NAME substitutions.
8703
8704 Fix parsing tabs in ${gdb_target_obs}.
8705 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8706
8707 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8708
8709 * remote.c (unpush_and_perror): Add output message final dot.
8710
8711 2013-04-11 Yao Qi <yao@codesourcery.com>
8712
8713 * tracepoint.c (tfile_interp_line): Fit parameters line and
8714 utpp in one line.
8715
8716 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8717
8718 * solib.c (solib_map_sections): Remove code overwriting
8719 SO->SO_NAME with the bfd's filename.
8720
8721 2013-04-10 Pedro Alves <palves@redhat.com>
8722
8723 * cli/cli-decode.c (integer_unlimited_completer): New function.
8724 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8725 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8726 completer.
8727 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8728 (is_unlimited_literal): New function.
8729 (do_set_command): Handle literal "unlimited" arguments.
8730 * frame.c (_initialize_frame) <set backtrace limit>: Document
8731 "unlimited".
8732 * printcmd.c (_initialize_printcmd) <set print
8733 max-symbolic-offset>: Add help text.
8734 * record-full.c (_initialize_record_full) <set record full
8735 insn-number-max>: Likewise.
8736 * record.c (_initialize_record) <set record
8737 instruction-history-size, set record function-call-history-size>:
8738 Add help text.
8739 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8740 help text.
8741 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8742 Likewise.
8743 * source.c (_initialize_source) <set listsize>: Add help text.
8744 * utils.c (initialize_utils) <set height, set width>: Likewise.
8745 <set pagination>: Mention "set height unlimited".
8746 * valprint.c (_initialize_valprint) <set print elements, set print
8747 repeats>: Document "unlimited".
8748
8749 2013-04-10 Pedro Alves <palves@redhat.com>
8750
8751 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8752 instead of disconnect_tracing.
8753 * infcmd.c (detach_command, disconnect_command): Call
8754 query_if_trace_running. Adjust.
8755 * top.c: Include "tracepoint.h".
8756 (quit_target): Delete. Contents moved ...
8757 (quit_force): ... here. Wrap each stage of teardown in
8758 TRY_CATCH. Call disconnect_tracing before detaching.
8759
8760 2013-04-10 Hui Zhu <hui@codesourcery.com>
8761 Yao Qi <yao@codesourcery.com>
8762
8763 * configure.ac: Check libbabeltrace is installed.
8764 * config.in: Regenerate.
8765 * configure: Regenerate.
8766 * Makefile.in (LIBBABELTRACE): New.
8767 (CLIBS): Add LIBBABELTRACE.
8768 * ctf.c: Include "exec.h".
8769 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8770 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8771 (ctf_save_metadata_header): Define new type aliases in
8772 metadata.
8773 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8774 in metadata. Start a new faked packet for trace status.
8775 (ctf_write_status): Write trace status to CTF.
8776 (ctf_write_uploaded_tsv): Write TSV to CTF.
8777 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8778 (ctf_write_definition_end): End the faked packet.
8779
8780 (ctx, ctf_iter, trace_dirname): New.
8781 (start_pos): New variable.
8782 (ctf_destroy, ctf_open_dir, ctf_open): New.
8783 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8784 macros.
8785 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8786 (ctf_fetch_registers, ctf_xfer_partial): New.
8787 (ctf_get_trace_state_variable_value): New.
8788 (ctf_get_tpnum_from_frame_event): New.
8789 (ctf_get_traceframe_address): New.
8790 (ctf_trace_find, ctf_has_stack): New.
8791 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8792 (ctf_get_trace_status, ctf_read_status): New.
8793 (_initialize_ctf): New.
8794 * tracepoint.c (get_tracepoint_number): New
8795 (get_uploaded_tsv): Remove 'static'.
8796 (struct traceframe_info, trace_regblock_size): Move it to ...
8797 * tracepoint.h: ... here.
8798 (get_tracepoint_number): Declare it.
8799 (get_uploaded_tsv): Declare it.
8800
8801 * NEWS: Mention new configure option.
8802
8803 2013-04-10 Pedro Alves <palves@redhat.com>
8804 Hui Zhu <hui@codesourcery.com>
8805
8806 * breakpoint.c (dprintf_re_set): New.
8807 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8808 to dprintf_re_set.
8809
8810 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8811
8812 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8813 Remove solib-svr4.o from the list.
8814
8815 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8816
8817 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8818 Use gdb_assert_not_reached instead of invalid boolean expression.
8819
8820 2013-04-09 Pedro Alves <palves@redhat.com>
8821
8822 * remote.c (unpush_and_perror): New function.
8823 (readchar, remote_serial_write): Use it.
8824
8825 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8826
8827 * NEWS: Mention new btrace RSP packets.
8828
8829 2013-04-08 Tom Tromey <tromey@redhat.com>
8830
8831 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8832 long.
8833
8834 2013-04-08 Tom Tromey <tromey@redhat.com>
8835
8836 * maint.c (print_bfd_section_info): Print the section index.
8837 * symmisc.c (dump_msymbols): Print the section index.
8838
8839 2013-04-08 Tom Tromey <tromey@redhat.com>
8840
8841 PR symtab/8424:
8842 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8843 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8844 * breakpoint.c (resolve_sal_pc): Update.
8845 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8846 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8847 (minsym_lookup_iterator_cb): Use it.
8848 (default_read_var_value): Update.
8849 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8850 Update.
8851 * infcmd.c (jump_command): Update.
8852 * linespec.c (minsym_found): Update.
8853 * maint.c (maintenance_translate_address): Update.
8854 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8855 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8856 * parse.c (write_exp_msymbol): Update.
8857 * printcmd.c (address_info): Update.
8858 * psymtab.c (find_pc_sect_psymbol): Update.
8859 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8860 SYMBOL_OBJ_SECTION.
8861 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8862 Don't initialize SYMBOL_OBJ_SECTION.
8863 * spu-tdep.c (spu_catch_start): Update.
8864 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8865 * symmisc.c (dump_msymbols, print_symbol): Update.
8866 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8867 how fallback section is computed.
8868 (fixup_symbol_section): Update.
8869 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8870 Update.
8871 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8872 Initialize SYMBOL_SECTION.
8873 * symtab.h (struct general_symbol_info) <section>: Update comment.
8874 <obj_section>: Remove.
8875 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8876 (SYMBOL_OBJFILE): New macro.
8877
8878 2013-04-08 Tom Tromey <tromey@redhat.com>
8879
8880 * coffread.c (record_minimal_symbol): Update.
8881 * dbxread.c (record_minimal_symbol): Update.
8882 * elfread.c (record_minimal_symbol): Update.
8883 * machoread.c (macho_symtab_add_minsym): Update.
8884 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8885 Update.
8886 * minsyms.c (prim_record_minimal_symbol): Update.
8887 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8888 argument.
8889 (prim_record_minimal_symbol_and_info): Likewise.
8890 * minsyms.h (prim_record_minimal_symbol_full)
8891 (prim_record_minimal_symbol_and_info): Update.
8892 * symtab.c (allocate_symbol, initialize_symbol)
8893 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8894 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8895 Update.
8896
8897 2013-04-08 Tom Tromey <tromey@redhat.com>
8898
8899 PR symtab/8423:
8900 * solib-som.c (som_solib_section_offsets): Use BFD section
8901 indices. Set offsets for all sections.
8902 * somread.c (som_symtab_read): Compute BFD section for
8903 symbol. Use prim_record_minimal_symbol_and_info.
8904 (som_symfile_read): Fix comment.
8905 (struct find_section_offset_arg): New.
8906 (find_section_offset, set_section_index): New functions.
8907 (som_symfile_offsets): Use set_section_index to compute
8908 section indices.
8909
8910 2013-04-08 Tom Tromey <tromey@redhat.com>
8911
8912 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8913 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8914 gdb_bfd_section_index.
8915 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8916 New functions.
8917 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8918 Declare.
8919 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8920 Update.
8921 * objfiles.c (add_to_objfile_sections_full): New function.
8922 (add_to_objfile_sections): Use it.
8923 (build_section_table): Rewrite.
8924 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8925 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8926 (struct objfile) <sections>: Update comment.
8927 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8928 is NULL.
8929 (ALL_OBJSECTIONS): Use it.
8930 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8931 * solib-frv.c (frv_relocate_main_executable): Update.
8932 * solib-target.c (solib_target_relocate_section_addresses):
8933 Use gdb_bfd_section_index.
8934 * symfile.c (build_section_addr_info_from_section_table):
8935 Use gdb_bfd_section_index.
8936 (build_section_addr_info_from_bfd, place_section): Likewise.
8937 * symtab.c (fixup_section): Update.
8938 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8939
8940 2013-04-08 Tom Tromey <tromey@redhat.com>
8941
8942 * minsyms.h (struct bound_minimal_symbol): New.
8943 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8944 Remove objfile argument.
8945 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8946 Return bound_minimal_symbol.
8947 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8948 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8949 Return bound_minimal_symbol.
8950 (in_gnu_ifunc_stub): Update.
8951 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8952 Remove 'objfile_p' argument.
8953 (lookup_solib_trampoline_symbol_by_pc): Update.
8954 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8955 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8956 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8957 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8958 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8959 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8960 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8961 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8962 stack.c, symtab.c, tui/tui-disasm.c: Update.
8963
8964 2013-04-08 Tom Tromey <tromey@redhat.com>
8965
8966 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8967 Use symbol's obstack, not an objfile.
8968 * coffread.c (process_coff_symbol): Update.
8969 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8970 * jv-lang.c (add_class_symbol): Update.
8971 * mdebugread.c (new_symbol): Update.
8972 * minsyms.c (prim_record_minimal_symbol_full)
8973 (terminate_minimal_symbol_table): Update.
8974 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8975 * stabsread.c (define_symbol, read_enum_type): Update.
8976 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8977 Handle Ada specially.
8978 (symbol_set_language): Add 'obstack' argument.
8979 (symbol_set_names): Update.
8980 (symbol_natural_name, symbol_demangled_name): Always use
8981 ada_decode_symbol.
8982 * symtab.h (struct general_symbol_info)
8983 <language_specific::obstack>: New field.
8984 <ada_mangled>: New field.
8985 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8986 (symbol_set_language): Update.
8987
8988 2013-04-08 Tom Tromey <tromey@redhat.com>
8989
8990 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8991 Take an obstack, not an objfile.
8992 (symbol_set_names): Update.
8993 * symtab.h (symbol_set_demangled_name): Update.
8994
8995 2013-04-08 Tom Tromey <tromey@redhat.com>
8996
8997 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8998 allocate_symbol.
8999 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9000 (read_func_scope): Call allocate_template_symbol.
9001 (new_symbol_full): Call allocate_symbol.
9002 * jit.c (finalize_symtab): Call allocate_symbol.
9003 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9004 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9005 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9006 (common_block_end): Call allocate_symbol.
9007 * symtab.c (allocate_symbol, initialize_symbol)
9008 (allocate_template_symbol): New functions.
9009 * symtab.c (allocate_symbol, initialize_symbol)
9010 (allocate_template_symbol): Declare.
9011 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9012
9013 2013-04-08 Pedro Alves <palves@redhat.com>
9014 Keith Seitz <keiths@redhat.com>
9015
9016 * breakpoint.c (create_breakpoint): Rename
9017 "parse_condition_and_thread" parameter to "parse_arg". Update
9018 describing comment. If !PARSE_ARG, then error out if ARG is not
9019 the empty string after extracting the location.
9020 * breakpoint.h (create_breakpoint): Rename
9021 "parse_condition_and_thread" parameter to "parse_arg".
9022
9023 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9024
9025 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9026
9027 2013-04-07 Yao Qi <yao@codesourcery.com>
9028
9029 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9030 and 'addr2' to CORE_ADDR.
9031 * target.c (update_current_target): Update.
9032 * target.h (struct target_ops) <to_trace_find>: Change parameter
9033 type to CORE_ADDR.
9034 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9035 'addr2' to CORE_ADDR.
9036 (tfile_trace_find): Likewise.
9037 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9038 Change local variable 'addr' to type CORE_ADDR.
9039 * tracepoint.h (tfind_1): Update declaration.
9040
9041 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9042
9043 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9044 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9045 Include main.h.
9046
9047 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9048 here...
9049 * main.h (windows_get_absolute_argv0): ...to here.
9050
9051 2013-04-05 Doug Evans <dje@google.com>
9052
9053 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9054 (read_cutu_die_from_dwo): Add comments.
9055 (read_structure_type): Update comment.
9056 (read_enumeration_type, read_namespace_type): Update comment.
9057 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9058
9059 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9060
9061 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9062 * Makefile.in (gdb.z): Remove.
9063 (install-only): Remove $(man1dir) and gdb.1 installation.
9064 * gdb.1: Remove.
9065
9066 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9067
9068 Fix compatibility with Linux kernel 3.8.3.
9069 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9070 to more inner block. Remove parsing of NUMBER from outer block.
9071 Parse NUMBER only if KEYWORD has been identified.
9072
9073 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9074
9075 Fix variable name shadowing.
9076 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9077 filename to mapsfilename and update its uses.
9078
9079 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9080
9081 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9082 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9083 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9084 details of the problem.
9085
9086 2013-04-04 Pedro Alves <palves@redhat.com>
9087 Hui Zhu <hui@codesourcery.com>
9088
9089 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9090 tracepoint, reset its STEP_COUNT and call validate_actionline.
9091
9092 2013-04-03 Doug Evans <dje@google.com>
9093
9094 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9095 read_die_and_siblings.
9096 (read_die_and_siblings): New function.
9097 (read_cutu_die_from_dwo): Dump die if requested.
9098 (read_die_and_children): Call read_full_die_1 and
9099 read_die_and_siblings_1.
9100 (read_full_die): Dump die if requested.
9101
9102 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9103
9104 * dwarf2read.c (struct dwo_file): New member comp_dir.
9105 Rename member name to dwo_name. All uses updated.
9106 (hash_dwo_file): Include comp_dir in computation.
9107 (eq_dwo_file): Ditto.
9108 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9109 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9110
9111 * psymtab.c (read_psymtabs_with_fullname): Don't call
9112 psymtab_to_fullname if the basenames are different.
9113
9114 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9115
9116 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9117 New entry about "fullname" presence.
9118
9119 2013-04-03 Pedro Alves <palves@redhat.com>
9120
9121 * NEWS: Mention x86_64/Cygwin as new native configuration.
9122
9123 2013-04-02 Doug Evans <dje@google.com>
9124
9125 * dwarf2read.c (read_structure_type): Fix typo in comment.
9126
9127 2013-04-02 Pedro Alves <palves@redhat.com>
9128
9129 * NEWS: Mention "set/show debug aarch64", "set/show debug
9130 coff-pe-read" and "set/show debug mach-o".
9131
9132 2013-04-02 Pedro Alves <palves@redhat.com>
9133
9134 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9135
9136 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9137
9138 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9139 gdb_string.h is now in common/.
9140
9141 2013-04-02 Pedro Alves <palves@redhat.com>
9142
9143 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9144 under "New options".
9145
9146 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9147
9148 Revert this patch:
9149 PR gdb/15275
9150 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9151
9152 2013-04-02 Pedro Alves <palves@redhat.com>
9153
9154 PR gdb/15275
9155
9156 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9157 (remote_serial_write): New function.
9158 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9159
9160 2013-04-01 Jiong Wang <jiwang@tilera.com>
9161
9162 * NEWS: Mention TILE-Gx in "New native configurations" and
9163 "New targets" sections.
9164
9165 2013-04-01 Doug Evans <dje@google.com>
9166
9167 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9168 (process_enumeration_scope): Simplify.
9169
9170 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9171 type_unit_group ...
9172 (struct signatured_type): ... to here.
9173 (sig_type_ptr): New typedef.
9174 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9175 out of union 't'. All uses updated.
9176 (dw2_get_file_names_reader): Assert not called for a type unit.
9177 (dw2_get_file_names): Assert not called for a type unit or type
9178 unit group.
9179 (build_type_psymtabs_reader): Assert called for a type unit.
9180 (build_type_psymtab_dependencies): Assert called for a type unit group.
9181
9182 * dwarf2read.c (free_dwo_file): Add comment.
9183 (dwarf2_per_objfile_free): Unref dwp bfd.
9184
9185 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9186
9187 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9188 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9189 (read_pe_exported_syms): Remove unused 'exportix'.
9190 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9191 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9192 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9193
9194 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9195
9196 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9197 (print_it_watchpoint): Remove unused 'bl'.
9198 (say_where): Remove unused 'uiout'.
9199 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9200 (bkpt_breakpoint_hit): Remove unused 'b'.
9201 (internal_bkpt_print_it): Remove unused 'uiout'.
9202 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9203
9204 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9205
9206 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9207 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9208
9209 2013-03-29 Doug Evans <dje@google.com>
9210
9211 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9212 Delete arg is_dwp. All callers updated.
9213 (open_dwp_file): New function.
9214 (open_and_init_dwp_file): Call it.
9215 (get_dwp_file): New function.
9216 (lookup_dwo_cutu): Call it.
9217
9218 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9219 unnecessary, cleanup.
9220
9221 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9222
9223 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9224 (lookup_dwo_unit): New function.
9225 (init_cutu_and_read_dies): Move DWO handling to new functions.
9226
9227 * dwarf2read.c (struct signatured_type): Tweak comment.
9228 (struct dwo_unit): Tweak comment.
9229 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9230 (create_dwo_debug_info_hash_table): Tweak comment.
9231 (dwarf2_per_cu_offset_and_type): Tweak comment.
9232
9233 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9234 missing .debug_types section.
9235
9236 2013-03-29 Yao Qi <yao@codesourcery.com>
9237
9238 * corelow.c: Include "completer.h".
9239 (_initialize_corelow): Call add_target_with_completer with
9240 argument 'filename_completer'.
9241 * tracepoint.c: Likewise.
9242 * exec.c (_initialize_exec): Likewise.
9243 * target.c (add_target): Rename to ...
9244 (add_target_with_completer): ... this. Call set_cmd_completer
9245 if parameter completer is not NULL.
9246 (add_target): New.
9247 * target.h: Include "command.h".
9248 (add_target_with_completer): Declare it.
9249
9250 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9251
9252 * coffread.c (is_import_fixup_symbol): New function.
9253 (record_minimal_symbol): Use is_import_fixup_symbol to
9254 detect import fixup symbols, and discard them.
9255
9256 2013-03-28 Doug Evans <dje@google.com>
9257
9258 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9259 types hash table until we know we need it.
9260
9261 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9262 index numbers.
9263
9264 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9265 All callers updated.
9266 (dw2_print_stats): Print #read CUs too.
9267 (dump_die_shallow): Print signatured types better.
9268
9269 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9270 info_or_types_section to section. All uses updated.
9271 (struct dwo_unit): Ditto.
9272
9273 2013-03-28 Pedro Alves <palves@redhat.com>
9274
9275 * NEWS (New options): New section.
9276 (New options): Mention set/show remote trace-status-packet.
9277 * remote.c (PACKET_qTStatus): New enumeration value.
9278 (remote_get_trace_status): Skip sending qTStatus if the packet is
9279 disabled. Use packet_ok.
9280 (_initialize_remote): Register a configuration command for
9281 qTStatus packet.
9282
9283 2013-03-28 Doug Evans <dje@google.com>
9284
9285 * symfile.c (find_separate_debug_file): Add comment.
9286 (terminate_after_last_dir_separator): Tweak comment.
9287
9288 * dwarf2read.c (create_partial_symtab): Add forward decl.
9289 (create_partial_symtab): Move to be closer to other psymtab functions.
9290 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9291
9292 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9293 (compute_symtab_includes): Remove unnecessary forward declaration.
9294 (die_needs_namespace): Add comment marking group of functions for
9295 dwarf2 name computation.
9296
9297 * typeprint.c (_initialize_typeprint): Improve type help text.
9298
9299 * python/python.c (finish_python_initialization): Provide suggestion
9300 for how to tell gdb to find its python files.
9301
9302 2013-03-28 Pedro Alves <palves@redhat.com>
9303
9304 PR gdb/15294
9305
9306 * source.c (_initialize_source): Change back "set listsize" to an
9307 integer command.
9308
9309 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9310
9311 PR gdb/15275
9312 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9313
9314 2013-03-27 Pedro Alves <palves@redhat.com>
9315
9316 * top.c (history_size): Rename to ...
9317 (history_size_setshow_var): ... this. Add comment.
9318 (show_commands): Use readline's 'history_length' instead of
9319 computing the history length by calling history_get in a loop.
9320 (set_history_size_command): Error out for sizes over INT_MAX.
9321 Restore previous history size on invalid size.
9322 (init_history): If HISTSIZE is negative, leave the history size as
9323 zero. Add comments.
9324 (init_main): Adjust.
9325
9326 2013-03-27 Pedro Alves <palves@redhat.com>
9327
9328 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9329 coff_pe_read" command to "set debug coff-pe-read".
9330
9331 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9332
9333 * record.c (command_size_to_target_size): Fix size comparison.
9334 Change parameter type from pointer to integer to integer.
9335 Update all users.
9336
9337 2013-03-27 Pierre Muller <muller@sourceware.org>
9338
9339 * windows-nat.c (handle_output_debug_string): Avoid typecast
9340 from integer of different size warning.
9341
9342 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9343
9344 * windows-nat.c (handle_output_debug_string): Add empty line
9345 after local block variable definition.
9346
9347 2013-03-26 Pedro Alves <palves@redhat.com>
9348
9349 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9350 (net_open): Make 'polls' local unsigned.
9351
9352 2013-03-26 Pedro Alves <palves@redhat.com>
9353
9354 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9355 a zuinteger command instead of uinteger.
9356
9357 2013-03-26 Pedro Alves <palves@redhat.com>
9358
9359 * record-full.c (record_full_insn_num): Make it unsigned.
9360 (record_full_check_insn_num, record_full_message)
9361 (record_full_registers_change, record_full_xfer_partial): Remove
9362 record_full_insn_max_num check (it's always != 0).
9363 (record_full_info, record_full_restore): Use %u as format string.
9364 (): Use %u as format string.
9365 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9366 check (it's always != 0).
9367
9368 2013-03-26 Pedro Alves <palves@redhat.com>
9369
9370 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9371 and "set dcache size" commands zuinteger instead of uinteger.
9372
9373 2013-03-26 Pedro Alves <palves@redhat.com>
9374
9375 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9376 command zuinteger instead of uinteger.
9377
9378 2013-03-26 Pedro Alves <palves@redhat.com>
9379
9380 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9381 zuinteger instead of uinteger.
9382
9383 2013-03-26 Pedro Alves <palves@redhat.com>
9384
9385 * record.c (record_insn_history_size_setshow_var)
9386 (record_call_history_size_setshow_var): New globals.
9387 (command_size_to_target_size): New function.
9388 (cmd_record_insn_history, cmd_record_call_history): Use
9389 command_size_to_target_size instead of cast.
9390 (validate_history_size, set_record_insn_history_size)
9391 (set_record_call_history_size): New functions.
9392 (_initialize_record): Install set_record_insn_history_size and
9393 set_record_call_history_size as "set" hooks of "set record
9394 instruction-history-size" and "set record
9395 function-call-history-size".
9396
9397 2013-03-26 Pedro Alves <palves@redhat.com>
9398
9399 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9400 use with history_max_entries use. Remove FIXME note.
9401
9402 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9403
9404 * record-btrace.c (record_btrace_close): Call
9405 record_btrace_auto_disable.
9406
9407 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9408
9409 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9410
9411 2013-03-25 Doug Evans <dje@google.com>
9412
9413 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9414
9415 2013-03-25 Tom Tromey <tromey@redhat.com>
9416
9417 PR symtab/11462:
9418 * c-exp.y (exp): Add new productions for destructors after '.' and
9419 '->'.
9420 (write_destructor_name): New function.
9421
9422 2013-03-25 Tom Tromey <tromey@redhat.com>
9423
9424 PR c++/9197:
9425 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9426 value_struct_elt, not lookup_struct_elt_type.
9427 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9428 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9429 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9430
9431 2013-03-25 Yao Qi <yao@codesourcery.com>
9432
9433 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9434 instead of '_mkdir'.
9435
9436 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9437
9438 * windows-nat.c (windows_get_absolute_argv0): New function.
9439 * windows-nat.h: Add its prototype.
9440
9441 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9442 Use IS_DIR_SEPARATOR instead of looking for a character inside
9443 SLASH_STRING. Include filenames.h.
9444 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9445 relocate_gdb_directory works when passed gdb_program_name.
9446 Include windows-nat.h.
9447
9448 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9449
9450 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9451 * remote.c (trace_error): Remove the special handling of '2'.
9452 (readchar) <SERIAL_EOF>
9453 (readchar) <SERIAL_ERROR>
9454 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9455 (remote_get_trace_status): Call throw_exception if EX is
9456 TARGET_CLOSE_ERROR.
9457 * utils.c (perror_with_name): Rename to ...
9458 (throw_perror_with_name): ... here. New parameter errcode, describe it
9459 in the function comment.
9460 (perror_with_name): New function wrapper.
9461 * utils.h (enum errors): New stub declaration.
9462 (throw_perror_with_name): New declaration.
9463
9464 2013-03-22 Pedro Alves <palves@redhat.com>
9465 Yao Qi <yao@codesourcery.com>
9466 Mark Kettenis <kettenis@gnu.org>
9467
9468 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9469 Don't let the user set the value to UINT_MAX directly.
9470 <var_integer>: Don't let the user set the value to INT_MAX
9471 directly.
9472
9473 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9474
9475 * remote.c (remote_unpush_target): New function.
9476 (remote_open_1): Remove two pop_target calls, update one comment, add
9477 comment to target_preopen call. Replace pop_target call by
9478 remote_unpush_target call.
9479 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9480 pop_target calls by remote_unpush_target calls.
9481
9482 2013-03-22 Pedro Alves <palves@redhat.com>
9483
9484 * linux-nat.c (linux_child_follow_fork): Don't call
9485 linux_enable_event_reporting.
9486 (linux_handle_extended_wait): Don't call
9487 linux_enable_event_reporting.
9488
9489 2013-03-22 Pedro Alves <palves@redhat.com>
9490
9491 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9492 use it to rewrite the trampoline buffers with type gdb_byte[], and
9493 undefine the macro. Remove char* cast.
9494
9495 2013-03-21 Doug Evans <dje@google.com>
9496
9497 New commands "mt set per-command {space,time,symtab} {on,off}".
9498 * NEWS: Add entry.
9499 * event-top.c: #include "maint.h".
9500 * main.c: #include "maint.h".
9501 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9502 timeval-utils.h, maint.h, cli/cli-setshow.h.
9503 (per_command_time, per_command_space): New static globals.
9504 (per_command_symtab): New static global.
9505 (per_command_setlist, per_command_showlist): New static globals.
9506 (struct cmd_stats): Move here from utils.c.
9507 (set_per_command_time): Renamed from set_display_time in utils.c
9508 and moved here. All callers updated.
9509 (set_per_command_space): Renamed from set_display_space in utils.c
9510 and moved here. All callers updated.
9511 (count_symtabs_and_blocks): New function.
9512 (report_command_stats): Moved here from utils.c. Add support for
9513 printing symtab stats. Only print data if enabled before command
9514 executed.
9515 (make_command_stats_cleanup): Ditto.
9516 (sert_per_command_cmd, show_per_command_cmd): New functions.
9517 (_initialize_maint_cmds): Add new commands
9518 mt set per-command {space,time,symtab} {on,off}.
9519 * maint.h: New file.
9520 * top.c: #include "maint.h".
9521 * utils.c (reset_prompt_for_continue_wait_time): New function.
9522 (get_prompt_for_continue_wait_time): New function.
9523 * utils.h (reset_prompt_for_continue_wait_time): Declare
9524 (get_prompt_for_continue_wait_time): Declare.
9525 (make_command_stats_cleanup): Moved to maint.h.
9526 (set_display_time, set_display_space): Moved to maint.h and renamed
9527 to set_per_command_time, set_per_command_space.
9528 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9529 parse_binary_operation and made non-static. Don't call error,
9530 just return an error marker. All callers updated.
9531 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9532
9533 2013-03-21 Tom Tromey <tromey@redhat.com>
9534
9535 * symfile.c (alloc_section_addr_info): Update header. Don't set
9536 'num_sections' field.
9537 (build_section_addr_info_from_section_table): Set 'num_sections'.
9538 (build_section_addr_info_from_bfd): Likewise.
9539 (build_section_addr_info_from_objfile): Remove dead loop
9540 condition.
9541 (free_section_addr_info): Unconditionally call xfree.
9542 (relative_addr_info_to_section_offsets, addrs_section_sort)
9543 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9544 condition.
9545 (syms_from_objfile_1): Remove dead 'if' condition. Check
9546 'num_sections'.
9547 (add_symbol_file_command): Set 'num_sections'.
9548 * symfile-mem.c (symbol_file_add_from_memory): Set
9549 'num_sections'.
9550 * somread.c (som_symfile_offsets): Remove dead loop condition.
9551 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9552 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9553
9554 2013-03-21 Tom Tromey <tromey@redhat.com>
9555
9556 * tracepoint.h (decode_agent_options): Add 'trace_string'
9557 argument.
9558 * tracepoint.c (decode_agent_options): Add 'trace_string'
9559 argument.
9560 (validate_actionline): Update.
9561 (collect_symbol): Add 'trace_string' argument.
9562 (struct add_local_symbols_data) <trace_string>: New field.
9563 (do_collect_symbol): Update.
9564 (add_local_symbols): Add 'trace_string' argument.
9565 (encode_actions_1): Update.
9566 (trace_dump_actions): Update.
9567 * dwarf2loc.c (access_memory): Update.
9568 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9569 * ax-general.c (new_agent_expr): Update.
9570 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9571 (gen_trace_for_return_address): Add argument.
9572 (trace_kludge, trace_string_kludge): Remove.
9573 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9574 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9575 (gen_trace_for_var): Add 'trace_string' argument.
9576 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9577 (gen_printf, agent_eval_command_one): Update.
9578
9579 2013-03-21 Tom Tromey <tromey@redhat.com>
9580
9581 PR exp/15109:
9582 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9583 Handle FILENAME token.
9584
9585 2013-03-21 Tom Tromey <tromey@redhat.com>
9586
9587 * c-exp.y (YYPRINT): Define.
9588 (c_print_token): New function.
9589
9590 2013-03-21 Tom Tromey <tromey@redhat.com>
9591
9592 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9593
9594 2013-03-21 Yao Qi <yao@codesourcery.com>
9595
9596 * ctf.c: Include "gdb_stat.h".
9597 [USE_WIN32API]: New macro 'mkdir'.
9598 (ctf_start): Use permission bits macros if they are defined.
9599
9600 2013-03-20 Keith Seitz <keiths@redhat.com>
9601
9602 * breakpoint.h (struct breakpoint): Add comment to
9603 extra_string indicating that this member is mallod'd.
9604 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9605
9606 2013-03-20 Pedro Alves <palves@redhat.com>
9607
9608 PR gdb/15289
9609
9610 * cli/cli-setshow.c (do_set_command)
9611 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9612 the result of parsing the command argument. Throw error if the
9613 value is greater than UINT_MAX. Print the invalid value with
9614 plongest.
9615 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9616 result of parsing the command argument. Throw error if the value
9617 is greater than INT_MAX, not greater or equal. Also throw error
9618 if the value is less than INT_MIN. Print the invalid value with
9619 plongest.
9620 <var_zuinteger_unlimited>: Throw error if the value is greater
9621 than INT_MAX, not greater or equal.
9622 (do_show_command) <var_integer, var_zinteger,
9623 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9624
9625 2013-03-20 Tom Tromey <tromey@redhat.com>
9626
9627 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9628 if possible.
9629 * dwarf2read.c (read_func_scope): Remove old FIXME.
9630 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9631 not LOC_COMPUTED.
9632 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9633 Unconditionally call via computed ops, if possible.
9634 * printcmd.c (address_info): Unconditionally call via computed ops,
9635 if possible.
9636 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9637 if possible.
9638 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9639 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9640 if possible.
9641
9642 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9643 Tom Tromey <tromey@redhat.com>
9644
9645 PR symtab/8421:
9646 * coffread.c (coff_register_index): New global.
9647 (process_coff_symbol, coff_read_enum_type): Set
9648 SYMBOL_ACLASS_INDEX.
9649 (_initialize_coffread): Initialize new global.
9650 * dwarf2loc.c (locexpr_find_frame_base_location)
9651 (dwarf2_block_frame_base_locexpr_funcs)
9652 (loclist_find_frame_base_location)
9653 (dwarf2_block_frame_base_loclist_funcs): New.
9654 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9655 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9656 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9657 (dwarf2_block_frame_base_loclist_funcs): New.
9658 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9659 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9660 globals.
9661 (read_func_scope): Update.
9662 (fixup_go_packaging, mark_common_block_symbol_computed)
9663 (var_decode_location, new_symbol_full, dwarf2_const_value):
9664 Set SYMBOL_ACLASS_INDEX.
9665 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9666 (_initialize_dwarf2_read): Initialize new globals.
9667 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9668 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9669 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9670 globals.
9671 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9672 (_initialize_mdebugread): Initialize new globals.
9673 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9674 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9675 (stab_register_index, stab_regparm_index): New globals.
9676 (define_symbol, read_enum_type, common_block_end): Set
9677 SYMBOL_ACLASS_INDEX.
9678 (_initialize_stabsread): Initialize new globals.
9679 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9680 globals.
9681 (MAX_SYMBOL_IMPLS): New define.
9682 (register_symbol_computed_impl, register_symbol_block_impl)
9683 (register_symbol_register_impl)
9684 (initialize_ordinary_address_classes): New functions.
9685 (_initialize_symtab): Call initialize_ordinary_address_classes.
9686 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9687 (struct symbol_impl): New.
9688 (SYMBOL_ACLASS_BITS): New define.
9689 (struct symbol) <aclass, ops>: Remove fields.
9690 <aclass_index>: New field.
9691 (symbol_impls): Declare.
9692 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9693 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9694 (register_symbol_computed_impl, register_symbol_block_impl)
9695 (register_symbol_register_impl): Declare.
9696 (struct symbol_computed_ops): Add location_has_loclist.
9697 (struct symbol_block_ops): New.
9698 (SYMBOL_BLOCK_OPS): New.
9699 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9700
9701 2013-03-20 Tom Tromey <tromey@redhat.com>
9702
9703 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9704 (print_partial_symbols, recursively_search_psymtabs): Use
9705 PSYMBOL_CLASS.
9706
9707 2013-03-20 Pierre Muller <muller@sourceware.org>
9708
9709 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9710 addtion, subtraction, multiplication and division binary operator.
9711
9712 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9713
9714 Code cleanup.
9715 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9716 * bsd-kvm.c (bsd_kvm_close): Likewise.
9717 * bsd-uthread.c (bsd_uthread_close): Likewise.
9718 * corelow.c (core_close): Likewise.
9719 (core_close_cleanup): Remove parameter quitting from a caller.
9720 * event-top.c (async_disconnect): Likewise.
9721 * exec.c (exec_close_1): Remove parameter quitting.
9722 * go32-nat.c (go32_close): Likewise.
9723 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9724 parameter quitting from a caller.
9725 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9726 variable.
9727 (mips_linux_close): Remove parameter quitting. Remove parameter
9728 quitting from a caller.
9729 * monitor.c (monitor_close): Remove parameter quitting.
9730 * monitor.h (monitor_close): Likewise.
9731 * record-btrace.c (record_btrace_close): Likewise.
9732 * record-full.c (record_full_close): Likewise.
9733 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9734 it also from fprintf_unfiltered.
9735 * remote-mips.c (mips_close): Remove parameter quitting.
9736 (mips_detach): Remove parameter quitting from a caller.
9737 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9738 (gdbsim_close): Remove duplicate function comment. Remove parameter
9739 quitting and remove it also from printf_filtered.
9740 * remote.c (remote_close): Remove parameter quitting.
9741 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9742 * target.c (update_current_target): Remove parameter int from to_close
9743 de_fault.
9744 (push_target, unpush_target, pop_target): Remove parameter quitting from
9745 a caller.
9746 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9747 Remove parameter quitting from a caller.
9748 (target_preopen): Remove parameter quitting from a caller.
9749 (target_close): Remove parameter quitting. Remove parameter quitting
9750 from a caller two times. Remove parameter quitting also from
9751 fprintf_unfiltered.
9752 * target.h (struct target_ops): Remove parameter quitting and as int
9753 from fields to_xclose and to_close.
9754 (extern struct target_ops current_target):
9755 (target_close, pop_all_targets): Remove parameter quitting. Update the
9756 comment.
9757 (pop_all_targets_above): Remove parameter quitting.
9758 * top.c (quit_target): Remove parameter quitting from a caller.
9759 * tracepoint.c (tfile_close): Remove parameter quitting.
9760 * windows-nat.c (windows_close): Remove parameter quitting.
9761
9762 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9763
9764 * windows-nat.c (handle_output_debug_string): Replace call
9765 to string_to_core_addr with call to strtoull.
9766
9767 2013-03-20 Yao Qi <yao@codesourcery.com>
9768
9769 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9770 and write it to CTF metadata.
9771
9772 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9773
9774 * windows-nat.c (handle_output_debug_string): Change type of n to
9775 SIZE_T to avoid crash on 64 bit systems.
9776
9777 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9778
9779 * python/python-internal.h (HAVE_SNPRINTF)
9780 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9781 about redefinition of snprintf by pyerrors.h.
9782
9783 2013-03-15 Steve Ellcey <sellcey@mips.com>
9784
9785 * remote-sim.c (sim_command_completer): Make char arguments const.
9786
9787 2013-03-15 Tom Tromey <tromey@redhat.com>
9788
9789 PR c++/15116:
9790 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9791
9792 2013-03-14 Tom Tromey <tromey@redhat.com>
9793
9794 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9795 New fields.
9796 (get_file_crc): Move from symfile.c.
9797 (gdb_bfd_crc): New function.
9798 * gdb_bfd.h (gdb_bfd_crc): Declare.
9799 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9800 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9801 (separate_debug_file_exists): Use gdb_bfd_crc.
9802
9803 2013-03-14 Tom Tromey <tromey@redhat.com>
9804
9805 * symfile.c (get_debug_link_info): Remove.
9806 (find_separate_debug_file_by_debuglink): Use
9807 bfd_get_debug_link_info.
9808
9809 2013-03-14 Tom Tromey <tromey@redhat.com>
9810
9811 * symtab.c (error_in_psymtab_expansion): New function.
9812 (lookup_symbol_aux_quick)
9813 (basic_lookup_transparent_type_quick): Remove "last resort"
9814 code. Use error_in_psymtab_expansion.
9815
9816 2013-03-14 Doug Evans <dje@google.com>
9817 Jan Kratochvil <jan.kratochvil@redhat.com>
9818
9819 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9820 any successful compare_filenames_for_search or FILENAME_CMP.
9821 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9822 * symtab.c (iterate_over_some_symtabs): Likewise.
9823
9824 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9825
9826 * source.c (print_source_lines_base): Make a local copy of
9827 symtab_to_fullname.
9828
9829 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9830 Jan Kratochvil <jan.kratochvil@redhat.com>
9831
9832 * source.c (print_source_lines_base): Suppress "file" for TUI.
9833
9834 2013-03-14 Keith Seitz <keiths@redhat.com>
9835 Alan Matsuoka <alanm@redhat.com>
9836
9837 PR c++/15203
9838 PR c++/15210
9839 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9840 TYPE_CODE_METHOD.
9841 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9842 symbols.
9843
9844 2013-03-14 Yao Qi <yao@codesourcery.com>
9845
9846 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9847 status to tfile if trace is stopped by command 'tstop'.
9848
9849 2013-03-14 Yao Qi <yao@codesourcery.com>
9850
9851 * tracepoint.c (tfile_write_status): Write trace notes and user
9852 name into tfile if they are not NULL.
9853
9854 2013-03-14 Hui Zhu <hui@codesourcery.com>
9855 Yao Qi <yao@codesourcery.com>
9856
9857 * Makefile.in (REMOTE_OBS): Add ctf.o.
9858 (SFILES): Add ctf.c.
9859 (HFILES_NO_SRCDIR): Add ctf.h.
9860 * ctf.c, ctf.h: New files.
9861 * tracepoint.c: Include 'ctf.h'.
9862 (collect_pseudocommand): Remove static.
9863 (trace_save_command): Parse option "-ctf".
9864 Produce different trace file writers per option.
9865 Adjust output message.
9866 (trace_save_tfile, trace_save_ctf): New.
9867 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9868 * mi/mi-main.c: Include 'ctf.h'.
9869 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9870 trace_save_tfile or trace_save_ctf.
9871 * NEWS: Mention these changes.
9872
9873 2013-03-14 Yao Qi <yao@codesourcery.com>
9874
9875 * tracepoint.c (trace_file_writer_xfree): New.
9876 (struct tfile_writer_data): New.
9877 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9878 (tfile_write_header, tfile_write_regblock_type): New.
9879 (tfile_write_status, tfile_write_uploaded_tsv): New.
9880 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9881 (tfile_write_raw_data, (tfile_end): New.
9882 (tfile_write_ops): New global variable.
9883 (TRACE_WRITE_R_BLOCK): New macro.
9884 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9885 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9886 (TRACE_WRITE_V_BLOCK): New macro.
9887 (trace_save): Add extra one parameter WRITER. Make it static.
9888 Use WRITER to writer trace.
9889 (tfile_trace_file_writer_new): New.
9890 (trace_save_command): Caller update.
9891 (trace_save_tfile): Write trace data in TFILE format.
9892 * tracepoint.h (struct trace_frame_write_ops): New.
9893 (struct trace_file_write_ops): New.
9894 (struct trace_file_writer): New.
9895 (trace_save): Remove its declaration.
9896 (trace_save_tfile): Declare it.
9897 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9898 instead of trace_save.
9899
9900 2013-03-13 Pedro Alves <palves@redhat.com>
9901
9902 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9903
9904 2013-03-13 Pedro Alves <palves@redhat.com>
9905
9906 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9907 commented out code.
9908 * demangle.c (current_demangling_style_string): Make it const.
9909 (set_demangling_command): Assert the demangling style is known.
9910 Remove all handling of unknown styles. Set
9911 'current_demangling_style_string' to an element of the
9912 demangling_style_names array.
9913 (set_demangling_style): Delete.
9914 (_initialize_demangler): Set current_demangling_style_string to the
9915 element of the demangling_style_names array that corresponds to
9916 the default demangling style. Remove FIXME note. Don't call
9917 set_demangling_style.
9918 * gdb-demangle.h (set_demangling_style): Remove declaration.
9919
9920 2013-03-13 Pedro Alves <palves@redhat.com>
9921
9922 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9923 fields const.
9924 (ada_make_symbol_completion_list): Make "text0" parameter const.
9925 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9926 * breakpoint.c (condition_completer): Make "text" and "word"
9927 parameters const. Adjust.
9928 (check_tracepoint_command): Adjust to validate_actionline
9929 prototype change.
9930 (catch_syscall_completer): Make "text" and "word" parameters
9931 const.
9932 * cli/cli-cmds.c (show_user): Make "comname" local const.
9933 (valid_command_p): Make "command" parameter const.
9934 (alias_command): Make "alias_prefix" and "command_prefix" locals
9935 const.
9936 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9937 (add_alias_cmd): Make "name" and "oldname" parameters const.
9938 Adjust. No longer make copy of OLDNAME.
9939 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9940 (add_setshow_cmd_full, add_setshow_enum_cmd)
9941 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9942 (add_setshow_filename_cmd, add_setshow_string_cmd)
9943 (add_setshow_string_noescape_cmd)
9944 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9945 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9946 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9947 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9948 Make "name" parameter const.
9949 (help_cmd): Rename "command" parameter to "arg". New const local
9950 "command".
9951 (find_cmd): Make "command" parameter const.
9952 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9953 deprecated_cmd_warning prototype change.
9954 (undef_cmd_error): Make "cmdtype" parameter const.
9955 (lookup_cmd): Make "line" parameter const.
9956 (deprecated_cmd_warning): Change type of "text" parameter to
9957 pointer to const char, from pointer to pointer to char. Adjust.
9958 (lookup_cmd_composition): Make "text" parameter const.
9959 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9960 parameters const.
9961 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9962 const.
9963 * cli/cli-script.c (validate_comname): Make "tem" local const.
9964 (define_command): New const local "tem_c". Use it in calls to
9965 lookup_cmd.
9966 (document_command): Make "tem" and "comfull" locals const.
9967 (show_user_1): Make "prefix" and "name" parameters const.
9968 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9969 const.
9970 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9971 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9972 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9973 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9974 (complete_on_enum, add_setshow_enum_cmd)
9975 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9976 (add_setshow_filename_cmd, add_setshow_string_cmd)
9977 (add_setshow_string_noescape_cmd)
9978 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9979 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9980 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9981 Change prototypes, constifying strings.
9982 * completer.c (noop_completer, filename_completer): Make "text"
9983 and "prefix" parameters const.
9984 (location_completer, expression_completer)
9985 (complete_line_internal): Make "text" and "prefix" parameters
9986 const and adjust.
9987 (command_completer, signal_completer): Make "text" and "prefix"
9988 parameters const.
9989 * completer.h (noop_completer, filename_completer)
9990 (expression_completer, location_completer, command_completer)
9991 (signal_completer): Change prototypes.
9992 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9993 parameters const.
9994 * cp-abi.c (cp_abi_completer): Likewise.
9995 * expression.h (parse_expression_for_completion): Change
9996 prototype.
9997 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9998 parameters const.
9999 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10000 * infrun.c (handle_completer): Make "text" and "word" parameters
10001 const.
10002 * interps.c (interpreter_completer): Make "text" and "word"
10003 parameters const.
10004 * language.h (struct language_defn)
10005 <la_make_symbol_completion_list>: Make "text" and "word"
10006 parameters const.
10007 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10008 (parse_exp_in_context): Rename to ...
10009 (parse_exp_in_context_1): ... this.
10010 (parse_exp_in_context): Reimplement, with const hack from
10011 parse_exp_1.
10012 (parse_expression_for_completion): Make "string" parameter const.
10013 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10014 to pointer to const char. Adjust.
10015 (print_command_1): Make "exp" parameter const.
10016 (output_command): Rename to ...
10017 (output_command_const): ... this. Make "exp" parameter const.
10018 (output_command): Reimplement.
10019 (x_command): Adjust.
10020 (display_command): Rename "exp" parameter to "arg". New "exp"
10021 local, const version of "arg".
10022 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10023 "cmd_name" local const.
10024 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10025 call.
10026 (cmdpy_completer): Make "text" and "word" parameters const.
10027 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10028 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10029 const.
10030 * remote.c (_initialize_remote): Make "cmd_name" local const.
10031 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10032 parameters const. Adjust.
10033 (completion_list_add_fields): Make "sym_text", "text" and "word"
10034 parameters const.
10035 (struct add_name_data) <sym_text, text, word>: Make fields const.
10036 (default_make_symbol_completion_list_break_on): Make "text" and
10037 "word" parameters const. Adjust locals.
10038 (default_make_symbol_completion_list)
10039 (make_symbol_completion_list, make_symbol_completion_type)
10040 (make_symbol_completion_list_fn): Make "text" and "word"
10041 parameters const.
10042 (make_file_symbol_completion_list): Make "text", "word" and
10043 "srcfile" parameters const. Adjust locals.
10044 (add_filename_to_list): Make "text" and "word" parameters const.
10045 (struct add_partial_filename_data) <text, word>: Make fields
10046 const.
10047 (make_source_files_completion_list): Make "text" and "word"
10048 parameters const.
10049 * symtab.h (default_make_symbol_completion_list_break_on)
10050 (default_make_symbol_completion_list, make_symbol_completion_list)
10051 (make_symbol_completion_type enum type_code)
10052 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10053 (make_source_files_completion_list): Change prototype.
10054 * top.c (execute_command): Adjust to pass pointer to pointer to
10055 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10056 change.
10057 (set_verbose): Make "cmdname" local const.
10058 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10059 and adjust.
10060 (validate_actionline): Make "line" parameter a pointer to const
10061 char, and adjust.
10062 (encode_actions_1): Make "action_exp" local const, and adjust.
10063 (encode_actions): Adjust.
10064 (replace_comma): Delete.
10065 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10066 const, and adjust. Don't frob the action string while splitting
10067 it at commas. Instead, make a copy of each split substring in
10068 turn.
10069 (trace_dump_command): Adjust to validate_actionline prototype
10070 change.
10071 * tracepoint.h (decode_agent_options, decode_agent_options)
10072 (encode_actions, validate_actionline): Change prototypes.
10073 * valprint.h (output_command): Delete declaration.
10074 (output_command_const): Declare.
10075 * value.c (function_destroyer): Cast const away in xfree call.
10076
10077 2013-03-13 Pedro Alves <palves@redhat.com>
10078
10079 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10080 rather than casting 'const char * const *' to 'const char **'.
10081 * ada-lex.l (processInt): Make "trailer" local const. Remove
10082 'const char **' cast.
10083 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10084 locals, and use those as strtol output pointer, instead than doing
10085 invalid casts to from 'const char **' to 'char **'.
10086 (_initialize_demangle): Remove cast.
10087 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10088 locals, and use those as strtol output pointer, instead than doing
10089 invalid casts to from 'const char **' to 'char **'.
10090 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10091 casts.
10092 * stap-probe.c (stap_parse_register_operand)
10093 (stap_parse_single_operand): Likewise.
10094
10095 2013-03-13 Yao Qi <yao@codesourcery.com>
10096
10097 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10098 the last matched 'V' blcok in trace frame.
10099
10100 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10101
10102 * NEWS: Create a new section for the next release branch.
10103 Rename the section of the current branch, now that it has
10104 been cut.
10105
10106 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10107
10108 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10109 * version.in: Bump version to 7.6.50.20130312-cvs.
10110
10111 2013-03-12 Keith Seitz <keiths@redhat.com>
10112
10113 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10114 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10115 Remove temporary copy of input string.
10116 (mi_execute_command_wrapper): Make "cmd" const.
10117 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10118 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10119 Use const strings.
10120 (mi_parse): Make "cmd" const.
10121 Use const strings.
10122 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10123
10124 2013-03-12 Keith Seitz <keiths@redhat.com>
10125
10126 * ada-lang.c (ada_read_renaming_var_value): Pass const
10127 pointer to expression string to parse_exp_1.
10128 (create_excep_cond_exprs): Likewise.
10129 * ax-gdb.c (agent_eval_command_one): Likewise.
10130 (maint_agent_printf_command): Likewise.
10131 Constify much of the string handling/parsing.
10132 * breakpoint.c (set_breakpoint_condition): Pass const
10133 pointer to expression string to parse_exp_1.
10134 (update_watchpoint): Likewise.
10135 (parse_cmd_to_aexpr): Constify string handling.
10136 Pass const pointer to parse_exp_1.
10137 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10138 (find_condition_and_thread): Likewise.
10139 Make TOK const.
10140 (watch_command_1): Make "arg" const.
10141 Constify string handling.
10142 Copy the expression string instead of changing the input
10143 string.
10144 (update_breakpoint_location): Pass const pointer to
10145 parse_exp_1.
10146 * eval.c (parse_and_eval_address): Make "exp" const.
10147 (parse_to_comma_and_eval): Make "expp" const.
10148 (parse_and_eval): Make "exp" const.
10149 * expression.h (parse_expression): Make argument const.
10150 (parse_exp_1): Make first argument const.
10151 * findcmd.c (parse_find_args): Treat "args" as const.
10152 * linespec.c (parse_linespec): Pass const pointer to
10153 linespec_expression_to_pc.
10154 (linespec_expression_to_pc): Make "exp_ptr" const.
10155 * parse.c (parse_exp_1): Make "stringptr" const.
10156 Make a copy of the expression to pass to parse_exp_in_context until
10157 this whole interface can be constified.
10158 (parse_expression): Make "string" const.
10159 * printcmd.c (ui_printf): Treat "arg" as const.
10160 Handle const strings.
10161 * tracepoint.c (validate_actionline): Pass const pointer to
10162 all calls to parse_exp_1.
10163 (encode_actions_1): Likewise.
10164 * value.h (parse_to_comma_and_eval): Make argument const.
10165 (parse_and_eval_address): Likewise.
10166 (parse_and_eval): Likewise.
10167 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10168 (varobj_set_value): Likewise.
10169 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10170 constify string handling.
10171 Pass const pointers to parse_and_eval_address and
10172 parse_to_comman_and_eval.
10173 * cli/cli-utils.c (skip_to_space): Rename to ...
10174 (skip_to_space_const): ... this. Handle const strings.
10175 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10176 skip_to_space_const.
10177 (skip_to_space_const): Declare.
10178 * common/format.c (parse_format_string): Make "arg" const.
10179 Handle const strings.
10180 * common/format.h (parse_format_string): Make "arg" const.
10181 * gdbserver/ax.c (ax_printf): Make "format" const.
10182 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10183 of the expression string.
10184
10185 2013-03-12 Hui Zhu <hui@codesourcery.com>
10186
10187 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10188
10189 2013-03-12 Yao Qi <yao@codesourcery.com>
10190 Hui Zhu <hui@codesourcery.com>
10191
10192 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10193 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10194 DW_OP_deref_size.
10195
10196 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10197
10198 * ada-lex.l (rules): Only recognize 'thread' as a
10199 delimiter when followed by numerals, as for c-exp.y.
10200 Use new rewind_to_char function to rewind the input for
10201 expression-delimiting tokens.
10202 (rewind_to_char): New function.
10203
10204 2013-03-11 Pedro Alves <palves@redhat.com>
10205 Jan Kratochvil <jan.kratochvil@redhat.com>
10206
10207 * configure: Regenerate.
10208 * configure.ac (check dynamic export flag): Link python test with
10209 $PYTHON_LIBS.
10210
10211 2013-03-11 Doug Evans <dje@google.com>
10212 Keith Seitz <keiths@redhat.com>
10213
10214 * linespec.c (find_linespec_symbols): Call find_function_symbols
10215 first, and then call lookup_prefix_sym/find_method.
10216
10217 2013-03-11 Pedro Alves <palves@redhat.com>
10218
10219 * charset.c (convert_between_encodings): Don't cast between
10220 different pointer to pointer types. Instead, make the 'inp' local
10221 be of the type iconv expects.
10222 (wchar_iterate): Don't cast between different pointer to pointer
10223 types. Instead, use new pointer local of the type iconv expects.
10224 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10225 Add new local of type char pointer, and use it to get a
10226 char/string view of the byte buffer, instead of casting between
10227 pointer to pointer types.
10228
10229 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10230
10231 * remote.c (remote_set_trace_buffer_size): Move != operator
10232 to the start of next line to fix an ARI warning.
10233
10234 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10235
10236 * NEWS: Add record changes.
10237
10238 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10239
10240 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10241 the instruction history disassembly.
10242 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10243 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10244
10245 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10246
10247 * Makefile.in (SFILES): Add record-btrace.c
10248 (COMMON_OBS): Add record-btrace.o
10249 * record-btrace.c: New.
10250 * objfiles.c: Include btrace.h.
10251 (free_objfile): call btrace_free_objfile.
10252
10253 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10254
10255 * target.c (target_call_history, target_call_history_from,
10256 target_call_history_range): New.
10257 * target.h (target_ops) <to_call_history, to_call_history_from,
10258 to_call_history_range>: New fields.
10259 (target_call_history, target_call_history_from,
10260 target_call_history_range): New declaration.
10261 * record.c (get_call_history_modifiers, cmd_record_call_history,
10262 record_call_history_size): New.
10263 (_initialize_record): Add the "record function-call-history" command.
10264 Add "set/show record function-call-history-size" commands.
10265 * record.h (record_print_flag): New.
10266
10267 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10268
10269 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10270 to_insn_history_range>: New fields.
10271 (target_insn_history): New.
10272 (target_insn_history_from): New.
10273 (target_insn_history_range): New.
10274 * target.c (target_insn_history): New.
10275 (target_insn_history_from): New.
10276 (target_insn_history_range): New.
10277 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10278 (record_insn_history_size): New.
10279 (get_insn_number): New.
10280 (get_context_size): New.
10281 (no_chunk): New.
10282 (get_insn_history_modifiers): New.
10283 (cmd_record_insn_history): New.
10284 (_initialize_record): Add "set/show record instruction-history-size"
10285 command. Add "record instruction-history" command.
10286
10287 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10288
10289 * record.h (record_disconnect): New.
10290 (record_detach): New.
10291 (record_mourn_inferior): New.
10292 (record_kill): New.
10293 * record-full.c (record_disconnect, record_detach,
10294 record_mourn_inferior, record_kill): Move to...
10295 * record.c: ...here.
10296 (DEBUG): New.
10297 (record_stop): New.
10298 (record_unpush): New.
10299 (cmd_record_stop): Call record_stop. Replace unpush_target
10300 call with record_unpush call.
10301 (record_disconnect, record_detach): Assert that the target
10302 is of record stratum. Call record_unpush, record_stop, and
10303 DEBUG.
10304 (record_mourn_inferior, record_kill): Assert that the target
10305 is of record stratum. Call record_unpush and DEBUG.
10306
10307 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10308
10309 * record-full.h, record-full.c (record_memory_query): Rename
10310 to ...
10311 (record_full_memory_query): ...this. Update all users.
10312 (record_arch_list_add_reg): Rename to ...
10313 (record_full_arch_list_add_reg): ...this. Update all users.
10314 (record_arch_list_add_mem): Rename to ...
10315 (record_full_arch_list_add_mem): ...this. Update all users.
10316 (record_arch_list_add_end): Rename to ...
10317 (record_full_arch_list_add_end): ...this. Update all users.
10318 (record_gdb_operation_disable_set): Rename to ...
10319 (record_full_gdb_operation_disable_set): ...this.
10320 Update all users.
10321
10322 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10323
10324 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10325 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10326 (RECORD_IS_REPLAY): Renamed to ...
10327 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10328 (RECORD_FILE_MAGIC): Renamed to ...
10329 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10330 (record_mem_entry): Renamed to ...
10331 (record_full_mem_entry): ... this. Updated all users.
10332 (record_reg_entry): Renamed to ...
10333 (record_full_reg_entry): ... this. Updated all users.
10334 (record_end_entry): Renamed to ...
10335 (record_full_end_entry): ... this. Updated all users.
10336 (record_type) <record_end, record_reg, record_mem>: Renamed
10337 to ...
10338 (record_full_type) <record_full_end, record_full_reg,
10339 record_full_mem>: ... this. Updated all users.
10340 (record_entry): Renamed to ...
10341 (record_full_entry): ... this. Updated all users.
10342 (record_core_buf_entry): Renamed to ...
10343 (record_full_core_buf_entry): ... this. Updated all users.
10344 (record_core_regbuf): Renamed to ...
10345 (record_full_core_regbuf): ... this. Updated all users.
10346 (record_core_start): Renamed to ...
10347 (record_full_core_start): ... this. Updated all users.
10348 (record_core_end): Renamed to ...
10349 (record_full_core_end): ... this. Updated all users.
10350 (record_core_buf_list): Renamed to ...
10351 (record_full_core_buf_list): ... this. Updated all users.
10352 (record_first): Renamed to ...
10353 (record_full_first): ... this. Updated all users.
10354 (record_list): Renamed to ...
10355 (record_full_list): ... this. Updated all users.
10356 (record_arch_list_head): Renamed to ...
10357 (record_full_arch_list_head): ... this. Updated all users.
10358 (record_arch_list_tail): Renamed to ...
10359 (record_full_arch_list_tail): ... this. Updated all users.
10360 (record_stop_at_limit): Renamed to ...
10361 (record_full_stop_at_limit): ... this. Updated all users.
10362 (record_insn_max_num): Renamed to ...
10363 (record_full_insn_max_num): ... this. Updated all users.
10364 (record_insn_num): Renamed to ...
10365 (record_full_insn_num): ... this. Updated all users.
10366 (record_insn_count): Renamed to ...
10367 (record_full_insn_count): ... this. Updated all users.
10368 (record_ops): Renamed to ...
10369 (record_full_ops): ... this. Updated all users.
10370 (record_core_ops): Renamed to ...
10371 (record_full_core_ops): ... this. Updated all users.
10372 (set_record_cmdlist): Renamed to ...
10373 (set_record_full_cmdlist): ... this. Updated all users.
10374 (show_record_cmdlist): Renamed to ...
10375 (show_record_full_cmdlist): ... this. Updated all users.
10376 (record_cmdlist): Renamed to ...
10377 (record_full_cmdlist): ... this. Updated all users.
10378 (record_beneath_to_resume_ops): Renamed to ...
10379 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10380 (record_beneath_to_resume): Renamed to ...
10381 (record_full_beneath_to_resume): ... this. Updated all users.
10382 (record_beneath_to_wait_ops): Renamed to ...
10383 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10384 (record_beneath_to_wait): Renamed to ...
10385 (record_full_beneath_to_wait): ... this. Updated all users.
10386 (record_beneath_to_store_registers_ops): Renamed to ...
10387 (record_full_beneath_to_store_registers_ops): ... this.
10388 Updated all users.
10389 (record_beneath_to_store_registers): Renamed to ...
10390 (record_full_beneath_to_store_registers): ... this.
10391 Updated all users.
10392 (record_beneath_to_xfer_partial_ops): Renamed to ...
10393 (record_full_beneath_to_xfer_partial_ops): ... this.
10394 Updated all users.
10395 (record_beneath_to_xfer_partial): Renamed to ...
10396 (record_full_beneath_to_xfer_partial): ... this.
10397 Updated all users.
10398 (record_beneath_to_insert_breakpoint): Renamed to ...
10399 (record_full_beneath_to_insert_breakpoint): ... this.
10400 Updated all users.
10401 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10402 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10403 Updated all users.
10404 (record_beneath_to_stopped_data_address): Renamed to ...
10405 (record_full_beneath_to_stopped_data_address): ... this.
10406 Updated all users.
10407 (record_beneath_to_async): Renamed to ...
10408 (record_full_beneath_to_async): ... this. Updated all users.
10409 (record_goto_insn): Renamed to ...
10410 (record_full_goto_insn): ... this. Updated all users.
10411 (record_save): Renamed to ...
10412 (record_full_save): ... this. Updated all users.
10413 (record_reg_alloc): Renamed to ...
10414 (record_full_reg_alloc): ... this. Updated all users.
10415 (record_reg_release): Renamed to ...
10416 (record_full_reg_release): ... this. Updated all users.
10417 (record_mem_alloc): Renamed to ...
10418 (record_full_mem_alloc): ... this. Updated all users.
10419 (record_mem_release): Renamed to ...
10420 (record_full_mem_release): ... this. Updated all users.
10421 (record_end_alloc): Renamed to ...
10422 (record_full_end_alloc): ... this. Updated all users.
10423 (record_end_release): Renamed to ...
10424 (record_full_end_release): ... this. Updated all users.
10425 (record_entry_release): Renamed to ...
10426 (record_full_entry_release): ... this. Updated all users.
10427 (record_list_release): Renamed to ...
10428 (record_full_list_release): ... this. Updated all users.
10429 (record_list_release_following): Renamed to ...
10430 (record_full_list_release_following): ... this.
10431 Updated all users.
10432 (record_list_release_first): Renamed to ...
10433 (record_full_list_release_first): ... this. Updated all users.
10434 (record_arch_list_add): Renamed to ...
10435 (record_full_arch_list_add): ... this. Updated all users.
10436 (record_get_loc): Renamed to ...
10437 (record_full_get_loc): ... this. Updated all users.
10438 (record_check_insn_num): Renamed to ...
10439 (record_full_check_insn_num): ... this. Updated all users.
10440 (record_arch_list_cleanups): Renamed to ...
10441 (record_full_arch_list_cleanups): ... this. Updated all users.
10442 (record_message): Renamed to ...
10443 (record_full_message): ... this. Updated all users.
10444 (record_message_wrapper): Renamed to ...
10445 (record_full_message_wrapper): ... this. Updated all users.
10446 (record_message_wrapper_safe): Renamed to ...
10447 (record_full_message_wrapper_safe): ... this. Updated all users.
10448 (record_gdb_operation_disable): Renamed to ...
10449 (record_full_gdb_operation_disable): ... this. Updated all users.
10450 (record_hw_watchpoint): Renamed to ...
10451 (record_full_hw_watchpoint): ... this. Updated all users.
10452 (record_exec_insn): Renamed to ...
10453 (record_full_exec_insn): ... this. Updated all users.
10454 (record_restore): Renamed to ...
10455 (record_full_restore): ... this. Updated all users.
10456 (record_async_inferior_event_token): Renamed to ...
10457 (record_full_async_inferior_event_token): ... this.
10458 Updated all users.
10459 (record_async_inferior_event_handler): Renamed to ...
10460 (record_full_async_inferior_event_handler): ... this.
10461 Updated all users.
10462 (record_core_open_1): Renamed to ...
10463 (record_full_core_open_1): ... this. Updated all users.
10464 (record_open_1): Renamed to ...
10465 (record_full_open_1): ... this. Updated all users.
10466 (record_open): Renamed to ...
10467 (record_full_open): ... this. Updated all users.
10468 (record_close): Renamed to ...
10469 (record_full_close): ... this. Updated all users.
10470 (record_resume_step): Renamed to ...
10471 (record_full_resume_step): ... this. Updated all users.
10472 (record_resumed): Renamed to ...
10473 (record_full_resumed): ... this. Updated all users.
10474 (record_execution_dir): Renamed to ...
10475 (record_full_execution_dir): ... this. Updated all users.
10476 (record_resume): Renamed to ...
10477 (record_full_resume): ... this. Updated all users.
10478 (record_get_sig): Renamed to ...
10479 (record_full_get_sig): ... this. Updated all users.
10480 (record_sig_handler): Renamed to ...
10481 (record_full_sig_handler): ... this. Updated all users.
10482 (record_wait_cleanups): Renamed to ...
10483 (record_full_wait_cleanups): ... this. Updated all users.
10484 (record_wait_1): Renamed to ...
10485 (record_full_wait_1): ... this. Updated all users.
10486 (record_wait): Renamed to ...
10487 (record_full_wait): ... this. Updated all users.
10488 (record_stopped_by_watchpoint): Renamed to ...
10489 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10490 (record_disconnect): Renamed to ...
10491 (record_full_disconnect): ... this. Updated all users.
10492 (record_detach): Renamed to ...
10493 (record_full_detach): ... this. Updated all users.
10494 (record_mourn_inferior): Renamed to ...
10495 (record_full_mourn_inferior): ... this. Updated all users.
10496 (record_kill): Renamed to ...
10497 (record_full_kill): ... this. Updated all users.
10498 (record_stopped_data_address): Renamed to ...
10499 (record_full_stopped_data_address): ... this. Updated all users.
10500 (record_registers_change): Renamed to ...
10501 (record_full_registers_change): ... this. Updated all users.
10502 (record_store_registers): Renamed to ...
10503 (record_full_store_registers): ... this. Updated all users.
10504 (record_xfer_partial): Renamed to ...
10505 (record_full_xfer_partial): ... this. Updated all users.
10506 (record_breakpoint): Renamed to ...
10507 (record_full_breakpoint): ... this. Updated all users.
10508 (record_breakpoint_p): Renamed to ...
10509 (record_full_breakpoint_p): ... this. Updated all users.
10510 (record_breakpoints): Renamed to ...
10511 (record_full_breakpoints): ... this. Updated all users.
10512 (record_sync_record_breakpoints): Renamed to ...
10513 (record_full_sync_record_breakpoints): ... this.
10514 Updated all users.
10515 (record_init_record_breakpoints): Renamed to ...
10516 (record_full_init_record_breakpoints): ... this.
10517 Updated all users.
10518 (record_insert_breakpoint): Renamed to ...
10519 (record_full_insert_breakpoint): ... this. Updated all users.
10520 (record_remove_breakpoint): Renamed to ...
10521 (record_full_remove_breakpoint): ... this. Updated all users.
10522 (record_can_execute_reverse): Renamed to ...
10523 (record_full_can_execute_reverse): ... this. Updated all users.
10524 (record_get_bookmark): Renamed to ...
10525 (record_full_get_bookmark): ... this. Updated all users.
10526 (record_goto_bookmark): Renamed to ...
10527 (record_full_goto_bookmark): ... this. Updated all users.
10528 (record_async): Renamed to ...
10529 (record_full_async): ... this. Updated all users.
10530 (record_can_async_p): Renamed to ...
10531 (record_full_can_async_p): ... this. Updated all users.
10532 (record_is_async_p): Renamed to ...
10533 (record_full_is_async_p): ... this. Updated all users.
10534 (record_execution_direction): Renamed to ...
10535 (record_full_execution_direction): ... this. Updated all users.
10536 (record_info): Renamed to ...
10537 (record_full_info): ... this. Updated all users.
10538 (record_delete): Renamed to ...
10539 (record_full_delete): ... this. Updated all users.
10540 (record_is_replaying): Renamed to ...
10541 (record_full_is_replaying): ... this. Updated all users.
10542 (record_goto_entry): Renamed to ...
10543 (record_full_goto_entry): ... this. Updated all users.
10544 (record_goto_begin): Renamed to ...
10545 (record_full_goto_begin): ... this. Updated all users.
10546 (record_goto_end): Renamed to ...
10547 (record_full_goto_end): ... this. Updated all users.
10548 (record_goto): Renamed to ...
10549 (record_full_goto): ... this. Updated all users.
10550 (init_record_ops): Renamed to ...
10551 (init_record_full_ops): ... this. Updated all users.
10552 (record_core_resume): Renamed to ...
10553 (record_full_core_resume): ... this. Updated all users.
10554 (record_core_kill): Renamed to ...
10555 (record_full_core_kill): ... this. Updated all users.
10556 (record_core_fetch_registers): Renamed to ...
10557 (record_full_core_fetch_registers): ... this. Updated all users.
10558 (record_core_prepare_to_store): Renamed to ...
10559 (record_full_core_prepare_to_store): ... this. Updated all users.
10560 (record_core_store_registers): Renamed to ...
10561 (record_full_core_store_registers): ... this. Updated all users.
10562 (record_core_xfer_partial): Renamed to ...
10563 (record_full_core_xfer_partial): ... this. Updated all users.
10564 (record_core_insert_breakpoint): Renamed to ...
10565 (record_full_core_insert_breakpoint): ... this. Updated all users.
10566 (record_core_remove_breakpoint): Renamed to ...
10567 (record_full_core_remove_breakpoint): ... this. Updated all users.
10568 (record_core_has_execution): Renamed to ...
10569 (record_full_core_has_execution): ... this. Updated all users.
10570 (init_record_core_ops): Renamed to ...
10571 (init_record_full_core_ops): ... this. Updated all users.
10572 (cmd_record_restore): Renamed to ...
10573 (cmd_record_full_restore): ... this. Updated all users.
10574 (record_save_cleanups): Renamed to ...
10575 (record_full_save_cleanups): ... this. Updated all users.
10576 (cmd_record_start): Renamed to ...
10577 (cmd_record_full_start): ... this. Updated all users.
10578 (set_record_insn_max_num): Renamed to ...
10579 (set_record_full_insn_max_num): ... this. Updated all users.
10580 (set_record_command): Renamed to ...
10581 (set_record_full_command): ... this. Updated all users.
10582 (show_record_command): Renamed to ...
10583 (show_record_full_command): ... this. Updated all users.
10584 (_initialize_record): Renamed to ...
10585 (_initialize_record_full): ... this. Updated all users.
10586
10587 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10588
10589 * record.h: Split into this and ...
10590 * record-full.h: ... this.
10591 * record.c: Split into this and ...
10592 * record-full.c: ... this.
10593 * target.h (target_ops): Add new fields to_info_record,
10594 to_save_record, to_delete_record, to_record_is_replaying,
10595 to_goto_record_begin, to_goto_record_end, to_goto_record.
10596 (target_info_record): New.
10597 (target_save_record): New.
10598 (target_supports_delete_record): New.
10599 (target_delete_record): New.
10600 (target_record_is_replaying): New.
10601 (target_goto_record_begin): New.
10602 (target_goto_record_end): New.
10603 (target_goto_record): New.
10604 * target.c (target_info_record): New.
10605 (target_save_record): New.
10606 (target_supports_delete_record): New.
10607 (target_delete_record): New.
10608 (target_record_is_replaying): New.
10609 (target_goto_record_begin): New.
10610 (target_goto_record_end): New.
10611 (target_goto_record): New.
10612 * record.h: Declare struct cmd_list_element.
10613 (record_cmdlist): New declaration.
10614 (set_record_cmdlist): New declaration.
10615 (show_record_cmdlist): New declaration.
10616 (info_record_cmdlist): New declaration.
10617 (cmd_record_goto): New declaration.
10618 * record.c: Remove unnecessary includes.
10619 Include inferior.h.
10620 (cmd_record_goto): Remove declaration.
10621 (record_cmdlist): Now extern. Initialize.
10622 (set_record_cmdlist): Now extern. Initialize.
10623 (show_record_cmdlist): Now extern. Initialize.
10624 (info_record_cmdlist): Now extern. Initialize.
10625 (find_record_target): New.
10626 (require_record_target): New.
10627 (cmd_record_start): Update.
10628 (cmd_record_delete): Remove target-specific code.
10629 Call target_delete_record.
10630 (cmd_record_stop): Unpush any record target.
10631 (set_record_insn_max_num): Move to record-full.c
10632 (set_record_command): Add comment.
10633 (show_record_command): Add comment.
10634 (info_record_command): Update comment.
10635 Remove target-specific code.
10636 Call the record target's to_info_record.
10637 (cmd_record_start): New.
10638 (cmd_record_goto): Now extern.
10639 Remove target-specific code.
10640 Call target_goto_begin, target_goto_end, or target_goto.
10641 (_initialize_record): Move record target ops initialization to
10642 record-full.c.
10643 Change "record" command help text.
10644 Move "record restore", "record set", and "record show" commands to
10645 record-full.c.
10646 * Makefile.in (SFILES): Add record-full.c.
10647 (HFILES_NO_SRCDIR): Add record-full.h.
10648 (COMMON_OBS): Add record-full.o.
10649 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10650 * arm-tdep.c: Include record-full.h.
10651 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10652 * i386-tdep.c: Include record-full.h.
10653 * infrun.c: Include record-full.h.
10654 * linux-record.c: Include record-full.h.
10655 * moxie-tdep.c: Include record-full.h.
10656 * record-full.c: Include record-full.h.
10657 Change module comment.
10658 (set_record_full_cmdlist): New.
10659 (show_record_full_cmdlist): New.
10660 (record_full_cmdlist): New.
10661 (record_goto_insn): New declaration.
10662 (record_save): New declaration.
10663 (record_check_insn_num): Change query string.
10664 (record_info): New.
10665 (record_delete): New.
10666 (record_is_replaying): New.
10667 (record_goto_entry): New.
10668 (record_goto_begin): New.
10669 (record_goto_end): New.
10670 (record_goto): New.
10671 (init_record_ops): Update.
10672 (init_record_core_ops): Update.
10673 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10674 (cmd_record_start): New.
10675 (set_record_insn_max_num): Moved from record.c
10676 (set_record_full_command): New.
10677 (show_record_full_command): New.
10678 (_initialize_record_full): New.
10679
10680 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10681
10682 * target.h (add_deprecated_target_alias): New.
10683 * target.c (add_deprecated_target_alias): New.
10684
10685 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10686
10687 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10688 and signal.h.
10689 (linux_supports_btrace): Add kernel and
10690 cpuid check.
10691 (kernel_supports_btrace): New function.
10692 (cpu_supports_btrace): New function.
10693 (intel_supports_btrace): New function.
10694
10695 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10696
10697 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10698 * remote.c: Include btrace.h.
10699 (struct btrace_target_info): New struct.
10700 (remote_supports_btrace): New function.
10701 (send_Qbtrace): New function.
10702 (remote_enable_btrace): New function.
10703 (remote_disable_btrace): New function.
10704 (remote_teardown_btrace): New function.
10705 (remote_read_btrace): New function.
10706 (init_remote_ops): Add btrace ops.
10707 (enum <unnamed>): Add btrace packets.
10708 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10709 (_initialize_remote): Add packet configuration for branch tracing.
10710
10711 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10712
10713 * features/btrace.dtd: New file.
10714 * Makefile.in (XMLFILES): Add btrace.dtd.
10715 * btrace.h (parse_xml_btrace): New declaration.
10716 * btrace.c: Include xml-support.h.
10717 (parse_xml_btrace): New function.
10718 (parse_xml_btrace_block): New function.
10719 (block_attributes): New struct.
10720 (btrace_attributes): New struct.
10721 (btrace_children): New struct.
10722 (btrace_elements): New struct.
10723
10724 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10725
10726 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10727 (amd64_linux_enable_btrace): New.
10728 (amd64_linux_disable_btrace): New.
10729 (amd64_linux_teardown_btrace): New.
10730 (_initialize_amd64_linux_nat): Initialize btrace ops.
10731 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10732 (i386_linux_enable_btrace): New.
10733 (i386_linux_disable_btrace): New.
10734 (i386_linux_teardown_btrace): New.
10735 (_initialize_i386_linux_nat): Initialize btrace ops.
10736 * config/i386/linux.mh: Add linux-btrace.o.
10737 * config/i386/linux64.mh: Add linux-btrace.o.
10738
10739 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10740
10741 * common/linux_btrace.h: New file.
10742 * common/linux_btrace.c: New file.
10743 * Makefile.in (SFILES): Add btrace.c.
10744 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10745 (COMMON_OBS): Add btrace.o.
10746 (linux-btrace.o): New rule.
10747
10748 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10749
10750 * target.h: Include btrace.h.
10751 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10752 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10753 * target.c (target_supports_btrace): New function.
10754 (target_enable_btrace): New function.
10755 (target_disable_btrace): New function.
10756 (target_teardown_btrace): New function.
10757 (target_read_btrace): New function.
10758 * btrace.h: New file.
10759 * btrace.c: New file.
10760 * Makefile.in: Add btrace.c.
10761 * gdbthread.h: Include btrace.h.
10762 (struct thread_info): Add btrace field.
10763 * thread.c: Include btrace.h.
10764 (clear_thread_inferior_resources): Call target_teardown_btrace.
10765 * common/btrace-common.h: New file.
10766
10767 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10768
10769 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10770 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10771 kill_status to outer block.
10772
10773 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10774
10775 Fix entry-values if the callee called a noreturn function.
10776 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10777 get_frame_address_in_block. Add new comment.
10778
10779 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10780
10781 Fix entry-values in C++ across CUs.
10782 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10783 lookup_minimal_symbol. Add a comment.
10784 * dwarf2read.c
10785 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10786 DW_AT_linkage_name.
10787
10788 2013-03-08 Yao Qi <yao@codesourcery.com>
10789
10790 * tracepoint.c (_initialize_tracepoint): Indent the code.
10791
10792 2013-03-08 Pedro Alves <palves@redhat.com>
10793
10794 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10795 (parse_find_args, find_command): Change type of pattern buffer
10796 locals to 'gdb_byte *'.
10797
10798 2013-03-08 Stan Shebs <stan@codesourcery.com>
10799 Hafiz Abid Qadeer <abidh@codesourcery.com>
10800
10801 * NEWS: Mention set and show trace-buffer-size commands.
10802 Mention new packet.
10803 * target.h (struct target_ops): New method
10804 to_set_trace_buffer_size.
10805 (target_set_trace_buffer_size): New macro.
10806 * target.c (update_current_target): Set up new method.
10807 * tracepoint.c (trace_buffer_size): New global.
10808 (start_tracing): Send it to the target.
10809 (set_trace_buffer_size): New function.
10810 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10811 * remote.c (remote_set_trace_buffer_size): New function.
10812 (_initialize_remote): Use it.
10813 (QTBuffer:size) New remote command.
10814 (PACKET_QTBuffer_size): New enum.
10815 (remote_protocol_features): Add an entry for
10816 PACKET_QTBuffer_size.
10817
10818 2013-03-08 Tom Tromey <tromey@redhat.com>
10819
10820 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10821 variable.
10822
10823 2013-03-07 Pedro Alves <palves@redhat.com>
10824
10825 * target.c (target_read_stralloc, target_fileio_read_alloc):
10826 *Cast pointer to 'gdb_byte *' in target call.
10827
10828 2013-03-07 Pedro Alves <palves@redhat.com>
10829
10830 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10831 call.
10832
10833 2013-03-07 Keith Seitz <keiths@redhat.com>
10834
10835 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10836 (trace_pass_command): Likewise.
10837 * cli/cli-cmds.c: Include cli/cli-utils.h.
10838 (source_command): Use skip-spaces.
10839 (disassemble_command): Likewise.
10840 * findcmd.c: Include cli/cli-utils.h.
10841 (parse_find_args): Use skip_spaces.
10842 * go32-nat.c: Include cli/cli-utils.h.
10843 (go32_sldt): Use skip_spaces.
10844 (go32_sgdt): Likewise.
10845 (go32_sidt): Likewise.
10846 (go32_pde): Likewise.
10847 (go32_pte): Likewise.
10848 (go32_pte_for_address): Likewise.
10849 * infcmd.c: Include cli/cli-utils.h.
10850 (registers_info): Use skip_spaces.
10851 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10852 (linux_info_proc): Likewise.
10853 * linux-thread-db.c: Include cli/cli-utils.h.
10854 (info_auto_load_libthread_db): Use skip_spaces_const.
10855 * m32r-rom.c: Include cli/cli-utils.h.
10856 (m32r_upload_command): Use skip_spaces.
10857 * maint.c: Include cli/cli-utils.h.
10858 (maintenance_translate_address): Use skip_spaces.
10859 * mi/mi-parse.c: Include cli/cli-utils.h.
10860 (mi_parse_argv): Use skip_spaces.
10861 (mi_parse): Likewise.
10862 * minsyms.c: Include cli/cli-utils.h.
10863 (msymbol_hash_iw): Use skip_spaces_const.
10864 * objc-lang.c: Include cli/cli-utils.h.
10865 (parse_selector): Use skip_spaces.
10866 (parse_method): Likewise.
10867 * python/python.c: Include cli/cli-utils.h.
10868 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10869 (python_command)[HAVE_PYTHON]: Likewise.
10870 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10871 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10872 (m32r_load): Use skip_spaces.
10873 * serial.c: Include cli/cli-utils.h.
10874 (serial_open): Use skip_spaces_const.
10875 * stack.c: Include cli/cli-utils.h.
10876 (parse_frame_specification_1): Use skip_spaces_const.
10877 * symfile.c: Include cli/cli-utils.h.
10878 (set_ext_lang_command): Use skip_spaces.
10879 * symtab.c: Include cli/cli-utils.h.
10880 (rbreak_command): Use skip_spaces.
10881 * thread.c (thread_name_command): Use skip_spaces.
10882 * tracepoint.c (validate_actionline): Use skip_spaces.
10883 (encode_actions_1): Likewise.
10884 (trace_find_range_command): Likewise.
10885 (trace_find_outside_command): Likewise.
10886 (trace_dump_actions): Likewise.
10887
10888 2013-03-07 Pedro Alves <palves@redhat.com>
10889
10890 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10891 * expprint.c (print_subexp_standard): Likewise.
10892 * utils.c (host_char_to_target): Likewise.
10893 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10894 * varobj.c (value_get_print_value): Change type of local to char*.
10895 Cast it gdb_byte * in call to language printer.
10896
10897 2013-03-07 Pedro Alves <palves@redhat.com>
10898
10899 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10900 gdb_byte *'.
10901 (make_wchar_iterator): Remove cast to char*.
10902 (wchar_iterate): Change type of local.
10903
10904 2013-03-07 Pedro Alves <palves@redhat.com>
10905
10906 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10907 for 'regcache->register_status'.
10908
10909 2013-03-07 Pedro Alves <palves@redhat.com>
10910
10911 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10912 int.
10913
10914 2013-03-07 Pedro Alves <palves@redhat.com>
10915
10916 * stap-probe.c (handle_stap_probe): Add cast to char*.
10917
10918 2013-03-07 Pedro Alves <palves@redhat.com>
10919
10920 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10921 RECORD_MSGRCV>: Pass a signed variable to
10922 regcache_raw_read_signed, instead of an unsigned one.
10923
10924 2013-03-07 Pedro Alves <palves@redhat.com>
10925
10926 * remote-notif.c (notif_debug): Change type to int.
10927 * remote-notif.h (notif_debug): Likewise.
10928
10929 2013-03-07 Pedro Alves <palves@redhat.com>
10930
10931 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10932
10933 2013-03-07 Pedro Alves <palves@redhat.com>
10934
10935 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10936 * remote.h (hex2bin, bin2hex): ... here.
10937 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10938
10939 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10940
10941 * utils.c (initialize_utils): Improve doc strings of "set/show
10942 width", "set/show height", and "set/show pagination".
10943
10944 2013-03-06 Keith Seitz <keiths@redhat.com>
10945
10946 * ax-gdb.c (gen_printf): Make FORMAT const.
10947 * ax-gdb.h (gen_printf): Likewise.
10948 * ax-general.c (ax_string): Make STR const.
10949 * ax.h (ax_string): Likewise.
10950
10951 2013-03-06 Doug Evans <dje@google.com>
10952
10953 * elfread.c (elf_symfile_read): Move debugging printf to more
10954 logical location.
10955
10956 2013-03-06 Pedro Alves <palves@redhat.com>
10957
10958 * python/py-utils.c (target_string_to_unicode): Delete function.
10959 * python/python-internal.h (target_string_to_unicode): Delete
10960 declaration.
10961
10962 2013-03-06 Pierre Muller <muller@sourceware.org>
10963
10964 * linespec.c (get_current_search_block): ARI fix, use (void)
10965 for empty parameter list.
10966
10967 2013-03-05 Doug Evans <dje@google.com>
10968
10969 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10970 of old ada_lookup_symbol_list. In !full_search case, don't
10971 search superblocks.
10972 (ada_lookup_symbol_list): Delete arg full_search, all callers
10973 updated. Call ada_lookup_symbol_list_worker.
10974 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10975 * ada-lang.h (ada_lookup_symbol_list): Update.
10976 * language.h (language_defn): Update comment for
10977 la_iterate_over_symbols.
10978 * linespec.c (iterate_over_file_blocks): New function.
10979 (iterate_over_all_matching_symtabs): Call it.
10980 (lookup_prefix_sym): Ditto.
10981 (get_current_search_block): New function.
10982 (get_search_block): Delete.
10983 (find_label_symbols): Call get_current_search_block.
10984 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10985 * symtab.c (iterate_over_symbols): Don't search superblocks.
10986
10987 2013-03-05 Yao Qi <yao@codesourcery.com>
10988
10989 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10990 parameter VAR's type from "unsigned int" to "int".
10991 * command.h (var_zuinteger_unlimited): Update its comments.
10992 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10993
10994 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10995
10996 * NEWS: Mention new target x86_64-*-cygwin*.
10997
10998 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10999
11000 * configure.host: Add x86_64-*-cygwin* as host.
11001 * configure.tgt: Add x86_64-*-cygwin* as target.
11002 * config/i386/cygwin64.mh: New file.
11003
11004 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11005
11006 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11007
11008 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11009
11010 * linespec.c (struct linespec_canonical_name): New.
11011 (struct linespec_state): Change canonical_names type to it.
11012 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11013 xrealloc element size. Initialize the different CANONICAL fields.
11014 (canonical_to_fullform): New.
11015 (filter_results): Use it. Add variables canonical, fullform and
11016 cleanup.
11017 (struct decode_line_2_item, decode_line_2_compare_items): New.
11018 (decode_line_2): Remove variables iter and item_names, add variables
11019 items and items_count. Modify the code for these new variables.
11020
11021 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11022
11023 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11024 calling do_cleanup.
11025
11026 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11027
11028 * tracepoint.c (build_traceframe_info): Add code for byte order.
11029
11030 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11031
11032 * v850-tdep.c: (v850e2_register_name): Revise system register
11033 names to match current V850E2M architecture specifications.
11034 Update register number enum comments too.
11035
11036 2013-03-01 Jiong Wang <jiwang@tilera.com>
11037 Pedro Alves <palves@redhat.com>
11038
11039 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11040 to END_ADDR.
11041 (tilegx_skip_prologue): Limit prologue analysis to section end.
11042
11043 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11044
11045 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11046 use it.
11047
11048 2013-03-01 Pedro Alves <palves@redhat.com>
11049
11050 Use gdb_byte for bytes from the program being debugged.
11051
11052 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11053 Change type of local 'buf' to gdb_byte.
11054 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11055 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11056 * cris-tdep.c (cris_sigcontext_addr)
11057 (cris_sigtramp_frame_unwind_cache): Likewise.
11058 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11059 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11060 Likewise.
11061 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11062 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11063 (hppa32_hpux_search_dummy_call_sequence)
11064 (hppa_hpux_supply_save_state): Likewise.
11065 * hppa-linux-tdep.c (insns_match_pattern)
11066 (hppa_linux_find_global_pointer): Likewise.
11067 * hppa-tdep.c (hppa_in_function_epilogue_p)
11068 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11069 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11070 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11071 (i386fbsd_collect_uthread): Likewise.
11072 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11073 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11074 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11075 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11076 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11077 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11078 (ia64_libunwind_frame_prev_register)
11079 (ia64_libunwind_sigtramp_frame_this_id)
11080 (ia64_find_global_pointer_from_dynamic_section)
11081 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11082 (ia64_unwind_pc): Likewise.
11083 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11084 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11085 (m68hc11_extract_return_value): Likewise.
11086 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11087 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11088 (mep_get_insn, mep_push_dummy_call): Likewise.
11089 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11090 (mips_linux_in_dynsym_stub): Likewise.
11091 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11092 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11093 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11094 to gdb_byte.
11095 * remote-mips.c (mips_set_register): Likewise.
11096 * remote-sim.c (gdbsim_fetch_register): Likewise.
11097 * score-tdep.c (score7_fetch_inst): Change type of parameter
11098 'memblock' and local 'buf' to gdb_byte.
11099 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11100 Change type of local 'buf' to gdb_byte. Adjust.
11101 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11102 to gdb_byte**.
11103 (score7_analyze_prologue): Change type of 'memblock' and
11104 'memblock_ptr' locals to gdb_byte*.
11105 * sh64-tdep.c (sh64_extract_return_value)
11106 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11107 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11108 * solib-pa64.c (pa64_solib_create_inferior_hook)
11109 (pa64_open_symbol_file_object): Remove local 'buf'.
11110 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11111 (som_open_symbol_file_object): Likewise.
11112 * solib-spu.c (spu_current_sos): Likewise.
11113 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11114 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11115 (spu_store_registers): Likewise.
11116 * target.c (debug_print_register): Likewise.
11117 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11118 * xstormy16-tdep.c (xstormy16_store_return_value)
11119 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11120 (xstormy16_find_jmp_table_entry): Likewise.
11121
11122 2013-03-01 Jiong Wang <jiwang@tilera.com>
11123
11124 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11125 (tilegx_gdbarch_init): Install it.
11126
11127 2013-02-28 Tom Tromey <tromey@redhat.com>
11128
11129 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11130 PyLong_Check.
11131
11132 2013-02-28 Doug Evans <dje@google.com>
11133
11134 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11135 * python/python.c (gdbpy_find_pc_line): Ditto.
11136
11137 2013-02-28 Tom Tromey <tromey@redhat.com>
11138
11139 * contrib/excheck.py: New file.
11140 * contrib/exsummary.py: New file.
11141 * contrib/gcc-with-excheck: New file.
11142
11143 2013-02-28 Tom Tromey <tromey@redhat.com>
11144
11145 * python/python.c (gdbpy_print_stack): Call begin_line and
11146 fprintf_filtered inside TRY_CATCH.
11147
11148 2013-02-28 Tom Tromey <tromey@redhat.com>
11149
11150 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11151 inside TRY_CATCH.
11152
11153 2013-02-28 Tom Tromey <tromey@redhat.com>
11154
11155 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11156 frame_object_to_frame_info inside TRY_CATCH.
11157
11158 2013-02-28 Tom Tromey <tromey@redhat.com>
11159
11160 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11161 TRY_CATCH.
11162
11163 2013-02-28 Tom Tromey <tromey@redhat.com>
11164
11165 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11166
11167 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11168
11169 * windows-nat.c: Throughout, fix format strings and casts of
11170 printf-like functions to avoid type related warnings on all
11171 platforms.
11172 (handle_output_debug_string): Fetch context information address
11173 from debug string using string_to_core_addr.
11174
11175 2013-02-27 Jiong Wang <jiwang@tilera.com>
11176
11177 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11178 * regformats/reg-tilegx32.dat: New.
11179
11180 2013-02-27 Jiong Wang <jiwang@tilera.com>
11181
11182 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11183
11184 2013-02-27 Jiong Wang <jiwang@tilera.com>
11185
11186 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11187
11188 2013-02-27 Yao Qi <yao@codesourcery.com>
11189 Pedro Alves <palves@redhat.com>
11190
11191 * tracepoint.c (tfile_trace_find): For tfind
11192 pc/tp/range/outside, look for the next trace frame instead of
11193 always starting from frame 0.
11194
11195 2013-02-26 Anthony Green <green@moxielogic.com>
11196
11197 * configure.tgt: Add support for moxie-*-rtems* target.
11198
11199 2013-02-25 Pedro Alves <palves@redhat.com>
11200
11201 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11202 warning text.
11203
11204 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11205
11206 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11207 if $fp is used as the virtual frame pointer.
11208
11209 2013-02-23 Alan Modra <amodra@gmail.com>
11210
11211 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11212 symbol size.
11213 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11214 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11215 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11216 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11217
11218 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11219
11220 Code cleanup.
11221 * elfread.c (build_id_bfd_get): Make the return type const.
11222 (build_id_verify): Make the check parameter const.
11223 (build_id_to_debug_filename): Make the build_id parameter and variable
11224 data const.
11225 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11226
11227 2013-02-21 Alan Modra <amodra@gmail.com>
11228
11229 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11230
11231 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11232
11233 Add a new method 'disassemble' to gdb.Architecture class.
11234 * python/py-arch.c (archpy_disassmble): Implementation of the
11235 new method gdb.Architecture.disassemble.
11236 (arch_object_methods): Add entry for the new method.
11237
11238 2013-02-20 Jiong Wang <jiwang@tilera.com>
11239
11240 * MAINTAINERS (Write After Approval): Add myself to the list.
11241
11242 2013-02-19 Pedro Alves <palves@redhat.com>
11243
11244 Garbage collect 'struct monitor_ops'::load_routine.
11245
11246 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11247 * monitor.c (monitor_load): No longer call
11248 current_monitor->load_routine.
11249 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11250 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11251 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11252
11253 2013-02-19 Pedro Alves <palves@redhat.com>
11254
11255 PR gdb/15161
11256
11257 Harmonize with generic_load.
11258
11259 * monitor.c: Include "readline/readline.h".
11260 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11261 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11262 long/strtol for the 'load_offset' local. Error out if no argument
11263 is given or if too many arguments are given. Tilde expand the
11264 passed in file name.
11265
11266 2013-02-19 Kai Tietz <ktietz@redhat.com>
11267
11268 PR gdb/15161
11269 * symfile.c (load_section_data): Change type of load_offset
11270 to CORE_ADDR.
11271 (generic_load): User strtoulst instead of strtoul for conversion
11272 of load_offset.
11273
11274 2013-02-19 Jiong Wang <jiwang@tilera.com>
11275
11276 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11277 for return address, "lr" register, saved on stack.
11278 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11279 after we invoke tilegx_analyze_prologue.
11280
11281 2013-02-19 Jiong Wang <jiwang@tilera.com>
11282
11283 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11284
11285 2013-02-19 Jiong Wang <jiwang@tilera.com>
11286
11287 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11288
11289 2013-02-19 Jiong Wang <jiwang@tilera.com>
11290
11291 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11292 (tilegx_write_pc): New function.
11293 (tilegx_cannot_reference_register): Return zero if REGNO
11294 is TILEGX_FAULTNUM_REGNUM.
11295 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11296 (tilegx_register_name): Add handling of "faultnum" register.
11297 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11298 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11299 handling of TILEGX_FAULTNUM_REGNUM.
11300 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11301
11302 2013-02-19 Jiong Wang <jiwang@tilera.com>
11303
11304 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11305 should be aligned to 64bit.
11306
11307 2013-02-19 Kai Tietz <ktietz@redhat.com>
11308
11309 * windows-nat.c (windows_xfer_memory): Fix debug-output
11310 for LLP64.
11311
11312 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11313
11314 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11315 Don't check DSP register number if HAVE_DSP is not set.
11316
11317 2013-02-19 Alan Modra <amodra@gmail.com>
11318
11319 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11320 throughout file instead.
11321 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11322 Don't xmalloc return value.
11323 (build_id_verify): Similarly. Don't xfree.
11324 (build_id_to_debug_filename): Update.
11325 (find_separate_debug_file_by_buildid): Update, don't xfree.
11326
11327 2013-02-18 Tom Tromey <tromey@redhat.com>
11328
11329 PR gdb/15102:
11330 * dwarf2read.c (read_subrange_type): Use result of
11331 'check_typedef'.
11332
11333 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11334
11335 * frame.c: Remove one extra white space after #include
11336 directive.
11337
11338 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11339
11340 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11341
11342 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11343
11344 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11345 and dir commands into an if block.
11346
11347 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11348
11349 * python/py-breakpoint (struct pybp_code): Use int instead of
11350 enum type_code.
11351
11352 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11353 Hafiz Abid Qadeer <abidh@codesourcery.com>
11354
11355 * NEWS: Mention new field "trace-file".
11356 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11357 (tfile_open): Record the trace file's filename in the trace
11358 status.
11359 (tfile_files_info): Mention the name of the trace file.
11360 Check the "filename" field explicitely.
11361 (trace_status_command): Explicitely check "filename" field.
11362 (trace_find_command): Ditto.
11363 (trace_find_pc_command): Ditto.
11364 (trace_find_tracepoint_command): Ditto.
11365 (trace_find_line_command): Ditto.
11366 (trace_find_range_command): Ditto.
11367 (trace_find_outside_command): Ditto.
11368 * tracepoint.h (struct trace_status) <from_file>: Rename it
11369 to "filename" and make it hold the trace file's filename
11370 instead of a boolean.
11371 * remote.c (remote_get_trace_status): Initialize "filename"
11372 field with NULL instead of 0.
11373
11374 2013-02-15 Yao Qi <yao@codesourcery.com>
11375
11376 * remote.c: Fix a typo.
11377
11378 2013-02-14 Pierre Muller <muller@sourceware.org>
11379
11380 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11381
11382 2013-02-14 Pedro Alves <palves@redhat.com>
11383
11384 * utils.c (savestring): Don't #undef it. Move function to
11385 common/common-utils.c.
11386 * common/common-utils.c: Include gdb_string.h.
11387 (savestring): Move here from utils.c.
11388 * common/common-utils.h (savestring): Declare.
11389
11390 2013-02-14 Pedro Alves <palves@redhat.com>
11391
11392 * utils.c (savestring): Rename parameter 'size' to 'len'.
11393
11394 2013-02-14 Pedro Alves <palves@redhat.com>
11395 Yufeng Zhang <yufeng.zhang@arm.com>
11396
11397 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11398 (aarch64_inferior_data, struct aarch64_inferior_data):
11399 Delete.
11400 (struct aarch64_process_info): New.
11401 (aarch64_process_list): New global.
11402 (aarch64_find_process_pid, aarch64_add_process)
11403 (aarch64_process_info_get): New functions.
11404 (aarch64_inferior_data_get): Delete.
11405 (aarch64_process_info_get): New function.
11406 (aarch64_forget_process): New function.
11407 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11408 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11409 aarch64_get_debug_reg_state.
11410 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11411 instead of linux_nat_iterate_watchpoint_lwps.
11412 (aarch64_linux_new_fork): New function.
11413 (aarch64_linux_child_post_startup_inferior): Use
11414 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11415 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11416 (aarch64_linux_remove_hw_breakpoint)
11417 (aarch64_handle_aligned_watchpoint)
11418 (aarch64_handle_unaligned_watchpoint)
11419 (aarch64_linux_insert_watchpoint)
11420 (aarch64_linux_remove_watchpoint)
11421 (aarch64_linux_stopped_data_address): Adjust to pass the current
11422 process id to aarch64_debug_reg_state.
11423 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11424 linux_nat_new_fork hook, and aarch64_forget_process as
11425 linux_nat_forget_process hook; remove the call to
11426 register_inferior_data_with_cleanup.
11427
11428 2013-02-14 Pedro Alves <palves@redhat.com>
11429
11430 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11431 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11432 lval_memory.
11433
11434 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11435 Hafiz Abid Qadeer <abidh@codesourcery.com>
11436
11437 * tracepoint.h (validate_trace_state_variable_name): Declare.
11438 * tracepoint.c (validate_trace_state_variable_name): New.
11439 (trace_variable_command): Parse the trace state variable's name
11440 without using parse_expression. Do several validations.
11441 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11442 trace state variable's name with parse_expression. Validate it.
11443
11444 2013-02-14 Yao Qi <yao@codesourcery.com>
11445
11446 * infcmd.c (breakpoint_proceeded): Remove it.
11447
11448 2013-02-14 Yao Qi <yao@codesourcery.com>
11449
11450 * tracepoint.c (end_actions_pseudocommand): Make it static.
11451 (while_stepping_pseudocommand): Likewise.
11452 * tracepoint.h (end_actions_pseudocommand): Remove the
11453 declaration.
11454 (while_stepping_pseudocommand): Likewise.
11455
11456 2013-02-14 Yao Qi <yao@codesourcery.com>
11457
11458 * cli/cli-decode.c (help_cmd): Remove the declaration of
11459 "cmdlist".
11460 (help_all): Likewise.
11461
11462 2013-02-13 Pedro Alves <palves@redhat.com>
11463
11464 * amd64-linux-nat.c (update_debug_registers_callback):
11465 Update comment.
11466 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11467 iterate_over_lwps.
11468 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11469 i386_debug_reg_state.
11470 (amd64_linux_new_fork): New function.
11471 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11472 linux_nat_new_fork hook, and i386_forget_process as
11473 linux_nat_forget_process hook.
11474 * i386-linux-nat.c (update_debug_registers_callback):
11475 Update comment.
11476 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11477 iterate_over_lwps.
11478 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11479 i386_debug_reg_state.
11480 (i386_linux_new_fork): New function.
11481 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11482 linux_nat_new_fork hook, and i386_forget_process as
11483 linux_nat_forget_process hook.
11484 * i386-nat.c (i386_init_dregs): Delete.
11485 (i386_inferior_data, struct i386_inferior_data):
11486 Delete.
11487 (struct i386_process_info): New.
11488 (i386_process_list): New global.
11489 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11490 New functions.
11491 (i386_inferior_data_get): Delete.
11492 (i386_process_info_get): New function.
11493 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11494 (i386_forget_process): New function.
11495 (i386_cleanup_dregs): Rewrite.
11496 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11497 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11498 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11499 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11500 to i386_debug_reg_state.
11501 (i386_use_watchpoints): Don't register inferior data.
11502 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11503 adjust comment.
11504 (i386_forget_process): Declare.
11505 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11506 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11507 New static globals.
11508 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11509 (add_initial_lwp): New, factored out from ...
11510 (add_lwp): ... this. Don't check the number of lwps before
11511 calling linux_nat_new_thread.
11512 (linux_nat_iterate_watchpoint_lwps): Delete.
11513 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11514 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11515 forks and vforks.
11516 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11517 initial lwp.
11518 (linux_nat_kill, linux_nat_mourn_inferior): Call
11519 linux_nat_forget_process.
11520 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11521 (linux_nat_forget_process): New functions.
11522 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11523 type.
11524 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11525 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11526 types.
11527 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11528 (linux_nat_forget_process): New declarations.
11529
11530 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11531 (amd64fbsd_mourn_inferior): New function.
11532 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11533 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11534
11535 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11536
11537 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11538 Adding _().
11539
11540 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11541
11542 * aarch64-linux-nat.c (debug_reg_change_callback)
11543 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11544 %s and phex().
11545
11546 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11547
11548 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11549 with LONGEST.
11550
11551 2013-02-13 Pedro Alves <palves@redhat.com>
11552 Hafiz Abid Qadeer <abidh@codesourcery.com>
11553
11554 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11555
11556 2013-02-12 Tom Tromey <tromey@redhat.com>
11557
11558 PR symtab/11464:
11559 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11560 NAME return.
11561 (classify_inner_name): Remove 'first_name' argument, add
11562 'context'. Remove unused variable.
11563 (yylex): Explicitly maintain the context type. Exit loop earlier
11564 if NAME result is seen.
11565
11566 2013-02-12 Pedro Alves <palves@redhat.com>
11567
11568 * amd64-darwin-tdep.c: Add (C) after Copyright.
11569 * cli/cli-cmds.h: Ditto.
11570 * cli/cli-decode.c: Ditto.
11571 * cli/cli-decode.h: Ditto.
11572 * cli/cli-dump.c: Ditto.
11573 * cli/cli-dump.h: Ditto.
11574 * cli/cli-interp.c: Ditto.
11575 * cli/cli-logging.c: Ditto.
11576 * cli/cli-script.c: Ditto.
11577 * cli/cli-script.h: Ditto.
11578 * cli/cli-setshow.c: Ditto.
11579 * cli/cli-setshow.h: Ditto.
11580 * cli/cli-utils.c: Ditto.
11581 * cli/cli-utils.h: Ditto.
11582 * config/alpha/nm-osf3.h: Ditto.
11583 * config/djgpp/djconfig.sh: Ditto.
11584 * config/i386/nm-fbsd.h: Ditto.
11585 * config/i386/nm-i386gnu.h: Ditto.
11586 * config/nm-linux.h: Ditto.
11587 * config/nm-nto.h: Ditto.
11588 * config/rs6000/nm-rs6000.h: Ditto.
11589 * config/sparc/nm-sol2.h: Ditto.
11590 * darwin-nat-info.c: Ditto.
11591 * dfp.c: Ditto.
11592 * dfp.h: Ditto.
11593 * gdb-demangle.h: Ditto.
11594 * i386-darwin-nat.c: Ditto.
11595 * i386-darwin-tdep.c: Ditto.
11596 * linux-fork.h: Ditto.
11597 * m32c-tdep.c: Ditto.
11598 * microblaze-linux-tdep.c: Ditto.
11599 * microblaze-rom.c: Ditto.
11600 * microblaze-tdep.c: Ditto.
11601 * microblaze-tdep.h: Ditto.
11602 * mips-linux-tdep.h: Ditto.
11603 * ppc-ravenscar-thread.c: Ditto.
11604 * ppc-ravenscar-thread.h: Ditto.
11605 * prologue-value.c: Ditto.
11606 * prologue-value.h: Ditto.
11607 * ravenscar-thread.c: Ditto.
11608 * ravenscar-thread.h: Ditto.
11609 * sparc-ravenscar-thread.c: Ditto.
11610 * sparc-ravenscar-thread.h: Ditto.
11611 * tilegx-linux-tdep.c: Ditto.
11612 * unwind_stop_reasons.def: Ditto.
11613 * windows-nat.h: Ditto.
11614 * xtensa-linux-tdep.c: Ditto.
11615 * xtensa-xtregs.c: Ditto.
11616 * regformats/regdat.sh: Ditto.
11617 * regformats/regdef.h: Ditto.
11618
11619 2013-02-12 Pedro Alves <palves@redhat.com>
11620
11621 * break-catch-sig.c: Update copyright years.
11622
11623 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11624
11625 Add support for a destructor for ui_out data and use it to
11626 provide a ui_out destructor.
11627 * ui-out.h: Declare the new ui_out destructor.
11628 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11629 * ui-out.c (default_data_destroy): Add a default data destructor
11630 which does nothing.
11631 (default_ui_out_impl): Set the new data_destroy field to
11632 default_data_destroy
11633 (uo_data_destroy): Local function which invokes the data
11634 destructor if present.
11635 (clear_table): Local function which clears the table data of a
11636 ui_out object.
11637 (ui_out_destroy): Public function which frees a ui_out object.
11638 (ui_out_table_end): Use the new clear_table function.
11639 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11640 NULL.
11641 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11642 to NULL.
11643
11644 2013-02-11 Doug Evans <dje@google.com>
11645
11646 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11647 (printf_decfloat): New function. Broken out from ui_printf.
11648 Remove unnecessary code to shift the entire format string down.
11649 (printf_pointer): New function.
11650 (ui_printf): Code to print C strings, wide C strings, decfloats,
11651 and pointers moved to separate functions.
11652
11653 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11654
11655 * valops.c (value_assign): Handling bitfield offset in
11656 `lval_internalvar_component' case.
11657
11658 2013-02-08 Doug Evans <dje@google.com>
11659
11660 * common/format.c (parse_format_string): Fix whitespace.
11661
11662 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11663
11664 * stack.c (return_command): Work around uninitialized variable
11665 warning.
11666
11667 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11668
11669 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11670 number of the registers from 36 to 34.
11671
11672 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11673
11674 * NEWS: Mention new AArch64 native and target support.
11675
11676 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11677
11678 * MAINTAINERS (Write After Approval): Add myself.
11679
11680 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11681 Marcus Shawcroft <marcus.shawcroft@arm.com>
11682 Nigel Stephens <nigel.stephens@arm.com>
11683 Yufeng Zhang <yufeng.zhang@arm.com>
11684
11685 * aarch64-linux-nat.c: New file.
11686 * config/aarch64/linux.mh: New file.
11687 * configure.host: Add AArch64.
11688 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11689
11690 2013-02-07 Doug Evans <dje@google.com>
11691
11692 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11693 disassemble command.
11694
11695 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11696
11697 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11698 set_gdbarch_fetch_tls_load_module_address.
11699
11700 2013-02-06 David S. Miller <davem@davemloft.net>
11701
11702 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11703 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11704 * value.c (struct_return_convention): New function.
11705 (using_struct_return): Implement in terms of struct_return_convention.
11706 * value.h (struct_return_convention): Declare.
11707 * stack.c (return_command): Allow successful overriding of the return
11708 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11709
11710 2013-02-06 Tom Tromey <tromey@redhat.com>
11711
11712 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11713 outside of TRY_CATCH.
11714
11715 2013-02-06 Yao Qi <yao@codesourcery.com>
11716
11717 * mi/mi-interp.c: Include "tracepoint.h".
11718 (mi_tsv_modified): Declare.
11719 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11720 (mi_interpreter_init): Call observer_attach_tsv_modified.
11721 (mi_tsv_modified): New.
11722 (mi_tsv_created, mi_tsv_deleted): Update.
11723 * tracepoint.c (trace_variable_command): Call
11724 observer_notify_tsv_modified if the initial value of tsv is
11725 changed.
11726 (delete_trace_state_variable): Call
11727 observer_notify_tsv_deleted earlier.
11728 (trace_variable_command): Caller update.
11729 (create_tsv_from_upload): Likewise.
11730 * observer.sh: Declare "struct trace_state_variable".
11731
11732 * NEWS: Mention the new MI notification "=tsv-modified".
11733
11734 2013-02-05 Doug Evans <dje@google.com>
11735
11736 * completer.c (location_completer): Fix typo in comment.
11737
11738 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11739
11740 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11741 ADDRESS sorted.
11742
11743 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11744
11745 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11746 Refactor if statement to avoid trailing || operator.
11747
11748 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11749
11750 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11751
11752 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11753
11754 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11755 * configure.host: Add powerpc*-*-freebsd* target.
11756 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11757 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11758 * config/powerpc/fbsd.mh: New file.
11759
11760 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11761 Denys Vlasenko <dvlasenk@redhat.com>
11762 Pedro Alves <palves@redhat.com>
11763
11764 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11765 (struct elf_internal_linux_prpsinfo): Forward declare.
11766 * gdbarch.h, gdbarch.c: Regenerate.
11767 * linux-tdep.c: Include `cli/cli-utils.h'.
11768 (linux_fill_prpsinfo): New function.
11769 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11770 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11771 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11772 depending on gdbarch pointer bitness.
11773 * ppc-linux-tdep.c: Include elf-bfd.h.
11774 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11775 on 32-bit.
11776
11777 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11778 Marcus Shawcroft <marcus.shawcroft@arm.com>
11779 Nigel Stephens <nigel.stephens@arm.com>
11780 Yufeng Zhang <yufeng.zhang@arm.com>
11781
11782 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11783
11784 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11785 Marcus Shawcroft <marcus.shawcroft@arm.com>
11786 Nigel Stephens <nigel.stephens@arm.com>
11787 Yufeng Zhang <yufeng.zhang@arm.com>
11788
11789 * aarch64-newlib-tdep.c: New file.
11790 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11791 aarch64*-*-elf.
11792 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11793 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11794 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11795 * osabi.c (gdb_osabi_names): Add "Newlib".
11796
11797 2013-02-04 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 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11803 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11804 * aarch64-linux-tdep.c: New file.
11805 * aarch64-linux-tdep.h: New file.
11806 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11807 * configure.tgt: Add aarch64-none-linux-gnu.
11808
11809 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11810 Marcus Shawcroft <marcus.shawcroft@arm.com>
11811 Nigel Stephens <nigel.stephens@arm.com>
11812 Yufeng Zhang <yufeng.zhang@arm.com>
11813
11814 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11815 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11816 (ALLDEPFILES): Add aarch64-tdep.c.
11817 * aarch64-tdep.c: New file.
11818 * aarch64-tdep.h: New file.
11819 * configure.tgt: Add AArch64.
11820 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11821 (aarch64-expedite): New definition.
11822 * features/aarch64-core.xml: New file.
11823 * features/aarch64-fpu.xml: New file.
11824 * features/aarch64-without-fpu.c: New file (generated).
11825 * features/aarch64-without-fpu.xml: New file.
11826 * features/aarch64.c: New file (generated).
11827 * features/aarch64.xml: New file.
11828 * regformats/aarch64-without-fpu.dat: New file (generated).
11829 * regformats/aarch64.dat: New file (generated).
11830
11831 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11832
11833 * contrib/expect-read1.c: New file.
11834 * contrib/expect-read1.sh: New file.
11835
11836 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11837
11838 * dwarf2read.c (file_file_name): New function with code from
11839 file_full_name.
11840 (file_full_name): Move most of the code to file_file_name.
11841 (macro_start_file): Rename variable full_name to file_name and use
11842 file_file_name for it. Add comp_dir parameter to new_macro_table.
11843 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11844 macro_source_file->filename access by macro_source_fullname call.
11845 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11846 caller.
11847 * macrotab.c (struct macro_table): New field comp_dir.
11848 (macro_include): New variables link_fullname and source_fullname.
11849 Replace any macro_source_file->filename access by macro_source_fullname
11850 call.
11851 (macro_lookup_inclusion): Remove the partial filenames checking code.
11852 (check_for_redefinition): New variables source_fullname and
11853 found_key_fullname. Replace any macro_source_file->filename access by
11854 macro_source_fullname call.
11855 (macro_undef): New variables source_fullname and key_fullname. Replace
11856 any macro_source_file->filename access by macro_source_fullname call.
11857 (macro_lookup_definition): New variables retval and source_fullname.
11858 Replace any macro_source_file->filename access by macro_source_fullname
11859 call.
11860 (foreach_macro): New variable key_fullname. Replace any
11861 macro_source_file->filename access by macro_source_fullname call.
11862 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11863 macro_source_file->filename access by macro_source_fullname call.
11864 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11865 (macro_source_fullname): New function.
11866 * macrotab.h (struct macro_source_file): Extent the filename field
11867 comment.
11868 (new_macro_table): New parameter comp_dir, add a comment for it.
11869 (macro_source_fullname): new declaration.
11870
11871 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11872
11873 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11874 this_real_name to outer block. Use it also for
11875 compare_filenames_for_search.
11876 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11877 with dw2_get_real_path for file_matcher, considering also
11878 BASENAMES_MAY_DIFFER.
11879 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11880
11881 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11882
11883 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11884 to the file_matcher parameter. Pass 0 to it.
11885 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11886 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11887 NULL psymtab_to_fullname result.
11888 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11889 an expected filename instead.
11890 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11891 file_matcher parameter. Call also psymtab_to_fullname, after newly
11892 considering BASENAMES_MAY_DIFFER.
11893 * source.c (rewrite_source_path): Remove static.
11894 * source.h (rewrite_source_path): New declaration.
11895 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11896 the expand_symtabs_matching field. Comment it.
11897 * symtab.c (file_matches): New function comment. Add parameter
11898 basenames, implement it.
11899 (search_symbols_file_matches): Add basenames parameter. Update the
11900 file_matches caller.
11901 (search_symbols): Match FILES also against symtab_to_fullname.
11902 Optimize it for BASENAMES_MAY_DIFFER.
11903
11904 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11905
11906 * source.c (print_source_lines_base): Print for TUI also "fullname".
11907 * tui/tui-data.c (init_content_element): Change tui_locator_element
11908 field to full_name.
11909 * tui/tui-data.h (struct tui_locator_element): Likewise.
11910 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11911 tui_update_locator_filename calls to tui_update_locator_fullname.
11912 Replace symtab->filename refererence by symtab_to_fullname call.
11913 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11914 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11915 field to full_name. Replace symtab->filename refererence by
11916 symtab_to_fullname call.
11917 (tui_show_symtab_source): Rename parameter to fullname. Change
11918 tui_locator_element field to full_name.
11919 * tui/tui-stack.c: Include source.h.
11920 (tui_set_locator_filename): Rename the declaration to ...
11921 (tui_set_locator_fullname): ... here. Rename its parameter to
11922 fullname, updates its comment.
11923 (tui_set_locator_info): Rename its parameter to fullname.
11924 (tui_set_locator_filename): Rename the definition to ...
11925 (tui_set_locator_fullname): ... here. Rename its parameter to
11926 fullname, updates its comment. Change tui_locator_element field to
11927 full_name.
11928 (tui_set_locator_info): Rename its parameter to fullname.
11929 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11930 (tui_update_locator_filename): Rename to ...
11931 (tui_update_locator_fullname): ... here. Rename callee to
11932 tui_set_locator_fullname.
11933 (tui_show_frame_info): Replace symtab->filename refererence by
11934 symtab_to_fullname call.
11935 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11936 (tui_update_locator_fullname): ... here.
11937 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11938 tui_update_locator_fullname. Replace symtab->filename refererence by
11939 symtab_to_fullname call.
11940 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11941 Rename the callee to tui_update_locator_fullname.
11942 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11943
11944 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11945
11946 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11947 by symtab_to_filename_for_display calls.
11948 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11949 (clear_command): New variable sal_fullname, initialize it. Replace
11950 compare_filenames_for_search by filename_cmp with sal_fullname.
11951 (say_where, update_static_tracepoint): Replace symtab->filename
11952 refererences by symtab_to_filename_for_display calls.
11953 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11954 Likewise.
11955 * dwarf2read.c: Include source.h.
11956 (fixup_go_packaging): Replace symtab->filename refererences by
11957 symtab_to_filename_for_display calls.
11958 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11959 Replace symtab->filename refererences by symtab_to_filename_for_display
11960 calls.
11961 (create_sals_line_offset, convert_linespec_to_sals): New variable
11962 fullname, initialize it, replace symtab->filename reference by the
11963 variable.
11964 * linux-fork.c: Include source.h.
11965 (info_checkpoints_command): Replace symtab->filename refererences by
11966 symtab_to_filename_for_display calls.
11967 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11968 by symtab_to_filename_for_display calls.
11969 * mdebugread.c: Include source.h.
11970 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11971 symtab_to_filename_for_display calls.
11972 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11973 (mi_cmd_file_list_exec_source_files): Likewise.
11974 * printcmd.c: Include source.h.
11975 (build_address_symbolic): Replace symtab->filename refererences by
11976 symtab_to_filename_for_display calls.
11977 * psymtab.c (partial_map_symtabs_matching_filename)
11978 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11979 with psymtab_to_fullname.
11980 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11981 by symtab_to_filename_for_display calls.
11982 (stpy_get_filename): New variable filename, initialize it, use instead
11983 of symtab->filename refererences.
11984 (salpy_str): Make variable filename const char *. Replace
11985 symtab->filename refererences by symtab_to_filename_for_display calls.
11986 * skip.c: Include source.h and filenames.h.
11987 (skip_file_command): Remove const from the symtab variable. Replace
11988 symtab->filename refererences by symtab_to_fullname call.
11989 (function_name_is_marked_for_skip): New variables searched_for_fullname
11990 and fullname. Use them to search also with symtab's fullname.
11991 * source.c (find_source_lines): Replace symtab->filename refererences
11992 by symtab_to_filename_for_display calls.
11993 (print_source_lines_base): New variable filename, use it instead of
11994 symtab->filename. Replace symtab->filename refererences by
11995 symtab_to_filename_for_display calls.
11996 (line_info, forward_search_command): Replace symtab->filename
11997 refererences by symtab_to_filename_for_display calls.
11998 (reverse_search_command): Replace symtab->filename refererences by
11999 symtab_to_filename_for_display calls. New variable filename for it.
12000 * stack.c (frame_info): Likewise.
12001 * symmisc.c: Include source.h.
12002 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12003 (maintenance_info_symtabs): Replace symtab->filename refererences by
12004 symtab_to_filename_for_display calls.
12005 * symtab.c (iterate_over_some_symtabs): Call
12006 compare_filenames_for_search also with symtab_to_fullname.
12007 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12008 symtab->filename refererences by symtab_to_filename_for_display calls.
12009 (find_line_symtab): Replace symtab->filename refererences by
12010 symtab_to_filename_for_display calls.
12011 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12012 (print_symbol_info): Make the last parameter const char *. New
12013 variable s_filename. Use it in the function.
12014 (symtab_symbol_info): Make the last_filename variable const char *.
12015 Replace symtab->filename refererences by symtab_to_filename_for_display
12016 calls.
12017 (rbreak_command): New variable fullname. Use it. Replace
12018 symtab->filename refererence by symtab_to_filename_for_display call.
12019 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12020 (print_one_static_tracepoint_marker): Replace symtab->filename
12021 refererences by symtab_to_filename_for_display calls.
12022 * tui/tui-source.c (tui_set_source_content): New variables filename and
12023 s_filename. Replace symtab->filename refererences by this variable.
12024 Replace other symtab->filename refererences by
12025 symtab_to_filename_for_display calls.
12026
12027 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12028 Jan Kratochvil <jan.kratochvil@redhat.com>
12029
12030 Add a new variable that controls a way in which filenames are
12031 displayed.
12032 * NEWS (set filename-display): New entry.
12033 * source.c (filename_display_basename, filename_display_relative)
12034 (filename_display_absolute, filename_display_kind_names)
12035 (filename_display_string, show_filename_display_string)
12036 (symtab_to_filename_for_display): New.
12037 (_initialize_source): Added initialization of 'filename-display'
12038 variable.
12039 * source.h (symtab_to_filename_for_display): Added declaration.
12040 * stack.c (print_frame): Added new variable and calling of a new
12041 function and condition with this variable. Changed third argument of
12042 calling of a function.
12043
12044 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12045
12046 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12047 Rename field reference filename to fullname.
12048 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12049 fullname. New comment for it.
12050 * tui/tui-source.c (tui_set_source_content): Rename field reference
12051 filename to fullname. Initialize field by symtab_to_fullname now.
12052 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12053 reference filename to fullname. Use symtab_to_fullname during
12054 comparison.
12055
12056 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12057
12058 Code cleanup.
12059 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12060 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12061 filename to fullname. Rename variable this_name to this_fullname.
12062 Lowercase FILENAME_CMP call.
12063 (dw2_find_symbol_file): New comment for the returned string.
12064 (dwarf2_gdb_index_functions): Rename the function to
12065 dw2_expand_symtabs_with_fullname.
12066 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12067 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12068 fullname.
12069 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12070 * symfile.h (struct quick_symbol_functions): Rename field
12071 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12072 parameter filename to fullname. Document returned string meaning for
12073 find_symbol_file.
12074 * symtab.c (find_line_symtab): Rename the called function to
12075 expand_symtabs_with_fullname.
12076
12077 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12078
12079 Code cleanup.
12080 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12081 call of filename_cmp with compare_filenames_for_search.
12082 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12083 is_abs, unify the call of FILENAME_CMP with
12084 compare_filenames_for_search. New gdb_asserts for real_path and name.
12085 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12086 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12087 * symfile.h (struct quick_symbol_functions): Extend the comment for
12088 map_symtabs_matching_filename.
12089 * symtab.c (compare_filenames_for_search): Remove the function comment
12090 relative path requirement. Handle absolute filenames, with a comment.
12091 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12092 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12093 real_path and name. Unify the call of compare_filenames_for_search
12094 with FILENAME_CMP.
12095 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12096
12097 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12098
12099 Code cleanup.
12100 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12101 source_file references by symtab field references. Remove variables
12102 sal and fullname.
12103 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12104 (clear_command, say_where): Replace bp_location field source_file
12105 references by symtab field references.
12106 (bp_location_dtor): Remove the source_file reference.
12107 (update_static_tracepoint): Replace bp_location field source_file
12108 references by symtab field references.
12109 (breakpoint_free_objfile): New function.
12110 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12111 Replace the field source_file by field symtab, extend its comment.
12112 (breakpoint_free_objfile): New declaration.
12113 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12114 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12115 field source_file references by symtab field references.
12116
12117 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12118
12119 Replace xfullpath calls by gdb_realpath calls.
12120 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12121 function comment.
12122 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12123 Remove it from the iterate_over_some_symtabs call.
12124 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12125 Remove it from the dw2_map_expand_apply calls, remove a block handling
12126 it.
12127 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12128 Remove it from the iterate_over_some_symtabs call.
12129 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12130 Remove it from the partial_map_expand_apply calls, remove a block
12131 handling it. Drop gdb_realpath call and cleanups from the real_path
12132 handling.
12133 * source.c (openp): Drop the comment part about xfullpath. Replace
12134 xfullpath calls by gdb_realpath calls.
12135 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12136 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12137 from method map_symtabs_matching_filename and its comment.
12138 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12139 gdb_realpath call.
12140 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12141 remove it also from the function comment, remove a block handling it.
12142 Drop gdb_realpath call and cleanups from the real_path handling.
12143 (iterate_over_symtabs): Drop variable full_path and its use.
12144 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12145 * utils.c (xfullpath): Remove.
12146 * utils.h (xfullpath): Remove.
12147
12148 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12149
12150 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12151 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12152 (ALLDEPFILES): Add ppc64-tdep.c.
12153 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12154 ppc64-tdep.o to gdb_target_obs.
12155 * ppc64-tdep.h: New file.
12156 * ppc64-tdep.c: New file.
12157 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12158 ppc-linux-tdep.c to here.
12159 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12160 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12161 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12162 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12163 from ppc-linux-tdep.c to here.
12164 (ppc64_convert_from_func_ptr_addr): Rename from
12165 ppc64_linux_convert_from_func_ptr_addr to
12166 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12167 here.
12168 * rs6000-tdep.c:
12169 (read_insn): Move from ppc-linux-tdep.c to here.
12170 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12171 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12172 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12173 Removed above functions.
12174 (ppc_linux_init_abi): Adjust.
12175
12176 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12177
12178 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12179
12180 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12181
12182 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12183
12184 2013-02-01 Pedro Alves <palves@redhat.com>
12185
12186 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12187 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12188
12189 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12190
12191 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12192 files with no separate debug info.
12193 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12194 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12195 only for files with no separate debug info.
12196
12197 2013-01-31 Tom Tromey <tromey@redhat.com>
12198
12199 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12200 change type.
12201 (struct jit_program_space_data): Rename from jit_inferior_data.
12202 Update comments.
12203 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12204 Change return type. Attach data to program space.
12205 (jit_program_space_data_cleanup): Rename from
12206 jit_inferior_data_cleanup; change argument type.
12207 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12208 change type.
12209 (jit_register_code): Update.
12210 (jit_update_inferior_cache): Remove.
12211 (jit_breakpoint_deleted): Get jit data from the location's program
12212 space.
12213 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12214 'ps_data', change type.
12215 (jit_inferior_init, jit_breakpoint_re_set_internal)
12216 (jit_event_handler): Update.
12217 (free_objfile_data): Get data from objfile's program space.
12218 (_initialize_jit): Update.
12219
12220 2013-01-31 Tom Tromey <tromey@redhat.com>
12221
12222 PR gdb/13987:
12223 * jit.c (struct jit_inferior_data) <cached_code_address,
12224 jit_breakpoint>: New fields.
12225 (jit_breakpoint_re_set_internal): Fix logging. Only create
12226 breakpoint if cached address has changed.
12227 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12228 functions.
12229 (_initialize_jit): Register breakpoint deleted observer.
12230
12231 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12232
12233 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12234 (save_infcall_suspend_state): Ifdef out unused inf.
12235 (restore_infcall_suspend_state): Ifdef out unused inf.
12236 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12237 (jit_frame_sniffer): Remove unused inf_data.
12238
12239 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12240
12241 * c-exp.y (classify_inner_name): Remove unused type.
12242 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12243 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12244 need_escape.
12245 (c_get_string): Remove unused kind.
12246 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12247
12248 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12249
12250 * charset.c (intermediate_encoding): Remove unused i.
12251 * completer.c (signal_completer): Remove unused i.
12252 * continuations.c (discard_my_continuations_1): Remove unused
12253 continuation_ptr.
12254 * corelow.c (core_close): Remove unuseD name.
12255 (get_core_siginfo): Remove unused pid.
12256 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12257 i, cps.
12258 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12259 (loclist_describe_location): Remove unused first.
12260 * event-top.c (command_line_handler): Remove unused got_eof.
12261 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12262 (resize_section_table): Remove unused old_value.
12263 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12264 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12265 * i386-tdep.c (i386_process_record): Remove unused rex.
12266 * infcmd.c (get_return_value): Remove unused uiout.
12267 * jv-lang.c (type_from_class): Remove unused is_array.
12268 * jv-valprint.c (java_val_print): Remove unused i.
12269 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12270 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12271 * m2-typeprint.c (m2_print_type): Remove unused code.
12272 * macroexp.c (get_character_constant): Remove unused body_start.
12273 (macro_stringify): Remove unused result.
12274 * objc-lang.c (find_methods): Remove unused gdbarch.
12275 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12276 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12277 * stack.c (print_frame_args): Remove unused summary.
12278 * thread.c (thread_apply_command): Remove unused p.
12279 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12280 * valops.c (search_struct_method): Remove unused skip.
12281 * valprint.c (generic_val_print): Remove unused byte_order.
12282 * varobj.c (varobj_update): Remove unused changed.
12283 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12284 (alias_command): Remove unused c.
12285 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12286 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12287 format.
12288 (mi_cmd_data_write_memory): Remove unused word_format.
12289 (mi_cmd_data_write_memory_bytes): Remove unused r.
12290 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12291 p_start, p_end.
12292 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12293 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12294 line_width.
12295
12296 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12297
12298 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12299 * symtab.c (iterate_over_symtabs): Remove unused s.
12300 (find_pc_sect_symtab): Remove unused pspAce.
12301 (find_pc_sect_line): Remove unused alt_symtab.
12302 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12303 (completion_list_add_name): Remove unused newsize.
12304
12305 2013-01-31 Tom Tromey <tromey@redhat.com>
12306
12307 PR c++/14998:
12308 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12309 TYPE_CODE_FUNC.
12310
12311 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12312
12313 * target.c (target_read_string): Remove unused origlen.
12314
12315 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12316
12317 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12318 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12319 * ax-general.c (ax_print): Remove unused is_float.
12320 * blockframe.c (block_innermost_frame): Remove unused start, end.
12321 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12322
12323 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12324
12325 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12326 (svr4_read_so_list): Remove unused lmo.
12327 * solib-target.c (solib_target_relocate_section_addresses): Remove
12328 unused flags.
12329
12330 2013-01-30 Tom Tromey <tromey@redhat.com>
12331
12332 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12333
12334 2013-01-30 Tom Tromey <tromey@redhat.com>
12335
12336 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12337 * utils.c (gnu_debuglink_crc32): Remove.
12338 * utils.h (gnu_debuglink_crc32): Don't declare.
12339
12340 2013-01-30 Tom Tromey <tromey@redhat.com>
12341
12342 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12343 (read_structure_type, read_enumeration_type): Remove cast.
12344
12345 2013-01-30 Tom Tromey <tromey@redhat.com>
12346
12347 * dwarf2read.c (read_namespace_type): Remove cast.
12348 (read_typedef): Likewise.
12349
12350 2013-01-29 Tom Tromey <tromey@redhat.com>
12351
12352 * dwarf2read.c (free_dwo_file): Remove assert.
12353
12354 2013-01-29 Tom Tromey <tromey@redhat.com>
12355
12356 * value.c (deprecated_set_value_modifiable): Remove.
12357 * value.h (deprecated_set_value_modifiable): Remove.
12358
12359 2013-01-28 Doug Evans <dje@google.com>
12360
12361 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12362 to addresses from dwo files.
12363
12364 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12365
12366 * valops.c (find_overload_match): Remove unused argument 'lax'.
12367 * value.h: Remove unused argument 'lax' from the declaration of
12368 find_overload_match.
12369 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12370 to find_overload_match.
12371 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12372 argument to find_overload_match.
12373
12374 2013-01-25 Tom Tromey <tromey@redhat.com>
12375
12376 * dwarf2read.c (processing_has_namespace_info): Remove.
12377 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12378 (process_die, read_func_scope, dwarf2_start_symtab)
12379 (new_symbol_full): Update.
12380
12381 2013-01-25 Tom Tromey <tromey@redhat.com>
12382
12383 * cp-namespace.c (cp_set_block_scope): Remove.
12384 * cp-support.h (cp_set_block_scope): Remove.
12385 * dbxread.c: Include block.h.
12386 (cp_set_block_scope): New function.
12387 (process_one_symbol): Update.
12388 * dwarf2read.c (read_func_scope): Use block_set_scope.
12389
12390 2013-01-25 Pedro Alves <palves@redhat.com>
12391
12392 * remote.c (add_current_inferior_and_thread): Tweak comment.
12393
12394 2013-01-25 Tom Tromey <tromey@redhat.com>
12395
12396 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12397 (cp_add_using_directive): Add 'copy_names' argument.
12398 * cp-support.h (cp_add_using_directive): Update.
12399 (struct using_direct) <import_src, import_dest, alias,
12400 declaration>: Now const.
12401 * dwarf2read.c (read_import_statement): Use obconcat.
12402 Don't copy names passed to cp_add_using_directive.
12403
12404 2013-01-25 Tom Tromey <tromey@redhat.com>
12405
12406 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12407
12408 2013-01-25 Pedro Alves <palves@redhat.com>
12409
12410 * remote.c (stop_reply_extract_thread): New.
12411 (add_current_inferior_and_thread): New parameter 'wait_status'.
12412 Handle it.
12413 (remote_start_remote): Pass wait status to
12414 add_current_inferior_and_thread.
12415 (extended_remote_run): Update comment.
12416 (extended_remote_create_inferior_1): Pass wait status to
12417 add_current_inferior_and_thread.
12418
12419 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12420 Ulrich Weigand <uweigand@de.ibm.com>
12421
12422 * valarith.c (value_vector_widen): New function for replicating a
12423 scalar into a vector.
12424 (value_binop): Use value_vector_widen to widen scalar to vector
12425 rather than casting, this better matches gcc C behaviour.
12426 * valops.c (value_casst): Update logic for casting between vector
12427 types, and for casting from scalar to vector, try to match gcc C
12428 behaviour.
12429 * value.h (value_vector_widen): Declare.
12430 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12431 function, handle special case for casting scalar to vector.
12432 (opencl_relop): Use opencl_value_cast.
12433 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12434 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12435 in order to use opencl_value_cast.
12436
12437 2013-01-25 Yao Qi <yao@codesourcery.com>
12438
12439 * event-loop.c: Include "queue.h".
12440 (gdb_event_p): New typedef.
12441 (DECLARE_QUEUE_P): Use.
12442 (DEFINE_QUEUE_P): Use.
12443 (async_queue_event): Remove.
12444 (gdb_event_xfree): New.
12445 (initialize_event_loop): New.
12446 (process_event): Use QUEUE macros.
12447 (event_queue): Remove.
12448 (gdb_wait_for_event): Caller update.
12449 (check_async_event_handlers): Likewise.
12450 (poll_timers): Likewise.
12451 * event-loop.h (initialize_event_loop): Declare.
12452 * event-loop.c (gdb_event_xfree): New.
12453 * top.c (gdb_init): Call initialize_event_loop.
12454
12455 2013-01-25 Yao Qi <yao@codesourcery.com>
12456
12457 * event-loop.c (async_queue_event): Remove one parameter
12458 'position'. Remove code handling 'position' == TAIL.
12459 (gdb_wait_for_event): Caller update.
12460 (check_async_event_handlers): Caller update.
12461 (poll_timers): Caller update.
12462 * event-loop.h (enum queue_position): Remove.
12463
12464 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12465
12466 * MAINTAINERS: Update my email.
12467
12468 2013-01-25 Yao Qi <yao@codesourcery.com>
12469
12470 * main.c (print_gdb_help): Remove "--epoch" from the help
12471 message.
12472
12473 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12474
12475 * symtab.c (skip_prologue_using_sal): Consider a file
12476 change the same as an increased line number
12477
12478 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12479
12480 * MAINTAINERS (Write After Approval): Add myself to the list.
12481
12482 2013-01-24 Tom Tromey <tromey@redhat.com>
12483
12484 * ada-lang.h (ada_decode_symbol): Make return type const.
12485 * ada-lang.c (ada_decode_symbol): Likewise.
12486
12487 2013-01-23 Doug Evans <dje@google.com>
12488
12489 * linespec.c (find_linespec_symbols): Make static.
12490
12491 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12492
12493 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12494 type on float conversion for complex type.
12495
12496 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12497
12498 Add a new class gdb.Architecture which exposes GDB's
12499 internal representation of architecture via GDB Python API.
12500 * Makefile.in: Add entries corresponding to the new file
12501 python/py-arch.c.
12502 * NEWS (Python Scripting): Add entries for the new class
12503 gdb.Architecture and the new method gdb.Frame.architecture.
12504 * python/py-arch.c: Implement gdb.Architecture class.
12505 * python/py-frame.c (frapy_arch): Implement the method
12506 gdb.Frame.architecture().
12507 (frame_object_methods): Add 'architecture' to the method table.
12508 * python/python-internal.h: Add declarations of new utility
12509 functions.
12510 * python/python.c (_initialize_python): Initialize
12511 gdb.Architecture class.
12512
12513 2013-01-23 Doug Evans <dje@google.com>
12514
12515 Work around binutils/15021.
12516 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12517 type_unit_group out of union s. All uses updated.
12518 (read_index_from_section): Watch for index version 8.
12519 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12520 an imported symtab.
12521 (write_psymtabs_to_index): Increment version number to 8.
12522
12523 2013-01-22 Pedro Alves <palves@redhat.com>
12524
12525 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12526 user-visible.
12527
12528 2013-01-22 Pedro Alves <palves@redhat.com>
12529
12530 * annotate.c (annotate_breakpoints_changed): Rename to ...
12531 (annotate_breakpoints_invalid): ... this. Make static.
12532 (breakpoint_changed): Adjust.
12533 (_initialize_annotate): Always install the observers. Install a
12534 "breakpoint_created" observer.
12535 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12536 * breakpoint.c (set_breakpoint_condition)
12537 (breakpoint_set_commands, do_map_commands_command)
12538 (init_raw_breakpoint, clear_command, set_ignore_count)
12539 (enable_breakpoint_disp): No longer call
12540 annotate_breakpoints_changed.
12541
12542 2013-01-22 Pedro Alves <palves@redhat.com>
12543
12544 * annotate.c: Include "inferior.h".
12545 (frames_invalid_emitted)
12546 (breakpoints_invalid_emitted): New globals.
12547 (async_background_execution_p): New function.
12548 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12549 emitting the annotation if it has already been emitted.
12550 (annotate_display_prompt): New function.
12551 * annotate.h (annotate_display_prompt): New declaration.
12552 * event-top.c: Include annotate.h.
12553 (display_gdb_prompt): Call annotate_display_prompt.
12554
12555 2013-01-22 Pedro Alves <palves@redhat.com>
12556
12557 * annotate.c (ignore_count_changed): Delete.
12558 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12559 (annotate_ignore_count_change): Delete.
12560 (annotate_stopped): Don't emit a delayed breakpoints-changed
12561 annotation.
12562 * annotate.h (annotate_ignore_count_change): Delete.
12563 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12564 annotate_ignore_count_change.
12565
12566 2013-01-22 Tom Tromey <tromey@redhat.com>
12567
12568 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12569 require_rvalue for a register location.
12570
12571 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12572
12573 * breakpoint.c (print_one_breakpoint_location): Add MI
12574 field 'thread-groups' when printing a breakpoint.
12575 (output_thread_groups): New function.
12576
12577 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12578
12579 * python/lib/gdb/commands/explore.py
12580 (CompoundExplorer.explore_expr): Correct the name of a method
12581 being invoked.
12582 (ExploreTypeCommand.invoke): Add a missing 'return'.
12583
12584 2013-01-21 Tom Tromey <tromey@redhat.com>
12585
12586 * gdb_obstack.h (obconcat): Move declaration here, from...
12587 * symfile.h (obconcat): ... here.
12588 * gdb_obstack.c: New file.
12589 (obconcat): Move from...
12590 * symfile.c (obconcat): ... here.
12591 * Makefile.in (SFILES): Add gdb_obstack.c.
12592 (COMMON_OBS): Add gdb_obstack.o.
12593
12594 2013-01-21 Tom Tromey <tromey@redhat.com>
12595
12596 * symfile.h (obsavestring): Don't declare.
12597 * symfile.c (obsavestring): Remove.
12598 * ada-exp.y: Use obstack_copy0, not obsavestring.
12599 * ada-lang.c: Use obstack_copy0, not obsavestring.
12600 * coffread.c: Use obstack_copy0, not obsavestring.
12601 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12602 * dbxread.c: Use obstack_copy0, not obsavestring.
12603 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12604 * jit.c: Use obstack_copy0, not obsavestring.
12605 * mdebugread.c: Use obstack_copy0, not obsavestring.
12606 * psymtab.c: Use obstack_copy0, not obsavestring.
12607 * stabsread.c: Use obstack_copy0, not obsavestring.
12608 * xcoffread.c: Use obstack_copy0, not obsavestring.
12609
12610 2013-01-21 Tom Tromey <tromey@redhat.com>
12611
12612 * dwarf2read.c (fixup_go_packaging): Save package name
12613 on objfile obstack.
12614 * gdbtypes.c (init_type): Don't copy name.
12615
12616 2013-01-21 Tom Tromey <tromey@redhat.com>
12617
12618 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12619 const.
12620 (struct attribute) <u.str>: Now const.
12621 (struct fnfieldlist) <name>: Now const.
12622 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12623 (partial_die_parent_scope): Make return type const.
12624 (partial_die_full_name, add_partial_symbol): Update.
12625 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12626 'name' const.
12627 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12628 (read_file_scope, read_func_scope, dwarf2_add_field)
12629 (dwarf2_add_member_fn, read_structure_type)
12630 (process_enumeration_scope, read_array_type, read_module_type)
12631 (read_base_type, read_subrange_type): Update.
12632 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12633 (new_symbol_full, guess_full_die_structure_name): Update.
12634 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12635 (dwarf2_name): Return const type.
12636 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12637 const.
12638
12639 2013-01-21 Tom Tromey <tromey@redhat.com>
12640
12641 * gdbtypes.c (init_type): Make 'name' const.
12642 * gdbtypes.h (init_type): Update.
12643
12644 2013-01-21 Tom Tromey <tromey@redhat.com>
12645
12646 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12647 (start_symtab): Make 'name' and 'dirname' const. Use
12648 set_last_source_file.
12649 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12650 (last_source_file): Define. Now static.
12651 (set_last_source_file, get_last_source_file): New functions.
12652 * buildsym.h (last_source_file): Don't declare.
12653 (start_symtab): Update.
12654 (set_last_source_file, get_last_source_file): Declare.
12655 * coffread.c (complete_symtab): Use set_last_source_file.
12656 (coff_end_symtab): Likewise.
12657 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12658 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12659 set_last_source_file.
12660 (process_one_symbol): Use get_last_source_file.
12661 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12662 (psymtab_to_symtab_1): Use get_last_source_file.
12663 * xcoffread.c (process_linenos): Use get_last_source_file.
12664 (complete_symtab): Use set_last_source_file.
12665 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12666 (scan_xcoff_symtab): Use set_last_source_file.
12667
12668 2013-01-21 Tom Tromey <tromey@redhat.com>
12669
12670 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12671 (symbol_set_names): Remove casts. Handle field const-ness.
12672
12673 2013-01-21 Tom Tromey <tromey@redhat.com>
12674
12675 * dwarf2read.c (new_symbol_full): Remove cast.
12676 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12677 * symtab.h (symbol_set_demangled_name): Update.
12678
12679 2013-01-21 Tom Tromey <tromey@redhat.com>
12680
12681 * main.c (captured_main): Call bfd_init.
12682
12683 2013-01-21 Tom Tromey <tromey@redhat.com>
12684
12685 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12686 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12687 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12688 * NEWS: Update.
12689
12690 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12691
12692 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12693
12694 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12695
12696 Fix gdb.fortran/common-block.exp crash in PIE mode.
12697 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12698 LOC_COMMON_BLOCK.
12699 * f-valprint.c (info_common_command_for_block): Expect
12700 LOC_COMMON_BLOCK in gdb_assert.
12701 * symtab.h (struct general_symbol_info): Update comment for the
12702 common_block member.
12703 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12704 (enum address_class): New member LOC_COMMON_BLOCK.
12705
12706 2013-01-18 David Blaikie <dblaikie@gmail.com>
12707
12708 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12709
12710 2013-01-18 Tom Tromey <tromey@redhat.com>
12711
12712 PR c++/14999:
12713 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12714 Call require_rvalue.
12715
12716 2013-01-18 Yao Qi <yao@codesourcery.com>
12717
12718 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12719 (dbx_read_symtab): New declaration.
12720 (dbx_psymtab_to_symtab): Delete.
12721 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12722 Rename parameter PST to SELF. Exchanged two parameters.
12723 (start_psymtab): Caller update.
12724 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12725 (dwarf2_read_symtab): New declaration.
12726 (dwarf2_psymtab_to_symtab): Delete.
12727 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12728 Rename parameter PST to SELF. Exchanged two parameters.
12729 (create_partial_symtab): Caller update.
12730 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12731 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12732 Rename parameter PST to SELF. Exchanged two parameters.
12733 (parse_partial_symbols, new_psymtab): Caller update.
12734 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12735 two parameters.
12736 * psymtab.c (psymtab_to_symtab): Caller update.
12737 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12738 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12739 Rename parameter PST to SELF. Exchanged two parameters.
12740 (xcoff_start_psymtab): Caller update.
12741
12742 2013-01-18 Yao Qi <yao@codesourcery.com>
12743
12744 * infrun.c (proceed): Rename local variable 'oneproc' to
12745 'force_step'.
12746
12747 2013-01-17 Doug Evans <dje@google.com>
12748
12749 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12750 (dw2_build_type_unit_groups): Delete. All uses updated.
12751
12752 * symtab.h (struct symbol_search): Add comment.
12753
12754 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12755
12756 * symtab.c (compare_filenames_for_search): New comment for
12757 HAS_DRIVE_SPEC.
12758
12759 2013-01-17 Tom Tromey <tromey@redhat.com>
12760
12761 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12762
12763 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12764
12765 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12766 initialize it by existing make_cleanup. Call new do_cleanups.
12767
12768 2013-01-17 Tom Tromey <tromey@redhat.com>
12769
12770 * cp-abi.c (cp_abi_completer): New function.
12771 (_initialize_cp_abi): Set completer for "set cp-abi".
12772
12773 2013-01-17 Tom Tromey <tromey@redhat.com>
12774
12775 * mem-break.c: Remove obsolete comment.
12776 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12777
12778 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12779
12780 * jit.c (jit_reader_load_command): Interpret the jit reader name
12781 as an absolute path if it begins with a forward slash.
12782
12783 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12784
12785 PR gdb/14550
12786
12787 * jit.c (finalize_symtab): Ensure that only the global block has a
12788 NULL superblock.
12789
12790 2013-01-17 Pedro Alves <palves@redhat.com>
12791
12792 * acinclude.m4: Include ../config/plugins.m4,
12793 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12794 * Makefile.in (aclocal_m4_deps): Update.
12795 * aclocal.m4: Renegerate.
12796
12797 2013-01-16 Doug Evans <dje@google.com>
12798
12799 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12800
12801 2013-01-16 Pedro Alves <palves@redhat.com>
12802 Tom Tromey <tromey@redhat.com>
12803
12804 PR cli/7221:
12805 * NEWS: Add "catch signal".
12806 * breakpoint.c (base_breakpoint_ops): No longer static.
12807 (bpstat_explains_signal): New function.
12808 (init_catchpoint): No longer static.
12809 (base_breakpoint_explains_signal): New function.
12810 (base_breakpoint_ops): Initialize new field.
12811 * breakpoint.h (enum bpstat_signal_value): New.
12812 (struct breakpoint_ops) <explains_signal>: New field.
12813 (bpstat_explains_signal): Remove macro, declare as function.
12814 (base_breakpoint_ops, init_catchpoint): Declare.
12815 * break-catch-sig.c: New file.
12816 * inferior.h (signal_catch_update): Declare.
12817 * infrun.c (signal_catch): New global.
12818 (handle_syscall_event): Update for change to
12819 bpstat_explains_signal.
12820 (handle_inferior_event): Likewise. Always handle random signals
12821 via bpstats.
12822 (signal_cache_update): Check signal_catch.
12823 (signal_catch_update): New function.
12824 (_initialize_infrun): Initialize signal_catch.
12825 * Makefile.in (SFILES): Add break-catch-sig.c.
12826 (COMMON_OBS): Add break-catch-sig.o.
12827
12828 2013-01-16 Tom Tromey <tromey@redhat.com>
12829
12830 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12831 (print_one_catch_solib, print_one_catch_syscall)
12832 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12833 "catch-type".
12834
12835 2013-01-16 Yao Qi <yao@codesourcery.com>
12836
12837 * printcmd.c (current_display_number): Make it static.
12838
12839 2013-01-16 Yao Qi <yao@codesourcery.com>
12840
12841 * infcmd.c (step_once): Don't check '!single_inst' as it was
12842 checked before.
12843
12844 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12845
12846 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12847
12848 2013-01-14 Tom Tromey <tromey@redhat.com>
12849
12850 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12851 set command.
12852 * command.h (add_setshow_string_noescape_cmd): Update.
12853 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12854 (complete_set_gnutarget): New function.
12855 (_initialize_core): Set the "set gnutarget" completer.
12856
12857 2013-01-14 Tom Tromey <tromey@redhat.com>
12858
12859 PR symtab/14442:
12860 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12861 (c_type_print_modifier): Likewise.
12862 * dwarf2read.c (read_tag_restrict_type): New function.
12863 (read_type_die_1): Handle DW_TAG_restrict_type.
12864 * gdbtypes.c (make_restrict_type): New function.
12865 (recursive_dump_type): Handle TYPE_RESTRICT.
12866 * gdbtypes.h (enum type_flag_values): Renumber.
12867 (enum type_instance_flag_value): Add
12868 TYPE_INSTANCE_FLAG_RESTRICT.
12869 (TYPE_RESTRICT): New macro.
12870 (make_restrict_type): Declare.
12871
12872 2013-01-14 Tom Tromey <tromey@redhat.com>
12873
12874 PR symtab/14931:
12875 * psymtab.c (struct psymtab_state): New.
12876 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12877 functions.
12878 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12879 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12880
12881 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12882 Pedro Alves <palves@redhat.com>
12883
12884 PR remote/14786
12885
12886 * remote.c (remote_threads_info): Make a copy of the reply from
12887 qfThreadInfo and use that instead of rs->buf.
12888
12889 2013-01-14 Yao Qi <yao@codesourcery.com>
12890
12891 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12892 (dbx_psymtab_to_symtab): Likewise.
12893 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12894 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12895 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12896
12897 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12898
12899 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12900 make_cleanup_restore_current_language. Call set_language. Move
12901 OLD_CHAIN and INNER_CHAIN cleanups.
12902 * utils.c (do_restore_current_language)
12903 (make_cleanup_restore_current_language): New functions.
12904 * utils.h (make_cleanup_restore_current_language): New declaration.
12905
12906 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12907
12908 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12909 non-existing files.
12910
12911 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12912 non-existing files if FILENAME is already absolute.
12913
12914 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12915
12916 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12917 fputs_filtered. Append trailing newline.
12918
12919 2013-01-11 Yao Qi <yao@codesourcery.com>
12920 Stan Shebs <stan@codesourcery.com>
12921
12922 * psymtab.c (init_psymbol_list): Clarify the comment.
12923
12924 2013-01-11 Yao Qi <yao@codesourcery.com>
12925
12926 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12927 (update_dprintf_command_list): Assert that 'printf_line' is
12928 non-null. Remove condition check.
12929
12930 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12931
12932 Code cleanup.
12933 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12934 type const char *.
12935 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12936 const char *.
12937 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12938
12939 2013-01-09 Anthony Green <green@moxielogic.com>
12940
12941 * cp-abi.c (cplus_print_vtable): Don't return value from void
12942 function.
12943 * ada-lang.c (re_set_catch_assert): Ditto.
12944
12945 2013-01-09 Doug Evans <dje@google.com>
12946
12947 * symfile.h (quick_symbol_functions): Delete member
12948 pre_expand_symtabs_matching. All uses removed.
12949 * dwarf2read.c (dw2_lookup_symbol): Implement.
12950 (dw2_do_expand_symtabs_matching): Delete.
12951 (dw2_pre_expand_symtabs_matching): Delete.
12952 (struct dw2_symtab_iterator): New type.
12953 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12954 (dw2_expand_symtabs_for_function): Rewrite.
12955 (dwarf2_gdb_index_functions): Update.
12956 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12957 (psym_functions): Update.
12958
12959 2013-01-09 Tom Tromey <tromey@redhat.com>
12960
12961 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12962 * configure: Rebuild.
12963 * configure.ac: Add somread.o to the build if BFD has SOM
12964 support.
12965 * somread.c: Include som/aout.h, not syms.h.
12966 (som_symtab_read): Use som_external_symbol_dictionary_record.
12967 Unpack records manually.
12968 (_initialize_somread): Declare.
12969
12970 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12971
12972 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12973 Cast return_address to 64bits.
12974
12975 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12976
12977 * printcmd.c: Remove define of function output_command.
12978 * tracepoint.c: Remove extern of function output_command.
12979 * valprint.h: (output_command): New extern.
12980
12981 2013-01-07 Tom Tromey <tromey@redhat.com>
12982
12983 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12984 Remove.
12985 (objc_language_defn): Use c_printchar, c_printstr,
12986 c_emit_char.
12987
12988 2013-01-07 Tom Tromey <tromey@redhat.com>
12989
12990 PR cli/7719:
12991 * NEWS: Update.
12992 * ada-valprint.c (printstr, print_field_values): Remove
12993 "inspect_it" code.
12994 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12995 code.
12996 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12997 code.
12998 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12999 * main.c (captured_main): Remove "epoch" argument.
13000 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13001 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13002 * p-valprint.c (pascal_object_print_value_fields): Remove
13003 "inspect_it" code.
13004 * printcmd.c (print_command_1): Remove 'inspect' argument.
13005 (print_command, call_command): Update.
13006 (inspect_command): Remove.
13007 (_initialize_printcmd): Make "inspect" an alias for "print".
13008 * top.c (epoch_interface): Remove.
13009 * top.h (epoch_interface): Remove.
13010 * valprint.c (user_print_options): Update.
13011 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13012 * valprint.h (struct value_print_options) <inspect_it>: Remove
13013 field.
13014
13015 2013-01-04 Tom Tromey <tromey@redhat.com>
13016
13017 * valprint.h (read_string): Add 'extern'.
13018
13019 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13020
13021 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13022 used to decide whether to define darwin_read_dyld_info or not.
13023
13024 2013-01-03 Pierre Muller <muller@sourceware.org>
13025
13026 * main.c (relocate_gdb_directory): Avoid calling stat function
13027 if DIR is empty.
13028
13029 2013-01-03 Yao Qi <yao@codesourcery.com>
13030
13031 * psymtab.c (fixup_psymbol_section): Update declaration.
13032 (fixup_psymbol_section): Remove code returning value.
13033
13034 2013-01-03 Yao Qi <yao@codesourcery.com>
13035
13036 * symtab.h: Remove some out of date comments.
13037 (enum exception_event_kind): Move it ...
13038 * breakpoint.c: ... here.
13039
13040 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13041
13042 PR gdb/14405
13043 * darwin-nat.c (darwin_read_dyld_info): Only build if
13044 TASK_DYLD_INFO_COUNT is defined.
13045 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13046 TASK_DYLD_INFO_COUNT is defined.
13047
13048 2013-01-02 Tom Tromey <tromey@redhat.com>
13049
13050 * symfile.h (struct ecoff_debug_hack): Remove.
13051 * objfiles.c: Don't include mdebugread.h.
13052
13053 2013-01-02 Tom Tromey <tromey@redhat.com>
13054
13055 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13056 * configure.ac: Check for Mach-O support in BFD. Update
13057 CONFIG_OBS.
13058 * configure: Rebuild.
13059
13060 2013-01-02 Tom Tromey <tromey@redhat.com>
13061
13062 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13063 * configure.ac: Use GDB_AC_CHECK_BFD.
13064 * configure: Rebuild.
13065
13066 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13067
13068 * MAINTAINERS: Update my email.
13069
13070 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13071
13072 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13073
13074 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13075
13076 * rs6000-nat.c (bss_data_overlap): New function.
13077 (vmap_symtab): Use it to adjust the .bss section's offset.
13078
13079 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13080
13081 Update year range in copyright notice of all files.
13082
13083 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13084
13085 * top.c (print_gdb_version): Update copyright year.
13086
13087 For older changes see ChangeLog-2012.
13088 \f
13089 Local Variables:
13090 mode: change-log
13091 left-margin: 8
13092 fill-column: 74
13093 version-control: never
13094 coding: utf-8
13095 End:
This page took 0.297048 seconds and 5 git commands to generate.